rpms/linux-igd/devel linux-igd.spec, NONE, 1.1 linuxigd-1.0.patch, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

HASEGAWA Masahiro (masahase) fedora-extras-commits at redhat.com
Sun Jan 13 23:05:28 UTC 2008


Author: masahase

Update of /cvs/pkgs/rpms/linux-igd/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15103/devel

Modified Files:
	.cvsignore sources 
Added Files:
	linux-igd.spec linuxigd-1.0.patch 
Log Message:
Initial import.



--- NEW FILE linux-igd.spec ---
%define source_name linuxigd

Summary: The Linux UPNP Internet GATEWAY DEVICE
Name: linux-igd
Version: 1.0
Release: 3%{?dist}
URL: http://linux-igd.sourceforge.net/index.php
Source0: http://downloads.sourceforge.net/%{name}/%{source_name}-%{version}.tar.gz
Patch0: %{source_name}-%{version}.patch
License: GPL+
Group: System Environment/Daemons
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires: libupnp >= 1.3.1
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
BuildRequires: libupnp-devel

%description
This is a daemon that emulates Microsoft's Internet Connection Service (ICS).
It implements the UPnP Internet Gateway Device specification (IGD) and allows 
UPnP aware clients, such as MSN Messenger to work properly from behind
 a Linux NAT firewall.

%prep
%setup -q -c -n %{name}
%patch 

%build
pushd %{source_name}-%{version}
make CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
popd

%install
rm -rf %{buildroot}
pushd %{source_name}-%{version}
make DESTDIR=%{buildroot} install
iconv -f latin1 -t utf8 CHANGES > ../CHANGES
iconv -f latin1 -t utf8 TODO > ../TODO
cp LICENSE ../
popd

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%dir %{_sysconfdir}/linuxigd/
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/linuxigd/*.xml
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/upnpd.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/upnpd
%attr(0644,root,root) %{_mandir}/man8/upnpd.8.gz
%{_sbindir}/upnpd
%{_initrddir}/upnpd
%doc CHANGES LICENSE TODO

%post
/sbin/chkconfig --add upnpd

%preun
if [ $1 = 0 ] ; then
	/sbin/service upnpd stop>/dev/null 2>&1
	/sbin/chkconfig --del upnpd
fi
if [ "$1" -ge "1" ]; then
	/sbin/service upnpd condrestart >/dev/null 2>&1
fi

%changelog
* Tue Dec 25 2007 Masahiro Hasegawa <masahase at gmail.com> - 1.0-3
- more rewritten by Fedora's rule
* Tue Dec 25 2007 Masahiro Hasegawa <masahase at gmail.com> - 1.0-2
- more rewritten by Fedora's rule
* Mon Dec 24 2007 Masahiro Hasegawa <masahase at gmail.com>
- Rewritten by Fedora's rule
* Wed Oct 31 2007 Masahiro Hasegawa <masahase at gmail.com>
- Version 1.0 release
- first build for version 1.0 (Release)
* Mon Aug 14 2006 Tim Brody <tdb01r at ecs.soton.ac.uk>
- Version 0.95 Release 1
- first build for version 0.95 (Release)
* Sun Sep 26 2004 Watanabe Keiji <k at elt.ne.jp>
- Version 0.99 Release ELT1
- first build for version 0.92 (CVS Version on Sep 25, 2004.)

linuxigd-1.0.patch:

--- NEW FILE linuxigd-1.0.patch ---
diff -uNr linuxigd-1.0/Makefile linuxigd-1.0-patch/Makefile
--- linuxigd-1.0/Makefile	2006-05-24 07:16:36.000000000 +0900
+++ linuxigd-1.0-patch/Makefile	2007-10-31 02:39:30.000000000 +0900
@@ -33,11 +33,17 @@
 	rm -f *.o upnpd
 
 install: upnpd
-	install -d /etc/linuxigd
-	install etc/gatedesc.xml /etc/linuxigd
-	install etc/gateconnSCPD.xml  /etc/linuxigd
-	install etc/gateicfgSCPD.xml /etc/linuxigd
-	install etc/dummy.xml /etc/linuxigd
-	install upnpd $(PREFIX)/sbin
-	install upnpd.8 $(PREFIX)/share/man/man8
-	if [ ! -f /etc/upnpd.conf ]; then install etc/upnpd.conf /etc; fi
+	install -d $(DESTDIR)/etc/init.d/
+	install -d $(DESTDIR)/etc/linuxigd/
+	install -d $(DESTDIR)/etc/sysconfig/
+	install -d $(DESTDIR)/usr/sbin/
+	install -d $(DESTDIR)/usr/share/man/man8/
+	install etc/gatedesc.xml $(DESTDIR)/etc/linuxigd
+	install etc/gateconnSCPD.xml  $(DESTDIR)/etc/linuxigd
+	install etc/gateicfgSCPD.xml $(DESTDIR)/etc/linuxigd
+	install etc/dummy.xml $(DESTDIR)/etc/linuxigd
+	install etc/upnpd.conf $(DESTDIR)/etc
+	install upnpd $(DESTDIR)/usr/sbin
+	install upnpd.8 $(DESTDIR)/usr/share/man/man8
+	install -D etc/upnpd.rc $(DESTDIR)/etc/rc.d/init.d/upnpd
+	install -D etc/upnpd.rc.conf $(DESTDIR)/etc/sysconfig/upnpd
diff -uNr linuxigd-1.0/etc/upnpd.rc linuxigd-1.0-patch/etc/upnpd.rc
--- linuxigd-1.0/etc/upnpd.rc   2006-08-16 08:34:56.000000000 +0900
+++ linuxigd-1.0-patch/etc/upnpd.rc     2007-12-24 23:19:07.000000000 +0900
@@ -4,7 +4,7 @@
 #
 # Starts the upnpd daemon
 #
-# chkconfig: 345 95 5
+# chkconfig: - 95 5
 # description: Internet Gateway Device
 # processname: upnpd
 


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/linux-igd/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	13 Jan 2008 17:57:14 -0000	1.1
+++ .cvsignore	13 Jan 2008 23:04:47 -0000	1.2
@@ -0,0 +1 @@
+linuxigd-1.0.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/linux-igd/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	13 Jan 2008 17:57:14 -0000	1.1
+++ sources	13 Jan 2008 23:04:47 -0000	1.2
@@ -0,0 +1 @@
+929f5c4878c91d534613b7c7070215d9  linuxigd-1.0.tar.gz




More information about the fedora-extras-commits mailing list