diff options
author | Satoshi Taoka <taoka@FreeBSD.org> | 2001-03-10 04:06:43 +0000 |
---|---|---|
committer | Satoshi Taoka <taoka@FreeBSD.org> | 2001-03-10 04:06:43 +0000 |
commit | 6b66b2e07996497458f21d45651fa2af76989994 (patch) | |
tree | 4a2b302ad73894aec4f180816ca85f8527fae315 /print/bjfiltercom | |
parent | Fix pkg-plist (diff) |
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.
Notes
Notes:
svn path=/head/; revision=39343
Diffstat (limited to 'print/bjfiltercom')
-rw-r--r-- | print/bjfiltercom/Makefile | 11 | ||||
-rw-r--r-- | print/bjfiltercom/pkg-plist | 2 |
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 |