blob: 336d97c3d10bc50c038191d9a9ff3972ffa235a5 (
plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# $NetBSD: Makefile,v 1.12 2007/01/15 02:50:06 rillig Exp $
#
DISTNAME= pkg_alternatives-1.4
CATEGORIES= pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= jmmv@NetBSD.org
COMMENT= Generic wrappers for programs with similar interfaces
PKG_INSTALLATION_TYPES= overwrite pkgviews
EXTRACT_ONLY= # empty
NO_CHECKSUM= YES
NO_BUILD= YES
WRKSRC= ${WRKDIR}
DATADIR= ${PREFIX}/share/pkg_alternatives
DBDIR= ${PREFIX}/libdata/pkg_alternatives
EGDIR= ${PREFIX}/share/examples/pkg_alternatives
FILES_SUBST+= PKG_ALTERNATIVES=${PREFIX}/sbin/pkg_alternatives
REQD_DIRS= ${DBDIR}
MAKE_DIRS= ${PKG_SYSCONFDIR}
PKG_SYSCONFSUBDIR= pkg_alternatives
CONF_FILES= ${EGDIR}/filter.conf ${PKG_SYSCONFDIR}/filter.conf
SUBST_CLASSES+= vars
SUBST_STAGE.vars= do-configure
SUBST_MESSAGE.vars= Configuring sources.
SUBST_FILES.vars= *
SUBST_SED.vars= -e 's|@CONFDIR@|${PKG_SYSCONFDIR}|g'
SUBST_SED.vars+= -e 's|@DATADIR@|${DATADIR}|g'
SUBST_SED.vars+= -e 's|@DBDIR@|${DBDIR}|g'
SUBST_SED.vars+= -e 's|@PKGMANDIR@|${PKGMANDIR}|g'
SUBST_SED.vars+= -e 's|@PKG_DBDIR@|${PKG_DBDIR}|g'
SUBST_SED.vars+= -e 's|@PREFIX@|${PREFIX}|g'
SUBST_SED.vars+= -e 's|@ROOT_USER@|${ROOT_USER}|g'
SUBST_SED.vars+= -e 's|@SH@|${SH}|g'
INSTALLATION_DIRS= ${PKGMANDIR}/man8 sbin
CHECK_INTERPRETER_SKIP= ${DATADIR}/wrapper.sh
do-extract:
${CP} ${FILESDIR}/pkg_alternatives.sh ${WRKSRC}
${CP} ${FILESDIR}/pkg_alternatives.8 ${WRKSRC}
${CP} ${FILESDIR}/wrapper.sh ${WRKSRC}
${CP} ${FILESDIR}/wrapper.man ${WRKSRC}
${CP} ${FILESDIR}/filter.conf ${WRKSRC}
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/pkg_alternatives.sh \
${PREFIX}/sbin/pkg_alternatives
${INSTALL_MAN} ${WRKSRC}/pkg_alternatives.8 ${PREFIX}/${PKGMANDIR}/man8/
${INSTALL_DATA_DIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/wrapper.sh ${DATADIR}/
${INSTALL_DATA} ${WRKSRC}/wrapper.man ${DATADIR}/
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/filter.conf ${EGDIR}/
.include "../../mk/bsd.pkg.mk"
|