summaryrefslogtreecommitdiff
path: root/security/libhijack/Makefile
blob: a5949d32e708eee541fc96a115fc3f2b2a784a54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
PORTNAME=	libhijack
DISTVERSIONPREFIX=	v
DISTVERSION=	0.8.0-2
DISTVERSIONSUFFIX=	-g972534d
PORTREVISION=	1
CATEGORIES=	security

MAINTAINER=	shawn.webb@hardenedbsd.org
COMMENT=	Runtime process infection made easy

LICENSE=	BSD2CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

ONLY_FOR_ARCHS=	aarch64 amd64

USE_GITHUB=	yes
GH_ACCOUNT=	SoldierX
USE_LDCONFIG=	yes

PLIST_FILES=	include/hijack.h \
		lib/libhijack.so \
		lib/libhijack.so.2 \
		sbin/hijack

do-install: # the original install fails: https://github.com/SoldierX/libhijack/issues/6
	${INSTALL_DATA} ${WRKSRC}/include/hijack.h ${STAGEDIR}${PREFIX}/include
	${INSTALL_LIB} ${WRKSRC}/libhijack/obj/libhijack.so* ${STAGEDIR}${PREFIX}/lib
	${INSTALL_PROGRAM} ${WRKSRC}/hijack/obj/hijack ${STAGEDIR}${PREFIX}/sbin

.include <bsd.port.mk>