summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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