aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--misc/Makefile1
-rw-r--r--misc/pkg_tarup/Makefile28
-rw-r--r--misc/pkg_tarup/distinfo1
-rw-r--r--misc/pkg_tarup/files/patch-aa62
-rw-r--r--misc/pkg_tarup/pkg-comment1
-rw-r--r--misc/pkg_tarup/pkg-descr11
-rw-r--r--misc/pkg_tarup/pkg-plist1
-rw-r--r--sysutils/pkg_tarup/Makefile28
-rw-r--r--sysutils/pkg_tarup/distinfo1
-rw-r--r--sysutils/pkg_tarup/files/patch-aa62
-rw-r--r--sysutils/pkg_tarup/pkg-comment1
-rw-r--r--sysutils/pkg_tarup/pkg-descr11
-rw-r--r--sysutils/pkg_tarup/pkg-plist1
13 files changed, 209 insertions, 0 deletions
diff --git a/misc/Makefile b/misc/Makefile
index fb43bfc32b9e..8b3ad6a37c31 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -109,6 +109,7 @@
SUBDIR += peq
SUBDIR += pdmenu
SUBDIR += pinfo
+ SUBDIR += pkg_tarup
SUBDIR += porteasy
SUBDIR += proxyper
SUBDIR += py-distutils
diff --git a/misc/pkg_tarup/Makefile b/misc/pkg_tarup/Makefile
new file mode 100644
index 000000000000..c294a74bc408
--- /dev/null
+++ b/misc/pkg_tarup/Makefile
@@ -0,0 +1,28 @@
+# New ports collection makefile for: pkg_tarup
+# Date created: 21 Sep 2000
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= pkg_tarup
+PORTVERSION= 1.2
+CATEGORIES= misc
+MASTER_SITES= http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/pkgsrc/pkgtools/pkg_tarup/files/
+DISTNAME= ${PORTNAME}\?rev=${PORTVERSION}\&content-type=text%2fplain
+EXTRACT_SUFX= # empty
+EXTRACT_ONLY= # empty
+
+MAINTAINER= knu@FreeBSD.org
+
+NO_WRKSUBDIR= yes
+NO_BUILD= yes
+
+do-extract:
+ ${MKDIR} ${WRKSRC}
+ ${CP} ${DISTDIR}/${DISTNAME} ${WRKSRC}/${PORTNAME}
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin/${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/misc/pkg_tarup/distinfo b/misc/pkg_tarup/distinfo
new file mode 100644
index 000000000000..47388063ef99
--- /dev/null
+++ b/misc/pkg_tarup/distinfo
@@ -0,0 +1 @@
+MD5 (pkg_tarup?rev=1.2&content-type=text%2fplain) = 48d0cf4c993994938671f62157f79a28
diff --git a/misc/pkg_tarup/files/patch-aa b/misc/pkg_tarup/files/patch-aa
new file mode 100644
index 000000000000..e6ec4113b353
--- /dev/null
+++ b/misc/pkg_tarup/files/patch-aa
@@ -0,0 +1,62 @@
+--- pkg_tarup.orig Wed May 17 01:02:05 2000
++++ pkg_tarup Thu Sep 21 15:00:35 2000
+@@ -11,17 +11,20 @@
+ PKG_SUFX=${PKG_SUFX:-tgz}
+
+ PKG="$1"
+-rPKG="`pkg_info -e \"$PKG\"`"
+
+-if [ "$PKG" = "" -o "$rPKG" = "" -o -f "${PKG_DBDIR}/${rPKG}" ]
++if [ "$PKG" = "" ]
+ then
+- echo Usage: $0 installed_pkg
++ echo Usage: $0 installed_package
+ exit 1
+ fi
+
+-PKG=$rPKG
+-echo "Taring up $PKG"
++if ! pkg_info -e "$PKG"
++then
++ echo $PKG is not installed.
++ exit 1
++fi
+
++echo "Taring up $PKG"
+
+ check_and_add() {
+ opt="$1"
+@@ -40,10 +43,10 @@
+
+ check_and_add -c ${PKG_DBDIR}/${PKG}/+COMMENT
+ check_and_add -d ${PKG_DBDIR}/${PKG}/+DESC
+-check_and_add -b ${PKG_DBDIR}/${PKG}/+BUILD_VERSION
+-check_and_add -B ${PKG_DBDIR}/${PKG}/+BUILD_INFO
++#check_and_add -b ${PKG_DBDIR}/${PKG}/+BUILD_VERSION
++#check_and_add -B ${PKG_DBDIR}/${PKG}/+BUILD_INFO
+ check_and_add -s ${PKG_DBDIR}/${PKG}/+SIZE_PKG
+-check_and_add -S ${PKG_DBDIR}/${PKG}/+SIZE_ALL
++#check_and_add -S ${PKG_DBDIR}/${PKG}/+SIZE_ALL
+ check_and_add -i ${PKG_DBDIR}/${PKG}/+INSTALL
+ check_and_add -k ${PKG_DBDIR}/${PKG}/+DEINSTALL
+ check_and_add -r ${PKG_DBDIR}/${PKG}/+REQUIRE
+@@ -54,7 +57,7 @@
+ sed -n \
+ -e '/^@comment MD5:/d' \
+ -e '/^@cwd \.$/,$d' \
+- -e '/\$NetBSD/,$p' \
++ -e 'p' \
+ <${PKG_DBDIR}/${PKG}/+CONTENTS >$PLIST
+
+ # Duplicate first @cwd (work around pkg_create "feature" ...)
+@@ -80,10 +83,8 @@
+ ${PKG_ARGS} \
+ -v \
+ -f ${PLIST} \
+- -l \
+ -p "`pkg_info -qp ${PKG} | head -1 | awk '{ print $2 }'`" \
+ -P "`pkg_info -qf ${PKG} | grep ^@pkgdep | awk '{ print $2 }'`" \
+- -C "`pkg_info -qf ${PKG} | grep ^@pkgcfl | awk '{ print $2 }'`" \
+ ${PKGREPOSITORY}/${PKG}.${PKG_SUFX}
+
+ rm -f ${PLIST}
diff --git a/misc/pkg_tarup/pkg-comment b/misc/pkg_tarup/pkg-comment
new file mode 100644
index 000000000000..13b1fbe3822b
--- /dev/null
+++ b/misc/pkg_tarup/pkg-comment
@@ -0,0 +1 @@
+Generates binary package from installed package
diff --git a/misc/pkg_tarup/pkg-descr b/misc/pkg_tarup/pkg-descr
new file mode 100644
index 000000000000..3c60b83cfa57
--- /dev/null
+++ b/misc/pkg_tarup/pkg-descr
@@ -0,0 +1,11 @@
+Script to tar up an already instaled package.
+
+The Script has still a problem, as the MTREE file is removed after
+a pkg_add/make install. As leaving the MTREE file will lead to a
+~10% increase in space needed for /var/db/pkg which I'm not sure
+we should do, esp. as the files are almost always the same again.
+(On my notebook with ~250 installed pkgs, the size increasement
+would be from 8.8MB to 10MB).
+
+Author: Hubert Feyrer <hubert@feyrer.de>
+WWW: http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/pkgtools/pkg_tarup/
diff --git a/misc/pkg_tarup/pkg-plist b/misc/pkg_tarup/pkg-plist
new file mode 100644
index 000000000000..67155e3576fb
--- /dev/null
+++ b/misc/pkg_tarup/pkg-plist
@@ -0,0 +1 @@
+sbin/pkg_tarup
diff --git a/sysutils/pkg_tarup/Makefile b/sysutils/pkg_tarup/Makefile
new file mode 100644
index 000000000000..c294a74bc408
--- /dev/null
+++ b/sysutils/pkg_tarup/Makefile
@@ -0,0 +1,28 @@
+# New ports collection makefile for: pkg_tarup
+# Date created: 21 Sep 2000
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= pkg_tarup
+PORTVERSION= 1.2
+CATEGORIES= misc
+MASTER_SITES= http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/pkgsrc/pkgtools/pkg_tarup/files/
+DISTNAME= ${PORTNAME}\?rev=${PORTVERSION}\&content-type=text%2fplain
+EXTRACT_SUFX= # empty
+EXTRACT_ONLY= # empty
+
+MAINTAINER= knu@FreeBSD.org
+
+NO_WRKSUBDIR= yes
+NO_BUILD= yes
+
+do-extract:
+ ${MKDIR} ${WRKSRC}
+ ${CP} ${DISTDIR}/${DISTNAME} ${WRKSRC}/${PORTNAME}
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin/${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/sysutils/pkg_tarup/distinfo b/sysutils/pkg_tarup/distinfo
new file mode 100644
index 000000000000..47388063ef99
--- /dev/null
+++ b/sysutils/pkg_tarup/distinfo
@@ -0,0 +1 @@
+MD5 (pkg_tarup?rev=1.2&content-type=text%2fplain) = 48d0cf4c993994938671f62157f79a28
diff --git a/sysutils/pkg_tarup/files/patch-aa b/sysutils/pkg_tarup/files/patch-aa
new file mode 100644
index 000000000000..e6ec4113b353
--- /dev/null
+++ b/sysutils/pkg_tarup/files/patch-aa
@@ -0,0 +1,62 @@
+--- pkg_tarup.orig Wed May 17 01:02:05 2000
++++ pkg_tarup Thu Sep 21 15:00:35 2000
+@@ -11,17 +11,20 @@
+ PKG_SUFX=${PKG_SUFX:-tgz}
+
+ PKG="$1"
+-rPKG="`pkg_info -e \"$PKG\"`"
+
+-if [ "$PKG" = "" -o "$rPKG" = "" -o -f "${PKG_DBDIR}/${rPKG}" ]
++if [ "$PKG" = "" ]
+ then
+- echo Usage: $0 installed_pkg
++ echo Usage: $0 installed_package
+ exit 1
+ fi
+
+-PKG=$rPKG
+-echo "Taring up $PKG"
++if ! pkg_info -e "$PKG"
++then
++ echo $PKG is not installed.
++ exit 1
++fi
+
++echo "Taring up $PKG"
+
+ check_and_add() {
+ opt="$1"
+@@ -40,10 +43,10 @@
+
+ check_and_add -c ${PKG_DBDIR}/${PKG}/+COMMENT
+ check_and_add -d ${PKG_DBDIR}/${PKG}/+DESC
+-check_and_add -b ${PKG_DBDIR}/${PKG}/+BUILD_VERSION
+-check_and_add -B ${PKG_DBDIR}/${PKG}/+BUILD_INFO
++#check_and_add -b ${PKG_DBDIR}/${PKG}/+BUILD_VERSION
++#check_and_add -B ${PKG_DBDIR}/${PKG}/+BUILD_INFO
+ check_and_add -s ${PKG_DBDIR}/${PKG}/+SIZE_PKG
+-check_and_add -S ${PKG_DBDIR}/${PKG}/+SIZE_ALL
++#check_and_add -S ${PKG_DBDIR}/${PKG}/+SIZE_ALL
+ check_and_add -i ${PKG_DBDIR}/${PKG}/+INSTALL
+ check_and_add -k ${PKG_DBDIR}/${PKG}/+DEINSTALL
+ check_and_add -r ${PKG_DBDIR}/${PKG}/+REQUIRE
+@@ -54,7 +57,7 @@
+ sed -n \
+ -e '/^@comment MD5:/d' \
+ -e '/^@cwd \.$/,$d' \
+- -e '/\$NetBSD/,$p' \
++ -e 'p' \
+ <${PKG_DBDIR}/${PKG}/+CONTENTS >$PLIST
+
+ # Duplicate first @cwd (work around pkg_create "feature" ...)
+@@ -80,10 +83,8 @@
+ ${PKG_ARGS} \
+ -v \
+ -f ${PLIST} \
+- -l \
+ -p "`pkg_info -qp ${PKG} | head -1 | awk '{ print $2 }'`" \
+ -P "`pkg_info -qf ${PKG} | grep ^@pkgdep | awk '{ print $2 }'`" \
+- -C "`pkg_info -qf ${PKG} | grep ^@pkgcfl | awk '{ print $2 }'`" \
+ ${PKGREPOSITORY}/${PKG}.${PKG_SUFX}
+
+ rm -f ${PLIST}
diff --git a/sysutils/pkg_tarup/pkg-comment b/sysutils/pkg_tarup/pkg-comment
new file mode 100644
index 000000000000..13b1fbe3822b
--- /dev/null
+++ b/sysutils/pkg_tarup/pkg-comment
@@ -0,0 +1 @@
+Generates binary package from installed package
diff --git a/sysutils/pkg_tarup/pkg-descr b/sysutils/pkg_tarup/pkg-descr
new file mode 100644
index 000000000000..3c60b83cfa57
--- /dev/null
+++ b/sysutils/pkg_tarup/pkg-descr
@@ -0,0 +1,11 @@
+Script to tar up an already instaled package.
+
+The Script has still a problem, as the MTREE file is removed after
+a pkg_add/make install. As leaving the MTREE file will lead to a
+~10% increase in space needed for /var/db/pkg which I'm not sure
+we should do, esp. as the files are almost always the same again.
+(On my notebook with ~250 installed pkgs, the size increasement
+would be from 8.8MB to 10MB).
+
+Author: Hubert Feyrer <hubert@feyrer.de>
+WWW: http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/pkgtools/pkg_tarup/
diff --git a/sysutils/pkg_tarup/pkg-plist b/sysutils/pkg_tarup/pkg-plist
new file mode 100644
index 000000000000..67155e3576fb
--- /dev/null
+++ b/sysutils/pkg_tarup/pkg-plist
@@ -0,0 +1 @@
+sbin/pkg_tarup