aboutsummaryrefslogtreecommitdiff
path: root/print/rlpr/Makefile
blob: a88f7d0e08e5061fa26971d46d7d6701bc1a16db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
PORTNAME=	rlpr
PORTVERSION=	2.06
PORTREVISION=	4
CATEGORIES=	print net
MASTER_SITES=	http://fossies.org/unix/misc/old/	\
		http://linuxfocus.org/~guido/	\
		http://truffula.com/rlpr/

MAINTAINER=	ports@virtual-estates.net
COMMENT=	Send print jobs to lpd servers anywhere on a network
WWW=		http://freecode.com/projects/rlpr

LICENSE=	GPLv2

USES=		cpe
GNU_CONFIGURE=	yes
GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
# 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:
#USES+=	gettext
#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 ${STAGEDIR}${PREFIX}/bin/rlpq	\
		${STAGEDIR}${PREFIX}/bin/rlpr	\
		${STAGEDIR}${PREFIX}/bin/rlprm

PLIST_FILES+=	share/man/man1/rlpq.1.gz share/man/man1/rlpr.1.gz share/man/man1/rlprm.1.gz \
		share/man/man5/rlprrc.5.gz share/man/man8/rlprd.8.gz

.include <bsd.port.mk>