diff options
-rw-r--r-- | pkgtools/pkgin/DESCR | 4 | ||||
-rw-r--r-- | pkgtools/pkgin/MESSAGE | 11 | ||||
-rw-r--r-- | pkgtools/pkgin/Makefile | 56 | ||||
-rw-r--r-- | pkgtools/pkgin/PLIST | 7 | ||||
-rw-r--r-- | pkgtools/pkgin/distinfo | 5 | ||||
-rw-r--r-- | pkgtools/pkgin/options.mk | 11 |
6 files changed, 94 insertions, 0 deletions
diff --git a/pkgtools/pkgin/DESCR b/pkgtools/pkgin/DESCR new file mode 100644 index 00000000000..ca3c33698a4 --- /dev/null +++ b/pkgtools/pkgin/DESCR @@ -0,0 +1,4 @@ +pkgin is aimed at being an apt / yum like tool for managing +pkgsrc binary packages. It relies on pkg_summary(5) for +installation, removal and upgrade of packages and associated +dependencies, using a remote repository. diff --git a/pkgtools/pkgin/MESSAGE b/pkgtools/pkgin/MESSAGE new file mode 100644 index 00000000000..8a82002c610 --- /dev/null +++ b/pkgtools/pkgin/MESSAGE @@ -0,0 +1,11 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2009/06/08 13:58:26 imil Exp $ + +First steps before using pkgin. + +. Modify ${PREFIX}/etc/pkgin/repositories.conf to suit your platform +. Initialize the database : + + # pkgin update + +=========================================================================== diff --git a/pkgtools/pkgin/Makefile b/pkgtools/pkgin/Makefile new file mode 100644 index 00000000000..33f95634c5b --- /dev/null +++ b/pkgtools/pkgin/Makefile @@ -0,0 +1,56 @@ +# $NetBSD: Makefile,v 1.1.1.1 2009/06/08 13:58:26 imil Exp $ +# + +DISTNAME= pkgin-0.2.5 +CATEGORIES= pkgtools +MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/misc/imil/ + +MAINTAINER= imil@gcu.info +HOMEPAGE= http://imil.net/pkgin/ +COMMENT= Apt / yum like tool for managing pkgsrc binary packages +LICENSE= modified-bsd + +PKG_DESTDIR_SUPPORT= user-destdir + +EGDIR= ${PREFIX}/share/examples/${PKGBASE} +CONF_FILES= ${EGDIR}/repositories.conf.example \ + ${PKG_SYSCONFDIR}/${PKGBASE}/repositories.conf + +INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${EGDIR} \ + ${PKG_SYSCONFDIR}/${PKGBASE} + +WRKSRC= ${WRKDIR}/pkgin + +SUBST_CLASSES+= path +SUBST_STAGE.path= pre-configure +SUBST_MESSAGE.path= Adjusting path. +SUBST_FILES.path= Makefile actions.c pkgin.1 +SUBST_SED.path= -e "s|/usr/pkg|${PREFIX}|g" +SUBST_SED.path+= -e "s|/usr/sbin|${PKG_TOOLS_BIN}|g" + +USE_BSD_MAKEFILE= yes +USE_FEATURES= nbcompat + +NBCOMPAT_CONFIGURE_ARGS+= --enable-db + +.include "options.mk" + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/pkgin ${DESTDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/pkgin.1 \ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 + ${INSTALL_DATA} ${WRKSRC}/repositories.conf \ + ${DESTDIR}${EGDIR}/repositories.conf.example + + +.include "../../mk/bsd.prefs.mk" + +# libfetch has no builtin.mk and is included in NetBSD>=5 +.if ${OPSYS} != "NetBSD" || \ + (${OPSYS} == "NetBSD" && !empty(OS_VERSION:M[0-4].*)) +. include "../../net/libfetch/buildlink3.mk" +.endif + +.include "../../archivers/libarchive/buildlink3.mk" +.include "../../databases/sqlite3/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/pkgtools/pkgin/PLIST b/pkgtools/pkgin/PLIST new file mode 100644 index 00000000000..9d838f48978 --- /dev/null +++ b/pkgtools/pkgin/PLIST @@ -0,0 +1,7 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2009/06/08 13:58:26 imil Exp $ +bin/pkgin +man/man1/pkgin.1 +share/examples/pkgin/repositories.conf.example +@dirrm share/examples/pkgin +@exec ${MKDIR} %D/etc/pkgin +@dirrm etc/pkgin diff --git a/pkgtools/pkgin/distinfo b/pkgtools/pkgin/distinfo new file mode 100644 index 00000000000..c5f0b9960ff --- /dev/null +++ b/pkgtools/pkgin/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2009/06/08 13:58:26 imil Exp $ + +SHA1 (pkgin-0.2.5.tar.gz) = 27373fb35a142fdf5b097bd173cbc8453786b85e +RMD160 (pkgin-0.2.5.tar.gz) = 70854b01e1d2c12ed6be09175eaf5e48c0aa15ef +Size (pkgin-0.2.5.tar.gz) = 71392 bytes diff --git a/pkgtools/pkgin/options.mk b/pkgtools/pkgin/options.mk new file mode 100644 index 00000000000..16b105a7c15 --- /dev/null +++ b/pkgtools/pkgin/options.mk @@ -0,0 +1,11 @@ +# $NetBSD: options.mk,v 1.1.1.1 2009/06/08 13:58:26 imil Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.pkgin +PKG_SUPPORTED_OPTIONS= gzip-summary + +.include "../../mk/bsd.options.mk" + +# by default, pkg_summary extention is set to bz2 +.if !empty(PKG_OPTIONS:Mgzip-summary) +CPPFLAGS+= -DSUMEXT=\"gz\" +.endif |