aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/socklog/Makefile
blob: aa421c6a9d5b860c4e3683355ae7df0d2ffc8bf1 (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
# New ports collection makefile for:    socklog
# Date created:     22 Aug 2002
# Whom:         Sergei Kolobov <sergei@kolobov.com>
#
# $FreeBSD$
#

PORTNAME=   socklog
PORTVERSION=    2.0.2
CATEGORIES= sysutils net
MASTER_SITES=   http://smarden.org/socklog/

MAINTAINER= sergei@FreeBSD.org
COMMENT=    Small and secure replacement for syslogd

RUN_DEPENDS=    ${LOCALBASE}/sbin/chpst:${PORTSDIR}/sysutils/runit

WRKSRC=     ${WRKDIR}/admin/${DISTNAME}
ALL_TARGET= default

MAN1=       tryto.1 uncat.1
MAN8=       socklog-check.8 socklog-conf.8 socklog.8
DOCS=       package/CHANGES package/COPYING package/README doc/*.html

do-configure:
    ${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/src/conf-cc

do-build:
    cd ${WRKSRC} && package/compile
    @${ECHO_MSG} "Type 'make test' to run self-tests"

test:
    cd ${WRKSRC} && package/check

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/command/* ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/man/*.1 ${MANPREFIX}/man/man1
    ${INSTALL_MAN} ${WRKSRC}/man/*.8 ${MANPREFIX}/man/man8
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif

.include <bsd.port.mk>