aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
Diffstat (limited to 'print')
-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