aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/LPRng/Makefile
blob: 52c9f374bffe9ae5329409801bd4b672c8021796 (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
43
44
# New ports collection makefile for:    LPRng
# Version required: 3.5.1
# Date created:     2 Apr 1997
# Whom:         desmo@bandwidth.org
#
# $Id: Makefile,v 1.7 1999/08/22 23:33:26 mharo Exp $
#

DISTNAME=   LPRng-3.5.1
CATEGORIES= sysutils print
MASTER_SITES=   ftp://ftp.astart.com/pub/LPRng/LPRng/
EXTRACT_SUFX=   .tgz
EXTRA_FILES=    LPRng_DOC-3.5.1.tgz
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX} ${EXTRA_FILES}
EXTRACT_ONLY=   ${DISTNAME}${EXTRACT_SUFX}

MAINTAINER= desmo@bandwidth.org

MAKEFILE=   Makefile.bsd
HAS_CONFIGURE=  yes
CONFIGURE_ARGS= --with-lpddir=/usr/local/sbin

MAN1=       authenticate_pgp.1 cancel.1 lp.1 lpbanner.1 lpc.1 lpf.1 \
        lpq.1 lpr.1 lpraccnt.1 lprm.1 lpstat.1 monitor.1 \
        readfilecount.1
MAN5=       lpd.conf.5 lpd.perms.5 printcap.5
MAN8=       checkpc.8 lpd.8
MANCOMPRESSED=  yes

post-install:
    (cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} default)
    @${CAT} ${FILESDIR}/lprng.sh | \
        ${SED} -e "s|@@PREFIX@@|${PREFIX}|g" > ${PREFIX}/etc/rc.d/lprng.sh
    @${CHMOD} +x ${PREFIX}/etc/rc.d/lprng.sh
    ${INSTALL} -d -g bin -o bin -m 0555 ${PREFIX}/share/doc/LPRng
    @for file in ${EXTRA_FILES}; do \
        ${CP} ${DISTDIR}/$$file ${PREFIX}/share/doc/LPRng; \
        cd ${PREFIX}/share/doc/LPRng; \
        tar xvfz $$file; \
        ${RM} ${PREFIX}/share/doc/LPRng/$$file; \
    done
    @${CAT} ${PKGDIR}/MESSAGE

.include <bsd.port.mk>