blob: 93934ebe6bb03fa378acd53c1e6f6b103b331cd9 [file] [log] [blame]
jjakodd2aa382003-07-06 21:29:53 +00001Summary: Open Source Gateway GPRS Support Node (GGSN)
2Name: @PACKAGE@
3Version: @VERSION@
4Release: 1
5URL: http://sourceforge.net/projects/ggsn/
6Source0: http://prdownloads.sourceforge.net/ggsn/%{name}-%{version}.tar.gz
7License: GPL
8Group: System Environment/Daemons
9BuildRoot: %{_tmppath}/%{name}-root
10
11%description
12OpenGGSN is a Gateway GPRS Support Node (GGSN). It is used by mobile
13operators as the interface between the Internet and the rest of the
14mobile network infrastructure. The project also provides an SGSN
15emulator suitable for GPRS core network testing.
16
17%prep
18%setup -q
19
20%build
21
22./configure --prefix=/usr --enable-static-exec
23
24make
25
26%install
27
28make install prefix=$RPM_BUILD_ROOT/usr
29strip $RPM_BUILD_ROOT/usr/bin/ggsn
30strip $RPM_BUILD_ROOT/usr/bin/sgsnemu
31
32#Copy ggsn init script in place
33mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
34install -m755 examples/ggsn.init \
35 $RPM_BUILD_ROOT/etc/rc.d/init.d/ggsn
36
37#Copy ggsn.conf in place
38install -m755 examples/ggsn.conf \
39 $RPM_BUILD_ROOT/etc/ggsn.conf
40
41#Copy gsn_restart file in place
42mkdir -p $RPM_BUILD_ROOT/var/lib/ggsn
43echo "0" > $RPM_BUILD_ROOT/var/lib/ggsn/gsn_restart
44
jjakod9213ac2003-07-08 13:47:16 +000045#Clean up unwanted library files
46rm -rf $RPM_BUILD_ROOT/usr/include/*
47rm -rf $RPM_BUILD_ROOT/usr/lib/*
48
jjakodd2aa382003-07-06 21:29:53 +000049
50%clean
51rm -rf $RPM_BUILD_ROOT
52make 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
jjako2185ba22004-01-15 17:39:10 +000070%doc examples/firewall
jjakodd2aa382003-07-06 21:29:53 +000071%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.