Compare commits

...
This repository has been archived on 2026-01-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.

21 commits

Author SHA1 Message Date
Till Maas
8b2f8e417c 2016-09-13: Retired orphaned package, because it was orphaned for
more than six weeks.
2016-09-13 19:00:47 +02:00
Dennis Gilmore
a67041f6aa - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-03 16:11:14 +00:00
Dennis Gilmore
77afe1f370 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-16 23:54:10 +00:00
Peter Robinson
05be825d08 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-15 20:33:32 +00:00
Dennis Gilmore
579a594077 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-06 19:40:58 -05:00
Dennis Gilmore
9aa19822ff - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild 2013-08-02 19:47:04 -05:00
Dennis Gilmore
56fed0c1dc - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild 2013-02-13 10:32:13 -06:00
Jochen Schmitt
71ca98087c Introduction of rpm systemd macros
- Clean up of the SPEC file
2012-10-05 19:41:13 +02:00
Jochen Schmitt
f1b0df5dcd Fix misprint operator in %post stanza (#852419) 2012-08-28 17:28:35 +02:00
Dennis Gilmore
54b54fd76f Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-26 23:39:31 -05:00
Dennis Gilmore
2cadcc3069 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild 2012-01-12 15:16:11 -06:00
Dennis Gilmore
3a36edcf43 - Rebuilt for glibc bug#747377 2011-10-26 18:35:42 -05:00
Jochen Schmitt
9c78ee5498 Rework and.service to fix #713432 2011-06-15 21:29:15 +02:00
Jochen Schmitt
45ebfe11eb Rework for systemd 2011-03-31 22:02:09 +02:00
Dennis Gilmore
3c6256646a - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild 2011-02-07 19:10:47 -06:00
Jochen Schmitt
3afd1c12f8 - Remove SysVInit support 2010-11-28 21:13:19 +01:00
Fedora Release Engineering
308a61b100 dist-git conversion 2010-07-28 09:59:44 +00:00
Jochen Schmitt
a14f6ced36 Try to support systemd 2010-07-18 19:18:46 +00:00
Bill Nottingham
a07cdfb861 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-25 22:39:44 +00:00
Jesse Keating
7c2cc1b527 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild 2009-07-24 16:52:22 +00:00
Jesse Keating
1705a0a31d - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild 2009-02-24 01:04:59 +00:00
8 changed files with 3 additions and 407 deletions

View file

@ -1 +0,0 @@
and-1.2.2.tar.gz

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: and
# $Id$
NAME := and
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View file

@ -1,196 +0,0 @@
--- and-1.2.2/Makefile.org 2005-03-27 21:39:37.000000000 +0200
+++ and-1.2.2/Makefile 2007-07-25 18:25:00.000000000 +0200
@@ -143,16 +143,16 @@ endif
# Build the auto-nice daemon.
#
and: and.o and-$(ARCH).o
- $(LD) and.o and-$(ARCH).o -o and $(LIBS)
+ $(LD) $(CFLAGS) -g and.o and-$(ARCH).o -o and $(LIBS)
#
# Independent part: configuration management, priority database.
#
and.o: and.c and.h
- $(CC) -DDEFAULT_INTERVAL=60 -DDEFAULT_NICE=0 \
- -DDEFAULT_CONFIG_FILE=\"$(INSTALL_ETC)/and.conf\" \
- -DDEFAULT_DATABASE_FILE=\"$(INSTALL_ETC)/and.priorities\" \
+ $(CC) $(CFLAGS) -g -DDEFAULT_INTERVAL=60 -DDEFAULT_NICE=0 \
+ -DDEFAULT_CONFIG_FILE=\"$(INSTALL_ETC)/and/and.conf\" \
+ -DDEFAULT_DATABASE_FILE=\"$(INSTALL_ETC)/and/and.priorities\" \
-DAND_VERSION=\"$(VERSION)\" -DAND_DATE=\"$(DATE)\" -c and.c
@@ -160,7 +160,7 @@ and.o: and.c and.h
# Unix variant specific stuff
#
and-Linux.o: and.h and-Linux.c
- $(CC) -c and-Linux.c
+ $(CC) $(CFLAGS) -g -c and-Linux.c
and-OpenBSD.o: and.h and-OpenBSD.c
$(CC) -c and-OpenBSD.c
@@ -214,30 +214,19 @@ and.priorities.5: and.priorities.5.man
#
# Install and under $(PREFIX)/bin etc.
#
-install: and $(INITSCRIPT)
- strip and
+install: and
+
#-mkdir $(PREFIX)
-mkdir -p $(DESTDIR)$(INSTALL_SBIN)
- -mkdir -p $(DESTDIR)$(INSTALL_ETC)
+ -mkdir -p $(DESTDIR)$(INSTALL_ETC)/and/
-mkdir -p $(DESTDIR)$(INSTALL_INITD)
-mkdir -p $(DESTDIR)$(INSTALL_MAN)/man5
-mkdir -p $(DESTDIR)$(INSTALL_MAN)/man8
$(INSTALL) -m 0755 and $(DESTDIR)$(INSTALL_SBIN)
- test -e $(DESTDIR)$(INSTALL_ETC)/and.conf || \
- $(INSTALL) -m 0644 and.conf $(DESTDIR)$(INSTALL_ETC)
- test -e $(DESTDIR)$(INSTALL_ETC)/and.priorities || \
- $(INSTALL) -m 0644 and.priorities $(DESTDIR)$(INSTALL_ETC)
-ifneq (${INITSCRIPT},)
-ifneq (${INSTALL_INITD},)
- @echo "Installing SysV script in $(DESTDIR)$(INSTALL_INITD)"
- $(INSTALL) -m 0755 $(INITSCRIPT) $(DESTDIR)$(INSTALL_INITD)/and
-else
- @echo "Installing SysV script in $(DESTDIR)$(INSTALL_SBIN)"
- $(INSTALL) -m 0755 $(INITSCRIPT) $(DESTDIR)$(INSTALL_SBIN)
- @echo "Installing SysV init.d finder in $(DESTDIR)$(INSTALL_SBIN)"
- $(INSTALL) -m 0755 and-find-init.d $(DESTDIR)$(INSTALL_SBIN)
-endif
-endif
+ test -e $(DESTDIR)$(INSTALL_ETC)/and/and.conf || \
+ $(INSTALL) -m 0644 and.conf $(DESTDIR)$(INSTALL_ETC)/and/
+ test -e $(DESTDIR)$(INSTALL_ETC)/and/and.priorities || \
+ $(INSTALL) -m 0644 and.priorities $(DESTDIR)$(INSTALL_ETC)/and/
$(INSTALL) -m 0644 and.8 $(DESTDIR)$(INSTALL_MAN)/man8
$(INSTALL) -m 0644 and.conf.5 $(DESTDIR)$(INSTALL_MAN)/man5
$(INSTALL) -m 0644 and.priorities.5 $(DESTDIR)$(INSTALL_MAN)/man5
@@ -252,9 +241,6 @@ simpleinstall: and and.init
cp and.conf $(DESTDIR)$(INSTALL_ETC)
test -e $(DESTDIR)$(INSTALL_ETC)/and.priorities || \
cp and.priorities $(DESTDIR)$(INSTALL_ETC)
-ifneq (${INITSCRIPT},) # on SysV only
- cp $(INITSCRIPT) $(DESTDIR)$(INSTALL_INITD)/and
-endif
cp and.8 $(DESTDIR)$(INSTALL_MAN)/man8
cp and.conf.5 $(DESTDIR)$(INSTALL_MAN)/man5
cp and.priorities.5 $(DESTDIR)$(INSTALL_MAN)/man5
--- and-1.2.2/and.priorities.5.man.org 2004-04-05 21:19:29.000000000 +0200
+++ and-1.2.2/and.priorities.5.man 2007-07-25 18:25:00.000000000 +0200
@@ -1,7 +1,7 @@
.TH AND.PRIORITIES 5 "__DATE__" "Unix" "File Formats"
.SH "NAME"
-/etc/and.priorities \- priority database for the auto nice daemon.
+/etc/and/and.priorities \- priority database for the auto nice daemon.
.SH "VERSION"
@@ -16,12 +16,12 @@ This is the priority database file for
It stores (user, group, command, parent, nicelevels) tuples (hereafter called
entries) to determine the new nice level (or the kill signal, for that
matter) when a job reaches one of the time limits defined in
-.I /etc/and.conf.
+.I /etc/and/and.conf.
(See lv1time, lv2time, and lv3time on the and.conf manual page for
details.) See the
.B affinity
setting in
-.I /etc/and.conf
+.I /etc/and/and.conf
for how ambiguities between the fields (user, group, command, parent)
are dealt with when searching the database to determine the new nice
level for a job.
@@ -187,7 +187,7 @@ grid * grid_master * 0 0 0
.SH "FILES"
.TP 0.5i
-.B /etc/and.priorities
+.B /etc/and/and.priorities
The priority database (in plain text). Contains the (user, group, command,
nicelevels) tuples. This is what this manual page is about.
--- and-1.2.2/and.conf.5.man.org 2005-03-27 21:38:32.000000000 +0200
+++ and-1.2.2/and.conf.5.man 2007-07-25 18:25:00.000000000 +0200
@@ -1,7 +1,7 @@
.TH AND.CONF 5 "__DATE__" "Unix" "File Formats"
.SH "NAME"
-/etc/and.conf \- general configuration parameters for the
+/etc/and/and.conf \- general configuration parameters for the
auto nice daemon.
@@ -52,11 +52,11 @@ the auto nice daemon to enable the chang
.B defaultnice
The default nice level. A number between 0 and 19. Jobs for which no
entry can be found in
-.I /etc/and.priorities
+.I /etc/and/and.priorities
are reniced to this level, regardless of the CPU time they've used
so far. If you prefer to renice unknown jobs gradually, you can do
so by supplying three asterisks as (user, group, command) tuple in
-.I /etc/and.priorities.
+.I /etc/and/and.priorities.
The default nice level is
.I 0
--- and-1.2.2/and.8.man.org 2002-01-27 16:59:57.000000000 +0100
+++ and-1.2.2/and.8.man 2007-07-25 18:25:00.000000000 +0200
@@ -55,13 +55,13 @@ to kill -9 it after e.g. 20 CPU minutes.
.TP 0.5i
.B \-c /path/to/and.conf
Specifies the configuration file. If this flag is omitted,
-.I /etc/and.conf
+.I /etc/and/and.conf
is used instead.
.TP 0.5i
.B \-d /path/to/and.priorities
Specifies the priority database file. If this flag is omitted,
-.I /etc/and.priorities
+.I /etc/and/and.priorities
is used instead.
.TP 0.5i
@@ -112,12 +112,12 @@ database.
.SH "FILES"
.TP 0.5i
-.B /etc/and.conf
+.B /etc/and/and.conf
General configuration file. Stores default nice level, default interval,
the "time zones" and the database lookup affinity.
.TP 0.5i
-.B /etc/and.priorities
+.B /etc/and/and.priorities
The priority database (in plain text). Contains the (user, group, command,
nicelevels) tuples.
--- and-1.2.2/README.org 2005-03-27 21:39:37.000000000 +0200
+++ and-1.2.2/README 2007-07-25 18:28:31.000000000 +0200
@@ -83,13 +83,13 @@ Installation:
Edit the Makefile, which is well documented. (g)make. (g)make install.
(make simpleinstall if you don't have install(1) (which you really
- should). Edit the configuration files, /etc/and.conf and
- /etc/and.priorities. Start /usr/local/sbin/and. You must run it as
- root if you want it to renice or kill any jobs but your own; on all
- platforms but Linux, not even dummy mode will work for mortal users.
- That's due to the way process information is accessible under these
- Unices. (Linux is more generous here, which can be seen as both an
- advantage and a security flaw. I'm not conclusive on this topic.)
+ should). Edit the configuration files, /etc/and/and.conf and
+ /etc/and/and.priorities. Start /usr/sbin/and. You must run it as root
+ if you want it to renice or kill any jobs but your own; on all platforms
+ but Linux, not even dummy mode will work for mortal users. That's due to
+ the way process information is accessible under these Unices. (Linux is
+ more generous here, which can be seen as both an advantage and a security
+ flaw. I'm not conclusive on this topic.)
Last updated:

View file

@ -1,83 +0,0 @@
#!/bin/sh
#
# /etc/rc.d/init.d/and, /sbin/init.d/and, /etc/init.d/and
#
# SysV init.d compliant startup script for auto nice daemon.
#
# 1999, 2000, 2001 Patrick Schemitz <schemitz@users.sourceforge.net>
# http://and.sourceforge.net/
#
# chkconfig: - 90 10
# description: automatically renice and kill jobs.
#
# processname: and
# config: /etc/and.conf
#
### BEGIN INIT INFO
# Provides: and
# Required-Start: $syslog
# Required-Stop:
# Default-Stop: 0 6
# Short-Description: Automatically renice and kill jobs
# Description: Autmatically renice and kill jobs
### END INIT INFO
prog=and
and_bin=/usr/sbin/and
and_conf=/etc/and/and.conf
. /etc/rc.d/init.d/functions
AND_FLAGS=""
test -r /etc/sysconfig/and && . /etc/sysconfig/and
start() {
echo -n $"Starting auto nice daemon:"
daemon /usr/sbin/and $AND_FLAGS >/dev/null 2>&1
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}
stop() {
echo -n $"Shutting down auto nice daemon:"
killproc and -QUIT
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -rf /var/lock/subsys/$prog
}
restart() {
stop
start
}
RETVAL=0
[ -x $and_bin -a -s $and_conf ] || exit 0
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
start
RETVAL=$?
;;
condrestart)
[ -e /var/lock/subsys/$prog ] && restart || :
;;
status)
status $prog
;;
*)
echo "Usage: $0 {start|stop|restart|condrestart|status}"
exit 1
esac
exit $RETVAL

