[arch-commits] Commit in unhide/repos/community-x86_64 (Makefile PKGBUILD PKGBUILD)

Eli Schwartz eschwartz at archlinux.org
Tue Nov 13 21:38:24 UTC 2018


    Date: Tuesday, November 13, 2018 @ 21:38:23
  Author: eschwartz
Revision: 407228

archrelease: copy trunk to community-x86_64

Added:
  unhide/repos/community-x86_64/Makefile
    (from rev 407227, unhide/trunk/Makefile)
  unhide/repos/community-x86_64/PKGBUILD
    (from rev 407227, unhide/trunk/PKGBUILD)
Deleted:
  unhide/repos/community-x86_64/PKGBUILD

----------+
 Makefile |   25 +++++++++++++++++++++++++
 PKGBUILD |   60 +++++++++++++++++++++++++++++-------------------------------
 2 files changed, 54 insertions(+), 31 deletions(-)

Copied: unhide/repos/community-x86_64/Makefile (from rev 407227, unhide/trunk/Makefile)
===================================================================
--- Makefile	                        (rev 0)
+++ Makefile	2018-11-13 21:38:23 UTC (rev 407228)
@@ -0,0 +1,25 @@
+PREFIX ?= /usr/local
+
+BINS ?= unhide-linux unhide_rb unhide-tcp unhide-posix
+LINUX_SRC:= $(sort $(wildcard unhide-linux*.c))
+
+CFLAGS ?= -Wall
+CFLAGS += -Wall
+
+all: $(BINS)
+unhide-linux: $(LINUX_SRC) unhide-output.c
+unhide-linux: LDFLAGS += -pthread
+unhide-tcp: unhide-tcp.c unhide-tcp-fast.c unhide-output.c
+
+install:
+	install -d -m 755 '$(DESTDIR)$(PREFIX)'/bin
+	for bin in $(BINS); do \
+	    install -m 755 $$bin '$(DESTDIR)$(PREFIX)'/bin/$$bin; \
+	done
+	for man in man/*.8 man/*/*.8; do \
+	    lang=$${man%/*}; \
+	    lang=$${lang#man}; \
+	    manfile=$${man##*/}; \
+	    install -d -m 755 '$(DESTDIR)$(PREFIX)'/share/man/$$lang/man8; \
+	    install -m 644 $$man '$(DESTDIR)$(PREFIX)'/share/man/$$lang/man8/$$manfile; \
+	done

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-13 21:38:07 UTC (rev 407227)
+++ PKGBUILD	2018-11-13 21:38:23 UTC (rev 407228)
@@ -1,31 +0,0 @@
-# $Id$
-# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
-
-pkgname=unhide
-pkgver=20130526
-pkgrel=2
-pkgdesc='A forensic tool to find processes hidden by rootkits, LKMs or by other techniques.'
-arch=('x86_64')
-url='http://sourceforge.net/projects/unhide/'
-license=('GPL3')
-depends=('iproute2' 'lsof' 'psmisc' 'net-tools' 'procps-ng')
-source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgname-$pkgver.tgz")
-md5sums=('f3d68ed8eb239614abb0ff5ace22cf85')
-
-build() {
-  cd $pkgname-$pkgver
-  cc -Wall -O2 --static -pthread unhide-linux*.c unhide-output.c -o unhide-linux
-  cc -Wall -O2 --static unhide_rb.c -o unhide_rb
-  cc -Wall -O2 --static unhide-posix.c -o unhide-posix
-  cc -Wall -O2 --static unhide-tcp.c unhide-tcp-fast.c unhide-output.c -o unhide-tcp
-}
-
-package() {
-  cd $pkgname-$pkgver
-  for _p in unhide-linux unhide-posix unhide_rb unhide-tcp; do
-    install -Dm0755 "$_p" "$pkgdir/usr/bin/$_p"
-  done
-  ln -s unhide-linux "$pkgdir/usr/bin/unhide"
-  install -Dm0644 man/unhide.8 "$pkgdir/usr/share/man/man8/unhide.8"
-}
-

Copied: unhide/repos/community-x86_64/PKGBUILD (from rev 407227, unhide/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-11-13 21:38:23 UTC (rev 407228)
@@ -0,0 +1,29 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+
+pkgname=unhide
+pkgver=20130526
+pkgrel=3
+pkgdesc='A forensic tool to find processes hidden by rootkits, LKMs or by other techniques.'
+arch=('x86_64')
+url='https://sourceforge.net/projects/unhide/'
+license=('GPL3')
+depends=('iproute2' 'lsof' 'psmisc' 'net-tools' 'procps-ng')
+source=("https://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgname-$pkgver.tgz"
+        "Makefile")
+md5sums=('f3d68ed8eb239614abb0ff5ace22cf85'
+         '68ec8dcd2f25d4d5dad089a8535d462f')
+
+prepare() {
+  cp -f Makefile $pkgname-$pkgver/
+}
+
+build() {
+  cd $pkgname-$pkgver
+  make
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make PREFIX=/usr DESTDIR="$pkgdir" install
+  ln -s unhide-linux "$pkgdir/usr/bin/unhide"
+}


More information about the arch-commits mailing list