gtp-kernel: Fix tunnel creation/removal for GTP Version 1
[openggsn.git] / openggsn.spec.in
blob93934ebe6bb03fa378acd53c1e6f6b103b331cd9
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
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.
17 %prep
18 %setup -q
20 %build
22 ./configure --prefix=/usr --enable-static-exec
24 make
26 %install
28 make install prefix=$RPM_BUILD_ROOT/usr
29 strip $RPM_BUILD_ROOT/usr/bin/ggsn
30 strip $RPM_BUILD_ROOT/usr/bin/sgsnemu
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
37 #Copy ggsn.conf in place
38 install -m755 examples/ggsn.conf \
39 $RPM_BUILD_ROOT/etc/ggsn.conf
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
45 #Clean up unwanted library files
46 rm -rf $RPM_BUILD_ROOT/usr/include/*
47 rm -rf $RPM_BUILD_ROOT/usr/lib/*
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52 make clean
54 %post
55 /sbin/chkconfig --add ggsn
57 %files
58 %defattr(-,root,root)
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
66 %doc AUTHORS ChangeLog COPYING INSTALL NEWS README
67 %doc examples/ggsn.conf
68 %doc examples/sgsnemu.conf
69 %doc examples/ggsn.init
70 %doc examples/firewall
71 %doc /usr/man/man8/ggsn.8.gz
72 %doc /usr/man/man8/sgsnemu.8.gz
74 %config /etc/ggsn.conf
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
85 %changelog
86 * Mon Jun 30 2003 <jj@openggsn.org>
87 - Initial build.