1999-05-10 21:59:51 -04:00
|
|
|
# New ports collection makefile for: rlpr
|
|
|
|
# Date created: 11 April 1999
|
|
|
|
# Whom: Mikhail Teterin
|
|
|
|
#
|
1999-08-30 21:53:22 -04:00
|
|
|
# $FreeBSD$
|
2000-04-09 13:41:40 -04:00
|
|
|
#
|
1999-05-10 21:59:51 -04:00
|
|
|
|
2000-04-09 13:50:59 -04:00
|
|
|
PORTNAME= rlpr
|
|
|
|
PORTVERSION= 2.02
|
1999-05-10 21:59:51 -04:00
|
|
|
CATEGORIES= print net
|
2000-03-23 19:11:03 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SUNSITE}
|
|
|
|
MASTER_SITE_SUBDIR= system/printing
|
1999-05-10 21:59:51 -04:00
|
|
|
|
|
|
|
MAINTAINER= mi@aldan.algebra.com
|
|
|
|
|
2000-03-23 19:11:03 -05:00
|
|
|
#LIB_DEPENDS= intl.1:${PORTSDIR}/devel/gettext
|
1999-05-12 17:31:19 -04:00
|
|
|
|
1999-05-10 21:59:51 -04:00
|
|
|
GNU_CONFIGURE= yes
|
2000-03-23 19:11:03 -05:00
|
|
|
#CONFIGURE_ENV= CPPFLAGS="-I${PREFIX}/include" LDFLAGS="-L${PREFIX}/lib -lintl"
|
|
|
|
CONFIGURE_ARGS= --disable-nls --without-catgets
|
1999-05-10 21:59:51 -04:00
|
|
|
|
|
|
|
post-patch:
|
2000-03-23 19:11:03 -05:00
|
|
|
# Replacing references to /etc/rlprrc to ${PREFIX}/etc/rlprrc
|
|
|
|
@for f in ${WRKSRC}/src/rlprrc.h \
|
|
|
|
`${GREP} -l /etc/rlprrc ${WRKSRC}/man/*.[0-9n]`; do \
|
|
|
|
if test -e $$f.orig; then continue; fi; \
|
|
|
|
${MV} $$f $$f.orig ; \
|
|
|
|
${SED} s%/etc/rlprrc%${PREFIX}/etc/rlprrc%g < $$f.orig > \
|
|
|
|
$$f ; \
|
1999-05-10 21:59:51 -04:00
|
|
|
done
|
|
|
|
|
|
|
|
post-install:
|
2000-03-23 19:11:03 -05:00
|
|
|
# Making the installed binaries suid,\
|
1999-08-27 18:30:39 -04:00
|
|
|
for the remote lpds to talk to them"
|
2000-03-23 19:11:03 -05:00
|
|
|
${CHMOD} 4511 ${PREFIX}/bin/rlpq ${PREFIX}/bin/rlpr ${PREFIX}/bin/rlprm
|
1999-05-10 21:59:51 -04:00
|
|
|
|
|
|
|
MAN1= rlpr.1 rlpq.1 rlprm.1
|
|
|
|
MAN5= rlprrc.5
|
|
|
|
MAN8= rlprd.8
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|