From 3d1235af060955e271be68240c0ca46bc6d81b03 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 25 Mar 2014 15:24:04 +0100 Subject: [modules] new module naming convention rename $MODULE.{conf,build} to module.{conf,build} --- remote/modules/samba/module.build | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 remote/modules/samba/module.build (limited to 'remote/modules/samba/module.build') diff --git a/remote/modules/samba/module.build b/remote/modules/samba/module.build new file mode 100644 index 00000000..a0a60831 --- /dev/null +++ b/remote/modules/samba/module.build @@ -0,0 +1,26 @@ +fetch_source() { + : +} + +build() { + COPYLIST="list_dpkg_output" + [ -e "$COPYLIST" ] && rm "$COPYLIST" + + if [ "x$PACKET_MANAGER" == "xzypper" ]; then + if [ $(zypper lr | grep -ci filesystems) -eq 0 ]; then + zypper addrepo http://download.opensuse.org/repositories/filesystems/openSUSE_${SYS_VERSION} Filesystems + pinfo "Repository added: OpenSuse Build filesystems" + fi + # Ubuntu writes to /etc, Suse does not: + mkdir "$MODULE_BUILD_DIR"/etc/ + cp /usr/share/doc/packages/smbnetfs/smbnetfs.conf "$MODULE_BUILD_DIR"/etc/ + fi + + list_packet_files >> "$COPYLIST" + tarcopy "$(cat "$COPYLIST" | sort -u)" "${MODULE_BUILD_DIR}" + return 0 +} + +post_copy() { + : +} -- cgit v1.2.3-55-g7522