blob: 406b93089dfafe974dd32989f2e552e858ba6b28 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# $NetBSD: Makefile,v 1.58 2012/10/03 21:57:36 wiz Exp $
.include "../../sysutils/coreutils/Makefile.common"
PKGREVISION= 5
CONFIGURE_ARGS+= --without-gmp
CONFLICTS= fileutils-[0-9]* gnuls-[0-9]* linuxls-[0-9]* sh-utils-[0-9]* textutils-[0-9]*
# devel/id-utils installs a 'gid' program, so conflict with it
# databases/geneweb a 'gwc' program, so conflict with it
# graphics/graphviz installs a 'gpr' program, so conflict with it
CONFLICTS+= id-utils-[0-9]* gnome-utils<1.4.1.2nb2
CONFLICTS+= geneweb-[0-9]*
CONFLICTS+= graphviz<1.12
INFO_FILES= yes
# Exclude programs from PLIST which aren't built on a platform.
PLIST_VARS+= hostid stdbuf
.if ${OPSYS} != "Interix"
PLIST.hostid= yes
.endif
.include "../../mk/compiler.mk"
.if ${OBJECT_FMT} == "ELF" && \
(!empty(PKGSRC_COMPILER:Mgcc) || !empty(PKGSRC_COMPILER:Mclang))
PLIST.stdbuf= yes
.endif
PROGS= [ base64 basename cat chcon chgrp chmod chown chroot cksum comm \
cp csplit cut date dd df dir dircolors dirname du hostid echo env \
expand expr factor false fmt fold groups head id install join kill \
link ln logname ls md5sum mkdir mkfifo mknod mktemp mv nice nl \
nohup nproc od paste pathchk pinky pr printenv printf ptx pwd \
readlink rm rmdir runcon seq sha1sum sha224sum sha256sum sha384sum \
sha512sum shred shuf sleep sort split stat stdbuf stty sum sync tac \
tail tee test timeout touch tr true truncate tsort tty uname \
unexpand uniq unlink uptime users vdir wc who whoami yes
AUTO_MKDIRS= yes
post-install:
.for f in ${PROGS}
set -e; \
if ${TEST} -f ${DESTDIR}${PREFIX}/bin/g${f:Q}; then \
${LN} -sf ${PREFIX}/bin/g${f:Q} ${DESTDIR}${PREFIX}/gnu/bin/${f:Q}; \
fi; \
if ${TEST} -f ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/g${f:Q}.1; then \
${LN} -sf ${PREFIX}/${PKGMANDIR}/man1/g${f:Q}.1 ${DESTDIR}${PREFIX}/gnu/man/man1/${f:Q}.1; \
fi
.endfor
#CONFIGURE_ARGS+= --enable-install-program=su
#.if ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD" || \
# ${OPSYS} == "OpenBSD"
#MAKE_FLAGS+= setuid_root_mode=a=rx
#MESSAGE_SRC= ${.CURDIR}/MESSAGE.gsu
#MESSAGE_SUBST+= OPSYS=${OPSYS:Q}
#.endif
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|