void-packages/srcpkgs/nethack/patches/1-linux-hints.patch
Artem Zhurikhin 7896369725 nethack: fix SYSCF_FILE, misc. improvements
- fix xlint
- move *-devel depends to makedepends
- stop overriding CFLAGS in template, patch sys/unix/hints/linux instead
- in particular, stop overriding the SECURE macro defined in hints to
  prevent unauthorized writes as :nethack. rely on build-time HACKDIR
  definition to make /var/games/nethack/ the default playground.
- remove post_extract() since this is already done in hints
- move /usr/lib/nethack/sysconf (SYSCF_FILE) to /etc/nethack/sysconf,
  add it conf_files. fix SYSCF_FILE permissions.
2020-12-15 22:26:47 -03:00

17 lines
663 B
Diff

We move /usr/lib/nethack/sysconf to /etc/nethack/sysconf since
this file is intended to be editable by root.
diff --git sys/unix/hints/linux sys/unix/hints/linux
index 8629150..9a4d722 100644
--- sys/unix/hints/linux
+++ sys/unix/hints/linux
@@ -23,7 +23,7 @@ POSTINSTALL=cp -n sys/unix/sysconf $(INSTDIR)/sysconf; $(CHOWN) $(GAMEUID) $(INS
CFLAGS=-g -O -I../include -DNOTPARMDECL
CFLAGS+=-DDLB
CFLAGS+=-DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\"
-CFLAGS+=-DSYSCF -DSYSCF_FILE=\"$(HACKDIR)/sysconf\" -DSECURE
+CFLAGS+=-DSYSCF -DSYSCF_FILE=\"/etc/nethack/sysconf\" -DSECURE
CFLAGS+=-DTIMED_DELAY
CFLAGS+=-DHACKDIR=\"$(HACKDIR)\"
CFLAGS+=-DDUMPLOG