View | Details | Raw Unified | Return to bug 166077
Collapse All | Expand All

(-)Makefile (-22 / +5 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	wired
8
PORTNAME=	wired
9
PORTVERSION=	1.3.4
9
PORTVERSION=	1.3.4
10
PORTREVISION=	1
10
PORTREVISION=	2
11
CATEGORIES=	net
11
CATEGORIES=	net
12
MASTER_SITES=	http://mirror.mcx2.org/
12
MASTER_SITES=	http://mirror.mcx2.org/
13
13
Lines 27-54 Link Here
27
	PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
27
	PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
28
28
29
post-install:
29
post-install:
30
	@if [ ! -f ${PREFIX}/wired/etc/wired.conf ]; then \
30
.for i in etc/wired.conf etc/resolv.conf banlist groups news users
31
		${CP} -p ${PREFIX}/wired/etc/wired.conf.sample ${PREFIX}/wired/etc/wired.conf ; \
31
	@if [ ! -f ${PREFIX}/wired/${i} ]; then \
32
	fi
32
		${CP} -p ${PREFIX}/wired/${i}.sample ${PREFIX}/wired/${i} ; \
33
	@if [ ! -f ${PREFIX}/wired/etc/resolv.conf ]; then \
34
		${CP} -p ${PREFIX}/wired/etc/resolv.conf.sample ${PREFIX}/wired/etc/resolv.conf ; \
35
	fi
36
	@if [ ! -f ${PREFIX}/wired/banlist ]; then \
37
		${CP} -p ${PREFIX}/wired/banlist.sample ${PREFIX}/wired/banlist ; \
38
	fi
39
	@if [ ! -f ${PREFIX}/wired/groups ]; then \
40
		${CP} -p ${PREFIX}/wired/groups.sample ${PREFIX}/wired/groups ; \
41
	fi
42
	@if [ ! -f ${PREFIX}/wired/news ]; then \
43
		${CP} -p ${PREFIX}/wired/news.sample ${PREFIX}/wired/news ; \
44
	fi
45
	@if [ ! -f ${PREFIX}/wired/users ]; then \
46
		${CP} -p ${PREFIX}/wired/users.sample ${PREFIX}/wired/users ; \
47
	fi
33
	fi
34
.endfor
48
	PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
35
	PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
49
36
50
post-deinstall:
51
	${RM} -f ${PREFIX}/wired/etc/certificate.pem.sample
52
	PKG_PREFIX=${PREFIX} ${SH} pkg-deinstall ${PKGNAME} POST-DEINSTALL
53
54
.include <bsd.port.mk>
37
.include <bsd.port.mk>

Return to bug 166077