aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/LPRng/Makefile
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>1997-06-18 16:36:41 +0800
committertg <tg@FreeBSD.org>1997-06-18 16:36:41 +0800
commit863d3791e038da9fc8d13c9c20daf0b349d3abc0 (patch)
treebc7911f519542743f513db236facdc09d8a18e5a /sysutils/LPRng/Makefile
parenta3ecd5e0592fa58ecb481569404eadd14cd50143 (diff)
downloadfreebsd-ports-gnome-863d3791e038da9fc8d13c9c20daf0b349d3abc0.tar.gz
freebsd-ports-gnome-863d3791e038da9fc8d13c9c20daf0b349d3abc0.tar.zst
freebsd-ports-gnome-863d3791e038da9fc8d13c9c20daf0b349d3abc0.zip
Long threatened import of LPRng port.
PR: 3185 Submitted by: Kenneth J. Monville <desmo@bandwidth.org>
Diffstat (limited to 'sysutils/LPRng/Makefile')
-rw-r--r--sysutils/LPRng/Makefile61
1 files changed, 61 insertions, 0 deletions
diff --git a/sysutils/LPRng/Makefile b/sysutils/LPRng/Makefile
new file mode 100644
index 000000000000..8934d6dfc866
--- /dev/null
+++ b/sysutils/LPRng/Makefile
@@ -0,0 +1,61 @@
+# New ports collection makefile for: LPRng
+# Version required: 3.2.3
+# Date created: 2 Apr 1997
+# Whom: desmo@bandwidth.org
+#
+# $Id$
+#
+
+DISTNAME= LPRng-3.2.3
+CATEGORIES= sysutils print
+MASTER_SITES= ftp://dickory.sdsu.edu/pub/LPRng/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= desmo@bandwidth.org
+
+MAKEFILE= Makefile.bsd
+GNU_CONFIGURE= yes
+
+post-patch:
+ @mv ${WRKSRC}/src/common/default.c ${WRKSRC}/src/common/default.c.tmp
+ @${SED} -e "s|@@PREFIX@@|${PREFIX}|g" \
+ <${WRKSRC}/src/common/default.c.tmp >${WRKSRC}/src/common/default.c
+
+pre-build:
+ (cd ${WRKSRC}/po ; ln -s Makefile ${MAKEFILE})
+
+post-install:
+ (cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} default)
+ ${LDCONFIG} -m ${PREFIX}/lib
+ ${INSTALL} -d -g bin -o bin -m 0555 ${PREFIX}/share/doc/LPRng
+ (cd ${WRKSRC} ; ${INSTALL_DATA} \
+ README \
+ README.1st \
+ README.LPRng_to_lpr_spooling \
+ README.accounting \
+ README.authentication \
+ README.banner \
+ README.bouncequeues \
+ README.deskjet \
+ README.install \
+ README.kerberos_authentication \
+ README.logger \
+ README.lp_Malformed_from_address \
+ README.lp_emulation \
+ README.lpd.conf \
+ README.lpd.perms \
+ README.nis \
+ README.pgp_authentication \
+ README.ports \
+ README.printcap \
+ README.routing \
+ README.solaris \
+ README.solaris.newsprint \
+ README.statusdisplays \
+ ${PREFIX}/share/doc/LPRng )
+ @cat ${FILESDIR}/lprng.sh | \
+ ${SED} -e "s|@@PREFIX@@|${PREFIX}|g" > ${PREFIX}/etc/rc.d/lprng.sh
+ @chmod +x ${PREFIX}/etc/rc.d/lprng.sh
+ @cat ${PKGDIR}/MESSAGE
+
+.include <bsd.port.mk>