Subject: Re: CVS commit: wip/geoip
To: None <pkgsrc-wip-discuss@lists.sourceforge.net>
From: Quentin Garnier <sf@quatriemek.com>
List: tech-pkg
Date: 05/09/2003 14:31:09
Le Fri, 9 May 2003 14:13:09 +0200
Julio Merino a ecrit :
[...]
> Therefore, install the GeoIP.conf.default file as
> /usr/pkg/share/examples/GeoIP/GeoIP.conf (no need for the .default
> suffix) and let CONF_FILES copy it to PKG_SYSCONFDIR.  Also make sure
> the package itself does not try to create nor modify sysconfdir
> contents.

Speaking of which, is there a way to have symlinks copied ? Let me use
ion-devel as an example: the "theme" configuration file, draw.conf, is a
symlink to one of the proposed theme. I put draw.conf in CONF_FILES to
have something copied, but I get a plain file, not a symlink.

If the -R flag of cp is standardized, something like the following could
work. Is it a bad idea ? (It is a bad fix, but maybe we could test more
than just the existence of ${samplefile}).

Index: install/install
===================================================================
RCS file: /cvsroot/pkgsrc/mk/install/install,v
retrieving revision 1.19
diff -u -r1.19 install
--- install/install	2003/01/29 19:47:29	1.19
+++ install/install	2003/05/09 12:18:49
@@ -214,7 +214,7 @@
 		else
 			if [ -e "${samplefile}" ]; then
 				${ECHO} "    ${file}"
-				${CP} "${samplefile}" "${file}"
+				${CP} -R "${samplefile}" "${file}"
 				${CHMOD} @CONF_FILES_MODE@ "${file}"
 			fi
 		fi


-- 
Quentin Garnier - cube@cubidou.net
"Feels like I'm fiddling while Rome is burning down.
Should I lay my fiddle down and take a rifle from the ground ?"
Leigh Nash/Sixpence None The Richer, Paralyzed, Divine Discontents, 2002.