this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add a fake `spctl` command

+30 -1
+2 -1
src/tools/CMakeLists.txt
··· 6 6 add_darling_executable(open open.m) 7 7 add_darling_executable(dsmemberutil dsmemberutil.c) 8 8 add_darling_executable(softwareupdate softwareupdate.c) 9 + add_darling_executable(spctl spctl.c) 9 10 10 11 install(TARGETS sw_vers sudo codesign dsmemberutil open DESTINATION libexec/darling/usr/bin) 11 - install(TARGETS softwareupdate DESTINATION libexec/darling/usr/sbin) 12 + install(TARGETS softwareupdate spctl DESTINATION libexec/darling/usr/sbin) 12 13 13 14 target_link_libraries(sw_vers CoreFoundation) 14 15 target_link_libraries(open CoreServices Foundation AppKit)
+28
src/tools/spctl.c
··· 1 + /* 2 + * This file is part of Darling. 3 + * 4 + * Copyright (C) 2022 Darling developers 5 + * 6 + * Darling is free software: you can redistribute it and/or modify 7 + * it under the terms of the GNU General Public License as published by 8 + * the Free Software Foundation, either version 3 of the License, or 9 + * (at your option) any later version. 10 + * 11 + * Darling is distributed in the hope that it will be useful, 12 + * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + * GNU General Public License for more details. 15 + * 16 + * You should have received a copy of the GNU General Public License 17 + * along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #include <stdio.h> 21 + 22 + int main(int argc, char** argv) { 23 + if (argc == 0) { 24 + printf("This is just a stub; Darling does not have SIP (System Integrity Protection).\n"); 25 + } 26 + 27 + return 0; 28 + };