From: Mikle Kolyada Date: Sun, 3 Nov 2019 17:04:11 +0000 (+0300) Subject: sys-process/pidof-bsd: remove last rited pkg X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3f3f56ff3fb8ebfb518d4f4c873037623937c671;p=gentoo.git sys-process/pidof-bsd: remove last rited pkg Signed-off-by: Mikle Kolyada --- diff --git a/sys-process/pidof-bsd/Manifest b/sys-process/pidof-bsd/Manifest deleted file mode 100644 index b1e138bd45e1..000000000000 --- a/sys-process/pidof-bsd/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST pidof-bsd-20050501.tar.gz 1769 BLAKE2B 6f64d23913e08adc52eef5550becb7f54a1eab805e1a7fe7883632756647bb633d617486fb7a4fa09459d32cdcfb09f41b5c157cc877a71fb07744e2cfced562 SHA512 27691305165848363415a7d487b36a87db0750a9c08e6327eef05f5e87326c91fbf46c415673f83268981a22bbfcfaaf5ef280c06c24b3ebb50d1483527f9c94 diff --git a/sys-process/pidof-bsd/files/pidof-bsd-20050501-fbsd11.patch b/sys-process/pidof-bsd/files/pidof-bsd-20050501-fbsd11.patch deleted file mode 100644 index 4a1b16285205..000000000000 --- a/sys-process/pidof-bsd/files/pidof-bsd-20050501-fbsd11.patch +++ /dev/null @@ -1,14 +0,0 @@ -diff --git a/pidof/Makefile b/pidof/Makefile -index d2d760b..67d2725 100644 ---- a/pidof/Makefile -+++ b/pidof/Makefile -@@ -2,8 +2,7 @@ - - PROG= pidof - SRCS= pidof.c --NOMAN= yes -+NO_MAN= yes - LDADD= -lkvm --LINKS= ${BINDIR}/pidof - - .include diff --git a/sys-process/pidof-bsd/files/pidof-bsd-20050501-firstarg.patch b/sys-process/pidof-bsd/files/pidof-bsd-20050501-firstarg.patch deleted file mode 100644 index dfb15ae7b94b..000000000000 --- a/sys-process/pidof-bsd/files/pidof-bsd-20050501-firstarg.patch +++ /dev/null @@ -1,13 +0,0 @@ -Index: pidof/pidof.c -=================================================================== ---- pidof.orig/pidof.c -+++ pidof/pidof.c -@@ -67,7 +67,7 @@ get_pid_of_process(const char *process_n - char **p_argv = NULL; - - if ((p_argv = kvm_getargv(kd, p+i, 0)) != NULL) -- for (; *p_argv != NULL; p_argv++) -+ if ( *p_argv != NULL ) - if (strcmp(process_name, basename(*p_argv)) == 0) { - (void)printf("%d ", (int)p[i].ki_pid); - processes_found++; diff --git a/sys-process/pidof-bsd/files/pidof-bsd-20050501-gfbsd.patch b/sys-process/pidof-bsd/files/pidof-bsd-20050501-gfbsd.patch deleted file mode 100644 index bb7a776b630d..000000000000 --- a/sys-process/pidof-bsd/files/pidof-bsd-20050501-gfbsd.patch +++ /dev/null @@ -1,128 +0,0 @@ -? .pidof.c.swp -? pidof -? pidof.core -Index: pidof.c -=================================================================== -RCS file: /cvsroot/bmp-plugins/pidof/pidof.c,v -retrieving revision 1.4 -diff -u -r1.4 pidof.c ---- pidof.c 1 May 2005 16:26:19 -0000 1.4 -+++ pidof.c 13 Sep 2005 16:11:08 -0000 -@@ -26,6 +26,7 @@ - * $Id$ - */ - -+#include - #include - #include - #include -@@ -37,56 +38,91 @@ - #include - #include - #include -+#include - --static int get_pid_of_process(char *process_name); -+static int get_pid_of_process(const char *process_name); - static void usage(void); - -+static int match_argv; -+static pid_t own_pid; -+ - static int --get_pid_of_process(char *process_name) -+get_pid_of_process(const char *process_name) - { - static kvm_t *kd = NULL; - struct kinfo_proc *p; -- int i, n_processes, processes_found; -- -- processes_found = 0; -+ int i, n_processes, -+ processes_found = 0; - - if ((kd = kvm_open("/dev/null", "/dev/null", "/dev/null", O_RDONLY, "kvm_open")) == NULL) - (void)errx(1, "%s", kvm_geterr(kd)); - else { - p = kvm_getprocs(kd, KERN_PROC_PROC, 0, &n_processes); -- for (i = 0; i 0) ? 0 : 1; -+ return ((procs_found > 0) ? 0 : 1); - } diff --git a/sys-process/pidof-bsd/files/pidof-bsd-20050501-pname.patch b/sys-process/pidof-bsd/files/pidof-bsd-20050501-pname.patch deleted file mode 100644 index 13e890c6a37c..000000000000 --- a/sys-process/pidof-bsd/files/pidof-bsd-20050501-pname.patch +++ /dev/null @@ -1,46 +0,0 @@ ---- a/pidof.c 2006-09-21 15:14:03 +0100 -+++ b/pidof.c 2006-09-21 15:13:47 +0100 -@@ -53,14 +53,22 @@ - struct kinfo_proc *p; - int i, n_processes, - processes_found = 0; -+ char *pname = NULL; -+ -+ if (process_name == NULL) -+ return 0; -+ -+ if ((pname = strdup(basename(process_name))) == NULL) -+ return 0; - -- if ((kd = kvm_open("/dev/null", "/dev/null", "/dev/null", O_RDONLY, "kvm_open")) == NULL) -- (void)errx(1, "%s", kvm_geterr(kd)); -- else { -+ if ((kd = kvm_open("/dev/null", "/dev/null", "/dev/null", O_RDONLY, NULL)) == NULL) { -+ free(pname); -+ (void)errx(1, "%s", kvm_geterr(kd)); -+ } else { - p = kvm_getprocs(kd, KERN_PROC_PROC, 0, &n_processes); - for (i = 0; i - - - - diff --git a/sys-process/pidof-bsd/pidof-bsd-20050501-r4.ebuild b/sys-process/pidof-bsd/pidof-bsd-20050501-r4.ebuild deleted file mode 100644 index cc88235d1961..000000000000 --- a/sys-process/pidof-bsd/pidof-bsd-20050501-r4.ebuild +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -inherit bsdmk - -DESCRIPTION="pidof(1) utility for *BSD" -HOMEPAGE="https://people.freebsd.org/~novel/pidof.html" -SRC_URI="mirror://gentoo/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="" -IUSE="" - -DEPEND="sys-freebsd/freebsd-mk-defs" -RDEPEND="!sys-process/psmisc" - -S="${WORKDIR}/pidof" - -PATCHES=( "${FILESDIR}/${P}-gfbsd.patch" - "${FILESDIR}/${P}-firstarg.patch" - "${FILESDIR}/${P}-pname.patch" - "${FILESDIR}/${P}-fbsd11.patch" ) - -src_prepare() { - epatch "${PATCHES[@]}" -} - -src_install() { - into / - dobin pidof -}