From 3fac2ddfbe2af89f8a2a0ecc9f18b6291995fbde Mon Sep 17 00:00:00 2001 From: imil Date: Mon, 8 Jun 2009 13:58:26 +0000 Subject: 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. OK'd by seb@ --- pkgtools/pkgin/DESCR | 4 ++++ pkgtools/pkgin/MESSAGE | 11 ++++++++++ pkgtools/pkgin/Makefile | 56 +++++++++++++++++++++++++++++++++++++++++++++++ pkgtools/pkgin/PLIST | 7 ++++++ pkgtools/pkgin/distinfo | 5 +++++ pkgtools/pkgin/options.mk | 11 ++++++++++ 6 files changed, 94 insertions(+) create mode 100644 pkgtools/pkgin/DESCR create mode 100644 pkgtools/pkgin/MESSAGE create mode 100644 pkgtools/pkgin/Makefile create mode 100644 pkgtools/pkgin/PLIST create mode 100644 pkgtools/pkgin/distinfo create mode 100644 pkgtools/pkgin/options.mk (limited to 'pkgtools') 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 -- cgit v1.2.3