Commit 260786e0 authored by Jérome Perrin's avatar Jérome Perrin

component

parent 90931139
# http://www.proftpd.org/ - Highly configurable GPL-licensed FTP server software # http://www.proftpd.org/ - Highly configurable GPL-licensed FTP server software
#
# Because it uses collective.recipe.environment this components needs slapos.core >= 1.4.7
# ( grid: do not hide `$USER` when running buildout )
#
[buildout] [buildout]
extends = extends =
../openssl/buildout.cfg ../openssl/buildout.cfg
...@@ -8,9 +12,9 @@ extends = ...@@ -8,9 +12,9 @@ extends =
../libtool/buildout.cfg ../libtool/buildout.cfg
../git/buildout.cfg ../git/buildout.cfg
# proftpd server
[proftpd-environment] [proftpd-environment]
recipe = collective.recipe.environment recipe = collective.recipe.environment
# This component depends on https://nexedi.erp5.net/bug_module/20180402-716ACB/ being fixed
[proftpd-grp] [proftpd-grp]
recipe = collective.recipe.grp recipe = collective.recipe.grp
...@@ -27,12 +31,15 @@ configure-options = ...@@ -27,12 +31,15 @@ configure-options =
--with-modules=mod_sftp:mod_ban --with-modules=mod_sftp:mod_ban
--prefix=${buildout:parts-directory}/${:_buildout_section_name_} --prefix=${buildout:parts-directory}/${:_buildout_section_name_}
environment = environment =
CPPFLAGS=-I${zlib:location}/include -I${openssl:location}/include CPPFLAGS=${:cppflags}
LDFLAGS=-L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib -L${openssl:location}/lib -Wl,-rpath=${openssl:location}/lib LDFLAGS=${:ldflags}
install_user=${proftpd-environment:USER} install_user=${proftpd-environment:USER}
install_group=${proftpd-grp:GROUP} install_group=${proftpd-grp:GROUP}
cppflags=-I${zlib:location}/include -I${openssl:location}/include
ldflags=-L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib -L${openssl:location}/lib -Wl,-rpath=${openssl:location}/lib
# mod_auth_web: a proftpd module to authenticate users against an HTTP service
[proftpd-mod_auth_web-repository] [proftpd-mod_auth_web-repository]
recipe = slapos.recipe.build:gitclone recipe = slapos.recipe.build:gitclone
#repository = https://github.com/proftpd/mod_auth_web #repository = https://github.com/proftpd/mod_auth_web
...@@ -45,9 +52,18 @@ git-executable = ${git:location}/bin/git ...@@ -45,9 +52,18 @@ git-executable = ${git:location}/bin/git
[proftpd-mod_auth_web] [proftpd-mod_auth_web]
recipe = plone.recipe.command recipe = plone.recipe.command
stop-on-error = true stop-on-error = true
command = LIBTOOL=${libtool:location}/bin/libtool LDFLAGS=-Wl,-rpath=${curl:location}/lib ${proftpd-output:prxs} -c -i -I ${curl:location}/include -L ${curl:location}/lib/ -l curl -d ${proftpd-mod_auth_web-repository:location}/mod_auth_web.c command =
LIBTOOL=${libtool:location}/bin/libtool \
LDFLAGS="-Wl,-rpath=${curl:location}/lib ${proftpd:ldflags}" \
${proftpd-output:prxs} -c -i \
-I ${curl:location}/include ${proftpd:cppflags} \
-L ${curl:location}/lib/ \
-l curl \
-d ${proftpd-mod_auth_web-repository:location}/mod_auth_web.c
location=${proftpd:location}/libexec/mod_auth_web.so
# ftpasswod: a perl script to manage a proftpd AuthUserFile
[ftpasswd] [ftpasswd]
recipe = slapos.recipe.build:download recipe = slapos.recipe.build:download
url = https://raw.githubusercontent.com/proftpd/proftpd/v1.3.6/contrib/ftpasswd url = https://raw.githubusercontent.com/proftpd/proftpd/v1.3.6/contrib/ftpasswd
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment