diff options
author | fhajny <fhajny@pkgsrc.org> | 2011-12-16 12:14:12 +0000 |
---|---|---|
committer | fhajny <fhajny@pkgsrc.org> | 2011-12-16 12:14:12 +0000 |
commit | dbba9b4bb62287ad71ac3dbc42937673d26f62d2 (patch) | |
tree | cc1d3f5d77e05298fb35f30bd2381b579f0c3f08 /net | |
parent | ff891244c9c1dfc025dfca12c485835ebfdeb9d9 (diff) | |
download | pkgsrc-dbba9b4bb62287ad71ac3dbc42937673d26f62d2.tar.gz |
Add support for Solaris as a target.
Make rc.d script optional in PLIST.
Diffstat (limited to 'net')
-rw-r--r-- | net/haproxy/Makefile | 8 | ||||
-rw-r--r-- | net/haproxy/PLIST | 4 |
2 files changed, 9 insertions, 3 deletions
diff --git a/net/haproxy/Makefile b/net/haproxy/Makefile index 97df2d2ce00..b8bf7be877f 100644 --- a/net/haproxy/Makefile +++ b/net/haproxy/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2011/10/31 23:34:07 morr Exp $ +# $NetBSD: Makefile,v 1.2 2011/12/16 12:14:12 fhajny Exp $ DISTNAME= haproxy-1.4.18 CATEGORIES= net www @@ -23,9 +23,11 @@ INSTALLATION_DIRS= ${EGDIR} share/examples/rc.d .include "../../mk/bsd.prefs.mk" +PLIST_VARS+= rcd .if ${OPSYS} == "NetBSD" RCD_SCRIPTS= haproxy INSTALLATION_DIRS+= share/examples/rc.d +PLIST.rcd= yes .endif .if ${OPSYS} == "NetBSD" @@ -34,6 +36,8 @@ TARGET=netbsd TARGET=freebsd .elif ${OPSYS} == "OpenBSD" TARGET=openbsd +.elif ${OPSYS} == "SunOS" +TARGET=solaris .elif ${OPSYS} == "Linux" . if !empty(OS_VERSION:M2.6.*) TARGET=linux26 @@ -48,6 +52,8 @@ TARGET=linux24 TARGET=generic .endif +LIBS.SunOS+= -lxnet + post-install: ${INSTALL_DATA} ${WRKSRC}/examples/haproxy.cfg ${DESTDIR}${EGDIR}/ diff --git a/net/haproxy/PLIST b/net/haproxy/PLIST index f57bc8b8b04..0de8ae9d6a9 100644 --- a/net/haproxy/PLIST +++ b/net/haproxy/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.1.1.1 2011/10/31 23:34:07 morr Exp $ +@comment $NetBSD: PLIST,v 1.2 2011/12/16 12:14:12 fhajny Exp $ man/man1/haproxy.1 sbin/haproxy share/doc/haproxy/architecture.txt @@ -6,4 +6,4 @@ share/doc/haproxy/configuration.txt share/doc/haproxy/haproxy-en.txt share/doc/haproxy/haproxy-fr.txt share/examples/haproxy/haproxy.cfg -share/examples/rc.d/haproxy +${PLIST.rcd}share/examples/rc.d/haproxy |