mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
44d0d0335e
(alpha && i386).
45 lines
1.3 KiB
Makefile
45 lines
1.3 KiB
Makefile
# 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 - . | \
|
|
(cd /usr/local/man/man8 && tar --unlink -xpf -)
|
|
|
|
post-install:
|
|
@sed -e "s,ROOTDIR,${PREFIX}," < ${PKGDIR}/MESSAGE
|
|
@cd / && rm -f nsr && ln -s ${PREFIX}/nsr
|
|
|
|
pre-deinstall:
|
|
rm -f /nsr
|
|
|
|
.include <bsd.port.mk>
|