diff options
author | jmmv <jmmv@pkgsrc.org> | 2005-01-25 13:00:46 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2005-01-25 13:00:46 +0000 |
commit | 5293f7ab59107bba1f565b39cc79acae8277404e (patch) | |
tree | 8f8b07e903303655eea403594111b263d93cd5df /pkgtools/pkg_alternatives/Makefile | |
parent | 9ef1ab452beda7980b5ba9c04f91b0822ca4bfc7 (diff) | |
download | pkgsrc-5293f7ab59107bba1f565b39cc79acae8277404e.tar.gz |
Initial import of pkg_alternatives, version 1.0:
pkg_alternatives is a tool to manage the alternatives system provided by
The NetBSD Packages Collection, also known as pkgsrc. It creates, configures
and destroys generic wrappers used to run programs with similar interfaces.
No objections in tech-pkg@. Agreed with jlam@, who has provided lots of
design suggestions.
Diffstat (limited to 'pkgtools/pkg_alternatives/Makefile')
-rw-r--r-- | pkgtools/pkg_alternatives/Makefile | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/pkgtools/pkg_alternatives/Makefile b/pkgtools/pkg_alternatives/Makefile new file mode 100644 index 00000000000..3a3d33afa03 --- /dev/null +++ b/pkgtools/pkg_alternatives/Makefile @@ -0,0 +1,57 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/01/25 13:00:46 jmmv Exp $ +# + +DISTNAME= pkg_alternatives-1.0 +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 +NO_BUILDLINK= YES +USE_PKGINSTALL= YES +WRKSRC= ${WRKDIR} + +DATADIR= ${PREFIX}/share/pkg_alternatives +DBDIR= ${PREFIX}/libdata/pkg_alternatives + +MAKE_DIRS= ${DBDIR} +MAKE_DIRS+= ${PKG_SYSCONFDIR} + +PKG_SYSCONFSUBDIR= pkg_alternatives + +SUBST_CLASSES+= vars +SUBST_STAGE.vars= do-configure +SUBST_MESSAGE.vars= "Configuring sources." +SUBST_FILES.vars= ${WRKSRC}/* +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|@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= man/man8 sbin + +do-extract: + ${CP} ${FILESDIR}/pkg_alternatives.sh ${WRKSRC} + ${CP} ${FILESDIR}/pkg_alternatives.8 ${WRKSRC} + ${CP} ${FILESDIR}/wrapper.sh ${WRKSRC} + ${CP} ${FILESDIR}/wrapper.man ${WRKSRC} + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/pkg_alternatives.sh \ + ${PREFIX}/sbin/pkg_alternatives + ${INSTALL_MAN} ${WRKSRC}/pkg_alternatives.8 ${PREFIX}/man/man8/ + ${INSTALL_DATA_DIR} ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/wrapper.sh ${DATADIR}/ + ${INSTALL_DATA} ${WRKSRC}/wrapper.man ${DATADIR}/ + +.include "../../mk/bsd.pkg.mk" |