Update print/foomatic-db to version 20161105
[dports.git] / print / rlpr / Makefile
1 # Created by: Mikhail Teterin
2 # $FreeBSD$
3
4 PORTNAME=       rlpr
5 PORTVERSION=    2.06
6 PORTREVISION=   2
7 CATEGORIES=     print net
8 MASTER_SITES=   http://fossies.org/unix/misc/old/       \
9                 http://linuxfocus.org/~guido/   \
10                 http://truffula.com/rlpr/
11
12 MAINTAINER=     mi@aldan.algebra.com
13 COMMENT=        Send print jobs to lpd servers anywhere on a network
14
15 LICENSE=        GPLv2
16
17 GNU_CONFIGURE=  yes
18 # rlpr supports gettext/libintl, but does not currently come with ANY
19 # translation .po files. When this changes, it would make sense to
20 # enable the use of gettext in this port:
21 #USES=  gettext
22 #CONFIGURE_ENV= CPPFLAGS="-I${PREFIX}/include" LDFLAGS="-L${PREFIX}/lib -lintl"
23 CONFIGURE_ARGS= --disable-nls --without-catgets
24 PLIST_FILES=    bin/rlpr bin/rlpq bin/rlprm bin/rlprd
25
26 post-patch:
27         # Replacing references to /etc/rlprrc to ${PREFIX}/etc/rlprrc
28         ${REINPLACE_CMD} -e 's%/etc/rlprrc%${PREFIX}/etc/rlprrc%g' \
29                 ${WRKSRC}/src/rlprrc.h \
30                 `${GREP} -Fl /etc/rlprrc ${WRKSRC}/man/*.[0-9n]`
31
32 post-install:
33         # Making the installed binaries suid,\
34                       for the remote lpds to talk to them
35         ${CHMOD} 4555 ${STAGEDIR}${PREFIX}/bin/rlpq     \
36                 ${STAGEDIR}${PREFIX}/bin/rlpr   \
37                 ${STAGEDIR}${PREFIX}/bin/rlprm
38
39 PLIST_FILES+=   man/man1/rlpq.1.gz man/man1/rlpr.1.gz man/man1/rlprm.1.gz \
40                 man/man5/rlprrc.5.gz man/man8/rlprd.8.gz
41
42 .include <bsd.port.mk>