aboutsummaryrefslogtreecommitdiffstats
path: root/ports-mgmt/pkg_add_it/Makefile
blob: c883e38a64e41800d10cf8d58f210d045f84fa95 (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
# New ports collection makefile for:    pkg_add_it
# Date created:             05 October 2008
# Whom:                 Marin Atanasov <dnaeon@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   pkg_add_it
PORTVERSION=    1.3.2
CATEGORIES= ports-mgmt
MASTER_SITES=   http://www.unix-heaven.org/FreeBSD/distfiles/

MAINTAINER= dnaeon@gmail.com
COMMENT=    Interactive tool for package installation

MAN1=       pkg_add_it.1
MAN5=       pkg_add_it.conf.5
PLIST_FILES=    etc/pkg_add_it.conf sbin/pkg_add_it

.include <bsd.port.pre.mk>

PKG_RELEASE!=   ${UNAME} -r | ${CUT} -d '-' -f 1,2 | ${SED} -e 's|\.[0-9]*.*|-STABLE|'

post-patch:
    ${REINPLACE_CMD} -e 's|@PKG_ARCH@|${ARCH}|' \
        -e 's|@PKG_RELEASE@|${PKG_RELEASE:L}|' ${WRKSRC}/pkg_add_it.conf

do-install:
    ${INSTALL_DATA} ${WRKSRC}/pkg_add_it.conf ${PREFIX}/etc/
    ${INSTALL_PROGRAM} ${WRKSRC}/pkg_add_it ${PREFIX}/sbin/
    ${INSTALL_MAN} ${WRKSRC}/pkg_add_it.1 ${MAN1PREFIX}/man/man1/
    ${INSTALL_MAN} ${WRKSRC}/pkg_add_it.conf.5 ${MAN5PREFIX}/man/man5/

post-install:
    @${ECHO_CMD}
    @${CAT} ${PKGMESSAGE}
    @${ECHO_CMD}

.include <bsd.port.post.mk>