Skip to content

Commit

Permalink
sysutils/evhz: simplify build/install logic
Browse files Browse the repository at this point in the history
Enables some default hardening: -fPIE + -pie, -Wl,-zrelro.
  • Loading branch information
jbeich committed Oct 12, 2022
1 parent 7c8ae4a commit e8580a2
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions sysutils/evhz/Makefile
@@ -1,6 +1,7 @@
PORTNAME= evhz
DISTVERSION= g20210920
DISTVERSIONSUFFIX= -0-g35b7526
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= https://git.sr.ht/~iank/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/

Expand All @@ -13,13 +14,9 @@ LICENSE_FILE= ${WRKSRC}/LICENSE

BUILD_DEPENDS= ${LOCALBASE}/include/linux/input.h:devel/evdev-proto

USES= localbase
USES= localbase uidfix
MAKEFILE= bsd.prog.mk
MAKE_ARGS= PROG="${PORTNAME}" MAN= BINDIR="${PREFIX}/bin"
PLIST_FILES= bin/${PORTNAME}

do-build:
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${CC} ${CFLAGS} ${LDFLAGS} -o ${PORTNAME} ${PORTNAME}.c)

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/

.include <bsd.port.mk>

0 comments on commit e8580a2

Please sign in to comment.