Package: proctools
Version: 0.4pre1
Revision: 1
Maintainer: None <fink-devel@lists.sourceforge.net>

Source: mirror:sourceforge:%n/%n-%v.tar.gz
Source-Checksum: SHA256(4553b9c6eda959b12913bc39b6e048a8a66dad18f888f983697fece155ec5538)

PatchFile: %n.patch
PatchFile-MD5: b17c1d4f4c0913c2ed7fd8a9eed2480e

CompileScript: <<
#!/bin/bash -ex
cc -Wall -c -o proctools.o proctools/proctools.c
cc -Wall -c -o fmt.o proctools/fmt.c

for tool in pkill pfind pgrep ; do
  cc -Wall -c -o $tool.o $tool/$tool.c
  cc $tool.o proctools.o fmt.o -o $tool/$tool
  cd $tool && soelim $tool.1 > ../$tool.1 && cd ..
done
<<
InstallScript: <<
#!/bin/bash -ex
install -d %i/bin
install -d %i/share/man/man1

for tool in pkill pfind pgrep ; do
  install -m 0755 $tool/$tool %i/bin
  install -m 0644 $tool.1 %i/share/man/man1/
done
<<
DocFiles: README LICENSE
#
Description: Scan for and send signals to processes
DescDetail: <<
The proctools are text-based utilities to scan for and send signals
to processes. Includes pgrep, pkill and pfind for OpenBSD and Darwin.
<<
DescPackaging: <<
The included Makefile is for BSD Make, and not compatible with GNU Make.
To overcome this, we simply compile the source files directly.
<<
License: BSD
Homepage: http://proctools.sourceforge.net/