aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortaoka <taoka@FreeBSD.org>2001-03-10 12:06:43 +0800
committertaoka <taoka@FreeBSD.org>2001-03-10 12:06:43 +0800
commit44e4a42fa9279f8afd778928abe416af95709815 (patch)
treee7f7689ca38071c0fa286dd2017d7364dc233962
parent6b005703ac091ff768bd56ef2be61c5de5aabe7f (diff)
downloadfreebsd-ports-gnome-44e4a42fa9279f8afd778928abe416af95709815.tar.gz
freebsd-ports-gnome-44e4a42fa9279f8afd778928abe416af95709815.tar.zst
freebsd-ports-gnome-44e4a42fa9279f8afd778928abe416af95709815.zip
An error occured in "rpm -U". Adding "--noscripts" to rpm's flags,
it solves. To maintain ${LINUXBASE}/var/lib/rpm/, we must add the command such as @unexec rpm -e %%RM_RPMFLAGS%% bjfiltercom-%%PORTVERSION%% > /dev/null 2>&1 to pkg-plist for all rpm's package.
-rw-r--r--print/bjfiltercom/Makefile11
-rw-r--r--print/bjfiltercom/pkg-plist2
2 files changed, 10 insertions, 3 deletions
diff --git a/print/bjfiltercom/Makefile b/print/bjfiltercom/Makefile
index 3a8f45aea953..78aab1cfc38b 100644
--- a/print/bjfiltercom/Makefile
+++ b/print/bjfiltercom/Makefile
@@ -52,10 +52,16 @@ 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
-RPMFLAGS= --ignoreos --root /compat/linux --dbpath ${DBPATH} \
+
+# 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}
+PLIST_SUB= PORTVERSION=${PORTVERSION} RM_RPMFLAGS="${RM_RPMFLAGS}"
do-build:
${SED} -e 's,%%PRTYPE%%,${PRTYPE},' \
@@ -66,7 +72,6 @@ do-install:
rpm -U ${RPMFLAGS} ${RPMDIR}/$$R; \
done
.for i in ${BIN_FILES}
- ${RM} -f /compat/linux/usr/bin/$i
${MV} /compat/linux/usr/local/bin/$i ${PREFIX}/bin
.endfor
.if defined(SLAVE_PORT)
diff --git a/print/bjfiltercom/pkg-plist b/print/bjfiltercom/pkg-plist
index 55878fa00448..f03b92b8c340 100644
--- a/print/bjfiltercom/pkg-plist
+++ b/print/bjfiltercom/pkg-plist
@@ -46,3 +46,5 @@ 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