]> err.no Git - systemd/commitdiff
build-sys: slackware support
authorMalcolm Studd <mestudd@gmail.com>
Sat, 15 May 2010 00:52:59 +0000 (20:52 -0400)
committerLennart Poettering <lennart@poettering.net>
Sat, 15 May 2010 21:43:33 +0000 (23:43 +0200)
Attached is a patch for slackware support. If you want it some other
way, let me know; I haven't used git before.

Slackware doesn't have gnome or vala, and I'm having some issues with
the vala programs in systemd. I installed the vala compiler, and the
configure script says I have everything required, but compilation
fails (log attached). Is there something I'm missing? I installed
systemd by commenting out the vala programs in Makefile.am.

Malcolm

configure.ac
hostname-setup.c

index cd7aaff0c0ebda9ab6c832d2c3cc3532c47e0afd..a5e3613b92166ba1bd68083321aa70be8d2eff17 100644 (file)
@@ -148,6 +148,7 @@ if test "z$with_distro" = "z"; then
                 AC_CHECK_FILE(/etc/debian_version,with_distro="debian")
                 AC_CHECK_FILE(/etc/arch-release,with_distro="arch")
                 AC_CHECK_FILE(/etc/gentoo-release,with_distro="gentoo")
+                AC_CHECK_FILE(/etc/slackware-version,with_distro="slackware")
         fi
         if test "z$with_distro" = "z"; then
                 with_distro=`uname -s`
@@ -191,6 +192,13 @@ case $with_distro in
                 special_syslog_service=syslog-ng.service
                 AC_DEFINE(TARGET_GENTOO, [], [Target is Gentoo])
                 ;;
+        slackware)
+                SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
+                SYSTEM_SYSVRCND_PATH=/etc/rc.d
+                special_dbus_service=messagebus.service
+                special_syslog_service=syslog.service
+                AC_DEFINE(TARGET_SLACKWARE, [], [Target is Slackware])
+                ;;
         none)
                 SYSTEM_SYSVINIT_PATH=/fix/the/configure/script
                 SYSTEM_SYSVRCND_PATH=/fix/the/configure/script
@@ -210,6 +218,7 @@ AM_CONDITIONAL(TARGET_SUSE, test x"$with_distro" = xsuse)
 AM_CONDITIONAL(TARGET_DEBIAN, test x"$with_distro" = xdebian)
 AM_CONDITIONAL(TARGET_ARCH, test x"$with_distro" = xarch)
 AM_CONDITIONAL(TARGET_GENTOO, test x"$with_distro" = xgentoo)
+AM_CONDITIONAL(TARGET_SLACKWARE, test x"$with_distro" = xslackware)
 
 AC_DEFINE_UNQUOTED(SPECIAL_DBUS_SERVICE, ["$special_dbus_service"], [D-Bus service name])
 AC_DEFINE_UNQUOTED(SPECIAL_SYSLOG_SERVICE, ["$special_syslog_service"], [syslog service name])
index 71a3f75bd98fed18872dbb552fd1f0992e0613ff..3b988d4c8b68dfdad2c25c545d736e0adb4b470a 100644 (file)
@@ -34,7 +34,7 @@
 
 #if defined(TARGET_FEDORA)
 #define FILENAME "/etc/sysconfig/network"
-#elif defined(TARGET_SUSE)
+#elif defined(TARGET_SUSE) || defined(TARGET_SLACKWARE)
 #define FILENAME "/etc/HOSTNAME"
 #elif defined(TARGET_DEBIAN)
 #define FILENAME "/etc/hostname"
@@ -111,7 +111,7 @@ finish:
         fclose(f);
         return r;
 
-#elif defined(TARGET_SUSE) || defined(TARGET_DEBIAN)
+#elif defined(TARGET_SUSE) || defined(TARGET_DEBIAN) || defined(TARGET_SLACKWARE)
         int r;
         char *s, *k;