View | Details | Raw Unified | Return to bug 242091 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-1 / +5 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	ebnetd
4
PORTNAME=	ebnetd
5
PORTVERSION=	1.0
5
PORTVERSION=	1.0
6
PORTREVISION=	11
6
PORTREVISION=	12
7
CATEGORIES=	japanese
7
CATEGORIES=	japanese
8
MASTER_SITES=	ftp://ftp.sra.co.jp/pub/misc/eb/
8
MASTER_SITES=	ftp://ftp.sra.co.jp/pub/misc/eb/
9
9
Lines 15-20 Link Here
15
15
16
LIB_DEPENDS=	libeb.so:japanese/eb
16
LIB_DEPENDS=	libeb.so:japanese/eb
17
17
18
USES=		iconv:patch
19
18
GNU_CONFIGURE=	yes
20
GNU_CONFIGURE=	yes
19
CONFIGURE_ARGS=	--localstatedir=${RUNDIR} --with-logdir=${LOGDIR}
21
CONFIGURE_ARGS=	--localstatedir=${RUNDIR} --with-logdir=${LOGDIR}
20
CONFIGURE_ENV=	PERL=${PREFIX}/bin/perl
22
CONFIGURE_ENV=	PERL=${PREFIX}/bin/perl
Lines 37-42 Link Here
37
INFO=		ebnetd ebnetd-ja
39
INFO=		ebnetd ebnetd-ja
38
40
39
post-patch:
41
post-patch:
42
	${MV} ${WRKSRC}/doc-ja/ebnetd-ja.texi ${WRKSRC}/doc-ja/ebnetd-ja.texi.orig
43
	${ICONV_CMD} -f EUC-JP -t UTF-8 ${WRKSRC}/doc-ja/ebnetd-ja.texi.orig > ${WRKSRC}/doc-ja/ebnetd-ja.texi
40
	${REINPLACE_CMD} -e "s/%%EBNETD_USER%%/${EBNETD_USER}/" \
44
	${REINPLACE_CMD} -e "s/%%EBNETD_USER%%/${EBNETD_USER}/" \
41
		-e "s/%%EBNETD_GROUP%%/${EBNETD_GROUP}/" \
45
		-e "s/%%EBNETD_GROUP%%/${EBNETD_GROUP}/" \
42
		${WRKSRC}/ebnetd.conf.sample.in
46
		${WRKSRC}/ebnetd.conf.sample.in
(-)pkg-install (-13 / +15 lines)
Lines 10-18 Link Here
10
    question=$1
10
    question=$1
11
    default=$2
11
    default=$2
12
12
13
    if [ -z "${PACKAGE_BUILDING}" -a x${BATCH} = xno ]; then
13
    if [ x${BATCH} = xno ]; then
14
	read -p "${question} (y/n) [${default}]? " answer
14
	read -p "${question} (y/n) [${default}]? " answer
15
        [ "${answer}" ] && default=${answer}
15
	[ "${answer}" ] && default=${answer}
16
    fi
16
    fi
17
    echo ${default}
17
    echo ${default}
18
}
18
}
Lines 102-119 Link Here
102
port_ndtp=2010/tcp
102
port_ndtp=2010/tcp
103
comment_ndtp='Network Dictionary Transfer Protocol'
103
comment_ndtp='Network Dictionary Transfer Protocol'
104
104
105
echo "************************************************************************"
105
if [ -z "${PACKAGE_BUILDING}" ]; then
106
if checkall ${file} ${entrylist}; then
106
    echo "************************************************************************"
107
    echo "This system has already all entries for EBNETD in ${file}."
107
    if checkall ${file} ${entrylist}; then
108
else
108
	echo "This system has already all entries for EBNETD in ${file}."
109
    echo "This system doesn't have some of entries for EBNETD in ${file}."
109
    else
110
    if yesno "  Would you like to add them automatically?" y; then
110
	echo "This system doesn't have some of entries for EBNETD in ${file}."
111
	cp -f ${file} ${back}
111
	if yesno "  Would you like to add them automatically?" y; then
112
	echo "    The original file is saved as ${back}."
112
	    cp -f ${file} ${back}
113
	add ${file} ${entry_ebnet} ${port_ebnet} ${comment_ebnet}
113
	    echo "    The original file is saved as ${back}."
114
	add ${file} ${entry_ndtp} ${port_ndtp} ${comment_ndtp}
114
	    add ${file} ${entry_ebnet} ${port_ebnet} ${comment_ebnet}
115
	    add ${file} ${entry_ndtp} ${port_ndtp} ${comment_ndtp}
116
	fi
115
    fi
117
    fi
118
    echo "************************************************************************"
116
fi
119
fi
117
echo "************************************************************************"
118
120
119
exit 0
121
exit 0

Return to bug 242091