Vanilla Development Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS update: Vanilla/rpm
Date: Monday July 12, 1999 @ 15:06
Author: tanner
Update of /home/netrek/cvsroot/Vanilla/rpm
In directory cvs.castle.real-time.com:/var/tmp/cvs-serv11567/rpm
Modified Files:
Vanilla.spec
Log Message:
We got an rpm now. Still has not been installed or tested, but this .spec
file will build and non-RSA rpm for the netrek server.
Need to work on gum, I think it was written for GTK 1.0 and I got 1.2 and
there are incompatibilities.
Need to work on RSA stuff, I'll work on that tonight.
Need to work on the rc files to run the server as games.
****************************************
Index: Vanilla/rpm/Vanilla.spec
diff -u Vanilla/rpm/Vanilla.spec:1.2 Vanilla/rpm/Vanilla.spec:1.3
--- Vanilla/rpm/Vanilla.spec:1.2 Mon Jul 12 10:06:16 1999
+++ Vanilla/rpm/Vanilla.spec Mon Jul 12 15:06:36 1999
@@ -41,8 +41,20 @@
Use /usr/games/netrek/gum to start the server listener,
or insert /usr/games/netrek/newstartd& in /etc/rc.d/rc.local
+%package gum
+Summary: Netrek server control GUI
+Group: Amusements/Games
+
+%description gum
+This program is for use by administrators of servers and provides:
+
+ maintenance of the server .ports file,
+ maintenance of the server .sysdef file,
+ control of the process that accepts client connections.
+
+
%prep
-%setup -n Vanilla
+%setup
# disabled, res-rsa/Makefile not present yet
# tar vxfz ../../SOURCES/res-rsa2.tar.Z
@@ -52,12 +64,18 @@
# configure, but point at gmp (had to install gmp-devel-2.0.2-2.i386.rpm)
# ./configure --prefix=/usr/games/netrek --with-gmp-libdir=/usr/lib
+#
+# Build the netrek server
+#
./configure --prefix=/usr/games/netrek
make
-cd gum
-./configure -prefix=/usr/games/netrek
-make
+#
+# Build the netrek server control GUI
+#
+#cd gum
+#./configure -prefix=/usr/games/netrek
+#make
%install
rm -rf $RPM_BUILD_ROOT
@@ -66,10 +84,17 @@
install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
install -d $RPM_BUILD_ROOT/var/log/netrek
-make install
-cd gum
-install -c gum $RPM_BUILD_DIR/usr/games/netrek/gum
+make LIBDIR=$RPM_BUILD_ROOT/usr/games/netrek install
+install -m 0644 $RPM_SOURCE_DIR/netrek.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/netrek
+install -m 0555 $RPM_SOURCE_DIR/netrek.init $RPM_BUILD_ROOT/etc/rc.d/init.d/netrek
+
+for f in god.LOG log logfile mesg.LOG start.LOG; do
+ touch $RPM_BUILD_ROOT/var/log/netrek/$f
+done
+#cd gum
+#install -c gum $RPM_BUILD_DIR/usr/games/netrek/gum
+
%post
chkconfig --add netrek
@@ -91,3 +116,6 @@
%ghost /var/log/netrek/mesg.LOG
%ghost /var/log/netrek/start.LOG
/usr/games/netrek
+
+%files gum
+%defattr(-, games, games)