aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/cronolog/Makefile
blob: 656a197791e276c44ed013a4084df6f167b1e0dc (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
# New ports collection makefile for:   cronolog
# Date created:        20 January 2000
# Whom:                Mark Blackman <tmb_ports@maddog.u-net.com>
#
# $FreeBSD$
#

PORTNAME=   cronolog
PORTVERSION=    1.6.2
PORTREVISION=   3
CATEGORIES= sysutils
MASTER_SITES=   http://cronolog.org/download/

MAINTAINER= ports@FreeBSD.org
COMMENT=    A web log rotation utility that provides datestamp filenames

INFO=       cronolog
MAN1=       cronolog.1m cronosplit.1m

GNU_CONFIGURE=  yes

OPTIONS=    SETUID_PATCH "Build with setuid functionality" On

EXTRA_PATCHES=  ${FILESDIR}/extrapatch-src_cronoutils.c
PATCH_STRIP=    -p1

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_SETUID_PATCH)
MASTER_SITES+=  http://cronolog.org/patches/:patches
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX} cronolog-setugid-patch.txt:patches
EXTRACT_ONLY=   ${DISTNAME}${EXTRACT_SUFX}
EXTRA_PATCHES+= ${WRKDIR}/cronolog-setugid-patch.txt
USE_DOS2UNIX=   ../cronolog-setugid-patch.txt

post-extract:
    @${CP} ${DISTDIR}/cronolog-setugid-patch.txt ${WRKDIR}/
    @cd ${WRKSRC} && ${TOUCH} aclocal.m4 Makefile.in */Makefile.in
.endif

.include <bsd.port.post.mk>