diff options
author | taoka <taoka@FreeBSD.org> | 2001-03-10 18:43:57 +0800 |
---|---|---|
committer | taoka <taoka@FreeBSD.org> | 2001-03-10 18:43:57 +0800 |
commit | 8ef6601aeb058052e2c2a8193d9d31bc202762d7 (patch) | |
tree | c44239c5a7abf048ae499cc9904d02b4d40db712 /print | |
parent | e69c61d9a234759933417a3015ab506bfab0cbc6 (diff) | |
download | freebsd-ports-gnome-8ef6601aeb058052e2c2a8193d9d31bc202762d7.tar.gz freebsd-ports-gnome-8ef6601aeb058052e2c2a8193d9d31bc202762d7.tar.zst freebsd-ports-gnome-8ef6601aeb058052e2c2a8193d9d31bc202762d7.zip |
I found a yet another *simple* solution to a problem
with respect to the rpm command.
It is to use rpm2cpio instead of rpm as an extract command.
Suggested by: KOMATSU Shinichiro <koma2@jiro.c.u-tokyo.ac.jp>
Obtained from: ports-jp@jp.freebsd.org
Diffstat (limited to 'print')
-rw-r--r-- | print/bjfiltercom/Makefile | 37 | ||||
-rw-r--r-- | print/bjfiltercom/pkg-plist | 2 |
2 files changed, 14 insertions, 25 deletions
diff --git a/print/bjfiltercom/Makefile b/print/bjfiltercom/Makefile index 78aab1cfc38b..9397287a4432 100644 --- a/print/bjfiltercom/Makefile +++ b/print/bjfiltercom/Makefile @@ -9,16 +9,16 @@ PORTNAME?= bjfiltercom PORTVERSION?= 1.0 CATEGORIES= print linux MASTER_SITES= ftp://www.canon-sales.co.jp/pub/driver/printer/BJ/linux/ -DISTFILES= ${RPMFILES} +DISTFILES= ${RPMFILE} .if !defined(SLAVE_PORT) DISTFILES+= ${DOC_DISTFILES} .endif +EXTRACT_ONLY= ${RPMFILE} MAINTAINER= taoka@FreeBSD.org -BUILD_DEPENDS= rpm:${PORTSDIR}/misc/rpm +BUILD_DEPENDS= rpm2cpio:${PORTSDIR}/misc/rpm2cpio .if defined(SLAVE_PORT) -BIN_FILES= bjpsprn RUN_DEPENDS= stsmon:${PORTSDIR}/print/bjfiltercom \ pstops:${PORTSDIR}/print/psutils-${PAPERSIZE} .else @@ -30,47 +30,38 @@ RUN_DEPENDS= /compat/linux/lib/libc.so.6:${PORTSDIR}/emulators/linux_base \ BIN_FILES= bjprn stsmon printui lgmon bjfilter .endif +EXTRACT_CMD= rpm2cpio +EXTRACT_BEFORE_ARGS= +EXTRACT_AFTER_ARGS= | cpio -id --quiet + +PLIST_SUB= PORTVERSION=${PORTVERSION} DIST_SUBDIR= bjfilter PLIST= ${.CURDIR}/pkg-plist COMMENT= ${.CURDIR}/pkg-comment DESCR= ${.CURDIR}/pkg-descr MD5_FILE= ${.CURDIR}/distinfo -EXTRACT_ONLY= ONLY_FOR_ARCHS= i386 -.if !defined(SLAVE_PORT) -NO_BUILD= yes -.endif NO_FILTER_SHLIBS= yes NO_MTREE= yes - -RPMFILES= ${PORTNAME}-${PORTVERSION}-0.i386.rpm +RPMFILE= ${PORTNAME}-${PORTVERSION}-0.i386.rpm .if defined(SLAVE_PORT) +BIN_FILES= bjpsprn FILTER= ${FILESDIR}/filter PAPERSIZE?= a4 +.else +NO_BUILD= yes .endif DOC_DIR= ${PREFIX}/share/doc/bjfiltercom-${PORTVERSION} HTML_DIR= ${DOC_DIR}/html DOC_DISTFILES= readme.tar.gz instruction.tar.gz faq.tar.gz -DBPATH= /var/lib/rpm - -# For "rpm -U" -RPMFLAGS= --noscripts \ - --ignoreos --root /compat/linux --dbpath ${DBPATH} \ - --nodeps --replacepkgs --replacefiles -vv -# For "rpm -e" -RM_RPMFLAGS= --noscripts --root /compat/linux --dbpath ${DBPATH} \ - --nodeps -RPMDIR= ${DISTDIR}/${DIST_SUBDIR} -PLIST_SUB= PORTVERSION=${PORTVERSION} RM_RPMFLAGS="${RM_RPMFLAGS}" do-build: ${SED} -e 's,%%PRTYPE%%,${PRTYPE},' \ ${FILTER} > ${WRKDIR}/filter${PRTYPE} do-install: - for R in ${RPMFILES}; do \ - rpm -U ${RPMFLAGS} ${RPMDIR}/$$R; \ - done + cd ${WRKDIR}; \ + ${TAR} cf - usr | ${TAR} xfp - -C /compat/linux .for i in ${BIN_FILES} ${MV} /compat/linux/usr/local/bin/$i ${PREFIX}/bin .endfor diff --git a/print/bjfiltercom/pkg-plist b/print/bjfiltercom/pkg-plist index 8dd54a6b3ad2..55878fa00448 100644 --- a/print/bjfiltercom/pkg-plist +++ b/print/bjfiltercom/pkg-plist @@ -46,5 +46,3 @@ usr/local/share/printui/ui-usa.res usr/local/share/printui/yellow_bar.xpm @dirrm usr/lib/bjlib @dirrm usr/local/share/printui -@comment To maintain ${LINUXBASE}/var/lib/rpm/ -@unexec rpm -e %%RM_RPMFLAGS%% bjfiltercom-%%PORTVERSION%% > /dev/null 2>&1; true |