blob: bdcf8c98854260add8fe9c949359812298486f7c (
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
|
# New ports collection makefile for: synonym
# Date created: 2005/11/16
# Whom: Norikatsu Shigemura <n-shigemura@ensure.jp>
#
# $FreeBSD$
#
PORTNAME= synonym
PORTVERSION= 0.4.3
CATEGORIES= mail security
MASTER_SITES= http://www.dv8.ro/Synonym/Synonym/source/
DISTNAME= ${PORTNAME}-0.4-3
MAINTAINER= nork@FreeBSD.org
COMMENT= Synonym, the email message archiver
USE_GMAKE= yes
USE_GNOME= libxml2
WRKSRC= ${WRKDIR}/${PORTNAME}-0.4
PORTDOCS= README license.txt
USE_RC_SUBR= synonym.sh
MAKE_ENV+= PTHREAD_CFLAGS=${PTHREAD_CFLAGS} \
PTHREAD_LIBS=${PTHREAD_LIBS} \
DOCSDIR=${DOCSDIR} \
RUNDIR=${RUNDIR} \
SYNONYMOWN=${SYNONYMOWN} SYNONYMGRP=${SYNONYMGRP}
PLIST_SUB+= RUNDIR=${RUNDIR}
SUB_LIST+= RUNDIR=${RUNDIR}
SUB_FILES= pkg-message
RUNDIR?= /var/run/synonym
SYNONYMOWN?= daemon
SYNONYMGRP?= daemon
PKGMESSAGE= ${WRKDIR}/pkg-message
post-extract:
@${RM} ${WRKSRC}/*.o
.include <bsd.port.pre.mk>
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/synonym ${PREFIX}/sbin/
@${INSTALL_DATA} ${WRKSRC}/synonym.conf ${PREFIX}/etc/synonym.conf-dist
@[ -f ${PREFIX}/etc/synonym.conf ] || \
${INSTALL_DATA} ${WRKSRC}/synonym.conf ${PREFIX}/etc/synonym.conf
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/${f}
.endfor
.endif
@${MKDIR} ${RUNDIR}
@${CHOWN} ${SYNONYMOWN}:${SYNONYMGRP} ${RUNDIR}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|