Lines 2-12
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= dcc-dccd |
4 |
PORTNAME= dcc-dccd |
5 |
PORTVERSION= 1.3.159 |
5 |
PORTVERSION= 1.3.163 |
6 |
PORTREVISION= 3 |
|
|
7 |
CATEGORIES= mail |
6 |
CATEGORIES= mail |
8 |
MASTER_SITES= http://www.dcc-servers.net/dcc/source/old/ \ |
7 |
MASTER_SITES= https://www.dcc-servers.net/dcc/source/old/ \ |
9 |
ftp://ftp.dcc-servers.net/src/dcc/old/ \ |
|
|
10 |
LOCAL/mat/${PORTNAME} |
8 |
LOCAL/mat/${PORTNAME} |
11 |
DISTNAME= dcc-${PORTVERSION} |
9 |
DISTNAME= dcc-${PORTVERSION} |
12 |
|
10 |
|
Lines 20-59
Link Here
|
20 |
LICENSE_PERMS= no-pkg-sell no-dist-mirror no-pkg-mirror no-dist-sell |
18 |
LICENSE_PERMS= no-pkg-sell no-dist-mirror no-pkg-mirror no-dist-sell |
21 |
.endif |
19 |
.endif |
22 |
|
20 |
|
23 |
HAS_CONFIGURE= yes |
|
|
24 |
|
25 |
USES= tar:Z |
21 |
USES= tar:Z |
26 |
|
22 |
|
27 |
OPTIONS_DEFINE= DCCIFD DCCD DCCGREY IPV6 |
|
|
28 |
OPTIONS_DEFAULT= DCCIFD DCCM DCCD DCCGREY |
29 |
OPTIONS_GROUP= MILTER |
30 |
OPTIONS_GROUP_MILTER= DCCM PORTS_MILTER |
31 |
DCCIFD_DESC= DCC interface daemon (for SpamAssassin etc) |
32 |
DCCM_DESC= DCC milter |
33 |
DCCD_DESC= DCC server |
34 |
DCCGREY_DESC= DCC greylisting server |
35 |
PORTS_MILTER_DESC= Use ports milter instead of base |
36 |
|
37 |
OPTIONS_SUB= yes |
38 |
|
39 |
## User for DCC files and SUID binaries |
40 |
# |
41 |
DCCUSER?= dcc |
42 |
DCCGROUP?= dcc |
43 |
|
44 |
USERS= ${DCCUSER} |
23 |
USERS= ${DCCUSER} |
45 |
GROUPS= ${DCCGROUP} |
24 |
GROUPS= ${DCCGROUP} |
46 |
|
25 |
|
47 |
DCCHOME= ${PREFIX}/dcc |
26 |
PLIST_SUB= DCCDATA="${DCCDATA}" DCCUSER="${DCCUSER}" DCCGROUP="${DCCGROUP}" |
|
|
27 |
SUB_FILES= pkg-install pkg-message |
28 |
SUB_LIST= ${PLIST_SUB} WRKSRC=${WRKSRC} DCCHOME=${DCCHOME} |
48 |
|
29 |
|
49 |
PLIST_SUB+= DCCUSER="${DCCUSER}" DCCGROUP="${DCCGROUP}" |
|
|
50 |
SUB_FILES= pkg-install pkg-message |
51 |
SUB_LIST+= WRKSRC=${WRKSRC} DCCHOME=${DCCHOME} DCCUSER="${DCCUSER}" |
52 |
|
53 |
## Use the configure script to explicitly set the locations of all files, |
30 |
## Use the configure script to explicitly set the locations of all files, |
54 |
## in case the standard locations have been locally overridden |
31 |
## in case the standard locations have been locally overridden |
55 |
## Also, use a similar hack to USES=desthack. |
32 |
## Also, use a similar hack to USES=desthack. |
|
|
33 |
HAS_CONFIGURE= yes |
56 |
CONFIGURE_ARGS= -q \ |
34 |
CONFIGURE_ARGS= -q \ |
|
|
35 |
--without-DCC-MD5 \ |
57 |
--with-uid=${DCCUSER} \ |
36 |
--with-uid=${DCCUSER} \ |
58 |
--bindir=${PREFIX}/bin \ |
37 |
--bindir=${PREFIX}/bin \ |
59 |
--mandir=${MANPREFIX}/man \ |
38 |
--mandir=${MANPREFIX}/man \ |
Lines 62-84
Link Here
|
62 |
--with-make-cmd=${MAKE_CMD} \ |
41 |
--with-make-cmd=${MAKE_CMD} \ |
63 |
--with-install-cmd=${BSD_INSTALL_PROGRAM} \ |
42 |
--with-install-cmd=${BSD_INSTALL_PROGRAM} \ |
64 |
--enable-pkg-make \ |
43 |
--enable-pkg-make \ |
65 |
--homedir=${DCCHOME} \ |
44 |
--homedir=${DCCDATA} \ |
66 |
--libexecdir=${DCCHOME}/libexec \ |
45 |
--libexecdir=${PREFIX}/libexec \ |
67 |
--with-cgibin=${DCCHOME}/cgi-bin |
46 |
--with-cgibin=${DCCHOME}/cgi-bin |
68 |
|
47 |
|
69 |
CONFIGURE_ENV= ac_cv_header_histedit_h=no # disable libedit detection |
48 |
CONFIGURE_ENV= ac_cv_header_histedit_h=no # disable libedit detection |
70 |
|
49 |
|
71 |
DCCM_CONFIGURE_ENABLE= dccm |
50 |
OPTIONS_DEFINE= DCCIFD DCCD DCCGREY IPV6 |
72 |
DCCM_USE= rc_subr=dccm |
51 |
OPTIONS_DEFAULT= DCCIFD DCCM DCCD DCCGREY |
|
|
52 |
OPTIONS_GROUP= MILTER |
53 |
OPTIONS_GROUP_MILTER= DCCM PORTS_MILTER |
54 |
OPTIONS_SUB= yes |
55 |
|
56 |
DCCD_DESC= DCC server |
57 |
DCCGREY_DESC= DCC greylisting server |
58 |
DCCIFD_DESC= DCC interface daemon (for SpamAssassin etc) |
59 |
DCCM_DESC= DCC milter |
60 |
PORTS_MILTER_DESC= Use ports milter instead of base |
61 |
|
62 |
DCCD_USE= rc_subr=dccd |
63 |
DCCD_CONFIGURE_ENABLE= server |
64 |
DCCGREY_USE= rc_subr=dccgrey |
65 |
DCCIFD_USE= rc_subr=dccifd |
66 |
DCCIFD_CONFIGURE_ENABLE= dccifd |
67 |
DCCM_USE= rc_subr=dccm |
68 |
DCCM_CONFIGURE_ENABLE= dccm |
69 |
IPV6_CONFIGURE_OFF= --disable-IPv6 |
73 |
PORTS_MILTER_BUILD_DEPENDS= ${LOCALBASE}/lib/libmilter.a:mail/libmilter |
70 |
PORTS_MILTER_BUILD_DEPENDS= ${LOCALBASE}/lib/libmilter.a:mail/libmilter |
74 |
PORTS_MILTER_CONFIGURE_ON= --with-sendmail=yes |
71 |
PORTS_MILTER_CONFIGURE_ON= --with-sendmail=yes |
75 |
DCCIFD_CONFIGURE_ENABLE= dccifd |
|
|
76 |
DCCIFD_USE= rc_subr=dccifd |
77 |
DCCD_CONFIGURE_ENABLE= server |
78 |
IPV6_CONFIGURE_OFF= --disable-IPv6 |
79 |
DCCD_USE= rc_subr=dccd |
80 |
DCCGREY_USE= rc_subr=dccgrey |
81 |
|
72 |
|
|
|
73 |
## User for DCC files and SUID binaries |
74 |
# |
75 |
DCCUSER?= dcc |
76 |
DCCGROUP?= dcc |
77 |
|
78 |
DCCHOME= ${PREFIX}/dcc |
79 |
DCCDATA= /var/db/dcc |
80 |
|
82 |
.include <bsd.port.options.mk> |
81 |
.include <bsd.port.options.mk> |
83 |
|
82 |
|
84 |
## dccm milter support |
83 |
## dccm milter support |
Lines 100-130
Link Here
|
100 |
PLIST_SUB+= IFD_MILT="@comment " |
99 |
PLIST_SUB+= IFD_MILT="@comment " |
101 |
.endif |
100 |
.endif |
102 |
|
101 |
|
|
|
102 |
post-patch: |
103 |
${REINPLACE_CMD} -e 's,md5.c ,,' ${WRKSRC}/clntlib/Makefile.in |
104 |
${REINPLACE_CMD} -e 's,^\(BININSTALL.*\),\1 -s,p' \ |
105 |
-e 's,^BIN\(INSTALL\s*=\s*.*\) -s$$,SCRIPT\1,' ${WRKSRC}/Makefile.inc.in |
106 |
${REINPLACE_CMD} -e 's,BININSTALL,SCRIPTINSTALL,g' \ |
107 |
${WRKSRC}/homedir/Makefile.in ${WRKSRC}/misc/Makefile.in |
108 |
|
103 |
post-install: |
109 |
post-install: |
104 |
@${MV} ${STAGEDIR}${PREFIX}/dcc/cgi-bin/footer-dist \ |
110 |
@${MV} ${STAGEDIR}${PREFIX}/dcc/cgi-bin/footer-dist \ |
105 |
${STAGEDIR}${PREFIX}/dcc/cgi-bin/footer.sample |
111 |
${STAGEDIR}${PREFIX}/dcc/cgi-bin/footer.sample |
106 |
@${MV} ${STAGEDIR}${PREFIX}/dcc/cgi-bin/header-dist \ |
112 |
@${MV} ${STAGEDIR}${PREFIX}/dcc/cgi-bin/header-dist \ |
107 |
${STAGEDIR}${PREFIX}/dcc/cgi-bin/header.sample |
113 |
${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 |
|
114 |
|
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> |
115 |
.include <bsd.port.mk> |