aboutsummaryrefslogtreecommitdiffstats
path: root/security/osiris/Makefile
blob: 119c0770d3c917ee528a290c424a86f51fe738dd (plain) (blame)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# $FreeBSD$

PORTNAME=   osiris
PORTVERSION=    4.2.3
PORTREVISION=   1
CATEGORIES= security
MASTER_SITES=   http://osiris.shmoo.com/data/ \
        http://redundancy.redundancy.org/mirror/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Shmoo client/server host integrity checker

GNU_CONFIGURE=  yes
USE_RC_SUBR=    yes

OPTIONS_DEFINE= OSIRISMD OSIRISD PRINTDB CLI
OPTIONS_DEFAULT=    OSIRISD
OPTIONS_SUB=    yes

OSIRISMD_DESC=  Management daemon
OSIRISD_DESC=   Scan agent
PRINTDB_DESC=   Database print tool
CLI_DESC=   Management CLI

.include <bsd.port.pre.mk>

.if exists(${LOCALBASE}/lib/libreadline.so.6)
LIB_DEPENDS+=   readline.6:${PORTSDIR}/devel/readline
.endif

post-build:
.if ${PORT_OPTIONS:MPRINTDB}
    cd ${WRKSRC}/src/tools && ${MAKE}
.endif

do-install:
    @${MKDIR} ${STAGEDIR}${PREFIX}/osiris
.if ${PORT_OPTIONS:MCLI}
    ${INSTALL_PROGRAM} ${WRKSRC}/src/cli/osiris ${STAGEDIR}${PREFIX}/sbin
.endif
.if ${PORT_OPTIONS:MPRINTDB}
    ${INSTALL_PROGRAM} ${WRKSRC}/src/tools/printdb ${STAGEDIR}${PREFIX}/bin
.endif
.if ${PORT_OPTIONS:MOSIRISD}
    ${SED} -e 's|@INSTALLDIR@|${PREFIX}/sbin|g' \
        -e 's|@OSIRISDIR@|${PREFIX}/osiris|g' \
        ${WRKSRC}/src/install/freebsd/osirisd.in > \
        ${WRKSRC}/src/install/freebsd/osirisd.sh
    ${INSTALL_PROGRAM} ${WRKSRC}/src/osirisd/osirisd ${STAGEDIR}${PREFIX}/sbin
    ${INSTALL_SCRIPT} ${WRKSRC}/src/install/freebsd/osirisd.sh \
        ${STAGEDIR}${PREFIX}/etc/rc.d
.endif
.if ${PORT_OPTIONS:MOSIRISMD}
    ${SED} -e 's|@INSTALLDIR@|${PREFIX}/sbin|g' \
        -e 's|@OSIRISDIR@|${PREFIX}/osiris|g' \
        ${WRKSRC}/src/install/freebsd/osirismd.in > \
        ${WRKSRC}/src/install/freebsd/osirismd.sh
    @${MKDIR} ${STAGEDIR}${PREFIX}/osiris/configs
.for os in aix bsdos darwin freebsd irix linux netbsd openbsd sunos \
    unix-generic windows2000 windowsnt windowsserver2003 windowsxp \
    wrt54g
    ${INSTALL_DATA} ${WRKSRC}/src/configs/default.${os} \
        ${STAGEDIR}${PREFIX}/osiris/configs
.endfor
    ${INSTALL_PROGRAM} -m 4755 ${WRKSRC}/src/osirismd/osirismd \
        ${STAGEDIR}${PREFIX}/sbin
    ${INSTALL_SCRIPT} ${WRKSRC}/src/install/freebsd/osirismd.sh \
        ${STAGEDIR}${PREFIX}/etc/rc.d
.endif

.include <bsd.port.post.mk>