]> Zhao Yanbai Git Server - minix.git/commitdiff
pkg_install: Set default paths as expected on MINIX 13/3213/1
authorLionel Sambuc <lionel.sambuc@gmail.com>
Fri, 9 Oct 2015 13:46:08 +0000 (15:46 +0200)
committerLionel Sambuc <lionel.sambuc@gmail.com>
Fri, 9 Oct 2015 13:49:42 +0000 (15:49 +0200)
Change-Id: I97568cb5c92d14b7175ba0ed0f3efb2009d0c455

external/bsd/pkg_install/Makefile.inc

index d6de60e411f1e839d101dba7fa22495e89a07d36..fbbd7d3a3b9fb36a867763fb9a67ec44548b181f 100644 (file)
@@ -7,7 +7,12 @@ USE_FORT?=yes  # network client
 CPPFLAGS+=-I${DIST}/lib
 CPPFLAGS+=-I${NETBSDSRCDIR}/external/bsd/pkg_install/lib
 CPPFLAGS+=-DHAVE_CONFIG_H -DNETBSD -DHAVE_SSL
+.if !defined(__MINIX)
 CPPFLAGS+=-DSYSCONFDIR='"/etc"'
+.else
+CPPFLAGS+=-DSYSCONFDIR='"/usr/pkg/etc"'
+CPPFLAGS+=-DDEF_LOG_DIR='"/usr/pkg/var/db/pkg"'
+.endif # !defined(__MINIX)
 
 WARNS= 4
 CWARNFLAGS+=   -Wno-missing-noreturn