View | Details | Raw Unified | Return to bug 182179
Collapse All | Expand All

(-)gdnsd_1.10.0/Makefile (-2 / +8 lines)
Lines 1-8 Link Here
1
# Created by: Stefan Caunter <stef@scaleengine.com>
1
# Created by: Allan Jude <ports@scaleengine.com>
2
# $FreeBSD: dns/gdnsd/Makefile 326374 2013-09-05 09:22:10Z bapt $
2
# $FreeBSD: dns/gdnsd/Makefile 326374 2013-09-05 09:22:10Z bapt $
3
3
4
PORTNAME=	gdnsd
4
PORTNAME=	gdnsd
5
PORTVERSION=	1.9.0
5
PORTVERSION=	1.10.0
6
CATEGORIES=	dns
6
CATEGORIES=	dns
7
MASTER_SITES=	http://downloads.gdnsd.net/ \
7
MASTER_SITES=	http://downloads.gdnsd.net/ \
8
		http://gdnsd.scaleengine.net/gdnsd/
8
		http://gdnsd.scaleengine.net/gdnsd/
Lines 40-43 Link Here
40
RUN_DEPENDS+=	${LOCALBASE}/share/GeoIP/GeoIP.dat:${PORTSDIR}/net/GeoIP
40
RUN_DEPENDS+=	${LOCALBASE}/share/GeoIP/GeoIP.dat:${PORTSDIR}/net/GeoIP
41
.endif
41
.endif
42
42
43
44
post-install:
45
	${MKDIR} ${PREFIX}/var/run/gdnsd
46
	${MKDIR} ${PREFIX}/etc/gdnsd/zones
47
	${TOUCH} ${PREFIX}/etc/gdnsd/zones/.keep-me
48
43
.include <bsd.port.mk>
49
.include <bsd.port.mk>
(-)gdnsd_1.10.0/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (gdnsd-1.9.0.tar.xz) = 050e52eda89d819ed340ec8cf49210de35c112ee993116906e13c4d2be19d38d
1
SHA256 (gdnsd-1.10.0.tar.xz) = 43c1c50cf58bc7a5dacb7379bf39276c5f4ebb2b4697d25dba228953015db3af
2
SIZE (gdnsd-1.9.0.tar.xz) = 620632
2
SIZE (gdnsd-1.10.0.tar.xz) = 622584
(-)gdnsd_1.10.0/files/gdnsd.in (-16 / +12 lines)
Lines 12-48 Link Here
12
#
12
#
13
# gdnsd_enable (bool):	Set to NO by default.
13
# gdnsd_enable (bool):	Set to NO by default.
14
#				Set it to YES to enable gdnsd.
14
#				Set it to YES to enable gdnsd.
15
# gdnsd_config (path):	Set to %%PREFIX%%/etc/gdnsd/config
15
# gdnsd_flags (str):		Set to "" by default
16
#				by default.
16
#				Extra command line argument flags
17
17
18
. /etc/rc.subr
18
. /etc/rc.subr
19
19
20
name="gdnsd"
20
name="gdnsd"
21
rcvar=`set_rcvar`
21
rcvar=gdnsd_enable
22
command="%%PREFIX%%/sbin/gdnsd"
23
22
24
# set defaults
23
# set defaults
25
load_rc_config $name
24
load_rc_config $name
26
: ${gdnsd_enable:="NO"}
25
: ${gdnsd_enable:="NO"}
27
: ${gdnsd_config="%%PREFIX%%/etc/gdnsd/config"}
26
: ${gdnsd_flags:=""}
28
: ${gdnsd_pidfile="%%PREFIX%%/var/run/gdnsd.pid"}
29
27
30
required_files=${gdnsd_config}
28
command="%%PREFIX%%/sbin/gdnsd"
31
command_args="-c ${gdnsd_config} start"
29
command_args="${gdnsd_flags} start"
32
procname=${command}
30
procname=${command}
33
extra_commands="checkconf"
31
reload_cmd="gdnsd_reload"
34
checkconf_cmd="gdnsd_checkconf"
32
configtest_cmd="gdnsd_checkconf"
35
33
extra_commands="reload configtest"
36
stop_postcmd=stop_postcmd
34
gdnsd_reload()
37
38
stop_postcmd()
39
{
35
{
40
  rm -f ${gdnsd_pidfile}
36
  ${command} ${gdnsd_flags} reload
41
}
37
}
42
38
43
gdnsd_checkconf()
39
gdnsd_checkconf()
44
{
40
{
45
  ${command} -c ${gdnsd_config} checkconf
41
  ${command} ${gdnsd_flags} checkconf
46
}
42
}
47
43
48
run_rc_command "$1"
44
run_rc_command "$1"
(-)gdnsd_1.10.0/pkg-plist (-1 / +5 lines)
Lines 70-75 Link Here
70
%%DOCSDIR%%/gdnsd_manual.pod
70
%%DOCSDIR%%/gdnsd_manual.pod
71
%%DOCSDIR%%/gdnsd_manual.txt
71
%%DOCSDIR%%/gdnsd_manual.txt
72
@dirrm %%DOCSDIR%%
72
@dirrm %%DOCSDIR%%
73
@exec mkdir -p %D/%%ETCDIR%%/gdnsd
73
@exec mkdir -p %D/var/run/gdnsd
74
@dirrmtry var/run/gdnsd
75
etc/gdnsd/zones/.keep-me
76
@exec mkdir -p %D/%%ETCDIR%%/gdnsd/zones
77
@dirrmtry etc/gdnsd/zones
74
@dirrmtry etc/gdnsd
78
@dirrmtry etc/gdnsd
75
@stopdaemon gdnsd
79
@stopdaemon gdnsd

Return to bug 182179