aboutsummaryrefslogtreecommitdiffstats
path: root/www/elog/Makefile
blob: 05c604dff5be981dc29c26af49d5dde717303e90 (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
# New ports collection makefile for:   elog
# Date created:        8 July 2006
# Whom:                David Otto <ottodavid@gmx.net>
#
# $FreeBSD$
#

PORTNAME=   elog
DISTVERSION=    2.6.3-1
CATEGORIES= www
MASTER_SITES=   http://midas.psi.ch/elog/download/tar/

MAINTAINER= ottodavid@gmx.net
COMMENT=    A fast and lightweight, extremly customizable weblog

MAN1=       elog.1 elconv.1
MAN8=       elogd.8
USE_RC_SUBR=    elogd
SUB_FILES=      pkg-install pkg-deinstall
SUB_LIST=       LOGBOOKDIR=${LOGBOOKDIR}

LOGBOOKDIR?=    www/elog
PLIST_SUB+= LOGBOOKDIR=${LOGBOOKDIR}

USE_GMAKE=  yes
WRKSRC=     ${WRKDIR}/elog-2.6.3
MAKE_ENV=   LOGBOOKDIR=${LOGBOOKDIR}

pre-fetch:
    @${ECHO_MSG}
    @${ECHO_MSG} "You may change the data directory with the option LOGBOOKDIR"
    @${ECHO_MSG} "Set NOPORTDOCS if you do not need any documentation"
    @${ECHO_MSG}

pre-install:
    PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}
    ${INSTALL_MAN}  ${WRKSRC}/doc/* ${DOCSDIR}
.endif

    PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

.include <bsd.port.mk>