pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkgin pkgin is aimed at being an apt / yum li...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7a4260569a73
branches:  trunk
changeset: 394306:7a4260569a73
user:      imil <imil%pkgsrc.org@localhost>
date:      Mon Jun 08 13:58:26 2009 +0000

description:
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@

diffstat:

 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(+), 0 deletions(-)

diffs (118 lines):

diff -r 4248ba3fc3f3 -r 7a4260569a73 pkgtools/pkgin/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/pkgtools/pkgin/DESCR      Mon Jun 08 13:58:26 2009 +0000
@@ -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 -r 4248ba3fc3f3 -r 7a4260569a73 pkgtools/pkgin/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/pkgtools/pkgin/MESSAGE    Mon Jun 08 13:58:26 2009 +0000
@@ -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 -r 4248ba3fc3f3 -r 7a4260569a73 pkgtools/pkgin/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/pkgtools/pkgin/Makefile   Mon Jun 08 13:58:26 2009 +0000
@@ -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@localhost
+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 -r 4248ba3fc3f3 -r 7a4260569a73 pkgtools/pkgin/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/pkgtools/pkgin/PLIST      Mon Jun 08 13:58:26 2009 +0000
@@ -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 -r 4248ba3fc3f3 -r 7a4260569a73 pkgtools/pkgin/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/pkgtools/pkgin/distinfo   Mon Jun 08 13:58:26 2009 +0000
@@ -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 -r 4248ba3fc3f3 -r 7a4260569a73 pkgtools/pkgin/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/pkgtools/pkgin/options.mk Mon Jun 08 13:58:26 2009 +0000
@@ -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



Home | Main Index | Thread Index | Old Index