pkgsrc/emulators/hercules4sdl/Makefile
rhialto f8dd1c9dc5 emulators/hercules4sdl: limit access to suid program hercifc.
It's installed accessible to the new group "hercules":
-r-s--x---  1 root  hercules  9512 Dec 19 21:25 /usr/pkg/bin/hercifc
2021-12-19 21:26:27 +00:00

58 lines
1.7 KiB
Makefile

# $NetBSD: Makefile,v 1.6 2021/12/19 21:26:27 rhialto Exp $
PKGNAME= hercules4sdl-4.4
PKGREVISION= 1
DISTNAME= hyperion-Release_${PKGVERSION_NOREV}
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_GITHUB:=SDL-Hercules-390/}
EXTRACT_USING= bsdtar
MAINTAINER= rhialto@NetBSD.org
HOMEPAGE= https://github.com/SDL-Hercules-390/hyperion
COMMENT= The SoftDevLabs version of Hercules 4.x (Hyperion)
LICENSE= qpl-v1.0
GITHUB_PROJECT= hyperion
GITHUB_TAG= Release_${PKGVERSION_NOREV}
GNU_CONFIGURE= yes
USE_TOOLS+= autoconf automake flex gawk grep gm4 gmake perl gsed
USE_TOOLS+= bash
USE_LIBTOOL= YES
USE_LANGUAGES+= c
PTHREAD_OPTS+= require
REPLACE_BASH= _dynamic_version
.if ${MACHINE_ARCH} == i386
CFLAGS+= -march=i586
.endif
SUBST_CLASSES+= prefix
SUBST_STAGE.prefix= pre-configure
SUBST_MESSAGE.prefix= Correcting configuration path
SUBST_FILES.prefix= hercules.cnf
SUBST_SED.prefix= -e 's,/usr/local,${PREFIX},g'
CONFIGURE_ARGS+= --enable-extpkgs=${PREFIX}/lib/hercules4sdl
GROUP= hercules
PKG_GROUPS+= ${GROUP}
SPECIAL_PERMS+= ${PREFIX}/bin/hercifc ${REAL_ROOT_USER} ${GROUP} 4510
INSTALLATION_DIRS+= share/examples/hercules
pre-configure:
cd ${WRKSRC} && ./autogen.sh
post-install:
${INSTALL_DATA} ${WRKSRC}/hercules.cnf ${DESTDIR}${PREFIX}/share/examples/hercules/
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/libltdl/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../math/hercules4sdl-decnumber/buildlink3.mk"
.include "../../math/hercules4sdl-softfloat/buildlink3.mk"
.include "../../net/hercules4sdl-telnet/buildlink3.mk"
.include "../../security/hercules4sdl-crypto/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"