diff options
author | obache <obache@pkgsrc.org> | 2011-03-20 11:46:34 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2011-03-20 11:46:34 +0000 |
commit | ec9e172ff9c4e537f81838dae3cb6772509390c1 (patch) | |
tree | 5f25a2619b0b870444f57380b91c39d844917e0a /net | |
parent | 913f7eb6e22202abd6e58c9b4a60ecd30cc68491 (diff) | |
download | pkgsrc-ec9e172ff9c4e537f81838dae3cb6772509390c1.tar.gz |
* LICENSE=gnu-gpl-v2
* add user-destdir installation support
Diffstat (limited to 'net')
-rw-r--r-- | net/ser/Makefile | 16 | ||||
-rw-r--r-- | net/ser/patches/patch-aa | 15 | ||||
-rw-r--r-- | net/ser/patches/patch-ad | 8 |
3 files changed, 18 insertions, 21 deletions
diff --git a/net/ser/Makefile b/net/ser/Makefile index 8b49d5c1ed6..b6c2a9f51c7 100644 --- a/net/ser/Makefile +++ b/net/ser/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2007/06/01 00:26:36 wiz Exp $ +# $NetBSD: Makefile,v 1.3 2011/03/20 11:46:34 obache Exp $ # DISTNAME= ser-0.8.14_src @@ -10,23 +10,29 @@ MASTER_SITES= ftp://ftp.berlios.de/pub/ser/0.8.14/src/ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.iptel.org/ser/ COMMENT= SIP express router +LICENSE= gnu-gpl-v2 -WRKSRC= ${WRKDIR}/ser-0.8.14 +PKG_DESTDIR_SUPPORT= user-destdir + +WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} USE_TOOLS+= flex gmake yacc PKG_SYSCONFSUBDIR= ser -EGDIR= ${PREFIX}/share/examples/ser -CONF_FILES= ${EGDIR}/ser.cfg ${PKG_SYSCONFDIR}/ser.cfg +EGDIR= share/examples/ser +CONF_FILES= ${PREFIX}/${EGDIR}/ser.cfg ${PKG_SYSCONFDIR}/ser.cfg -REQD_DIRS= ${EGDIR} +REQD_DIRS= ${PREFIX}/${EGDIR} MAKE_ENV+= BUILDLINK_PREFIX.pthread=${BUILDLINK_PREFIX.pthread:Q} MAKE_ENV+= cfg-prefix=${PREFIX}/share/examples MAKE_ENV+= EGDIR=${EGDIR:Q} +INSTALL_ENV+= BASEDIR=${DESTDIR} CHECK_PORTABILITY_SKIP+= scripts/sc +INSTALLATION_DIRS+= ${EGDIR} + .include "options.mk" .include "../../mk/pthread.buildlink3.mk" diff --git a/net/ser/patches/patch-aa b/net/ser/patches/patch-aa index 6aaac6feb23..9c000fed61c 100644 --- a/net/ser/patches/patch-aa +++ b/net/ser/patches/patch-aa @@ -1,16 +1,7 @@ -$NetBSD: patch-aa,v 1.3 2008/08/17 22:40:26 dholland Exp $ +$NetBSD: patch-aa,v 1.4 2011/03/20 11:46:34 obache Exp $ ---- Makefile.defs.orig 2004-07-27 07:38:33.000000000 -0400 -+++ Makefile.defs 2008-08-17 18:34:04.000000000 -0400 -@@ -77,7 +77,7 @@ prefix = $(PREFIX) - BASEDIR ?= - basedir = $(BASEDIR) - # install prefixes for various stuff --cfg-prefix = $(basedir)$(prefix) -+cfg-prefix = $(basedir)$(prefix)/share/examples - bin-prefix = $(basedir)$(prefix) - modules-prefix = $(basedir)$(prefix) - doc-prefix = $(basedir)$(prefix) +--- Makefile.defs.orig 2004-07-27 11:38:33.000000000 +0000 ++++ Makefile.defs @@ -85,9 +85,14 @@ man-prefix = $(basedir)$(prefix) ut-prefix = $(basedir)$(prefix) diff --git a/net/ser/patches/patch-ad b/net/ser/patches/patch-ad index 3db4cf2baa6..e712914b553 100644 --- a/net/ser/patches/patch-ad +++ b/net/ser/patches/patch-ad @@ -1,6 +1,6 @@ -$NetBSD: patch-ad,v 1.1.1.1 2007/03/23 06:24:49 wiz Exp $ +$NetBSD: patch-ad,v 1.2 2011/03/20 11:46:34 obache Exp $ ---- Makefile.orig 2004-07-27 01:18:34.000000000 +0200 +--- 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 @@ -16,8 +16,8 @@ $NetBSD: patch-ad,v 1.1.1.1 2007/03/23 06:24:49 wiz Exp $ - mv -f $(cfg-prefix)/$(cfg-dir)ser.cfg.sample \ - $(cfg-prefix)/$(cfg-dir)ser.cfg; \ - fi -+ < etc/ser.cfg > $(eg-dir)ser.cfg -+ chmod 644 $(eg-dir)ser.cfg ++ < 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 |