mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
Add a pkg-install check to see if xscreensaver is already installed. This
way, users won't end up with two versions of xscreensaver. Based on patches that were Submitted by: Miguel Mendez <flynn@energyhq.homeip.net>
This commit is contained in:
parent
61f30a9dfc
commit
1189082976
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=79038
@ -71,6 +71,11 @@ post-patch:
|
||||
@${REINPLACE_CMD} -e 's|malloc[.]h|stdlib.h|g' \
|
||||
${WRKSRC}/hacks/glx/extrusion.c
|
||||
|
||||
.if !defined(PACKAGE_BUILDING)
|
||||
pre-install:
|
||||
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
@${INSTALL_DATA} ${WRKSRC}/utils/images/logo-50.xpm \
|
||||
${PREFIX}/share/gnome/pixmaps/xscreensaver.xpm
|
||||
|
21
x11/xscreensaver-gnome/pkg-install
Normal file
21
x11/xscreensaver-gnome/pkg-install
Normal file
@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -n "${PACKAGE_BUILDING}" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin:${PATH}
|
||||
export PATH
|
||||
|
||||
if [ "$2" = "PRE-INSTALL" ]; then
|
||||
if pkg_info | grep "^xscreensaver-[0-9]" >/dev/null 2>&1; then
|
||||
echo ""
|
||||
echo "*********************************************************"
|
||||
echo "You already have the non-gnome xscreensaver installed."
|
||||
echo "Please deinstall it before installing xscreensaver-gnome."
|
||||
echo "*********************************************************"
|
||||
echo ""
|
||||
false
|
||||
fi
|
||||
done
|
||||
fi
|
Loading…
Reference in New Issue
Block a user