jjako | dd2aa38 | 2003-07-06 21:29:53 +0000 | [diff] [blame] | 1 | Summary: Open Source Gateway GPRS Support Node (GGSN) |
| 2 | Name: @PACKAGE@ |
| 3 | Version: @VERSION@ |
| 4 | Release: 1 |
| 5 | URL: http://sourceforge.net/projects/ggsn/ |
| 6 | Source0: http://prdownloads.sourceforge.net/ggsn/%{name}-%{version}.tar.gz |
| 7 | License: GPL |
| 8 | Group: System Environment/Daemons |
| 9 | BuildRoot: %{_tmppath}/%{name}-root |
| 10 | |
| 11 | %description |
| 12 | OpenGGSN is a Gateway GPRS Support Node (GGSN). It is used by mobile |
| 13 | operators as the interface between the Internet and the rest of the |
| 14 | mobile network infrastructure. The project also provides an SGSN |
| 15 | emulator suitable for GPRS core network testing. |
| 16 | |
| 17 | %prep |
| 18 | %setup -q |
| 19 | |
| 20 | %build |
| 21 | |
| 22 | ./configure --prefix=/usr --enable-static-exec |
| 23 | |
| 24 | make |
| 25 | |
| 26 | %install |
| 27 | |
| 28 | make install prefix=$RPM_BUILD_ROOT/usr |
| 29 | strip $RPM_BUILD_ROOT/usr/bin/ggsn |
| 30 | strip $RPM_BUILD_ROOT/usr/bin/sgsnemu |
| 31 | |
| 32 | #Copy ggsn init script in place |
| 33 | mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d |
| 34 | install -m755 examples/ggsn.init \ |
| 35 | $RPM_BUILD_ROOT/etc/rc.d/init.d/ggsn |
| 36 | |
| 37 | #Copy ggsn.conf in place |
| 38 | install -m755 examples/ggsn.conf \ |
| 39 | $RPM_BUILD_ROOT/etc/ggsn.conf |
| 40 | |
| 41 | #Copy gsn_restart file in place |
| 42 | mkdir -p $RPM_BUILD_ROOT/var/lib/ggsn |
| 43 | echo "0" > $RPM_BUILD_ROOT/var/lib/ggsn/gsn_restart |
| 44 | |
jjako | d9213ac | 2003-07-08 13:47:16 +0000 | [diff] [blame] | 45 | #Clean up unwanted library files |
| 46 | rm -rf $RPM_BUILD_ROOT/usr/include/* |
| 47 | rm -rf $RPM_BUILD_ROOT/usr/lib/* |
| 48 | |
jjako | dd2aa38 | 2003-07-06 21:29:53 +0000 | [diff] [blame] | 49 | |
| 50 | %clean |
| 51 | rm -rf $RPM_BUILD_ROOT |
| 52 | make clean |
| 53 | |
| 54 | %post |
| 55 | /sbin/chkconfig --add ggsn |
| 56 | |
| 57 | %files |
| 58 | %defattr(-,root,root) |
| 59 | |
| 60 | /usr/bin/ggsn |
| 61 | /usr/bin/sgsnemu |
| 62 | /etc/rc.d/init.d/ggsn |
| 63 | %dir /var/lib/ggsn |
| 64 | /var/lib/ggsn/gsn_restart |
| 65 | |
| 66 | %doc AUTHORS ChangeLog COPYING INSTALL NEWS README |
| 67 | %doc examples/ggsn.conf |
| 68 | %doc examples/sgsnemu.conf |
| 69 | %doc examples/ggsn.init |
jjako | 2185ba2 | 2004-01-15 17:39:10 +0000 | [diff] [blame] | 70 | %doc examples/firewall |
jjako | dd2aa38 | 2003-07-06 21:29:53 +0000 | [diff] [blame] | 71 | %doc /usr/man/man8/ggsn.8.gz |
| 72 | %doc /usr/man/man8/sgsnemu.8.gz |
| 73 | |
| 74 | %config /etc/ggsn.conf |
| 75 | |
| 76 | |
| 77 | #/usr/lib/libgtp.a |
| 78 | #/usr/lib/libgtp.la |
| 79 | #/usr/lib/libgtp.so |
| 80 | #/usr/lib/libgtp.so.0 |
| 81 | #/usr/lib/libgtp.so.0.0.0 |
| 82 | |
| 83 | |
| 84 | |
| 85 | %changelog |
| 86 | * Mon Jun 30 2003 <jj@openggsn.org> |
| 87 | - Initial build. |