pkgsrc/net/ser/patches/patch-ad
obache ec9f611e87 * LICENSE=gnu-gpl-v2
* add user-destdir installation support
2011-03-20 11:46:34 +00:00

23 lines
910 B
Text

$NetBSD: patch-ad,v 1.2 2011/03/20 11:46:34 obache Exp $
--- Makefile.orig 2004-07-26 23:18:34.000000000 +0000
+++ Makefile
@@ -252,15 +252,10 @@ $(man-prefix)/$(man-dir)/man5:
mkdir -p $(man-prefix)/$(man-dir)/man5
# note: on solaris 8 sed: ? or \(...\)* (a.s.o) do not work
-install-cfg: $(cfg-prefix)/$(cfg-dir)
+install-cfg:
sed -e "s#/usr/.*lib/ser/modules/#$(modules-target)#g" \
- < etc/ser.cfg > $(cfg-prefix)/$(cfg-dir)ser.cfg.sample
- chmod 644 $(cfg-prefix)/$(cfg-dir)ser.cfg.sample
- if [ -z "${skip_cfg_install}" -a \
- ! -f $(cfg-prefix)/$(cfg-dir)ser.cfg ]; then \
- mv -f $(cfg-prefix)/$(cfg-dir)ser.cfg.sample \
- $(cfg-prefix)/$(cfg-dir)ser.cfg; \
- fi
+ < etc/ser.cfg > $(cfg-prefix)/$(eg-dir)ser.cfg
+ chmod 644 $(cfg-prefix)/$(eg-dir)ser.cfg
# $(INSTALL-CFG) etc/ser.cfg $(cfg-prefix)/$(cfg-dir)
install-bin: $(bin-prefix)/$(bin-dir) utils/gen_ha1/gen_ha1