Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Aug 2018 16:53:38 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r477366 - head/devel/lua-luarocks
Message-ID:  <201808161653.w7GGrc2U093460@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Thu Aug 16 16:53:38 2018
New Revision: 477366
URL: https://svnweb.freebsd.org/changeset/ports/477366

Log:
  devel/lua-luarocks: allow adjusting system-wide configuration
  
  Submitted by:	Andrew Gierth (based on)
  Differential Revision:	https://reviews.freebsd.org/D16274

Modified:
  head/devel/lua-luarocks/Makefile   (contents, props changed)
  head/devel/lua-luarocks/pkg-plist   (contents, props changed)

Modified: head/devel/lua-luarocks/Makefile
==============================================================================
--- head/devel/lua-luarocks/Makefile	Thu Aug 16 16:53:27 2018	(r477365)
+++ head/devel/lua-luarocks/Makefile	Thu Aug 16 16:53:38 2018	(r477366)
@@ -39,6 +39,8 @@ post-patch:
 # Don't install unprefixed binaries to avoid package conflict with
 # luarocks built against different lang/lua* versions
 	@${REINPLACE_CMD} '/ln -/d' ${WRKSRC}/Makefile.install.inc
+# Let @sample manage default config
+	@${REINPLACE_CMD} '/CONFIG_FILE = /s/$$/.sample/' ${WRKSRC}/Makefile
 
 post-build:
 # NO_ARCH requires https://bugs.archlinux.org/task/40388

Modified: head/devel/lua-luarocks/pkg-plist
==============================================================================
--- head/devel/lua-luarocks/pkg-plist	Thu Aug 16 16:53:27 2018	(r477365)
+++ head/devel/lua-luarocks/pkg-plist	Thu Aug 16 16:53:38 2018	(r477366)
@@ -1,6 +1,6 @@
 bin/luarocks-%%LUA_VER%%
 bin/luarocks-admin-%%LUA_VER%%
-%%ETCDIR%%/config-%%LUA_VER%%.lua
+@sample %%ETCDIR%%/config-%%LUA_VER%%.lua.sample
 %%LUA_MODSHAREDIR%%/luarocks/add.lua
 %%LUA_MODSHAREDIR%%/luarocks/admin_remove.lua
 %%LUA_MODSHAREDIR%%/luarocks/build.lua



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808161653.w7GGrc2U093460>