[134267] trunk/dports/sysutils

devans at macports.org devans at macports.org
Fri Mar 20 13:29:00 PDT 2015


Revision: 134267
          https://trac.macports.org/changeset/134267
Author:   devans at macports.org
Date:     2015-03-20 13:29:00 -0700 (Fri, 20 Mar 2015)
Log Message:
-----------
pidof: new port, a utility to display the PID number for a given process name.

Added Paths:
-----------
    trunk/dports/sysutils/pidof/
    trunk/dports/sysutils/pidof/Portfile
    trunk/dports/sysutils/pidof/files/
    trunk/dports/sysutils/pidof/files/patch-Makefile.diff
    trunk/dports/sysutils/pidof/files/patch-pidof.c.diff

Added: trunk/dports/sysutils/pidof/Portfile
===================================================================
--- trunk/dports/sysutils/pidof/Portfile	                        (rev 0)
+++ trunk/dports/sysutils/pidof/Portfile	2015-03-20 20:29:00 UTC (rev 134267)
@@ -0,0 +1,35 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+
+name                pidof
+version             0.1.4
+categories          sysutils
+license             permissive
+maintainers         devans openmaintainer
+description         A utility to display the PID number for a given process name
+long_description    ${description} 
+platforms           darwin
+
+homepage            http://nightproductions.net/cli.htm
+master_sites        http://nightproductions.net/downloads/
+
+distname            pidof_source
+worksrcdir          pidof-source
+
+checksums           rmd160  760b85eef9c3daf34aadac23bc642dc357d31add \
+                    sha256  2a2cd618c7b9130e1a1d9be0210e786b85cbc9849c9b6f0cad9cbde31541e1b8
+
+patchfiles          patch-Makefile.diff \
+                    patch-pidof.c.diff
+
+use_configure       no
+
+build.env-append    CC=${configure.cc} \
+                    CFLAGS="${configure.cflags}" \
+                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
+
+destroot.env-append PREFIX=${prefix}
+
+livecheck.type      none


Property changes on: trunk/dports/sysutils/pidof/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/sysutils/pidof/files/patch-Makefile.diff
===================================================================
--- trunk/dports/sysutils/pidof/files/patch-Makefile.diff	                        (rev 0)
+++ trunk/dports/sysutils/pidof/files/patch-Makefile.diff	2015-03-20 20:29:00 UTC (rev 134267)
@@ -0,0 +1,26 @@
+--- Makefile.orig	2015-03-20 13:02:17.000000000 -0700
++++ Makefile	2015-03-20 13:03:39.000000000 -0700
+@@ -1,20 +1,11 @@
+-#Makefile for xstat
+-
+-CFLAGS=-O3 -Wall
+-LDFLAGS=
+-CC=gcc
+-DESTDIR ?= /usr/local
++#Makefile for pidof
+ 
+ all: pidof
+ 
+ install:
+-	install -s -o root -g wheel -m 755 pidof ${DESTDIR}/bin
+-	install -o root -g wheel -m 644 pidof.1 ${DESTDIR}/share/man/man1
++	install -s -o root -g wheel -m 755 pidof ${DESTDIR}${PREFIX}/bin
++	install -o root -g wheel -m 644 pidof.1 ${DESTDIR}${PREFIX}/share/man/man1
+ 
+-uninstall:
+-	/bin/rm ${DESTDIR}/bin/pidof
+-	/bin/rm ${DESTDIR}/share/man/man1/pidof.1
+-	
+ clean:
+ 	/bin/rm pidof
+ 

Added: trunk/dports/sysutils/pidof/files/patch-pidof.c.diff
===================================================================
--- trunk/dports/sysutils/pidof/files/patch-pidof.c.diff	                        (rev 0)
+++ trunk/dports/sysutils/pidof/files/patch-pidof.c.diff	2015-03-20 20:29:00 UTC (rev 134267)
@@ -0,0 +1,11 @@
+--- pidof.c.orig	2015-03-20 12:46:07.000000000 -0700
++++ pidof.c	2015-03-20 12:46:37.000000000 -0700
+@@ -8,6 +8,8 @@
+ #import <pwd.h>
+ #import <syslog.h>
+ #import <stdarg.h>
++#import <signal.h>
++#import <string.h>
+ 
+ #define YES 1
+ #define NO  0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150320/1d0ea993/attachment.html>


More information about the macports-changes mailing list