1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00

- Add LICENSE_FILE

- Switch to USES=localbase
- Switch to options helpers
This commit is contained in:
Dmitry Marakasov 2017-04-08 11:03:01 +00:00
parent 78a9bb5b62
commit e735486213
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=438029

View File

@ -11,17 +11,9 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Modular FTP server configurable online using SITE commands
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
OPTIONS_DEFINE= ICONV IPV6 MYSQL PERL PGSQL SQLITE TCL DOCS
OPTIONS_RADIO= TLS ZEROCONF
OPTIONS_RADIO_TLS= GNUTLS OPENSSL
OPTIONS_RADIO_ZEROCONF= AVAHI HOWL
OPTIONS_DEFAULT= AVAHI GNUTLS
HOWL_DESC= Zeroconf support via Howl
OPTIONS_SUB= yes
USES= autoreconf gettext-tools libtool pkgconfig
USES= autoreconf gettext-tools libtool localbase pkgconfig
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --sysconfdir=${ETCDIR} --without-pam --disable-bonjour
INSTALL_TARGET= install-strip
@ -29,8 +21,12 @@ USE_LDCONFIG= yes
USE_RC_SUBR= wzdftpd
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= ICONV IPV6 MYSQL PERL PGSQL SQLITE TCL DOCS
OPTIONS_RADIO= TLS ZEROCONF
OPTIONS_RADIO_TLS= GNUTLS OPENSSL
OPTIONS_RADIO_ZEROCONF= AVAHI HOWL
OPTIONS_DEFAULT= AVAHI GNUTLS
OPTIONS_SUB= yes
ICONV_CONFIGURE_ON= ${ICONV_CONFIGURE_ARG}
ICONV_CONFIGURE_OFF= --disable-utf8
@ -65,6 +61,7 @@ AVAHI_CONFIGURE_ON= --with-zeroconf --enable-avahi
AVAHI_LIB_DEPENDS= libdbus-1.so:devel/dbus \
libavahi-core.so:net/avahi-app
HOWL_DESC= Zeroconf support via Howl
HOWL_CONFIGURE_ON= --with-zeroconf --enable-howl
HOWL_CPPFLAGS= -I${LOCALBASE}/include/howl
HOWL_LIB_DEPENDS= libhowl.so:net/howl
@ -97,11 +94,13 @@ post-patch:
/gcry_control/d' \
post-install:
(cd ${WRKSRC} && ${INSTALL_DATA} *.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig )
${INSTALL_DATA} ${WRKSRC}/*.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in AUTHORS ChangeLog NEWS Permissions.ReadMeFirst README \
TLS.ReadMeFirst UPGRADING wzd_tls.cnf
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>