opnsense-ports/security/revealrk/files/patch-SConstruct
Franco Fichtner eadb3490f3 */*: sync with upstream
Taken from: FreeBSD
2016-05-22 12:13:34 +02:00

22 lines
1.3 KiB
Text

--- SConstruct.orig 2016-05-19 16:27:37 UTC
+++ SConstruct
@@ -13,7 +13,7 @@ prog_files = Split('revealrk.c')
pkg_files = prog_files + Split('revealrk.1 SConstruct changelog license.txt README INSTALL cron.example Makefile config.h')
debug = not ARGUMENTS.get('debug', '0').lower() in ['0', 'false', 'no']
-prefix = GetOption('prefix') or '/'
+prefix = GetOption('prefix') or '/usr'
clean_all = not GetOption('clean_all') is None
static = not GetOption('static') is None
build_tgz = not GetOption('tgz') is None
@@ -152,8 +152,8 @@ if not env.GetOption('clean'):
conf.env.Append(LINKFLAGS = ' -static')
env = conf.Finish()
-env.Alias('install', env.AddPostAction(env.Install(prefix + '/usr/bin', target), env.Action('strip ' + prefix + '/usr/bin/' + target)))
-env.Alias('install', env.AddPostAction(env.Install(prefix + '/usr/share/man/man1', target + '.1'), env.Action('gzip -f ' + prefix + '/usr/share/man/man1/' + target + '.1')))
+env.Alias('install', env.AddPostAction(env.Install(prefix + '/bin', target), env.Action('strip ' + prefix + '/bin/' + target)))
+env.Alias('install', env.AddPostAction(env.Install(prefix + '/man/man1', target + '.1'), env.Action('gzip -f ' + prefix + '/man/man1/' + target + '.1')))
if clean_all:
env.Clean('distclean', Split('config.log .sconf_temp .sconsign.dblite'))