From 318011b2d1ee396f63aaace723dbcbd292de0bf8 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 10 Mar 2016 11:57:03 +0200 Subject: [PATCH] malfs mekanizma guncelleme --- bin/hatali_derleme | 1 + bin/tamir_talimat | 5 ++ talimatname/genel/alsa-utils/talimat | 1 - talimatname/genel/cups/talimat | 1 - talimatname/genel/dbus/talimat | 1 - talimatname/genel/docbook-xml/talimat | 51 +++++++++---------- talimatname/genel/flwm/talimat | 4 +- talimatname/genel/glib/talimat | 1 - talimatname/genel/gtk2/talimat | 1 - talimatname/genel/lxdm/talimat | 1 - talimatname/genel/mariadb/talimat | 1 - talimatname/genel/pcre/talimat | 1 - talimatname/genel/popt/talimat | 1 - talimatname/genel/postgresql/talimat | 1 - talimatname/genel/python3/talimat | 1 - talimatname/genel/sddm/talimat | 1 - talimatname/genel/virtualbox/talimat | 4 +- talimatname/genel/wmfs2/talimat | 6 +-- talimatname/genel/xcb-proto/talimat | 1 - talimatname/genel/xorg-proto/talimat | 1 - talimatname/genel/xorg-util-macros/talimat | 1 - talimatname/genel/xorg-xbitmaps/talimat | 1 - .../temel-ek/kernel/kernel.post-install | 4 ++ .../nfs-utils/nfs-utils.service.kur-kos | 25 +++++++++ talimatname/temel/rsync/rsync.service.kur-kos | 12 +++++ 25 files changed, 79 insertions(+), 49 deletions(-) create mode 100755 bin/hatali_derleme create mode 100644 talimatname/temel-ek/kernel/kernel.post-install create mode 100644 talimatname/temel-ek/nfs-utils/nfs-utils.service.kur-kos create mode 100644 talimatname/temel/rsync/rsync.service.kur-kos diff --git a/bin/hatali_derleme b/bin/hatali_derleme new file mode 100755 index 000000000..f1b75c1ab --- /dev/null +++ b/bin/hatali_derleme @@ -0,0 +1 @@ +grep -rnw '$1' -e "derlenmesi" diff --git a/bin/tamir_talimat b/bin/tamir_talimat index 443228c70..c9386781c 100755 --- a/bin/tamir_talimat +++ b/bin/tamir_talimat @@ -1,2 +1,7 @@ +sed --in-place '/PKGMK_GROUPS/d' */talimat +grep -rli 'PKGMK_SOURCE_DIR' * | xargs -i@ sed -i 's/PKGMK_SOURCE_DIR/DERLEME_KAYNAKDIZIN/g' @ +grep -rli 'PKGMK_IGNORE_FOOTPRINT="yes"' * | xargs -i@ sed -i 's/PKGMK_IGNORE_FOOTPRINT="yes"/DOSYAIZLEME_YOKSAY="evet"/g' @ +grep -rli 'PKGMK_IGNORE_MD5SUM="yes"' * | xargs -i@ sed -i 's/PKGMK_IGNORE_MD5SUM="yes"/MD5SUM_YOKSAY="evet"/g' @ +grep -rli 'PKGMK_GROUPS' * | xargs -i@ sed -i 's/PKGMK_SOURCE_DIR/DERLEME_KAYNAKDIZIN/g' @ grep -rli '${PKGMK_BUILDVER}' * | xargs -i@ sed -i 's/${PKGMK_BUILDVER}/#$version-/g' @ grep -rli 'cards.tar' * | xargs -i@ sed -i 's/cards.tar/mps/g' @ diff --git a/talimatname/genel/alsa-utils/talimat b/talimatname/genel/alsa-utils/talimat index cd4a9e4cb..dddab1d8b 100644 --- a/talimatname/genel/alsa-utils/talimat +++ b/talimatname/genel/alsa-utils/talimat @@ -5,7 +5,6 @@ run=(gawk) -PKGMK_GROUPS=(man) name=alsa-utils version=1.1.0 release=1 diff --git a/talimatname/genel/cups/talimat b/talimatname/genel/cups/talimat index 23bc0673f..743335a04 100644 --- a/talimatname/genel/cups/talimat +++ b/talimatname/genel/cups/talimat @@ -5,7 +5,6 @@ run=(xdg-utils gtk-update-icon-cache) -PKGMK_GROUPS=(man devel) name=cups version=2.1.3 release=1 diff --git a/talimatname/genel/dbus/talimat b/talimatname/genel/dbus/talimat index 6e5face89..83d2499c4 100644 --- a/talimatname/genel/dbus/talimat +++ b/talimatname/genel/dbus/talimat @@ -2,7 +2,6 @@ # URL: http://www.freedesktop.org/wiki/Software/dbus/ # Packager: pierre at nutyx dot org # Depends on: expat xorg-libx11 xorg-libsm xorg-libice -PKGMK_GROUPS=(doc devel) name=dbus version=1.10.6 diff --git a/talimatname/genel/docbook-xml/talimat b/talimatname/genel/docbook-xml/talimat index b4af9cf3e..421a05460 100644 --- a/talimatname/genel/docbook-xml/talimat +++ b/talimatname/genel/docbook-xml/talimat @@ -1,45 +1,43 @@ -# Description: A widely used XML scheme for writing documentation and help -# URL: http://www.docbook.org -# Packager: pierre at nutyx dot org -# Depends on: libxml2 unzip - +# Description: An document type definitions for verification of XML data files against the DocBook rule set. +# URL: http://www.docbook.org/ +# Maintainer: Matt Housh, jaeger at crux dot ninja +# Depends on: libxml2 unzip name=docbook-xml version=4.5 release=1 - -source=(http://www.docbook.org/xml/4.5/docbook-xml-4.5.zip \ - http://www.docbook.org/xml/4.4/docbook-xml-4.4.zip \ - http://www.docbook.org/xml/4.3/docbook-xml-4.3.zip \ - http://www.docbook.org/xml/4.2/docbook-xml-4.2.zip \ +source=(http://www.docbook.org/xml/4.5/docbook-xml-4.5.zip + http://www.docbook.org/xml/4.4/docbook-xml-4.4.zip + http://www.docbook.org/xml/4.3/docbook-xml-4.3.zip + http://www.docbook.org/xml/4.2/docbook-xml-4.2.zip http://www.docbook.org/xml/4.1.2/docbkx412.zip) -# override pkgmk's unpack_source() function so that source files -# don't get munged together in the same directory and lost - unpack_source() { # similarly-named versions first - for DB_VER in 4.5 4.4 4.3 4.2 - do - mkdir $SRC/$name-$DB_VER - unzip -q -d $SRC/$name-$DB_VER $PKGMK_SOURCE_DIR/$name-$DB_VER.zip + local DTDVERSION + for DTDVERSION in 4.5 4.4 4.3 4.2; do + install -d $SRC/$name-$DTDVERSION + unzip -q -d $SRC/$name-$DTDVERSION $DERLEME_KAYNAKDIZIN/$name-$DTDVERSION.zip done + # now 4.1.2, named differently - mkdir $SRC/$name-4.1.2 - unzip -q -d $SRC/$name-4.1.2 $PKGMK_SOURCE_DIR/docbkx412.zip + install -d $SRC/$name-4.1.2 + unzip -q -d $SRC/$name-4.1.2 $DERLEME_KAYNAKDIZIN/docbkx412.zip } build() { # copy to proper locations - for DB_VER in 4.5 4.4 4.3 4.2 4.1.2 + for DTDVERSION in 4.5 4.4 4.3 4.2 4.1.2 do - mkdir -p $PKG/usr/share/xml/docbook/xml-dtd-$DB_VER - cp -a $SRC/$name-$DB_VER/{ent,docbook.cat,*.dtd,*.mod} \ - $PKG/usr/share/xml/docbook/xml-dtd-$DB_VER/ + install -d $PKG/usr/share/xml/docbook/xml-dtd-$DTDVERSION + cp -a $SRC/$name-$DTDVERSION/{ent,docbook.cat,*.dtd,*.mod} \ + $PKG/usr/share/xml/docbook/xml-dtd-$DTDVERSION/ done + find $PKG -type f \( -perm -g=r -o -perm -g=w \) -exec chmod -g=rw {} \+ + # create initial docbook-xml catalog - mkdir -p $PKG/etc/xml + install -d $PKG/etc/xml xmlcatalog --noout --create $PKG/etc/xml/$name # add each version to the initial catalog @@ -257,5 +255,6 @@ build() { "http://www.oasis-open.org/docbook/xml/4.1.2" \ "file:///usr/share/xml/docbook/xml-dtd-4.1.2" \ $PKG/etc/xml/$name -} - + + rm $PKG/usr/share/xml/docbook/xml-dtd-4.{4,5}/ent/README +} diff --git a/talimatname/genel/flwm/talimat b/talimatname/genel/flwm/talimat index cc541a99f..3839e09b2 100644 --- a/talimatname/genel/flwm/talimat +++ b/talimatname/genel/flwm/talimat @@ -10,8 +10,8 @@ release=1 source=(flwm.desktop) build() { - git clone https://github.com/bbidulock/flwm.git $PKGMK_SOURCE_DIR/flwm - cp -r $PKGMK_SOURCE_DIR/flwm $SRC/ && cd $SRC/flwm + git clone https://github.com/bbidulock/flwm.git $DERLEME_KAYNAKDIZIN/flwm + cp -r $DERLEME_KAYNAKDIZIN/flwm $SRC/ && cd $SRC/flwm make || return 1 mkdir -p $PKG/usr/share/xsessions diff --git a/talimatname/genel/glib/talimat b/talimatname/genel/glib/talimat index e68bd4a22..130ef2373 100644 --- a/talimatname/genel/glib/talimat +++ b/talimatname/genel/glib/talimat @@ -2,7 +2,6 @@ # URL: http://www.gtk.org/ # Packager: tnut at nutyx dot org # Depends on: libffi pcre python elfutils -PKGMK_GROUPS=(man devel doc ) name=glib version=2.46.2 diff --git a/talimatname/genel/gtk2/talimat b/talimatname/genel/gtk2/talimat index 431d85895..cbeb0a995 100644 --- a/talimatname/genel/gtk2/talimat +++ b/talimatname/genel/gtk2/talimat @@ -12,7 +12,6 @@ run=(gtk-update-icon-cache) # de fichiers binaires n'est pas très important. La variable PKGMK_GROUP redéfini les groupes # Ici, le groupe lib ne sera pas construit -PKGMK_GROUPS=(devel man doc) name=gtk2 version=2.24.29 diff --git a/talimatname/genel/lxdm/talimat b/talimatname/genel/lxdm/talimat index 35f858dbb..e6714649c 100644 --- a/talimatname/genel/lxdm/talimat +++ b/talimatname/genel/lxdm/talimat @@ -4,7 +4,6 @@ # Packager: tnut at nutyx dot org # Depends on: iso-codes librsvg xorg-libxinerama xorg-libxrandr xorg-libxcursor xorg-libxdamage gtk2 consolekit2 -PKGMK_GROUPS=() run=(consolekit2 librsvg) name=lxdm diff --git a/talimatname/genel/mariadb/talimat b/talimatname/genel/mariadb/talimat index 77f5c4281..0e7fae1a9 100644 --- a/talimatname/genel/mariadb/talimat +++ b/talimatname/genel/mariadb/talimat @@ -9,7 +9,6 @@ release=1 source=(https://downloads.mariadb.org/interstitial/mariadb-$version/source/mariadb-$version.tar.gz ) -PKGMK_GROUPS=(devel lib man doc service) build() { source /etc/blfs-bootscripts diff --git a/talimatname/genel/pcre/talimat b/talimatname/genel/pcre/talimat index 6e6198c85..75b6e1855 100644 --- a/talimatname/genel/pcre/talimat +++ b/talimatname/genel/pcre/talimat @@ -7,7 +7,6 @@ version=8.38 release=1 source=( ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/$name-$version.tar.bz2 ) -PKGMK_GROUPS=(devel man doc) build() { cd $name-$version diff --git a/talimatname/genel/popt/talimat b/talimatname/genel/popt/talimat index 7eae697d1..e0fe0bbd6 100644 --- a/talimatname/genel/popt/talimat +++ b/talimatname/genel/popt/talimat @@ -3,7 +3,6 @@ # Maintainer: - n3npq # Packager: pierre at nutyx dot org # Depends on: -PKGMK_GROUPS=(devel man doc) name=popt version=1.16 diff --git a/talimatname/genel/postgresql/talimat b/talimatname/genel/postgresql/talimat index f5a7bf1cb..073731541 100644 --- a/talimatname/genel/postgresql/talimat +++ b/talimatname/genel/postgresql/talimat @@ -4,7 +4,6 @@ # Depends on: python libxml2 libxslt openldap # variable groupe -PKGMK_GROUPS=(lib doc man devel service) name=postgresql version=9.5.0 diff --git a/talimatname/genel/python3/talimat b/talimatname/genel/python3/talimat index 5245bc674..3685c7366 100644 --- a/talimatname/genel/python3/talimat +++ b/talimatname/genel/python3/talimat @@ -2,7 +2,6 @@ # URL: http://www.python.org # Packager: alienus at nutyx dot org, tnut at nutyx dot org # Depends on: sqlite expat -PKGMK_GROUPS=(devel man doc) name=python3 version=3.5.1 diff --git a/talimatname/genel/sddm/talimat b/talimatname/genel/sddm/talimat index a2ccf1422..e08d319ff 100644 --- a/talimatname/genel/sddm/talimat +++ b/talimatname/genel/sddm/talimat @@ -2,7 +2,6 @@ # URL: https://www.kde.org/ # Packager: pierre at nutyx dot org, fanch at nutyx dot org, tnut at nutyx dot org # Depends on: cmake qt5 upower consolekit2 -PKGMK_GROUPS=() run=(consolekit2) name=sddm release=1 diff --git a/talimatname/genel/virtualbox/talimat b/talimatname/genel/virtualbox/talimat index cf55afd5e..70b3ccb37 100644 --- a/talimatname/genel/virtualbox/talimat +++ b/talimatname/genel/virtualbox/talimat @@ -9,8 +9,8 @@ release=1 _name=Oracle_VM_VirtualBox_Extension_Pack _release=104815 -PKGMK_IGNORE_FOOTPRINT="yes" -PKGMK_IGNORE_MD5SUM="yes" +DOSYAIZLEME_YOKSAY="evet" +MD5SUM_YOKSAY="evet" [ "`uname -m`" == "i686" ] && _ARCH=x86 diff --git a/talimatname/genel/wmfs2/talimat b/talimatname/genel/wmfs2/talimat index 41811bd3e..aa0261332 100644 --- a/talimatname/genel/wmfs2/talimat +++ b/talimatname/genel/wmfs2/talimat @@ -10,13 +10,13 @@ release=1 source=() build() { - if cd $PKGMK_SOURCE_DIR/wmfs ; then + if cd $DERLEME_KAYNAKDIZIN/wmfs ; then git pull else - git clone git://github.com/xorg62/wmfs.git $PKGMK_SOURCE_DIR/wmfs + git clone git://github.com/xorg62/wmfs.git $DERLEME_KAYNAKDIZIN/wmfs fi - cp -r $PKGMK_SOURCE_DIR/wmfs $SRC/ && cd $SRC/wmfs + cp -r $DERLEME_KAYNAKDIZIN/wmfs $SRC/ && cd $SRC/wmfs ./configure --prefix /usr \ --xdg-config-dir /etc/xdg \ diff --git a/talimatname/genel/xcb-proto/talimat b/talimatname/genel/xcb-proto/talimat index c7cff7585..16f8f6eed 100644 --- a/talimatname/genel/xcb-proto/talimat +++ b/talimatname/genel/xcb-proto/talimat @@ -2,7 +2,6 @@ # URL: http://xcb.freedesktop.org # Packager: pierre at nutyx dot org, tnut at nutyx dot org # Depends on: python -PKGMK_GROUPS=() name=xcb-proto version=1.11 release=1 diff --git a/talimatname/genel/xorg-proto/talimat b/talimatname/genel/xorg-proto/talimat index 8bb98700e..8bce89cea 100644 --- a/talimatname/genel/xorg-proto/talimat +++ b/talimatname/genel/xorg-proto/talimat @@ -2,7 +2,6 @@ # URL: http://xorg.freedesktop.org # Packager: pierre at nutyx dot org, tnut at nutyx dot org -PKGMK_GROUPS=(doc man) section="proto" name=xorg-proto version=7.7 diff --git a/talimatname/genel/xorg-util-macros/talimat b/talimatname/genel/xorg-util-macros/talimat index 0ab1ce6ff..ccfa1a761 100644 --- a/talimatname/genel/xorg-util-macros/talimat +++ b/talimatname/genel/xorg-util-macros/talimat @@ -2,7 +2,6 @@ # URL: http://www.x.org # Packager: pierre at nutyx dot org, tnut at nutyx dot org -PKGMK_GROUPS=() _name=util-macros name=xorg-util-macros version=1.19.0 diff --git a/talimatname/genel/xorg-xbitmaps/talimat b/talimatname/genel/xorg-xbitmaps/talimat index 76915355a..047de92fd 100644 --- a/talimatname/genel/xorg-xbitmaps/talimat +++ b/talimatname/genel/xorg-xbitmaps/talimat @@ -2,7 +2,6 @@ # URL: http://xorg.freedesktop.org # Packager: pierre at nutyx dot org # Depends on: -PKGMK_GROUPS=() _name=xbitmaps name=xorg-xbitmaps version=1.1.1 diff --git a/talimatname/temel-ek/kernel/kernel.post-install b/talimatname/temel-ek/kernel/kernel.post-install new file mode 100644 index 000000000..5db8dfcad --- /dev/null +++ b/talimatname/temel-ek/kernel/kernel.post-install @@ -0,0 +1,4 @@ +mkinitramfs 4.4.1-milis +[ -f boot/initrd ] && rm boot/initrd +ln -sf initrd-4.4.1-milis boot/initrd +ln -sf kernel-4.4.1 boot/kernel diff --git a/talimatname/temel-ek/nfs-utils/nfs-utils.service.kur-kos b/talimatname/temel-ek/nfs-utils/nfs-utils.service.kur-kos new file mode 100644 index 000000000..213a6f72d --- /dev/null +++ b/talimatname/temel-ek/nfs-utils/nfs-utils.service.kur-kos @@ -0,0 +1,25 @@ +if [ ! -f /etc/sysconfig/nfs-server ]; then + cat > /etc/sysconfig/nfs-server << "EOF" +PORT="2049" +PROCESSES="8" +QUOTAS="no" +KILLDELAY="10" +EOF +fi + +if [ ! -f /etc/exports ]; then + cat > /etc/exports << "EOF" +# /etc/exports - exports(5) - directories exported to NFS clients +# +# Example for NFSv2 and NFSv3: +# /srv/home hostname1(rw,sync) hostname2(ro,sync) +# Example for NFSv4: +# /srv/nfs4 hostname1(rw,sync,fsid=0) +# /srv/nfs4/home hostname1(rw,sync,nohide) +# Using Kerberos and integrity checking: +# /srv/nfs4 *(rw,sync,sec=krb5i,fsid=0) +# /srv/nfs4/home *(rw,sync,sec=krb5i,nohide) +# +# Use `exportfs -arv` to reload. +EOF +fi diff --git a/talimatname/temel/rsync/rsync.service.kur-kos b/talimatname/temel/rsync/rsync.service.kur-kos new file mode 100644 index 000000000..dfbe47e8d --- /dev/null +++ b/talimatname/temel/rsync/rsync.service.kur-kos @@ -0,0 +1,12 @@ +if [ ! -f /etc/rsyncd.conf ]; then + cat > /etc/rsyncd.conf << "EOF" +# use chroot = yes +# [site] +# path = /home/saravane/nutyx.org +# comment = Site web +# auth users = tnut +# read only = yes +# exclude from = /etc/saravane_rsync_exclude_files.txt +# secrets file = /etc/rsyncd.secrets +EOF +fi