Skip to content

Commit

Permalink
misc/countrycodes: Sanitize MANPREFIX
Browse files Browse the repository at this point in the history
Reported by:	antoine
  • Loading branch information
5u623l20 committed Jan 31, 2024
1 parent d449cc2 commit 8d4c199
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions misc/countrycodes/files/patch-Makefile
Expand Up @@ -3,33 +3,33 @@
@@ -9,7 +9,7 @@ bindir ?= ${prefix}/bin
prefix ?= /usr/local
bindir ?= ${prefix}/bin

-mandir ?= ${prefix}/man/man1
+mandir ?= ${MANPREFIX}/share/man/man1
+mandir ?= ${prefix}/share/man/man1

# For system that doesn't support mkdir -p.
# If you have Linux, don't bother.
@@ -23,13 +23,13 @@ LOGDIRMODE=700
LOGDIRMODE=700

# Compiler to use
-CC=gcc
+CC?=gcc

# Compiler warnings
-WARNINGS= -pedantic -Wall
+#WARNINGS= -pedantic -Wall

# Compiler flags
-CCOPTS = -O2 -fomit-frame-pointer
+CCOPTS = ${CFLAGS}

# The makefile standards document I read says that I have to put it here...
SHELL = /bin/sh
@@ -66,11 +66,11 @@ strip:
strip:
strip $(PROGRAM)

-install:
- $(MKDIRECTORY) $(DESTDIR)/${bindir} $(DESTDIR)/${mandir}/man1
+install: strip
Expand All @@ -38,6 +38,6 @@
@echo "Installing man page..."
- $(INSTALL) -m 644 iso3166.1 $(DESTDIR)/${mandir}/man1
+ $(INSTALL) -m 644 iso3166.1 $(DESTDIR)/${mandir}

update-man:
@$(SEDBIN) $(SEDCMDS) iso3166.1.in > iso3166.1

0 comments on commit 8d4c199

Please sign in to comment.