Lines 1-35
Link Here
|
1 |
--- Makefile.bsd.orig 2020-05-10 16:58:42 UTC |
1 |
--- Makefile.bsd.orig 2023-02-17 03:09:33 UTC |
2 |
+++ Makefile.bsd |
2 |
+++ Makefile.bsd |
3 |
@@ -121,8 +121,7 @@ LIBS += -lssl -lcrypto |
3 |
@@ -150,8 +150,8 @@ install: miniupnpd genuuid |
4 |
|
|
|
5 |
INSTALLBINDIR = $(PREFIX)/sbin |
6 |
INSTALLETCDIR = $(PREFIX)/etc |
7 |
-# INSTALLMANDIR = $(PREFIX)/man |
8 |
-INSTALLMANDIR = /usr/share/man |
9 |
+INSTALLMANDIR = $(MANPREFIX)/man |
10 |
|
11 |
all: $(EXECUTABLES) |
12 |
|
13 |
@@ -140,10 +139,10 @@ install: miniupnpd genuuid |
14 |
$(INSTALL) -d $(DESTDIR)$(INSTALLBINDIR) |
4 |
$(INSTALL) -d $(DESTDIR)$(INSTALLBINDIR) |
15 |
$(INSTALL) -m 755 miniupnpd $(DESTDIR)$(INSTALLBINDIR) |
5 |
$(INSTALL) -m 755 miniupnpd $(DESTDIR)$(INSTALLBINDIR) |
16 |
$(INSTALL) -d $(DESTDIR)$(INSTALLETCDIR) |
6 |
$(INSTALL) -d $(DESTDIR)$(INSTALLETCDIR) |
17 |
- $(INSTALL) -b miniupnpd.conf $(DESTDIR)$(INSTALLETCDIR) |
7 |
- $(INSTALL) -b miniupnpd.conf $(DESTDIR)$(INSTALLETCDIR) |
|
|
8 |
- $(INSTALL) -d $(DESTDIR)$(INSTALLMANDIR) |
18 |
+ $(INSTALL) -b miniupnpd.conf $(DESTDIR)$(INSTALLETCDIR)/miniupnpd.conf.sample |
9 |
+ $(INSTALL) -b miniupnpd.conf $(DESTDIR)$(INSTALLETCDIR)/miniupnpd.conf.sample |
19 |
# TODO : install man page correctly |
|
|
20 |
-# $(INSTALL) -d $(INSTALLMANDIR) |
21 |
-# $(INSTALL) miniupnpd.8 $(INSTALLMANDIR)/cat8/miniupnpd.0 |
22 |
+ $(INSTALL) -d $(DESTDIR)$(INSTALLMANDIR)/man8 |
10 |
+ $(INSTALL) -d $(DESTDIR)$(INSTALLMANDIR)/man8 |
23 |
+ $(INSTALL) miniupnpd.8 $(DESTDIR)$(INSTALLMANDIR)/man8/miniupnpd.8 |
11 |
$(INSTALL) -m 644 miniupnpd.8 $(DESTDIR)$(INSTALLMANDIR)/man8/miniupnpd.8 |
24 |
|
12 |
|
25 |
# genuuid is using the uuid cli tool available under OpenBSD 4.0 in |
13 |
# genuuid is using the uuid cli tool available under OpenBSD 4.0 in |
26 |
# the uuid-1.5.0 package |
|
|
27 |
@@ -187,7 +186,7 @@ dox: miniupnpd.doxyconf |
28 |
$(DOXYGEN) $> |
29 |
|
30 |
miniupnpd: config.h $(ALLOBJS) |
31 |
- $(CC) $(LDFLAGS) -o $@ $(ALLOBJS) $(LIBS) |
32 |
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(ALLOBJS) $(LIBS) |
33 |
|
34 |
# BSDmake : |
35 |
# $(CC) $(LDFLAGS) -o $@ $> $(LIBS) |
36 |
- |