aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2018-08-17 00:53:38 +0800
committerJan Beich <jbeich@FreeBSD.org>2018-08-17 00:53:38 +0800
commit86d94f139ae1811b583c6d52502578b0a570bc47 (patch)
treebf7a75d9097b72e4520bf96d0c5c672ae85ea1e7 /devel
parent5e7b6f51210fad0d0a5457084881774f760d44c7 (diff)
downloadfreebsd-ports-gnome-86d94f139ae1811b583c6d52502578b0a570bc47.tar.gz
freebsd-ports-gnome-86d94f139ae1811b583c6d52502578b0a570bc47.tar.zst
freebsd-ports-gnome-86d94f139ae1811b583c6d52502578b0a570bc47.zip
devel/lua-luarocks: allow adjusting system-wide configuration
Submitted by: Andrew Gierth (based on) Differential Revision: https://reviews.freebsd.org/D16274
Diffstat (limited to 'devel')
-rw-r--r--devel/lua-luarocks/Makefile2
-rw-r--r--devel/lua-luarocks/pkg-plist2
2 files changed, 3 insertions, 1 deletions
diff --git a/devel/lua-luarocks/Makefile b/devel/lua-luarocks/Makefile
index a1a6ca61f331..10e8aa1536bd 100644
--- a/devel/lua-luarocks/Makefile
+++ b/devel/lua-luarocks/Makefile
@@ -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
diff --git a/devel/lua-luarocks/pkg-plist b/devel/lua-luarocks/pkg-plist
index 1d1104cacbca..61bda7fd8b87 100644
--- a/devel/lua-luarocks/pkg-plist
+++ b/devel/lua-luarocks/pkg-plist
@@ -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