aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornetchild <netchild@FreeBSD.org>2007-07-02 00:29:19 +0800
committernetchild <netchild@FreeBSD.org>2007-07-02 00:29:19 +0800
commit75520aa88f6316c047138ee48be5380629444e81 (patch)
tree6a2a221c1469dad9aac33f1f26828edb8a879af5
parentcd5fad498357c33a0858275507c9bf9db4323d49 (diff)
downloadfreebsd-ports-gnome-75520aa88f6316c047138ee48be5380629444e81.tar.gz
freebsd-ports-gnome-75520aa88f6316c047138ee48be5380629444e81.tar.zst
freebsd-ports-gnome-75520aa88f6316c047138ee48be5380629444e81.zip
- convert to use USE_LINUX_RPM, this fixes the build problems after my last
commit to linux_base-fc4 [1] - don't install the contents of the dev directory, is is not supposed to exist with our linux_base, as it will not correctly fall back to the native dev directory for some programs (those which parse the directory contents instead of trying to open a file directly) Noticed by: pointyhat (pav)
-rw-r--r--sysutils/linux-afaapps/Makefile40
-rw-r--r--sysutils/linux-afaapps/distinfo.i3865
-rw-r--r--sysutils/linux-afaapps/pkg-plist.i3862
3 files changed, 22 insertions, 25 deletions
diff --git a/sysutils/linux-afaapps/Makefile b/sysutils/linux-afaapps/Makefile
index 6cdc7d9a0f9e..64ca9f8c4655 100644
--- a/sysutils/linux-afaapps/Makefile
+++ b/sysutils/linux-afaapps/Makefile
@@ -11,38 +11,36 @@ PORTREVISION= 4
CATEGORIES= sysutils linux
MASTER_SITES= ftp://ftp.us.dell.com/scsi-raid/
PKGNAMEPREFIX= linux-
-DISTNAME= aacraid-util-rh8.0-${MACHINE_ARCH}
+DISTNAME= aacraid-util-rh8.0-${LINUX_RPM_ARCH}
+DIST_SUBDIR= rpm
MAINTAINER= ports@FreeBSD.org
COMMENT= DELL PowerEdge Raid Controller 2 (apps)
-BUILD_DEPENDS= rpm:${PORTSDIR}/archivers/rpm
RUN_DEPENDS= ${LINUXBASE}/usr/lib/libartsc.so.0:${PORTSDIR}/audio/linux-arts
RESTRICTED= "binary redistribution license needs clarification"
-NO_BUILD= yes
-NO_WRKSUBDIR= yes
+USE_LINUX_RPM= yes
+ONLY_FOR_ARCHS= i386 amd64
+BRANDELF_FILES= usr/sbin/afacli
-USE_LINUX= yes
-USE_LINUX_PREFIX= yes
-LDCONFIG_LINUX= ${LINUXBASE}/sbin/ldconfig
+EXTRACT_CMD= ${GZIP_CMD}
+EXTRACT_BEFORE_ARGS= -dc
+EXTRACT_AFTER_ARGS= | ${TAR} -xf -
+EXTRACT_SUFX= .tar.gz
-ONLY_FOR_ARCHS= i386
-PLIST= ${MASTERDIR}/pkg-plist.${MACHINE_ARCH}
-MD5_FILE= ${MASTERDIR}/distinfo.${MACHINE_ARCH}
+RPMFILE= ${PORTNAME}-${PORTVERSION}-2.${LINUX_RPM_ARCH}.rpm
-RPMFILE= ${PORTNAME}-${PORTVERSION}-2.${MACHINE_ARCH}.rpm
+.include <bsd.port.pre.mk>
-DBPATH= /var/lib/rpm
-RPMFLAGS= --ignoreos --root ${PREFIX} --dbpath ${DBPATH} \
- --nodeps --replacepkgs --noscripts
+post-extract:
+ @cd ${WRKDIR} && ${RPM2CPIO} ${RPMFILE} | ${CPIO} -id --quiet && \
+ ${RM} ${RPMFILE} readme
-do-install:
- @${LOCALBASE}/bin/rpm -U ${RPMFLAGS} ${WRKDIR}/${RPMFILE}
- @${RM} ${PREFIX}/usr/sbin/afacli
- @${MV} ${PREFIX}/usr/sbin/afacli.bin ${PREFIX}/usr/sbin/afacli
- @${BRANDELF} -t Linux ${PREFIX}/usr/sbin/afacli
- @${LDCONFIG_LINUX}
+build: configure
+ @${RM} -rf ${WRKDIR}/dev
+ @${RM} ${WRKDIR}/usr/sbin/afacli
+ @${MV} ${WRKDIR}/usr/sbin/afacli.bin ${WRKDIR}/usr/sbin/afacli
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/sysutils/linux-afaapps/distinfo.i386 b/sysutils/linux-afaapps/distinfo.i386
index 98007b0f95ba..a8662cb8fc60 100644
--- a/sysutils/linux-afaapps/distinfo.i386
+++ b/sysutils/linux-afaapps/distinfo.i386
@@ -1,2 +1,3 @@
-MD5 (aacraid-util-rh8.0-i386.tar.gz) = 06195cbabedef5983d2d06fa7cf2088a
-SIZE (aacraid-util-rh8.0-i386.tar.gz) = 402205
+MD5 (rpm/aacraid-util-rh8.0-i386.tar.gz) = 06195cbabedef5983d2d06fa7cf2088a
+SHA256 (rpm/aacraid-util-rh8.0-i386.tar.gz) = 4cd1c322e6a73e7f580b4960de02bb7800d30d191caa7c1f67b0ba5566c0374a
+SIZE (rpm/aacraid-util-rh8.0-i386.tar.gz) = 402205
diff --git a/sysutils/linux-afaapps/pkg-plist.i386 b/sysutils/linux-afaapps/pkg-plist.i386
index cad4b48b9591..c4a1f4dca75c 100644
--- a/sysutils/linux-afaapps/pkg-plist.i386
+++ b/sysutils/linux-afaapps/pkg-plist.i386
@@ -1,4 +1,2 @@
-dev/MAKEDEV.afa
usr/sbin/afacli
usr/sbin/getcfg.afa
-@dirrmtry dev