]> Joshua Wise's Git repositories - ambien.git/commitdiff
initial import
authorJoshua Wise <joshua@escape.wv.cc.cmu.edu>
Wed, 9 Dec 2009 07:52:08 +0000 (02:52 -0500)
committerJoshua Wise <joshua@escape.wv.cc.cmu.edu>
Wed, 9 Dec 2009 07:52:08 +0000 (02:52 -0500)
Ambien.cpp [new file with mode: 0644]
Ambien.h [new file with mode: 0644]
Ambien.xcodeproj/project.pbxproj [new file with mode: 0644]
English.lproj/InfoPlist.strings [new file with mode: 0644]
Info.plist [new file with mode: 0644]
Installer Package.pmdoc/01ambien-contents.xml [new file with mode: 0644]
Installer Package.pmdoc/01ambien.xml [new file with mode: 0644]
Installer Package.pmdoc/index.xml [new file with mode: 0644]

diff --git a/Ambien.cpp b/Ambien.cpp
new file mode 100644 (file)
index 0000000..f6d7710
--- /dev/null
@@ -0,0 +1,132 @@
+/*
+    File:               Ambien.h
+    Program:            Ambien
+    Original author:    Michael Roßberg
+                        mick@binaervarianz.de
+    Rewritten by:       Joshua Wise
+                        jwise@andrew.cmu.edu
+    Description:        Ambien is a kernel extension to disable sleep-on-clamshell.
+    Ambien is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    Ambien is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with Ambien; if not, write to the Free Software
+    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+*/
+
+#include "Ambien.h"
+#include <IOKit/IOLib.h>
+#include <IOKit/pwr_mgt/RootDomain.h>
+#include <IOKit/pwr_mgt/IOPM.h>
+
+#define super IOService
+
+OSDefineMetaClassAndStructors(Ambien, IOService);
+
+bool Ambien::init(OSDictionary* properties)
+{
+       IOLog("Ambien.kext for Mac OS X Leopard, by Joshua Wise\n");
+       
+       _workLoop = 0;
+       if (super::init(properties) == false) {
+               IOLog("Ambien::init: super::init failed\n");
+               return false;
+       }
+
+       return true;
+}
+
+bool Ambien::start(IOService* provider)
+{
+       static IOPMPowerState states[] =
+       {
+               {1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
+               {1, kIOPMDeviceUsable, kIOPMPowerOn, kIOPMPowerOn, 0, 0, 0, 0, 0, 0, 0, 0}
+       };
+       
+       if (!super::start(provider)) {
+               IOLog("Ambien::start: super::start failed\n");
+               return false;
+       }
+       
+       PMinit();
+       provider->joinPMtree(this);
+       if (registerPowerDriver(this, states, 2) != IOPMNoErr)
+       {
+               IOLog("Ambien::start: registerPowerDriver returned error -- uh-oh!\n");
+               return false;
+       }
+
+       return true;
+}
+
+void Ambien::stop(IOService* provider)
+{
+       if (_workLoop)
+       {
+               _workLoop->release();
+               _workLoop = 0;
+       }
+       
+       PMstop();
+       super::stop(provider);
+       IOLog("Ambien: your sleep schedule is back to you!\n");
+}
+
+IOReturn Ambien::setPowerState(unsigned long which, IOService *dev)
+{
+       if (which == 0)
+       {
+               IOLog("Ambien::setPowerState: system going to sleep\n");
+       } else {
+               IOLog("Ambien::setPowerState: system is awake\n");
+       }
+       
+       return kIOPMAckImplied;
+}
+
+void Ambien::free()
+{
+       super::free();
+       return;
+}
+
+IOWorkLoop* Ambien::getWorkLoop()
+{
+       if (!_workLoop)
+               _workLoop = IOWorkLoop::workLoop();
+               
+       return _workLoop;
+}
+
+IOReturn Ambien::message(UInt32 type, IOService *provider, void *arg)
+{
+       unsigned int argi = (unsigned int)arg;
+       
+       if (type == kIOPMMessageClamshellStateChange)
+       {
+               IOPMrootDomain *root = NULL;
+               
+               IOLog("Ambien::message: kIOPMMessageClamshellStateChange: lid is %s, sleep bit is %d (arg %08x)\n",
+                     (argi & kClamshellStateBit) ? "closed" : "open",
+                     !!(argi & kClamshellSleepBit), argi);
+               
+               root = getPMRootDomain();
+               if (!root)
+               {
+                       IOLog("Ambien::message: failed to get PM root?\n");
+                       return 0;
+               }
+               root->receivePowerNotification((argi & kClamshellStateBit) ? kIOPMPreventSleep : kIOPMAllowSleep);
+       } else
+               IOLog("Ambien::message: unknown type %08x (so I won't worry about it)\n", (unsigned int)type);
+       return super::message(type, provider, arg);
+}
diff --git a/Ambien.h b/Ambien.h
new file mode 100644 (file)
index 0000000..2c83bfd
--- /dev/null
+++ b/Ambien.h
@@ -0,0 +1,48 @@
+/*
+    File:               Ambien.h
+    Program:            Ambien
+    Original author:    Michael Roßberg
+                        mick@binaervarianz.de
+    Rewritten by:       Joshua Wise
+                       jwise@andrew.cmu.edu
+    Description:        Ambien is a kernel extension to disable sleep-on-clamshell.
+    Ambien is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    Ambien is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with Ambien; if not, write to the Free Software
+    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+*/
+
+#include <IOKit/IOService.h>
+#include <IOKit/IOWorkLoop.h>
+#include <IOKit/IONotifier.h>
+
+class Ambien : public IOService {
+    OSDeclareDefaultStructors(Ambien);
+
+public:
+    // driver startup and shutdown
+    virtual bool init(OSDictionary * = 0);
+    virtual bool start(IOService* provider);
+    virtual void stop(IOService* provider);
+    virtual void free();
+    
+    virtual IOWorkLoop* getWorkLoop();
+       virtual IOReturn message(UInt32 type, IOService *provider, void *arg);
+       virtual IOReturn setPowerState(unsigned long which, IOService *dev);
+
+private:
+
+    IOWorkLoop*             _workLoop;
+    IONotifier *notifier;
+
+};
\ No newline at end of file
diff --git a/Ambien.xcodeproj/project.pbxproj b/Ambien.xcodeproj/project.pbxproj
new file mode 100644 (file)
index 0000000..cbce367
--- /dev/null
@@ -0,0 +1,322 @@
+// !$*UTF8*$!
+{
+       archiveVersion = 1;
+       classes = {
+       };
+       objectVersion = 42;
+       objects = {
+
+/* Begin PBXBuildFile section */
+               42E2EB6D1004514E00EC9679 /* Ambien.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A224C3EFF42367911CA2CB7 /* Ambien.h */; };
+               42E2EB6F1004514E00EC9679 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C167DFE841241C02AAC07 /* InfoPlist.strings */; };
+               42E2EB711004514E00EC9679 /* Ambien.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A224C3FFF42367911CA2CB7 /* Ambien.cpp */; settings = {ATTRIBUTES = (); }; };
+/* End PBXBuildFile section */
+
+/* Begin PBXFileReference section */
+               089C167EFE841241C02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = "<group>"; };
+               1A224C3EFF42367911CA2CB7 /* Ambien.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Ambien.h; sourceTree = "<group>"; };
+               1A224C3FFF42367911CA2CB7 /* Ambien.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Ambien.cpp; sourceTree = "<group>"; };
+               423F076210CF8E2B00F3AA10 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
+               42E2EB7A1004514E00EC9679 /* Ambien.kext */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Ambien.kext; sourceTree = BUILT_PRODUCTS_DIR; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+               42E2EB721004514E00EC9679 /* Frameworks */ = {
+                       isa = PBXFrameworksBuildPhase;
+                       buildActionMask = 2147483647;
+                       files = (
+                       );
+                       runOnlyForDeploymentPostprocessing = 0;
+               };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+               089C166AFE841209C02AAC07 /* Insomnia */ = {
+                       isa = PBXGroup;
+                       children = (
+                               423F076210CF8E2B00F3AA10 /* Info.plist */,
+                               247142CAFF3F8F9811CA285C /* Source */,
+                               089C167CFE841241C02AAC07 /* Resources */,
+                               19C28FB6FE9D52B211CA2CBB /* Products */,
+                       );
+                       name = Insomnia;
+                       sourceTree = "<group>";
+               };
+               089C167CFE841241C02AAC07 /* Resources */ = {
+                       isa = PBXGroup;
+                       children = (
+                               089C167DFE841241C02AAC07 /* InfoPlist.strings */,
+                       );
+                       name = Resources;
+                       sourceTree = "<group>";
+               };
+               19C28FB6FE9D52B211CA2CBB /* Products */ = {
+                       isa = PBXGroup;
+                       children = (
+                               42E2EB7A1004514E00EC9679 /* Ambien.kext */,
+                       );
+                       name = Products;
+                       sourceTree = "<group>";
+               };
+               247142CAFF3F8F9811CA285C /* Source */ = {
+                       isa = PBXGroup;
+                       children = (
+                               1A224C3EFF42367911CA2CB7 /* Ambien.h */,
+                               1A224C3FFF42367911CA2CB7 /* Ambien.cpp */,
+                       );
+                       name = Source;
+                       sourceTree = "<group>";
+               };
+/* End PBXGroup section */
+
+/* Begin PBXHeadersBuildPhase section */
+               42E2EB6C1004514E00EC9679 /* Headers */ = {
+                       isa = PBXHeadersBuildPhase;
+                       buildActionMask = 2147483647;
+                       files = (
+                               42E2EB6D1004514E00EC9679 /* Ambien.h in Headers */,
+                       );
+                       runOnlyForDeploymentPostprocessing = 0;
+               };
+/* End PBXHeadersBuildPhase section */
+
+/* Begin PBXNativeTarget section */
+               42E2EB6A1004514E00EC9679 /* Ambien kext */ = {
+                       isa = PBXNativeTarget;
+                       buildConfigurationList = 42E2EB751004514E00EC9679 /* Build configuration list for PBXNativeTarget "Ambien kext" */;
+                       buildPhases = (
+                               42E2EB6B1004514E00EC9679 /* ShellScript */,
+                               42E2EB6C1004514E00EC9679 /* Headers */,
+                               42E2EB6E1004514E00EC9679 /* Resources */,
+                               42E2EB701004514E00EC9679 /* Sources */,
+                               42E2EB721004514E00EC9679 /* Frameworks */,
+                               42E2EB731004514E00EC9679 /* Rez */,
+                               42E2EB741004514E00EC9679 /* ShellScript */,
+                       );
+                       buildRules = (
+                       );
+                       dependencies = (
+                       );
+                       name = "Ambien kext";
+                       productInstallPath = "$(SYSTEM_LIBRARY_DIR)/Extensions";
+                       productName = nosleep;
+                       productReference = 42E2EB7A1004514E00EC9679 /* Ambien.kext */;
+                       productType = "com.apple.product-type.kernel-extension.iokit";
+               };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+               089C1669FE841209C02AAC07 /* Project object */ = {
+                       isa = PBXProject;
+                       buildConfigurationList = 42E2EB58100450B500EC9679 /* Build configuration list for PBXProject "Ambien" */;
+                       compatibilityVersion = "Xcode 2.4";
+                       hasScannedForEncodings = 1;
+                       mainGroup = 089C166AFE841209C02AAC07 /* Insomnia */;
+                       projectDirPath = "";
+                       projectRoot = "";
+                       targets = (
+                               42E2EB6A1004514E00EC9679 /* Ambien kext */,
+                       );
+               };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+               42E2EB6E1004514E00EC9679 /* Resources */ = {
+                       isa = PBXResourcesBuildPhase;
+                       buildActionMask = 2147483647;
+                       files = (
+                               42E2EB6F1004514E00EC9679 /* InfoPlist.strings in Resources */,
+                       );
+                       runOnlyForDeploymentPostprocessing = 0;
+               };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXRezBuildPhase section */
+               42E2EB731004514E00EC9679 /* Rez */ = {
+                       isa = PBXRezBuildPhase;
+                       buildActionMask = 2147483647;
+                       files = (
+                       );
+                       runOnlyForDeploymentPostprocessing = 0;
+               };
+/* End PBXRezBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+               42E2EB6B1004514E00EC9679 /* ShellScript */ = {
+                       isa = PBXShellScriptBuildPhase;
+                       buildActionMask = 2147483647;
+                       files = (
+                       );
+                       runOnlyForDeploymentPostprocessing = 0;
+                       shellPath = /bin/sh;
+                       shellScript = "script=\"${SYSTEM_DEVELOPER_DIR}/ProjectBuilder Extras/Kernel Extension Support/KEXTPreprocess\";\nif [ -x \"$script\" ]; then\n    . \"$script\"\nfi";
+               };
+               42E2EB741004514E00EC9679 /* ShellScript */ = {
+                       isa = PBXShellScriptBuildPhase;
+                       buildActionMask = 2147483647;
+                       files = (
+                       );
+                       runOnlyForDeploymentPostprocessing = 0;
+                       shellPath = /bin/sh;
+                       shellScript = "script=\"${SYSTEM_DEVELOPER_DIR}/ProjectBuilder Extras/Kernel Extension Support/KEXTPostprocess\";\nif [ -x \"$script\" ]; then\n    . \"$script\"\nfi";
+               };
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+               42E2EB701004514E00EC9679 /* Sources */ = {
+                       isa = PBXSourcesBuildPhase;
+                       buildActionMask = 2147483647;
+                       files = (
+                               42E2EB711004514E00EC9679 /* Ambien.cpp in Sources */,
+                       );
+                       runOnlyForDeploymentPostprocessing = 0;
+               };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+               089C167DFE841241C02AAC07 /* InfoPlist.strings */ = {
+                       isa = PBXVariantGroup;
+                       children = (
+                               089C167EFE841241C02AAC07 /* English */,
+                       );
+                       name = InfoPlist.strings;
+                       sourceTree = "<group>";
+               };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+               42E2EB52100450B500EC9679 /* Development */ = {
+                       isa = XCBuildConfiguration;
+                       buildSettings = {
+                       };
+                       name = Development;
+               };
+               42E2EB53100450B500EC9679 /* Deployment */ = {
+                       isa = XCBuildConfiguration;
+                       buildSettings = {
+                       };
+                       name = Deployment;
+               };
+               42E2EB54100450B500EC9679 /* Default */ = {
+                       isa = XCBuildConfiguration;
+                       buildSettings = {
+                       };
+                       name = Default;
+               };
+               42E2EB761004514E00EC9679 /* Development */ = {
+                       isa = XCBuildConfiguration;
+                       buildSettings = {
+                               COPY_PHASE_STRIP = NO;
+                               FRAMEWORK_SEARCH_PATHS = "";
+                               GCC_DYNAMIC_NO_PIC = NO;
+                               GCC_ENABLE_FIX_AND_CONTINUE = YES;
+                               GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
+                               GCC_OPTIMIZATION_LEVEL = 0;
+                               GCC_SYMBOLS_PRIVATE_EXTERN = NO;
+                               HEADER_SEARCH_PATHS = "";
+                               INFOPLIST_FILE = Info.plist;
+                               INSTALL_PATH = "$(SYSTEM_LIBRARY_DIR)/Extensions";
+                               KERNEL_MODULE = YES;
+                               LIBRARY_SEARCH_PATHS = "";
+                               MODULE_IOKIT = YES;
+                               MODULE_NAME = com.joshuawise.kexts.Insomnia;
+                               MODULE_VERSION = 1.0.0d1;
+                               OTHER_CFLAGS = "";
+                               OTHER_LDFLAGS = "";
+                               OTHER_REZFLAGS = "";
+                               PRODUCT_NAME = Ambien;
+                               SECTORDER_FLAGS = "";
+                               WARNING_CFLAGS = (
+                                       "-Wmost",
+                                       "-Wno-four-char-constants",
+                                       "-Wno-unknown-pragmas",
+                               );
+                               WRAPPER_EXTENSION = kext;
+                               ZERO_LINK = YES;
+                       };
+                       name = Development;
+               };
+               42E2EB771004514E00EC9679 /* Deployment */ = {
+                       isa = XCBuildConfiguration;
+                       buildSettings = {
+                               COPY_PHASE_STRIP = YES;
+                               FRAMEWORK_SEARCH_PATHS = "";
+                               GCC_ENABLE_FIX_AND_CONTINUE = NO;
+                               GCC_SYMBOLS_PRIVATE_EXTERN = NO;
+                               HEADER_SEARCH_PATHS = "";
+                               INFOPLIST_FILE = Info.plist;
+                               INSTALL_PATH = "$(SYSTEM_LIBRARY_DIR)/Extensions";
+                               KERNEL_MODULE = YES;
+                               LIBRARY_SEARCH_PATHS = "";
+                               MODULE_IOKIT = YES;
+                               MODULE_NAME = org.binaervarianz.driver.insomnia;
+                               MODULE_VERSION = 1.0.0d1;
+                               OTHER_CFLAGS = "";
+                               OTHER_LDFLAGS = "";
+                               OTHER_REZFLAGS = "";
+                               PRODUCT_NAME = Insomnia;
+                               SECTORDER_FLAGS = "";
+                               WARNING_CFLAGS = (
+                                       "-Wmost",
+                                       "-Wno-four-char-constants",
+                                       "-Wno-unknown-pragmas",
+                               );
+                               WRAPPER_EXTENSION = kext;
+                               ZERO_LINK = NO;
+                       };
+                       name = Deployment;
+               };
+               42E2EB781004514E00EC9679 /* Default */ = {
+                       isa = XCBuildConfiguration;
+                       buildSettings = {
+                               FRAMEWORK_SEARCH_PATHS = "";
+                               GCC_SYMBOLS_PRIVATE_EXTERN = NO;
+                               HEADER_SEARCH_PATHS = "";
+                               INFOPLIST_FILE = Info.plist;
+                               INSTALL_PATH = "$(SYSTEM_LIBRARY_DIR)/Extensions";
+                               KERNEL_MODULE = YES;
+                               LIBRARY_SEARCH_PATHS = "";
+                               MODULE_IOKIT = YES;
+                               MODULE_NAME = org.binaervarianz.driver.insomnia;
+                               MODULE_VERSION = 1.0.0d1;
+                               OTHER_CFLAGS = "";
+                               OTHER_LDFLAGS = "";
+                               OTHER_REZFLAGS = "";
+                               PRODUCT_NAME = Insomnia;
+                               SECTORDER_FLAGS = "";
+                               WARNING_CFLAGS = (
+                                       "-Wmost",
+                                       "-Wno-four-char-constants",
+                                       "-Wno-unknown-pragmas",
+                               );
+                               WRAPPER_EXTENSION = kext;
+                       };
+                       name = Default;
+               };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+               42E2EB58100450B500EC9679 /* Build configuration list for PBXProject "Ambien" */ = {
+                       isa = XCConfigurationList;
+                       buildConfigurations = (
+                               42E2EB52100450B500EC9679 /* Development */,
+                               42E2EB53100450B500EC9679 /* Deployment */,
+                               42E2EB54100450B500EC9679 /* Default */,
+                       );
+                       defaultConfigurationIsVisible = 0;
+                       defaultConfigurationName = Default;
+               };
+               42E2EB751004514E00EC9679 /* Build configuration list for PBXNativeTarget "Ambien kext" */ = {
+                       isa = XCConfigurationList;
+                       buildConfigurations = (
+                               42E2EB761004514E00EC9679 /* Development */,
+                               42E2EB771004514E00EC9679 /* Deployment */,
+                               42E2EB781004514E00EC9679 /* Default */,
+                       );
+                       defaultConfigurationIsVisible = 0;
+                       defaultConfigurationName = Default;
+               };
+/* End XCConfigurationList section */
+       };
+       rootObject = 089C1669FE841209C02AAC07 /* Project object */;
+}
diff --git a/English.lproj/InfoPlist.strings b/English.lproj/InfoPlist.strings
new file mode 100644 (file)
index 0000000..5ff46ed
Binary files /dev/null and b/English.lproj/InfoPlist.strings differ
diff --git a/Info.plist b/Info.plist
new file mode 100644 (file)
index 0000000..ee88f09
--- /dev/null
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+       <key>CFBundleDevelopmentRegion</key>
+       <string>English</string>
+       <key>CFBundleExecutable</key>
+       <string>Ambien</string>
+       <key>CFBundleIconFile</key>
+       <string></string>
+       <key>CFBundleIdentifier</key>
+       <string>com.joshuawise.kexts.Ambien</string>
+       <key>CFBundleInfoDictionaryVersion</key>
+       <string>6.0</string>
+       <key>CFBundlePackageType</key>
+       <string>KEXT</string>
+       <key>CFBundleSignature</key>
+       <string>????</string>
+       <key>CFBundleVersion</key>
+       <string>0.9.0</string>
+       <key>IOKitPersonalities</key>
+       <dict>
+               <key>Ambien</key>
+               <dict>
+                       <key>CFBundleIdentifier</key>
+                       <string>com.joshuawise.kexts.Ambien</string>
+                       <key>IOClass</key>
+                       <string>Ambien</string>
+                       <key>IOMatchCategory</key>
+                       <string>IODefaultMatchCategory</string>
+                       <key>IONameMatch</key>
+                       <string>IOPMrootDomain</string>
+                       <key>IOProviderClass</key>
+                       <string>IOService</string>
+               </dict>
+       </dict>
+       <key>OSBundleLibraries</key>
+       <dict>
+               <key>com.apple.kernel.iokit</key>
+               <string>6.0</string>
+       </dict>
+</dict>
+</plist>
diff --git a/Installer Package.pmdoc/01ambien-contents.xml b/Installer Package.pmdoc/01ambien-contents.xml
new file mode 100644 (file)
index 0000000..8ee7a8b
--- /dev/null
@@ -0,0 +1 @@
+<pkg-contents spec="1.12"><f n="Ambien.kext" o="root" g="wheel" p="16877" pt="/Users/joshua/Insomnia/build/Development/Ambien.kext" m="true" t="file"><f n="Contents" o="root" g="wheel" p="16877"><f n="Info.plist" o="root" g="wheel" p="33188"/><f n="MacOS" o="root" g="wheel" p="16877"><f n="Ambien" o="root" g="wheel" p="33188"/></f><f n="Resources" o="root" g="wheel" p="16877"><f n="English.lproj" o="root" g="wheel" p="16877"><f n="InfoPlist.strings" o="root" g="wheel" p="33188"/></f></f></f><mod>owner</mod></f></pkg-contents>
\ No newline at end of file
diff --git a/Installer Package.pmdoc/01ambien.xml b/Installer Package.pmdoc/01ambien.xml
new file mode 100644 (file)
index 0000000..29c0707
--- /dev/null
@@ -0,0 +1 @@
+<pkgref spec="1.12" uuid="E7CC0D26-7970-4997-A69F-B967DF4D68E6"><config><identifier>com.joshuawise.ambien.ambien.pkg</identifier><version>1</version><description/><post-install type="none"/><requireAuthorization/><installFrom includeRoot="true">/Users/joshua/Insomnia/build/Development/Ambien.kext</installFrom><installTo>/System/Library/Extensions</installTo><flags><followSymbolicLinks/></flags><packageStore type="internal"/><mod>parent</mod><mod>requireAuthorization</mod><mod>postInstall</mod><mod>extraFiles</mod><mod>version</mod><mod>installTo</mod><mod>identifier</mod></config><contents><file-list>01ambien-contents.xml</file-list><component id="com.joshuawise.kexts.Ambien" path="/Users/joshua/Insomnia/build/Development/Ambien.kext" version="0.9.0"/><filter>/CVS$</filter><filter>/\.svn$</filter><filter>/\.cvsignore$</filter><filter>/\.cvspass$</filter><filter>/\.DS_Store$</filter></contents><extra-files/></pkgref>
\ No newline at end of file
diff --git a/Installer Package.pmdoc/index.xml b/Installer Package.pmdoc/index.xml
new file mode 100644 (file)
index 0000000..bb8f3e9
--- /dev/null
@@ -0,0 +1,13 @@
+<pkmkdoc spec="1.12"><properties><title>Ambien</title><build>/Users/joshua/Insomnia/Ambien.pkg</build><organization>com.joshuawise</organization><userSees ui="easy"/><min-target os="3"/><domain system="true"/></properties><distribution><versions min-spec="1.000000"/><scripts></scripts></distribution><description>Ambien is a kernel extension that prevents your MacBook from sleeping when the lid (or in Apple parlance, "clamshell") is closed.  You may still sleep the machine by going to the Apple menu and clicking 'sleep' (or however you would normally put the machine to sleep), as long as the lid is open.  (If the system is already asleep, closing the lid will not wake it.)</description><contents><choice title="Ambien" id="choice0" starts_selected="true" starts_enabled="true" starts_hidden="false"><pkgref id="com.joshuawise.ambien.ambien.pkg"/></choice><choice title="Ambien Preflight" id="choice1" starts_selected="true" starts_enabled="true" starts_hidden="true"/><choice title="Ambien Postflight" id="choice2" starts_selected="true" starts_enabled="true" starts_hidden="true"/></contents><resources bg-scale="tofit" bg-align="topleft"><locale lang="en"><resource mod="true" type="background">/Users/joshua/bg.png</resource><resource mime-type="text/rtf" kind="embedded" type="welcome"><![CDATA[{\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf460
+{\fonttbl\f0\fnil\fcharset0 LucidaGrande;}
+{\colortbl;\red255\green255\blue255;}
+\pard\tx680\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\li720\ql\qnatural\pardirnatural
+
+\f0\fs26 \cf0 \
+\
+\pard\tx680\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\li720\ri1440\ql\qnatural\pardirnatural
+
+\b Ambien
+\b0  is a kernel extension that prevents your MacBook from sleeping when the lid (or in Apple parlance, "clamshell") is closed.  You may still sleep the machine by going to the Apple menu and clicking 'sleep' (or however you would normally put the machine to sleep), as long as the lid is open.  (If the system is already asleep, of course, closing the lid will not wake it.)\
+\
+This installer will simply place the kernel extension in your Extensions folder; if you find the need to uninstall it, simply drag "Ambien.kext" from the Extensions folder to the Trash, and restart your Mac.}]]></resource></locale></resources><flags/><preinstall><action id="com.apple.packagemaker.actions.unloadkext"><value>com.joshuawise.kexts.Ambien</value><type>absolute-path</type></action></preinstall><postinstall><action id="com.apple.packagemaker.actions.loadkext"><value>com.joshuawise.kexts.Ambien</value><type>component</type></action></postinstall><extra-files/><item type="file">01ambien.xml</item><mod>preinstallActions.actions</mod><mod>properties.systemDomain</mod><mod>properties.anywhereDomain</mod><mod>properties.customizeOption</mod><mod>extraFiles</mod><mod>properties.title</mod><mod>description</mod><mod>postinstallActions.actions</mod></pkmkdoc>
\ No newline at end of file
This page took 0.04434 seconds and 4 git commands to generate.