aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmkport.sh118
-rw-r--r--port-files-master/pkg-descr9
-rw-r--r--port-files-master/pkg-install36
-rw-r--r--port-files-master/pkg-message7
-rw-r--r--port-files-master/pkg-plist64
5 files changed, 234 insertions, 0 deletions
diff --git a/mkport.sh b/mkport.sh
new file mode 100755
index 00000000..f2b640eb
--- /dev/null
+++ b/mkport.sh
@@ -0,0 +1,118 @@
+#!/bin/sh
+# Helper script which will create the port / distfiles
+# from a checked out git repo
+
+# Set the port
+port="x11/lumina"
+dfile="lumina"
+
+which jq 2>/dev/null >/dev/null
+if [ $? -ne 0 ] ; then
+ echo "Requires jq to be installed!"
+ exit 1
+fi
+
+
+GITHUB_ORGANIZATION_NAME="trueos";
+REPO_NAME="trueos-core";
+COMMIT_SHA=$( fetch -o - https://api.github.com/repos/${GITHUB_ORGANIZATION_NAME}/${REPO_NAME}/commits/master 2>/dev/null | jq '.sha' | sed 's/"//g');
+
+if [ -z "$COMMIT_SHA" ] ; then
+ echo "Failed to get sha of trueos-core commit"
+ exit 1
+fi
+
+ghtag="$COMMIT_SHA"
+
+massage_subdir() {
+ cd "$1"
+ if [ $? -ne 0 ] ; then
+ echo "SKIPPING $i"
+ continue
+ fi
+
+comment="`cat Makefile | grep 'COMMENT ='`"
+
+ echo "# \$FreeBSD\$
+#
+
+$comment
+" > Makefile.tmp
+
+ for d in `ls`
+ do
+ if [ "$d" = ".." ]; then continue ; fi
+ if [ "$d" = "." ]; then continue ; fi
+ if [ "$d" = "Makefile" ]; then continue ; fi
+ if [ ! -f "$d/Makefile" ]; then continue ; fi
+ echo " SUBDIR += $d" >> Makefile.tmp
+ done
+ echo "" >> Makefile.tmp
+ echo ".include <bsd.port.subdir.mk>" >> Makefile.tmp
+ mv Makefile.tmp Makefile
+
+}
+
+if [ -z "$1" ] ; then
+ echo "Usage: ./mkports.sh <portstree> <distfiles>"
+ exit 1
+fi
+
+if [ ! -d "${1}/Mk" ] ; then
+ echo "Invalid directory: $1"
+ exit 1
+fi
+
+portsdir="${1}"
+if [ -z "$portsdir" -o "${portsdir}" = "/" ] ; then
+ portsdir="/usr/ports"
+fi
+
+if [ -z "$2" ] ; then
+ distdir="${portsdir}/distfiles"
+else
+ distdir="${2}"
+fi
+if [ ! -d "$distdir" ] ; then
+ mkdir -p ${distdir}
+fi
+
+echo "Sanity checking the repo..."
+OBJS=`find . | grep '\.o$'`
+if [ -n "$OBJS" ] ; then
+ echo "Found the following .o files, remove them first!"
+ echo $OBJS
+ exit 1
+fi
+
+# Get the version
+if [ -e "version" ] ; then
+ verTag=$(cat version)
+else
+ verTag=$(date '+%Y%m%d%H%M')
+fi
+
+# Cleanup old distfiles
+rm ${distdir}/${dfile}-* 2>/dev/null
+
+# Copy ports files
+if [ -d "${portsdir}/${port}" ] ; then
+ rm -rf ${portsdir}/${port} 2>/dev/null
+fi
+cp -r port-files-master ${portsdir}/${port}
+
+# Set the version numbers
+sed -i '' "s|%%CHGVERSION%%|${verTag}|g" ${portsdir}/${port}/Makefile
+sed -i '' "s|%%GHTAG%%|${ghtag}|g" ${portsdir}/${port}/Makefile
+
+# Create the makesums / distinfo file
+cd "${portsdir}/${port}"
+make makesum
+if [ $? -ne 0 ] ; then
+ echo "Failed makesum"
+ exit 1
+fi
+
+# Update port cat Makefile
+tcat=$(echo $port | cut -d '/' -f 1)
+massage_subdir ${portsdir}/${tcat}
diff --git a/port-files-master/pkg-descr b/port-files-master/pkg-descr
new file mode 100644
index 00000000..ce2d052a
--- /dev/null
+++ b/port-files-master/pkg-descr
@@ -0,0 +1,9 @@
+The Lumina Desktop Environment is a lightweight system interface that is
+designed for use on any Unix-like operating system. It takes a
+plugin-based approach, allowing the entire interface to be assembled or
+arranged by each individual user as desired, with a system-wide default
+layout which can be customized by the system administrator. This allows
+every system (or user session) to be designed to maximize the individual
+user's productivity.
+
+WWW: http://lumina-desktop.org
diff --git a/port-files-master/pkg-install b/port-files-master/pkg-install
new file mode 100644
index 00000000..c406d96e
--- /dev/null
+++ b/port-files-master/pkg-install
@@ -0,0 +1,36 @@
+#!/bin/sh
+# Script to install preload.conf
+
+PREFIX=${PKG_PREFIX-/usr/local}
+
+if [ "$2" != "POST-INSTALL" ] ; then
+ exit 0
+fi
+
+# If this is during staging, we can skip for now
+echo $PREFIX | grep -q '/stage/'
+if [ $? -eq 0 ] ; then
+ exit 0
+fi
+
+# Copy over the rc.conf.trueos file
+install -m 644 ${PREFIX}/share/trueos/conf/rc.conf.trueos /etc/rc.conf.trueos
+if [ -e "/etc/default/trueos" -o -e "/etc/defaults/trueos-desktop" ] ; then
+ install -m 644 ${PREFIX}/share/trueos/conf/loader.conf.trueos /boot/loader.conf.trueos
+ install -m 644 ${PREFIX}/share/trueos/conf/brand-trueos.4th /boot/brand-trueos.4th
+else
+ install -m 644 ${PREFIX}/share/trueos/conf/loader.conf.trueos /boot/loader.conf.trueos
+ install -m 644 ${PREFIX}/share/trueos/conf/brand-trueos.4th /boot/brand-trueos.4th
+fi
+
+if [ ! -e "${PREFIX}/etc/trueos.conf" ] ; then
+ # Do the first-time setup
+ echo "Doing first-time bootstrap"
+ if [ -e "/etc/defaults/trueos-desktop" ] ; then
+ tar cvf - -C ${PREFIX}/share/trueos/desktop-defaults/ . 2>/dev/null | tar xvpf - -C / 2>/dev/null
+ else
+ tar cvf - -C ${PREFIX}/share/trueos/server-defaults/ . 2>/dev/null | tar xvpf - -C / 2>/dev/null
+ fi
+fi
+
+exit 0
diff --git a/port-files-master/pkg-message b/port-files-master/pkg-message
new file mode 100644
index 00000000..c3742ad9
--- /dev/null
+++ b/port-files-master/pkg-message
@@ -0,0 +1,7 @@
+The Lumina Desktop Environment has been installed!
+
+An entry for for launching Lumina from a graphical login manager has already been added to the system, but if you with to start Lumina manually, you will need to do one of the following:
+1) Run "start-lumina-desktop" directly from the command line after logging in.
+2) Put the line "exec start-lumina-desktop" at the end of your user's "~/.xinitrc" file before running startx with any special X11 flags
+
+Also note that the system-wide default settings for Lumina are contained in ${PREFIX}/etc/luminaDesktop.conf[.dist]. While it is possible to customize the desktop to the user's liking after logging in, you may want to adjust the default settings as necessary if there are multiple user accounts on this system.
diff --git a/port-files-master/pkg-plist b/port-files-master/pkg-plist
new file mode 100644
index 00000000..b260ae6a
--- /dev/null
+++ b/port-files-master/pkg-plist
@@ -0,0 +1,64 @@
+bin/start-lumina-desktop
+bin/lumina-desktop
+bin/lumina-open
+bin/lumina-config
+bin/lumina-fm
+bin/lumina-screenshot
+bin/lumina-search
+bin/lumina-info
+bin/lumina-xconfig
+bin/lumina-fileinfo
+bin/lumina-textedit
+bin/lte
+etc/luminaDesktop.conf.dist
+lib/libLuminaUtils.so
+lib/libLuminaUtils.so.1
+lib/libLuminaUtils.so.1.0
+lib/libLuminaUtils.so.1.0.0
+include/LuminaXDG.h
+include/LuminaUtils.h
+include/LuminaX11.h
+include/LuminaThemes.h
+include/LuminaOS.h
+include/LuminaSingleApplication.h
+share/applications/lumina-config.desktop
+share/applications/lumina-fileinfo.desktop
+share/applications/lumina-fm.desktop
+share/applications/lumina-info.desktop
+share/applications/lumina-screenshot.desktop
+share/applications/lumina-search.desktop
+share/applications/lumina-support.desktop
+share/applications/lumina-textedit.desktop
+share/applications/lumina-xconfig.desktop
+share/pixmaps/Lumina-DE.png
+share/pixmaps/Insight-FileManager.png
+share/xsessions/Lumina-DE.desktop
+share/lumina-desktop/desktop-background.jpg
+share/lumina-desktop/luminaDesktop.conf
+share/lumina-desktop/fluxbox-init-rc
+share/lumina-desktop/fluxbox-keys
+share/lumina-desktop/Login.ogg
+share/lumina-desktop/Logout.ogg
+share/lumina-desktop/colors/Black.qss.colors
+share/lumina-desktop/colors/Blue-Light.qss.colors
+share/lumina-desktop/colors/Grey-Dark.qss.colors
+share/lumina-desktop/colors/Lumina-Red.qss.colors
+share/lumina-desktop/colors/Lumina-Green.qss.colors
+share/lumina-desktop/colors/Lumina-Purple.qss.colors
+share/lumina-desktop/colors/Lumina-Gold.qss.colors
+share/lumina-desktop/colors/Lumina-Glass.qss.colors
+share/lumina-desktop/colors/PCBSD10-Default.qss.colors
+share/lumina-desktop/colors/Solarized-Dark.qss.colors
+share/lumina-desktop/colors/Solarized-Light.qss.colors
+share/lumina-desktop/themes/Glass.qss.template
+share/lumina-desktop/themes/Lumina-default.qss.template
+share/lumina-desktop/themes/None.qss.template
+share/lumina-desktop/menu-scripts/ls.json.sh
+share/wallpapers/Lumina-DE/Lumina_Wispy_gold.jpg
+share/wallpapers/Lumina-DE/Lumina_Wispy_green.jpg
+share/wallpapers/Lumina-DE/Lumina_Wispy_purple.jpg
+share/wallpapers/Lumina-DE/Lumina_Wispy_blue-grey-zoom.jpg
+share/wallpapers/Lumina-DE/Lumina_Wispy_blue-grey.jpg
+share/wallpapers/Lumina-DE/Lumina_Wispy_grey-blue-zoom.jpg
+share/wallpapers/Lumina-DE/Lumina_Wispy_grey-blue.jpg
+share/wallpapers/Lumina-DE/Lumina_Wispy_red.jpg
bgstack15