Witam Podbiłem sobby'ego + bibliotekę net6 wymaganą do jego zbudowania. Do tego dorzucony brakujący sysconfig oraz wydzielony osobny user i grupa na serwer (uid=gid=502, wolne wg uid_gid.db.txt)
Buduje się i działa (i686). Będę wdzięczny za komentarze, a jeśli wsio jest ok - wrzucenie do repo i zaklepanie uid&gid. Pozdrawiam -- Paweł Żuk Registered Linux User #337797 http://0x04.net/~redstorm/ | jid: redstorm at 0x04.net
Index: net6.spec =================================================================== RCS file: /cvsroot/packages/net6/net6.spec,v retrieving revision 1.18 diff -u -r1.18 net6.spec --- net6.spec 15 Jan 2009 10:27:13 -0000 1.18 +++ net6.spec 3 Feb 2010 10:19:50 -0000 @@ -2,12 +2,12 @@ Summary: Net6 network library Summary(pl.UTF-8): Biblioteka sieciowa net6 Name: net6 -Version: 1.3.9 +Version: 1.3.12 Release: 1 License: LGPL v2.1+ Group: Libraries Source0: http://releases.0x539.de/net6/%{name}-%{version}.tar.gz -# Source0-md5: afab12d33fc201a7dbc2cfa116218079 +# Source0-md5: 506776416d8aea2b9ea13a81f9145383 URL: http://gobby.0x539.de/ BuildRequires: autoconf >= 2.59 BuildRequires: automake >= 1:1.9
Index: sobby.init =================================================================== RCS file: /cvsroot/packages/sobby/sobby.init,v retrieving revision 1.1 diff -u -r1.1 sobby.init --- sobby.init 16 Aug 2006 20:56:00 -0000 1.1 +++ sobby.init 3 Feb 2010 11:41:23 -0000 @@ -1,6 +1,6 @@ #!/bin/sh # -# sobby: obby dedicated serwer +# sobby: obby dedicated server # # chkconfig: 345 35 65 # @@ -32,7 +32,7 @@ # Check if the service is already running? if [ ! -f /var/lock/subsys/sobby ]; then msg_starting sobby - sobby -p $SOBBY_PORT $SOBBY_OPTIONS + daemon --fork --user sobby sobby -p $SOBBY_PORT $SOBBY_OPTIONS RETVAL=$? [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sobby else
sobby.sysconfig
Description: Binary data
Index: sobby.spec =================================================================== RCS file: /cvsroot/packages/sobby/sobby.spec,v retrieving revision 1.13 diff -u -r1.13 sobby.spec --- sobby.spec 8 Mar 2009 17:01:00 -0000 1.13 +++ sobby.spec 3 Feb 2010 11:32:21 -0000 @@ -2,17 +2,19 @@ Summary: Sobby network editor server Summary(pl.UTF-8): Sobby - serwer edytora sieciowego Name: sobby -Version: 0.4.5 +Version: 0.4.7 Release: 1 License: GPL v2+ Group: Applications/Editors Source0: http://releases.0x539.de/sobby/%{name}-%{version}.tar.gz -# Source0-md5: c59a5ea003fede807b82ed7bab7bf849 +# Source0-md5: 816ac9e2ecf2ac79306f9bbb80699464 Source1: %{name}.init +Source2: %{name}.sysconfig URL: http://gobby.0x539.de/ BuildRequires: avahi-glib BuildRequires: glibmm-devel >= 2.4 BuildRequires: libxml++-devel >= 2.6 +BuildRequires: net6-devel >= 1.3.12 BuildRequires: obby-devel >= 0.4.3 BuildRequires: rpmbuild(macros) >= 1.268 BuildRequires: slang-devel @@ -40,6 +42,11 @@ DESTDIR=$RPM_BUILD_ROOT install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} +install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name} + +%pre +%groupadd -g 502 sobby +%useradd -u 502 -d /home/services/sobby -s /bin/sh -g sobby -c "Sobby server" sobby %post /sbin/chkconfig --add sobby @@ -51,6 +58,13 @@ /sbin/chkconfig --del sobby fi + +%postun +if [ "$1" = "0" ]; then + %userremove sobby + %groupremove sobby +fi + %clean rm -rf $RPM_BUILD_ROOT @@ -59,6 +73,7 @@ %doc AUTHORS ChangeLog NEWS README %attr(755,root,root) %{_bindir}/* %attr(754,root,root) /etc/rc.d/init.d/%{name} +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/sobby %{_mandir}/man1/*.1* %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
_______________________________________________ pld-devel-pl mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl
