Lines 6-12
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= wzdftpd |
8 |
PORTNAME= wzdftpd |
9 |
PORTVERSION= 0.3.3 |
9 |
PORTVERSION= 0.4.0 |
10 |
CATEGORIES= ftp ipv6 |
10 |
CATEGORIES= ftp ipv6 |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
12 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
12 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
Lines 14-39
Link Here
|
14 |
MAINTAINER= bogorodskiy@inbox.ru |
14 |
MAINTAINER= bogorodskiy@inbox.ru |
15 |
COMMENT= Modular FTP server configurable online using SITE commands |
15 |
COMMENT= Modular FTP server configurable online using SITE commands |
16 |
|
16 |
|
|
|
17 |
USE_PERL5= yes |
17 |
USE_RC_SUBR= yes |
18 |
USE_RC_SUBR= yes |
18 |
USE_REINPLACE= yes |
19 |
USE_REINPLACE= yes |
19 |
USE_GMAKE= yes |
20 |
USE_GMAKE= yes |
20 |
USE_GETOPT_LONG=yes |
|
|
21 |
GNU_CONFIGURE= yes |
21 |
GNU_CONFIGURE= yes |
22 |
INSTALLS_SHLIB= yes |
22 |
INSTALLS_SHLIB= yes |
23 |
USE_INC_LIBTOOL_VER=13 |
23 |
USE_INC_LIBTOOL_VER=13 |
24 |
CONFIGURE_ARGS+= --without-mysql |
24 |
CONFIGURE_ARGS+= --without-mysql --without-pam |
25 |
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} |
25 |
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} |
26 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
26 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
27 |
|
27 |
|
|
|
28 |
OPTIONS= UFT8 "Enable UTF8 support" off \ |
29 |
TCL "Enable TCL support" off \ |
30 |
SSL "Enable OpenSSL support" on \ |
31 |
IPV6 "Enable IPv6 support" on |
32 |
|
33 |
.include <bsd.port.pre.mk> |
34 |
|
35 |
MAN1= siteconfig.1 \ |
36 |
siteuptime.1 \ |
37 |
sitewho.1 \ |
38 |
wzd-config.1 |
28 |
MAN8= wzdftpd.8 |
39 |
MAN8= wzdftpd.8 |
29 |
|
40 |
|
30 |
.if defined(PACKAGE_BUILDING) |
|
|
31 |
WITH_UTF8= yes |
32 |
WITH_TCL= yes |
33 |
WITH_SSL= yes |
34 |
WITH_IPV6= yes |
35 |
.endif |
36 |
|
37 |
.if defined(WITH_UTF8) |
41 |
.if defined(WITH_UTF8) |
38 |
USE_ICONV= yes |
42 |
USE_ICONV= yes |
39 |
CONFIGURE_ARGS+= --enable-utf8 |
43 |
CONFIGURE_ARGS+= --enable-utf8 |
Lines 41-78
Link Here
|
41 |
|
45 |
|
42 |
.if defined(WITH_TCL) |
46 |
.if defined(WITH_TCL) |
43 |
LIB_DEPENDS+= tcl84:${PORTSDIR}/lang/tcl84 |
47 |
LIB_DEPENDS+= tcl84:${PORTSDIR}/lang/tcl84 |
44 |
CONFIGURE_ARGS+= --with-tcl='${PREFIX}/include/tcl8.4:${PREFIX}/lib' |
48 |
CONFIGURE_ARGS+= --with-tcl='${PREFIX}/lib/tcl8.4' |
45 |
PLIST_SUB+= TCL="" |
49 |
PLIST_SUB+= TCL="" |
46 |
.else |
50 |
.else |
|
|
51 |
CONFIGURE_ARGS+= --without-tcl |
47 |
PLIST_SUB+= TCL="@comment " |
52 |
PLIST_SUB+= TCL="@comment " |
48 |
.endif |
53 |
.endif |
49 |
|
54 |
|
50 |
.if defined(WITH_SSL) |
55 |
.if defined(WITH_SSL) |
51 |
USE_OPENSSL= yes |
56 |
USE_OPENSSL= yes |
52 |
CONFIGURE_ARGS+= --enable-ssl |
57 |
.else |
|
|
58 |
CONFIGURE_ARGS+= --with-openssl=/dev/null |
53 |
.endif |
59 |
.endif |
54 |
|
60 |
|
55 |
.if defined(WITH_IPV6) |
61 |
.if defined(WITH_IPV6) |
56 |
CONFIGURE_ARGS+= --enable-ipv6 |
62 |
CONFIGURE_ARGS+= --enable-ipv6 |
57 |
.endif |
63 |
.endif |
58 |
|
64 |
|
59 |
DOCS= AUTHORS Permissions.ReadMeFirst README TLS.ReadMeFirst \ |
65 |
PORTDOCS= AUTHORS Permissions.ReadMeFirst README TLS.ReadMeFirst \ |
60 |
ChangeLog src/DOCS_XFERLOG_FORMAT src/KNOWN_BUGS src/TODO |
66 |
ChangeLog src/DOCS_XFERLOG_FORMAT src/KNOWN_BUGS src/TODO |
61 |
|
67 |
|
62 |
RC_SCRIPTS_SUB= PREFIX=${PREFIX} \ |
68 |
RC_SCRIPTS_SUB= PREFIX=${PREFIX} \ |
63 |
RC_SUBR=${RC_SUBR} |
69 |
RC_SUBR=${RC_SUBR} |
64 |
|
70 |
|
65 |
post-extract: |
|
|
66 |
.if defined(WITH_TCL) |
67 |
@${REINPLACE_CMD} -e 's|-ltcl8.4|-ltcl84|g' ${WRKSRC}/configure |
68 |
.endif |
69 |
|
70 |
post-install: |
71 |
post-install: |
71 |
${MV} ${PREFIX}/etc/wzd.cfg ${PREFIX}/etc/wzd.cfg.sample |
72 |
${MV} ${PREFIX}/etc/wzd.cfg ${PREFIX}/etc/wzd.cfg.sample |
72 |
${MV} ${PREFIX}/etc/users ${PREFIX}/etc/users.sample |
73 |
${MV} ${PREFIX}/etc/users ${PREFIX}/etc/users.sample |
73 |
.if !defined(NOPORTDOCS) |
74 |
.if !defined(NOPORTDOCS) |
74 |
@${MKDIR} ${DOCSDIR} |
75 |
@${MKDIR} ${DOCSDIR} |
75 |
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} |
76 |
.for i in ${PORTDOCS} |
|
|
77 |
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} |
78 |
.endfor |
76 |
.endif |
79 |
.endif |
77 |
@${SED} -e 's,PREFIX,${PREFIX},g' ${FILESDIR}/pkg-message.in > ${PKGMESSAGE} |
80 |
@${SED} -e 's,PREFIX,${PREFIX},g' ${FILESDIR}/pkg-message.in > ${PKGMESSAGE} |
78 |
@${CAT} ${PKGMESSAGE} |
81 |
@${CAT} ${PKGMESSAGE} |
Lines 80-83
Link Here
|
80 |
${FILESDIR}/wzdftpd.sh > ${PREFIX}/etc/rc.d/wzdftpd.sh |
83 |
${FILESDIR}/wzdftpd.sh > ${PREFIX}/etc/rc.d/wzdftpd.sh |
81 |
@${CHMOD} ${BINMODE} ${PREFIX}/etc/rc.d/wzdftpd.sh |
84 |
@${CHMOD} ${BINMODE} ${PREFIX}/etc/rc.d/wzdftpd.sh |
82 |
|
85 |
|
83 |
.include <bsd.port.mk> |
86 |
.include <bsd.port.post.mk> |