openbsd-ports/net/pure-ftpd/Makefile
ajacoutot c4096e6659 Stop using the daemon class in @newuser.
If we need to make an exception we can do it and properly document the
reason but by default we should just use the default login class.
rc.d uses daemon or the login class provided in login.conf.d so this has
no impact there.

discussed with sthen@, tb@ and robert@

praying that my grep/sed skills did not break anything and still
believing in portbump :-)
2022-11-08 11:16:56 +00:00

78 lines
2.0 KiB
Makefile

COMMENT= small, easy to set up, fast and very secure FTP server
DISTNAME= pure-ftpd-1.0.51
CATEGORIES= net
MASTER_SITES= https://download.pureftpd.org/pub/pure-ftpd/releases/ \
ftp://ftp.pureftpd.org/pub/pure-ftpd/releases/ \
ftp://ftp4.fr.pureftpd.org/pub/pure-ftpd/releases/ \
ftp://ftp.dk.pureftpd.org/mirrors/pure-ftpd/releases/ \
ftp://ftp.nl.pureftpd.org/pub/pure-ftpd/releases/ \
${MASTER_SITE_SOURCEFORGE:=pureftpd/}
EXTRACT_SUFX= .tar.bz2
REVISION= 0
HOMEPAGE= https://www.pureftpd.org/project/pure-ftpd/
MAINTAINER= Brad Smith <brad@comstyle.com>
# BSD
PERMIT_PACKAGE= Yes
WANTLIB= c crypto sodium ssl
LIB_DEPENDS= security/libsodium
SEPARATE_BUILD= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --disable-pie \
--with-everything \
--with-paranoidmsg \
--with-tls
FLAVORS= ldap mysql postgresql virtual_chroot
FLAVOR?=
.if ${FLAVOR:Mldap}
LIB_DEPENDS+= databases/openldap
WANTLIB += ldap>=2 lber
CONFIGURE_ARGS+= --with-ldap="${LOCALBASE}"
DOCS+= README.LDAP pureftpd.schema
CONF_FILE+= pureftpd-ldap.conf
.endif
.if ${FLAVOR:Mmysql}
LIB_DEPENDS+= databases/mariadb
WANTLIB += mariadb m z
CONFIGURE_ARGS+= --with-mysql="${LOCALBASE}"
DOCS+= README.MySQL
CONF_FILE+= pureftpd-mysql.conf
.endif
.if ${FLAVOR:Mpostgresql}
LIB_DEPENDS+= databases/postgresql
WANTLIB += pq>=2 m z
CONFIGURE_ARGS+= --with-pgsql="${LOCALBASE}"
DOCS+= README.PGSQL
CONF_FILE+= pureftpd-pgsql.conf
.endif
.if ${FLAVOR:Mvirtual_chroot}
CONFIGURE_ARGS+= --with-virtualchroot
.endif
DOCS+= README README.Configuration-File README.TLS README.Virtual-Users \
README.Authentication-Modules pure-ftpd.png
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pure-ftpd
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pure-ftpd
${INSTALL_DATA} ${WRKBUILD}/pure-ftpd.conf \
${PREFIX}/share/examples/pure-ftpd/pure-ftpd.conf.sample
cd ${WRKSRC}; ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/pure-ftpd
.if defined(CONF_FILE) && !empty(CONF_FILE)
cd ${WRKSRC}; ${INSTALL_DATA} ${CONF_FILE} \
${PREFIX}/share/examples/pure-ftpd
.endif
.include <bsd.port.mk>