aboutsummaryrefslogtreecommitdiff
path: root/print/rlpr/Makefile
diff options
context:
space:
mode:
authorSatoshi Taoka <taoka@FreeBSD.org>1999-05-11 01:59:51 +0000
committerSatoshi Taoka <taoka@FreeBSD.org>1999-05-11 01:59:51 +0000
commite4c6d6a9c62ab52713d169e8f7463d7229f1e393 (patch)
tree0665b53d7a7904168a4fcda32bdfb3c53058af41 /print/rlpr/Makefile
parentfafa6406bcfb95899f946ee8a105a42de44bad8a (diff)
downloadports-e4c6d6a9c62ab52713d169e8f7463d7229f1e393.tar.gz
ports-e4c6d6a9c62ab52713d169e8f7463d7229f1e393.zip
Send print jobs to lpd servers anywhere on a network.
PR: 11072 Submiited by: Mikhail Teterin <mi@aldan.algebra.com>
Notes
Notes: svn path=/head/; revision=18776
Diffstat (limited to 'print/rlpr/Makefile')
-rw-r--r--print/rlpr/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/print/rlpr/Makefile b/print/rlpr/Makefile
new file mode 100644
index 000000000000..0a857b282c2c
--- /dev/null
+++ b/print/rlpr/Makefile
@@ -0,0 +1,40 @@
+# New ports collection makefile for: rlpr
+# Version required: 2.0
+# Date created: 11 April 1999
+# Whom: Mikhail Teterin
+#
+# $Id$
+
+DISTNAME= rlpr-2.00
+CATEGORIES= print net
+MASTER_SITES= ftp://sherilyn.ne.mediaone.net/pub/
+
+MAINTAINER= mi@aldan.algebra.com
+
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${PREFIX}/include" LDFLAGS="-L${PREFIX}/lib -lintl"
+CONFIGURE_ARGS= --with-catgets
+
+RLPRRC= ${WRKSRC}/src/rlprrc.h
+
+post-patch:
+ @echo "Replacing references to /etc/rlprrc to ${PREFIX}/etc/rlprrc"
+ @test -e ${RLPRRC}.orig || ${MV} ${RLPRRC} ${RLPRRC}.orig && \
+ ${SED} s%/etc/%${PREFIX}/etc/% ${RLPRRC}.orig > ${RLPRRC}
+ @for man in `${GREP} -l /etc/rlprrc ${WRKSRC}/man/*.[0-9n]`; do \
+ if test -e $$man.orig; then continue; fi; \
+ ${MV} $$man $$man.orig ; \
+ ${SED} s%/etc/rlprrc%${PREFIX}/etc/rlprrc%g < $$man.orig > \
+ $$man ; \
+ done
+
+post-install:
+ @echo "Making the installed binaries suid,\
+ for the remote lpds to talk to them"
+ chmod u+s ${PREFIX}/bin/rlpq ${PREFIX}/bin/rlpr ${PREFIX}/bin/rlprm
+
+MAN1= rlpr.1 rlpq.1 rlprm.1
+MAN5= rlprrc.5
+MAN8= rlprd.8
+
+.include <bsd.port.mk>