File: osmo-ggsn.spec.in

package info (click to toggle)
osmo-ggsn 1.2.2-4
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 3,384 kB
  • sloc: ansic: 12,855; sh: 252; makefile: 157
file content (90 lines) | stat: -rw-r--r-- 2,019 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
Summary:   Osmocom Gateway GPRS Support Node (GGSN)
Name:      @PACKAGE@
Version:   @VERSION@
Release:   1
URL:       https://osmocom.org/projects/openggsn
Source0:   http://prdownloads.sourceforge.net/ggsn/%{name}-%{version}.tar.gz
License:   GPL
Group:     System Environment/Daemons
BuildRoot: %{_tmppath}/%{name}-root

%description 
OsmoGGSN is a Gateway GPRS Support Node (GGSN). It is used by mobile
operators as the interface between the Internet and the rest of the
mobile network infrastructure. The project also provides an SGSN
emulator suitable for GPRS core network testing.

%prep
%setup -q

%build

./configure --prefix=/usr --enable-static-exec

make

%install

make install prefix=$RPM_BUILD_ROOT/usr
strip $RPM_BUILD_ROOT/usr/bin/osmo-ggsn
strip $RPM_BUILD_ROOT/usr/bin/sgsnemu

#Copy osmo-ggsn init script in place
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
install -m755 examples/osmo-ggsn.init \
	$RPM_BUILD_ROOT/etc/rc.d/init.d/osmo-ggsn

#Copy osmo-ggsn.conf in place
install -m755 examples/osmo-ggsn.cfg \
	$RPM_BUILD_ROOT/etc/osmo-ggsn.cfg

#Copy gsn_restart file in place
mkdir -p $RPM_BUILD_ROOT/var/lib/osmo-ggsn
echo "0" > $RPM_BUILD_ROOT/var/lib/osmo-ggsn/gsn_restart

#Clean up unwanted library files
rm -rf $RPM_BUILD_ROOT/usr/include/*
rm -rf $RPM_BUILD_ROOT/usr/lib/*


%clean
rm -rf $RPM_BUILD_ROOT
make clean

%post
/sbin/chkconfig --add osmo-ggsn

%files
%defattr(-,root,root)

/usr/bin/osmo-ggsn
/usr/bin/sgsnemu
/etc/rc.d/init.d/osmo-ggsn
%dir /var/lib/osmo-ggsn
/var/lib/osmo-ggsn/gsn_restart

%doc AUTHORS COPYING INSTALL NEWS README.md
%doc examples/osmo-ggsn.conf
%doc examples/sgsnemu.conf
%doc examples/osmo-ggsn.init
%doc examples/firewall
%doc /usr/man/man8/osmo-ggsn.8.gz
%doc /usr/man/man8/sgsnemu.8.gz

%config /etc/osmo-ggsn.cfg


#/usr/lib/libgtp.a
#/usr/lib/libgtp.la
#/usr/lib/libgtp.so
#/usr/lib/libgtp.so.0
#/usr/lib/libgtp.so.0.0.0



%changelog
* Mon Jun 30 2017  <laforge@gnumonks.org>
- Update to OsmoGGSN

* Mon Jun 30 2003  <jj@openggsn.org>
- Initial build.