pmount redux...
- From: "Joseph E. Sacco, PhD" <joseph_sacco comcast net>
- To: garnome-list <garnome-list gnome org>
- Subject: pmount redux...
- Date: Tue, 23 Aug 2005 20:55:51 -0400
Try this one...
-Joseph
--
joseph_sacco [at] comcast [dot] net
GARNAME = pmount
GARVERSION = 0.9.4
CATEGORIES = bootstrap
DISTFILES = $(GARNAME)-$(GARVERSION).tar.bz2
MASTER_SITES = ftp://cipherfunk.org/pub/tarballs/garnome/other_downloads/
LIBDEPS = freedesktop/hal
DESCRIPTION = pmount
define BLURB
#FIXME: blurb goes here
endef
BUILD_SCRIPTS = $(WORKSRC)/Makefile
INSTALL_SCRIPTS = custom
CONFIGURE_ARGS = $(DIRPATHS)
include ../category.mk
install-custom:
@if [[ -n "${UNATTENDED}" || -e $(COOKIEDIR)/install ]] ; then : ; \
else \
if [ `id -u` = "0" ] ; then \
$(MAKE) -C $(WORKSRC) install ; \
else \
echo " ==> You need to be root to install pmount" ; \
echo " ==> If you do not have the root password then press <ENTER>" ; \
if [ -x `which sudo` -a -e /etc/sudoers ] && [ -e /etc/issue.warty ] || [ "`grep -i ubuntu /etc/issue`" ] ; then \
echo " ==> Please provide your password" ; \
sudo sh -c "$(MAKE) -C $(WORKSRC) install PREFIX=$(prefix)" ; \
if [ $$? -gt 0 ] ; then \
mv ../pmount ../.pmount ; \
fi ; \
elif [ -x `which su` ] ; then \
echo " ==> Please provide the root password" ; \
su -m -c "$(MAKE) -C $(WORKSRC) install PREFIX=$(prefix)" ; \
if [ $$? -gt 0 ] ; then \
mv ../pmount ../.pmount ; \
echo " ==> You chose not to provide a root password" ; \
echo " ==> pmount support will NOT be included" ; \
fi ; \
fi ; \
fi ; \
fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]