]> git.pld-linux.org Git - packages/conserver.git/blobdiff - conserver.spec
- jajks, it's v. 8.1.11
[packages/conserver.git] / conserver.spec
index b43923c17fa004899430b32445535bd4cc3152b1..fe36b2c68a6ad3e927a04901d473a72007e2a561 100644 (file)
@@ -3,15 +3,16 @@
 Summary:       Console server
 Summary(pl):   Serwer konsoli
 Name:          conserver
-Version:       8.1.9
+Version:       8.1.11
 Release:       1
 License:       BSD-like
 Group:         Daemons
 Source0:       http://www.conserver.com/%{name}-%{version}.tar.gz
-# Source0-md5: 7f4e613cbe5ebdd61ef9c01d7e8a05b8
+# Source0-md5: 94259cd71f38e94b3f247768e3bc731f
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
 Source3:       %{name}.logrotate
+Patch0:                %{name}-locks.patch
 URL:           http://www.conserver.com/
 BuildRequires: autoconf
 BuildRequires: automake
@@ -20,9 +21,11 @@ BuildRequires:       libwrap-devel
 BuildRequires: pam-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                _sysconfdir     /etc/conserver
+
 %description
 Conserver is an application that allows multiple users to watch a
-serial console at the same time.  It can log the data, allows users
+serial console at the same time. It can log the data, allows users
 to take write-access of a console (one at a time), and has a
 variety of bells and whistles to accentuate that basic
 functionality.
@@ -36,6 +39,7 @@ podstawow
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__aclocal}
@@ -47,17 +51,24 @@ podstawow
        --with-libwrap \
        --with-openssl \
        --with-pam
+#      --with-uds
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d} \
+install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,logrotate.d,conserver} \
        $RPM_BUILD_ROOT/var/log/{conserver.d,archiv/conserver.d}
+
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
 mv $RPM_BUILD_ROOT%{_datadir}/examples/conserver examples
+
+install examples/conserver.cf $RPM_BUILD_ROOT%{_sysconfdir}
+touch $RPM_BUILD_ROOT%{_sysconfdir}/conserver.passwd
+touch $RPM_BUILD_ROOT%{_sysconfdir}/console.cf
+
 rm -f examples/conserver.rc
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/conserver
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/conserver
@@ -69,17 +80,17 @@ rm -rf $RPM_BUILD_ROOT
 %post
 /sbin/chkconfig --add conserver
 if [ -f /var/lock/subsys/conserver ]; then
-        /etc/rc.d/init.d/conserver restart 1>&2
+       /etc/rc.d/init.d/conserver restart 1>&2
 else
-        echo "Run \"/etc/rc.d/init.d/conserver start\" to start conserver daemon."
+       echo "Run \"/etc/rc.d/init.d/conserver start\" to start conserver daemon."
 fi
 
 %preun
 if [ "$1" = "0" ]; then
-        if [ -f /var/lock/subsys/conserver ]; then
-                /etc/rc.d/init.d/conserver stop 1>&2
-        fi
-        /sbin/chkconfig --del conserver
+       if [ -f /var/lock/subsys/conserver ]; then
+               /etc/rc.d/init.d/conserver stop 1>&2
+       fi
+       /sbin/chkconfig --del conserver
 fi
 
 %files
@@ -92,4 +103,6 @@ fi
 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/*
 %attr(750,root,root) %dir /var/log/conserver.d
 %attr(750,root,root) %dir /var/log/archiv/conserver.d
+%dir /etc/conserver
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*
 %{_mandir}/man*/*
This page took 0.159833 seconds and 4 git commands to generate.