aboutsummaryrefslogtreecommitdiffstats
path: root/osmo-ggsn.spec.in
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-09-05 18:12:14 +0200
committerHarald Welte <laforge@gnumonks.org>2017-09-06 09:17:15 +0200
commit632e843e5f694ba258e716a7f0e0ceb39055f303 (patch)
tree8128db442c876e286c48d97a55d0b0370502f038 /osmo-ggsn.spec.in
parente80494726c5b36caef58a5999251613453d9e2f0 (diff)
Rename OpenGGSN to OsmoGGSN
Osmocom has maintained this program since about 7 years now, while the original author / copyright holder has completely disappeared. With the introduction of Osmocom-style CTRL and VTY interfaces, the way how the program is used and configured has substantially changed. In order to avoid confusion in terms of configuration file format etc, let's rename it to OsmoGGSN. Change-Id: I2da30f7d4828e185bfac1a4e2d8414b01cbe4f9d
Diffstat (limited to 'osmo-ggsn.spec.in')
-rw-r--r--osmo-ggsn.spec.in90
1 files changed, 90 insertions, 0 deletions
diff --git a/osmo-ggsn.spec.in b/osmo-ggsn.spec.in
new file mode 100644
index 0000000..9613bca
--- /dev/null
+++ b/osmo-ggsn.spec.in
@@ -0,0 +1,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.