diff options
author | Hye-Shik Chang <perky@FreeBSD.org> | 2003-04-04 12:21:46 +0000 |
---|---|---|
committer | Hye-Shik Chang <perky@FreeBSD.org> | 2003-04-04 12:21:46 +0000 |
commit | 3eb24933145cb551a4293f6454f06e0c994fbd8a (patch) | |
tree | ef73ec5e287babe10e8351fdfb5a9b8c38f9fe9c /archivers/dpkg | |
parent | This tool parses the output of kdump to generate a list of added (diff) |
Add dpkg 1.9.21, the debian package manager.
Notes
Notes:
svn path=/head/; revision=78168
Diffstat (limited to 'archivers/dpkg')
-rw-r--r-- | archivers/dpkg/Makefile | 39 | ||||
-rw-r--r-- | archivers/dpkg/distinfo | 1 | ||||
-rw-r--r-- | archivers/dpkg/files/patch-Makefile.conf.in | 11 | ||||
-rw-r--r-- | archivers/dpkg/files/patch-Makefile.in | 11 | ||||
-rw-r--r-- | archivers/dpkg/files/patch-archtable | 14 | ||||
-rw-r--r-- | archivers/dpkg/files/patch-configure.in | 11 | ||||
-rw-r--r-- | archivers/dpkg/files/patch-lib_Makefile.in | 11 | ||||
-rw-r--r-- | archivers/dpkg/files/patch-utils%start-stop-daemon.c | 76 | ||||
-rw-r--r-- | archivers/dpkg/pkg-descr | 7 | ||||
-rw-r--r-- | archivers/dpkg/pkg-plist | 75 |
10 files changed, 256 insertions, 0 deletions
diff --git a/archivers/dpkg/Makefile b/archivers/dpkg/Makefile new file mode 100644 index 000000000000..8409146f6cba --- /dev/null +++ b/archivers/dpkg/Makefile @@ -0,0 +1,39 @@ +# New ports collection makefile for: dpkg +# Date created: 1 April 2003 +# Whom: Hye-Shik Chang <perky@FreeBSD.org> +# +# $FreeBSD$ + +PORTNAME= dpkg +PORTVERSION= 1.9.21 +CATEGORIES= archivers sysutils +MASTER_SITES= http://ftp.debian.org/debian/pool/main/d/dpkg/ +DISTNAME= dpkg_${PORTVERSION} + +MAINTAINER= perky@FreeBSD.org +COMMENT= Package maintenance system for Debian + +LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext \ + iconv.3:${PORTSDIR}/converters/libiconv + +GNU_CONFIGURE= yes +USE_GMAKE= yes +USE_PERL5= yes +USE_AUTOCONF= 213 +WRKSRC= ${WRKDIR}/dpkg-${PORTVERSION} + +CONFIGURE_ARGS= --with-libiconv-prefix=${LOCALBASE} \ + --with-admindir=${PREFIX}/var/dpkg +MAKE_ENV= GETTEXTBASE=${LOCALBASE} + +MAN1= 822-date.1 dpkg-architecture.1 dpkg-buildpackage.1 \ + dpkg-checkbuilddeps.1 dpkg-deb.1 dpkg-distaddfile.1 \ + dpkg-genchanges.1 dpkg-gencontrol.1 dpkg-name.1 \ + dpkg-parsechangelog.1 dpkg-shlibdeps.1 dpkg-source.1 \ + md5sum.1 +MAN8= cleanup-info.8 dpkg-divert.8 dpkg-scanpackages.8 \ + dpkg-scansources.8 dpkg-split.8 dpkg-statoverride.8 \ + dpkg.8 dselect.8 install-info.8 start-stop-daemon.8 \ + update-alternatives.8 update-rc.d.8 + +.include <bsd.port.mk> diff --git a/archivers/dpkg/distinfo b/archivers/dpkg/distinfo new file mode 100644 index 000000000000..c01160b7f882 --- /dev/null +++ b/archivers/dpkg/distinfo @@ -0,0 +1 @@ +MD5 (dpkg_1.9.21.tar.gz) = fbd279854e724103fec3358c76d47c69 diff --git a/archivers/dpkg/files/patch-Makefile.conf.in b/archivers/dpkg/files/patch-Makefile.conf.in new file mode 100644 index 000000000000..c5461efe1f36 --- /dev/null +++ b/archivers/dpkg/files/patch-Makefile.conf.in @@ -0,0 +1,11 @@ +--- Makefile.conf.in.orig Thu Mar 6 16:27:30 2003 ++++ Makefile.conf.in Thu Mar 6 16:27:45 2003 +@@ -59,7 +59,7 @@ + DEFS = @DEFS@ -D_GNU_SOURCE + INCLUDE_CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir) -I$(srcdir) -I../include -I.. -I. -I$(top_srcdir)/optlib + +-NLS_CFLAGS = -DLOCALEDIR=\"$(localedir)\" -I$(top_srcdir)/intl -I../intl ++NLS_CFLAGS = -DLOCALEDIR=\"$(localedir)\" -I$(top_srcdir)/intl -I../intl -I${GETTEXTBASE}/include + NLS_LIBS = @INTLLIBS@ + + SSD_LIBS = @SSD_LIBS@ diff --git a/archivers/dpkg/files/patch-Makefile.in b/archivers/dpkg/files/patch-Makefile.in new file mode 100644 index 000000000000..064da6b58c50 --- /dev/null +++ b/archivers/dpkg/files/patch-Makefile.in @@ -0,0 +1,11 @@ +--- Makefile.in.orig Fri Apr 4 19:35:23 2003 ++++ Makefile.in Fri Apr 4 19:35:36 2003 +@@ -9,7 +9,7 @@ + include Makefile.conf + + SUBDIRS = include optlib lib intl dpkg-deb split scripts utils main \ +- utils @DSELECTDIR@ po methods doc ++ utils @DSELECTDIR@ po methods + + all: version.h all-recursive + diff --git a/archivers/dpkg/files/patch-archtable b/archivers/dpkg/files/patch-archtable new file mode 100644 index 000000000000..7cdc91daab26 --- /dev/null +++ b/archivers/dpkg/files/patch-archtable @@ -0,0 +1,14 @@ +--- archtable.orig Fri Apr 4 20:47:59 2003 ++++ archtable Fri Apr 4 20:49:16 2003 +@@ -46,7 +46,11 @@ + hppa1.1-linux-gnu hppa hppa + hppa2.0-linux-gnu hppa hppa + hppa64-linux-gnu hppa hppa ++alpha-freebsd freebsd-alpha freebsd-alpha + i386-freebsd freebsd-i386 freebsd-i386 ++ia64-freebsd freebsd-ia64 freebsd-ia64 ++powerpc-freebsd freebsd-powerpc freebsd-powerpc ++sparc64-freebsd freebsd-sparc64 freebsd-sparc64 + s390-linux-gnu s390 s390 + s390-ibm-linux-gnu s390 s390 + s390-unknown-linux-gnu s390 s390 diff --git a/archivers/dpkg/files/patch-configure.in b/archivers/dpkg/files/patch-configure.in new file mode 100644 index 000000000000..baf791e3bbf6 --- /dev/null +++ b/archivers/dpkg/files/patch-configure.in @@ -0,0 +1,11 @@ +--- configure.in.orig Fri Apr 4 17:55:33 2003 ++++ configure.in Fri Apr 4 17:55:41 2003 +@@ -158,7 +158,7 @@ + } inline int foo (int x) {], AC_DEFINE(HAVE_INLINE)) + + AC_MSG_CHECKING([for __va_copy]) +-AC_TRY_COMPILE([ ++AC_TRY_LINK([ + #include <stdarg.h> + ],[ + va_list v1,v2; diff --git a/archivers/dpkg/files/patch-lib_Makefile.in b/archivers/dpkg/files/patch-lib_Makefile.in new file mode 100644 index 000000000000..8624f257a2a1 --- /dev/null +++ b/archivers/dpkg/files/patch-lib_Makefile.in @@ -0,0 +1,11 @@ +--- lib/Makefile.in.orig Thu Mar 6 16:56:04 2003 ++++ lib/Makefile.in Thu Mar 6 16:57:21 2003 +@@ -21,7 +21,7 @@ + set -e ; cd ../optlib ; $(MAKE) libopt.a + + libdpkg.a: $(OBJECTS) ../optlib/libopt.a +- $(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/archivers/dpkg/files/patch-utils%start-stop-daemon.c b/archivers/dpkg/files/patch-utils%start-stop-daemon.c new file mode 100644 index 000000000000..42b4c848b134 --- /dev/null +++ b/archivers/dpkg/files/patch-utils%start-stop-daemon.c @@ -0,0 +1,76 @@ +--- utils/start-stop-daemon.c.orig Mon May 14 07:01:28 2001 ++++ utils/start-stop-daemon.c Fri Apr 4 21:02:53 2003 +@@ -30,6 +30,8 @@ + # define OSsunos + #elif defined(OPENBSD) + # define OSOpenBSD ++#elif defined(__FreeBSD__) ++# define OSFreeBSD + #else + # error Unknown architecture - cannot build start-stop-daemon + #endif +@@ -41,7 +43,8 @@ + # include <ps.h> + #endif + +-#if defined(OSOpenBSD) ++#if defined(OSOpenBSD) || defined(OSFreeBSD) ++#define _WANT_UCRED + #include <sys/param.h> + #include <sys/user.h> + #include <sys/proc.h> +@@ -744,7 +747,7 @@ + #endif /* OSHURD */ + + +-#if defined(OSOpenBSD) ++#if defined(OSOpenBSD) || defined(OSFreeBSD) + int + pid_is_cmd(pid_t pid, const char *name) + { +@@ -787,7 +790,7 @@ + } + + int +-pid_is_user(pid_t pid, int uid) ++pid_is_user(pid_t pid, uid_t uid) + { + kvm_t *kd; + int nentries; /* Value not used */ +@@ -801,9 +804,15 @@ + errx(1, "%s", errbuf); + if ((kp = kvm_getprocs(kd, KERN_PROC_PID, pid, &nentries)) == 0) + errx(1, "%s", kvm_geterr(kd)); ++#if defined(OSOpenBSD) || (defined(OSFreeBSD) && __FreeBSD_version < 500014) + if ( kp->kp_proc.p_cred ) + kvm_read(kd, (u_long)&(kp->kp_proc.p_cred->p_ruid), + &proc_uid, sizeof(uid_t)); ++#elif defined(OSFreeBSD) ++ if ( kp->ki_paddr->p_ucred ) ++ kvm_read(kd, (u_long)&(kp->ki_paddr->p_ucred->cr_ruid), ++ &proc_uid, sizeof(uid_t)); ++#endif + else + return 0; + return (proc_uid == (uid_t)uid); +@@ -822,7 +831,11 @@ + errx(1, "%s", errbuf); + if ((kp = kvm_getprocs(kd, KERN_PROC_PID, pid, &nentries)) == 0) + errx(1, "%s", kvm_geterr(kd)); ++#if defined(OSOpenBSD) || (defined(OSFreeBSD) && __FreeBSD_version < 500014) + pidexec = (&kp->kp_proc)->p_comm; ++#elif defined(OSFreeBSD) ++ pidexec = kp->ki_paddr->p_comm; ++#endif + if (strlen(name) != strlen(pidexec)) + return 0; + return (strcmp(name, pidexec) == 0) ? 1 : 0; +@@ -835,7 +848,7 @@ + /* Nothing to do */ + } + +-#endif /* OSOpenBSD */ ++#endif /* OSOpenBSD || OSFreeBSD */ + + + static void diff --git a/archivers/dpkg/pkg-descr b/archivers/dpkg/pkg-descr new file mode 100644 index 000000000000..6a07bdd14641 --- /dev/null +++ b/archivers/dpkg/pkg-descr @@ -0,0 +1,7 @@ +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. + +WWW: http://packages.debian.org/stable/base/dpkg.html diff --git a/archivers/dpkg/pkg-plist b/archivers/dpkg/pkg-plist new file mode 100644 index 000000000000..c8636bad3854 --- /dev/null +++ b/archivers/dpkg/pkg-plist @@ -0,0 +1,75 @@ +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-scanpackages +bin/dpkg-scansources +bin/dpkg-shlibdeps +bin/dpkg-source +bin/dpkg-split +bin/dselect +bin/md5sum +etc/alternatives/README +etc/dpkg/origins/debian +lib/dpkg/controllib.pl +lib/dpkg/enoent +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 +sbin/cleanup-info +sbin/dpkg-divert +sbin/dpkg-statoverride +sbin/install-info +sbin/start-stop-daemon +sbin/update-alternatives +sbin/update-rc.d +share/locale/ca/LC_MESSAGES/dpkg.mo +share/locale/cs/LC_MESSAGES/dpkg.mo +share/locale/da/LC_MESSAGES/dpkg.mo +share/locale/de/LC_MESSAGES/dpkg.mo +share/locale/en/LC_MESSAGES/dpkg.mo +share/locale/es/LC_MESSAGES/dpkg.mo +share/locale/fr/LC_MESSAGES/dpkg.mo +share/locale/gl/LC_MESSAGES/dpkg.mo +share/locale/it/LC_MESSAGES/dpkg.mo +share/locale/ja/LC_MESSAGES/dpkg.mo +share/locale/nl/LC_MESSAGES/dpkg.mo +share/locale/pl/LC_MESSAGES/dpkg.mo +share/locale/pt_BR/LC_MESSAGES/dpkg.mo +share/locale/ru/LC_MESSAGES/dpkg.mo +share/locale/sv/LC_MESSAGES/dpkg.mo +@dirrm var/dpkg/updates +@dirrm var/dpkg/methods/mnt +@dirrm var/dpkg/methods/floppy +@dirrm var/dpkg/methods/disk +@dirrm var/dpkg/methods +@dirrm var/dpkg/info +@dirrm var/dpkg/alternatives +@dirrm var/dpkg +@dirrm lib/dpkg/parsechangelog +@dirrm lib/dpkg/methods/floppy +@dirrm lib/dpkg/methods/disk +@dirrm lib/dpkg/methods +@dirrm lib/dpkg +@dirrm etc/dpkg/origins +@dirrm etc/dpkg +@dirrm etc/alternatives |