101
and.spec
View file

@ -1,101 +0,0 @@
Name: and
Version: 1.2.2
Release: 6%{?dist}
Summary: Auto nice daemon
License: GPLv2
Group: System Environment/Daemons
URL: http://and.sourceforge.net
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1: and.init
Source2: and.sysconf
Patch1: and-1.2.2-makefile.patch
Buildroot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
Requires(post): /sbin/chkconfig
Requires(postun): /sbin/service
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
%description
The auto nice daemon renices and even kills jobs according to their CPU time,
owner, and command name. This is especially useful on production machines with
lots of concurrent CPU-intensive jobs and users that tend to forget to
nice their jobs.
%prep
%setup1 -q
%patch1 -p1 -b .org
%build
make %{?_smp_mflags} \
CFLAGS='%{optflags}' \
PREFIX=%{_prefix} \
INSTALL_ETC=%{_sysconfdir} \
INSTALL_SBIN=%{_sbindir} \
INSTALL_MAN=%{_mandir}
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_sysconfdir}
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_mandir}/man8
mkdir -p %{buildroot}%{_mandir}/man5
make PREFIX=%{buildroot}%{_prefix} \
INSTALL_ETC=%{buildroot}%{_sysconfdir} \
INSTALL_SBIN=%{buildroot}%{_sbindir} \
INSTALL_MAN=%{buildroot}%{_mandir} install
mkdir -p %{buildroot}%{_initrddir}
install -p -m 0755 %{SOURCE1} %{buildroot}%{_initrddir}/and
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
install -p -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/and
%clean
rm -rf %{buildroot}
%post
/sbin/chkconfig --add and
%preun
if [ $1 -eq 0 ]; then
/sbin/service and stop >/dev/null 2>&1 || :
/sbin/chkconfig --del and
fi
%postun
if [ $1 -ge 1 ]; then
/sbin/service and condrestart >/dev/null
fi
%files
%defattr(-,root,root)
%doc README LICENSE CHANGELOG
%config(noreplace) %{_sysconfdir}/and/
%config(noreplace) %{_sysconfdir}/sysconfig/and
%{_sbindir}/*
%attr(0755,root,root) %{_initrddir}/and
%{_mandir}/man5/*.gz
%{_mandir}/man8/*.gz
%changelog
* Wed Feb 13 2008 Jochen Schmitt <Jochen herr-schmitt de> 1.2.2-6
- Rebuild for gcc-4.3
* Wed Jan 23 2008 Jochen Schmitt <Jochen herr-schmitt de> 1.2.2-5
- Rebuild
* Thu Aug 9 2007 Jochen Schmitt <Jochen herr-schmitt de> 1.2.2-4
- Changing license tag
* Mon Jul 30 2007 Jochen Schmitt <Jochen herr-schmitt de> 1.2.2-3
- Fix wrong postun requires
* Thu Jul 26 2007 Jochen Schmitt <Jochen herr-schmitt de> 1.2.2-2
- Adding sysconfig file template
* Tue Jul 24 2007 Jochen Schmitt <Jochen herr-schmitt de> 1.2.2-1
- Initial package for Fedora

View file

@ -1,4 +0,0 @@
# Allow to set the options for and starting
# by the initscript
AND_FLAGS=

3
dead.package Normal file
View file

@ -0,0 +1,3 @@
2016-09-13: Retired orphaned package, because it was orphaned for
more than six weeks.

View file

@ -1 +0,0 @@
b939909039a8487eec93ff7eb56a4779 and-1.2.2.tar.gz