blob: 3db394d5c525637caa271fbadb53ae438add02c3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# New ports collection makefile for: networker-client
# Date created: Wed Apr 19 21:54:51 PDT 2000
# Whom: Matthew Jacob <mjacob@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= nwclient
PORTVERSION= 5.5.2
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.feral.com/pub/networker/freebsd/freebsd_40/
ARCH!= uname -m
DISTNAME= nwclient-${PORTVERSION}-freebsd-${ARCH}
EXTRACT_SUFX= .tgz
MAINTAINER= mjacob@freebsd.org
NO_BUILD= yes
post-patch:
@sed -e "s,^ROOTDIR.*$$,ROOTDIR=${PREFIX}," ${WRKSRC}/networker.sh >\
${WRKDIR}/NWCTMP && chmod +w ${WRKSRC}/networker.sh && \
cp ${WRKDIR}/NWCTMP ${WRKSRC}/networker.sh && \
chmod -w ${WRKSRC}/networker.sh
do-install:
@mkdir -p /usr/local/nsr/bin /usr/local/man/man8 /usr/local/etc/rc.d
@cd ${WRKSRC} && tar cf - gls | \
(cd /usr/local/nsr && tar --unlink -xpf -)
@cd ${WRKSRC}/${ARCH} && tar cf - . | \
(cd /usr/local/nsr/bin && tar --unlink -xpf -)
@cd ${WRKSRC} && tar cf - networker.sh | \
(cd /usr/local/etc/rc.d && tar --unlink -xpf -)
@cd ${WRKSRC}/catman && tar cf - *.1 | \
(cd /usr/local/man/cat1 && tar --unlink -xpf -)
@cd ${WRKSRC}/catman && tar cf - *.3 | \
(cd /usr/local/man/cat3 && tar --unlink -xpf -)
@cd ${WRKSRC}/catman && tar cf - *.5 | \
(cd /usr/local/man/cat5 && tar --unlink -xpf -)
@cd ${WRKSRC}/catman && tar cf - *.8 | \
(cd /usr/local/man/cat8 && tar --unlink -xpf -)
post-install:
@sed -e "s,ROOTDIR,${PREFIX}," < ${PKGMESSAGE}
@cd / && rm -f nsr && ln -s ${PREFIX}/nsr
pre-deinstall:
rm -f /nsr
.include <bsd.port.mk>
|