Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3769107
D695.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D695.diff
View Options
diff --git a/roles/shellserver/userland-software/files/install-eggdrop b/roles/shellserver/userland-software/files/install-eggdrop
new file mode 100644
--- /dev/null
+++ b/roles/shellserver/userland-software/files/install-eggdrop
@@ -0,0 +1,50 @@
+#!/bin/sh
+
+# -------------------------------------------------------------
+# Install an eggdrop
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Eglide
+# Created: 2016-11-06
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+# -------------------------------------------------------------
+# TCL and eggdrop versions
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+EGGDROP_VERSION_MAJOR=1.6
+EGGDROP_VERSION=1.6.21
+TCL_VERSION=8.6
+
+# -------------------------------------------------------------
+# Fetch, extract
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+wget ftp://ftp.eggheads.org/pub/eggdrop/source/${EGGDROP_VERSION_MAJOR}/eggdrop${EGGDROP_VERSION}.tar.gz
+tar xzf eggdrop${EGGDROP_VERSION}.tar.gz
+cd eggdrop${EGGDROP_VERSION}
+
+# -------------------------------------------------------------
+# Configure step
+#
+# This is the tricky part, as we need to provide path to TCL
+# header and library files, heavily OS/distro/arch dependant.
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+if [ -f /etc/debian_version ]; then
+ ARCH=`dpkg-architecture -qDEB_HOST_MULTIARCH`
+ CFLAGS="-std=gnu89" ./configure --with-tclinc=/usr/include/tcl${TCL_VERSION}/tcl.h --with-tcllib=/usr/lib/$ARCH/libtcl${TCL_VERSION}.so
+elif [ `uname` = "FreeBSD" ]; then
+ TCL_VERSION_LIB=`echo $TCL_VERSION | tr -d .`
+ ./configure --with-tclinc=/usr/local/include/tcl${TCL_VERSION}/tcl.h -with-tcllib=/usr/local/lib/libtcl${TCL_VERSION_LIB}.so
+else
+ ./configure
+fi
+
+# -------------------------------------------------------------
+# Build, install
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+make config
+make
+make install
diff --git a/roles/shellserver/userland-software/irc.sls b/roles/shellserver/userland-software/irc.sls
--- a/roles/shellserver/userland-software/irc.sls
+++ b/roles/shellserver/userland-software/irc.sls
@@ -34,11 +34,13 @@
# -------------------------------------------------------------
# Bots
-#
-# Don't bother installing eggdrop, everyone loves to compile it.
# -------------------------------------------------------------
-# So we don't really have anything to install here.
+eggdrop_installer:
+ file.managed:
+ - name: /usr/local/bin/install-eggdrop
+ - source: salt://roles/shellserver/userland-software/files/install-eggdrop
+ - mode: 755
# -------------------------------------------------------------
# Misc
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 13:01 (7 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2260198
Default Alt Text
D695.diff (2 KB)
Attached To
Mode
D695: Allow to fetch, compile and install an eggdrop automatically
Attached
Detach File
Event Timeline
Log In to Comment