remove shaman/aqpm for good - welcome cinstall

This commit is contained in:
philm 2011-01-03 23:12:51 +00:00
parent a929bccb11
commit 431c4d3c64
4 changed files with 0 additions and 290 deletions

View File

@ -1,102 +0,0 @@
# - Try to find Polkit-qt
# Once done this will define
#
# POLKITQT_FOUND - system has Polkit-qt
# POLKITQT_INCLUDE_DIR - the Polkit-qt include directory
# POLKITQT_LIBRARIES - Link these to use all Polkit-qt libs
# POLKITQT_CORE_LIBRARY - Link this to use the polkit-qt-core library only
# POLKITQT_GUI_LIBRARY - Link this to use GUI elements in polkit-qt (polkit-qt-gui)
# POLKITQT_DEFINITIONS - Compiler switches required for using Polkit-qt
# POLKITQT_POLICY_FILES_INSTALL_DIR - The directory where policy files should be installed to.
#
# The minimum required version PolkitQt can be specified by setting the
# POLKITQT_MIN_VERSION variable.
# Copyright (c) 2009, Daniel Nicoletti, <dantti85-pk@yahoo.com.br>
# Copyright (c) 2009, Dario Freddi, <drf54321@gmail.com>
# Copyright (c) 2009, Michal Malek, <michalm@jabster.pl>
# Copyright (c) 2009, Alexander Neundorf, <neundorf@kde.org>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
if (POLKITQT_INCLUDE_DIR AND POLKITQT_GUI_LIBRARY AND POLKITQT_CORE_LIBRARY)
set(PolkitQt_FIND_QUIETLY TRUE)
endif (POLKITQT_INCLUDE_DIR AND POLKITQT_GUI_LIBRARY AND POLKITQT_CORE_LIBRARY)
if (NOT POLKITQT_MIN_VERSION)
set(POLKITQT_MIN_VERSION "0.9.3")
endif (NOT POLKITQT_MIN_VERSION)
if (NOT WIN32)
# use pkg-config to get the directories and then use these values
# in the FIND_PATH() and FIND_LIBRARY() calls
find_package(PkgConfig)
pkg_check_modules(PC_POLKITQT QUIET polkit-qt)
set(POLKITQT_DEFINITIONS ${PC_POLKITQT_CFLAGS_OTHER})
endif (NOT WIN32)
find_path( POLKITQT_INCLUDE_DIR
NAMES polkit-qt/auth.h
PATH_SUFFIXES PolicyKit
)
find_file( POLKITQT_VERSION_FILE
polkit-qt/polkitqtversion.h
PATHS ${POLKITQT_INCLUDE_DIR}
)
set(POLKITQT_VERSION_OK TRUE)
if(POLKITQT_VERSION_FILE)
file(READ ${POLKITQT_VERSION_FILE} POLKITQT_VERSION_CONTENT)
string (REGEX MATCH "POLKITQT_VERSION_STRING \".*\"\n" POLKITQT_VERSION_MATCH "${POLKITQT_VERSION_CONTENT}")
if(POLKITQT_VERSION_MATCH)
string(REGEX REPLACE "POLKITQT_VERSION_STRING \"(.*)\"\n" "\\1" POLKITQT_VERSION ${POLKITQT_VERSION_MATCH})
if(POLKITQT_VERSION STRLESS "${POLKITQT_MIN_VERSION}")
set(POLKITQT_VERSION_OK FALSE)
if(PolkitQt_FIND_REQUIRED)
message(FATAL_ERROR "PolkitQt version ${POLKITQT_VERSION} was found, but it is too old. Please install ${POLKITQT_MIN_VERSION} or newer.")
else(PolkitQt_FIND_REQUIRED)
message(STATUS "PolkitQt version ${POLKITQT_VERSION} is too old. Please install ${POLKITQT_MIN_VERSION} or newer.")
endif(PolkitQt_FIND_REQUIRED)
endif(POLKITQT_VERSION STRLESS "${POLKITQT_MIN_VERSION}")
endif(POLKITQT_VERSION_MATCH)
elseif(POLKITQT_INCLUDE_DIR)
# The version is so old that it does not even have the file
set(POLKITQT_VERSION_OK FALSE)
if(PolkitQt_FIND_REQUIRED)
message(FATAL_ERROR "It looks like PolkitQt is too old. Please install PolkitQt version ${POLKITQT_MIN_VERSION} or newer.")
else(PolkitQt_FIND_REQUIRED)
message(STATUS "It looks like PolkitQt is too old. Please install PolkitQt version ${POLKITQT_MIN_VERSION} or newer.")
endif(PolkitQt_FIND_REQUIRED)
endif(POLKITQT_VERSION_FILE)
find_library( POLKITQT_CORE_LIBRARY
NAMES polkit-qt-core
HINTS ${PC_POLKITQT_LIBDIR}
)
find_library( POLKITQT_GUI_LIBRARY
NAMES polkit-qt-gui
HINTS ${PC_POLKITQT_LIBDIR}
)
set(POLKITQT_LIBRARIES ${POLKITQT_GUI_LIBRARY} ${POLKITQT_CORE_LIBRARY})
include(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set POLKITQT_FOUND to TRUE if
# all listed variables are TRUE
find_package_handle_standard_args(PolkitQt DEFAULT_MSG POLKITQT_INCLUDE_DIR POLKITQT_GUI_LIBRARY POLKITQT_CORE_LIBRARY POLKITQT_VERSION_OK)
mark_as_advanced(POLKITQT_INCLUDE_DIR POLKITQT_CORE_LIBRARY POLKITQT_GUI_LIBRARY POLKITQT_LIBRARIES POLKITQT_VERSION_OK)
if(POLKITQT_FOUND)
get_filename_component(_POLKITQT_INSTALL_PREFIX "${POLKITQT_CORE_LIBRARY}" PATH)
get_filename_component(_POLKITQT_INSTALL_PREFIX "${_POLKITQT_INSTALL_PREFIX}" PATH)
if ( NOT _POLKITQT_INSTALL_PREFIX STREQUAL CMAKE_INSTALL_PREFIX )
message("WARNING: Installation prefix does not match PolicyKit install prefixes. You probably will need to move files installed "
"in ${CMAKE_INSTALL_PREFIX}/${POLKITQT_POLICY_FILES_INSTALL_DIR} and by dbus_add_activation_system_service to the ${_POLKITQT_INSTALL_PREFIX}/${POLKITQT_POLICY_FILES_INSTALL_DIR} prefix")
endif (NOT _POLKITQT_INSTALL_PREFIX STREQUAL CMAKE_INSTALL_PREFIX)
endif(POLKITQT_FOUND)
set(POLKITQT_POLICY_FILES_INSTALL_DIR share/PolicyKit/policy/)

View File

@ -1,69 +0,0 @@
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=aqpm2-git
pkgver=20100524
pkgrel=1
pkgdesc="Qt wrapper around pacman's libalpm"
arch=('i686' 'x86_64')
url="http://chakra-project.org/tools-shaman.html"
license=('GPL')
depends=('pacman>3.3' 'pacman<3.4' 'polkit-qt' 'qjson' 'kdelibs>=4.4.0')
makedepends=('cmake' 'automoc4')
options=('splitdbg' '!splithdr')
groups=('kde-uninstall')
conflicts=("aqpm" "kdemod-aqpm" "kdemod-playground-aqpm-git" "kdemod-aqpm-git")
provides=("aqpm2")
#source=('FindPolkitQt.cmake')
_gitroot="git://git.chakra-project.org/tools/aqpm.git"
_gitname="aqpm"
build() {
msg "Connecting to GIT server...."
[ -d $_gitname ] && {
cd $_gitname
git pull origin
cd ..
msg "Local files have been updated."
} || {
git clone $_gitroot
}
msg "GIT checkout done or server timeout"
rm -rf $_gitname-build
git clone $_gitname $_gitname-build
cd $_gitname-build
# FIXME polkitqt1 temp fix
# cp -fv ${srcdir}/FindPolkitQt.cmake ${srcdir}/$_gitname-build/cmake/modules/FindPolkitQt.cmake
# FIXME there is no examples folder
sed -i -e 's%add_subdirectory(examples)% %' ${srcdir}/$_gitname-build/libaqpm/CMakeLists.txt
msg "Starting make..."
cmake . -DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_AQPM_AUR=ON \
-DKDE4_INTEGRATION=ON \
-DCMAKE_BUILD_TYPE=${_build_type} || return 1
make || return 1
make DESTDIR=$pkgdir install
#install aursearcher
mkdir -p $pkgdir/usr/bin
cp -v libaqpmaur/example/aursearcher $pkgdir/usr/bin
}

View File

@ -1,52 +0,0 @@
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
# original name
_origname=shaman2
pkgname=${_origname}-svn
pkgver=1163590
pkgrel=1
pkgdesc="Pacman frontend based on kdelibs and libaqpm - SVN build"
url="http://chakra-project.org/tools-shaman.html"
license="GPL"
arch=('i686' 'x86_64')
depends=("akabeicore>=20100824" "akabeiclient>=20100824" "kdelibs>=4.5.0" 'dbus')
makedepends=('subversion' 'cmake')
provides=('shaman2')
conflicts=('shaman' 'kdemod-shaman' 'kdemod-playground-shaman-git' 'kdemod-playground-shaman2-svn')
groups=('kde-uninstall')
source=()
md5sums=()
_svnmod="shaman"
_svntrunk="svn://anonsvn.kde.org/home/kde/trunk/playground/sysadmin/shaman"
build() {
cd $startdir/src
msg "Connecting to the SVN server...."
svn co $_svntrunk $_svnmod -r $pkgver
[ -d ./$_svnmod-build ] && rm -Rf ./$_svnmod-build
cp -r ./$_svnmod ./$_svnmod-build
cd ./$_svnmod-build
msg "SVN checkout done or server timeout"
msg "Starting cmake..."
cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo -DSHAMAN_BACKEND=AKABEI || return 1
msg "Starting make..."
make || return 1
msg "Make successful, installing..."
make DESTDIR=${pkgdir} install || return 1
}

View File

@ -1,67 +0,0 @@
post_install() {
if [ -e "/etc/chakra/updates.conf" ] ; then
. /etc/chakra/updates.conf
if [ "$UPDATE_XDG_ICON_DB" = "yes" ]; then
/usr/bin/chakra-update-icons
fi
else
echo " > WARNING"
echo " The package kde-common seems not to be installed,"
echo " this can possibly break the installation. Just install it"
echo " manually after this installation/update, run the following"
echo " commands and restart KDE afterwards:"
echo " sudo chakra-config-updater"
echo " kbuildsycoca4"
echo " "
fi
}
post_upgrade() {
if [ -e "/etc/chakra/updates.conf" ] ; then
. /etc/chakra/updates.conf
if [ "$UPDATE_XDG_ICON_DB" = "yes" ]; then
/usr/bin/chakra-update-icons
fi
else
echo " > WARNING"
echo " The package kde-common seems not to be installed,"
echo " this can possibly break the installation. Just install it"
echo " manually after this installation/update, run the following"
echo " commands and restart KDE afterwards:"
echo " sudo chakra-config-updater"
echo " kbuildsycoca4"
echo " "
fi
}
post_remove() {
if [ -e "/etc/chakra/updates.conf" ] ; then
. /etc/chakra/updates.conf
if [ "$UPDATE_XDG_ICON_DB" = "yes" ]; then
/usr/bin/chakra-update-icons
fi
else
echo " > WARNING"
echo " The package kde-common seems not to be installed,"
echo " this can possibly break the installation. Just install it"
echo " manually after this installation/update, run the following"
echo " commands and restart KDE afterwards:"
echo " sudo chakra-config-updater"
echo " kbuildsycoca4"
echo " "
fi
}
op=$1
shift
$op $*