avatar
Bernhard Rosenkränzer has added 90a5df23ca
Update to 2.2.1, use upstream systemd service
... ... --- a/.abf.yml
... ... +++ b/.abf.yml
... ... @@ -1,2 +1,2 @@
1 1
sources:
2
  gdnsd-2.2.0.tar.xz: 5546b68296d7bbca3c9ca9308589fd224ba3e2a1
2
  gdnsd-2.2.1.tar.xz: 5fe5c951dabccad57b1a22a6fd7edb26089cacc9
... ... --- a/gdnsd.service
... ... +++ /dev/null
... ... @@ -1,14 +0,0 @@
0
[Unit]
1
Description=gdnsd Authoritative DNS server
2
After=network.target
3
4
[Service]
5
Type=forking
6
7
ExecStart=/usr/sbin/gdnsd start
8
TimeoutSec=300
9
Restart=always
10
PrivateTmp=true
11
12
[Install]
13
WantedBy=multi-user.target
... ... --- a/gdnsd.spec
... ... +++ b/gdnsd.spec
... ... @@ -1,10 +1,9 @@
1 1
%define _disable_ld_no_undefined 1
2 2
3 3
Name: gdnsd
4
Version: 2.2.0
5
Release: 3
4
Version: 2.2.1
5
Release: 1
6 6
Source0: https://github.com/gdnsd/gdnsd/releases/download/v%{version}/%{name}-%{version}.tar.xz
7
Source1: gdnsd.service
8 7
# Fix startup if the build machine has F_OFD_SETLK, but
9 8
# the target machine doesn't (e.g. running a kernel < 3.14)
10 9
Patch0: gdnsd-2.2.0-fix-running-on-older-kernels.patch
... ... @@ -46,7 +45,7 @@ from intermediate shared caches.
45 45
%apply_patches
46 46
aclocal
47 47
automake -a
48
%configure --with-rundir=/run
48
%configure --with-rundir=/run --with-systemdsystemunitdir=/lib/systemd/system
49 49
50 50
%build
51 51
%make
... ... @@ -54,9 +53,6 @@ automake -a
53 53
%install
54 54
%makeinstall_std
55 55
56
mkdir -p %{buildroot}/lib/systemd/system/
57
install -c -m 644 %{SOURCE1} %{buildroot}/lib/systemd/system/
58
59 56
# Not sure we want a -devel package here...
60 57
# Seems fairly pointless if we don't package
61 58
# any external plugins

Comments