mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-26 09:46:09 +00:00
- Convert nvu to generic pkg-[de]install script
This commit is contained in:
parent
6278170319
commit
5b63cd82a0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=159707
@ -1,26 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
# $MCom: ports/www/nvu/pkg-deinstall.in,v 1.1 2005/11/14 04:12:09 ahze Exp $
|
||||
#
|
||||
# Date created: Mon Nov 29, 2003
|
||||
# Whom: Thierry Thomas (<thierry@pompo.net>)
|
||||
# Fix the chrome registry.
|
||||
|
||||
umask 022
|
||||
PATH=/bin:/usr/bin
|
||||
|
||||
[ "x$1" = "x" ] && exit 1
|
||||
[ "x$2" != "xDEINSTALL" ] && exit 0
|
||||
|
||||
NVUDIR=%%MOZDIR%%
|
||||
|
||||
rm -rf ${NVUDIR}/chrome/overlayinfo
|
||||
rm -f ${NVUDIR}/chrome/*.rdf
|
||||
rm -f ${NVUDIR}/component.reg
|
||||
rm -f ${NVUDIR}/components.ini
|
||||
rm -f ${NVUDIR}/defaults.ini
|
||||
rm -f ${NVUDIR}/components/*.dat
|
||||
rm -rf ${NVUDIR}/extensions
|
||||
|
||||
exit 0
|
@ -1,33 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
# $MCom: ports/www/nvu/pkg-install.in,v 1.1 2005/11/14 04:12:09 ahze Exp $
|
||||
#
|
||||
# Date created: Mon Nov 29, 2003
|
||||
# Whom: Thierry Thomas (<thierry@pompo.net>)
|
||||
# Fix the chrome registry.
|
||||
|
||||
umask 022
|
||||
PATH=/bin:/usr/bin:/usr/local/bin
|
||||
|
||||
[ "x$1" = "x" ] && exit 1
|
||||
[ "x$2" != "xPOST-INSTALL" ] && exit 0
|
||||
|
||||
NVUDIR=%%MOZDIR%%
|
||||
REGXPCOM=${NVUDIR}/regxpcom
|
||||
REGCHROME=${NVUDIR}/regchrome
|
||||
NVUBIN=${NVUDIR}/nvu-bin
|
||||
|
||||
echo "===> Building Chrome's registry..."
|
||||
rm -rf ${NVUDIR}/chrome/overlayinfo
|
||||
rm -f ${NVUDIR}/chrome/*.rdf
|
||||
mkdir -p ${NVUDIR}/chrome/overlayinfo
|
||||
rm -f ${NVUDIR}/component.reg
|
||||
rm -rf ${NVUDIR}/extensions
|
||||
|
||||
cd ${NVUDIR} || exit 1
|
||||
./run-mozilla.sh ${REGXPCOM} || true
|
||||
./run-mozilla.sh ${REGCHROME} || true
|
||||
./run-mozilla.sh ${NVUBIN} -register > /dev/null 2>&1
|
||||
|
||||
exit 0
|
@ -94,6 +94,8 @@ MOZILLA_PLIST_DIRS?= bin include lib share/idl
|
||||
|
||||
PKGINSTALL?= ${WRKDIR}/pkg-install
|
||||
PKGDEINSTALL?= ${WRKDIR}/pkg-deinstall
|
||||
PKGINSTALL_INC?= ${MASTERDIR}/pkg-install.in
|
||||
PKGDEINSTALL_INC?= ${MASTERDIR}/pkg-deinstall.in
|
||||
|
||||
EXTRACT_AFTER_ARGS?= | ${TAR} -xf - --exclude */CVS/* \
|
||||
--exclude */macbuild/* \
|
||||
@ -239,11 +241,11 @@ MOZCONFIG_SED?= ${SED} ${MOZ_SED_ARGS}
|
||||
post-patch: gecko-post-patch gecko-moz-pis-patch
|
||||
|
||||
gecko-post-patch:
|
||||
.if exists(${MASTER_DIR}/pkg-install.in)
|
||||
@${MOZCONFIG_SED} < ${MASTER_DIR}/pkg-install.in > ${PKGINSTALL}
|
||||
.if exists(${PKGINSTALL_INC})
|
||||
@${MOZCONFIG_SED} < ${PKGINSTALL_INC} > ${PKGINSTALL}
|
||||
.endif
|
||||
.if exists(${MASTER_DIR}/pkg-deinstall.in)
|
||||
@${MOZCONFIG_SED} < ${MASTER_DIR}/pkg-deinstall.in > ${PKGDEINSTALL}
|
||||
.if exists(${PKGDEINSTALL_INC})
|
||||
@${MOZCONFIG_SED} < ${PKGDEINSTALL_INC} > ${PKGDEINSTALL}
|
||||
.endif
|
||||
@${RM} -f ${MOZCONFIG}
|
||||
.if !defined(NOMOZCONFIG)
|
||||
|
@ -23,5 +23,6 @@ rm -f ${MOZDIR}/components.ini
|
||||
rm -f ${MOZDIR}/defaults.ini
|
||||
rm -f ${MOZDIR}/chrome/app-chrome.manifest
|
||||
rm -rf ${MOZDIR}/updates
|
||||
rm -rf ${MOZDIR}/extensions
|
||||
|
||||
exit 0
|
||||
|
@ -1,26 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
# $MCom: ports/www/nvu/pkg-deinstall.in,v 1.1 2005/11/14 04:12:09 ahze Exp $
|
||||
#
|
||||
# Date created: Mon Nov 29, 2003
|
||||
# Whom: Thierry Thomas (<thierry@pompo.net>)
|
||||
# Fix the chrome registry.
|
||||
|
||||
umask 022
|
||||
PATH=/bin:/usr/bin
|
||||
|
||||
[ "x$1" = "x" ] && exit 1
|
||||
[ "x$2" != "xDEINSTALL" ] && exit 0
|
||||
|
||||
NVUDIR=%%MOZDIR%%
|
||||
|
||||
rm -rf ${NVUDIR}/chrome/overlayinfo
|
||||
rm -f ${NVUDIR}/chrome/*.rdf
|
||||
rm -f ${NVUDIR}/component.reg
|
||||
rm -f ${NVUDIR}/components.ini
|
||||
rm -f ${NVUDIR}/defaults.ini
|
||||
rm -f ${NVUDIR}/components/*.dat
|
||||
rm -rf ${NVUDIR}/extensions
|
||||
|
||||
exit 0
|
@ -1,33 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
# $MCom: ports/www/nvu/pkg-install.in,v 1.1 2005/11/14 04:12:09 ahze Exp $
|
||||
#
|
||||
# Date created: Mon Nov 29, 2003
|
||||
# Whom: Thierry Thomas (<thierry@pompo.net>)
|
||||
# Fix the chrome registry.
|
||||
|
||||
umask 022
|
||||
PATH=/bin:/usr/bin:/usr/local/bin
|
||||
|
||||
[ "x$1" = "x" ] && exit 1
|
||||
[ "x$2" != "xPOST-INSTALL" ] && exit 0
|
||||
|
||||
NVUDIR=%%MOZDIR%%
|
||||
REGXPCOM=${NVUDIR}/regxpcom
|
||||
REGCHROME=${NVUDIR}/regchrome
|
||||
NVUBIN=${NVUDIR}/nvu-bin
|
||||
|
||||
echo "===> Building Chrome's registry..."
|
||||
rm -rf ${NVUDIR}/chrome/overlayinfo
|
||||
rm -f ${NVUDIR}/chrome/*.rdf
|
||||
mkdir -p ${NVUDIR}/chrome/overlayinfo
|
||||
rm -f ${NVUDIR}/component.reg
|
||||
rm -rf ${NVUDIR}/extensions
|
||||
|
||||
cd ${NVUDIR} || exit 1
|
||||
./run-mozilla.sh ${REGXPCOM} || true
|
||||
./run-mozilla.sh ${REGCHROME} || true
|
||||
./run-mozilla.sh ${NVUBIN} -register > /dev/null 2>&1
|
||||
|
||||
exit 0
|
Loading…
Reference in New Issue
Block a user