Forráskód Böngészése

new package: ez-ipupdate 3.0.10 (Updating host name for many dynamic DNS services)

Michael Schloh von Bennewitz 22 éve
szülő
commit
799ae87716
2 módosított fájl, 117 hozzáadás és 0 törlés
  1. 33 0
      ez-ipupdate/ez-ipupdate.conf
  2. 84 0
      ez-ipupdate/ez-ipupdate.spec

+ 33 - 0
ez-ipupdate/ez-ipupdate.conf

@@ -0,0 +1,33 @@
+#
+# example config file for ez-ipupdate
+#
+
+# specify service type for example dyndns
+service-type=<type of service>
+
+# authentication
+user=myuserid:mypassword
+
+#your hosts name, dyndns domainname
+#host=mydomain.whatever.com
+
+# interval of
+max-interval=2073600
+
+# specify which interface connects to the internet
+interface=eth0
+
+# please create this file and ensure that the user that ez-ipupdate is running
+# as has write permissions to it then uncomment this line, if you don't your
+# dyndns account will probably get banned. if you run ez-ipupdate as root (bad
+# idea, use "run-as-user") then you can just uncomment this line.
+# cache-file=/etc/ez-ipupdate.cache.sppp
+
+# for the mean time we'll just use a cache file in the temp directory
+cache-file=$TMP/ez-ipupdate.cache
+
+# uncomment this once you have everything working how you want and you are
+# ready to have ez-ipupdate running in the background all the time. to stop it
+# you can use "killall -QUIT ez-ipupdate" under linux.
+#daemon
+

+ 84 - 0
ez-ipupdate/ez-ipupdate.spec

@@ -0,0 +1,84 @@
+##
+##  ez-ipupdate.spec -- OpenPKG RPM Specification
+##  Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
+##  Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
+##  Copyright (c) 2000-2003 Cable & Wireless <http://www.cw.com/>
+##
+##  Permission to use, copy, modify, and distribute this software for
+##  any purpose with or without fee is hereby granted, provided that
+##  the above copyright notice and this permission notice appear in all
+##  copies.
+##
+##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+##  SUCH DAMAGE.
+##
+
+#   package information
+Name:         ez-ipupdate
+Summary:      Updating host name for many dynamic DNS services
+URL:          http://www.gusnet.cx/proj/ez-ipupdate/
+Vendor:       Angus Mackay
+Packager:     The OpenPKG Project
+Distribution: OpenPKG [EVAL]
+Group:        DNS
+License:      GPL
+Version:      3.0.10
+Release:      20030804
+
+#   list of sources
+Source0:      http://www.gusnet.cx/proj/ez-ipupdate/dist/ez-ipupdate-%{version}.tar.gz
+Source1:      ez-ipupdate.conf
+
+#   build information
+Prefix:       %{l_prefix}
+BuildRoot:    %{l_buildroot}
+BuildPreReq:  OpenPKG, openpkg >= 20020206, gcc, getopt
+PreReq:       OpenPKG, openpkg >= 20020206
+AutoReq:      no
+AutoReqProv:  no
+
+%description
+    A client for automaticly updating your EZ-IP.net, justlinux.com,
+    dhs.org, dyndns.org, ods.org, gnudip.cheapnet.net, tzo.com,
+    easydns.com dynamic hostname parameters. Includes daemon support
+    that only sends updates if your IP address changes.
+
+%prep
+    %setup -q
+
+%build
+    #   config package
+    CC="%{l_cc}" \
+    CFLAGS="%{l_cflags -O} `getopt-config --cflags`" \
+    CPPFLAGS="%{l_cppflags}" \
+    LDFLAGS="%{l_ldflags} `getopt-config --ldflags`" \
+    LIBS="`getopt-config --libs`" \
+    ./configure --prefix=%{l_prefix}
+    #   build package
+    %{l_make} %{l_mflags}
+
+%install
+    rm -rf $RPM_BUILD_ROOT
+    %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/sbin
+    %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/ez-ipupdate
+    %{l_shtool} install -c -s ez-ipupdate $RPM_BUILD_ROOT%{l_prefix}/sbin/
+    %{l_shtool} install -c -m 644 %{SOURCE ez-ipupdate.conf} $RPM_BUILD_ROOT%{l_prefix}/etc/ez-ipupdate/
+    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
+        %{l_files_std} \
+        '%config %{l_prefix}/etc/ez-ipupdate/ez-ipupdate.conf'
+
+%files -f files
+
+%clean
+    rm -rf $RPM_BUILD_ROOT
+