packages: irqbalance/irqbalance.spec, irqbalance/irqbalance.service (NEW), ...
Jan Rękorajski
baggins at pld-linux.org
Mon Feb 6 01:10:38 CET 2012
Add trigger for upgrades please, see rpm-build-macros.
On Mon, 06 Feb 2012, blues wrote:
> Author: blues Date: Sun Feb 5 23:17:21 2012 GMT
> Module: packages Tag: HEAD
> ---- Log message:
> - rel.4 - systemd support
>
> ---- Files affected:
> packages/irqbalance:
> irqbalance.spec (1.26 -> 1.27) , irqbalance.service (NONE -> 1.1) (NEW), irqbalance.sysconfig (NONE -> 1.1) (NEW)
>
> ---- Diffs:
>
> ================================================================
> Index: packages/irqbalance/irqbalance.spec
> diff -u packages/irqbalance/irqbalance.spec:1.26 packages/irqbalance/irqbalance.spec:1.27
> --- packages/irqbalance/irqbalance.spec:1.26 Sat May 22 18:39:49 2010
> +++ packages/irqbalance/irqbalance.spec Mon Feb 6 00:17:16 2012
> @@ -3,12 +3,14 @@
> Summary(pl.UTF-8): Rozdzielanie IRQ pomiędzy wiele procesorów
> Name: irqbalance
> Version: 0.55
> -Release: 3
> +Release: 4
> License: GPL
> Group: Daemons
> Source0: http://www.irqbalance.org/releases/%{name}-%{version}.tar.gz
> # Source0-md5: 9f6b314ff1fdc14173abeb40592d4edf
> Source1: %{name}.init
> +Source2: %{name}.sysconfig
> +Source3: %{name}.service
> Patch0: %{name}-opt.patch
> Patch1: %{name}-pie.patch
> Patch2: %{name}-cputree-parse.patch
> @@ -45,10 +47,13 @@
>
> %install
> rm -rf $RPM_BUILD_ROOT
> -install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man1,/etc/rc.d/init.d}
> +install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man1,%{systemdunitdir}} \
> + $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
>
> install %{name} $RPM_BUILD_ROOT%{_sbindir}
> install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
> +install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
> +install %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}
>
> %clean
> rm -rf $RPM_BUILD_ROOT
> @@ -56,17 +61,24 @@
> %post
> /sbin/chkconfig --add irqbalance
> %service irqbalance restart "irqbalance daemon"
> +%systemd_post irqbalance.service
>
> %preun
> if [ "$1" = "0" ]; then
> %service irqbalance stop
> /sbin/chkconfig --del irqbalance
> fi
> +%systemd_preun irqbalance.service
> +
> +%postun
> +%systemd_reload
>
> %files
> %defattr(644,root,root,755)
> %attr(755,root,root) %{_sbindir}/*
> %attr(754,root,root) /etc/rc.d/init.d/irqbalance
> +%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
> +%{systemdunitdir}/irqbalance.service
>
> %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
> %changelog
> @@ -74,6 +86,9 @@
> All persons listed below can be reached at <cvs_login>@pld-linux.org
>
> $Log$
> +Revision 1.27 2012/02/05 23:17:16 blues
> +- rel.4 - systemd support
> +
> Revision 1.26 2010/05/22 16:39:49 gotar
> - fixed Group
>
>
> ================================================================
> Index: packages/irqbalance/irqbalance.service
> diff -u /dev/null packages/irqbalance/irqbalance.service:1.1
> --- /dev/null Mon Feb 6 00:17:22 2012
> +++ packages/irqbalance/irqbalance.service Mon Feb 6 00:17:16 2012
> @@ -0,0 +1,12 @@
> +[Unit]
> +Description=Balancing of IRQs between multiple CPUs
> +After=syslog.target auditd.service sssd.service ypbind.service
> +
> +[Service]
> +EnvironmentFile=/etc/sysconfig/irqbalance
> +ExecStart=/usr/sbin/irqbalance ${IRQBALANCE_OPT}
> +RemainAfterExit=yes
> +
> +[Install]
> +WantedBy=multi-user.target
> +
>
> ================================================================
> Index: packages/irqbalance/irqbalance.sysconfig
> diff -u /dev/null packages/irqbalance/irqbalance.sysconfig:1.1
> --- /dev/null Mon Feb 6 00:17:22 2012
> +++ packages/irqbalance/irqbalance.sysconfig Mon Feb 6 00:17:16 2012
> @@ -0,0 +1,5 @@
> +# Customized settings for irqbalance
> +
> +### Additional options for irqbalance daemon
> +#IRQBALANCE_OPT="oneshot"
> +#IRQBALANCE_OPT="debug"
> ================================================================
>
> ---- CVS-web:
> http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/irqbalance/irqbalance.spec?r1=1.26&r2=1.27&f=u
>
> _______________________________________________
> pld-cvs-commit mailing list
> pld-cvs-commit at lists.pld-linux.org
> http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
--
Jan Rękorajski | PLD/Linux
baggins<at>mimuw.edu.pl | http://www.pld-linux.org/
baggins<at>pld-linux.org
More information about the pld-devel-pl
mailing list