summaryrefslogtreecommitdiff
path: root/security/sbd
diff options
context:
space:
mode:
authorwiedi <wiedi@pkgsrc.org>2014-02-09 00:44:36 +0000
committerwiedi <wiedi@pkgsrc.org>2014-02-09 00:44:36 +0000
commita258fc0957790c66f70a1f7a7694ea40c809cbbc (patch)
treec9396aeed2d62dff5a0e50c2f7848ea1d6ff211c /security/sbd
parent12dfc76d1fc7af6d05205280310e5d39e0a81570 (diff)
downloadpkgsrc-a258fc0957790c66f70a1f7a7694ea40c809cbbc.tar.gz
Add network libs on SunOS
Diffstat (limited to 'security/sbd')
-rw-r--r--security/sbd/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/security/sbd/Makefile b/security/sbd/Makefile
index 70fd6d9d66d..ce3709bf80f 100644
--- a/security/sbd/Makefile
+++ b/security/sbd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2012/10/23 18:16:57 asau Exp $
+# $NetBSD: Makefile,v 1.4 2014/02/09 00:44:36 wiedi Exp $
#
DISTNAME= sbd-0.5
@@ -24,10 +24,12 @@ INSTALLATION_DIRS+= bin share/sbd
OWN_DIRS+= ${PKG_SYSCONFDIR}/sbd
+LDFLAGS.SunOS+= -lsocket -lnsl
+
do-build:
cd ${WRKSRC} && \
- ${CXX} -DPKG_SYSCONFDIR=\""${PKG_SYSCONFDIR}/sbd\"" -Wall -O2 -o sbdd ssocket.cpp sha1.cpp utils.cpp sbdd.cpp; \
- ${CXX} -DPKG_SYSCONFDIR=\""${PKG_SYSCONFDIR}/sbd\"" -Wall -O2 -o sbd csocket.cpp sha1.cpp utils.cpp sbd.cpp
+ ${CXX} -DPKG_SYSCONFDIR=\""${PKG_SYSCONFDIR}/sbd\"" -Wall -O2 -o sbdd ssocket.cpp sha1.cpp utils.cpp sbdd.cpp ${LDFLAGS}; \
+ ${CXX} -DPKG_SYSCONFDIR=\""${PKG_SYSCONFDIR}/sbd\"" -Wall -O2 -o sbd csocket.cpp sha1.cpp utils.cpp sbd.cpp ${LDFLAGS}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sbdd ${DESTDIR}${PREFIX}/bin