summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/italc/PKGBUILD40
-rwxr-xr-xpcr/italc/italc.desktop9
-rw-r--r--pcr/italc/italc.install45
-rw-r--r--pcr/italc/italc.service12
-rw-r--r--pcr/tomb/PKGBUILD2
5 files changed, 107 insertions, 1 deletions
diff --git a/pcr/italc/PKGBUILD b/pcr/italc/PKGBUILD
new file mode 100644
index 000000000..037acdfa5
--- /dev/null
+++ b/pcr/italc/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: M0Rf30
+# Contributor: sirocco
+# Maintainer (Parabola): Esteban Carnevale <alfplayer@mailoo.org>
+
+pkgname=italc
+pkgver=2.0.2
+pkgrel=1
+pkgdesc="Classroom management software which enables teachers to view and control computers"
+arch=('i686' 'x86_64')
+url="http://italc.sourceforge.net/"
+license=('GPL')
+depends=('qt4' 'libxtst' 'libxinerama' 'openssl' 'libjpeg-turbo' 'zlib')
+makedepends=('cmake')
+install=$pkgname.install
+source=(http://prdownloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2
+ italc.service
+ italc.desktop)
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+
+ cmake . -DCMAKE_INSTALL_PREFIX=/usr -DLIB_DIR=/usr/lib
+ make
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+ make install DESTDIR=$pkgdir
+
+# Install Icon and Shortcut
+ install -D ima/data/italc.xpm $pkgdir/usr/share/pixmaps/italc.xpm
+ install -D ../italc.desktop $pkgdir/usr/share/applications/italc.desktop
+
+# Install systemd service
+ install -D ../italc.service $pkgdir/usr/lib/systemd/system/italc.service
+}
+
+md5sums=('c472d438a8807df645111faab6945657'
+ '4a00d5f3a8fe08ce614d75d5684a3b1e'
+ 'c01c880149184705c0a0118f97e7af5c')
diff --git a/pcr/italc/italc.desktop b/pcr/italc/italc.desktop
new file mode 100755
index 000000000..461e703c5
--- /dev/null
+++ b/pcr/italc/italc.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=iTALC
+Comment=
+Icon=/usr/share/pixmaps/italc.xpm
+Exec=italc
+Terminal=false
+Type=Application
+Categories=Education;
+StartupNotify=true
diff --git a/pcr/italc/italc.install b/pcr/italc/italc.install
new file mode 100644
index 000000000..bfefb4857
--- /dev/null
+++ b/pcr/italc/italc.install
@@ -0,0 +1,45 @@
+post_install() {
+ # now search for keys, any other paths?
+ i=0;
+ for file in $( find /etc -regex '.*italc.*public/.*\|.*italc.*private/.*' ) ; do
+ if [ ! -d "$file" ] ; then
+
+ name_key[i]=$file ;
+ i=$((i+1));
+ fi
+ done
+
+ # check if any keys were not found, and create them
+ if [ -z "${name_key[0]}" ] ; then
+ echo "No iTALC keys found"
+ echo "Use this command to generate keys:"
+ echo "imc -role teacher -createkeypair"
+
+ #add group and change group assignment
+ groupadd italc;
+ echo "Check the privilages:"
+ echo "chgrp -R italc /etc/italc/keys/private"
+ echo "chmod -R 640 /etc/italc/keys/private"
+ echo "chmod -R ug+X /etc/italc/keys/private"
+ # keys were found, show the installer and let them know default paths
+ else
+ echo "iTALC keys found: ${name_key[@]}"
+ echo -e "\nNOTE: Default iTALC key locations are: /etc/italc/keys/[public | private]/<role>/key "
+ echo "If your keys are not in these directories, you should move,copy or link them."
+ fi
+
+ #postinstall instruction
+ echo "If you are installing on the master (aka teacher) computer, dont forget to add the user to the italc group."
+
+ # update of the icon cache
+ gtk-update-icon-cache /usr/share/icons/hicolor
+}
+
+post_update() {
+ /bin/true
+}
+
+post_remove() {
+ groupdel italc
+ echo "Remember to backup your keys and delete /etc/italc folder"
+}
diff --git a/pcr/italc/italc.service b/pcr/italc/italc.service
new file mode 100644
index 000000000..0a52ca9b8
--- /dev/null
+++ b/pcr/italc/italc.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Italc Client Daemon
+
+[Service]
+ExecStart=/usr/bin/ica
+ExecReload=/bin/kill -HUP $MAINPID
+KillMode=process
+Restart=always
+
+[Install]
+WantedBy=multi-user.target
+
diff --git a/pcr/tomb/PKGBUILD b/pcr/tomb/PKGBUILD
index febfe6a4a..d43c01727 100644
--- a/pcr/tomb/PKGBUILD
+++ b/pcr/tomb/PKGBUILD
@@ -5,7 +5,7 @@
pkgname=(tomb tomb-kdf)
pkgver=1.5.3
-pkgrel=1
+pkgrel=1.parabola1
pkgdesc="Crypto Undertaker, a simple tool to manage encrypted storage"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.dyne.org/software/tomb/"