blob: 7f6cbc14df5a77a5677c300ffb614f93a3bdcdfc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# $NetBSD: Makefile,v 1.1.1.1 2007/05/10 18:18:16 agc Exp $
#
DISTNAME= sbd-0.5
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sbd/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://sourceforge.net/projects/sbd/
COMMENT= HMAC & one-time pad-based remote login program
WRKSRC= ${WRKDIR}/sbd
USE_LANGUAGES+= c c++
EGDIR= ${PREFIX}/share/sbd
CONF_FILES= ${EGDIR}/deckey.bits ${PKG_SYSCONFDIR}/sbd/deckey.bits
CONF_FILES+= ${EGDIR}/enckey.bits ${PKG_SYSCONFDIR}/sbd/enckey.bits
CONF_FILES+= ${EGDIR}/athkey.bits ${PKG_SYSCONFDIR}/sbd/athkey.bits
do-configure:
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
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sbdd ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/sbd ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/sbd
${INSTALL_DATA_DIR} ${PKG_SYSCONFDIR}/sbd
${INSTALL_DATA} ${WRKSRC}/PROTOCOL ${PREFIX}/share/sbd/
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/sbd/
${INSTALL_DATA} ${WRKSRC}/athkey.bits ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/deckey.bits ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/enckey.bits ${EGDIR}
.include "../../mk/bsd.pkg.mk"
|