ivman.spec -> 0.6.5
Dariusz Włodarczyk
milley at gostyn.pl
Thu Nov 17 21:59:07 CET 2005
lobo at chello.pl napisał(a):
> Z tego co jest napisane na stronie ivman, pmount jest teraz opcjonalny.
> Od aktualnej wersji może używać bezpośrednio mounta.
No teraz jak na tej stronie można przeczytać coś więcej niż piękny error
mysqla to też to widzę ;) Poprawiłem.
> Zamiast pmounta dałbym req na hala. Z
> configure wynika, że wymaga przynajmniej hala 0.4, ale nie wiem czy w
> PLD nie są potrzebne z jakiś względów większe wymagania.
Wygląda na to, że nie są :)
--
pozdrawiam
Dariusz (milley) Włodarczyk
[-= Uśmiechnij się :) =-] BOK Klient: Ja kupiłem dziś kartę tak-tak i
nie zdążyłem jej jeszcze zaktywować, ale chyba ją zablokowałem.
-------------- next part --------------
--- uid_gid.db.txt.orig 2005-11-17 16:34:24.318207136 +0100
+++ uid_gid.db.txt 2005-11-17 16:36:18.775806936 +0100
@@ -173,6 +173,7 @@
158 munin munin
159 natmonitor natmonitor NAT Monitor
210 qscand qmail-scanner
+211 ivman ivman
============================================================================
GID
@@ -341,6 +342,7 @@
158 munin munin
159 natmonitor natmonitor NAT Monitor
210 qscand qmail-scanner
+211 plugdev ivman
1000 users setup
65500 tpexec setup kernel 2.4.+ - grsecurity
65501 nosock setup kernel 2.4.+ - grsecurity
-------------- next part --------------
#!/bin/sh
#
# haldaemon: ivman daemon
#
# chkconfig: 345 99 01
# description: An extremely flexible desktop independent frontend to HAL
#
# processname: ivman
# pidfile: /var/run/ivman.pid
#
# Sanity checks.
[ -x /usr/bin/ivman ] || exit 0
# Source function library.
. /etc/rc.d/init.d/functions
# so we can rearrange this easily
processname=ivman
servicename=ivman
RETVAL=0
# See how we were called.
case "$1" in
start)
# Check if the service is already running?
if [ ! -f /var/lock/subsys/$servicename ]; then
msg_starting $servicename
daemon $servicename $processname
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
else
msg_already_running $servicename
fi
;;
stop)
# Stop daemons.
if [ -f /var/lock/subsys/$servicename ]; then
msg_stopping $servicename
killproc $servicename -TERM
rm -f /var/lock/subsys/$servicename >/dev/null 2>&1
rm -f /var/run/$processname.pid >/dev/null 2>&1
else
msg_not_running $servicename
fi
;;
status)
status $processname
RETVAL=$?
;;
restart)
$0 stop
sleep 3
$0 start
;;
condrestart)
if [ -f /var/lock/subsys/$servicename ]; then
$0 stop
sleep 3
$0 start
fi
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart}"
;;
esac
exit $RETVAL
-------------- next part --------------
# $Revision:$, $Date:$
Summary: An extremely flexible desktop independent frontend to HAL
Summary(pl): Wysoce konfigurowalny, niezależny od menadżera okien frontend do HAL
Name: ivman
Version: 0.6.5
Release: 1
License: GPL
Group: Daemons
Source0: http://dl.sourceforge.net/ivman/%{name}-%{version}.tar.bz2
# Source0-md5: 0d83d1d5df716c120de201d5cf3e6e9b
Source1: %{name}.init
URL: http://ivman.sourceforge.net
BuildRequires: dbus-devel >= 0.34
BuildRequires: dbus-glib-devel >= 0.3
BuildRequires: glib2-devel >= 2.6
BuildRequires: hal-devel >= 0.4
BuildRequires: libxml2-devel >= 2.6.17
Requires(post,preun): rc-scripts >= 0.2.0
Requires(post,preun): /sbin/chkconfig
Requires(pre): /bin/id
Requires(pre): /usr/bin/getgid
Requires(pre): /usr/sbin/useradd
Requires(pre): /usr/sbin/groupadd
Requires(postun): /usr/sbin/userdel
Requires(postun): /usr/sbin/groupdel
Requires: hal >= 0.4
Provides: user(ivman)
Provides: group(plugdev)
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Ivman is an extremely flexible desktop independent frontend to HAL,
the userspace Hardware Abstraction Layer for Linux. It can be used to
execute arbitrary commands when devices are added to or removed from
your system, when device properties change, or when devices emit
conditions. Any properties of the new or changed device can be
included within the executed command.
%description -l pl
Ivman jest wysoce konfigurowalnym frontendem do HAL (Hardware
Abstraction Layer). Może być używany do wykonywania poleceń podczas
dodawania, usuwania urządzeń, zmiany ich właściwości bądź też w
odpowiedzi na komunikaty pochodzące od urządzeń. Wszelkie właściwości
urządzenia mogą być wykorzystane w wykonywanym poleceniu.
%package devel
Summary: Development files for ivman
Summary(pl): Pliki niezbędne programistom dla ivman
Group: Development/Libraries
Requires: %{name} = %{version}
%description devel
Ivman is an extremely flexible desktop independent frontend to HAL,
the userspace Hardware Abstraction Layer for Linux. It can be used to
execute arbitrary commands when devices are added to or removed from
your system, when device properties change, or when devices emit
conditions. Any properties of the new or changed device can be
included within the executed command. This package contains files need
for development.
%description devel -l pl
Ivman jest wysoce konfigurowalnym frontendem do HAL (Hardware
Abstraction Layer). Może być używany do wykonywania poleceń podczas
dodawania, usuwania urządzeń, zmiany ich właściwości bądź też w
odpowiedzi na komunikaty pochodzące od urządzeń. Wszelkie właściwości
urządzenia mogą być wykorzystane w wykonywanym poleceniu. Ten pakiet
zawiera pliki niezbędne programistom.
%package static
Summary: Static libraries for ivman
Summary(pl): Biblioteki statyczne dla ivman
Group: Development/Libraries
Requires: %{name}-devel = %{version}
%description static
Ivman is an extremely flexible desktop independent frontend to HAL,
the userspace Hardware Abstraction Layer for Linux. It can be used to
execute arbitrary commands when devices are added to or removed from
your system, when device properties change, or when devices emit
conditions. Any properties of the new or changed device can be
included within the executed command. This package contains static
libraries.
%description static -l pl
Ivman jest wysoce konfigurowalnym frontendem do HAL (Hardware
Abstraction Layer). Może być używany do wykonywania poleceń podczas
dodawania, usuwania urządzeń, zmiany ich właściwości bądź też w
odpowiedzi na komunikaty pochodzące od urządzeń. Wszelkie właściwości
urządzenia mogą być wykorzystane w wykonywanym poleceniu. Ten pakiet
zawiera biblioteki statyczne.
%prep
%setup -q
%build
%configure
%{__make} \
OPTFLAGS="%{rpmcflags}" \
CC="%{__cc}" \
bindir=%{_bindir} \
datadir=%{_datadir} \
sysconfdir=%{_sysconfdir}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
bindir=%{_bindir} \
datadir=%{_datadir} \
sysconfdir=%{_sysconfdir}
install -D %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/ivman
%clean
rm -rf $RPM_BUILD_ROOT
%pre
%groupadd -g 211 plugdev
%useradd -u 211 -d /usr/share/empty -s /bin/false -c "ivman daemon" -g plugdev ivman
%post
/sbin/ldconfig
/sbin/chkconfig --add ivman
%service ivman restart
%preun
if [ "$1" = "0" ]; then
%service -q ivman stop
/sbin/chkconfig --del ivman
fi
%postun
/sbin/ldconfig
if [ "$1" = "0" ]; then
%userremove ivman
%groupremove plugdev
fi
%files
%defattr(644,root,root,755)
%doc AUTHORS COPYING ChangeLog README TODO
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ivman/*
%attr(754,root,root) /etc/rc.d/init.d/*
%attr(755,root,root) %{_bindir}/ivman
%attr(755,root,root) %{_libdir}/libIvmConfig.so.*
%{_mandir}/man5/*.5*
%{_mandir}/man8/*.8*
%files devel
%defattr(644,root,root,755)
%{_libdir}/*.la
%attr(755,root,root) %{_libdir}/*.so
%files static
%defattr(644,root,root,755)
%{_libdir}/*.a
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback at pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log:$
More information about the pld-devel-pl
mailing list