diff options
author | Chris Larson <clarson@kergoth.com> | 2004-12-06 04:31:11 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2004-12-06 04:31:11 +0000 |
commit | 82cd47c4381e92aa84c9f46ed24201f6228f70f6 (patch) | |
tree | b6e94ae3edbaf06f44fef1e7b3d238000672e7e6 | |
parent | e2499e6748837679d9dd91e5b6056d7de7b3327b (diff) |
Unbork the cpio installation.
BKrev: 41b3e08fVjUbI-Iu074zLG4YdqgoWg
-rw-r--r-- | cpio/cpio_2.5.oe | 12 | ||||
-rw-r--r-- | cpio/files/install.patch | 42 |
2 files changed, 47 insertions, 7 deletions
diff --git a/cpio/cpio_2.5.oe b/cpio/cpio_2.5.oe index e69de29bb2..1d73a63200 100644 --- a/cpio/cpio_2.5.oe +++ b/cpio/cpio_2.5.oe @@ -0,0 +1,12 @@ +DESCRIPTION = "GNU cpio is a program to manage archives of files." +HOMEPAGE = "http://www.gnu.org/software/cpio/" +SECTION = "utils" +LICENSE = "GPL" +MAINTAINER = "Chris Larson <kergoth@handhelds.org>" +PR = "r1" + +SRC_URI = "${GNU_MIRROR}/cpio/cpio-${PV}.tar.gz \ + file://install.patch;patch=1" +S = "${WORKDIR}/cpio-${PV}" + +inherit autotools diff --git a/cpio/files/install.patch b/cpio/files/install.patch index eb36818b93..fa39efa6c2 100644 --- a/cpio/files/install.patch +++ b/cpio/files/install.patch @@ -3,7 +3,7 @@ # Patch managed by http://www.holgerschurig.de/patcher.html # ---- cpio-2.5/Makefile.in~install +--- cpio-2.5/Makefile.in~install.patch +++ cpio-2.5/Makefile.in @@ -70,6 +70,7 @@ # Prefix for each installed man page, normally empty or `g'. @@ -13,7 +13,7 @@ # Where to install the cpio and mt executables. bindir = @bindir@ -@@ -123,11 +124,11 @@ +@@ -123,19 +124,19 @@ $(CC) -c $(CPPFLAGS) $(DEFS) -I$(srcdir) $(CFLAGS) $< install:: installdirs all $(srcdir)/cpio.1 $(srcdir)/mt.1 @@ -22,11 +22,39 @@ - -test ! -f rmt || $(INSTALL_PROGRAM) rmt $(libexecdir)/rmt - -$(INSTALL_DATA) $(srcdir)/cpio.1 $(mandir)/$(manprefix)cpio.$(manext) - -test ! -f mt || $(INSTALL_DATA) $(srcdir)/mt.1 $(mandir)/$(manprefix)mt.$(manext) -+ $(INSTALL_PROGRAM) cpio $(DESTDIR)$(bindir)/$(binprefix)cpio -+ test ! -f mt || $(INSTALL_PROGRAM) mt $(DESTDIR)$(bindir)/$(binprefix)mt -+ -test ! -f rmt || $(INSTALL_PROGRAM) rmt $(DESTDIR)$(libexecdir)/rmt -+ -$(INSTALL_DATA) $(srcdir)/cpio.1 $(DESTDIR)$(mandir)/$(manprefix)cpio.$(manext) -+ -test ! -f mt || $(INSTALL_DATA) $(srcdir)/mt.1 $(DESTDIR)$(mandir)/$(manprefix)mt.$(manext) ++ $(INSTALL_PROGRAM) -D cpio $(DESTDIR)$(bindir)/$(binprefix)cpio ++ test ! -f mt || $(INSTALL_PROGRAM) -D mt $(DESTDIR)$(bindir)/$(binprefix)mt ++ -test ! -f rmt || $(INSTALL_PROGRAM) -D rmt $(DESTDIR)$(libexecdir)/rmt ++ -$(INSTALL_DATA) -D $(srcdir)/cpio.1 $(DESTDIR)$(mandir)/$(manprefix)cpio.$(manext) ++ -test ! -f mt || $(INSTALL_DATA) -D $(srcdir)/mt.1 $(DESTDIR)$(mandir)/$(manprefix)mt.$(manext) installdirs: $(srcdir)/mkinstalldirs $(bindir) $(libexecdir) $(mandir) $(infodir) + + uninstall:: +- cd $(bindir); rm -f $(binprefix)cpio $(binprefix)mt +- -rm -f $(libexecdir)/rmt +- cd $(mandir); rm -f $(manprefix)cpio.$(manext) $(manprefix)mt.$(manext) ++ cd $(DESTDIR)$(bindir); rm -f $(binprefix)cpio $(binprefix)mt ++ -rm -f $(DESTDIR)$(libexecdir)/rmt ++ cd $(DESTDIR)$(mandir); rm -f $(manprefix)cpio.$(manext) $(manprefix)mt.$(manext) + + check: + @echo No tests are supplied. +@@ -186,14 +187,14 @@ + + install-info: $(INFO_DEPS) + for file in *.info*; do \ +- $(INSTALL_DATA) $$file $(infodir)/$$file; \ ++ $(INSTALL_DATA) -D $$file $(DESTDIR)$(infodir)/$$file; \ + done + + uninstall:: uninstall-info + + uninstall-info: + for file in *.info*; do \ +- rm -f $(infodir)/$$file; \ ++ rm -f $(DESTDIR)$(infodir)/$$file; \ + done + + clean: |