summaryrefslogtreecommitdiff
path: root/security/sbd
diff options
context:
space:
mode:
authorwiedi <wiedi>2014-02-09 00:44:36 +0000
committerwiedi <wiedi>2014-02-09 00:44:36 +0000
commit09eab19a877a3289d712b1b3fd5cc2f856fb80b5 (patch)
treec9396aeed2d62dff5a0e50c2f7848ea1d6ff211c /security/sbd
parentc5bced10c98dea88146479066734ddd3d11a9f7d (diff)
downloadpkgsrc-09eab19a877a3289d712b1b3fd5cc2f856fb80b5.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