Select the types of activity you want to include in your feed.
Remove gnumake; the preffered way will be to install it from Apple's .pkg along with other tools
Integrate darling-dmg, add hdiutil
Add fake sudo and sw_vers
Add darling-installer submodule (not working yet)
···11+#!/bin/sh
22+#
33+# This file is part of Darling.
44+#
55+# Copyright (C) 2015 Lubos Dolezel
66+#
77+# Darling is free software: you can redistribute it and/or modify
88+# it under the terms of the GNU General Public License as published by
99+# the Free Software Foundation, either version 3 of the License, or
1010+# (at your option) any later version.
1111+#
1212+# Darling is distributed in the hope that it will be useful,
1313+# but WITHOUT ANY WARRANTY; without even the implied warranty of
1414+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1515+# GNU General Public License for more details.
1616+#
1717+# You should have received a copy of the GNU General Public License
1818+# along with Darling. If not, see <http://www.gnu.org/licenses/>.
1919+#
2020+2121+if [ $# -lt 1 ]; then
2222+ >&2 echo "This is Darling fake sudo."
2323+ >&2 echo "Processes will think they run as UID 0, but Linux kernel will still see your original UID."
2424+ >&2 echo "The purpose is to convince some tools that they can write into /."
2525+2626+ exit 1
2727+fi
2828+2929+export __FAKE_SETUID_ROOT=1
3030+exec "${@:1}"
+85
src/tools/sw_vers.c
···11+/*
22+ * Copyright (c) 2005 Finlay Dobbie
33+ * All rights reserved.
44+ *
55+ * Redistribution and use in source and binary forms, with or without
66+ * modification, are permitted provided that the following conditions
77+ * are met:
88+ * 1. Redistributions of source code must retain the above copyright
99+ * notice, this list of conditions and the following disclaimer.
1010+ * 2. Redistributions in binary form must reproduce the above copyright
1111+ * notice, this list of conditions and the following disclaimer in the
1212+ * documentation and/or other materials provided with the distribution.
1313+ * 3. Neither the name of Finlay Dobbie nor the names of his contributors
1414+ * may be used to endorse or promote products derived from this software
1515+ * without specific prior written permission.
1616+ *
1717+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1818+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1919+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2020+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
2121+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2222+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2323+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2424+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2525+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2626+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2727+ * POSSIBILITY OF SUCH DAMAGE.
2828+ */
2929+3030+#include <CoreFoundation/CoreFoundation.h>
3131+#include <CoreFoundation/CFPriv.h>
3232+3333+void usage(char *progname) {
3434+ fprintf(stderr, "Usage: %s [-productName|-productVersion|-buildVersion]\n", progname);
3535+ exit(1);
3636+}
3737+3838+int main(int argc, char *argv[]) {
3939+ CFDictionaryRef dict= NULL;
4040+ CFStringRef str = NULL;
4141+ char cstr[256];
4242+4343+ dict = _CFCopyServerVersionDictionary();
4444+ if (dict == NULL)
4545+ dict = _CFCopySystemVersionDictionary();
4646+ if (dict == NULL)
4747+ exit(1);
4848+4949+ if (argc == 2) {
5050+ if (!strcmp(argv[1], "-productName"))
5151+ str = CFDictionaryGetValue(dict, _kCFSystemVersionProductNameKey);
5252+ else if (!strcmp(argv[1], "-productVersion")) {
5353+ /* On Darwin, we set MacOSXProductVersion to the corresponding OS X release.
5454+ This is for compatibility with scripts that set MACOSX_DEPLOYMENT_TARGET
5555+ based on sw_vers -productVersion */
5656+ str = CFDictionaryGetValue(dict, CFSTR("MacOSXProductVersion"));
5757+ if (str == NULL)
5858+ str = CFDictionaryGetValue(dict, _kCFSystemVersionProductVersionKey);
5959+ }
6060+ else if (!strcmp(argv[1], "-buildVersion"))
6161+ str = CFDictionaryGetValue(dict, _kCFSystemVersionBuildVersionKey);
6262+ else
6363+ usage(argv[0]);
6464+ CFRetain(str);
6565+ } else if (argc == 1) {
6666+ str = CFStringCreateWithFormat(NULL, NULL,
6767+ CFSTR("ProductName: %@\n"
6868+ "ProductVersion: %@\n"
6969+ "BuildVersion: %@"),
7070+ CFDictionaryGetValue(dict, _kCFSystemVersionProductNameKey),
7171+ CFDictionaryGetValue(dict, _kCFSystemVersionProductVersionKey),
7272+ CFDictionaryGetValue(dict, _kCFSystemVersionBuildVersionKey));
7373+ } else {
7474+ usage(argv[0]);
7575+ }
7676+7777+ if (!CFStringGetCString(str, cstr, sizeof(cstr), CFStringGetSystemEncoding()))
7878+ exit(1);
7979+8080+ printf("%s\n", cstr);
8181+8282+ CFRelease(str);
8383+ CFRelease(dict);
8484+ return 0;
8585+}