Attached is a GARNOME Makefile for building bootstrap/pmount.

This makefile addresses some deficiencies inherent in source
distribution. Specifically,

* no configure file
* build is dependent upon freedesktop/hal
* installation requires root privileges
* default installation location is /usr/local

-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)
BUILD_ARGS = "PREFIX=$(prefix)"

include ../category.mk

install-custom:
        @if [ -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) $(BUILD_ARGS) 
install" ; \
                                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) 
$(BUILD_ARGS) install" ; \
                                        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
-- 
garnome-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/garnome-list

Reply via email to