summaryrefslogtreecommitdiffstats
path: root/archivers/dpkg/files
diff options
context:
space:
mode:
authorperky <perky@FreeBSD.org>2003-04-04 12:21:46 +0000
committerperky <perky@FreeBSD.org>2003-04-04 12:21:46 +0000
commit492d52dba5bba098549b6b624017d884bbaac4b5 (patch)
tree98a6f6c1a8cad7cbf3e830535636f7b49d3aa613 /archivers/dpkg/files
parent830084dc05e61c1c93e732380e409653f468952a (diff)
downloadFreeBSD-ports-492d52dba5bba098549b6b624017d884bbaac4b5.zip
FreeBSD-ports-492d52dba5bba098549b6b624017d884bbaac4b5.tar.gz
Add dpkg 1.9.21, the debian package manager.
Diffstat (limited to 'archivers/dpkg/files')
-rw-r--r--archivers/dpkg/files/patch-Makefile.conf.in11
-rw-r--r--archivers/dpkg/files/patch-Makefile.in11
-rw-r--r--archivers/dpkg/files/patch-archtable14
-rw-r--r--archivers/dpkg/files/patch-configure.in11
-rw-r--r--archivers/dpkg/files/patch-lib_Makefile.in11
-rw-r--r--archivers/dpkg/files/patch-utils%start-stop-daemon.c76
6 files changed, 134 insertions, 0 deletions
diff --git a/archivers/dpkg/files/patch-Makefile.conf.in b/archivers/dpkg/files/patch-Makefile.conf.in
new file mode 100644
index 0000000..c5461ef
--- /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 0000000..064da6b
--- /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 0000000..7cdc91d
--- /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 0000000..baf791e
--- /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 0000000..8624f25
--- /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 0000000..42b4c84
--- /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
OpenPOWER on IntegriCloud