aboutsummaryrefslogtreecommitdiffstats
path: root/openggsn.spec.in
diff options
context:
space:
mode:
authorjjako <jjako>2003-07-06 21:29:53 +0000
committerjjako <jjako>2003-07-06 21:29:53 +0000
commitdd2aa38db7cdaffbc1d8e1880c3f9b3cb5a4f188 (patch)
treeb7362971bf5c697ca5b6de2e4743017548d53ea9 /openggsn.spec.in
parenta7e1397324e7db4dd580488d526c43755f55dfb5 (diff)
Added spec.in script
Diffstat (limited to 'openggsn.spec.in')
-rw-r--r--openggsn.spec.in82
1 files changed, 82 insertions, 0 deletions
diff --git a/openggsn.spec.in b/openggsn.spec.in
new file mode 100644
index 0000000..6e7a77f
--- /dev/null
+++ b/openggsn.spec.in
@@ -0,0 +1,82 @@
+Summary: Open Source Gateway GPRS Support Node (GGSN)
+Name: @PACKAGE@
+Version: @VERSION@
+Release: 1
+URL: http://sourceforge.net/projects/ggsn/
+Source0: http://prdownloads.sourceforge.net/ggsn/%{name}-%{version}.tar.gz
+License: GPL
+Group: System Environment/Daemons
+BuildRoot: %{_tmppath}/%{name}-root
+
+%description
+OpenGGSN 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/ggsn
+strip $RPM_BUILD_ROOT/usr/bin/sgsnemu
+
+#Copy ggsn init script in place
+mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
+install -m755 examples/ggsn.init \
+ $RPM_BUILD_ROOT/etc/rc.d/init.d/ggsn
+
+#Copy ggsn.conf in place
+install -m755 examples/ggsn.conf \
+ $RPM_BUILD_ROOT/etc/ggsn.conf
+
+#Copy gsn_restart file in place
+mkdir -p $RPM_BUILD_ROOT/var/lib/ggsn
+echo "0" > $RPM_BUILD_ROOT/var/lib/ggsn/gsn_restart
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+make clean
+
+%post
+/sbin/chkconfig --add ggsn
+
+%files
+%defattr(-,root,root)
+
+/usr/bin/ggsn
+/usr/bin/sgsnemu
+/etc/rc.d/init.d/ggsn
+%dir /var/lib/ggsn
+/var/lib/ggsn/gsn_restart
+
+%doc AUTHORS ChangeLog COPYING INSTALL NEWS README
+%doc examples/ggsn.conf
+%doc examples/sgsnemu.conf
+%doc examples/ggsn.init
+%doc /usr/man/man8/ggsn.8.gz
+%doc /usr/man/man8/sgsnemu.8.gz
+
+%config /etc/ggsn.conf
+
+
+#/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 2003 <jj@openggsn.org>
+- Initial build.