First shot on spec file.
authorBjoern Sikora <bjoern.sikora@intra2net.com>
Thu, 15 Oct 2009 14:14:06 +0000 (16:14 +0200)
committerBjoern Sikora <bjoern.sikora@intra2net.com>
Thu, 15 Oct 2009 14:14:06 +0000 (16:14 +0200)
bpdyndnsd.spec [new file with mode: 0644]

diff --git a/bpdyndnsd.spec b/bpdyndnsd.spec
new file mode 100644 (file)
index 0000000..4caa531
--- /dev/null
@@ -0,0 +1,49 @@
+Name:           bpdyndnsd
+Summary:        bpdyndnsd - bullet proof dyndns update daemon
+Version:        0.1
+Release:        1
+License:        GPLv2 + Linking Exception
+Group:          Applications/Internet
+Vendor:         Intra2net AG
+URL:            www.intra2net.com
+Packager:       Bjoern Sikora <bjoern.sikora@intra2net.com>
+Source:         %{name}-%{version}.tar.gz
+PreReq:         tar
+BuildRoot:      /tmp/%{name}-%{version}-root
+BuildPreReq:    cmake >= 2.6
+BuildRequires:  boost-devel >= 1.37.0
+BuildRequires:  libcurl-devel >= 7.19.6 
+BuildRequires:  openssl-devel >= 0.9.8k
+Requires:       boost >= 1.37.0
+Requires:       libcurl >= 7.19.6 
+Requires:       openssl >= 0.9.8k
+
+%description
+An 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 in this interval or the DNS cache ttl. It's also possible to configure a HTTP proxy and the corresponding port. It fully supports IPv6.
+
+%prep
+%setup -q
+
+%build
+cd build
+cmake ..
+make
+
+%install
+make DESTDIR=%{buildroot} install
+%{__mkdir_p} %{buildroot}/etc/bpdyndnsd
+install -m 640 config/bpdyndnsd.conf %{buildroot}/etc/bpdyndnsd/
+%{__mkdir_p} %{buildroot}/etc/init.d
+install -m 755 scripts/bpdyndnsd %{buildroot}/etc/init.d/
+
+%clean
+#rm -rf $RPM_BUILD_ROOT
+
+%post
+/sbin/chkconfig --add bpdyndnsd
+/sbin/chkconfig --level 345 bpdyndnsd on
+
+%files
+/etc/bpdyndnsd/bpdyndnsd.conf
+/etc/init.d/bpdyndnsd
+/usr/local/bin/bpdyndnsd