freebsd-ports/print/rlpr/Makefile
Mikhail Teterin b7542224fb Add a patch to allow specifying remote printer by IP-address, rather
than only by hostname. Bump PORTREVISION.

PR:	ports/166583
Submitted by:	Norbert Koch

While here:
	* replace the (short) pkg-plist with PLIST_FILES variable;
	* relax permissions on the client binaries from 4511 to 4555 --
	  otherwise tar refuses to package them, when running as non-root;
	* declare license (GPLv2);
	* link to description page, that works (author's site is down);
	* add some working mirrors (author's site is down).

Feature safe:	yes
2012-04-02 16:01:25 +00:00

46 lines
1.2 KiB
Makefile

# New ports collection makefile for: rlpr
# Date created: 11 April 1999
# Whom: Mikhail Teterin
#
# $FreeBSD$
#
PORTNAME= rlpr
PORTVERSION= 2.06
PORTREVISION= 2
CATEGORIES= print net
MASTER_SITES= http://fossies.org/unix/misc/old/ \
http://linuxfocus.org/~guido/ \
http://truffula.com/rlpr/
MAINTAINER= mi@aldan.algebra.com
COMMENT= Send print jobs to lpd servers anywhere on a network
LICENSE= GPLv2
GNU_CONFIGURE= yes
# rlpr supports gettext/libintl, but does not currently come with ANY
# translation .po files. When this changes, it would make sense to
# enable the use of gettext in this port:
#USE_GETTEXT= yes
#CONFIGURE_ENV= CPPFLAGS="-I${PREFIX}/include" LDFLAGS="-L${PREFIX}/lib -lintl"
CONFIGURE_ARGS= --disable-nls --without-catgets
PLIST_FILES= bin/rlpr bin/rlpq bin/rlprm bin/rlprd
post-patch:
# Replacing references to /etc/rlprrc to ${PREFIX}/etc/rlprrc
${REINPLACE_CMD} -e 's%/etc/rlprrc%${PREFIX}/etc/rlprrc%g' \
${WRKSRC}/src/rlprrc.h \
`${GREP} -Fl /etc/rlprrc ${WRKSRC}/man/*.[0-9n]`
post-install:
# Making the installed binaries suid,\
for the remote lpds to talk to them"
${CHMOD} 4555 ${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>