summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorfrueauf <frueauf@pkgsrc.org>1998-07-29 13:41:19 +0000
committerfrueauf <frueauf@pkgsrc.org>1998-07-29 13:41:19 +0000
commite329821eb96019a38a86fe4673416d4c17e6c66d (patch)
treead82e50805e62f1b9b08a40878f7650c9f9b1f9d /misc
parentb0f12dab08fcbd6c2e6b24177ba12ff6909dfce5 (diff)
downloadpkgsrc-e329821eb96019a38a86fe4673416d4c17e6c66d.tar.gz
Fix some lossage (rpm got installed to /; the rc files went to
/usr/pkg/share/share/misc) and diff only one file per patchfile for better maintainance.
Diffstat (limited to 'misc')
-rw-r--r--misc/rpm/patches/patch-aa21
-rw-r--r--misc/rpm/patches/patch-ab31
-rw-r--r--misc/rpm/patches/patch-ac21
-rw-r--r--misc/rpm/patches/patch-ad19
-rw-r--r--misc/rpm/patches/patch-af200
-rw-r--r--misc/rpm/patches/patch-ah2
-rw-r--r--misc/rpm/patches/patch-ai36
-rw-r--r--misc/rpm/patches/patch-aj72
8 files changed, 203 insertions, 199 deletions
diff --git a/misc/rpm/patches/patch-aa b/misc/rpm/patches/patch-aa
new file mode 100644
index 00000000000..40f5f1288ef
--- /dev/null
+++ b/misc/rpm/patches/patch-aa
@@ -0,0 +1,21 @@
+--- build/Makefile.in.orig Wed May 27 16:49:37 1998
++++ build/Makefile.in Wed Jul 29 12:46:55 1998
+@@ -15,7 +15,7 @@
+
+ # -----------------------------------------------------------------------
+
+-include ../Makefile.inc
++.include "../Makefile.inc"
+
+ TARGET=everything
+
+@@ -44,6 +44,6 @@
+ $(CPP) $(CFLAGS) -MM $(srcdir)/*.c | \
+ sed s+$$topdir_path+$(top_srcdir)+g > .depend
+
+-ifeq (.depend,$(wildcard .depend))
+-include .depend
+-endif
++.if exists(.depend)
++.include ".depend"
++.endif
diff --git a/misc/rpm/patches/patch-ab b/misc/rpm/patches/patch-ab
new file mode 100644
index 00000000000..b87bc8ca1ad
--- /dev/null
+++ b/misc/rpm/patches/patch-ab
@@ -0,0 +1,31 @@
+--- lib/Makefile.in.orig Wed May 27 16:49:38 1998
++++ lib/Makefile.in Wed Jul 29 12:46:56 1998
+@@ -23,7 +23,7 @@
+
+ # -----------------------------------------------------------------------
+
+-include ../Makefile.inc
++.include "../Makefile.inc"
+
+ TARGET=allprogs
+
+@@ -41,7 +41,8 @@
+
+ $(PROGS): $(LIBRPM)
+
+-$(LIBRPM): $(LIBRPM)($(LIBOBJECTS) $(TAGTABLE))
++$(LIBRPM): $(LIBOBJECTS) $(TAGTABLE)
++ $(AR) r $@ $(LIBOBJECTS) $(TAGTABLE)
+ $(RANLIB) $@
+
+ tagtable.c: rpmlib.h
+@@ -74,6 +75,6 @@
+ $(CPP) $(CFLAGS) -MM $(SOURCES) | \
+ sed s+$$topdir_path+$(top_srcdir)+g > .depend
+
+-ifeq (.depend,$(wildcard .depend))
+-include .depend
+-endif
++.if exists(.depend)
++.include ".depend"
++.endif
diff --git a/misc/rpm/patches/patch-ac b/misc/rpm/patches/patch-ac
new file mode 100644
index 00000000000..71db9e0a40c
--- /dev/null
+++ b/misc/rpm/patches/patch-ac
@@ -0,0 +1,21 @@
+--- misc/Makefile.in.orig Wed May 27 16:49:41 1998
++++ misc/Makefile.in Wed Jul 29 12:46:56 1998
+@@ -2,7 +2,7 @@
+ top_srcdir = @top_srcdir@
+ VPATH = @srcdir@
+
+-include ../Makefile.inc
++.include "../Makefile.inc"
+
+ LIBOBJECTS = @MISCOBJS@
+ LIBMISC = libmisc.a
+@@ -32,6 +32,6 @@
+ $(CPP) $(CFLAGS) -MM $(srcdir)/*.c | \
+ sed s+$$topdir_path+$(top_srcdir)+g > .depend
+
+-ifeq (.depend,$(wildcard .depend))
+-include .depend
+-endif
++.if exists(.depend)
++.include ".depend"
++.endif
diff --git a/misc/rpm/patches/patch-ad b/misc/rpm/patches/patch-ad
new file mode 100644
index 00000000000..30e814ccdd5
--- /dev/null
+++ b/misc/rpm/patches/patch-ad
@@ -0,0 +1,19 @@
+--- po/Makefile.in.orig Wed May 27 16:49:42 1998
++++ po/Makefile.in Wed Jul 29 12:46:56 1998
+@@ -1,7 +1,7 @@
+ srcdir = @srcdir@
+ VPATH = $(srcdir)
+
+-include ../Makefile.inc
++.include "../Makefile.inc"
+
+ INSTALL= @INSTALL@
+ INSTALL_PROGRAM= @INSTALL_PROGRAM@
+@@ -67,5 +67,6 @@
+ $(INSTALL) -m 644 $$n $(installprefix)/$(RPMNLSDIR)/$$l/LC_MESSAGES/rpm.mo; \
+ done
+
+-%.mo: %.po
++.SUFFIXES: po mo
++.po.mo:
+ msgfmt -o $@ $<
diff --git a/misc/rpm/patches/patch-af b/misc/rpm/patches/patch-af
index 8e7a6a1881e..f343048fc99 100644
--- a/misc/rpm/patches/patch-af
+++ b/misc/rpm/patches/patch-af
@@ -1,201 +1,5 @@
---- Makefile.in.orig Wed May 27 10:49:34 1998
-+++ Makefile.in Fri Jul 10 01:03:44 1998
-@@ -24,6 +24,7 @@
- RPMBINDIR=$(subst usr/bin,bin,$(BINDIR))
- MANDIR=$(prefix)/man/man8
- LIBDIR=$(libdir)
-+DATADIR=$(datadir)
- INCDIR=$(prefix)/include/rpm
- ETCDIR=$(ROOT)/etc
-
-@@ -42,16 +43,16 @@
-
- SOURCES = $(subst .o,.c,$(OBJS))
-
--ifeq (.depend-done,$(wildcard .depend-done))
-+.if exists(.depend-done)
- TARGET=everything
--else
-+.else
- TARGET=@TARGET@
--endif
-+.endif
-
- all: $(TARGET)
-
- rpm: lib/librpm.a build/librpmbuild.a @MISCPATH@ $(OBJS)
-- $(CC) -o rpm $(LDFLAGS_STATIC) $(OBJS) $(LDFLAGS) $(LOADLIBES) $(LIBS) \
-+ $(CC) -o rpm $(OBJS) $(LDFLAGS) $(LOADLIBES) $(LIBS) \
- $(LIBEFENCE)
-
- rpm.shared: lib/librpm.a build/librpmbuild.a $(OBJS)
-@@ -115,20 +116,20 @@
- [ -d $(installprefix)/$(LIBDIR) ] || mkdir -p $(installprefix)/$(LIBDIR)
- [ -d $(installprefix)/$(INCDIR) ] || mkdir -p $(installprefix)/$(INCDIR)
- [ -d $(installprefix)/$(RPMCONFIGDIR) ] || \
-- mkdir -p $(installprefix)/$(INCDIR)
-+ mkdir -p $(installprefix)/$(RPMCONFIGDIR)
- if [ -x ./rpm ]; then \
- $(INSTALL_PROGRAM) -s -m 755 rpm $(installprefix)/$(RPMBINDIR); \
- else \
- $(INSTALL_PROGRAM) -s -m 755 rpm.shared $(installprefix)/$(RPMBINDIR)/rpm; \
- fi
-- $(INSTALL_PROGRAM) -m 755 $(srcdir)/gendiff $(installprefix)/$(BINDIR)
-- $(INSTALL_PROGRAM) -m 755 $(topdir)/find-provides.sh $(installprefix)/$(BINDIR)/find-provides
-- $(INSTALL_PROGRAM) -m 755 $(topdir)/find-requires.sh $(installprefix)/$(BINDIR)/find-requires
-+ $(INSTALL_PROGRAM:N-s) -m 755 $(srcdir)/gendiff $(installprefix)/$(BINDIR)
-+ $(INSTALL_PROGRAM:N-s) -m 755 $(topdir)/find-provides.sh $(installprefix)/$(BINDIR)/find-provides
-+ $(INSTALL_PROGRAM:N-s) -m 755 $(topdir)/find-requires.sh $(installprefix)/$(BINDIR)/find-requires
- $(INSTALL_PROGRAM) -s -m 755 rpm2cpio $(installprefix)/$(BINDIR)
- $(INSTALL_DATA) -m 644 $(srcdir)/rpm.8 $(installprefix)/$(MANDIR)
- $(INSTALL_DATA) -m 644 $(srcdir)/rpm2cpio.8 $(installprefix)/$(MANDIR)
-- $(INSTALL_DATA) -m 644 $(topdir)/lib-rpmrc $(installprefix)/$(LIBDIR)/rpmrc
-- $(INSTALL_DATA) -m 644 $(srcdir)/rpmpopt $(installprefix)/$(LIBDIR)/rpmpopt
-+ $(INSTALL_DATA) -m 644 $(topdir)/lib-rpmrc $(installprefix)/$(RPMCONFIGDIR)/rpmrc
-+ $(INSTALL_DATA) -m 644 $(srcdir)/rpmpopt $(installprefix)/$(RPMCONFIGDIR)/rpmpopt
- (cd lib; $(MAKE) LIBDIR=$(installprefix)/$(LIBDIR) INCDIR=$(installprefix)/$(INCDIR) install)
- for d in $(INSTSUBDIRS); do \
- (cd $$d; $(MAKE) installprefix=$(installprefix) LIBDIR=$(installprefix)/$(LIBDIR) INCDIR=$(installprefix)/$(INCDIR) install) ;\
-@@ -205,6 +206,6 @@
- @echo " "
- @echo "The final archive is ./rpm-$(VERSION).tar.gz."
-
--ifeq (.depend,$(wildcard .depend))
--include .depend
--endif
-+.if exists(.depend)
-+.include ".depend"
-+.endif
---- build/Makefile.in.orig Wed May 27 10:49:37 1998
-+++ build/Makefile.in Fri Jul 10 01:03:44 1998
-@@ -15,7 +15,7 @@
-
- # -----------------------------------------------------------------------
-
--include ../Makefile.inc
-+.include "../Makefile.inc"
-
- TARGET=everything
-
-@@ -44,6 +44,6 @@
- $(CPP) $(CFLAGS) -MM $(srcdir)/*.c | \
- sed s+$$topdir_path+$(top_srcdir)+g > .depend
-
--ifeq (.depend,$(wildcard .depend))
--include .depend
--endif
-+.if exists(.depend)
-+.include ".depend"
-+.endif
---- lib/Makefile.in.orig Wed May 27 10:49:38 1998
-+++ lib/Makefile.in Fri Jul 10 01:09:10 1998
-@@ -23,7 +23,7 @@
-
- # -----------------------------------------------------------------------
-
--include ../Makefile.inc
-+.include "../Makefile.inc"
-
- TARGET=allprogs
-
-@@ -41,7 +41,8 @@
-
- $(PROGS): $(LIBRPM)
-
--$(LIBRPM): $(LIBRPM)($(LIBOBJECTS) $(TAGTABLE))
-+$(LIBRPM): $(LIBOBJECTS) $(TAGTABLE)
-+ $(AR) r $@ $(LIBOBJECTS) $(TAGTABLE)
- $(RANLIB) $@
-
- tagtable.c: rpmlib.h
-@@ -74,6 +75,6 @@
- $(CPP) $(CFLAGS) -MM $(SOURCES) | \
- sed s+$$topdir_path+$(top_srcdir)+g > .depend
-
--ifeq (.depend,$(wildcard .depend))
--include .depend
--endif
-+.if exists(.depend)
-+.include ".depend"
-+.endif
---- misc/Makefile.in.orig Wed May 27 10:49:41 1998
-+++ misc/Makefile.in Fri Jul 10 01:09:52 1998
-@@ -2,7 +2,7 @@
- top_srcdir = @top_srcdir@
- VPATH = @srcdir@
-
--include ../Makefile.inc
-+.include "../Makefile.inc"
-
- LIBOBJECTS = @MISCOBJS@
- LIBMISC = libmisc.a
-@@ -32,6 +32,6 @@
- $(CPP) $(CFLAGS) -MM $(srcdir)/*.c | \
- sed s+$$topdir_path+$(top_srcdir)+g > .depend
-
--ifeq (.depend,$(wildcard .depend))
--include .depend
--endif
-+.if exists(.depend)
-+.include ".depend"
-+.endif
---- po/Makefile.in.orig Wed May 27 10:49:42 1998
-+++ po/Makefile.in Fri Jul 10 01:09:59 1998
-@@ -1,7 +1,7 @@
- srcdir = @srcdir@
- VPATH = $(srcdir)
-
--include ../Makefile.inc
-+.include "../Makefile.inc"
-
- INSTALL= @INSTALL@
- INSTALL_PROGRAM= @INSTALL_PROGRAM@
-@@ -67,5 +67,6 @@
- $(INSTALL) -m 644 $$n $(installprefix)/$(RPMNLSDIR)/$$l/LC_MESSAGES/rpm.mo; \
- done
-
--%.mo: %.po
-+.SUFFIXES: po mo
-+.po.mo:
- msgfmt -o $@ $<
---- popt/Makefile.in.orig Wed May 27 10:49:44 1998
-+++ popt/Makefile.in Fri Jul 10 01:09:33 1998
-@@ -24,17 +24,16 @@
-
- CFLAGS = @CFLAGS@ @DEFS@ $(OPTS)
-
--ifeq ($(RANLIB),)
--RANLIB=ranlib
--endif
-+RANLIB ?= ranlib
-
--ifeq (.depend-done,$(wildcard .depend-done))
-+.if exists(.depend-done)
- TARGET=allprogs
--else
-+.else
- TARGET=@TARGET@
--endif
-+.endif
-
--$(LIBPOPT): $(LIBPOPT)($(LIBOBJECTS))
-+$(LIBPOPT): $(LIBOBJECTS)
-+ $(AR) r $@ $(LIBOBJECTS)
- $(RANLIB) $@
-
- distclean: clean
-@@ -67,6 +66,6 @@
- @rm -rf /tmp/popt-$(VERSION)
- @echo "The archive is in popt-$(VERSION).tar.gz"
-
--ifeq (.depend,$(wildcard .depend))
--include .depend
--endif
-+.if exists(.depend)
-+.include ".depend"
-+.endif
---- tools/Makefile.in.orig Wed May 27 10:49:44 1998
-+++ tools/Makefile.in Fri Jul 10 01:10:05 1998
+--- tools/Makefile.in.orig Wed May 27 16:49:44 1998
++++ tools/Makefile.in Wed Jul 29 12:46:56 1998
@@ -2,7 +2,7 @@
VPATH = @srcdir@
top_srcdir = @top_srcdir@
diff --git a/misc/rpm/patches/patch-ah b/misc/rpm/patches/patch-ah
index 329d768774a..3556a23181c 100644
--- a/misc/rpm/patches/patch-ah
+++ b/misc/rpm/patches/patch-ah
@@ -5,7 +5,7 @@
-RPMCONFIGDIR='$(libdir)'
-+RPMCONFIGDIR='$(datadir)/share/misc'
++RPMCONFIGDIR='$(datadir)/misc'
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
diff --git a/misc/rpm/patches/patch-ai b/misc/rpm/patches/patch-ai
new file mode 100644
index 00000000000..ea9ed0027d8
--- /dev/null
+++ b/misc/rpm/patches/patch-ai
@@ -0,0 +1,36 @@
+--- popt/Makefile.in.orig Wed May 27 16:49:44 1998
++++ popt/Makefile.in Wed Jul 29 12:46:56 1998
+@@ -24,17 +24,16 @@
+
+ CFLAGS = @CFLAGS@ @DEFS@ $(OPTS)
+
+-ifeq ($(RANLIB),)
+-RANLIB=ranlib
+-endif
++RANLIB ?= ranlib
+
+-ifeq (.depend-done,$(wildcard .depend-done))
++.if exists(.depend-done)
+ TARGET=allprogs
+-else
++.else
+ TARGET=@TARGET@
+-endif
++.endif
+
+-$(LIBPOPT): $(LIBPOPT)($(LIBOBJECTS))
++$(LIBPOPT): $(LIBOBJECTS)
++ $(AR) r $@ $(LIBOBJECTS)
+ $(RANLIB) $@
+
+ distclean: clean
+@@ -67,6 +66,6 @@
+ @rm -rf /tmp/popt-$(VERSION)
+ @echo "The archive is in popt-$(VERSION).tar.gz"
+
+-ifeq (.depend,$(wildcard .depend))
+-include .depend
+-endif
++.if exists(.depend)
++.include ".depend"
++.endif
diff --git a/misc/rpm/patches/patch-aj b/misc/rpm/patches/patch-aj
new file mode 100644
index 00000000000..9c4396cefc7
--- /dev/null
+++ b/misc/rpm/patches/patch-aj
@@ -0,0 +1,72 @@
+--- Makefile.in.orig Wed May 27 16:49:34 1998
++++ Makefile.in Wed Jul 29 14:20:47 1998
+@@ -21,9 +21,10 @@
+ ### These are variables meant to be exported
+
+ BINDIR=$(prefix)/bin
+-RPMBINDIR=$(subst usr/bin,bin,$(BINDIR))
++RPMBINDIR=$(BINDIR)
+ MANDIR=$(prefix)/man/man8
+ LIBDIR=$(libdir)
++DATADIR=$(datadir)
+ INCDIR=$(prefix)/include/rpm
+ ETCDIR=$(ROOT)/etc
+
+@@ -42,16 +43,16 @@
+
+ SOURCES = $(subst .o,.c,$(OBJS))
+
+-ifeq (.depend-done,$(wildcard .depend-done))
++.if exists(.depend-done)
+ TARGET=everything
+-else
++.else
+ TARGET=@TARGET@
+-endif
++.endif
+
+ all: $(TARGET)
+
+ rpm: lib/librpm.a build/librpmbuild.a @MISCPATH@ $(OBJS)
+- $(CC) -o rpm $(LDFLAGS_STATIC) $(OBJS) $(LDFLAGS) $(LOADLIBES) $(LIBS) \
++ $(CC) -o rpm $(OBJS) $(LDFLAGS) $(LOADLIBES) $(LIBS) \
+ $(LIBEFENCE)
+
+ rpm.shared: lib/librpm.a build/librpmbuild.a $(OBJS)
+@@ -115,20 +116,20 @@
+ [ -d $(installprefix)/$(LIBDIR) ] || mkdir -p $(installprefix)/$(LIBDIR)
+ [ -d $(installprefix)/$(INCDIR) ] || mkdir -p $(installprefix)/$(INCDIR)
+ [ -d $(installprefix)/$(RPMCONFIGDIR) ] || \
+- mkdir -p $(installprefix)/$(INCDIR)
++ mkdir -p $(installprefix)/$(RPMCONFIGDIR)
+ if [ -x ./rpm ]; then \
+ $(INSTALL_PROGRAM) -s -m 755 rpm $(installprefix)/$(RPMBINDIR); \
+ else \
+ $(INSTALL_PROGRAM) -s -m 755 rpm.shared $(installprefix)/$(RPMBINDIR)/rpm; \
+ fi
+- $(INSTALL_PROGRAM) -m 755 $(srcdir)/gendiff $(installprefix)/$(BINDIR)
+- $(INSTALL_PROGRAM) -m 755 $(topdir)/find-provides.sh $(installprefix)/$(BINDIR)/find-provides
+- $(INSTALL_PROGRAM) -m 755 $(topdir)/find-requires.sh $(installprefix)/$(BINDIR)/find-requires
++ $(INSTALL_PROGRAM:N-s) -m 755 $(srcdir)/gendiff $(installprefix)/$(BINDIR)
++ $(INSTALL_PROGRAM:N-s) -m 755 $(topdir)/find-provides.sh $(installprefix)/$(BINDIR)/find-provides
++ $(INSTALL_PROGRAM:N-s) -m 755 $(topdir)/find-requires.sh $(installprefix)/$(BINDIR)/find-requires
+ $(INSTALL_PROGRAM) -s -m 755 rpm2cpio $(installprefix)/$(BINDIR)
+ $(INSTALL_DATA) -m 644 $(srcdir)/rpm.8 $(installprefix)/$(MANDIR)
+ $(INSTALL_DATA) -m 644 $(srcdir)/rpm2cpio.8 $(installprefix)/$(MANDIR)
+- $(INSTALL_DATA) -m 644 $(topdir)/lib-rpmrc $(installprefix)/$(LIBDIR)/rpmrc
+- $(INSTALL_DATA) -m 644 $(srcdir)/rpmpopt $(installprefix)/$(LIBDIR)/rpmpopt
++ $(INSTALL_DATA) -m 644 $(topdir)/lib-rpmrc $(installprefix)/$(RPMCONFIGDIR)/rpmrc
++ $(INSTALL_DATA) -m 644 $(srcdir)/rpmpopt $(installprefix)/$(RPMCONFIGDIR)/rpmpopt
+ (cd lib; $(MAKE) LIBDIR=$(installprefix)/$(LIBDIR) INCDIR=$(installprefix)/$(INCDIR) install)
+ for d in $(INSTSUBDIRS); do \
+ (cd $$d; $(MAKE) installprefix=$(installprefix) LIBDIR=$(installprefix)/$(LIBDIR) INCDIR=$(installprefix)/$(INCDIR) install) ;\
+@@ -205,6 +206,6 @@
+ @echo " "
+ @echo "The final archive is ./rpm-$(VERSION).tar.gz."
+
+-ifeq (.depend,$(wildcard .depend))
+-include .depend
+-endif
++.if exists(.depend)
++.include ".depend"
++.endif