Author: blues                        Date: Thu Sep  7 20:59:56 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- init script and pam file

---- Files affected:
SPECS:
   doldaconnect.spec (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: SPECS/doldaconnect.spec
diff -u SPECS/doldaconnect.spec:1.6 SPECS/doldaconnect.spec:1.7
--- SPECS/doldaconnect.spec:1.6 Thu Sep  7 22:03:58 2006
+++ SPECS/doldaconnect.spec     Thu Sep  7 22:59:51 2006
@@ -1,22 +1,24 @@
 # $Revision$, $Date$
 # TODO:
 # - use the same macros as in other gaim plugins packages
-# - pam-file and init-script from gentoo is in contrib - for backend
-# - build with guile extension and add dchub:// guile module
+# - package guile app to some subpackage
 Summary:       Direct Connect client
 Name:          doldaconnect
 Version:       0.1
-Release:       0.5
+Release:       0.6
 License:       GPL v2
 Group:         X11/Applications/Networking
 Source0:       
http://www.dolda2000.com/~fredrik/doldaconnect/%{name}-%{version}.tar.gz
 # Source0-md5: 8920593ede9d7866937cd2feb95923a8
 Source1:       %{name}.desktop
+Source2:       %{name}.init
+Source3:       %{name}.pam
 URL:           http://www.dolda2000.com/~fredrik/doldaconnect/
 BuildRequires: automake
 BuildRequires: bzip2-devel
 BuildRequires: gaim-devel
 BuildRequires: gnome-panel-devel
+BuildRequires: guile-devel
 BuildRequires: libtool
 Requires:      %{name}-libs = %{epoch}:%{version}-%{release}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -43,6 +45,7 @@
 %package -n doldacond
 Summary:       Daemon for %{name}
 Group:         Daemons
+Requires(post,preun):  /sbin/chkconfig
 
 %description -n doldacond
 Daemon for %{name} that handles all of the network connections.
@@ -78,6 +81,7 @@
 %configure \
        --sysconfdir=%{_appconfdir} \
        --disable-rpath \
+       --with-guile \
        --enable-gtk2ui \
        --enable-gtk2pbar \
        --enable-gnomeapplet \
@@ -87,12 +91,14 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_desktopdir}
+install -d $RPM_BUILD_ROOT{%{_desktopdir},/etc/{rc.d/init.d,pam.d,sysconfig}}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
+install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/doldacond
+install %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/doldacond
 
 %find_lang %{name}
 
@@ -102,6 +108,17 @@
 %post  libs -p /sbin/ldconfig
 %postun        libs -p /sbin/ldconfig
 
+%post -n doldacond
+/sbin/chkconfig --add doldacond
+%service doldacond restart
+
+%preun -n doldacond
+if [ "$1" = 0 ]; then
+       %service doldacond stop
+       /sbin/chkconfig --del doldacond
+fi
+
+
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/dolcon
@@ -119,7 +136,9 @@
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog INSTALL README 
 %dir %{_appconfdir}
-%config(noreplace) %{_appconfdir}/*
+%config(noreplace) %verify(not md5 mtime size) %{_appconfdir}/*
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) 
/etc/pam.d/doldacond
+%attr(754,root,root) /etc/rc.d/init.d/doldacond
 %attr(755,root,root) %{_bindir}/doldacond
 %attr(755,root,root) %{_bindir}/locktouch
 %attr(755,root,root) %{_bindir}/tthsum
@@ -146,6 +165,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.7  2006/09/07 20:59:51  blues
+- init script and pam file
+
 Revision 1.6  2006/09/07 20:03:58  blues
 - daemon subpackage separated
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/doldaconnect.spec?r1=1.6&r2=1.7&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to