Thu, 02 Aug 2012 22:07:29 +0200
Correct and update smf(5) logic to accommodate latest vendor version.
Support older and newer platforms by condtionally installing the
manifest to either /var/svc or cacnonical /lib/svc, and avoid usage of
svccfg(1) delete now considered risky. Leverage create_default_instance
smf macro to specify default instance instead of using instance element.
Provide a refresh execution method along with start and stop. Neither
change permissions of manifest nor call the redundant svcadm(1) disable.
michael@93 | 1 | diff -Naur xmms-1.2.8.orig/xmms/skin.c xmms-1.2.8/xmms/skin.c |
michael@93 | 2 | --- xmms-1.2.8.orig/xmms/skin.c Mon Mar 17 15:49:08 2003 |
michael@93 | 3 | +++ xmms-1.2.8/xmms/skin.c Fri Sep 5 11:08:47 2003 |
michael@93 | 4 | @@ -600,10 +600,10 @@ |
michael@93 | 5 | |
michael@93 | 6 | unzip = getenv("UNZIPCMD"); |
michael@93 | 7 | if (!unzip) |
michael@93 | 8 | - unzip = "unzip"; |
michael@93 | 9 | + unzip = "@l_unzip@"; |
michael@93 | 10 | tar = getenv("TARCMD"); |
michael@93 | 11 | if (!tar) |
michael@93 | 12 | - tar = "tar"; |
michael@93 | 13 | + tar = "@l_tar@"; |
michael@93 | 14 | |
michael@93 | 15 | if ((ending = strrchr(path, '.')) == NULL) |
michael@93 | 16 | return NULL; |
michael@93 | 17 | @@ -621,9 +621,9 @@ |
michael@93 | 18 | if (!strcasecmp(ending, ".zip") || !strcasecmp(ending, ".wsz")) |
michael@93 | 19 | tmp = g_strdup_printf("%s >/dev/null -o -j \"%s\" -d %s", unzip, escaped, tempdir); |
michael@93 | 20 | if (!strcasecmp(ending, ".tgz") || !strcasecmp(ending, ".gz")) |
michael@93 | 21 | - tmp = g_strdup_printf("%s >/dev/null xzf \"%s\" -C %s", tar, escaped, tempdir); |
michael@93 | 22 | + tmp = g_strdup_printf("@l_gzip@ -dc \"%s\" | %s >/dev/null xf - -C %s", escaped, tar, tempdir); |
michael@93 | 23 | if (!strcasecmp(ending, ".bz2")) |
michael@93 | 24 | - tmp = g_strdup_printf("bzip2 -dc \"%s\" | %s >/dev/null xf - -C %s", escaped, tar, tempdir); |
michael@93 | 25 | + tmp = g_strdup_printf("@l_bzip2@ -dc \"%s\" | %s >/dev/null xf - -C %s", escaped, tar, tempdir); |
michael@93 | 26 | if (!strcasecmp(ending, ".tar")) |
michael@93 | 27 | tmp = g_strdup_printf("%s >/dev/null xf \"%s\" -C %s", tar, escaped, tempdir); |
michael@93 | 28 |