View | Details | Raw Unified | Return to bug 220201 | Differences between
and this patch

Collapse All | Expand All

(-)mail/dcc-dccd/Makefile (-7 / +7 lines)
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=	1
6
PORTREVISION=	2
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 48-54 Link Here
48
48
49
PLIST_SUB+=	DCCUSER="${DCCUSER}" DCCGROUP="${DCCGROUP}"
49
PLIST_SUB+=	DCCUSER="${DCCUSER}" DCCGROUP="${DCCGROUP}"
50
SUB_FILES=		pkg-install pkg-message
50
SUB_FILES=		pkg-install pkg-message
51
SUB_LIST+=		WRKSRC=${WRKSRC} DCCHOME=${DCCHOME}
51
SUB_LIST+=		WRKSRC=${WRKSRC} DCCHOME=${DCCHOME} DCCUSER="${DCCUSER}"
52
52
53
## Use the configure script to explicitly set the locations of all files,
53
## Use the configure script to explicitly set the locations of all files,
54
## in case the standard locations have been locally overridden
54
## in case the standard locations have been locally overridden
Lines 107-130 Link Here
107
		${STAGEDIR}${PREFIX}/dcc/cgi-bin/header.sample
107
		${STAGEDIR}${PREFIX}/dcc/cgi-bin/header.sample
108
.for sf in bin/dccproc bin/cdcc dcc/libexec/dccsight dcc/libexec/check_ip_range \
108
.for sf in bin/dccproc bin/cdcc dcc/libexec/dccsight dcc/libexec/check_ip_range \
109
	dcc/libexec/wlist dcc/libexec/ck2ip
109
	dcc/libexec/wlist dcc/libexec/ck2ip
110
		${STRIP_CMD} ${STAGEDIR}/${PREFIX}/${sf}
110
		${STRIP_CMD} ${STAGEDIR}${PREFIX}/${sf}
111
.endfor
111
.endfor
112
.if ${PORT_OPTIONS:MDCCIFD} || ${PORT_OPTIONS:MDCCM}
112
.if ${PORT_OPTIONS:MDCCIFD} || ${PORT_OPTIONS:MDCCM}
113
	${STRIP_CMD} ${STAGEDIR}/${PREFIX}/dcc/libexec/dns-helper
113
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/dcc/libexec/dns-helper
114
.endif
114
.endif
115
115
116
post-install-DCCIFD-on:
116
post-install-DCCIFD-on:
117
.for sf in bin/dccif-test dcc/libexec/dccifd
117
.for sf in bin/dccif-test dcc/libexec/dccifd
118
	${STRIP_CMD} ${STAGEDIR}/${PREFIX}/${sf}
118
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${sf}
119
.endfor
119
.endfor
120
120
121
post-install-DCCD-on:
121
post-install-DCCD-on:
122
.for sf in dcc/libexec/dump-clients dcc/libexec/dbclean \
122
.for sf in dcc/libexec/dump-clients dcc/libexec/dbclean \
123
	dcc/libexec/dblist dcc/libexec/dccd
123
	dcc/libexec/dblist dcc/libexec/dccd
124
	${STRIP_CMD} ${STAGEDIR}/${PREFIX}/${sf}
124
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${sf}
125
.endfor
125
.endfor
126
126
127
post-install-DCCM-on:
127
post-install-DCCM-on:
128
	${STRIP_CMD} ${STAGEDIR}/${PREFIX}/dcc/libexec/dccm
128
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/dcc/libexec/dccm
129
129
130
.include <bsd.port.mk>
130
.include <bsd.port.mk>
(-)mail/dcc-dccd/files/pkg-install.in (-10 / +6 lines)
Lines 2-25 Link Here
2
# $FreeBSD: /tmp/pcvs/ports/mail/dcc-dccd/files/pkg-install.in,v 1.2 2011-07-04 19:39:45 crees Exp $
2
# $FreeBSD: /tmp/pcvs/ports/mail/dcc-dccd/files/pkg-install.in,v 1.2 2011-07-04 19:39:45 crees Exp $
3
3
4
PREFIX=${PKG_PREFIX:-%%PREFIX%%}
4
PREFIX=${PKG_PREFIX:-%%PREFIX%%}
5
6
DCCHOME=%%DCCHOME%%
5
DCCHOME=%%DCCHOME%%
6
DCCUSER=%%DCCUSER%%
7
7
8
if [ "$2" = "POST-INSTALL" ]; then
8
if [ "$2" = "POST-INSTALL" ]; then
9
9
10
	echo "=> Generating unique passwords for your DCC install..."
11
	echo "=>"
12
	echo "=> Note this will make map.sample, map.txt.sample and"
13
	echo "=> ids.sample fail their MD5 checks on package removal."
14
15
	/bin/sh $PREFIX/dcc/libexec/fix-map \
10
	/bin/sh $PREFIX/dcc/libexec/fix-map \
16
	-n .sample \
11
	-n .nopasswd \
17
	-I $DCCHOME/ids.sample -i $DCCHOME/ids \
12
	-I $DCCHOME/ids.nopasswd -i $DCCHOME/ids \
18
	-T $DCCHOME/map.txt.sample -t $DCCHOME/map.txt \
13
	-T $DCCHOME/map.txt.nopasswd -t $DCCHOME/map.txt \
19
	-m $DCCHOME/map
14
	-m $DCCHOME/map
20
15
21
        for file in ids map map.txt ; do
16
        for file in ids map map.txt ; do
22
                /bin/cp -p $DCCHOME/$file $DCCHOME/${file}.sample
17
                /bin/cp -p $DCCHOME/$file $DCCHOME/${file}.nopasswd
18
		/usr/sbin/chown $DCCUSER $DCCHOME/${file} $DCCHOME/${file}.nopasswd
23
        done
19
        done
24
fi
20
fi
25
21
(-)mail/dcc-dccd/pkg-plist (-2 lines)
Lines 76-81 Link Here
76
%%DCCGREY%%@unexec [ -e %D/dcc/grey_flod.map ] && rm -f %D/dcc/grey_flod.map || true
76
%%DCCGREY%%@unexec [ -e %D/dcc/grey_flod.map ] && rm -f %D/dcc/grey_flod.map || true
77
%%DCCGREY%%@unexec [ -e %D/dcc/grey_clients ] && rm -f %D/dcc/grey_clients || true
77
%%DCCGREY%%@unexec [ -e %D/dcc/grey_clients ] && rm -f %D/dcc/grey_clients || true
78
@dir dcc/log
78
@dir dcc/log
79
@group wheel
80
@owner root
81
@dir dcc
79
@dir dcc

Return to bug 220201