From 9c525d5d565c2c2de79b29538ee6585babb50585 Mon Sep 17 00:00:00 2001 From: Bjoern Sikora Date: Thu, 15 Oct 2009 16:14:06 +0200 Subject: [PATCH] First shot on spec file. --- bpdyndnsd.spec | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 49 insertions(+), 0 deletions(-) create mode 100644 bpdyndnsd.spec diff --git a/bpdyndnsd.spec b/bpdyndnsd.spec new file mode 100644 index 0000000..4caa531 --- /dev/null +++ b/bpdyndnsd.spec @@ -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 +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 -- 1.7.1