diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /sys-process/atop | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sys-process/atop')
-rw-r--r-- | sys-process/atop/Manifest | 4 | ||||
-rw-r--r-- | sys-process/atop/atop-1.27_p3.ebuild | 43 | ||||
-rw-r--r-- | sys-process/atop/atop-2.0.2.ebuild | 48 | ||||
-rw-r--r-- | sys-process/atop/atop-2.1.ebuild | 48 | ||||
-rw-r--r-- | sys-process/atop/atop-2.2.ebuild | 47 | ||||
-rw-r--r-- | sys-process/atop/files/atop-2.0.2-build.patch | 20 | ||||
-rw-r--r-- | sys-process/atop/files/atop-2.1-build.patch | 36 | ||||
-rw-r--r-- | sys-process/atop/files/atop-2.2-build.patch | 27 | ||||
-rw-r--r-- | sys-process/atop/files/atop.rc | 16 | ||||
-rw-r--r-- | sys-process/atop/files/atop.rc-r1 | 15 | ||||
-rw-r--r-- | sys-process/atop/files/atopacct.rc | 41 | ||||
-rw-r--r-- | sys-process/atop/metadata.xml | 5 |
12 files changed, 350 insertions, 0 deletions
diff --git a/sys-process/atop/Manifest b/sys-process/atop/Manifest new file mode 100644 index 000000000000..dedcd00a971b --- /dev/null +++ b/sys-process/atop/Manifest @@ -0,0 +1,4 @@ +DIST atop-1.27-3.tar.gz 159521 SHA256 bce36e0b50f0e03995d86d25dbc9ab4a289f6755ce3558844f96d41b0bba563f SHA512 59100b61ff14ff49d8daf815abdbf5e9f905767fe8532b0043f3a63acc4d37975201879a93634f6e77edd307e8b6e7d0bf1a3caff1a3cdce8240e92e46023003 WHIRLPOOL 51ceae010e8cd9172d55ab970fcfe90db1ac6d831db14ece17598dba8395c2f8a7e840513e4d07f5f7ad12e28cfc956a8d04619d4e73d7009a6c5a52a62be7d2 +DIST atop-2.0.2.tar.gz 166887 SHA256 a620dbe0de7c7ee004949b201bed27559a8dd6cbdee651c7a3e15fc584723409 SHA512 c02b1c2ebf5c49fb0ad17bbcf0b86af8e5623c8d0b6ba8b1096d9b592cbb358e011933142cdebc90f619221785e859aaa009a338f3682d8bfa4340a50b308471 WHIRLPOOL 1f650210c7f0d79545ad268d5482f950d080aaff51a6045fa710ffc4c359f786cf27ebf88a1dfca87a402b63f8ea9dc7d0542e1949096744a30ca3620708e575 +DIST atop-2.1-1.tar.gz 181301 SHA256 39a2d4febc338dd4147904b1496d1aa9513da0d22ad0602b66023452bdc7989f SHA512 89b33c9a299213faa42c8ee4393c9588c0dbe7940f8709a617d51d6202525a7e7385299242c8c032d573dea9fa631e705d8edfb4685414d35169b773e1290613 WHIRLPOOL 9f02afd797d25a28e873c25f6f03a2607628d60a7ef493b034a63707bc4b5fcd7d4d2d2f2c18b69312f19c5104639176e4816ebfd7282d53dd819786e45280d5 +DIST atop-2.2-3.tar.gz 194168 SHA256 c785b8a2355be28b3de6b58a8ea4c4fcab8fadeaa57a99afeb03c66fac8e055d SHA512 34076e35004367bbfd63f3aac1e786dab566633799b5d4f2c4d45f343642d145027f6298aa40d5e83c1356f502e3c51faa58da07cea58f2960bfacd78cf77915 WHIRLPOOL 2798ebaf5affc9d929a0b5663c1caa6d64a52e00d20f496373f34e48c592fe168c8c20c9df3c309a3057f9eb7baa3409f2cbfbedf110adb9fef51d0774d8d3e2 diff --git a/sys-process/atop/atop-1.27_p3.ebuild b/sys-process/atop/atop-1.27_p3.ebuild new file mode 100644 index 000000000000..52881a7bd799 --- /dev/null +++ b/sys-process/atop/atop-1.27_p3.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" + +inherit eutils toolchain-funcs + +MY_PV=${PV//_p/-} +MY_P=${PN}-${MY_PV} + +DESCRIPTION="Resource-specific view of processes" +HOMEPAGE="http://www.atoptool.nl/" +SRC_URI="http://www.atoptool.nl/download/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm hppa ~mips ppc ~ppc64 x86" +IUSE="" + +DEPEND="sys-process/acct" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + sed -i \ + -e '/^CFLAGS/s: = -O : += :' \ + -e '/^LDFLAGS/s: = : += :' \ + -e 's:\<cc\>:$(CC):' \ + Makefile + tc-export CC + cp "${FILESDIR}"/atop.rc atop.init + chmod a+rx atop.init + sed -i 's: root : :' atop.cron #191926 +} + +src_install() { + emake DESTDIR="${D}" INIPATH=/etc/init.d install || die + # useless -${PV} copies ? + rm -f "${D}"/usr/bin/atop*-${PV} + dodoc README "${D}"/etc/cron.d/* + rm -r "${D}"/etc/cron.d || die +} diff --git a/sys-process/atop/atop-2.0.2.ebuild b/sys-process/atop/atop-2.0.2.ebuild new file mode 100644 index 000000000000..95292a97e777 --- /dev/null +++ b/sys-process/atop/atop-2.0.2.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils toolchain-funcs + +MY_PV=${PV//_p/-} +MY_P=${PN}-${MY_PV} + +DESCRIPTION="Resource-specific view of processes" +HOMEPAGE="http://www.atoptool.nl/" +SRC_URI="http://www.atoptool.nl/download/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +RDEPEND=" + sys-libs/ncurses + sys-process/acct +" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.0.2-build.patch + tc-export CC PKG_CONFIG + cp "${FILESDIR}"/atop.rc atop.init + chmod a+rx atop.init + sed -i 's: root : :' atop.cron #191926 + # prefixify + sed -i "s:/\(usr\|etc\|var\):${EPREFIX}/\1:g" Makefile +} + +src_install() { + default + # useless -${PV} copies ? + rm -f "${ED}"/usr/bin/atop*-${PV} + dodoc "${ED}"/etc/cron.d/* + rm -r "${ED}"/etc/cron.d || die +} diff --git a/sys-process/atop/atop-2.1.ebuild b/sys-process/atop/atop-2.1.ebuild new file mode 100644 index 000000000000..73713a42b599 --- /dev/null +++ b/sys-process/atop/atop-2.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils toolchain-funcs + +MY_PV=${PV//_p/-} +MY_P=${PN}-${MY_PV} + +DESCRIPTION="Resource-specific view of processes" +HOMEPAGE="http://www.atoptool.nl/" +SRC_URI="http://www.atoptool.nl/download/${MY_P}-1.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +RDEPEND=" + sys-libs/ncurses + sys-process/acct +" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.1-build.patch + tc-export CC PKG_CONFIG + cp "${FILESDIR}"/atop.rc atop.init + chmod a+rx atop.init + sed -i 's: root : :' atop.cron #191926 + # prefixify + sed -i "s:/\(usr\|etc\|var\):${EPREFIX}/\1:g" Makefile +} + +src_install() { + default + # useless -${PV} copies ? + rm -f "${ED}"/usr/bin/atop*-${PV} + dodoc "${ED}"/etc/cron.d/* + rm -r "${ED}"/etc/cron.d || die +} diff --git a/sys-process/atop/atop-2.2.ebuild b/sys-process/atop/atop-2.2.ebuild new file mode 100644 index 000000000000..baa583b9bbf0 --- /dev/null +++ b/sys-process/atop/atop-2.2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit eutils toolchain-funcs + +MY_PV=${PV//_p/-} +MY_P=${PN}-${MY_PV}-3 + +DESCRIPTION="Resource-specific view of processes" +HOMEPAGE="http://www.atoptool.nl/" +SRC_URI="http://www.atoptool.nl/download/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +RDEPEND=" + sys-libs/ncurses + sys-process/acct +" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-2.2-build.patch + tc-export CC PKG_CONFIG + sed -i 's: root : :' atop.cronsysv || die #191926 + # prefixify + sed -i "s:/\(usr\|etc\|var\):${EPREFIX}/\1:g" Makefile +} + +src_install() { + emake DESTDIR="${D}" genericinstall + # useless -${PV} copies ? + rm -f "${ED}"/usr/bin/atop*-${MY_PV} + newinitd "${FILESDIR}"/${PN}.rc-r1 ${PN} + newinitd "${FILESDIR}"/atopacct.rc atopacct + dodoc atop.cronsysv AUTHOR ChangeLog README +} diff --git a/sys-process/atop/files/atop-2.0.2-build.patch b/sys-process/atop/files/atop-2.0.2-build.patch new file mode 100644 index 000000000000..a2a6b43a44cf --- /dev/null +++ b/sys-process/atop/files/atop-2.0.2-build.patch @@ -0,0 +1,20 @@ +--- a/Makefile ++++ b/Makefile +@@ -15,7 +15,7 @@ ROTPATH = /etc/logrotate.d + PMPATH1 = /usr/lib/pm-utils/sleep.d + PMPATH2 = /usr/lib64/pm-utils/sleep.d + +-CFLAGS += -O2 -I. -Wall # -DHTTPSTATS ++CFLAGS += -I. -Wall # -DHTTPSTATS + OBJMOD0 = version.o + OBJMOD1 = various.o deviate.o procdbase.o + OBJMOD2 = acctproc.o photoproc.o photosyst.o rawlog.o ifprop.o parseable.o +@@ -28,7 +28,7 @@ + all: atop atopsar + + atop: atop.o $(ALLMODS) Makefile +- $(CC) atop.o $(ALLMODS) -o atop -lncurses -lm -lz -lrt ++ $(CC) $(CFLAGS) $(LDFLAGS) atop.o $(ALLMODS) -o atop $(shell ${PKG_CONFIG} --libs ncurses) -lm -lz -lrt + + atopsar: atop + ln -sf atop atopsar diff --git a/sys-process/atop/files/atop-2.1-build.patch b/sys-process/atop/files/atop-2.1-build.patch new file mode 100644 index 000000000000..8a1fb76cbf62 --- /dev/null +++ b/sys-process/atop/files/atop-2.1-build.patch @@ -0,0 +1,36 @@ +--- atop-2.1/Makefile ++++ atop-2.1/Makefile +@@ -17,7 +17,7 @@ + PMPATH1 = /usr/lib/pm-utils/sleep.d + PMPATH2 = /usr/lib64/pm-utils/sleep.d + +-CFLAGS += -O2 -I. -Wall # -DHTTPSTATS ++CFLAGS += -I. -Wall # -DHTTPSTATS + OBJMOD0 = version.o + OBJMOD1 = various.o deviate.o procdbase.o + OBJMOD2 = acctproc.o photoproc.o photosyst.o rawlog.o ifprop.o parseable.o +@@ -30,13 +30,13 @@ + all: atop atopsar atopacctd + + atop: atop.o $(ALLMODS) Makefile +- $(CC) atop.o $(ALLMODS) -o atop -lncurses -lz -lm -lrt $(LDFLAGS) ++ $(CC) $(CFLAGS) $(LDFLAGS) atop.o $(ALLMODS) -o atop $(shell ${PKG_CONFIG} --libs ncurses) -lz -lm -lrt + + atopsar: atop + ln -sf atop atopsar + + atopacctd: atopacctd.o netlink.o +- $(CC) atopacctd.o netlink.o -o atopacctd $(LDFLAGS) ++ $(CC) $(CFLAGS) $(LDFLAGS) atopacctd.o netlink.o -o atopacctd + + netlink.o: netlink.c + $(CC) -I. -Wall -c netlink.c +@@ -49,6 +49,8 @@ + then mkdir -p $(DESTDIR)$(LOGPATH); fi + if [ ! -d $(DESTDIR)$(BINPATH) ]; \ + then mkdir -p $(DESTDIR)$(BINPATH); fi ++ if [ ! -d $(DESTDIR)$(SBINPATH) ]; \ ++ then mkdir -p $(DESTDIR)$(SBINPATH); fi + if [ ! -d $(DESTDIR)$(SCRPATH) ]; \ + then mkdir -p $(DESTDIR)$(SCRPATH); fi + if [ ! -d $(DESTDIR)$(MAN1PATH) ]; \ diff --git a/sys-process/atop/files/atop-2.2-build.patch b/sys-process/atop/files/atop-2.2-build.patch new file mode 100644 index 000000000000..70840a25330a --- /dev/null +++ b/sys-process/atop/files/atop-2.2-build.patch @@ -0,0 +1,27 @@ +--- atop-2.2-3/Makefile ++++ atop-2.2-3/Makefile +@@ -19,7 +19,7 @@ + PMPATH2 = /usr/lib64/pm-utils/sleep.d + PMPATHD = /usr/lib/systemd/system-sleep + +-CFLAGS += -O2 -I. -Wall # -DHTTPSTATS ++CFLAGS += -I. -Wall # -DHTTPSTATS + OBJMOD0 = version.o + OBJMOD1 = various.o deviate.o procdbase.o + OBJMOD2 = acctproc.o photoproc.o photosyst.o rawlog.o ifprop.o parseable.o +@@ -32,13 +32,13 @@ + all: atop atopsar atopacctd + + atop: atop.o $(ALLMODS) Makefile +- $(CC) atop.o $(ALLMODS) -o atop -lncurses -lz -lm -lrt $(LDFLAGS) ++ $(CC) $(CFLAGS) $(LDFLAGS) atop.o $(ALLMODS) -o atop $(shell ${PKG_CONFIG} --libs ncurses) -lz -lm -lrt + + atopsar: atop + ln -sf atop atopsar + + atopacctd: atopacctd.o netlink.o +- $(CC) atopacctd.o netlink.o -o atopacctd $(LDFLAGS) ++ $(CC) $(CFLAGS) $(LDFLAGS) atopacctd.o netlink.o -o atopacctd + + netlink.o: netlink.c + $(CC) -I. -Wall -c netlink.c diff --git a/sys-process/atop/files/atop.rc b/sys-process/atop/files/atop.rc new file mode 100644 index 000000000000..19db6e2b08cb --- /dev/null +++ b/sys-process/atop/files/atop.rc @@ -0,0 +1,16 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +start() { + ebegin "Starting atop" + start-stop-daemon --start --quiet --exec /etc/atop/atop.daily + eend $? +} + +stop() { + ebegin "Stopping atop" + start-stop-daemon --stop --exec /usr/bin/atop --pidfile /var/run/atop.pid + eend $? +} diff --git a/sys-process/atop/files/atop.rc-r1 b/sys-process/atop/files/atop.rc-r1 new file mode 100644 index 000000000000..ba20f3a071a7 --- /dev/null +++ b/sys-process/atop/files/atop.rc-r1 @@ -0,0 +1,15 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +description="Resource-specific view of processes" +pidfile="/var/run/atop.pid" +command="/usr/bin/atop" + +start() { + ebegin "Starting atop" + start-stop-daemon --start --pidfile ${pidfile} \ + --exec /etc/atop/atop.daily + eend $? +} diff --git a/sys-process/atop/files/atopacct.rc b/sys-process/atop/files/atopacct.rc new file mode 100644 index 000000000000..f70f0395409b --- /dev/null +++ b/sys-process/atop/files/atopacct.rc @@ -0,0 +1,41 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +description="Resource-specific view of processes" +command="/usr/sbin/atopacctd" +lockfile="/var/lock/subsys/atopacctd" + +start_pre() { + # Check if process accounting already in use via psacct + for PACCTFILE in /var/account/pacct /var/log/pacct ; do + if [ -f "${PACCTFILE}" ] ; then + BEFORSIZE=$(stat -c %s "${PACCTFILE}") + AFTERSIZE=$(stat -c %s "${PACCTFILE}") + + # verify if accounting file grows, so is in use + if [ ${BEFORSIZE} -lt ${AFTERSIZE} ] ; then + ewarn "Process accounting already used by psacct!" + return 1 + fi + fi + done + + checkpath -d -q ${lockfile%/*} || return 1 +} + +start() { + ebegin "Starting atopacctd" + start-stop-daemon --start --exec ${command} + touch ${lockfile} + eend $? +} + +stop() { + ebegin "Stopping atopacctd" + start-stop-daemon --stop --exec ${command} + rm ${lockfile} + eend $? +} + diff --git a/sys-process/atop/metadata.xml b/sys-process/atop/metadata.xml new file mode 100644 index 000000000000..96a2d586367d --- /dev/null +++ b/sys-process/atop/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>base-system</herd> +</pkgmetadata> |