blob: ba2c9c9ebca2e09010447183c83e230b2540ca68 (
plain)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# New ports collection makefile for: bforce-kst
# Date created: 1 May 2002
# Whom: Andrew Dolgov <fox@furry.spb.ru>
#
# $FreeBSD$
#
PORTNAME= bforce
PORTVERSION= 0.22.8.7
PORTREVISION= 3
CATEGORIES= comms
MASTER_SITES= http://kst.spb.ru/bforce/
PKGNAMESUFFIX= -kst
DISTNAME= ${PORTNAME}-0.22.8.kst7
MAINTAINER= anray@inet.ua
COMMENT= Simple ifcico like Fidonet technology mailer
USE_BZIP2= yes
USE_GMAKE= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGDIR= etc/fido/bforce
CONTRIBS= bfha/README bfha/bfha.pl bflan callout.sh outman timesync.tcl \
u-srif/conf/report.footer u-srif/conf/report.header u-srif/conf/u-srif.aliases \
u-srif/conf/u-srif.conf u-srif/conf/u-srif.dirs u-srif/lib/uconfig.py \
u-srif/lib/udbase.py u-srif/lib/ufido.py u-srif/lib/unodestat.py \
u-srif/lib/utmpl.py u-srif/lib/uutil.py u-srif/u-srif-index.py \
u-srif/u-srif-lookup.py u-srif/u-srif.py
FIXME= include/bforce.h include/util.h include/logger.h \
bforce/bforce.c bforce/conf_proc.c bforce/conf_read.c bforce/daemon.c \
bforce/daemon_branch.c bforce/daemon_call.c bforce/daemon_lines.c \
bforce/expression.y bforce/freq_proc.c bforce/freq_wazoo.c bforce/io_modem.c \
bforce/io_tcpip.c bforce/io_unix_lock.c bforce/io_unix_modem.c \
bforce/io_unix_tio.c bforce/io_unix_tty.c bforce/logger.c bforce/nodelist.c \
bforce/os_unix.c bforce/outb_sysqueue.c bforce/prot_common.c bforce/prot_binkp.c \
bforce/prot_binkp_misc.c bforce/prot_hydra.c bforce/prot_zmmisc.c \
bforce/prot_zmrecv.c bforce/prot_zmsend.c bforce/prot_yoohoo.c \
bforce/prot_yoohoo_api.c bforce/prot_emsi.c bforce/prot_emsi_misc.c \
bforce/prot_emsi_api.c bforce/sess_call.c bforce/sess_answ.c bforce/sess_init.c \
bforce/sess_main.c bforce/u_misc.c bforce/u_time.c bforce/u_recode.c \
bforce/u_plock.c bfutil/bfindex.c
WRKSRC= ${WRKDIR}/${DISTNAME}/source
PLIST_SUB+= CONFIGDIR=${CONFIGDIR}
pre-configure:
${MKDIR} ${WRKSRC}/bin
post-patch:
@${REINPLACE_CMD} -e 's,/etc/bforce,/${CONFIGDIR},g' ${WRKSRC}/Makefile.in
.for i in ${FIXME}
@${REINPLACE_CMD} -e 's,log(,bf_log(,g' ${WRKSRC}/${i}
.endfor
do-install:
${MKDIR} ${PREFIX}/${CONFIGDIR}
${INSTALL_DATA} ${WRKSRC}/../examples/bforce.conf ${PREFIX}/${CONFIGDIR}/bforce.conf.sample
${INSTALL_DATA} ${WRKSRC}/../examples/bforce.passwd ${PREFIX}/${CONFIGDIR}/bforce.passwd.sample
${INSTALL_DATA} ${WRKSRC}/../examples/bforce.subst ${PREFIX}/${CONFIGDIR}/bforce.subst.sample
${INSTALL_DATA} ${WRKSRC}/../examples/freq.aliases ${PREFIX}/${CONFIGDIR}/freq.aliases.sample
${INSTALL_DATA} ${WRKSRC}/../examples/freq.dirs ${PREFIX}/${CONFIGDIR}/freq.dirs.sample
${MKDIR} ${DATADIR} ${DATADIR}/bfha ${DATADIR}/u-srif/conf ${DATADIR}/u-srif/lib
.for i in ${CONTRIBS}
${INSTALL_DATA} ${WRKSRC}/../contrib/${i} ${DATADIR}/${i}
.endfor
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for i in CHANGES CHANGES.kst COPYING README README.kst
${INSTALL_DATA} ${WRKSRC}/../${i} ${DOCSDIR}
.endfor
.endif
${INSTALL_PROGRAM} ${WRKSRC}/bin/bforce ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bin/bfindex ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bin/bfstat ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bin/nlookup ${PREFIX}/bin
@${SED} -e 's|%%PREFIX%%|${PREFIX}|' -e 's|%%CONFIGDIR%%|${CONFIGDIR}|' ${PKGMESSAGE}
.include <bsd.port.mk>
|