forked from opnsense/ports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (38 loc) · 1.23 KB
/
Makefile
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
# Created by: Motoyuki Kasahara <[email protected]>
# $FreeBSD$
PORTNAME= ebnetd
PORTVERSION= 1.0
PORTREVISION= 12
CATEGORIES= japanese
MASTER_SITES= ftp://ftp.sra.co.jp/pub/misc/eb/
MAINTAINER= [email protected]
COMMENT= Servers for accessing CD-ROM books via TCP/IP
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libeb.so:japanese/eb
USES= iconv:patch
USE_RC_SUBR= ebhttpd ebnetd ndtpd
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --localstatedir=${RUNDIR} --with-logdir=${LOGDIR}
CONFIGURE_ENV= PERL=${PREFIX}/bin/perl
SUB_FILES= pkg-message
USERS= ${EBNETD_USER}
GROUPS= ${EBNETD_GROUP}
INFO= ebnetd ebnetd-ja
PLIST_SUB= EBNETD_RUNDIR=${RUNDIR}/${PORTNAME} \
EBNETD_USER=${EBNETD_USER} \
EBNETD_GROUP=${EBNETD_GROUP}
# Local variables
EBNETD_GROUP= ebnetd
EBNETD_USER= ebnetd
LOGDIR= /var/log
RUNDIR= /var/run
post-patch:
${MV} ${WRKSRC}/doc-ja/ebnetd-ja.texi ${WRKSRC}/doc-ja/ebnetd-ja.texi.orig
${ICONV_CMD} -f EUC-JP -t UTF-8 ${WRKSRC}/doc-ja/ebnetd-ja.texi.orig > ${WRKSRC}/doc-ja/ebnetd-ja.texi
${REINPLACE_CMD} -e "s/%%EBNETD_USER%%/${EBNETD_USER}/" \
-e "s/%%EBNETD_GROUP%%/${EBNETD_GROUP}/" \
${WRKSRC}/ebnetd.conf.sample.in
post-install:
${MKDIR} -m 0755 ${STAGEDIR}${RUNDIR}/${PORTNAME}
.include <bsd.port.mk>