├── Makefile_template ├── README.md ├── build.bash ├── builds ├── installpkg_v0.1.3.dmg ├── installpkg_v0.1.4.dmg ├── installpkg_v0.1.5.dmg ├── installpkg_v0.1.6.dmg ├── installpkg_v0.1.7.dmg ├── installpkg_v0.1.8.dmg ├── installpkg_v0.1.9.dmg ├── installpkg_v0.2.0.dmg ├── installpkg_v0.2.1.dmg ├── installpkg_v0.2.2.dmg ├── installpkg_v0.2.3.dmg ├── installpkg_v0.2.4.dmg ├── installpkg_v0.2.5.dmg ├── installpkg_v0.2.6.dmg ├── installpkg_v0.2.7.dmg ├── installpkg_v0.2.8.dmg ├── installpkg_v0.2.9.dmg ├── installpkg_v0.3.0.dmg ├── installpkg_v0.3.1.dmg └── installpkg_v0.3.2.dmg ├── install_components ├── InstallPKG-Uninstall.bash ├── extras │ ├── InstallPKG_all_packages │ │ ├── InstallPKG_all_packages.app │ │ │ └── Contents │ │ │ │ ├── Info.plist │ │ │ │ ├── MacOS │ │ │ │ └── applet │ │ │ │ ├── PkgInfo │ │ │ │ └── Resources │ │ │ │ ├── Scripts │ │ │ │ └── main.scpt │ │ │ │ ├── applet.icns │ │ │ │ ├── applet.rsrc │ │ │ │ └── description.rtfd │ │ │ │ └── TXT.rtf │ │ └── ReadMe.txt │ └── Rudix • Packages • GNU Wget.webloc ├── installpkg ├── installpkg.1 └── resources │ ├── License.rtf │ ├── ReadMe.rtfd │ ├── LucidLogo_nodrop.pdf │ └── TXT.rtf │ ├── Welcome.rtfd │ ├── LucidLogo_nodrop.pdf │ ├── LucidLogo_nodrop.pdf.tiff │ └── TXT.rtf │ └── background.pdf ├── installpkg_latest.dmg └── postflight /Makefile_template: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2011 Henri Shustak 3 | # All rights reserved 4 | # 5 | # Lucid Information Systems 6 | # http://www.lucidsystems.org 7 | # 8 | # Licensed under the GNU GPL, Version 3.0 or later 9 | # 10 | # Build an installer for InstallPKG using luggage. 11 | 12 | include /usr/local/share/luggage/luggage.make 13 | 14 | RESOURCE_D=install_components/resources 15 | 16 | # InstallPKG package version 17 | PACKAGE_VERSION=XXXXXXXXX 18 | PACKAGE_NAME=InstallPKG 19 | 20 | # Paths to various items and tools 21 | PACKAGEMAKER=/Developer/usr/bin/packagemaker 22 | TAR=/usr/bin/tar 23 | CP=/bin/cp 24 | INSTALL=/usr/bin/install 25 | DITTO=/usr/bin/ditto 26 | 27 | 28 | TITLE=InstallPKG 29 | REVERSE_DOMAIN=org.lucidsystems 30 | PACKAGE_ID=${REVERSE_DOMAIN}.installpkg 31 | IFPkgFlagBackgroundAlignment=bottomleft 32 | IFPkgFlagBackgroundScaling=tofit 33 | IFPkgFlagRelocatable=true 34 | IFPkgFlagRestartAction=None 35 | IFPkgFlagRootVolumeOnly=false 36 | IFPkgBuildDate=${BUILD_DATE} 37 | IFPkgFlagInstalledSize=102400 38 | 39 | PAYLOAD=\ 40 | pack-script-postflight \ 41 | pack-usr-local-share-man-man1 \ 42 | pack-usr-local-bin 43 | 44 | 45 | # man page installation 46 | 47 | prep-usr-local-share-man-man1: 48 | @sudo mkdir -p ${WORK_D}/usr/local/share/man/man1 49 | @sudo chown root:wheel ${WORK_D}/usr/local/share/man/man1 50 | @sudo chmod 755 ${WORK_D}/usr/local/share/man/man1 51 | 52 | pack-usr-local-share-man-man1: prep-usr-local-share-man-man1 53 | @sudo ${INSTALL} -m 755 -o root -g wheel install_components/installpkg.1 ${WORK_D}/usr/local/share/man/man1/installpkg.1 54 | 55 | 56 | # installpkg installation 57 | 58 | prep-usr-local-bin: 59 | @sudo mkdir -p ${WORK_D}/usr/local/bin 60 | @sudo chown root:wheel ${WORK_D}/usr/local/bin 61 | @sudo chmod 755 ${WORK_D}/usr/local/bin 62 | 63 | pack-usr-local-bin: prep-usr-local-bin 64 | @sudo ${INSTALL} -m 755 -o root -g wheel install_components/installpkg ${WORK_D}/usr/local/bin/installpkg 65 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # InstallPKG # 2 | 3 | [![download](http://lucid.systems/images/multi/download.png)](http://www.lucid.systems/download/installpkg) [![download](http://lucid.systems/images/multi/apple_package.png)](http://www.lucid.systems/download/installpkg) 4 | 5 | Download the latest version (a compiled package installer) via the following URL : 6 | http://www.lucid.systems/download/installpkg 7 | 8 | InstallPKG is a wrapper to the 'installer' tool on Mac OS X systems. The functionality is focused on allowing you to quickly and easily install multiple packages to the current boot drive. InstallPKG is released under the [GNU GPL licence][8]. 9 | 10 | ### ⚠️ macOS Sequoia (15) Note 11 | InstallPKG continues to work on macOS Sequoia. However, the legacy DMG installer currently displays an error message preventing installation. 12 | 13 | If you prefer to install manually while we work on a native Sequoia-compatible installer, run the following from your terminal: 14 | 15 | ```bash 16 | cd ~/Downloads 17 | wget "https://raw.githubusercontent.com/henri/installpkg/refs/heads/master/install_components/installpkg" 18 | chmod +x ~/Downloads/installpkg 19 | sudo mv ~/Downloads/installpkg /usr/local/bin/installpkg 20 | sudo chown root /usr/local/bin/installpkg 21 | ``` 22 | 23 | Once installed, usage remains the same: 24 | 25 | ```bash 26 | installpkg /path/to/packages/* 27 | ``` 28 | See this [issue](https://github.com/henri/installpkg/issues/9) for updates and thank you [danielraffel](https://github.com/danielraffel) for suggesting and providing temporary updates to the README file. 29 | 30 | 31 | Usage Examples 32 | -------------- 33 | Full usage information and usage examples are available once installed by typing : 34 | 35 | man installpkg 36 | 37 | Basic usage example to install all .pkg and .mpkg files found within a specific directory : 38 | 39 | installpkg /path/to/directory/of/packages/* 40 | 41 | Copies the "printers.dmg" from the volume called "usb", ejects the volume and then installs of all .mpkg and .pkg which are on the root level of the disk image volume : 42 | 43 | installpkg -hice /Volumes/usb/printers.dmg 44 | 45 | Download the printers.pkg from the specified URL and then commence with installation of that package. 46 | 47 | installpkg -u installpkg http://example.com/installers/printers.pkg 48 | 49 | Dependinceies 50 | ------------- 51 | A typical Mac OS X installation will have the dependinces. The exception to this rule is wget which is required with the -u flag. Support for the -u "install from URL" flag is provided by wget. If you do not have wget installed on your system and you would rather not install the developer tools, then [download wget for OS X as a package][3]. It is possible to install wget in a number of ways. A handful of installation approaches for wget on OS X are listed below : 52 | * [rudix (pre-built wget binary with install package for OS X)][3] (installation path : /usr/local/bin/wget) 53 | * [homebrew][2] 54 | * [macports][1] 55 | * [pkgsrc][7] 56 | 57 | Upgrade 58 | --------- 59 | Once installed (along with wget), you can use installpkg to update installpkg with the following command : 60 | 61 | installpkg -iuh http://lucid.systems/download/installpkg 62 | 63 | If you would prefer to not install wget on your system then download the latest version manually and then run the InstallPKG again to update to the latest version. 64 | Should you be using InstallPKG within your own installer(s) then download the latest version and then replace your older InstallPKG.pkg with the new InstallPKG.pkg. 65 | 66 | Rootless Mode 67 | ------------------- 68 | OS 10.11 (El Capitan) rootless note. Version 0.2.0 of installpkg is the first version which is compatible with 10.11 systems which have rootless mode enabled. 69 | * [Additional details regrding rootless mode on Mac OS 10.11][6] 70 | 71 | 72 | Building InstallPKG from source 73 | ----------------------------------- 74 | Use this GitHub project to build (requires [luggage][4]) the OS X package installer for InstallPKG or [download][5] the .dmg file which is also available from github. Pull requests to add useful features or bug fixes are welcome. 75 | 76 | 77 | Road Map : Additional Featutes : Not Yet Implimented 78 | ----------------------------------------------------- 79 | - Checksumming (prior to installation) 80 | - Signature verification (beyond what is built into Apples pkg format) 81 | 82 | Contributing 83 | ------------ 84 | Comments and suggestions regarding the InstallPKG project are very welcome. 85 | 86 | If you have an new feature or bug fix, fork the project create a new branch and then issue a pull request via GitHub. 87 | 88 | 89 | [1]: https://www.macports.org 90 | [2]: http://brew.sh 91 | [3]: http://rudix.org/packages/wget.html 92 | [4]: https://github.com/unixorn/luggage 93 | [5]: http://www.lucid.systems/download/installpkg 94 | [6]: https://georgegarside.com/blog/osx/package-incompatible-installer/ 95 | [7]: https://pkgsrc.joyent.com/install-on-osx/ 96 | [8]: https://www.gnu.org/copyleft/gpl-3.0.html 97 | 98 | 99 | -------------------------------------------------------------------------------- /build.bash: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Script to build OS X package install from installpkg core source code 4 | # 5 | # Copyright (C)2011 - Henri Shustak 6 | # Released under the GUN GPL v3 or later 7 | # Lucid Information Systems 8 | # http://www.lucidsystems.org 9 | # 10 | # v1.1 : initial release 11 | # 12 | 13 | 14 | # establish some varibles 15 | package_version="${1}" 16 | parent_directory=`dirname "${0}"` 17 | parent_direcotry_uid=`ls -nld "${parent_directory}" | awk '{print $3}'` 18 | input_package="${parent_directory}/InstallPKG.pkg" 19 | tmp_working_directory=`mktemp -d /tmp/build_installpkg_XXXXXXXX` 20 | tmp_installpkg_build_dir="${tmp_working_directory}/installpkg" 21 | disk_image_src_dir="${tmp_installpkg_build_dir}" 22 | output_package="${tmp_installpkg_build_dir}/InstallPKG.pkg" 23 | make_file_template_for_package_building="${parent_directory}/Makefile_template" 24 | make_file_for_package_building="${parent_directory}/Makefile" 25 | output_diskimage_name="installpkg" 26 | output_diskimage_path="${parent_directory}/builds/${output_diskimage_name}_v${package_version}.dmg" 27 | realitive_output_diskimage_path="./builds/${output_diskimage_name}_v${package_version}.dmg" 28 | clean_up_pkg_file="YES" 29 | export exit_value=0 30 | 31 | # list of additional files to copy to the disk image 32 | additional_files_to_include_within_diskimage=( "InstallPKG-Uninstall.bash" "extras" ) 33 | 34 | # functions 35 | function clean_exit { 36 | rm -rf "${tmp_working_directory}" 37 | rm -f "${make_file_for_package_building}" 38 | if [ -e "${input_package}" ] && [ "${clean_up_pkg_file}" == "YES" ] ; then 39 | rm -rf "${input_package}" 40 | fi 41 | exit ${exit_value} 42 | } 43 | 44 | # perform some basic checks 45 | # ------------------------- 46 | 47 | if [ "$1" == "" ] ; then 48 | echo "Usage : build.bash " 49 | echo " eg. : ./build.bash 0.0.9" 50 | exit -1 51 | fi 52 | 53 | # check we are running as root 54 | current_user=`whoami` 55 | if [ "${current_user}" != "root" ] ; then 56 | echo "Luggage requires superuser privileges to build the package." 57 | echo "Please run this script as root." 58 | export exit_value=-1 59 | clean_exit 60 | fi 61 | 62 | # check that luggage (maybe installed) - must be a better approach 63 | if ! [ -d /usr/local/share/luggage ] ; then 64 | echo "This script requires that you have luggage installed on your system." 65 | echo "Download luggage from : https://github.com/unixorn/luggage" 66 | echo "For more information : http://luggage.apesseekingknowledge.net" 67 | export exit_value=-1 68 | clean_exit 69 | fi 70 | 71 | # prepare to build the package the package 72 | cd "${parent_directory}" 73 | if [ $? != 0 ] ; then 74 | echo " ERROR : Unable to change working directory to the parent directory of this script." 75 | echo " Build has been canceled." 76 | export exit_value=-1 77 | clean_exit 78 | fi 79 | 80 | # if a previous package build exits (from previous run) then remove this 81 | if [ -e "${input_package}" ] ; then 82 | rm -R "${input_package}" 83 | if [ $? != 0 ] ; then 84 | echo "" 85 | echo " ERROR! : Failed during removal of previous package." 86 | echo "" 87 | export exit_value=-1 88 | clean_exit 89 | fi 90 | fi 91 | 92 | # perform check incase an existing disk image already exists. 93 | if [ -e "${output_diskimage_path}" ] ; then 94 | echo "" 95 | echo -n "Overwrite exiting disk image? [y/N] : " 96 | read instructions 97 | if [ "${instructions}" != "y" ] && [ "${instructions}" != "yes" ] && [ "${instructions}" != "YES" ] ; then 98 | echo "Disk image creation aborted." 99 | export exit_value=-1 100 | clean_exit 101 | fi 102 | echo -n "Removing exiting disk image..." 103 | rm $output_diskimage_path 104 | if [ $? != 0 ] ; then 105 | echo " ERROR!: Unable to remove the old disk image!" 106 | export exit_value=-1 107 | clean_exit 108 | fi 109 | echo "done." 110 | echo "" 111 | fi 112 | 113 | # remove any exisiting make file.... 114 | if [ -f "${make_file_for_package_building}" ] ; then 115 | rm "${make_file_for_package_building}" 116 | if [ $? != 0 ] ; then 117 | echo " ERROR! : Unable to remove package make file (do not worry template is not being removed)" 118 | export exit_value=-1 119 | clean_exit 120 | fi 121 | fi 122 | 123 | # create the make file from the template 124 | sed s/XXXXXXXXX/${package_version}/g "${make_file_template_for_package_building}" > "${make_file_for_package_building}" 125 | if [ $? != 0 ] ; then 126 | echo " ERROR!: InstallPGK setting version in make file failed!" 127 | export exit_value=-1 128 | clean_exit 129 | fi 130 | 131 | # make the package (using the luggage) 132 | # ------------------------- 133 | make pkg 134 | if [ $? != 0 ] ; then 135 | echo "" 136 | echo " ERROR! : Failed during new package creation." 137 | echo "" 138 | export exit_value=-1 139 | clean_exit 140 | fi 141 | 142 | echo "" 143 | echo "---------------------------------------------------------------------------------------" 144 | echo " Package for InstallPKG was successfully created from the InstallPKG core source code. " 145 | echo "---------------------------------------------------------------------------------------" 146 | echo "" 147 | 148 | 149 | # prepare for disk image building 150 | # -------------------------------- 151 | 152 | # allow anyone to look inside the tempoary building directory. 153 | chmod 755 "${tmp_working_directory}" 154 | 155 | # generate the dmg output directory 156 | mkdir -p "${tmp_installpkg_build_dir}" 157 | if [ $? != 0 ] ; then 158 | echo " ERROR!: Unable to generate the dmg output directory!" 159 | export exit_value=-1 160 | clean_exit 161 | fi 162 | 163 | # copy the package from the build directory into the output directory 164 | echo "Copying package...." 165 | cp -r "${input_package}" "${output_package}" 166 | if [ $? != 0 ] ; then 167 | echo " ERROR!: Unable to copy the install package to the dmg build directory!" 168 | export exit_value=-1 169 | clean_exit 170 | fi 171 | 172 | echo "Coping extras...." 173 | # copy each items listed in the settings from the install_components directory 174 | for to_copy in "${additional_files_to_include_within_diskimage[@]}" ; do 175 | cp -r "${parent_directory}/install_components/${to_copy}" "${tmp_installpkg_build_dir}/" 176 | if [ $? != 0 ] ; then 177 | echo " ERROR!: Unable to copy the additional component \" ${to_copy} \" to the dmg build directory!" 178 | export exit_value=-1 179 | clean_exit 180 | fi 181 | done 182 | 183 | # generate disk image from the temporary build directory 184 | echo -n "Building disk image" 185 | hdiutil create -srcfolder "${disk_image_src_dir}" -fs HFS+ -volname installpkg -uid 99 -gid 99 -mode 755 -partitionType Apple_HFS -format UDZO -copyuid root "${output_diskimage_path}" 186 | return_value=$? 187 | if [ $return_value -ne 0 ] ; then 188 | echo "ERROR! : Creating disk image!" 189 | echo "" 190 | exit $retrun_value 191 | fi 192 | 193 | # set the owner for this disk image to be the same as the parent directory 194 | chown ${parent_direcotry_uid} "${output_diskimage_path}" 195 | if [ $? != 0 ] ; then 196 | echo " ERROR!: Unable to set the ownership of the output .dmg" 197 | export exit_value=-1 198 | clean_exit 199 | fi 200 | 201 | # generate latest version link 202 | rm -f ./installpkg_latest.dmg 203 | ln -s "${realitive_output_diskimage_path}" ./installpkg_latest.dmg 204 | if [ $? != 0 ] ; then 205 | echo " ERROR!: while generating latest version link" 206 | export exit_value=-1 207 | clean_exit 208 | fi 209 | 210 | echo "" 211 | echo "---------------------------------------------------------------------------------------" 212 | echo " Output image \"installpkg_v${package_version}.dmg\" is ready for collection from the builds direcotry " 213 | echo "---------------------------------------------------------------------------------------" 214 | echo "" 215 | 216 | 217 | # exit cleanly 218 | # -------------------------------- 219 | export exit_value=0 220 | clean_exit 221 | 222 | 223 | -------------------------------------------------------------------------------- /builds/installpkg_v0.1.3.dmg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/builds/installpkg_v0.1.3.dmg -------------------------------------------------------------------------------- /builds/installpkg_v0.1.4.dmg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/builds/installpkg_v0.1.4.dmg -------------------------------------------------------------------------------- /builds/installpkg_v0.1.5.dmg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/builds/installpkg_v0.1.5.dmg -------------------------------------------------------------------------------- /builds/installpkg_v0.1.6.dmg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/builds/installpkg_v0.1.6.dmg -------------------------------------------------------------------------------- /builds/installpkg_v0.1.7.dmg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/builds/installpkg_v0.1.7.dmg -------------------------------------------------------------------------------- /builds/installpkg_v0.1.8.dmg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/builds/installpkg_v0.1.8.dmg -------------------------------------------------------------------------------- /builds/installpkg_v0.1.9.dmg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/builds/installpkg_v0.1.9.dmg -------------------------------------------------------------------------------- /builds/installpkg_v0.2.0.dmg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/builds/installpkg_v0.2.0.dmg -------------------------------------------------------------------------------- /builds/installpkg_v0.2.1.dmg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/builds/installpkg_v0.2.1.dmg -------------------------------------------------------------------------------- /builds/installpkg_v0.2.2.dmg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/builds/installpkg_v0.2.2.dmg -------------------------------------------------------------------------------- /builds/installpkg_v0.2.3.dmg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/builds/installpkg_v0.2.3.dmg -------------------------------------------------------------------------------- /builds/installpkg_v0.2.4.dmg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/builds/installpkg_v0.2.4.dmg -------------------------------------------------------------------------------- /builds/installpkg_v0.2.5.dmg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/builds/installpkg_v0.2.5.dmg -------------------------------------------------------------------------------- /builds/installpkg_v0.2.6.dmg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/builds/installpkg_v0.2.6.dmg -------------------------------------------------------------------------------- /builds/installpkg_v0.2.7.dmg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/builds/installpkg_v0.2.7.dmg -------------------------------------------------------------------------------- /builds/installpkg_v0.2.8.dmg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/builds/installpkg_v0.2.8.dmg -------------------------------------------------------------------------------- /builds/installpkg_v0.2.9.dmg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/builds/installpkg_v0.2.9.dmg -------------------------------------------------------------------------------- /builds/installpkg_v0.3.0.dmg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/builds/installpkg_v0.3.0.dmg -------------------------------------------------------------------------------- /builds/installpkg_v0.3.1.dmg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/builds/installpkg_v0.3.1.dmg -------------------------------------------------------------------------------- /builds/installpkg_v0.3.2.dmg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/builds/installpkg_v0.3.2.dmg -------------------------------------------------------------------------------- /install_components/InstallPKG-Uninstall.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/install_components/InstallPKG-Uninstall.bash -------------------------------------------------------------------------------- /install_components/extras/InstallPKG_all_packages/InstallPKG_all_packages.app/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleAllowMixedLocalizations 6 | 7 | CFBundleDevelopmentRegion 8 | English 9 | CFBundleExecutable 10 | applet 11 | CFBundleIconFile 12 | applet 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | InstallPKG_all_packages 17 | CFBundlePackageType 18 | APPL 19 | CFBundleSignature 20 | aplt 21 | LSMinimumSystemVersionByArchitecture 22 | 23 | x86_64 24 | 10.6 25 | 26 | LSRequiresCarbon 27 | 28 | WindowState 29 | 30 | dividerCollapsed 31 | 32 | eventLogLevel 33 | -1 34 | name 35 | ScriptWindowState 36 | positionOfDivider 37 | 421 38 | savedFrame 39 | 224 300 1305 734 0 0 1920 1058 40 | selectedTabView 41 | event log 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /install_components/extras/InstallPKG_all_packages/InstallPKG_all_packages.app/Contents/MacOS/applet: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/install_components/extras/InstallPKG_all_packages/InstallPKG_all_packages.app/Contents/MacOS/applet -------------------------------------------------------------------------------- /install_components/extras/InstallPKG_all_packages/InstallPKG_all_packages.app/Contents/PkgInfo: -------------------------------------------------------------------------------- 1 | APPLaplt -------------------------------------------------------------------------------- /install_components/extras/InstallPKG_all_packages/InstallPKG_all_packages.app/Contents/Resources/Scripts/main.scpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/install_components/extras/InstallPKG_all_packages/InstallPKG_all_packages.app/Contents/Resources/Scripts/main.scpt -------------------------------------------------------------------------------- /install_components/extras/InstallPKG_all_packages/InstallPKG_all_packages.app/Contents/Resources/applet.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/install_components/extras/InstallPKG_all_packages/InstallPKG_all_packages.app/Contents/Resources/applet.icns -------------------------------------------------------------------------------- /install_components/extras/InstallPKG_all_packages/InstallPKG_all_packages.app/Contents/Resources/applet.rsrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/install_components/extras/InstallPKG_all_packages/InstallPKG_all_packages.app/Contents/Resources/applet.rsrc -------------------------------------------------------------------------------- /install_components/extras/InstallPKG_all_packages/InstallPKG_all_packages.app/Contents/Resources/description.rtfd/TXT.rtf: -------------------------------------------------------------------------------- 1 | {\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf350 2 | {\fonttbl\f0\fswiss\fcharset0 Helvetica;} 3 | {\colortbl;\red255\green255\blue255;} 4 | \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\tx7280\tx7840\tx8400\tx8960\tx9520\tx10080\tx10640\tx11200\tx11760\tx12320\tx12880\tx13440\tx14000\tx14560\tx15120\tx15680\tx16240\tx16800\tx17360\tx17920\tx18480\tx19040\tx19600\tx20160\tx20720\tx21280\tx21840\tx22400\tx22960\tx23520\tx24080\tx24640\tx25200\tx25760\tx26320\tx26880\tx27440\tx28000\tx28560\tx29120\tx29680\tx30240\tx30800\tx31360\tx31920\tx32480\tx33040\tx33600\tx34160\tx34720\tx35280\tx35840\tx36400\tx36960\tx37520\tx38080\tx38640\tx39200\tx39760\tx40320\tx40880\tx41440\tx42000\tx42560\tx43120\tx43680\tx44240\tx44800\tx45360\tx45920\tx46480\tx47040\tx47600\tx48160\tx48720\tx49280\tx49840\tx50400\tx50960\tx51520\tx52080\tx52640\tx53200\tx53760\tx54320\tx54880\tx55440\tx56000\ql\qnatural\pardirnatural 5 | 6 | \f0\fs24 \cf0 \CocoaLigature0 (C)2011 Henri Shustak\ 7 | install PKG AppleScript Helpet\ 8 | \ 9 | This script will attempt to install all packages found in the same directory as this script.\ 10 | \ 11 | Some items within the current direcotry will not be passed to installpkg\ 12 | \ 13 | any items either .pkg, .mpkg will be installed.\ 14 | \ 15 | A new version will also install packages within .dmg files. - just a matter of adding a flag to installpkg} -------------------------------------------------------------------------------- /install_components/extras/InstallPKG_all_packages/ReadMe.txt: -------------------------------------------------------------------------------- 1 | This applescript example will install all .pkg and .mpkg files within a directory onto the local system. If you edit the script you may add command line options so that it will also support .pkg and .mpkg files located within .dmg files. 2 | 3 | Any questions please contact Lucid : http://www.lucidsystems.org/contact/ 4 | 5 | -------------------------------------------------------------------------------- /install_components/extras/Rudix • Packages • GNU Wget.webloc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/install_components/extras/Rudix • Packages • GNU Wget.webloc -------------------------------------------------------------------------------- /install_components/installpkg: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Licence : GNU GPL v3 or later 4 | # (C) Copyright 2007 5 | # Henri Shustak 6 | # Lucid Information Systems 7 | # http://www.luicdsystems.org 8 | 9 | # Installs multiple pagkages, by simply specifing the items on the command line 10 | # All items will be installed to the root directory. 11 | 12 | # Project information and full source code repository : 13 | # http://www.lucid.technology/tools/installpkg 14 | 15 | # Version 0.3.2 16 | 17 | function check_admin_rights { 18 | 19 | # Check we are running as root 20 | currentUser=`whoami` 21 | if [ $currentUser != "root" ] ; then 22 | echo This script must be run with super user privileges 23 | exit_status=-127 24 | exit_now 25 | fi 26 | 27 | } 28 | 29 | function check_flags_are_valid { 30 | 31 | if [ $hide_mode_enabled != 0 ] && [ $install_from_image == 0 ] ; then 32 | echo "ERROR! : The -h flag is only availible in combination with the -i flag." 33 | exit_status=-122 34 | exit_now 35 | fi 36 | 37 | if [ $copy_mode_enabled == 1 ] && [ $install_from_http_url == 1 ] ; then 38 | echo "ERROR! : The -c flag is not compatible with the -u flag." 39 | exit_status=-121 40 | exit_now 41 | fi 42 | 43 | if [ $eject_mode_enabled == 1 ] && [ $install_from_http_url == 1 ] ; then 44 | echo "ERROR! : The -e flag is not compatible with the -u flag." 45 | exit_status=-120 46 | exit_now 47 | fi 48 | 49 | } 50 | 51 | 52 | function check_wget { 53 | 54 | # Check if wget is installed on this system 55 | which wget > /dev/null 56 | if [ $? != 0 ] ; then 57 | echo "This tool \"installpkg\" requires wget to be installed and availible via the PATH shell variable," 58 | echo "when used with the -u option." 59 | exit_status=-126 60 | exit_now 61 | fi 62 | 63 | } 64 | 65 | 66 | function check_arguments { 67 | 68 | if [ "$num_argumnets" -lt "1" ] ; then 69 | echo "WARNING ! : No argument provided. No packages installed." 70 | echo "" 71 | echo " To view the installpkg manual, issue the following command :" 72 | echo " man installpkg" 73 | echo "" 74 | echo " installpkg usage : " 75 | echo " sudo installpkg /pathtopackage/package.pkg" 76 | echo " sudo installpkg /pathtopackage/package.mpkg" 77 | echo " sudo installpkg /directory/containing/packages/*" 78 | echo " sudo installpkg -i /pathtopackage/package.dmg" 79 | echo " sudo installpkg -i /directory/containing/dynamicdiskimages/*" 80 | echo " sudo installpkg -ih /pathtopackage/package.dmg" 81 | echo " sudo installpkg -u http://pathtopackage/package.pkg" 82 | echo " sudo installpkg -ui http://pathtopackage/package.dmg" 83 | echo "" 84 | echo " Project information, download and source code repository :" 85 | echo " http://www.lucid.technology/tools/installpkg" 86 | echo "" 87 | echo "" 88 | exit_status=2 89 | exit_now 90 | 91 | fi 92 | 93 | return 0 94 | 95 | } 96 | 97 | 98 | function exit_now { 99 | 100 | # Something could be added to clean up the download directory and the mount point directory if this is important. 101 | 102 | # Remove copy mode instance directory 103 | if [ "${local_directory_instance}" != "" ] && [ $copy_mode_enabled != 0 ]; then 104 | rm -Rf "${local_directory_instance}" 105 | fi 106 | 107 | exit $exit_status 108 | 109 | } 110 | 111 | 112 | function check_package { 113 | 114 | darwin_release_version=`uname -r | awk -F "." '{print $1}'` 115 | leapoard_relese_version=9 116 | 117 | if [ -d "${item2add}" ] ; then 118 | return 0 119 | else 120 | if [ $darwin_release_version -ge $leapoard_relese_version ] ; then 121 | if [ -d "${item2add}" ] || [ -f "${item2add}" ] ; then 122 | return 0 123 | fi 124 | fi 125 | echo " WARNING! : Could not locate package : ${item2add}" 126 | return 1 127 | fi 128 | 129 | } 130 | 131 | 132 | function check_image { 133 | 134 | if [ -f "${item2add}" ] ; then 135 | return 0 136 | else 137 | echo " WARNING! : Could not locate image : ${item2add}" 138 | return 1 139 | fi 140 | 141 | } 142 | 143 | 144 | function install_package { 145 | 146 | check_package 147 | if [ $? == 0 ] ; then 148 | #Installing Package 149 | sudo installer -pkg "${item2add}" -target / 150 | if [ $? != 0 ] ; then 151 | ((num_installer_errors++)) 152 | echo " WARNING! : Errors were encountered during installation of package : ${item2add}" 153 | else 154 | ((num_installed_packages_or_images++)) 155 | fi 156 | else 157 | ((num_installer_errors++)) 158 | fi 159 | 160 | } 161 | 162 | 163 | function mount_package { 164 | 165 | #image_mount_return_code=0 166 | number_of_packages_installed_from_image=0 167 | image_already_mounted="NO" 168 | check_image 169 | 170 | if [ $? == 0 ] ; then 171 | 172 | # check if the image is already mounted 173 | hdiutil info | grep image-path | awk -F "image-path : " '{print $NF}' | grep "${item2add}" > /dev/null 174 | if [ $? == 0 ] ; then 175 | image_already_mounted="YES" 176 | fi 177 | 178 | # mount image 179 | if [ $hide_mode_enabled == 0 ] ; then 180 | image_mount_point=`hdiutil attach -noautoopen "${item2add}" 2>/dev/null | grep "/Volumes/" | awk -F "/Volumes/" '{print $NF}'` 181 | else 182 | setup_tmp_mount_directory 183 | image_mount_point=`hdiutil attach -nobrowse -mountrandom "$mount_directory/" -noautoopen "${item2add}" 2>/dev/null | grep "$mount_directory/" | awk -F "$mount_directory/" '{print $NF}'` 184 | fi 185 | 186 | if [ "${image_mount_point}" == "" ] ; then 187 | echo "ERROR! : Unable to mount item." 188 | ((num_dmg_failed_to_mount++)) 189 | return -1 190 | else 191 | # if sucessful recursivly call installpkg to install the package. 192 | if [ $hide_mode_enabled == 0 ] ; then 193 | image_mount_point="/Volumes/${image_mount_point}" 194 | else 195 | image_mount_point="${mount_directory}/${image_mount_point}" 196 | fi 197 | sudo "${absolute_path_installpkg}" -q "${image_mount_point}"/* 198 | if [ $? != 0 ] ; then 199 | ((num_installer_errors++)) 200 | else 201 | ((number_of_packages_installed_from_image++)) 202 | fi 203 | 204 | # unmount the package if it was not already mounted and we managed to mount it earlier. 205 | if [ "${image_already_mounted}" == "NO" ] ; then 206 | sleep 1 207 | hdiutil detach "${image_mount_point}" > /dev/null 208 | if [ $? != 0 ] ; then 209 | sleep 3 210 | hdiutil detach "${image_mount_point}" -force > /dev/null 211 | if [ $? != 0 ] ; then 212 | echo " WARNING! : Unable to unmount item : ${image_mount_point}" 213 | else 214 | echo "Item unmounted." 215 | fi 216 | else 217 | echo "Item unmounted." 218 | fi 219 | fi 220 | fi 221 | fi 222 | 223 | if [ $num_dmg_failed_to_mount -gt 0 ] ; then 224 | echo "ERROR : No packages were installed from the image" 225 | return -1 226 | else 227 | return 0 228 | fi 229 | 230 | } 231 | 232 | 233 | function check_is_pkg { 234 | 235 | # Alterative approach 236 | # file_suffix=`echo "${item2add##*.}"` 237 | # if [ ".${download_suffix}" == ".pkg" ] || [ ".${download_suffix}" == ".mpkg" ] ; then 238 | 239 | extension1=`basename "${item2add}" | tail -c 5` 240 | extension2=`basename "${item2add}" | tail -c 6` 241 | if [ "${extension1}" == ".pkg" ] || [ "${extension2}" == ".mpkg" ] ; then 242 | # This item is an Installer Package 243 | return 1 244 | else 245 | # This item is not an installer package 246 | echo " WARNING! : Item is not a package and has not been installed : ${item2add}" 247 | return 0 248 | fi 249 | 250 | } 251 | 252 | 253 | function check_is_dmg { 254 | 255 | extension1=`basename "${item2add}" | tail -c 5` 256 | if [ "${extension1}" == ".dmg" ] ; then 257 | # This item is an dynamic disk image 258 | return 1 259 | else 260 | # This item is not an dynamic disk image 261 | return 0 262 | fi 263 | 264 | } 265 | 266 | function setup_tmp_local_directory { 267 | 268 | # Setup a temporary area for local copys of files (this will contain individual folders for each instance of installpkg) 269 | if [ -d "${local_directory}" ] ; then 270 | return 0 271 | else 272 | mkdir -p "${local_directory}" 273 | if [ $? == 0 ] ; then 274 | sync 275 | return 0 276 | fi 277 | fi 278 | echo "Unable to generate local directory : ${local_directory}" 279 | exit_status=-124 280 | exit_now 281 | 282 | } 283 | 284 | 285 | function setup_tmp_local_directory_instance { 286 | 287 | # Setup a temporary area for local copys of files ; 288 | # this is instance directory is used for a partiuclar instance of install pkg (you could run more than one instanace simultaniusly) 289 | if [ -d "${local_directory}" ] ; then 290 | local_directory_instance=`mktemp -d "${local_directory_instance_template}"` 291 | if [ $? == 0 ] ; then 292 | return 0 293 | fi 294 | fi 295 | echo "Unable to generate local directory instance within the local directory : ${local_directory}" 296 | exit_status=-124 297 | exit_now 298 | 299 | } 300 | 301 | 302 | function setup_tmp_download_directory { 303 | 304 | # Setup a temporary area for downloads 305 | if [ -d "${download_directory}" ] ; then 306 | return 0 307 | else 308 | mkdir -p "${download_directory}" 309 | if [ $? == 0 ] ; then 310 | sync 311 | return 0 312 | fi 313 | fi 314 | echo "Unable to generate download directory : ${download_directory}" 315 | exit_status=-124 316 | exit_now 317 | 318 | } 319 | 320 | function setup_tmp_mount_directory { 321 | 322 | # Setup a temporary area for mountpoints 323 | if [ -d "${mount_directory}" ] ; then 324 | return 0 325 | else 326 | mkdir -p "${mount_directory}" 327 | if [ $? == 0 ] ; then 328 | sync 329 | return 0 330 | fi 331 | fi 332 | echo "Unable to generate mountpoint directory : ${mount_directory}" 333 | exit_status=-124 334 | exit_now 335 | 336 | } 337 | 338 | 339 | function download_from_url_to_temporary_directory { 340 | 341 | cd "${download_directory}" 342 | if [ $? != 0 ] ; then 343 | echo "ERROR! : Unable to change directory to the download direcotry." 344 | echo " No attempt will be made to install any further packages which have yet to be installed." 345 | exit_status=-123 346 | exit_now 347 | fi 348 | followed_redirects_actual_download_url=`wget --spider "${item2add}" 2>&1 | grep -e "^Location" | awk '{print $2}' | tail -n 1` 349 | if [ "${followed_redirects_actual_download_url}" == "" ] ; then followed_redirects_actual_download_url="${item2add}" ; fi 350 | downloaded_file_name=`basename "${followed_redirects_actual_download_url}"` 351 | wget ${wget_options}--backups=0 "${item2add}" -O "${downloaded_file_name}" 352 | if [ $? != 0 ] ; then 353 | echo "ERROR! : Unable to download file : ${item2add}" 354 | echo " No attempt will be made to install any further packages which have yet to installed." 355 | exit_status=-122 356 | exit_now 357 | fi 358 | item2add="${download_directory}/${downloaded_file_name}" 359 | sleep 1 360 | } 361 | 362 | 363 | function check_is_http { 364 | 365 | first_seven_charcters=`echo ${item2add} | cut -c 1-7` 366 | if [ "${first_seven_charcters}" == "http://" ] || [ "${first_seven_charcters}" == "https:/" ] ; then 367 | return 0 368 | fi 369 | return 1 370 | 371 | } 372 | 373 | function add_item_to_volumes_to_unmount_index { 374 | 375 | volume_return_value=`echo "${1}" | grep -e "^/Volumes/" | awk -F "/" '{print $3}'` 376 | if [ "${volume_return_value}" != "" ] ; then 377 | volumes_to_unmount[${volumes_to_unmount_index}]="${volume_return_value}" 378 | ((volumes_to_unmount_index++)) 379 | return 0 380 | fi 381 | return 1 382 | 383 | } 384 | 385 | function eject_devices_and_unmount_volumes_from_indexs { 386 | 387 | # lets just find the unique volumes to eject 388 | eval volumes_to_unmount_unique=($(printf "%q\n" "${volumes_to_unmount[@]}" | sort -u)) 389 | if [ ${#volumes_to_unmount_unique[@]} != 0 ] ; then 390 | for v in "${volumes_to_unmount_unique[@]}" ; do 391 | sync 392 | diskutil_unmount_result=`diskutil unmount "/Volumes/${v}" 2> /dev/null` 393 | if [ $? == 0 ] ; then 394 | ((num_volume_unmount_success++)) 395 | device_of_unmounted_volume=`echo "${diskutil_unmount_result}" | awk -F " on " '{print $2}' | awk '{print $1}'` 396 | if [ "${device_of_unmounted_volume}" != "" ] ; then 397 | devices_to_eject[${devices_to_eject_index}]="${device_of_unmounted_volume}" 398 | ((devices_to_eject_index++)) 399 | fi 400 | if [ $quite_mode_enabled == 0 ] ; then 401 | if [ "${device_of_unmounted_volume}" != "" ] ; then related_device=" (/dev/${device_of_unmounted_volume})" ; fi 402 | echo " Unmounted Volume Succesfully : \"/Volumes/${v}\"${related_device}" 403 | fi 404 | else 405 | ((num_volume_unmount_error++)) 406 | if [ $quite_mode_enabled == 0 ] ; then 407 | echo " ERROR! : Unable to Unmount Volume : \"/Volumes/${v}\"" 408 | fi 409 | exit_status=-77 410 | fi 411 | 412 | done 413 | if [ $quite_mode_enabled == 0 ] ; then 414 | echo "" 415 | fi 416 | 417 | # check to see if there are any related devices to eject 418 | if [ ${devices_to_eject_index} -gt 0 ] ; then 419 | # eject related devices 420 | eval devices_to_eject_unique=($(printf "%q\n" "${devices_to_eject[@]}" | sort -u)) 421 | for d in "${devices_to_eject_unique[@]}" ; do 422 | sync 423 | sleep 1 424 | diskutil eject "${d}" 2> /dev/null > /dev/null 425 | if [ $? == 0 ] ; then 426 | ((num_device_eject_success++)) 427 | if [ $quite_mode_enabled == 0 ] ; then 428 | echo " Ejected Device Succesfully : \"/dev/${d}\"" 429 | fi 430 | else 431 | ((num_device_eject_error++)) 432 | if [ $quite_mode_enabled == 0 ] ; then 433 | echo " ERROR! : Unable to Eject Device : \"/dev/${d}\"" 434 | fi 435 | exit_status=-76 436 | fi 437 | done 438 | fi 439 | 440 | if [ $num_volume_unmount_error == 0 ] && [ ${num_device_eject_error} == 0 ] ; then 441 | if [ $quite_mode_enabled == 0 ] ; then 442 | # Report that the files are now locally availible 443 | echo "" 444 | echo "--------------------------------------------------------------------" 445 | echo " NOTICE : All source volumes unmounted succesfully." 446 | echo "--------------------------------------------------------------------" 447 | echo "" 448 | fi 449 | return 0 450 | else 451 | if [ $quite_mode_enabled == 0 ] ; then 452 | # Report that the files are now locally availible 453 | echo "" 454 | echo "--------------------------------------------------------------------" 455 | echo " ERROR! : Some source volumes were not unmounted. Manually eject " 456 | echo " all media before physically disconecting from system." 457 | echo "--------------------------------------------------------------------" 458 | echo "" 459 | fi 460 | return 1 461 | fi 462 | fi 463 | 464 | # No volumes detected for ejection 465 | if [ $quite_mode_enabled == 0 ] ; then 466 | # Report that no volumes were ejected 467 | echo "" 468 | echo "--------------------------------------------------------------------" 469 | echo " ERROR : No volumes found to eject!" 470 | echo "--------------------------------------------------------------------" 471 | echo "" 472 | fi 473 | no_volumes_found_to_eject_error=1 474 | return 1 475 | 476 | 477 | } 478 | 479 | 480 | 481 | 482 | ########### LOGIC AND EXECUTION ########### 483 | 484 | # General Settings 485 | num_argumnets=$# 486 | exit_status=0 487 | opt_args_passed=0 488 | install_from_image=0 489 | install_from_http_url=0 490 | quite_mode_enabled=0 491 | hide_mode_enabled=0 492 | eject_mode_enabled=0 493 | copy_mode_enabled=0 494 | verbose_mode_enabled=0 495 | num_dmg_failed_to_mount=0 496 | local_directory=/tmp/installpkg_local 497 | local_directory_instance_template=${local_directory}/installpkg_instance_XXXXXXXXXX 498 | local_directory_instance="" 499 | local_copy_rsync_options="" 500 | local_copy_recurssive_call_options="" 501 | lcrco="-" #local_copy_recurssive_call_options 502 | download_directory=/tmp/installpkg_downloads 503 | mount_directory=/tmp/installpkg_mountpoints 504 | item2add="" 505 | wget_options="" 506 | num_installer_errors=0 507 | num_installed_packages_or_images=0 508 | absolute_path_installpkg="${0}" 509 | volumes_to_unmount=[] 510 | volumes_to_unmount_index=0 511 | num_volume_unmount_success=0 512 | num_volume_unmount_error=0 513 | devices_to_eject=[] 514 | devices_to_eject_index=0 515 | num_device_eject_success=0 516 | num_device_eject_error=0 517 | no_volumes_found_to_eject_error=0 518 | 519 | 520 | 521 | 522 | # parse any arguments 523 | while getopts ":iuqhcev" option 524 | do 525 | case $option in 526 | i ) ((opt_args_passed++));((install_from_image++));lcrco="${lcrco}i";; 527 | u ) ((opt_args_passed++));((install_from_http_url++));lcrco="${lcrco}u";; 528 | q ) ((opt_args_passed++));((quite_mode_enabled++));lcrco="${lcrco}q";; 529 | h ) ((opt_args_passed++));((hide_mode_enabled++));lcrco="${lcrco}h";; 530 | v ) ((opt_args_passed++));((verbose_mode_enabled++));lcrco="${lcrco}v";; 531 | c ) ((opt_args_passed++));((copy_mode_enabled++));; 532 | e ) ((opt_args_passed++));((eject_mode_enabled++));; 533 | * ) ;; # DEFAULT : Do Nothing 534 | esac 535 | done 536 | shift $(($OPTIND - 1)) 537 | num_argumnets=$# 538 | # Decrements the argument pointer so it points to next argument. 539 | # $1 now references the first non option item supplied on the command line 540 | # if one exists. 541 | 542 | # If lcrco has no options added, then blank out the argument flag "-" was set by default. 543 | if [ "${lcrco}" == "-" ] ; then 544 | lcrco="" 545 | fi 546 | 547 | # Check we are good to go 548 | check_arguments 549 | check_admin_rights 550 | check_flags_are_valid 551 | if [ ${quite_mode_enabled} -gt 0 ] ; then 552 | wget_options="${wget_options}-q " 553 | fi 554 | 555 | # if copy mode is enabled, then perform the copy before proceeding any further with recursive call to installpkg 556 | if [ $copy_mode_enabled == 1 ] ; then 557 | num_items_to_copy_locally_which_were_not_found=0 558 | num_items_to_copy_locally_which_were_found=0 559 | setup_tmp_local_directory 560 | setup_tmp_local_directory_instance 561 | local_copy_recurssive_call_options="${lcrco}" 562 | 563 | #configure trap for deleting temporary local files for this instance on unexpected exit 564 | #trap "{ sleep 0.5 ;rm -rf \"${local_directory_instance}\"; }" EXIT 565 | 566 | if [ $quite_mode_enabled == 0 ] ; then 567 | if [ $verbose_mode_enabled != 0 ] ; then 568 | local_copy_rsync_options="--archive --human-readable --stats --progress --verbose" 569 | else 570 | local_copy_rsync_options="--archive --human-readable " 571 | fi 572 | else 573 | local_copy_rsync_options="--archive --quiet" 574 | fi 575 | 576 | # Loop though the arguments provided and copy them all over to the local temporary directory 577 | for s 578 | do 579 | if [ -e "${s}" ] ; then 580 | ((num_items_to_copy_locally_which_were_found++)) 581 | rsync ${local_copy_rsync_options} "${s}" "${local_directory_instance}/" 582 | if [ ${?} != 0 ] ; then 583 | echo " ERROR! : Copy to local storage failed : ${s}" 584 | exit_status=-50 585 | exit_now 586 | fi 587 | if [ ${eject_mode_enabled} != 0 ] ; then 588 | add_item_to_volumes_to_unmount_index "${s}" 589 | fi 590 | else 591 | ((num_items_to_copy_locally_which_were_not_found++)) 592 | echo " WARNING! : Unable to locate origional specified item : ${s}" 593 | fi 594 | done 595 | if [ $num_items_to_copy_locally_which_were_found == 0 ] ; then 596 | echo " ERROR! : No files were located to copy to local storage." 597 | exit_status=-51 598 | exit_now 599 | fi 600 | 601 | # Report that the files are now locally availible 602 | echo "" 603 | echo "--------------------------------------------------------------------" 604 | echo " NOTICE : Installers copied to local storage succesfully." 605 | echo "--------------------------------------------------------------------" 606 | echo "" 607 | 608 | # eject volumes 609 | if [ ${eject_mode_enabled} != 0 ] ; then 610 | eject_devices_and_unmount_volumes_from_indexs 611 | fi 612 | 613 | # Confirm that the local instance directory exists and that access is possible. 614 | previous_working_dir="`pwd`" 615 | errors_during_recursive_call_to_install=0 616 | cd "${local_directory_instance}" # we switch to the directory to ensure that it exists and catch the error with this appraoch. 617 | if [ $? != 0 ] ; then 618 | echo " ERROR! : Unable to switch to local instance directory." 619 | exit_status=-122 620 | exit_now 621 | fi 622 | cd "${previous_working_dir}" # switch back to the original working directory. No error checking on this call - maybe this call should be removed and errors redirected to /dev/nul/? 623 | 624 | # Perform recursive install once for each item to install - this was modified so greater feed back was possible and also to better handle odd path names 625 | for i in "${local_directory_instance}/"* 626 | do # loop over all items in the instance directory and recursively call install pkg for each item found. 627 | sudo "${absolute_path_installpkg}" ${local_copy_recurssive_call_options} "${i}" 628 | return_result_from_recursive_install_call=${?} 629 | if [ ${return_result_from_recursive_install_call} != 0 ] ; then 630 | echo "" 631 | echo " ERROR! : Unable to install : \"${i}\"" 632 | echo " Returned error code : ${return_result_from_recursive_install_call}" 633 | echo "" 634 | ((errors_during_recursive_call_to_install++)) 635 | exit_status=-121 636 | fi 637 | done 638 | if [ ${errors_during_recursive_call_to_install} != 0 ] ; then 639 | exit_status=-121 640 | fi 641 | 642 | if [ ${num_items_to_copy_locally_which_were_not_found} != 0 ] ; then 643 | echo "" 644 | echo " WARNING! : [${num_items_to_copy_locally_which_were_not_found}] items were not copied to local storage and as such these items were not installed." 645 | echo "" 646 | if [ $exit_status == 0 ] ; then 647 | exit_status=-130 648 | else 649 | exit_status=-131 650 | fi 651 | fi 652 | 653 | # Remove any temporary local instance files 654 | exit_now 655 | fi 656 | 657 | 658 | # Loop though the arguments provided. 659 | for a 660 | do 661 | 662 | item2add="$a" 663 | 664 | 665 | if [ $quite_mode_enabled == 0 ] ; then 666 | echo "" 667 | fi 668 | 669 | if [ $install_from_http_url != 0 ] ; then 670 | check_wget 671 | check_is_http 672 | if [ $? != 0 ] ; then 673 | echo "ERROR! : Item is not a http/https URL : ${item2add}" 674 | echo " Item has not been mounted or installed" 675 | #skip installation of this this item 676 | continue 677 | else 678 | setup_tmp_download_directory 679 | download_from_url_to_temporary_directory 680 | fi 681 | fi 682 | if [ $install_from_image != 0 ] ; then 683 | check_is_dmg 684 | if [ $? == 1 ] ; then 685 | echo "Mounting Item : ${item2add}" 686 | mount_package 687 | if [ $? != 0 ] ; then 688 | ((num_installer_errors++)) 689 | else 690 | ((num_installed_packages_or_images++)) 691 | fi 692 | else 693 | echo " WARNING! : Item is not a dynamic image file : ${item2add}" 694 | echo " Item has not been mounted or installed" 695 | fi 696 | else 697 | check_is_pkg 698 | if [ $? == 1 ] ; then 699 | echo "Installing Item : ${item2add}" 700 | install_package 701 | fi 702 | fi 703 | 704 | # clean up an item if it was downloaded 705 | if [ $install_from_http_url != 0 ] ; then 706 | rm -R "${item2add}" 707 | fi 708 | 709 | # add to the list of volume names to be ejected 710 | if [ ${eject_mode_enabled} != 0 ] ; then 711 | add_item_to_volumes_to_unmount_index "${item2add}" 712 | fi 713 | 714 | done 715 | 716 | 717 | # eject volumes 718 | if [ ${eject_mode_enabled} != 0 ] ; then 719 | if [ $quite_mode_enabled == 0 ] ; then 720 | echo "" 721 | echo "" 722 | fi 723 | eject_devices_and_unmount_volumes_from_indexs 724 | fi 725 | 726 | 727 | if [ $quite_mode_enabled == 0 ] ; then 728 | if [ $num_installed_packages_or_images -gt 0 ] ; then 729 | echo "" 730 | echo "" 731 | echo "----------------------------------------------------------------------------" 732 | echo "Summary : " 733 | echo "" 734 | echo "If any of these packages required reboots, then you should restart your computer." 735 | echo "To restart the machine type : sudo shutdown -r now" 736 | else 737 | echo "----------------------------------------------------------------------------" 738 | echo "Summary : " 739 | echo "" 740 | echo " ERROR! : No packages (.pkg or .mpkg) or images (.dmg) were installed." 741 | echo "" 742 | fi 743 | if [ $num_dmg_failed_to_mount -gt 0 ] ; then 744 | echo "" 745 | echo " WARNING : [${num_dmg_failed_to_mount}] items were .dmg files and they were not able to mounted." 746 | echo " Any image packages (.pkg or .mpkg) that were located within " 747 | echo " these images file (.dmg) files will not have been installed." 748 | echo "" 749 | fi 750 | if [ $num_installer_errors -gt 0 ] ; then 751 | echo "" 752 | echo " WARNING : [${num_installer_errors}] packages or images failed installation." 753 | echo "" 754 | fi 755 | if [ $num_volume_unmount_error -gt 0 ] || [ $num_device_eject_error -gt 0 ] ; then 756 | echo "" 757 | if [ $num_volume_unmount_error -gt 0 ] ; then 758 | echo " WARNING : [${num_volume_unmount_error}] volumes failed to unmount (-e)." 759 | fi 760 | if [ $num_device_eject_error -gt 0 ] ; then 761 | echo " WARNING : [${num_device_eject_error}] devices failed to eject (-e)." 762 | fi 763 | echo "" 764 | fi 765 | if [ ${no_volumes_found_to_eject_error} == 1 ] ; then 766 | echo "" 767 | echo " WARNING : No devices were found to eject (-e)." 768 | echo "" 769 | fi 770 | fi 771 | 772 | # if [ $num_dmg_failed_to_mount -gt 0 ] ; then 773 | # exit_status=-130 774 | # fi 775 | 776 | if [ ${no_volumes_found_to_eject_error} == 1 ] ; then 777 | exit_status=-99 778 | fi 779 | 780 | if [ $num_installer_errors -gt 0 ] ; then 781 | exit_status=-131 782 | fi 783 | 784 | if [ $num_installed_packages_or_images == 0 ] ; then 785 | exit_status=-130 786 | fi 787 | 788 | 789 | exit_now 790 | 791 | exit 0 792 | 793 | 794 | 795 | -------------------------------------------------------------------------------- /install_components/installpkg.1: -------------------------------------------------------------------------------- 1 | .\" Process this file with 2 | .\" groff -Tascii -man /path/tosource/installpkg.1 > outputfile.1 3 | .\" 4 | .TH INSTALLPKG 1 "1 November 2011" 5 | .SH NAME 6 | installpkg - allows quick installation of multiple packages. 7 | .SH SYNOPSIS 8 | installpkg [package2.pkg]...etc 9 | .SH DESCRIPTION 10 | .B 11 | INSTALLPKG 12 | attempts to install packages passed in as argument(s) 13 | If the items file name ends in .pkg or .mpkg installation will be attempted. 14 | 15 | Flag summary : 16 | -i install from disk image 17 | -h hide mount point of disk iamge (only works with the -i flag) 18 | -u install from URL 19 | -c copy to local storage before installing (incompatible with -u flag) 20 | -e eject source volume mode (incompatible with -u flag) 21 | -v verbose mode (more verbose) 22 | -q quiet output (less verbose) 23 | 24 | It is possible to use the -i flag to install all the packages in 25 | root level of a .dmg file. In addition it is possible to use the -u 26 | flag to specify installation of a flat package from a specified 27 | URL (downloaded with wget). Usage of the -h flag will result in 28 | mounting to a temporary location and also for the mount point to 29 | be hiden from the Finder. The -c flag will result in all specifed 30 | files being copied to a local storage area prior to being installed. 31 | The -e flag will result in the volume and if possible the disk and 32 | other volumes on that disk to be ejected. 33 | 34 | Combinations of various flags are also possible and encouraged. 35 | 36 | Usage Examples : 37 | 38 | installpkg package1.pkg package2.pkg 39 | 40 | installpkg /directory_full_of_pacakges/* 41 | 42 | installpkg -i image1.dmg image2.dmg 43 | 44 | installpkg -i /directory_full_of_images/* 45 | 46 | installpkg -iu http://lucid.systems/download/installpkg 47 | 48 | installpkg -iuh http://lucid.systems/download/installpkg 49 | 50 | installpkg -u http://pkgserver.example.com/mypackage.pkg 51 | 52 | installpkg -ih image1.dmg image2.dmg 53 | 54 | installpkg -ihc image1.dmg image2.dmg 55 | 56 | installpkg -ihcev /Volumes/mypacakges/* 57 | 58 | 59 | .SH BUGS 60 | (1) 61 | The name is not very good. 62 | 63 | (2) 64 | This software is not very well tested, please report any issues. 65 | 66 | (3) 67 | InstallPKG is not very configurable. 68 | 69 | 70 | .SH AUTHOR 71 | Henri Shustak, Leif Keane 72 | 73 | installpkg is protected by various licenses agreements. 74 | 75 | Check http://lucidsystems.org for further details. 76 | 77 | InstallPKG website : http://www.lucid.technology/tools/installpkg 78 | 79 | .SH "SEE ALSO" 80 | .BR installer (1), 81 | .BR bash (1), 82 | .BR grep (1), 83 | .BR defaults (1), 84 | .BR basename (1), 85 | .BR echo (1), 86 | .BR killall (1), 87 | .BR tail (1), 88 | .BR awk (1) 89 | .BR rsync (1) 90 | .BR wget (1) -------------------------------------------------------------------------------- /install_components/resources/License.rtf: -------------------------------------------------------------------------------- 1 | {\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf350 2 | {\fonttbl\f0\fmodern\fcharset0 Courier;} 3 | {\colortbl;\red255\green255\blue255;} 4 | {\info 5 | {\keywords cursorLocation=138}}\paperw11900\paperh16840\margl1440\margr1440\vieww9020\viewh10060\viewkind0 6 | \deftab720 7 | \pard\pardeftab720\qc 8 | 9 | \f0\fs54 \cf0 \ 10 | GNU GENERAL PUBLIC LICENSE\ 11 | Version 3, 29 June 2007 12 | \fs58 \ 13 | 14 | \fs18 \ 15 | \pard\pardeftab720\ql\qnatural 16 | \cf0 \ 17 | \ 18 | Copyright (C) 2007 Free Software Foundation, Inc. \ 19 | Everyone is permitted to copy and distribute verbatim copies\ 20 | of this license document, but changing it is not allowed.\ 21 | \ 22 | Preamble\ 23 | \ 24 | The GNU General Public License is a free, copyleft license for\ 25 | software and other kinds of works.\ 26 | \ 27 | The licenses for most software and other practical works are designed\ 28 | to take away your freedom to share and change the works. By contrast,\ 29 | the GNU General Public License is intended to guarantee your freedom to\ 30 | share and change all versions of a program--to make sure it remains free\ 31 | software for all its users. We, the Free Software Foundation, use the\ 32 | GNU General Public License for most of our software; it applies also to\ 33 | any other work released this way by its authors. You can apply it to\ 34 | your programs, too.\ 35 | \ 36 | When we speak of free software, we are referring to freedom, not\ 37 | price. Our General Public Licenses are designed to make sure that you\ 38 | have the freedom to distribute copies of free software (and charge for\ 39 | them if you wish), that you receive source code or can get it if you\ 40 | want it, that you can change the software or use pieces of it in new\ 41 | free programs, and that you know you can do these things.\ 42 | \ 43 | To protect your rights, we need to prevent others from denying you\ 44 | these rights or asking you to surrender the rights. Therefore, you have\ 45 | certain responsibilities if you distribute copies of the software, or if\ 46 | you modify it: responsibilities to respect the freedom of others.\ 47 | \ 48 | For example, if you distribute copies of such a program, whether\ 49 | gratis or for a fee, you must pass on to the recipients the same\ 50 | freedoms that you received. You must make sure that they, too, receive\ 51 | or can get the source code. And you must show them these terms so they\ 52 | know their rights.\ 53 | \ 54 | Developers that use the GNU GPL protect your rights with two steps:\ 55 | (1) assert copyright on the software, and (2) offer you this License\ 56 | giving you legal permission to copy, distribute and/or modify it.\ 57 | \ 58 | For the developers' and authors' protection, the GPL clearly explains\ 59 | that there is no warranty for this free software. For both users' and\ 60 | authors' sake, the GPL requires that modified versions be marked as\ 61 | changed, so that their problems will not be attributed erroneously to\ 62 | authors of previous versions.\ 63 | \ 64 | Some devices are designed to deny users access to install or run\ 65 | modified versions of the software inside them, although the manufacturer\ 66 | can do so. This is fundamentally incompatible with the aim of\ 67 | protecting users' freedom to change the software. The systematic\ 68 | pattern of such abuse occurs in the area of products for individuals to\ 69 | use, which is precisely where it is most unacceptable. Therefore, we\ 70 | have designed this version of the GPL to prohibit the practice for those\ 71 | products. If such problems arise substantially in other domains, we\ 72 | stand ready to extend this provision to those domains in future versions\ 73 | of the GPL, as needed to protect the freedom of users.\ 74 | \ 75 | Finally, every program is threatened constantly by software patents.\ 76 | States should not allow patents to restrict development and use of\ 77 | software on general-purpose computers, but in those that do, we wish to\ 78 | avoid the special danger that patents applied to a free program could\ 79 | make it effectively proprietary. To prevent this, the GPL assures that\ 80 | patents cannot be used to render the program non-free.\ 81 | \ 82 | The precise terms and conditions for copying, distribution and\ 83 | modification follow.\ 84 | \ 85 | TERMS AND CONDITIONS\ 86 | \ 87 | 0. Definitions.\ 88 | \ 89 | "This License" refers to version 3 of the GNU General Public License.\ 90 | \ 91 | "Copyright" also means copyright-like laws that apply to other kinds of\ 92 | works, such as semiconductor masks.\ 93 | \ 94 | "The Program" refers to any copyrightable work licensed under this\ 95 | License. Each licensee is addressed as "you". "Licensees" and\ 96 | "recipients" may be individuals or organizations.\ 97 | \ 98 | To "modify" a work means to copy from or adapt all or part of the work\ 99 | in a fashion requiring copyright permission, other than the making of an\ 100 | exact copy. The resulting work is called a "modified version" of the\ 101 | earlier work or a work "based on" the earlier work.\ 102 | \ 103 | A "covered work" means either the unmodified Program or a work based\ 104 | on the Program.\ 105 | \ 106 | To "propagate" a work means to do anything with it that, without\ 107 | permission, would make you directly or secondarily liable for\ 108 | infringement under applicable copyright law, except executing it on a\ 109 | computer or modifying a private copy. Propagation includes copying,\ 110 | distribution (with or without modification), making available to the\ 111 | public, and in some countries other activities as well.\ 112 | \ 113 | To "convey" a work means any kind of propagation that enables other\ 114 | parties to make or receive copies. Mere interaction with a user through\ 115 | a computer network, with no transfer of a copy, is not conveying.\ 116 | \ 117 | An interactive user interface displays "Appropriate Legal Notices"\ 118 | to the extent that it includes a convenient and prominently visible\ 119 | feature that (1) displays an appropriate copyright notice, and (2)\ 120 | tells the user that there is no warranty for the work (except to the\ 121 | extent that warranties are provided), that licensees may convey the\ 122 | work under this License, and how to view a copy of this License. If\ 123 | the interface presents a list of user commands or options, such as a\ 124 | menu, a prominent item in the list meets this criterion.\ 125 | \ 126 | 1. Source Code.\ 127 | \ 128 | The "source code" for a work means the preferred form of the work\ 129 | for making modifications to it. "Object code" means any non-source\ 130 | form of a work.\ 131 | \ 132 | A "Standard Interface" means an interface that either is an official\ 133 | standard defined by a recognized standards body, or, in the case of\ 134 | interfaces specified for a particular programming language, one that\ 135 | is widely used among developers working in that language.\ 136 | \ 137 | The "System Libraries" of an executable work include anything, other\ 138 | than the work as a whole, that (a) is included in the normal form of\ 139 | packaging a Major Component, but which is not part of that Major\ 140 | Component, and (b) serves only to enable use of the work with that\ 141 | Major Component, or to implement a Standard Interface for which an\ 142 | implementation is available to the public in source code form. A\ 143 | "Major Component", in this context, means a major essential component\ 144 | (kernel, window system, and so on) of the specific operating system\ 145 | (if any) on which the executable work runs, or a compiler used to\ 146 | produce the work, or an object code interpreter used to run it.\ 147 | \ 148 | The "Corresponding Source" for a work in object code form means all\ 149 | the source code needed to generate, install, and (for an executable\ 150 | work) run the object code and to modify the work, including scripts to\ 151 | control those activities. However, it does not include the work's\ 152 | System Libraries, or general-purpose tools or generally available free\ 153 | programs which are used unmodified in performing those activities but\ 154 | which are not part of the work. For example, Corresponding Source\ 155 | includes interface definition files associated with source files for\ 156 | the work, and the source code for shared libraries and dynamically\ 157 | linked subprograms that the work is specifically designed to require,\ 158 | such as by intimate data communication or control flow between those\ 159 | subprograms and other parts of the work.\ 160 | \ 161 | The Corresponding Source need not include anything that users\ 162 | can regenerate automatically from other parts of the Corresponding\ 163 | Source.\ 164 | \ 165 | The Corresponding Source for a work in source code form is that\ 166 | same work.\ 167 | \ 168 | 2. Basic Permissions.\ 169 | \ 170 | All rights granted under this License are granted for the term of\ 171 | copyright on the Program, and are irrevocable provided the stated\ 172 | conditions are met. This License explicitly affirms your unlimited\ 173 | permission to run the unmodified Program. The output from running a\ 174 | covered work is covered by this License only if the output, given its\ 175 | content, constitutes a covered work. This License acknowledges your\ 176 | rights of fair use or other equivalent, as provided by copyright law.\ 177 | \ 178 | You may make, run and propagate covered works that you do not\ 179 | convey, without conditions so long as your license otherwise remains\ 180 | in force. You may convey covered works to others for the sole purpose\ 181 | of having them make modifications exclusively for you, or provide you\ 182 | with facilities for running those works, provided that you comply with\ 183 | the terms of this License in conveying all material for which you do\ 184 | not control copyright. Those thus making or running the covered works\ 185 | for you must do so exclusively on your behalf, under your direction\ 186 | and control, on terms that prohibit them from making any copies of\ 187 | your copyrighted material outside their relationship with you.\ 188 | \ 189 | Conveying under any other circumstances is permitted solely under\ 190 | the conditions stated below. Sublicensing is not allowed; section 10\ 191 | makes it unnecessary.\ 192 | \ 193 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.\ 194 | \ 195 | No covered work shall be deemed part of an effective technological\ 196 | measure under any applicable law fulfilling obligations under article\ 197 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or\ 198 | similar laws prohibiting or restricting circumvention of such\ 199 | measures.\ 200 | \ 201 | When you convey a covered work, you waive any legal power to forbid\ 202 | circumvention of technological measures to the extent such circumvention\ 203 | is effected by exercising rights under this License with respect to\ 204 | the covered work, and you disclaim any intention to limit operation or\ 205 | modification of the work as a means of enforcing, against the work's\ 206 | users, your or third parties' legal rights to forbid circumvention of\ 207 | technological measures.\ 208 | \ 209 | 4. Conveying Verbatim Copies.\ 210 | \ 211 | You may convey verbatim copies of the Program's source code as you\ 212 | receive it, in any medium, provided that you conspicuously and\ 213 | appropriately publish on each copy an appropriate copyright notice;\ 214 | keep intact all notices stating that this License and any\ 215 | non-permissive terms added in accord with section 7 apply to the code;\ 216 | keep intact all notices of the absence of any warranty; and give all\ 217 | recipients a copy of this License along with the Program.\ 218 | \ 219 | You may charge any price or no price for each copy that you convey,\ 220 | and you may offer support or warranty protection for a fee.\ 221 | \ 222 | 5. Conveying Modified Source Versions.\ 223 | \ 224 | You may convey a work based on the Program, or the modifications to\ 225 | produce it from the Program, in the form of source code under the\ 226 | terms of section 4, provided that you also meet all of these conditions:\ 227 | \ 228 | a) The work must carry prominent notices stating that you modified\ 229 | it, and giving a relevant date.\ 230 | \ 231 | b) The work must carry prominent notices stating that it is\ 232 | released under this License and any conditions added under section\ 233 | 7. This requirement modifies the requirement in section 4 to\ 234 | "keep intact all notices".\ 235 | \ 236 | c) You must license the entire work, as a whole, under this\ 237 | License to anyone who comes into possession of a copy. This\ 238 | License will therefore apply, along with any applicable section 7\ 239 | additional terms, to the whole of the work, and all its parts,\ 240 | regardless of how they are packaged. This License gives no\ 241 | permission to license the work in any other way, but it does not\ 242 | invalidate such permission if you have separately received it.\ 243 | \ 244 | d) If the work has interactive user interfaces, each must display\ 245 | Appropriate Legal Notices; however, if the Program has interactive\ 246 | interfaces that do not display Appropriate Legal Notices, your\ 247 | work need not make them do so.\ 248 | \ 249 | A compilation of a covered work with other separate and independent\ 250 | works, which are not by their nature extensions of the covered work,\ 251 | and which are not combined with it such as to form a larger program,\ 252 | in or on a volume of a storage or distribution medium, is called an\ 253 | "aggregate" if the compilation and its resulting copyright are not\ 254 | used to limit the access or legal rights of the compilation's users\ 255 | beyond what the individual works permit. Inclusion of a covered work\ 256 | in an aggregate does not cause this License to apply to the other\ 257 | parts of the aggregate.\ 258 | \ 259 | 6. Conveying Non-Source Forms.\ 260 | \ 261 | You may convey a covered work in object code form under the terms\ 262 | of sections 4 and 5, provided that you also convey the\ 263 | machine-readable Corresponding Source under the terms of this License,\ 264 | in one of these ways:\ 265 | \ 266 | a) Convey the object code in, or embodied in, a physical product\ 267 | (including a physical distribution medium), accompanied by the\ 268 | Corresponding Source fixed on a durable physical medium\ 269 | customarily used for software interchange.\ 270 | \ 271 | b) Convey the object code in, or embodied in, a physical product\ 272 | (including a physical distribution medium), accompanied by a\ 273 | written offer, valid for at least three years and valid for as\ 274 | long as you offer spare parts or customer support for that product\ 275 | model, to give anyone who possesses the object code either (1) a\ 276 | copy of the Corresponding Source for all the software in the\ 277 | product that is covered by this License, on a durable physical\ 278 | medium customarily used for software interchange, for a price no\ 279 | more than your reasonable cost of physically performing this\ 280 | conveying of source, or (2) access to copy the\ 281 | Corresponding Source from a network server at no charge.\ 282 | \ 283 | c) Convey individual copies of the object code with a copy of the\ 284 | written offer to provide the Corresponding Source. This\ 285 | alternative is allowed only occasionally and noncommercially, and\ 286 | only if you received the object code with such an offer, in accord\ 287 | with subsection 6b.\ 288 | \ 289 | d) Convey the object code by offering access from a designated\ 290 | place (gratis or for a charge), and offer equivalent access to the\ 291 | Corresponding Source in the same way through the same place at no\ 292 | further charge. You need not require recipients to copy the\ 293 | Corresponding Source along with the object code. If the place to\ 294 | copy the object code is a network server, the Corresponding Source\ 295 | may be on a different server (operated by you or a third party)\ 296 | that supports equivalent copying facilities, provided you maintain\ 297 | clear directions next to the object code saying where to find the\ 298 | Corresponding Source. Regardless of what server hosts the\ 299 | Corresponding Source, you remain obligated to ensure that it is\ 300 | available for as long as needed to satisfy these requirements.\ 301 | \ 302 | e) Convey the object code using peer-to-peer transmission, provided\ 303 | you inform other peers where the object code and Corresponding\ 304 | Source of the work are being offered to the general public at no\ 305 | charge under subsection 6d.\ 306 | \ 307 | A separable portion of the object code, whose source code is excluded\ 308 | from the Corresponding Source as a System Library, need not be\ 309 | included in conveying the object code work.\ 310 | \ 311 | A "User Product" is either (1) a "consumer product", which means any\ 312 | tangible personal property which is normally used for personal, family,\ 313 | or household purposes, or (2) anything designed or sold for incorporation\ 314 | into a dwelling. In determining whether a product is a consumer product,\ 315 | doubtful cases shall be resolved in favor of coverage. For a particular\ 316 | product received by a particular user, "normally used" refers to a\ 317 | typical or common use of that class of product, regardless of the status\ 318 | of the particular user or of the way in which the particular user\ 319 | actually uses, or expects or is expected to use, the product. A product\ 320 | is a consumer product regardless of whether the product has substantial\ 321 | commercial, industrial or non-consumer uses, unless such uses represent\ 322 | the only significant mode of use of the product.\ 323 | \ 324 | "Installation Information" for a User Product means any methods,\ 325 | procedures, authorization keys, or other information required to install\ 326 | and execute modified versions of a covered work in that User Product from\ 327 | a modified version of its Corresponding Source. The information must\ 328 | suffice to ensure that the continued functioning of the modified object\ 329 | code is in no case prevented or interfered with solely because\ 330 | modification has been made.\ 331 | \ 332 | If you convey an object code work under this section in, or with, or\ 333 | specifically for use in, a User Product, and the conveying occurs as\ 334 | part of a transaction in which the right of possession and use of the\ 335 | User Product is transferred to the recipient in perpetuity or for a\ 336 | fixed term (regardless of how the transaction is characterized), the\ 337 | Corresponding Source conveyed under this section must be accompanied\ 338 | by the Installation Information. But this requirement does not apply\ 339 | if neither you nor any third party retains the ability to install\ 340 | modified object code on the User Product (for example, the work has\ 341 | been installed in ROM).\ 342 | \ 343 | The requirement to provide Installation Information does not include a\ 344 | requirement to continue to provide support service, warranty, or updates\ 345 | for a work that has been modified or installed by the recipient, or for\ 346 | the User Product in which it has been modified or installed. Access to a\ 347 | network may be denied when the modification itself materially and\ 348 | adversely affects the operation of the network or violates the rules and\ 349 | protocols for communication across the network.\ 350 | \ 351 | Corresponding Source conveyed, and Installation Information provided,\ 352 | in accord with this section must be in a format that is publicly\ 353 | documented (and with an implementation available to the public in\ 354 | source code form), and must require no special password or key for\ 355 | unpacking, reading or copying.\ 356 | \ 357 | 7. Additional Terms.\ 358 | \ 359 | "Additional permissions" are terms that supplement the terms of this\ 360 | License by making exceptions from one or more of its conditions.\ 361 | Additional permissions that are applicable to the entire Program shall\ 362 | be treated as though they were included in this License, to the extent\ 363 | that they are valid under applicable law. If additional permissions\ 364 | apply only to part of the Program, that part may be used separately\ 365 | under those permissions, but the entire Program remains governed by\ 366 | this License without regard to the additional permissions.\ 367 | \ 368 | When you convey a copy of a covered work, you may at your option\ 369 | remove any additional permissions from that copy, or from any part of\ 370 | it. (Additional permissions may be written to require their own\ 371 | removal in certain cases when you modify the work.) You may place\ 372 | additional permissions on material, added by you to a covered work,\ 373 | for which you have or can give appropriate copyright permission.\ 374 | \ 375 | Notwithstanding any other provision of this License, for material you\ 376 | add to a covered work, you may (if authorized by the copyright holders of\ 377 | that material) supplement the terms of this License with terms:\ 378 | \ 379 | a) Disclaiming warranty or limiting liability differently from the\ 380 | terms of sections 15 and 16 of this License; or\ 381 | \ 382 | b) Requiring preservation of specified reasonable legal notices or\ 383 | author attributions in that material or in the Appropriate Legal\ 384 | Notices displayed by works containing it; or\ 385 | \ 386 | c) Prohibiting misrepresentation of the origin of that material, or\ 387 | requiring that modified versions of such material be marked in\ 388 | reasonable ways as different from the original version; or\ 389 | \ 390 | d) Limiting the use for publicity purposes of names of licensors or\ 391 | authors of the material; or\ 392 | \ 393 | e) Declining to grant rights under trademark law for use of some\ 394 | trade names, trademarks, or service marks; or\ 395 | \ 396 | f) Requiring indemnification of licensors and authors of that\ 397 | material by anyone who conveys the material (or modified versions of\ 398 | it) with contractual assumptions of liability to the recipient, for\ 399 | any liability that these contractual assumptions directly impose on\ 400 | those licensors and authors.\ 401 | \ 402 | All other non-permissive additional terms are considered "further\ 403 | restrictions" within the meaning of section 10. If the Program as you\ 404 | received it, or any part of it, contains a notice stating that it is\ 405 | governed by this License along with a term that is a further\ 406 | restriction, you may remove that term. If a license document contains\ 407 | a further restriction but permits relicensing or conveying under this\ 408 | License, you may add to a covered work material governed by the terms\ 409 | of that license document, provided that the further restriction does\ 410 | not survive such relicensing or conveying.\ 411 | \ 412 | If you add terms to a covered work in accord with this section, you\ 413 | must place, in the relevant source files, a statement of the\ 414 | additional terms that apply to those files, or a notice indicating\ 415 | where to find the applicable terms.\ 416 | \ 417 | Additional terms, permissive or non-permissive, may be stated in the\ 418 | form of a separately written license, or stated as exceptions;\ 419 | the above requirements apply either way.\ 420 | \ 421 | 8. Termination.\ 422 | \ 423 | You may not propagate or modify a covered work except as expressly\ 424 | provided under this License. Any attempt otherwise to propagate or\ 425 | modify it is void, and will automatically terminate your rights under\ 426 | this License (including any patent licenses granted under the third\ 427 | paragraph of section 11).\ 428 | \ 429 | However, if you cease all violation of this License, then your\ 430 | license from a particular copyright holder is reinstated (a)\ 431 | provisionally, unless and until the copyright holder explicitly and\ 432 | finally terminates your license, and (b) permanently, if the copyright\ 433 | holder fails to notify you of the violation by some reasonable means\ 434 | prior to 60 days after the cessation.\ 435 | \ 436 | Moreover, your license from a particular copyright holder is\ 437 | reinstated permanently if the copyright holder notifies you of the\ 438 | violation by some reasonable means, this is the first time you have\ 439 | received notice of violation of this License (for any work) from that\ 440 | copyright holder, and you cure the violation prior to 30 days after\ 441 | your receipt of the notice.\ 442 | \ 443 | Termination of your rights under this section does not terminate the\ 444 | licenses of parties who have received copies or rights from you under\ 445 | this License. If your rights have been terminated and not permanently\ 446 | reinstated, you do not qualify to receive new licenses for the same\ 447 | material under section 10.\ 448 | \ 449 | 9. Acceptance Not Required for Having Copies.\ 450 | \ 451 | You are not required to accept this License in order to receive or\ 452 | run a copy of the Program. Ancillary propagation of a covered work\ 453 | occurring solely as a consequence of using peer-to-peer transmission\ 454 | to receive a copy likewise does not require acceptance. However,\ 455 | nothing other than this License grants you permission to propagate or\ 456 | modify any covered work. These actions infringe copyright if you do\ 457 | not accept this License. Therefore, by modifying or propagating a\ 458 | covered work, you indicate your acceptance of this License to do so.\ 459 | \ 460 | 10. Automatic Licensing of Downstream Recipients.\ 461 | \ 462 | Each time you convey a covered work, the recipient automatically\ 463 | receives a license from the original licensors, to run, modify and\ 464 | propagate that work, subject to this License. You are not responsible\ 465 | for enforcing compliance by third parties with this License.\ 466 | \ 467 | An "entity transaction" is a transaction transferring control of an\ 468 | organization, or substantially all assets of one, or subdividing an\ 469 | organization, or merging organizations. If propagation of a covered\ 470 | work results from an entity transaction, each party to that\ 471 | transaction who receives a copy of the work also receives whatever\ 472 | licenses to the work the party's predecessor in interest had or could\ 473 | give under the previous paragraph, plus a right to possession of the\ 474 | Corresponding Source of the work from the predecessor in interest, if\ 475 | the predecessor has it or can get it with reasonable efforts.\ 476 | \ 477 | You may not impose any further restrictions on the exercise of the\ 478 | rights granted or affirmed under this License. For example, you may\ 479 | not impose a license fee, royalty, or other charge for exercise of\ 480 | rights granted under this License, and you may not initiate litigation\ 481 | (including a cross-claim or counterclaim in a lawsuit) alleging that\ 482 | any patent claim is infringed by making, using, selling, offering for\ 483 | sale, or importing the Program or any portion of it.\ 484 | \ 485 | 11. Patents.\ 486 | \ 487 | A "contributor" is a copyright holder who authorizes use under this\ 488 | License of the Program or a work on which the Program is based. The\ 489 | work thus licensed is called the contributor's "contributor version".\ 490 | \ 491 | A contributor's "essential patent claims" are all patent claims\ 492 | owned or controlled by the contributor, whether already acquired or\ 493 | hereafter acquired, that would be infringed by some manner, permitted\ 494 | by this License, of making, using, or selling its contributor version,\ 495 | but do not include claims that would be infringed only as a\ 496 | consequence of further modification of the contributor version. For\ 497 | purposes of this definition, "control" includes the right to grant\ 498 | patent sublicenses in a manner consistent with the requirements of\ 499 | this License.\ 500 | \ 501 | Each contributor grants you a non-exclusive, worldwide, royalty-free\ 502 | patent license under the contributor's essential patent claims, to\ 503 | make, use, sell, offer for sale, import and otherwise run, modify and\ 504 | propagate the contents of its contributor version.\ 505 | \ 506 | In the following three paragraphs, a "patent license" is any express\ 507 | agreement or commitment, however denominated, not to enforce a patent\ 508 | (such as an express permission to practice a patent or covenant not to\ 509 | sue for patent infringement). To "grant" such a patent license to a\ 510 | party means to make such an agreement or commitment not to enforce a\ 511 | patent against the party.\ 512 | \ 513 | If you convey a covered work, knowingly relying on a patent license,\ 514 | and the Corresponding Source of the work is not available for anyone\ 515 | to copy, free of charge and under the terms of this License, through a\ 516 | publicly available network server or other readily accessible means,\ 517 | then you must either (1) cause the Corresponding Source to be so\ 518 | available, or (2) arrange to deprive yourself of the benefit of the\ 519 | patent license for this particular work, or (3) arrange, in a manner\ 520 | consistent with the requirements of this License, to extend the patent\ 521 | license to downstream recipients. "Knowingly relying" means you have\ 522 | actual knowledge that, but for the patent license, your conveying the\ 523 | covered work in a country, or your recipient's use of the covered work\ 524 | in a country, would infringe one or more identifiable patents in that\ 525 | country that you have reason to believe are valid.\ 526 | \ 527 | If, pursuant to or in connection with a single transaction or\ 528 | arrangement, you convey, or propagate by procuring conveyance of, a\ 529 | covered work, and grant a patent license to some of the parties\ 530 | receiving the covered work authorizing them to use, propagate, modify\ 531 | or convey a specific copy of the covered work, then the patent license\ 532 | you grant is automatically extended to all recipients of the covered\ 533 | work and works based on it.\ 534 | \ 535 | A patent license is "discriminatory" if it does not include within\ 536 | the scope of its coverage, prohibits the exercise of, or is\ 537 | conditioned on the non-exercise of one or more of the rights that are\ 538 | specifically granted under this License. You may not convey a covered\ 539 | work if you are a party to an arrangement with a third party that is\ 540 | in the business of distributing software, under which you make payment\ 541 | to the third party based on the extent of your activity of conveying\ 542 | the work, and under which the third party grants, to any of the\ 543 | parties who would receive the covered work from you, a discriminatory\ 544 | patent license (a) in connection with copies of the covered work\ 545 | conveyed by you (or copies made from those copies), or (b) primarily\ 546 | for and in connection with specific products or compilations that\ 547 | contain the covered work, unless you entered into that arrangement,\ 548 | or that patent license was granted, prior to 28 March 2007.\ 549 | \ 550 | Nothing in this License shall be construed as excluding or limiting\ 551 | any implied license or other defenses to infringement that may\ 552 | otherwise be available to you under applicable patent law.\ 553 | \ 554 | 12. No Surrender of Others' Freedom.\ 555 | \ 556 | If conditions are imposed on you (whether by court order, agreement or\ 557 | otherwise) that contradict the conditions of this License, they do not\ 558 | excuse you from the conditions of this License. If you cannot convey a\ 559 | covered work so as to satisfy simultaneously your obligations under this\ 560 | License and any other pertinent obligations, then as a consequence you may\ 561 | not convey it at all. For example, if you agree to terms that obligate you\ 562 | to collect a royalty for further conveying from those to whom you convey\ 563 | the Program, the only way you could satisfy both those terms and this\ 564 | License would be to refrain entirely from conveying the Program.\ 565 | \ 566 | 13. Use with the GNU Affero General Public License.\ 567 | \ 568 | Notwithstanding any other provision of this License, you have\ 569 | permission to link or combine any covered work with a work licensed\ 570 | under version 3 of the GNU Affero General Public License into a single\ 571 | combined work, and to convey the resulting work. The terms of this\ 572 | License will continue to apply to the part which is the covered work,\ 573 | but the special requirements of the GNU Affero General Public License,\ 574 | section 13, concerning interaction through a network will apply to the\ 575 | combination as such.\ 576 | \ 577 | 14. Revised Versions of this License.\ 578 | \ 579 | The Free Software Foundation may publish revised and/or new versions of\ 580 | the GNU General Public License from time to time. Such new versions will\ 581 | be similar in spirit to the present version, but may differ in detail to\ 582 | address new problems or concerns.\ 583 | \ 584 | Each version is given a distinguishing version number. If the\ 585 | Program specifies that a certain numbered version of the GNU General\ 586 | Public License "or any later version" applies to it, you have the\ 587 | option of following the terms and conditions either of that numbered\ 588 | version or of any later version published by the Free Software\ 589 | Foundation. If the Program does not specify a version number of the\ 590 | GNU General Public License, you may choose any version ever published\ 591 | by the Free Software Foundation.\ 592 | \ 593 | If the Program specifies that a proxy can decide which future\ 594 | versions of the GNU General Public License can be used, that proxy's\ 595 | public statement of acceptance of a version permanently authorizes you\ 596 | to choose that version for the Program.\ 597 | \ 598 | Later license versions may give you additional or different\ 599 | permissions. However, no additional obligations are imposed on any\ 600 | author or copyright holder as a result of your choosing to follow a\ 601 | later version.\ 602 | \ 603 | 15. Disclaimer of Warranty.\ 604 | \ 605 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\ 606 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\ 607 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY\ 608 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\ 609 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\ 610 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\ 611 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\ 612 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\ 613 | \ 614 | 16. Limitation of Liability.\ 615 | \ 616 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\ 617 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\ 618 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\ 619 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\ 620 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\ 621 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\ 622 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\ 623 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\ 624 | SUCH DAMAGES.\ 625 | \ 626 | 17. Interpretation of Sections 15 and 16.\ 627 | \ 628 | If the disclaimer of warranty and limitation of liability provided\ 629 | above cannot be given local legal effect according to their terms,\ 630 | reviewing courts shall apply local law that most closely approximates\ 631 | an absolute waiver of all civil liability in connection with the\ 632 | Program, unless a warranty or assumption of liability accompanies a\ 633 | copy of the Program in return for a fee.\ 634 | \ 635 | END OF TERMS AND CONDITIONS\ 636 | \ 637 | How to Apply These Terms to Your New Programs\ 638 | \ 639 | If you develop a new program, and you want it to be of the greatest\ 640 | possible use to the public, the best way to achieve this is to make it\ 641 | free software which everyone can redistribute and change under these terms.\ 642 | \ 643 | To do so, attach the following notices to the program. It is safest\ 644 | to attach them to the start of each source file to most effectively\ 645 | state the exclusion of warranty; and each file should have at least\ 646 | the "copyright" line and a pointer to where the full notice is found.\ 647 | \ 648 | \ 649 | Copyright (C) \ 650 | \ 651 | This program is free software: you can redistribute it and/or modify\ 652 | it under the terms of the GNU General Public License as published by\ 653 | the Free Software Foundation, either version 3 of the License, or\ 654 | (at your option) any later version.\ 655 | \ 656 | This program is distributed in the hope that it will be useful,\ 657 | but WITHOUT ANY WARRANTY; without even the implied warranty of\ 658 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\ 659 | GNU General Public License for more details.\ 660 | \ 661 | You should have received a copy of the GNU General Public License\ 662 | along with this program. If not, see .\ 663 | \ 664 | Also add information on how to contact you by electronic and paper mail.\ 665 | \ 666 | If the program does terminal interaction, make it output a short\ 667 | notice like this when it starts in an interactive mode:\ 668 | \ 669 | Copyright (C) \ 670 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\ 671 | This is free software, and you are welcome to redistribute it\ 672 | under certain conditions; type `show c' for details.\ 673 | \ 674 | The hypothetical commands `show w' and `show c' should show the appropriate\ 675 | parts of the General Public License. Of course, your program's commands\ 676 | might be different; for a GUI interface, you would use an "about box".\ 677 | \ 678 | You should also get your employer (if you work as a programmer) or school,\ 679 | if any, to sign a "copyright disclaimer" for the program, if necessary.\ 680 | For more information on this, and how to apply and follow the GNU GPL, see\ 681 | .\ 682 | \ 683 | The GNU General Public License does not permit incorporating your program\ 684 | into proprietary programs. If your program is a subroutine library, you\ 685 | may consider it more useful to permit linking proprietary applications with\ 686 | the library. If this is what you want to do, use the GNU Lesser General\ 687 | Public License instead of this License. But first, please read\ 688 | .} -------------------------------------------------------------------------------- /install_components/resources/ReadMe.rtfd/LucidLogo_nodrop.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/install_components/resources/ReadMe.rtfd/LucidLogo_nodrop.pdf -------------------------------------------------------------------------------- /install_components/resources/ReadMe.rtfd/TXT.rtf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/install_components/resources/ReadMe.rtfd/TXT.rtf -------------------------------------------------------------------------------- /install_components/resources/Welcome.rtfd/LucidLogo_nodrop.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/install_components/resources/Welcome.rtfd/LucidLogo_nodrop.pdf -------------------------------------------------------------------------------- /install_components/resources/Welcome.rtfd/LucidLogo_nodrop.pdf.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/install_components/resources/Welcome.rtfd/LucidLogo_nodrop.pdf.tiff -------------------------------------------------------------------------------- /install_components/resources/Welcome.rtfd/TXT.rtf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/install_components/resources/Welcome.rtfd/TXT.rtf -------------------------------------------------------------------------------- /install_components/resources/background.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/henri/installpkg/61a884aa911f02aefe32a0757a0ef41d2e43cf6c/install_components/resources/background.pdf -------------------------------------------------------------------------------- /installpkg_latest.dmg: -------------------------------------------------------------------------------- 1 | ./builds/installpkg_v0.3.2.dmg -------------------------------------------------------------------------------- /postflight: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Copyright 2011 Henri Shustak 4 | # GNU GPL v3 5 | # 6 | # Lucid Inforamtion Systems 7 | # http://www.lucidsystems.org 8 | # 9 | # Version 1.1 10 | 11 | # uninstall previous broken version 0.0.3 if it is installed. 12 | previous_version="$3/sbin/installpkg.bash" 13 | if [ -f "${previous_version}" ] ; then 14 | rm -f "${previous_version}" 15 | fi 16 | 17 | # uninstall previous broken version 0.1.9 installpkg if it is installed. 18 | previous_version="$3/sbin/installpkg" 19 | if [ -f "${previous_version}" ] ; then 20 | rm -f "${previous_version}" 21 | fi 22 | 23 | # uninstall previous broken version 0.1.9 installpkg man page if it is installed. 24 | previous_version="$3/usr/share/man/man1/installpkg.1" 25 | if [ -f "${previous_version}" ] ; then 26 | rm -f "${previous_version}" 27 | fi 28 | 29 | 30 | exit 0 --------------------------------------------------------------------------------