summaryrefslogtreecommitdiff
path: root/sysutils/socklog/Makefile
blob: 225c6d58fba3fd3104e2d9ce3125b64b03f131b0 (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
# Created by: Sergei Kolobov <sergei@kolobov.com>
# $FreeBSD$

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

MAINTAINER=	ports@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

NO_STAGE=	yes
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>