Lines 1-6
Link Here
|
1 |
--- src/Makefile 2016-01-06 22:42:06.000000000 +0700 |
1 |
--- src/Makefile.orig 2016-01-06 15:42:06 UTC |
2 |
+++ src/Makefile 2017-07-02 17:48:59.910230000 +0700 |
2 |
+++ src/Makefile |
3 |
@@ -11,8 +11,17 @@ |
3 |
@@ -11,8 +11,17 @@ PROG?= mpd5 |
4 |
PREFIX?= /usr/local |
4 |
PREFIX?= /usr/local |
5 |
BINDIR?= ${PREFIX}/sbin |
5 |
BINDIR?= ${PREFIX}/sbin |
6 |
VERSION= 5.8 |
6 |
VERSION= 5.8 |
Lines 10-25
Link Here
|
10 |
+.if ${OSVERSION} > 1100100 |
10 |
+.if ${OSVERSION} > 1100100 |
11 |
+MK_MAN= no |
11 |
+MK_MAN= no |
12 |
+.else |
12 |
+.else |
13 |
+NO_MAN= |
13 |
NO_MAN= |
14 |
+.endif |
14 |
+.endif |
15 |
+.else |
15 |
+.else |
16 |
+MK_MAN= no |
16 |
+MK_MAN= no |
17 |
NO_MAN= |
17 |
+NO_MAN= |
18 |
+.endif |
18 |
+.endif |
19 |
|
19 |
|
20 |
BINOWN!= /usr/bin/id -n -u |
20 |
BINOWN!= /usr/bin/id -n -u |
21 |
BINGRP!= /usr/bin/id -n -g |
21 |
BINGRP!= /usr/bin/id -n -g |
22 |
@@ -72,7 +81,7 @@ |
22 |
@@ -72,7 +81,7 @@ SYSLOG_FACILITY= LOG_DAEMON |
23 |
|
23 |
|
24 |
# Print wide protocol names instead of short names. |
24 |
# Print wide protocol names instead of short names. |
25 |
# Comment this line, to save about 10 KB space |
25 |
# Comment this line, to save about 10 KB space |
Lines 28-34
Link Here
|
28 |
|
28 |
|
29 |
# Reduce some internal structures size to save more memory |
29 |
# Reduce some internal structures size to save more memory |
30 |
# This is to limit amount of active sessions |
30 |
# This is to limit amount of active sessions |
31 |
@@ -84,27 +93,27 @@ |
31 |
@@ -84,27 +93,27 @@ COPTS+= -DPROTO_NAME_LIST |
32 |
## filter TCP accept connections |
32 |
## filter TCP accept connections |
33 |
LDADD+= -lwrap |
33 |
LDADD+= -lwrap |
34 |
DPADD+= ${LIBWRAP} |
34 |
DPADD+= ${LIBWRAP} |
Lines 60-66
Link Here
|
60 |
.endif |
60 |
.endif |
61 |
|
61 |
|
62 |
LDADD+= -lnetgraph -lutil |
62 |
LDADD+= -lnetgraph -lutil |
63 |
@@ -122,10 +131,10 @@ |
63 |
@@ -122,10 +131,10 @@ LDADD+= -lexpat |
64 |
|
64 |
|
65 |
MPD_VERSION!= echo -n "${VERSION} (`id -un`@`uname -n` `LC_TIME=C date +'%R %v'`)" |
65 |
MPD_VERSION!= echo -n "${VERSION} (`id -un`@`uname -n` `LC_TIME=C date +'%R %v'`)" |
66 |
|
66 |
|
Lines 75-81
Link Here
|
75 |
-Wcast-align \ |
75 |
-Wcast-align \ |
76 |
-Wchar-subscripts \ |
76 |
-Wchar-subscripts \ |
77 |
-Wformat \ |
77 |
-Wformat \ |
78 |
@@ -139,11 +148,11 @@ |
78 |
@@ -139,11 +148,11 @@ COPTS+= -Wall \ |
79 |
-I${PREFIX}/include |
79 |
-I${PREFIX}/include |
80 |
|
80 |
|
81 |
.if defined ( MPD_VENDOR ) |
81 |
.if defined ( MPD_VENDOR ) |
Lines 89-95
Link Here
|
89 |
.endif |
89 |
.endif |
90 |
|
90 |
|
91 |
# Standard sources |
91 |
# Standard sources |
92 |
@@ -155,14 +164,14 @@ |
92 |
@@ -155,14 +164,14 @@ STDSRCS= assert.c auth.c bund.c r |
93 |
util.c vars.c eap.c msoft.c ippool.c |
93 |
util.c vars.c eap.c msoft.c ippool.c |
94 |
|
94 |
|
95 |
.if defined ( NOWEB ) |
95 |
.if defined ( NOWEB ) |
Lines 106-112
Link Here
|
106 |
PDPATH1= contrib/libpdel/util:contrib/libpdel/structs |
106 |
PDPATH1= contrib/libpdel/util:contrib/libpdel/structs |
107 |
PDPATH2= contrib/libpdel/structs/type |
107 |
PDPATH2= contrib/libpdel/structs/type |
108 |
.if defined ( NOWEB ) |
108 |
.if defined ( NOWEB ) |
109 |
@@ -206,54 +215,54 @@ |
109 |
@@ -206,54 +215,54 @@ PDELSRCS+= http_connection.c \ |
110 |
|
110 |
|
111 |
.if defined ( PHYSTYPE_MODEM ) |
111 |
.if defined ( PHYSTYPE_MODEM ) |
112 |
SRCS+= modem.c chat.c |
112 |
SRCS+= modem.c chat.c |
Lines 176-182
Link Here
|
176 |
.endif |
176 |
.endif |
177 |
.endif |
177 |
.endif |
178 |
|
178 |
|
179 |
@@ -262,46 +271,46 @@ |
179 |
@@ -262,46 +271,46 @@ COPTS+= -DUSE_NG_PRED1 |
180 |
.if defined ( ECP_DES ) |
180 |
.if defined ( ECP_DES ) |
181 |
SRCS+= ecp_dese.c |
181 |
SRCS+= ecp_dese.c |
182 |
SRCS+= ecp_dese_bis.c |
182 |
SRCS+= ecp_dese_bis.c |
Lines 234-240
Link Here
|
234 |
.endif |
234 |
.endif |
235 |
|
235 |
|
236 |
# Add in required support files and libraries |
236 |
# Add in required support files and libraries |
237 |
@@ -310,7 +319,7 @@ |
237 |
@@ -310,7 +319,7 @@ DPADD+= ${LIBCRYPTO} |
238 |
|
238 |
|
239 |
.if exists ( /usr/lib/libexecinfo.so ) |
239 |
.if exists ( /usr/lib/libexecinfo.so ) |
240 |
LDADD+= -lexecinfo |
240 |
LDADD+= -lexecinfo |