From ab0b7a771e6767d1109b1483b97b25e4967f6b5e Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Fri, 7 Sep 2012 19:17:52 +0200 Subject: system/gnomint: Added (GUI for Certification Authorities). Signed-off-by: Matteo Bernardini --- system/gnomint/README | 5 ++ system/gnomint/doinst.sh | 10 ++++ system/gnomint/gnomint.SlackBuild | 104 +++++++++++++++++++++++++++++++++ system/gnomint/gnomint.info | 10 ++++ system/gnomint/patches/01-ldd.patch | 14 +++++ system/gnomint/patches/02-cflags.patch | 28 +++++++++ system/gnomint/patches/gnutls3.patch | 31 ++++++++++ system/gnomint/slack-desc | 20 +++++++ 8 files changed, 222 insertions(+) create mode 100644 system/gnomint/README create mode 100644 system/gnomint/doinst.sh create mode 100644 system/gnomint/gnomint.SlackBuild create mode 100644 system/gnomint/gnomint.info create mode 100644 system/gnomint/patches/01-ldd.patch create mode 100644 system/gnomint/patches/02-cflags.patch create mode 100644 system/gnomint/patches/gnutls3.patch create mode 100644 system/gnomint/slack-desc (limited to 'system/gnomint') diff --git a/system/gnomint/README b/system/gnomint/README new file mode 100644 index 0000000000..6cf4df7310 --- /dev/null +++ b/system/gnomint/README @@ -0,0 +1,5 @@ +gnomint (certification authorities gui) + +gnomint is a tool for an easy creation and management of Certification +Authorities. It allows a fancy visualization of all the pieces that +conform a CA: x509 certificates, CSRs, CRLs... diff --git a/system/gnomint/doinst.sh b/system/gnomint/doinst.sh new file mode 100644 index 0000000000..7851dc4789 --- /dev/null +++ b/system/gnomint/doinst.sh @@ -0,0 +1,10 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database &> /dev/null +fi + +if [ -x usr/bin/gconftool-2 ]; then + ( cd $PKG/etc/gconf/schemas + GCONF_CONFIG_SOURCE="xml::etc/gconf/gconf.xml.defaults" \ + usr/bin/gconftool-2 --makefile-install-rule \ + etc/gconf/schemas/gnomint.schemas >/dev/null 2>&1 ) +fi diff --git a/system/gnomint/gnomint.SlackBuild b/system/gnomint/gnomint.SlackBuild new file mode 100644 index 0000000000..ebcff53680 --- /dev/null +++ b/system/gnomint/gnomint.SlackBuild @@ -0,0 +1,104 @@ +#!/bin/sh + +# Slackware build script for gnomint +# Copyright Matteo Bernardini , Pisa, Italy, 2012 +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=gnomint +VERSION=${VERSION:-1.2.1} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +DOCS="AUTHORS BUGS COPYING ChangeLog INSTALL MAINTAINERS NEWS README TODO" + +set -e # Exit on most errors + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +# Apply two patches from Debian nd one from OpenSUSE (thanks a lot, fellas!) +for i in $(ls $CWD/patches); do + patch -p1 < $CWD/patches/$i +done + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$PKG + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/system/gnomint/gnomint.info b/system/gnomint/gnomint.info new file mode 100644 index 0000000000..35b6314374 --- /dev/null +++ b/system/gnomint/gnomint.info @@ -0,0 +1,10 @@ +PRGNAM="gnomint" +VERSION="1.2.1" +HOMEPAGE="http://sourceforge.net/projects/gnomint/" +DOWNLOAD="http://downloads.sf.net/gnomint/gnomint-1.2.1.tar.gz" +MD5SUM="f09f55abe094232fbea2a2d13ef600e6" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Matteo Bernardini" +EMAIL="ponce@slackbuilds.org" diff --git a/system/gnomint/patches/01-ldd.patch b/system/gnomint/patches/01-ldd.patch new file mode 100644 index 0000000000..0f92419fb0 --- /dev/null +++ b/system/gnomint/patches/01-ldd.patch @@ -0,0 +1,14 @@ +Author: Daniel Baumann +Description: Explicitly linking against libgcrypt. + +diff -Naurp gnomint.orig/src/Makefile.in gnomint/src/Makefile.in +--- gnomint.orig/src/Makefile.in 2011-05-17 19:57:50.013883380 +0200 ++++ gnomint/src/Makefile.in 2011-05-17 19:57:37.209981808 +0200 +@@ -347,6 +347,7 @@ gnomint_cli_SOURCES = \ + + gnomint_cli_LDADD = \ + $(GNOMINTCLI_LIBS) \ ++ $(LIBGCRYPT_LIBS) \ + $(LIBGNUTLS_LIBS) \ + $(SQLITE_LIBS) \ + $(READLINE_LIBS) \ diff --git a/system/gnomint/patches/02-cflags.patch b/system/gnomint/patches/02-cflags.patch new file mode 100644 index 0000000000..59e4f71943 --- /dev/null +++ b/system/gnomint/patches/02-cflags.patch @@ -0,0 +1,28 @@ +Author: Daniel Baumann +Description: + Don't hardcode CFLAGS and respect the environemnt (Closes: #634395). + +diff -Naurp gnomint.orig/configure gnomint/configure +--- gnomint.orig/configure 2011-09-08 07:58:09.324752523 +0000 ++++ gnomint/configure 2011-09-08 07:59:20.113103539 +0000 +@@ -14338,7 +14338,7 @@ fi + + + if test "x$GCC" = "xyes"; then +- CFLAGS="-Wall -Werror" ++ CFLAGS="${CFLAGS:--Wall -Werror}" + if test "x$use_debug" = "xYes"; then + CFLAGS="$CFLAGS -g -O0" + fi +diff -Naurp gnomint.orig/configure.in gnomint/configure.in +--- gnomint.orig/configure.in 2011-09-08 07:58:09.328752536 +0000 ++++ gnomint/configure.in 2011-09-08 07:59:20.113103539 +0000 +@@ -181,7 +181,7 @@ dnl + + dnl + if test "x$GCC" = "xyes"; then +- CFLAGS="-Wall -Werror" ++ CFLAGS="${CFLAGS:--Wall -Werror}" + if test "x$use_debug" = "xYes"; then + CFLAGS="$CFLAGS -g -O0" + fi diff --git a/system/gnomint/patches/gnutls3.patch b/system/gnomint/patches/gnutls3.patch new file mode 100644 index 0000000000..8ee3371884 --- /dev/null +++ b/system/gnomint/patches/gnutls3.patch @@ -0,0 +1,31 @@ +diff -aur a/src/import.c b/src/import.c +--- a/src/import.c 2010-05-31 23:01:37.000000000 +0200 ++++ b/src/import.c 2012-06-27 17:50:06.993671796 +0200 +@@ -695,7 +695,7 @@ + + // After having all the parts unencrypted, we import all certificates first. + for (i=0; i