Add support for Solaris as a target.
Make rc.d script optional in PLIST.
This commit is contained in:
parent
ff891244c9
commit
dbba9b4bb6
2 changed files with 9 additions and 3 deletions
|
@ -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}/
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue