summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorerh <erh@pkgsrc.org>2004-10-29 17:26:18 +0000
committererh <erh@pkgsrc.org>2004-10-29 17:26:18 +0000
commitdc9e3c33a6921e20c4faa197e09b7197aba1d564 (patch)
tree8b0b789d7acb763737597ddfb6a6111ff3542541 /misc
parentb063bf88f14abc95ce09b2ea9a710c78c015ef18 (diff)
downloadpkgsrc-dc9e3c33a6921e20c4faa197e09b7197aba1d564.tar.gz
Import dpkg-1.20.24 from pkgsrc-wip.
Package maintenance system for Debian Works with .deb files.
Diffstat (limited to 'misc')
-rw-r--r--misc/dpkg/DESCR5
-rw-r--r--misc/dpkg/Makefile40
-rw-r--r--misc/dpkg/PLIST97
-rw-r--r--misc/dpkg/distinfo8
-rw-r--r--misc/dpkg/patches/patch-aa13
-rw-r--r--misc/dpkg/patches/patch-ab15
-rw-r--r--misc/dpkg/patches/patch-ac13
-rw-r--r--misc/dpkg/patches/patch-ad14
8 files changed, 205 insertions, 0 deletions
diff --git a/misc/dpkg/DESCR b/misc/dpkg/DESCR
new file mode 100644
index 00000000000..77f1cb1b48e
--- /dev/null
+++ b/misc/dpkg/DESCR
@@ -0,0 +1,5 @@
+This package contains the programs which handle the installation
+and removal of packages on your system. The primary interface for
+the dpkg suite is the `dselect' program; a more low-level and less
+user-friendly interface is available in the form of the `dpkg'
+command.
diff --git a/misc/dpkg/Makefile b/misc/dpkg/Makefile
new file mode 100644
index 00000000000..bb88f7c8258
--- /dev/null
+++ b/misc/dpkg/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/29 17:26:18 erh Exp $
+#
+
+DISTNAME= ${PKGNAME:S,-,_,}
+PKGNAME= dpkg-1.10.24
+CATEGORIES= misc
+MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/d/dpkg/}
+
+MAINTAINER= tech-pkg@NetBSD.org
+HOMEPAGE= http://packages.debian.org/stable/base/dpkg.html
+COMMENT= Package maintenance system for Debian
+
+BUILD_USES_MSGFMT= yes
+
+WRKSRC= ${WRKDIR}/${PKGNAME}
+
+USE_BUILDLINK3= yes
+USE_PKGLOCALEDIR= yes
+GNU_CONFIGURE= yes
+USE_GNU_TOOLS+= make
+USE_NCURSES= # tigetstr()
+USE_PERL5= build
+USE_PKGINSTALL= yes
+
+REPLACE_PERL= ${WRKSRC}/scripts/*.pl
+
+ADMIN_DIR= ${PREFIX}/var/db
+
+CONFIGURE_ARGS+= --with-zlib
+CONFIGURE_ARGS+= --with-start-stop-daemon=no
+CONFIGURE_ARGS+= --with-sgml-doc=no
+CONFIGURE_ARGS+= --with-admindir=${ADMIN_DIR}
+CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/share/dpkg
+
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../devel/ncurses/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../lang/perl5/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/misc/dpkg/PLIST b/misc/dpkg/PLIST
new file mode 100644
index 00000000000..8a549c9a5f8
--- /dev/null
+++ b/misc/dpkg/PLIST
@@ -0,0 +1,97 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/10/29 17:26:18 erh Exp $
+bin/822-date
+bin/dpkg
+bin/dpkg-architecture
+bin/dpkg-buildpackage
+bin/dpkg-checkbuilddeps
+bin/dpkg-deb
+bin/dpkg-distaddfile
+bin/dpkg-genchanges
+bin/dpkg-gencontrol
+bin/dpkg-name
+bin/dpkg-parsechangelog
+bin/dpkg-query
+bin/dpkg-scanpackages
+bin/dpkg-scansources
+bin/dpkg-shlibdeps
+bin/dpkg-source
+bin/dpkg-split
+bin/dselect
+lib/dpkg/controllib.pl
+lib/dpkg/methods/disk/desc.cdrom
+lib/dpkg/methods/disk/desc.harddisk
+lib/dpkg/methods/disk/desc.mounted
+lib/dpkg/methods/disk/desc.nfs
+lib/dpkg/methods/disk/install
+lib/dpkg/methods/disk/names
+lib/dpkg/methods/disk/setup
+lib/dpkg/methods/disk/update
+lib/dpkg/methods/floppy/desc.floppy
+lib/dpkg/methods/floppy/install
+lib/dpkg/methods/floppy/names
+lib/dpkg/methods/floppy/setup
+lib/dpkg/methods/floppy/update
+lib/dpkg/mksplit
+lib/dpkg/parsechangelog/debian
+man/man1/822-date.1
+man/man1/dpkg-architecture.1
+man/man1/dpkg-buildpackage.1
+man/man1/dpkg-checkbuilddeps.1
+man/man1/dpkg-deb.1
+man/man1/dpkg-distaddfile.1
+man/man1/dpkg-genchanges.1
+man/man1/dpkg-gencontrol.1
+man/man1/dpkg-name.1
+man/man1/dpkg-parsechangelog.1
+man/man1/dpkg-scanpackages.1
+man/man1/dpkg-scansources.1
+man/man1/dpkg-shlibdeps.1
+man/man1/dpkg-source.1
+man/man8/cleanup-info.8
+man/man8/dpkg-divert.8
+man/man8/dpkg-query.8
+man/man8/dpkg-split.8
+man/man8/dpkg-statoverride.8
+man/man8/dpkg.8
+man/man8/dselect.8
+man/man8/install-info.8
+man/man8/update-alternatives.8
+sbin/cleanup-info
+sbin/dpkg-divert
+sbin/dpkg-statoverride
+sbin/install-info
+sbin/update-alternatives
+share/dpkg/alternatives/README
+share/dpkg/archtable
+share/dpkg/dpkg/origins/debian
+${PKGLOCALEDIR}/locale/ca/LC_MESSAGES/dpkg.mo
+${PKGLOCALEDIR}/locale/cs/LC_MESSAGES/dpkg.mo
+${PKGLOCALEDIR}/locale/da/LC_MESSAGES/dpkg.mo
+${PKGLOCALEDIR}/locale/de/LC_MESSAGES/dpkg.mo
+${PKGLOCALEDIR}/locale/el/LC_MESSAGES/dpkg.mo
+${PKGLOCALEDIR}/locale/en/LC_MESSAGES/dpkg.mo
+${PKGLOCALEDIR}/locale/es/LC_MESSAGES/dpkg.mo
+${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/dpkg.mo
+${PKGLOCALEDIR}/locale/gl/LC_MESSAGES/dpkg.mo
+${PKGLOCALEDIR}/locale/he/LC_MESSAGES/dpkg.mo
+${PKGLOCALEDIR}/locale/it/LC_MESSAGES/dpkg.mo
+${PKGLOCALEDIR}/locale/ja/LC_MESSAGES/dpkg.mo
+${PKGLOCALEDIR}/locale/ko/LC_MESSAGES/dpkg.mo
+${PKGLOCALEDIR}/locale/nl/LC_MESSAGES/dpkg.mo
+${PKGLOCALEDIR}/locale/nn/LC_MESSAGES/dpkg.mo
+${PKGLOCALEDIR}/locale/pl/LC_MESSAGES/dpkg.mo
+${PKGLOCALEDIR}/locale/pt/LC_MESSAGES/dpkg.mo
+${PKGLOCALEDIR}/locale/pt_BR/LC_MESSAGES/dpkg.mo
+${PKGLOCALEDIR}/locale/ru/LC_MESSAGES/dpkg.mo
+${PKGLOCALEDIR}/locale/sv/LC_MESSAGES/dpkg.mo
+${PKGLOCALEDIR}/locale/zh_CN/LC_MESSAGES/dpkg.mo
+@dirrm share/dpkg/origins
+@dirrm share/dpkg/dpkg/origins
+@dirrm share/dpkg/dpkg
+@dirrm share/dpkg/alternatives
+@dirrm share/dpkg
+@dirrm lib/dpkg/parsechangelog
+@dirrm lib/dpkg/methods/floppy
+@dirrm lib/dpkg/methods/disk
+@dirrm lib/dpkg/methods
+@dirrm lib/dpkg
diff --git a/misc/dpkg/distinfo b/misc/dpkg/distinfo
new file mode 100644
index 00000000000..887af301249
--- /dev/null
+++ b/misc/dpkg/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/10/29 17:26:18 erh Exp $
+
+SHA1 (dpkg_1.10.24.tar.gz) = bba3fa47662b776fae15dd2d9e667c6b08c2bea8
+Size (dpkg_1.10.24.tar.gz) = 1936470 bytes
+SHA1 (patch-aa) = 62740602375270c50fd518bddfe9a713d85a148f
+SHA1 (patch-ab) = 545ade40a5b62161b31478eff12573c8418d06e4
+SHA1 (patch-ac) = 130359aeeafc5c8bc10f38eac7335c2781f3c503
+SHA1 (patch-ad) = 95c64b2d0c6872b75151f2e8ca4c3d0a3206b6a0
diff --git a/misc/dpkg/patches/patch-aa b/misc/dpkg/patches/patch-aa
new file mode 100644
index 00000000000..1677263113b
--- /dev/null
+++ b/misc/dpkg/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/10/29 17:26:18 erh Exp $
+
+--- lib/Makefile.in.orig 2004-10-27 09:06:43.000000000 +0000
++++ lib/Makefile.in 2004-10-29 16:42:38.000000000 +0000
+@@ -20,7 +20,7 @@
+ all:: libdpkg.a
+
+ libdpkg.a: $(OBJECTS)
+- $(AR) r $@ $^
++ $(AR) r $@ $(OBJECTS) ../optlib/getopt.o ../optlib/getopt1.o ../optlib/long-options.o ../optlib/closeout.o ../optlib/obstack.o
+ $(RANLIB) $@
+
+ .PHONY: install
diff --git a/misc/dpkg/patches/patch-ab b/misc/dpkg/patches/patch-ab
new file mode 100644
index 00000000000..d5da260b03a
--- /dev/null
+++ b/misc/dpkg/patches/patch-ab
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.1.1.1 2004/10/29 17:26:18 erh Exp $
+
+--- Makefile.in.orig 2004-10-29 16:47:00.000000000 +0000
++++ Makefile.in 2004-10-29 16:46:46.000000000 +0000
+@@ -9,8 +9,8 @@
+ default: all
+ include Makefile.conf
+
+-SUBDIRS = include optlib lib dpkg-deb split scripts utils main \
+- @DSELECTDIR@ po methods man doc
++SUBDIRS = include optlib lib dpkg-deb split scripts main \
++ @DSELECTDIR@ po methods
+
+ all: version.h all-recursive
+
diff --git a/misc/dpkg/patches/patch-ac b/misc/dpkg/patches/patch-ac
new file mode 100644
index 00000000000..ccf795eee35
--- /dev/null
+++ b/misc/dpkg/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 2004/10/29 17:26:18 erh Exp $
+
+--- dpkg-deb/build.c.orig 2003-06-29 12:59:36.000000000 +0200
++++ dpkg-deb/build.c 2003-06-29 13:01:34.000000000 +0200
+@@ -445,7 +445,7 @@
+ m_dup2(p1[0],0); close(p1[0]); close(p1[1]);
+ m_dup2(p2[1],1); close(p2[0]); close(p2[1]);
+ if (chdir(directory)) ohshite(_("failed to chdir to `%.255s'"),directory);
+- execlp(TAR,"tar","-cf", "-", "-T", "-", "--null", "--no-recursion", (char*)0);
++ execlp(TAR,"tar","-cf", "-", "-T", "-", (char*)0);
+ ohshite(_("failed to exec tar -cf"));
+ }
+ close(p1[0]);
diff --git a/misc/dpkg/patches/patch-ad b/misc/dpkg/patches/patch-ad
new file mode 100644
index 00000000000..5f7053e99c7
--- /dev/null
+++ b/misc/dpkg/patches/patch-ad
@@ -0,0 +1,14 @@
+$NetBSD: patch-ad,v 1.1.1.1 2004/10/29 17:26:18 erh Exp $
+
+--- lib/tarfn.c.orig 2004-10-29 16:55:01.000000000 +0000
++++ lib/tarfn.c 2004-10-29 16:56:37.000000000 +0000
+@@ -58,7 +58,8 @@
+ int len;
+ char * str;
+
+- len = strnlen(s, size);
++ char *nul = memchr(s, 0, size);
++ len = nul ? (nul - s) : size;
+ str = malloc(len + 1);
+ memcpy(str, s, len);
+ str[len] = 0;