Witam,
popełniłem jakiś czas temu spec-a do ivmana, który się u mnie buduje i
działa. Prosiłbym o sprawdzenie i ewentualne wrzucenie do cvs.
Załączam też spec-a do ddccontrol z tą samą prośbą.
PS. Nie bić jeśli moje wypociny są całkiem do du** ;)
--
pozdrawiam
Dariusz (milley) Włodarczyk
[-= Uśmiechnij się :) =-] Pliki są zjawiskiem historycznym
diff -Nur ivman-0.6.4.orig/src/IvmConfig/IvmConfigBase.xml
ivman-0.6.4/src/IvmConfig/IvmConfigBase.xml
--- ivman-0.6.4.orig/src/IvmConfig/IvmConfigBase.xml 2005-07-19
11:03:44.000000000 +0200
+++ ivman-0.6.4/src/IvmConfig/IvmConfigBase.xml 2005-07-19 11:04:29.000000000
+0200
@@ -10,5 +10,5 @@
<!-- user for Ivman to run as. You can then setup sudo rules for this
user. -->
<ivm:Option name="user" value="ivman" />
<!-- group for Ivman to run as. Should have permissions to run 'pmount'.
-->
- <ivm:Option name="group" value="plugdev" />
+ <ivm:Option name="group" value="ivman" />
</ivm:BaseConfig>
#!/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
--- ivman-0.6.4.orig/src/manager.c 2005-10-03 21:43:31.793673024 +0200
+++ ivman-0.6.4/src/manager.c 2005-10-03 21:41:27.566558416 +0200
@@ -603,9 +603,11 @@
" -t $hal.volume.fstype$ ");
// If pmount accepts --async, use it.
+ /*
if (pmount_accepts_async)
pmount_command = g_string_append(pmount_command,
" --async ");
+ */
pmount_command = g_string_append(pmount_command,
" $hal.block.device$ ");
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.4
Release: 1
License: GPL
Group: System/Daemons
Packager: Dariusz W³odarczyk <milley[at]zsp2[dot]krotoszyn[dot]net>
Source0: http://dl.sourceforge.net/ivman/%{name}-%{version}.tar.bz2
Source1: ivman-initscript
Patch0: %{name}-baseconf.patch
Patch1: %{name}-no_async_option.patch
URL: http://ivman.sourceforge.net
BuildRequires: pmount >= 0.9.3
BuildRequires: hal-devel >= 0.4
BuildRequires: libxml2-devel >= 2.6.17
BuildRequires: dbus-devel >= 0.34
BuildRequires: dbus-glib-devel >= 0.3
BuildRequires: glib2-devel >= 2.6
Requires: pmount >= 0.9.3
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
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 static libraries 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 biblioteki statyczne.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%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 -m 0755 %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/ivman
%clean
rm -rf $RPM_BUILD_ROOT
%pre
%groupadd -g 26 ivman
%useradd -u 26 -d /dev/null -s /bin/false -c "ivman daemon" -g ivman ivman
%post
/sbin/ldconfig
/sbin/chkconfig --add ivman
if [ -f /var/lock/subsys/ivman ]; then
%{_initrddir}/ivman restart >&2
else
echo "Run \"/etc/rc.d/init.d/ivman start\" to start ivman daemon." >&2
fi
%postun
/sbin/ldconfig
if [ "$1" = "0" ]; then
%userremove ivman
%groupremove ivman
fi
%preun
if [ "$1" = "0" ]; then
if [ -f /var/lock/subsys/ivman ]; then
%{_initrddir}/ivman stop >&2
fi
/sbin/chkconfig --del ivman
fi
%files
%defattr(-,root,root)
%{_sysconfdir}/ivman/*
%{_initrddir}/ivman
%{_bindir}/ivman
%{_libdir}/libIvmConfig.so.*
%{_mandir}/man5/IvmConfigActions.xml.5.gz
%{_mandir}/man5/IvmConfigBase.xml.5.gz
%{_mandir}/man5/IvmConfigProperties.xml.5.gz
%{_mandir}/man8/ivman.8.gz
%doc AUTHORS COPYING ChangeLog README TODO
%files devel
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/*.so
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
%define name ddccontrol
%define dbversion 20050813
%define ddcdb %{name}-db-%{dbversion}
Summary: DDCcontrol control the monitor parameters
Summary(pl): DDCcontrol s³u¿y do kontroli parametrów monitora
Name: %{name}
Version: 0.2
Release: 1
License: GPL
Group: Applications
Source0:
http://prdownloads.sourceforge.net/ddccontrol/%{name}-%{version}.tar.gx
Source1: %{ddcdb}.tar.gz
URL: http://ddccontrol.sourceforge.net/
BuildRequires: pciutils-devel, libxml2-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
DDCcontrol is a program running on Linux, used to control monitor parameters,
like brightness and contrast, by software, i.e. without using the OSD and the
buttons in front of the monitor.
%description -l pl
DDCcontrol jest programem dla systemu Linux, s³u¿±cym do kontroli parametrów
monitora takich jak jaskrawo¶æ i kontrast, bez u¿ywania OSD i przycisków na
obudowie monitora.
%prep
%setup -q -a l
%build
%configure
%{__make} \
OPTFLAGS="%{rpmcflags}" \
CC="%{__cc}" \
bindir=%{_bindir} \
datadir=%{_datadir} \
sysconfdir=%{_sysconfdir}
cd %{ddcdb}
%configure --prefix=%{_prefix}/%{name}
%{__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}
cd %{ddcdb}
make install DESTDIR=$RPM_BUILD_ROOT
chmod 755 $RPM_BUILD_ROOT/%{_bindir}/ddcpci
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_bindir}/ddccontrol
%{_bindir}/ddcpci
%{_bindir}/gddccontrol
%{_datadir}/locale/*/*/*
%{_datadir}/ddccontrol-db/*
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
_______________________________________________
pld-devel-pl mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl