mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 20:27:15 +08:00
cinstall: update to last version
This commit is contained in:
parent
ab63291c7e
commit
1a8164496c
@ -9,12 +9,14 @@
|
||||
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
||||
|
||||
pkgname=cinstall
|
||||
pkgver=20100808
|
||||
pkgrel=1
|
||||
depends=('kdelibs' 'qt' 'squashfs-tools' 'xz-utils')
|
||||
pkgver=20100810
|
||||
pkgrel=2
|
||||
depends=('kdelibs' 'qt' 'squashfs-tools' 'xz-utils' 'unionfs-fuse' 'fakechroot')
|
||||
pkgdesc="Bundle Creator/Launcher and Package-Manager"
|
||||
arch=("i686" "x86_64")
|
||||
license=('GPL')
|
||||
provides=('cinstall')
|
||||
conflicts=('cinstall')
|
||||
install=$pkgname.install
|
||||
url="http://chakra-project.org/"
|
||||
optdepends=('akabei: for akabei support'
|
||||
|
@ -36,19 +36,26 @@ post_install() {
|
||||
echo "Mod sudoers file"
|
||||
if [ "sudoers: `grep bundle /etc/sudoers`" = "sudoers: " ] ; then
|
||||
echo "%bundle ALL=NOPASSWD: /bin/mount -o loop -t squashfs *" >> /etc/sudoers
|
||||
echo "%bundle ALL=NOPASSWD: /bin/mount -o loop -t ext4 *" >> /etc/sudoers
|
||||
echo "%bundle ALL=NOPASSWD: /bin/umount *" >> /etc/sudoers
|
||||
echo "ensure correct sudoers permissions"
|
||||
chmod -v 0440 /etc/sudoers
|
||||
elif [ "sudoers: `grep "%bundle ALL=NOPASSWD: /bin/umount" /etc/sudoers`" = "sudoers: " ] ; then
|
||||
echo "%bundle ALL=NOPASSWD: /bin/mount -o loop -t ext4 *" >> /etc/sudoers
|
||||
echo "%bundle ALL=NOPASSWD: /bin/umount *" >> /etc/sudoers
|
||||
echo "ensure correct sudoers permissions"
|
||||
chmod -v 0440 /etc/sudoers
|
||||
else
|
||||
echo "sudoers file already modded"
|
||||
fi
|
||||
|
||||
mkdir /etc/gre.d &>/dev/null
|
||||
chmod 775 /etc/gre.d &>/dev/null
|
||||
chown -R root:bundle /etc/gre.d &>/dev/null
|
||||
mkdir -p /etc/gre.d &>/dev/null
|
||||
chmod 775 /etc/gre.d &>/dev/null
|
||||
chown -R root:bundle /etc/gre.d &>/dev/null
|
||||
|
||||
mkdir /etc/cb.conf.d &>/dev/null
|
||||
chmod 775 /etc/cb.conf.d &>/dev/null
|
||||
chown -R root:bundle /etc/cb.conf.d &>/dev/null
|
||||
mkdir -p /etc/cb.conf.d &>/dev/null
|
||||
chmod 775 /etc/cb.conf.d &>/dev/null
|
||||
chown -R root:bundle /etc/cb.conf.d &>/dev/null
|
||||
|
||||
echo "update mime-database"
|
||||
update-mime-database /usr/share/mime &>/dev/null
|
||||
@ -92,20 +99,33 @@ post_upgrade() {
|
||||
echo "Mod sudoers file"
|
||||
if [ "sudoers: `grep bundle /etc/sudoers`" = "sudoers: " ] ; then
|
||||
echo "%bundle ALL=NOPASSWD: /bin/mount -o loop -t squashfs *" >> /etc/sudoers
|
||||
echo "%bundle ALL=NOPASSWD: /bin/mount -o loop -t ext4 *" >> /etc/sudoers
|
||||
echo "%bundle ALL=NOPASSWD: /bin/umount *" >> /etc/sudoers
|
||||
echo "ensure correct sudoers permissions"
|
||||
chmod -v 0440 /etc/sudoers
|
||||
elif [ "sudoers: `grep "%bundle ALL=NOPASSWD: /bin/umount" /etc/sudoers`" = "sudoers: " ] ; then
|
||||
echo "%bundle ALL=NOPASSWD: /bin/mount -o loop -t ext4 *" >> /etc/sudoers
|
||||
echo "%bundle ALL=NOPASSWD: /bin/umount *" >> /etc/sudoers
|
||||
echo "ensure correct sudoers permissions"
|
||||
chmod -v 0440 /etc/sudoers
|
||||
else
|
||||
echo "sudoers file already modded"
|
||||
fi
|
||||
|
||||
mkdir /etc/gre.d &>/dev/null
|
||||
mkdir -p /etc/gre.d &>/dev/null
|
||||
chmod 775 /etc/gre.d &>/dev/null
|
||||
chown -R root:bundle /etc/gre.d &>/dev/null
|
||||
|
||||
mkdir /etc/cb.conf.d &>/dev/null
|
||||
echo "clean /etc/gre.d"
|
||||
rm /etc/gre.d/* -rv
|
||||
|
||||
mkdir -p /etc/cb.conf.d &>/dev/null
|
||||
chmod 775 /etc/cb.conf.d &>/dev/null
|
||||
chown -R root:bundle /etc/cb.conf.d &>/dev/null
|
||||
|
||||
echo "clean /etc/cb.conf.d"
|
||||
rm /etc/cb.conf.d/* -rv
|
||||
|
||||
echo "update mime-database"
|
||||
update-mime-database /usr/share/mime &>/dev/null
|
||||
}
|
||||
@ -119,9 +139,6 @@ post_remove() {
|
||||
/usr/bin/chakra-update-icons
|
||||
fi
|
||||
|
||||
rm /etc/gre.d -r
|
||||
rm /etc/cb.conf.d -r
|
||||
|
||||
else
|
||||
echo " > WARNING"
|
||||
echo " The package kde-common seems not to be installed,"
|
||||
@ -132,6 +149,10 @@ post_remove() {
|
||||
echo " kbuildsycoca4"
|
||||
echo " "
|
||||
fi
|
||||
|
||||
rm /etc/gre.d -r
|
||||
rm /etc/cb.conf.d -r
|
||||
|
||||
}
|
||||
|
||||
op=$1
|
||||
|
Loading…
Reference in New Issue
Block a user