Make the portmap makefile suck less, and remove the fakeroot requirement.
authorChris Larson <clarson@kergoth.com>
Thu, 24 Jun 2004 21:13:52 +0000 (21:13 +0000)
committerChris Larson <clarson@kergoth.com>
Thu, 24 Jun 2004 21:13:52 +0000 (21:13 +0000)
BKrev: 40db4410mk928K6DNKsVGpTsMWKdsg

portmap/make.patch [moved from portmap/install.patch with 100% similarity]
portmap/portmap_5-4.oe

similarity index 100%
rename from portmap/install.patch
rename to portmap/make.patch
index b614284..98ed8be 100644 (file)
@@ -1,17 +1,16 @@
 SRC_URI = "http://www.uk.debian.org/debian/pool/main/p/portmap/portmap_5.orig.tar.gz \
        http://www.uk.debian.org/debian/pool/main/p/portmap/portmap_5-4.diff.gz;patch=1 \
        file://no-libwrap.patch;patch=1;pnum=0 \
-       file://install.patch;patch=1;pnum=0"
+       file://make.patch;patch=1"
 S = "${WORKDIR}/portmap_5beta"
 
-FILES_${PN} += " /sbin"
+sbindir = "/sbin"
 
 do_compile() {
-       oe_runmake CFLAGS="${CFLAGS} \$(COPT) \$(NSARCHS)"
+       oe_runmake
 }
 
-fakeroot do_install() {
-       install -d ${D}/${datadir}/man/man8
-       install -d ${D}/${datadir}/doc/portmap
-       oe_runmake BASEDIR="${D}" install
+do_install() {
+       oe_runmake 'docdir=${datadir}/doc/portmap' \
+                  'DESTDIR=${D}' install
 }