rpms/halevt/F-8 halevt.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Patrice Dumas (pertusus) fedora-extras-commits at redhat.com
Sat Jan 12 01:05:55 UTC 2008


Author: pertusus

Update of /cvs/extras/rpms/halevt/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20108

Modified Files:
	.cvsignore sources 
Added Files:
	halevt.spec 
Log Message:
initial release



--- NEW FILE halevt.spec ---
Name:           halevt
Version:        0.0.7
Release:        1%{?dist}
Summary:        Generic handler for HAL events

Group:          Applications/System
License:        GPLv2+
URL:            http://www.environnement.ens.fr/perso/dumas/halevt.html
Source0:        http://www.environnement.ens.fr/perso/dumas/halevt-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  dbus-glib-devel hal-devel libxml2-devel boolstuff-devel
BuildRequires:  gettext pkgconfig
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
Requires(pre): shadow-utils

%description
Halevt (HAL events manager) is a daemon that executes arbitrary commands 
when a device with certain properties is added to the system and when 
device properties change. Halevt uses HAL to monitor the state of your 
system's hardware. With the default config file, it can handle 
the mounting of media as they are inserted/attached to the system.

Halevt comes with halevt-mount a program able to use HAL to mount, umount 
devices and keep a list of devices handled by halevt-mount.

%prep
%setup -q


%build
%configure
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d

install -m 0755 -p halevt-initscript $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/halevt

%find_lang %{name}
%find_lang %{name}-mount
cat %{name}-mount.lang >> %{name}.lang

%clean
rm -rf $RPM_BUILD_ROOT


%pre
getent group halevt >/dev/null || groupadd -r halevt
getent passwd halevt >/dev/null || \
useradd -r -g halevt -d %{_localstatedir}/lib/halevt -s /sbin/nologin \
    -c "Halevt system user" halevt
exit 0

%post
# This adds the proper /etc/rc*.d links for the script
/sbin/chkconfig --add halevt

%preun
if [ $1 = 0 ]; then
        /sbin/service halevt stop >/dev/null 2>&1 || :
        /sbin/chkconfig --del halevt
fi

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc COPYING AUTHORS README NEWS halevt-hvmount.xml
%dir %{_sysconfdir}/halevt
%{_sysconfdir}/rc.d/init.d/halevt
%{_bindir}/halevt
%{_bindir}/halevt-mount
%{_bindir}/halevt-umount
%{_bindir}/hvmount
%{_bindir}/hvumount
%dir %{_datadir}/halevt
%{_datadir}/halevt/halevt.xml
%dir %attr(750,halevt,halevt) %{_localstatedir}/run/halevt
%dir %attr(755,halevt,halevt) %{_localstatedir}/lib/halevt

%changelog
* Thu Jan 10 2008 Patrice Dumas <pertusus at free.fr> 0.0.7-1
- initial release


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/halevt/F-8/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	11 Jan 2008 22:02:24 -0000	1.1
+++ .cvsignore	12 Jan 2008 01:05:15 -0000	1.2
@@ -0,0 +1 @@
+halevt-0.0.7.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/halevt/F-8/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	11 Jan 2008 22:02:24 -0000	1.1
+++ sources	12 Jan 2008 01:05:15 -0000	1.2
@@ -0,0 +1 @@
+15a541bc0747dbb0a58daeb80ecf5e7f  halevt-0.0.7.tar.gz




More information about the fedora-extras-commits mailing list