|
Lines 3-9
Link Here
|
| 3 |
|
3 |
|
| 4 |
PORTNAME= dcc-dccd |
4 |
PORTNAME= dcc-dccd |
| 5 |
PORTVERSION= 1.3.159 |
5 |
PORTVERSION= 1.3.159 |
| 6 |
PORTREVISION= 2 |
6 |
PORTREVISION= 3 |
| 7 |
CATEGORIES= mail |
7 |
CATEGORIES= mail |
| 8 |
MASTER_SITES= http://www.dcc-servers.net/dcc/source/old/ \ |
8 |
MASTER_SITES= http://www.dcc-servers.net/dcc/source/old/ \ |
| 9 |
ftp://ftp.dcc-servers.net/src/dcc/old/ \ |
9 |
ftp://ftp.dcc-servers.net/src/dcc/old/ \ |
|
Lines 45-59
Link Here
|
| 45 |
GROUPS= ${DCCGROUP} |
45 |
GROUPS= ${DCCGROUP} |
| 46 |
|
46 |
|
| 47 |
DCCHOME= ${PREFIX}/dcc |
47 |
DCCHOME= ${PREFIX}/dcc |
|
|
48 |
DCCDATA= /var/dcc |
| 48 |
|
49 |
|
| 49 |
PLIST_SUB+= DCCUSER="${DCCUSER}" DCCGROUP="${DCCGROUP}" |
50 |
PLIST_SUB+= DCCUSER="${DCCUSER}" DCCGROUP="${DCCGROUP}" DCCDATA="${DCCDATA}" |
| 50 |
SUB_FILES= pkg-install pkg-message |
51 |
SUB_FILES= pkg-install pkg-message |
| 51 |
SUB_LIST+= WRKSRC=${WRKSRC} DCCHOME=${DCCHOME} DCCUSER="${DCCUSER}" |
52 |
SUB_LIST+= ${PLIST_SUB} WRKSRC=${WRKSRC} DCCHOME=${DCCHOME} |
| 52 |
|
53 |
|
| 53 |
## Use the configure script to explicitly set the locations of all files, |
54 |
## Use the configure script to explicitly set the locations of all files, |
| 54 |
## in case the standard locations have been locally overridden |
55 |
## in case the standard locations have been locally overridden |
| 55 |
## Also, use a similar hack to USES=desthack. |
56 |
## Also, use a similar hack to USES=desthack. |
| 56 |
CONFIGURE_ARGS= -q \ |
57 |
CONFIGURE_ARGS= -q \ |
|
|
58 |
--without-DCC-MD5 \ |
| 57 |
--with-uid=${DCCUSER} \ |
59 |
--with-uid=${DCCUSER} \ |
| 58 |
--bindir=${PREFIX}/bin \ |
60 |
--bindir=${PREFIX}/bin \ |
| 59 |
--mandir=${MANPREFIX}/man \ |
61 |
--mandir=${MANPREFIX}/man \ |
|
Lines 62-69
Link Here
|
| 62 |
--with-make-cmd=${MAKE_CMD} \ |
64 |
--with-make-cmd=${MAKE_CMD} \ |
| 63 |
--with-install-cmd=${BSD_INSTALL_PROGRAM} \ |
65 |
--with-install-cmd=${BSD_INSTALL_PROGRAM} \ |
| 64 |
--enable-pkg-make \ |
66 |
--enable-pkg-make \ |
| 65 |
--homedir=${DCCHOME} \ |
67 |
--homedir=${DCCDATA} \ |
| 66 |
--libexecdir=${DCCHOME}/libexec \ |
68 |
--libexecdir=${PREFIX}/libexec \ |
| 67 |
--with-cgibin=${DCCHOME}/cgi-bin |
69 |
--with-cgibin=${DCCHOME}/cgi-bin |
| 68 |
|
70 |
|
| 69 |
CONFIGURE_ENV= ac_cv_header_histedit_h=no # disable libedit detection |
71 |
CONFIGURE_ENV= ac_cv_header_histedit_h=no # disable libedit detection |
|
Lines 81-86
Link Here
|
| 81 |
|
83 |
|
| 82 |
.include <bsd.port.options.mk> |
84 |
.include <bsd.port.options.mk> |
| 83 |
|
85 |
|
|
|
86 |
EXTRACT_AFTER_ARGS+= --no-same-owner --no-same-permissions --exclude 'md5.?' |
| 87 |
|
| 84 |
## dccm milter support |
88 |
## dccm milter support |
| 85 |
# |
89 |
# |
| 86 |
.if ${PORT_OPTIONS:MPORTS_MILTER} |
90 |
.if ${PORT_OPTIONS:MPORTS_MILTER} |
|
Lines 100-130
Link Here
|
| 100 |
PLIST_SUB+= IFD_MILT="@comment " |
104 |
PLIST_SUB+= IFD_MILT="@comment " |
| 101 |
.endif |
105 |
.endif |
| 102 |
|
106 |
|
|
|
107 |
post-patch: |
| 108 |
${REINPLACE_CMD} -e 's,md5.c ,,' ${WRKSRC}/clntlib/Makefile.in |
| 109 |
${REINPLACE_CMD} -e 's,^\(BININSTALL.*\),\1 -s,p' \ |
| 110 |
-e 's,^BIN\(INSTALL\s*=\s*.*\) -s$$,SCRIPT\1,' ${WRKSRC}/Makefile.inc.in |
| 111 |
${REINPLACE_CMD} -e 's,BININSTALL,SCRIPTINSTALL,g' \ |
| 112 |
${WRKSRC}/homedir/Makefile.in ${WRKSRC}/misc/Makefile.in |
| 113 |
|
| 103 |
post-install: |
114 |
post-install: |
| 104 |
@${MV} ${STAGEDIR}${PREFIX}/dcc/cgi-bin/footer-dist \ |
115 |
@${MV} ${STAGEDIR}${PREFIX}/dcc/cgi-bin/footer-dist \ |
| 105 |
${STAGEDIR}${PREFIX}/dcc/cgi-bin/footer.sample |
116 |
${STAGEDIR}${PREFIX}/dcc/cgi-bin/footer.sample |
| 106 |
@${MV} ${STAGEDIR}${PREFIX}/dcc/cgi-bin/header-dist \ |
117 |
@${MV} ${STAGEDIR}${PREFIX}/dcc/cgi-bin/header-dist \ |
| 107 |
${STAGEDIR}${PREFIX}/dcc/cgi-bin/header.sample |
118 |
${STAGEDIR}${PREFIX}/dcc/cgi-bin/header.sample |
| 108 |
.for sf in bin/dccproc bin/cdcc dcc/libexec/dccsight dcc/libexec/check_ip_range \ |
|
|
| 109 |
dcc/libexec/wlist dcc/libexec/ck2ip |
| 110 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${sf} |
| 111 |
.endfor |
| 112 |
.if ${PORT_OPTIONS:MDCCIFD} || ${PORT_OPTIONS:MDCCM} |
| 113 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/dcc/libexec/dns-helper |
| 114 |
.endif |
| 115 |
|
119 |
|
| 116 |
post-install-DCCIFD-on: |
|
|
| 117 |
.for sf in bin/dccif-test dcc/libexec/dccifd |
| 118 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${sf} |
| 119 |
.endfor |
| 120 |
|
| 121 |
post-install-DCCD-on: |
| 122 |
.for sf in dcc/libexec/dump-clients dcc/libexec/dbclean \ |
| 123 |
dcc/libexec/dblist dcc/libexec/dccd |
| 124 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${sf} |
| 125 |
.endfor |
| 126 |
|
| 127 |
post-install-DCCM-on: |
| 128 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/dcc/libexec/dccm |
| 129 |
|
| 130 |
.include <bsd.port.mk> |
120 |
.include <bsd.port.mk> |