Commit | Line | Data |
---|---|---|
9c525d5d BS |
1 | Name: bpdyndnsd |
2 | Summary: bpdyndnsd - bullet proof dyndns update daemon | |
e36175cc | 3 | Version: 1.0 |
9c525d5d BS |
4 | Release: 1 |
5 | License: GPLv2 + Linking Exception | |
6 | Group: Applications/Internet | |
7 | Vendor: Intra2net AG | |
8 | URL: www.intra2net.com | |
9 | Packager: Bjoern Sikora <bjoern.sikora@intra2net.com> | |
10 | Source: %{name}-%{version}.tar.gz | |
11 | PreReq: tar | |
86613733 | 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
9c525d5d BS |
13 | BuildPreReq: cmake >= 2.6 |
14 | BuildRequires: boost-devel >= 1.37.0 | |
a62fd998 | 15 | BuildRequires: curl-devel >= 7.19.6 |
9c525d5d | 16 | BuildRequires: openssl-devel >= 0.9.8k |
b3018745 | 17 | Requires: boost-serialization >= 1.37.0 |
a62fd998 | 18 | Requires: curl >= 7.19.6 |
9c525d5d BS |
19 | Requires: openssl >= 0.9.8k |
20 | ||
21 | %description | |
818a7054 | 22 | A bullet proof easy to use dynamic DNS update daemon. Although of the ease of use it's highly scalable and flexible for advanced configurations. At the moment it supports following protocols: DHS, DYNDNS, DYNS, EASYDNS, GNUDIP, ODS, TZO and ZONEEDIT. The IP address to update the dynamic DNS name can be determined either through the wan interface's IP itself or through a webcheck IP URL if located behind a NAT router. It's possible to use multiple services at the same time and for each configured service special parameters can be declared, such as the update interval, maximal number of updates within this interval or the DNS cache ttl. It's also possible to configure a HTTP proxy and the corresponding port. It fully supports IPv6. |
9c525d5d BS |
23 | |
24 | %prep | |
25 | %setup -q | |
26 | ||
27 | %build | |
86613733 | 28 | mkdir build |
9c525d5d | 29 | cd build |
86613733 BS |
30 | |
31 | export CFLAGS="$RPM_OPT_FLAGS" | |
32 | export CXXFLAGS="$RPM_OPT_FLAGS" | |
8eb61a51 | 33 | cmake -DCMAKE_INSTALL_PREFIX="/usr" ../ |
86613733 BS |
34 | |
35 | make %{?_smp_mflags} VERBOSE=1 | |
9c525d5d BS |
36 | |
37 | %install | |
47b4c02c | 38 | cd build |
9c525d5d | 39 | make DESTDIR=%{buildroot} install |
47b4c02c | 40 | cd .. |
9c525d5d BS |
41 | %{__mkdir_p} %{buildroot}/etc/bpdyndnsd |
42 | install -m 640 config/bpdyndnsd.conf %{buildroot}/etc/bpdyndnsd/ | |
43 | %{__mkdir_p} %{buildroot}/etc/init.d | |
44 | install -m 755 scripts/bpdyndnsd %{buildroot}/etc/init.d/ | |
ec5261f9 BS |
45 | %{__mkdir_p} %{buildroot}/usr/share/doc/%{name}-%{version} |
46 | install -m 644 docs/* %{buildroot}/usr/share/doc/%{name}-%{version}/ | |
47 | %{__mkdir_p} %{buildroot}/usr/share/doc/%{name}-%{version}/config_examples | |
48 | install -m 644 config_examples/* %{buildroot}/usr/share/doc/%{name}-%{version}/config_examples/ | |
8412183d BS |
49 | %{__mkdir_p} %{buildroot}/etc/sysconfig |
50 | install -m 644 config/bpdyndnsd %{buildroot}/etc/sysconfig/ | |
51 | %{__mkdir_p} %{buildroot}/var/state/bpdyndnsd | |
9c525d5d BS |
52 | |
53 | %clean | |
ec5261f9 | 54 | rm -rf $RPM_BUILD_ROOT |
9c525d5d BS |
55 | |
56 | %post | |
57 | /sbin/chkconfig --add bpdyndnsd | |
58 | /sbin/chkconfig --level 345 bpdyndnsd on | |
59 | ||
60 | %files | |
b57d93cb TJ |
61 | %config(noreplace) /etc/bpdyndnsd/bpdyndnsd.conf |
62 | %config(noreplace) /etc/sysconfig/bpdyndnsd | |
9c525d5d | 63 | /etc/init.d/bpdyndnsd |
8eb61a51 | 64 | /usr/bin/bpdyndnsd |
ec5261f9 | 65 | %doc /usr/share/doc/%{name}-%{version} |
8412183d | 66 | %dir /var/state/bpdyndnsd |