diff --git a/talimatname/genel/8/8cc/fix_cflags.patch b/talimatname/genel/8/8cc/fix_cflags.patch new file mode 100644 index 000000000..472bfc9f5 --- /dev/null +++ b/talimatname/genel/8/8cc/fix_cflags.patch @@ -0,0 +1,10 @@ +diff --git a/Makefile b/Makefile +index 98d3b4d..ff1b937 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,4 +1,4 @@ +-CFLAGS=-Wall -Wno-strict-aliasing -std=gnu11 -g -I. -O0 ++CFLAGS+=-Wall -Wno-strict-aliasing -std=gnu11 -I. + OBJS=cpp.o debug.o dict.o gen.o lex.o vector.o parse.o buffer.o map.o \ + error.o path.o file.o set.o + TESTS := $(patsubst %.c,%.bin,$(filter-out test/testmain.c,$(wildcard test/*.c))) diff --git a/talimatname/genel/8/8cc/talimat b/talimatname/genel/8/8cc/talimat new file mode 100644 index 000000000..b82cee2d3 --- /dev/null +++ b/talimatname/genel/8/8cc/talimat @@ -0,0 +1,21 @@ +# Tanım: Basit bir c11 derleyici +# URL: https://github.com/rui314/8cc +# Paketçi: Cihan_Alkan +# Gerekler: +# Grup: geliştirme + +isim=8cc +surum=git +devir=1 + +kaynak=(fix_cflags.patch) + +derle() { + git_indir https://github.com/rui314/$isim $isim + cd $SRC/$isim + patch -p1 < ../fix_cflags.patch + make + install -Dm755 8cc "$PKG/usr/bin/8cc" + cp -rf $SRC/$isim/include $PKG/usr/ + install -Dm644 LICENSE "$PKG/usr/share/licenses/$isim/LICENSE" +} diff --git a/talimatname/genel/9/9base/9 b/talimatname/genel/9/9base/9 new file mode 100644 index 000000000..de6a2d070 --- /dev/null +++ b/talimatname/genel/9/9base/9 @@ -0,0 +1,13 @@ +#!/bin/sh + +PLAN9=${PLAN9:-/opt/plan9} +export PLAN9 + +case "$PATH" in + $PLAN9/bin:*) ;; + *) export PATH=$PLAN9/bin:$PATH ;; +esac + +if [ $# -gt 0 ]; then + exec "$@" +fi diff --git a/talimatname/genel/9/9base/plan9.sh b/talimatname/genel/9/9base/plan9.sh new file mode 100644 index 000000000..3fb0b9813 --- /dev/null +++ b/talimatname/genel/9/9base/plan9.sh @@ -0,0 +1,4 @@ +export PLAN9=/opt/plan9 +export PATH=$PATH:$PLAN9/bin +export MANPATH=$MANPATH:$PLAN9/man + diff --git a/talimatname/genel/9/9base/talimat b/talimatname/genel/9/9base/talimat new file mode 100644 index 000000000..846f88b49 --- /dev/null +++ b/talimatname/genel/9/9base/talimat @@ -0,0 +1,33 @@ +# Tanım: Plan9 araçlarının unix uyarlaması +# URL: http://tools.suckless.org/9base +# Paketçi: Cihan_Alkan +# Gerekler: python +# Grup: sistem + + +isim=9base +surum=6 +devir=1 +kaynak=(http://dl.suckless.org/tools/$isim-$surum.tar.gz + 9 + plan9.sh) + +derle() { + + cd $isim-$surum + sed -i 's#^OBJTYPE\s.*$#OBJTYPE = x86_64#' config.mk + + sed -i 's#^PREFIX\s.*$#PREFIX = /opt/plan9#' config.mk + sed -i 's#^CFLAGS\s*+=#CFLAGS += -DPLAN9PORT #' config.mk + + # Force dynamic linking. Several of the programs in 9base won't work + # when statically linked against the latest glibc. + sed -i '/-static/d' config.mk + + make + + make DESTDIR="$PKG" install + install -m755 ../9 "$PKG/opt/plan9/bin/" + install -D -m755 ../plan9.sh "$PKG/etc/profile.d/plan9.sh" + install -D -m644 LICENSE "$PKG/usr/share/licenses/9base/LICENSE" +} diff --git a/talimatname/genel/g/geos/talimat b/talimatname/genel/g/geos/talimat new file mode 100644 index 000000000..2c596cc93 --- /dev/null +++ b/talimatname/genel/g/geos/talimat @@ -0,0 +1,20 @@ +# Tanım: Java Topology Suite'in C++ portu +# URL: http://trac.osgeo.org/geos/ +# Paketçi: Cihan_Alkan +# Gerekler: +# Grup: geliştirme + +isim=geos +surum=3.6.2 +devir=1 + +kaynak=(http://download.osgeo.org/$isim/$isim-$surum.tar.bz2) + +derle() { + + cd $isim-$surum + + ./configure --prefix=/usr + make + make DESTDIR="${PKG}" install +} diff --git a/talimatname/genel/g/gnet/talimat b/talimatname/genel/g/gnet/talimat new file mode 100644 index 000000000..2268de3a1 --- /dev/null +++ b/talimatname/genel/g/gnet/talimat @@ -0,0 +1,18 @@ +# Tanım: Basit bir ağ küt/üphanesi +# URL: http://live.gnome.org/GNetLibrary +# Paketçi: milisarge +# Gerekler: glib +# Grup: kütüphane + +isim=gnet +surum=2.0.8 +devir=1 +kaynak=(http://ftp.gnome.org/pub/GNOME/sources/gnet/${surum%.*}/gnet-2.0.8.tar.bz2) + +derle() { + cd ${isim}-${surum} + LIBS+="-lglib-2.0" ./configure --prefix=/usr + make + make DESTDIR="${PKG}" install + rm -rf $PKG/usr/share/gtk-doc +} diff --git a/talimatname/genel/g/gocr/talimat b/talimatname/genel/g/gocr/talimat new file mode 100644 index 000000000..0ccdef7c2 --- /dev/null +++ b/talimatname/genel/g/gocr/talimat @@ -0,0 +1,26 @@ +# Tanım: Açık kaynaklı karakter tanıma (OCR) +# URL: http://jocr.sourceforge.net/index.html +# Paketçi: Cihan_Alkan +# Gerekler: netpbm +# Grup: ofis_düzenleyici + +isim=gocr +surum=0.51 +devir=1 +kaynak=(https://www-e.uni-magdeburg.de/jschulen/ocr/gocr-${surum}.tar.gz) + +derle() { + + cd "$SRC"/$isim-$surum + export CFLAGS=-fPIC + ./configure --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib + make -j1 all libs + + mkdir -p "$PKG"/usr/lib + make DESTDIR="$PKG" libdir=/usr/lib/ bindir=/usr/bin install + (cd "$PKG"/usr/lib/ && rm -f libPgm2asc.so && ln -s `echo libPgm2asc*.so` libPgm2asc.so) + install -D -m644 doc/gocr.html "$PKG"/usr/share/doc/gocr/gocr.html + for i in pgm2asc.h gocr.h; do + install -D -m644 src/$i "$PKG"/usr/include/gocr/$i + done +} diff --git a/talimatname/genel/g/goocanvas/talimat b/talimatname/genel/g/goocanvas/talimat new file mode 100644 index 000000000..b4c7bddae --- /dev/null +++ b/talimatname/genel/g/goocanvas/talimat @@ -0,0 +1,30 @@ +# Tanım: GTK + için bir cairo canvas widget'ı +# URL: https://wiki.gnome.org/Projects/GooCanvas +# Paketçi: Cihan_Alkan +# Gerekler: gobject-introspection python-gobject python3-gobject cairo glib2 gtk3 +# Grup: kütüphane + +isim=goocanvas +surum=2.0.4 +devir=1 +kaynak=(https://download.gnome.org/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + + cp -r $isim-$surum python2 + + cd $isim-$surum + ./configure --prefix=/usr PYTHON=python3 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + make + + cd "$SRC/python2" + ./configure --prefix=/usr PYTHON=python + + cd $SRC/$isim-$surum + make DESTDIR="$PKG" install + + cd "$SRC/python2" + make -C bindings/python DESTDIR="$PKG" install + +} diff --git a/talimatname/genel/g/gpicview/0001-Fix-displaying-images-with-GTK3.patch b/talimatname/genel/g/gpicview/0001-Fix-displaying-images-with-GTK3.patch new file mode 100644 index 000000000..f82c5c1ce --- /dev/null +++ b/talimatname/genel/g/gpicview/0001-Fix-displaying-images-with-GTK3.patch @@ -0,0 +1,173 @@ +From 2a497a06d9297712778b9bfde3f21a2bd867967c Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= +Date: Tue, 21 Feb 2017 01:06:06 +0100 +Subject: [PATCH] Fix displaying images with GTK3 + +We have to use the cairo context provided by the draw event, otherwise the scrolling does not work properly. + +Don't paint the whole image when scale == 1, it's unneeded and slow. +--- + src/image-view.c | 86 +++++++++++++++++++++++++++++--------------------------- + 1 file changed, 44 insertions(+), 42 deletions(-) + +diff --git a/src/image-view.c b/src/image-view.c +index b367f2a..820b843 100644 +--- a/src/image-view.c ++++ b/src/image-view.c +@@ -24,11 +24,10 @@ + static void image_view_finalize(GObject *iv); + + static void image_view_clear( ImageView* iv ); +-static gboolean on_idle( ImageView* iv ); + static void calc_image_area( ImageView* iv ); +-static void paint( ImageView* iv, GdkRectangle* invalid_rect, GdkInterpType type ); + + #if GTK_CHECK_VERSION(3, 0, 0) ++static void paint( ImageView* iv, GdkRectangle* invalid_rect, GdkInterpType type, cairo_t* cr ); + + static void image_view_paint( ImageView* iv, cairo_t* cr ); + +@@ -37,6 +36,8 @@ static void on_get_preferred_height( GtkWidget* widget, gint* minimal_height, gi + static gboolean on_draw_event(GtkWidget* widget, cairo_t* cr); + + #else // GTK2 ++static gboolean on_idle( ImageView* iv ); ++static void paint( ImageView* iv, GdkRectangle* invalid_rect, GdkInterpType type ); + + static void image_view_paint( ImageView* iv, GdkEventExpose* evt ); + +@@ -268,16 +269,13 @@ void image_view_paint( ImageView* iv, cairo_t *cr ) + { + cairo_rectangle_int_t rectangle; + cairo_region_get_rectangle(region, i, &rectangle); +- paint( iv, &rectangle, GDK_INTERP_NEAREST ); ++ paint( iv, &rectangle, GDK_INTERP_NEAREST, cr ); + } + + cairo_region_destroy (region); +- +- if( 0 == iv->idle_handler ) +- iv->idle_handler = g_idle_add( (GSourceFunc)on_idle, iv ); + } + } +-#else ++#else // GTK2 + + gboolean on_expose_event( GtkWidget* widget, GdkEventExpose* evt ) + { +@@ -390,6 +388,8 @@ void image_view_set_scale( ImageView* iv, gdouble new_scale, GdkInterpType type + } + } + ++#if GTK_CHECK_VERSION(3, 0, 0) ++#else // GTK2 + gboolean on_idle( ImageView* iv ) + { + GDK_THREADS_ENTER(); +@@ -435,6 +435,7 @@ gboolean on_idle( ImageView* iv ) + iv->idle_handler = 0; + return FALSE; + } ++#endif + + void calc_image_area( ImageView* iv ) + { +@@ -460,7 +461,11 @@ void calc_image_area( ImageView* iv ) + } + } + ++#if GTK_CHECK_VERSION(3, 0, 0) ++void paint( ImageView* iv, GdkRectangle* invalid_rect, GdkInterpType type, cairo_t* cr ) ++#else // GTK2 + void paint( ImageView* iv, GdkRectangle* invalid_rect, GdkInterpType type ) ++#endif + { + GdkRectangle rect; + if( ! gdk_rectangle_intersect( invalid_rect, &iv->img_area, &rect ) ) +@@ -470,51 +475,48 @@ void paint( ImageView* iv, GdkRectangle* invalid_rect, GdkInterpType type ) + int dest_y; + + GdkPixbuf* src_pix = NULL; +- if( iv->scale == 1.0 ) // original size +- { +- src_pix = (GdkPixbuf*)g_object_ref( iv->pix ); +- dest_x = iv->img_area.x; +- dest_y = iv->img_area.y; +- } +- else // scaling is needed ++ GdkPixbuf* scaled_pix = NULL; ++ ++ dest_x = rect.x; ++ dest_y = rect.y; ++ ++ rect.x -= iv->img_area.x; ++ rect.y -= iv->img_area.y; ++ ++ int src_x = (int)floor( ((gdouble)rect.x) / iv->scale + 0.5 ); ++ int src_y = (int)floor( ((gdouble)rect.y) / iv->scale + 0.5 ); ++ int src_w = (int)floor( ((gdouble)rect.width) / iv->scale + 0.5 ); ++ int src_h = (int)floor( ((gdouble)rect.height) / iv->scale + 0.5 ); ++ if( src_y > gdk_pixbuf_get_height( iv->pix ) ) ++ src_y = gdk_pixbuf_get_height( iv->pix ); ++ if( src_x + src_w > gdk_pixbuf_get_width( iv->pix ) ) ++ src_w = gdk_pixbuf_get_width( iv->pix ) - src_x; ++ if( src_y + src_h > gdk_pixbuf_get_height( iv->pix ) ) ++ src_h = gdk_pixbuf_get_height( iv->pix ) - src_y; ++ //g_debug("orig src: x=%d, y=%d, w=%d, h=%d", ++ // src_x, src_y, src_w, src_h ); ++ ++ if ((src_w > 0) && (src_h > 0)) + { +- dest_x = rect.x; +- dest_y = rect.y; +- +- rect.x -= iv->img_area.x; +- rect.y -= iv->img_area.y; +- +- GdkPixbuf* scaled_pix = NULL; +- int src_x = (int)floor( ((gdouble)rect.x) / iv->scale + 0.5 ); +- int src_y = (int)floor( ((gdouble)rect.y) / iv->scale + 0.5 ); +- int src_w = (int)floor( ((gdouble)rect.width) / iv->scale + 0.5 ); +- int src_h = (int)floor( ((gdouble)rect.height) / iv->scale + 0.5 ); +- if( src_y > gdk_pixbuf_get_height( iv->pix ) ) +- src_y = gdk_pixbuf_get_height( iv->pix ); +- if( src_x + src_w > gdk_pixbuf_get_width( iv->pix ) ) +- src_w = gdk_pixbuf_get_width( iv->pix ) - src_x; +- if( src_y + src_h > gdk_pixbuf_get_height( iv->pix ) ) +- src_h = gdk_pixbuf_get_height( iv->pix ) - src_y; +- //g_debug("orig src: x=%d, y=%d, w=%d, h=%d", +- // src_x, src_y, src_w, src_h ); +- +- if ((src_w > 0) && (src_h > 0)) +- { +- src_pix = gdk_pixbuf_new_subpixbuf( iv->pix, src_x, src_y, src_w, src_h ); +- scaled_pix = gdk_pixbuf_scale_simple( src_pix, rect.width, rect.height, type ); +- g_object_unref( src_pix ); +- src_pix = scaled_pix; +- } +- ++ src_pix = gdk_pixbuf_new_subpixbuf( iv->pix, src_x, src_y, src_w, src_h ); ++ scaled_pix = gdk_pixbuf_scale_simple( src_pix, rect.width, rect.height, type ); ++ g_object_unref( src_pix ); ++ src_pix = scaled_pix; + } + + if( G_LIKELY(src_pix) ) + { + GtkWidget* widget = (GtkWidget*)iv; ++#if GTK_CHECK_VERSION(3, 0, 0) ++#else // GTK2 + cairo_t *cr = gdk_cairo_create (gtk_widget_get_window(widget)); ++#endif + gdk_cairo_set_source_pixbuf (cr, src_pix, dest_x, dest_y); + cairo_paint (cr); ++#if GTK_CHECK_VERSION(3, 0, 0) ++#else // GTK2 + cairo_destroy (cr); ++#endif + + g_object_unref( src_pix ); + } +-- +2.11.1 + diff --git a/talimatname/genel/g/gpicview/talimat b/talimatname/genel/g/gpicview/talimat new file mode 100644 index 000000000..3e0691092 --- /dev/null +++ b/talimatname/genel/g/gpicview/talimat @@ -0,0 +1,27 @@ +# Tanım: Hafif resim görüntüleyici +# URL: https://lxde.org/ +# Paketçi: Cihan_Alkan +# Gerekler: gtk3 intltool +# Grup: medya + +isim=gpicview +surum=0.2.5 +devir=1 +kaynak=(https://downloads.sourceforge.net/lxde/$isim-$surum.tar.xz + 0001-Fix-displaying-images-with-GTK3.patch) + +derle() { + + cd $isim-$surum + + # Fix displaying images with GTK3 + # https://sourceforge.net/p/lxde/patches/542/ + patch -Np1 -i ../0001-Fix-displaying-images-with-GTK3.patch + + # Apply only one main category + sed -i '/^Categories=/ s/Utility;//' gpicview.desktop.in + + ./configure --sysconfdir=/etc --prefix=/usr --enable-gtk3 + make + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/g/gradle/gradle.sh b/talimatname/genel/g/gradle/gradle.sh new file mode 100644 index 000000000..dc03c9ad2 --- /dev/null +++ b/talimatname/genel/g/gradle/gradle.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env sh +export GRADLE_HOME=/usr/share/java/gradle diff --git a/talimatname/genel/g/gradle/talimat b/talimatname/genel/g/gradle/talimat new file mode 100644 index 000000000..a0c3b29c2 --- /dev/null +++ b/talimatname/genel/g/gradle/talimat @@ -0,0 +1,49 @@ +# Tanım: JVM için güçlü yapı sistemi +# URL: https://gradle.org/ +# Paketçi: Cihan_Alkan +# Gerekler: openjdk +# Grup: geliştirme + +isim=gradle +surum=4.4.1 +devir=1 +kaynak=(https://services.gradle.org/distributions/${isim}-${surum}-all.zip + $isim.sh) +derle() { + + cd ${isim}-${surum} + + # install profile.d script + install -Dm 755 "${SRC}/${isim}.sh" "${PKG}/etc/profile.d/${isim}.sh" + + # create the necessary directory structure + install -d "${PKG}/usr/share/java/${isim}/bin" + install -d "${PKG}/usr/share/java/${isim}/lib/plugins" + install -d "${PKG}/usr/share/java/${isim}/init.d" + install -d "${PKG}/usr/bin" + + # copy across jar files + install -Dm 644 lib/*.jar "${PKG}/usr/share/java/${isim}/lib" + install -Dm 644 lib/plugins/*.jar "${PKG}/usr/share/java/${isim}/lib/plugins" + + # copy across supporting text documentation and scripts + install -m 644 NOTICE "${PKG}/usr/share/java/${isim}" + install -m 644 LICENSE "${PKG}/usr/share/java/${isim}" + install -m 644 *.html "${PKG}/usr/share/java/${isim}" + install -m 755 bin/gradle "${PKG}/usr/share/java/${isim}/bin" + install -m 644 init.d/*.* "${PKG}/usr/share/java/${isim}/init.d" + + # link gradle script to /usr/bin + ln -s /usr/share/java/${isim}/bin/${isim} "${PKG}/usr/bin" + + # create the necessary directory structure + install -d "${PKG}/usr/share/java/gradle/docs" + install -d "${PKG}/usr/share/java/gradle/samples" + + # copy across documentation and samples + cp -r docs/* "${PKG}/usr/share/java/gradle/docs" + cp -r samples/* "${PKG}/usr/share/java/gradle/samples" + + install -d "${PKG}/usr/share/java/gradle/src" + cp -r src/* "${PKG}/usr/share/java/gradle/src" +} diff --git a/talimatname/genel/g/gssdp/talimat b/talimatname/genel/g/gssdp/talimat new file mode 100755 index 000000000..bbea82d31 --- /dev/null +++ b/talimatname/genel/g/gssdp/talimat @@ -0,0 +1,17 @@ +# Tanım: SSDP üzerinden kaynak keşif ve duyurunun taşınması için bir GObject tabanlı API +# URL: http://gupnp.org/ +# Paketçi: milisarge +# Gerekler: libsoup + +isim=gssdp +surum=0.14.11 +devir=1 +kaynak=(http://ftp.gnome.org/pub/gnome/sources/${isim}/${version:0:4}/${isim}-${surum}.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + --disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/g/gstreamer-plugins-bad/gstreamer-plugins-bad-0.10.23-compatibility-1.patch b/talimatname/genel/g/gstreamer-plugins-bad/gstreamer-plugins-bad-0.10.23-compatibility-1.patch new file mode 100644 index 000000000..f885cee30 --- /dev/null +++ b/talimatname/genel/g/gstreamer-plugins-bad/gstreamer-plugins-bad-0.10.23-compatibility-1.patch @@ -0,0 +1,29 @@ +--- a/ext/vp8/gstvp8utils.h ++++ b/ext/vp8/gstvp8utils.h +@@ -25,23 +25,6 @@ + + G_BEGIN_DECLS + +-/* Some compatibility defines for older libvpx versions */ +-#ifndef VPX_IMG_FMT_I420 +-#define VPX_IMG_FMT_I420 IMG_FMT_I420 +-#endif +- +-#ifndef VPX_PLANE_Y +-#define VPX_PLANE_Y PLANE_Y +-#endif +- +-#ifndef VPX_PLANE_U +-#define VPX_PLANE_U PLANE_U +-#endif +- +-#ifndef VPX_PLANE_V +-#define VPX_PLANE_V PLANE_V +-#endif +- + const char * gst_vpx_error_name (vpx_codec_err_t status); + + G_END_DECLS +-- +2.1.2 + diff --git a/talimatname/genel/g/gstreamer-plugins-bad/talimat b/talimatname/genel/g/gstreamer-plugins-bad/talimat new file mode 100644 index 000000000..22ee1d414 --- /dev/null +++ b/talimatname/genel/g/gstreamer-plugins-bad/talimat @@ -0,0 +1,24 @@ +# Tanım: GStreamer Bad Plug-ins, diğerlerine kıyasla eşit olmayan bir dizi eklentidir. +# URL: https://gstreamer.freedesktop.org/modules/gst-plugins-bad.html +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: gstreamer-plugins-base faac faad2 libmms libpng libvpx xvid jasper + +isim=gstreamer-plugins-bad +surum=0.10.23 +devir=1 +_isim=gst-plugins-bad +kaynak=(http://gstreamer.freedesktop.org/src/$_name/$_name-$surum.tar.bz2 + $isim-$surum-compatibility-1.patch) + +derle() { +cd $_name-$surum +patch -Np1 -i ../$isim-$surum-compatibility-1.patch +./configure --prefix=/usr \ +--with-gtk=3.0 \ +--disable-examples \ +--with-package-isim='Milis gstreamer-plugins-bad package' \ +--with-package-origin='https://milis.gungre.ch/' + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/g/gstreamer-plugins-base/talimat b/talimatname/genel/g/gstreamer-plugins-base/talimat new file mode 100644 index 000000000..376003404 --- /dev/null +++ b/talimatname/genel/g/gstreamer-plugins-base/talimat @@ -0,0 +1,22 @@ +# Tanım: GStreamer multimedya çerçevesi taban eklentileri +# URL: http://gstreamer.freedesktop.org/modules/gst-plugins-base.html +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: gstreamer alsa-lib pango cdparanoia libogg libtheora libvorbis xorg-libxv xorg-libxcursor xorg-libxdamage xorg-libxrandr xorg-libxinerama + +isim=gstreamer-plugins-base +surum=0.10.36 +devir=1 +_isim=gst-plugins-base +kaynak=(https://gstreamer.freedesktop.org/src/${_name}/${_name}-$surum.tar.xz + http://www.linuxfromscratch.org/patches/downloads/gst-plugins-base/gst-plugins-base-0.10.36-gcc_4_9_0_i686-1.patch) + +derle() { +cd ${_name}-$surum +[ "`uname -m`" == "i686" ] && patch -Np1 -i ../gst-plugins-base-0.10.36-gcc_4_9_0_i686-1.patch +./configure --prefix=/usr \ +--with-package-isim='Milis gstreamer-plugins-base package' \ +--with-package-origin='https://milis.gungre.ch/' + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/g/gstreamer-plugins-ffmpeg/talimat b/talimatname/genel/g/gstreamer-plugins-ffmpeg/talimat new file mode 100644 index 000000000..dd2d1f15d --- /dev/null +++ b/talimatname/genel/g/gstreamer-plugins-ffmpeg/talimat @@ -0,0 +1,28 @@ +# Tanım: GStreamer multimedya çerçevesi ffmpeg eklentileri +# URL: http://gstreamer.freedesktop.org/modules/gst-plugins-base.html +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: gstreamer gstreamer-plugins-base yasm sdl + +isim=gstreamer-plugins-ffmpeg +surum=0.10.13 +devir=1 +_isim=gst-ffmpeg +kaynak=(http://gstreamer.freedesktop.org/src/${_name}/${_name}-$surum.tar.bz2 + http://downloads.nutyx.org/files/patchs/$isim/h264_qpel_mmx.patch) + +derle() { +unset CFLAGS +unset CXXFLAGS + +cd ${_name}-$surum +patch -Np1 -i ../h264_qpel_mmx.patch +./configure --prefix=/usr \ +--sysconfdir=/etc \ +--localstatedir=/var \ +--with-ffmpeg-extra-configure="--enable-runtime-cpudetect" \ +--with-package-isim='PisiLinux gstreamer-ffmpeg package' \ +--with-package-origin='https://milis.gungre.ch/' + +make || make -j1 +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/g/gstreamer-plugins-good/talimat b/talimatname/genel/g/gstreamer-plugins-good/talimat new file mode 100644 index 000000000..17aba674e --- /dev/null +++ b/talimatname/genel/g/gstreamer-plugins-good/talimat @@ -0,0 +1,23 @@ +# Tanım: GStreamer İyi Eklentileri, kaliteli kod, doğru işlevsellik ve tercih edilen lisansımız (eklenti kodu için LGPL, destekleyici kitaplık için LGPL veya LGPL uyumlu) olması düşünülen eklentiler dizisidir. +# URL: http://gstreamer.freedesktop.org/modules/gst-plugins-good.html +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: gstreamer-plugins-base cairo flac libjpeg-turbo libpng xorg-libx11 libsoup speex aalib taglib libcdio + +isim=gstreamer-plugins-good +surum=0.10.31 +devir=1 +_isim=gst-plugins-good +kaynak=(http://gstreamer.freedesktop.org/src/${_name}/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +sed -i -e '/input:/d' sys/v4l2/gstv4l2bufferpool.c +sed -i -e "/case V4L2_CID_HCENTER/d" -e "/case V4L2_CID_VCENTER/d" sys/v4l2/v4l2_calls.c +./configure --prefix=/usr \ + --sysconfdir=/etc \ + --with-gtk=3.0 \ + --with-package-isim='Milis gstreamer-plugins-good package' \ + --with-package-origin='https://milis.gungre.ch/' +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/g/gstreamer-plugins-python/talimat b/talimatname/genel/g/gstreamer-plugins-python/talimat new file mode 100644 index 000000000..e91b0f7e7 --- /dev/null +++ b/talimatname/genel/g/gstreamer-plugins-python/talimat @@ -0,0 +1,18 @@ +# Tanım: GStreamer multimedya çerçevesi python eklentileri +# URL: http://gstreamer.freedesktop.org/ +# Paketçi: milisarge +# Gerekler: gstreamer gstreamer-plugins-base python-gobject2 + +isim=gstreamer-plugins-python +surum=0.10.22 +devir=1 +_isim=gst-python +kaynak=(http://gstreamer.freedesktop.org/src/${_name}/${_name}-$surum.tar.bz2) + +derle() { +cd ${_name}-$surum +./configure --prefix=/usr + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/g/gstreamer-plugins-ugly/talimat b/talimatname/genel/g/gstreamer-plugins-ugly/talimat new file mode 100644 index 000000000..9eb3387e8 --- /dev/null +++ b/talimatname/genel/g/gstreamer-plugins-ugly/talimat @@ -0,0 +1,22 @@ +# Tanım: GStreamer Çirkin Eklentileri, kaliteli ve doğru işlevsellikleri olan bir takım eklentilerdir ancak bunları dağıtmak sorun yaratabilir. +# URL: http://gstreamer.freedesktop.org/modules/gst-plugins-ugly.html +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: gstreamer-plugins-base lame libdvdnav libdvdread libdvdcss liba52 libmad libmpeg2 + +isim=gstreamer-plugins-ugly +surum=0.10.19 +devir=1 +_isim=gst-plugins-ugly +kaynak=( http://gstreamer.freedesktop.org/src/${_name}/${_name}-$surum.tar.xz + http://www.linuxfromscratch.org/patches/downloads/gst-plugins-ugly/gst-plugins-ugly-$surum-libcdio_fixes-1.patch ) + +derle() { + cd ${_name}-$surum + patch -Np1 -i ../gst-plugins-ugly-$surum-libcdio_fixes-1.patch + ./configure --prefix=/usr \ + --with-package-isim="Milis gstreamer-plugins-ugly" \ + --with-package-origin="https://milis.gungre.ch/" + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/g/gstreamer/talimat b/talimatname/genel/g/gstreamer/talimat new file mode 100644 index 000000000..e1f62cd41 --- /dev/null +++ b/talimatname/genel/g/gstreamer/talimat @@ -0,0 +1,25 @@ +# Tanım: GStreamer ana kütüphanedir. Başlıkları, temel kitaplık dosyalarını ve temel öğeleri içerir. +# URL: https://gstreamer.freedesktop.org/modules/gstreamer.html +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: glib libxml2 gsl gobject-introspection + +isim=gstreamer +surum=0.10.36 +devir=1 +kaynak=(http://gstreamer.freedesktop.org/src/$isim/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum +sed -i -e '/YYLEX_PARAM/d' \ + -e '/parse-param.*scanner/i %lex-param { void *scanner }' \ + gst/parse/grammar.y + +./configure --prefix=/usr \ +--disable-static \ +--with-package-isim="GStreamer for Milis" \ +--with-package-origin="https://milis.gungre.ch/" \ + +make +make DESTDIR=$PKG install +rm -rf $PKG/usr/share/gtk-doc +} diff --git a/talimatname/genel/g/gstreamer1-plugins-bad/talimat b/talimatname/genel/g/gstreamer1-plugins-bad/talimat new file mode 100644 index 000000000..36d6a095c --- /dev/null +++ b/talimatname/genel/g/gstreamer1-plugins-bad/talimat @@ -0,0 +1,20 @@ +# Tanım: GStreamer Bad Plug-ins, diğerlerine kıyasla eşit olmayan bir dizi eklentidir. +# URL: http://gstreamer.freedesktop.org/modules/gst-plugins-bad.html +# Paketçi: milisarge +# Gerekler: gstreamer1-plugins-base libdvdread libdvdnav faac faad2 libexif libmpeg2 mpg123 + +isim=gstreamer1-plugins-bad +surum=1.6.3 +devir=1 +_isim=gst-plugins-bad +kaynak=(http://gstreamer.freedesktop.org/src/${_name}/${_name}-$surum.tar.xz ) + +derle() { +cd ${_name}-$surum +./configure --prefix=/usr \ +--with-package-isim="Gstreamer Plugins Bad for Milis" \ +--with-package-origin="https://milis.gungre.ch/" + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/g/gstreamer1-plugins-base/talimat b/talimatname/genel/g/gstreamer1-plugins-base/talimat new file mode 100644 index 000000000..fab27b613 --- /dev/null +++ b/talimatname/genel/g/gstreamer1-plugins-base/talimat @@ -0,0 +1,20 @@ +# Tanım: GStreamer multimedya çerçevesi taban eklentileri +# URL: http://gstreamer.freedesktop.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: gstreamer1 alsa-lib gobject-introspection iso-codes libtheora libvorbis pango + +isim=gstreamer1-plugins-base +surum=1.6.3 +devir=1 +_isim=gst-plugins-base +kaynak=(http://gstreamer.freedesktop.org/src/${_name}/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +./configure --prefix=/usr \ +--with-package-isim="GStreamer Base Plugins for Milis" \ +--with-package-origin="https://milis.gungre.ch/" + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/g/gstreamer1-plugins-good/talimat b/talimatname/genel/g/gstreamer1-plugins-good/talimat new file mode 100644 index 000000000..154b44005 --- /dev/null +++ b/talimatname/genel/g/gstreamer1-plugins-good/talimat @@ -0,0 +1,20 @@ +# Tanım: GStreamer İyi Eklentileri, kaliteli kod, doğru işlevsellik ve tercih edilen lisansımız (eklenti kodu için LGPL, destekleyici kitaplık için LGPL veya LGPL uyumlu) olması düşünülen eklentiler dizisidir. +# URL: http://gstreamer.freedesktop.org/ +# Paketçi: milisarge +# Gerekler: gstreamer1-plugins-base flac gdk-pixbuf libjpeg-turbo libpng libsoup libvpx + +isim=gstreamer1-plugins-good +surum=1.6.3 +devir=1 +_isim=gst-plugins-good +kaynak=(http://gstreamer.freedesktop.org/src/${_name}/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +./configure --prefix=/usr \ +--with-package-isim="GStreamer Good Plugins Milis" \ +--with-package-origin="https://milis.gungre.ch/" + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/g/gstreamer1-plugins-libav/talimat b/talimatname/genel/g/gstreamer1-plugins-libav/talimat new file mode 100644 index 000000000..699f4151b --- /dev/null +++ b/talimatname/genel/g/gstreamer1-plugins-libav/talimat @@ -0,0 +1,20 @@ +# Tanım: Birçok kod çözücü ve kodlayıcı içeren Libav tabanlı eklenti +# URL: http://gstreamer.freedesktop.org/modules/gst-libav.html +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: gstreamer1-plugins-base yasm + +isim=gstreamer1-plugins-libav +surum=1.6.3 +devir=1 +_isim=gst-libav +kaynak=(http://gstreamer.freedesktop.org/src/${_name}/${_name}-$surum.tar.xz ) + +derle() { +cd ${_name}-$surum + +./configure --prefix=/usr \ +--with-package-isim="GStreamer Libav Plugins Milis" \ +--with-package-origin="https://milis.gungre.ch/" +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/g/gstreamer1-plugins-ugly/talimat b/talimatname/genel/g/gstreamer1-plugins-ugly/talimat new file mode 100644 index 000000000..bf7cbfaaa --- /dev/null +++ b/talimatname/genel/g/gstreamer1-plugins-ugly/talimat @@ -0,0 +1,21 @@ +# Tanım: GStreamer Çirkin Eklentileri, kaliteli ve doğru işlevsellikleri olan bir takım eklentilerdir ancak bunları dağıtmak sorun yaratabilir. +# URL: http://gstreamer.freedesktop.org/modules/gst-plugins-ugly.html +# Paketçi: milisarge +# Gerekler: gstreamer1-plugins-base lame libdvdread liba52 libmad libmpeg2 + +isim=gstreamer1-plugins-ugly +surum=1.6.3 +devir=1 +_isim=gst-plugins-ugly +kaynak=(http://gstreamer.freedesktop.org/src/${_name}/${_name}-$surum.tar.xz ) + +derle() { +cd ${_name}-$surum + +./configure --prefix=/usr \ +--with-package-isim="GStreamer Ugly Plugins Milis" \ +--with-package-origin="https://milis.gungre.ch/" + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/g/gstreamer1/talimat b/talimatname/genel/g/gstreamer1/talimat new file mode 100644 index 000000000..75c58ea54 --- /dev/null +++ b/talimatname/genel/g/gstreamer1/talimat @@ -0,0 +1,20 @@ +# Tanım: GStreamer ana kütüphanedir. Başlıkları, temel kitaplık dosyalarını ve temel öğeleri içerir. +# URL: http://gstreamer.freedesktop.org/ +# Paketçi: alihan-ozturk8@hotmail.com +# Gerekler: glib libxml2 gsl gobject-introspection + +isim=gstreamer1 +surum=1.6.3 +devir=1 +_isim=gstreamer +kaynak=(http://gstreamer.freedesktop.org/src/${_name}/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +./configure --prefix=/usr \ +--with-package-isim="GStreamer for Milis" \ +--with-package-origin="https://milis.gungre.ch/" + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/g/gtest/talimat b/talimatname/genel/g/gtest/talimat new file mode 100644 index 000000000..55eedd219 --- /dev/null +++ b/talimatname/genel/g/gtest/talimat @@ -0,0 +1,28 @@ +# Tanım: Google Test - xUnit çerçevesine dayalı (JUnit gibi) C ++ test yardımcı programı +# URL: http://code.google.com/p/googletest +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: cmake + +isim=gtest +surum=1.7.0 +devir=1 +kaynak=(http://googletest.googlecode.com/files/$isim-$surum.zip) + +derle() { + cd $isim-$surum + mkdir build + cd build + + cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_SKIP_RPATH=ON .. + make + + cd $SRC/$isim-$surum + mkdir -pm 0755 $PKG/usr/{lib,include/gtest/internal,share/licenses/$isim,src/gtest/src,src/gtest/cmake} + install -m 0644 build/libgtest{,_main}.so $PKG/usr/lib + install -m 0644 include/gtest/*.h $PKG/usr/include/gtest + install -m 0644 include/gtest/internal/*.h $PKG/usr/include/gtest/internal/ + install -m 0644 LICENSE $PKG/usr/share/licenses/$isim/ + install -m 0644 fused-src/gtest/* $PKG/usr/src/gtest/src/ + install -m 0644 CMakeLists.txt $PKG/usr/src/gtest/ + install -m 0644 cmake/* $PKG/usr/src/gtest/cmake/ +} diff --git a/talimatname/genel/g/gthumb/gthumb.kur-kos b/talimatname/genel/g/gthumb/gthumb.kur-kos new file mode 100644 index 000000000..6ba5ccf8f --- /dev/null +++ b/talimatname/genel/g/gthumb/gthumb.kur-kos @@ -0,0 +1 @@ +glib-compile-schemas /usr/share/glib-2.0/schemas diff --git a/talimatname/genel/g/gthumb/talimat b/talimatname/genel/g/gthumb/talimat new file mode 100644 index 000000000..725c82c81 --- /dev/null +++ b/talimatname/genel/g/gthumb/talimat @@ -0,0 +1,24 @@ +# Tanım: GNOME Masaüstü için resim tarayıcı ve görüntüleyici +# URL: https://wiki.gnome.org/Apps/gthumb +# Paketçi: Cihan_Alkan +# Gerekler: dconf librsvg clutter-gtk gstreamer-plugins-base gsettings-desktop-schemas libwebp libsecret libsoup webkit2gtk3 json-glib intltool libchamplain exiv2 itstool brasero libraw liboauth docbook-xsl yelp flex gnome-common +# Grup: + +isim=gthumb +surum=3.6.0 +devir=1 +kaynak=(https://git.gnome.org/browse/gthumb/snapshot/gthumb-3.6.0.tar.xz) + +derle() { + + cd $isim-$surum + NOCONFIGURE=1 ./autogen.sh + ./configure --prefix=/usr --sysconfdir=/etc \ + --localstatedir=/var --disable-static \ + --enable-libchamplain + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + make + + make DESTDIR="$PKG" install +} + diff --git a/talimatname/genel/g/gtk-doc/talimat b/talimatname/genel/g/gtk-doc/talimat new file mode 100644 index 000000000..d28fbe2f6 --- /dev/null +++ b/talimatname/genel/g/gtk-doc/talimat @@ -0,0 +1,16 @@ +# Tanım: GTK-Doc, C koduna eklenen yorumlardan API dokümantasyonu üretmeye başlayan bir projedir. +# URL: http://www.gnome.org/ +# Paketçi: milisarge +# Gerekler: docbook-xml docbook-xsl itstool libxslt + +isim=gtk-doc +surum=1.25 +devir=1 +kaynak=( http://ftp.gnome.org/pub/gnome/sources/$isim/$surum/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/g/gtk-engine-murrine/talimat b/talimatname/genel/g/gtk-engine-murrine/talimat new file mode 100644 index 000000000..86a68c008 --- /dev/null +++ b/talimatname/genel/g/gtk-engine-murrine/talimat @@ -0,0 +1,21 @@ +# Tanım: Cairo tabanlı GTK tema motoru +# URL: https://launchpad.net/murrine +# Paketçi: milisarge +# Gerekler: gtk2 intltool + +isim=gtk-engine-murrine +surum=0.98.2 +devir=1 +kaynak=(http://ftp.gnome.org/pub/GNOME/sources/murrine/${version::4}/murrine-$surum.tar.xz) + +derle() { + cd murrine-$surum + + ./configure \ + --prefix=/usr \ + --enable-animation \ + --enable-animationrtl + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/g/gtk-engines/talimat b/talimatname/genel/g/gtk-engines/talimat new file mode 100644 index 000000000..7dbea9895 --- /dev/null +++ b/talimatname/genel/g/gtk-engines/talimat @@ -0,0 +1,21 @@ +# Tanım: GTK-engines paketi, sekiz tema / motor ve GTK2 için iki ilave motor içerir. +# URL: http://ftp.gnome.org/pub/gnome/sources/gtk-engines +# Paketçi: milisarge +# Gerekler: gtk2 lua + +isim=gtk-engines +surum=2.20.2 +devir=1 +kaynak=(http://ftp.gnome.org/pub/gnome/sources/gtk-engines/2.20/$isim-$surum.tar.bz2) + +derle() { + + cd $isim-$surum + + ./configure --prefix=/usr + + make + + make DESTDIR=$PKG install + +} diff --git a/talimatname/genel/g/gtk-gnutella/talimat b/talimatname/genel/g/gtk-gnutella/talimat new file mode 100644 index 000000000..e6f25e679 --- /dev/null +++ b/talimatname/genel/g/gtk-gnutella/talimat @@ -0,0 +1,15 @@ +# Tanım: Bir Gnutella sunucu / istemci +# URL: http://gtk-gnutella.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: desktop-file-utils gtk2 + +isim=gtk-gnutella +surum=devel +devir=1 +kaynak=(https://github.com/gtk-gnutella/gtk-gnutella/archive/$surum.tar.gz) + +derle() { + cd gtk-gnutella-devel + ./build.sh --prefix=/usr --enable-halloc --gtk2 + make install INSTALL_PREFIX=$PKG/ +} diff --git a/talimatname/genel/g/gtk-theme-config/gtk-theme-config-tr.desktop b/talimatname/genel/g/gtk-theme-config/gtk-theme-config-tr.desktop new file mode 100644 index 000000000..df3d05dee --- /dev/null +++ b/talimatname/genel/g/gtk-theme-config/gtk-theme-config-tr.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Tema Ayarları +GenericName=Tema Ayarları +Comment=GTK tema renklerini yapılandırma +Exec=gtk-theme-config +Terminal=false +Type=Application +Icon=gtk-theme-config +Categories=GNOME;GTK;Settings;DesktopSettings;X-XFCE-SettingsDialog;X-XFCE-PersonalSettings; +Keywords=color;gtk;highlight;theme;widget; diff --git a/talimatname/genel/g/gtk-theme-config/gtk-theme-config-tr.vala b/talimatname/genel/g/gtk-theme-config/gtk-theme-config-tr.vala new file mode 100644 index 000000000..3a58a6045 --- /dev/null +++ b/talimatname/genel/g/gtk-theme-config/gtk-theme-config-tr.vala @@ -0,0 +1,724 @@ +using Gtk; + +class ThemeConfigWindow : ApplicationWindow { + Label selectbg_label; + Label selectfg_label; + + ColorButton selectbg_button; + ColorButton selectfg_button; + ColorButton panelbg_button; + ColorButton panelfg_button; + ColorButton menubg_button; + ColorButton menufg_button; + + Switch select_switch; + Switch panel_switch; + Switch menu_switch; + + Button revert_button; + Button apply_button; + + Gdk.RGBA color_rgb; + + File config_dir; + File home_dir; + + File gtk3_config_file; + File gtk2_config_file; + + File theme_path; + + string color_hex; + + string color_scheme; + + string selectbg_value; + string selectfg_value; + string panelbg_value; + string panelfg_value; + string menubg_value; + string menufg_value; + + internal ThemeConfigWindow (ThemeConfigApp app) { + Object (application: app, title: "Tema Yapılandırması"); + + // Set window properties + this.window_position = WindowPosition.CENTER; + this.resizable = false; + this.border_width = 10; + + // Set window icon + try { + this.icon = IconTheme.get_default ().load_icon ("gtk-theme-config", 48, 0); + } catch (Error e) { + stderr.printf ("Uygulama simgesi yüklenemedi: %s\n", e.message); + } + + // Methods + create_widgets (); + connect_signals (); + } + + void set_values () { + + // Set default values + selectbg_value = "#398ee7"; + selectfg_value = "#eeeeee"; + panelbg_value = "#cccccc"; + panelfg_value = "#333333"; + menubg_value = "#eeeeee"; + menufg_value = "#333333"; + + select_switch.set_active (false); + panel_switch.set_active (false); + menu_switch.set_active (false); + + // Read the current values + var settings = new GLib.Settings ("org.gnome.desktop.interface"); + var color_scheme = settings.get_string ("gtk-color-scheme"); + var theme_name = settings.get_string ("gtk-theme"); + + // Set paths of config files + config_dir = File.new_for_path (Environment.get_user_config_dir ()); + home_dir = File.new_for_path (Environment.get_home_dir ()); + + gtk3_config_file = config_dir.get_child ("gtk-3.0").get_child ("gtk.css"); + + gtk2_config_file = home_dir.get_child (".gtkrc-2.0"); + + // Create path if doesn't exist + if (!gtk3_config_file.get_parent().query_exists ()) { + try { + gtk3_config_file.get_parent().make_directory_with_parents(null); + } catch (Error e) { + stderr.printf ("Üst dizin oluşturulamadı: %s\n", e.message); + } + } + + // Detect current theme path + if (gtk3_config_file.query_exists ()) { + theme_path = gtk3_config_file; + } else if (home_dir.get_child (".themes/%s/gtk-3.0/gtk-main.css".printf (theme_name)).query_exists ()) { + theme_path = home_dir.get_child (".themes/%s/gtk-3.0/gtk-main.css".printf (theme_name)); + } else if (home_dir.get_child (".themes/%s/gtk-3.0/gtk.css".printf (theme_name)).query_exists ()) { + theme_path = home_dir.get_child (".themes/%s/gtk-3.0/gtk.css".printf (theme_name)); + } else if (File.parse_name ("/usr/share/themes/%s/gtk-3.0/gtk-main.css".printf (theme_name)).query_exists ()) { + theme_path = File.parse_name ("/usr/share/themes/%s/gtk-3.0/gtk-main.css".printf (theme_name)); + } else if (File.parse_name ("/usr/share/themes/%s/gtk-3.0/gtk.css".printf (theme_name)).query_exists ()) { + theme_path = File.parse_name ("/usr/share/themes/%s/gtk-3.0/gtk.css".printf (theme_name)); + } + + // Read the current theme file + try { + var dis = new DataInputStream (theme_path.read ()); + string line; + while ((line = dis.read_line (null)) != null) { + if ("@define-color selected_bg_color" in line) { + selectbg_value = line.substring (32, line.length-33); + if ("@" in selectbg_value) { + selectbg_value = "#398ee7"; + } + } + if ("@define-color selected_fg_color" in line) { + selectfg_value = line.substring (32, line.length-33); + if ("@" in selectfg_value) { + selectfg_value = "#eeeeee"; + } + } + if ("@define-color panel_bg_color" in line) { + panelbg_value = line.substring (29, line.length-30); + if ("@" in panelbg_value) { + panelbg_value = "#cccccc"; + } + } + if ("@define-color panel_fg_color" in line) { + panelfg_value = line.substring (29, line.length-30); + if ("@" in panelfg_value) { + panelfg_value = "#333333"; + } + } + if ("@define-color menu_bg_color" in line) { + menubg_value = line.substring (28, line.length-29); + if ("@" in menubg_value) { + menubg_value = "#eeeeee"; + } + } + if ("@define-color menu_fg_color" in line) { + menufg_value = line.substring (28, line.length-29); + if ("@" in menufg_value) { + menufg_value = "#333333"; + } + } + if ("/* select-on */" in line) { + select_switch.set_active (true); + } + if ("/* panel-on */" in line) { + panel_switch.set_active (true); + } + if ("/* menu-on */" in line) { + menu_switch.set_active (true); + } + } + } catch (Error e) { + stderr.printf ("Kullanıcı teması okunamadı: %s\n", e.message); + } + + // Read the current color scheme + if (";" in color_scheme) { + string[] parts = color_scheme.split_set(";"); + if ("selected_bg_color:#" in parts[0] && "selected_fg_color:#" in parts[1]) { + selectbg_value = parts[0].substring (18, parts[0].length-18); + selectfg_value = parts[1].substring (18, parts[1].length-18); + select_switch.set_active (true); + } + } + + // Set colors + Gdk.RGBA color = Gdk.RGBA (); + color.parse (selectbg_value); + selectbg_button.set_rgba (color); + color.parse (selectfg_value); + selectfg_button.set_rgba (color); + color.parse (panelbg_value); + panelbg_button.set_rgba (color); + color.parse (panelfg_value); + panelfg_button.set_rgba (color); + color.parse (menubg_value); + menubg_button.set_rgba (color); + color.parse (menufg_value); + menufg_button.set_rgba (color); + + apply_button.set_sensitive (false); + } + + void create_widgets () { + // Create and setup widgets + var select_heading = new Label.with_mnemonic ("_Özel vurgu renkleri"); + select_heading.set_use_markup (true); + select_heading.set_halign (Align.START); + var panel_heading = new Label.with_mnemonic ("_Özel panel renkleri/b>"); + panel_heading.set_use_markup (true); + panel_heading.set_halign (Align.START); + var menu_heading = new Label.with_mnemonic ("_Özel menü renkleri"); + menu_heading.set_use_markup (true); + menu_heading.set_halign (Align.START); + + selectbg_label = new Label.with_mnemonic ("_Arka planı vurgulayın"); + selectbg_label.set_halign (Align.START); + selectfg_label = new Label.with_mnemonic ("_Metni vurgulayın"); + selectfg_label.set_halign (Align.START); + var panelbg_label = new Label.with_mnemonic ("_Panel arka planı"); + panelbg_label.set_halign (Align.START); + var panelfg_label = new Label.with_mnemonic ("_Panel metni"); + panelfg_label.set_halign (Align.START); + var menubg_label = new Label.with_mnemonic ("_Menü arkaplanı"); + menubg_label.set_halign (Align.START); + var menufg_label = new Label.with_mnemonic ("_Menü Metni"); + menufg_label.set_halign (Align.START); + + selectbg_button = new ColorButton (); + selectfg_button = new ColorButton (); + panelbg_button = new ColorButton (); + panelfg_button = new ColorButton (); + menubg_button = new ColorButton (); + menufg_button = new ColorButton (); + + select_switch = new Switch (); + select_switch.set_halign (Align.END); + panel_switch = new Switch (); + panel_switch.set_halign (Align.END); + menu_switch = new Switch (); + menu_switch.set_halign (Align.END); + + revert_button = new Button.from_stock(Stock.REVERT_TO_SAVED); + apply_button = new Button.from_stock (Stock.APPLY); + + // Buttons + var buttons = new ButtonBox (Orientation.HORIZONTAL); + buttons.set_layout (ButtonBoxStyle.EDGE); + buttons.add (revert_button); + buttons.add (apply_button); + + // Layout widgets + var grid = new Grid (); + grid.set_column_homogeneous (true); + grid.set_row_homogeneous (true); + grid.set_column_spacing (5); + grid.set_row_spacing (5); + grid.attach (select_heading, 0, 0, 1, 1); + grid.attach_next_to (select_switch, select_heading, PositionType.RIGHT, 1, 1); + grid.attach (selectbg_label, 0, 1, 1, 1); + grid.attach_next_to (selectbg_button, selectbg_label, PositionType.RIGHT, 1, 1); + grid.attach (selectfg_label, 0, 2, 1, 1); + grid.attach_next_to (selectfg_button, selectfg_label, PositionType.RIGHT, 1, 1); + grid.attach (panel_heading, 0, 3, 1, 1); + grid.attach_next_to (panel_switch, panel_heading, PositionType.RIGHT, 1, 1); + grid.attach (panelbg_label, 0, 4, 1, 1); + grid.attach_next_to (panelbg_button, panelbg_label, PositionType.RIGHT, 1, 1); + grid.attach (panelfg_label, 0, 5, 1, 1); + grid.attach_next_to (panelfg_button, panelfg_label, PositionType.RIGHT, 1, 1); + grid.attach (menu_heading, 0, 6, 1, 1); + grid.attach_next_to (menu_switch, menu_heading, PositionType.RIGHT, 1, 1); + grid.attach (menubg_label, 0, 7, 1, 1); + grid.attach_next_to (menubg_button, menubg_label, PositionType.RIGHT, 1, 1); + grid.attach (menufg_label, 0, 8, 1, 1); + grid.attach_next_to (menufg_button, menufg_label, PositionType.RIGHT, 1, 1); + grid.attach (buttons, 0, 9, 2, 1); + + this.add (grid); + + set_values (); + } + + void connect_signals () { + selectbg_button.color_set.connect (() => { + on_selectbg_color_set (); + apply_button.set_sensitive (true); + }); + selectfg_button.color_set.connect (() => { + on_selectfg_color_set (); + apply_button.set_sensitive (true); + }); + panelbg_button.color_set.connect (() => { + on_panelbg_color_set (); + apply_button.set_sensitive (true); + }); + panelfg_button.color_set.connect (() => { + on_panelfg_color_set (); + apply_button.set_sensitive (true); + }); + menubg_button.color_set.connect (() => { + on_menubg_color_set (); + apply_button.set_sensitive (true); + }); + menufg_button.color_set.connect (() => { + on_menufg_color_set (); + apply_button.set_sensitive (true); + }); + select_switch.notify["active"].connect (() => { + apply_button.set_sensitive (true); + }); + panel_switch.notify["active"].connect (() => { + apply_button.set_sensitive (true); + }); + menu_switch.notify["active"].connect (() => { + apply_button.set_sensitive (true); + }); + revert_button.clicked.connect (() => { + on_config_reset (); + revert_button.set_sensitive (false); + }); + apply_button.clicked.connect (() => { + on_config_set (); + apply_button.set_sensitive (false); + revert_button.set_sensitive (true); + }); + } + + void rgb_to_hex () { + int r = (int)Math.round (color_rgb.red * 255); + int g = (int)Math.round (color_rgb.green * 255); + int b = (int)Math.round (color_rgb.blue * 255); + + color_hex = "#%02x%02x%02x".printf (r, g, b); + } + + void on_selectbg_color_set () { + color_rgb = selectbg_button.get_rgba (); + rgb_to_hex (); + selectbg_value = color_hex; + } + + void on_selectfg_color_set () { + color_rgb = selectfg_button.get_rgba (); + rgb_to_hex (); + selectfg_value = color_hex; + } + + void on_panelbg_color_set () { + color_rgb = panelbg_button.get_rgba (); + rgb_to_hex (); + panelbg_value = color_hex; + } + + void on_panelfg_color_set () { + color_rgb = panelfg_button.get_rgba (); + rgb_to_hex (); + panelfg_value = color_hex; + } + + void on_menubg_color_set () { + color_rgb = menubg_button.get_rgba (); + rgb_to_hex (); + menubg_value = color_hex; + } + + void on_menufg_color_set () { + color_rgb = menufg_button.get_rgba (); + rgb_to_hex (); + menufg_value = color_hex; + } + + void on_config_set () { + set_color_scheme (); + write_config (); + notify_change (); + } + + void on_config_reset () { + reset_color_scheme (); + reset_config (); + set_values (); + notify_change (); + } + + void set_color_scheme () { + // Determine color scheme + if (select_switch.get_active()) { + color_scheme = "\"selected_bg_color:%s;selected_fg_color:%s;\"".printf (selectbg_value, selectfg_value); + } else { + color_scheme = "\"\""; + } + + // Set color scheme + try { + Process.spawn_command_line_sync ("gsettings set org.gnome.desktop.interface gtk-color-scheme %s".printf (color_scheme)); + } catch (Error e) { + stderr.printf ("Could not set color scheme for gtk3: %s\n", e.message); + } + try { + Process.spawn_command_line_sync ("gconftool-2 -s /desktop/gnome/interface/gtk_color_scheme -t string %s".printf (color_scheme)); + } catch (Error e) { + stderr.printf ("Could not set color scheme for gtk2: %s\n", e.message); + } + if (File.parse_name ("/usr/bin/xfconf-query").query_exists ()) { + try { + Process.spawn_command_line_sync ("xfconf-query -n -c xsettings -p /Gtk/ColorScheme -t string -s %s".printf (color_scheme)); + } catch (Error e) { + stderr.printf ("Could not set color scheme for xfce: %s\n", e.message); + } + } + } + + void reset_color_scheme () { + try { + Process.spawn_command_line_sync ("gsettings reset org.gnome.desktop.interface gtk-color-scheme"); + } catch (Error e) { + stderr.printf ("CGtk3 için renk düzenini sıfırlayamadı: %s\n", e.message); + } + try { + Process.spawn_command_line_sync ("gconftool-2 -u /desktop/gnome/interface/gtk_color_scheme"); + } catch (Error e) { + stderr.printf ("Gtk2 için renk düzenini sıfırlayamadı: %s\n", e.message); + } + if (File.parse_name ("/usr/bin/xfconf-query").query_exists ()) { + try { + Process.spawn_command_line_sync ("xfconf-query -c xsettings -p /Gtk/ColorScheme -r"); + } catch (Error e) { + stderr.printf ("Cxfce için renk düzenini sıfırlayamadı: %s\n", e.message); + } + } + } + + void reset_config () { + try { + if (gtk3_config_file.query_exists ()) { + gtk3_config_file.delete (); + } + } catch (Error e) { + stderr.printf ("Önceki gtk3 yapılandırması silinemiyor: %s\n", e.message); + } + try { + if (gtk2_config_file.query_exists ()) { + gtk2_config_file.delete (); + } + } catch (Error e) { + stderr.printf ("Önceki gtk2 yapılandırması silinemiyor: %s\n", e.message); + } + } + + void write_config () { + + // Determine states + string select_state1; + string select_state2; + string panel_state1; + string panel_state2; + string menu_state1; + string menu_state2; + + string panel_gtk2; + string menu_gtk2; + + if (select_switch.get_active()) { + select_state1 = "/* select-on */"; + select_state2 = "/* select-on */"; + } else { + select_state1 = "/* select-off"; + select_state2 = "select-off */"; + } + if (panel_switch.get_active()) { + panel_state1 = "/* panel-on */"; + panel_state2 = "/* panel-on */"; + panel_gtk2 = ("style \"gtk-theme-config-panel\" {\n" + + "\tbg[NORMAL] = \"%s\"\n" + + "\tbg[PRELIGHT] = shade(1.1,\"%s\")\n" + + "\tbg[ACTIVE] = shade(0.9,\"%s\")\n" + + "\tbg[SELECTED] = shade(0.97,\"%s\")\n" + + "\tfg[NORMAL] = \"%s\"\n" + + "\tfg[PRELIGHT] = \"%s\"\n" + + "\tfg[SELECTED] = \"%s\"\n" + + "\tfg[ACTIVE] = \"%s\"\n" + + "}\n\n" + + "widget \"*PanelWidget*\" style \"gtk-theme-config-panel\"\n" + + "widget \"*PanelApplet*\" style \"gtk-theme-config-panel\"\n" + + "widget \"*fast-user-switch*\" style \"gtk-theme-config-panel\"\n" + + "widget \"*CPUFreq*Applet*\" style \"gtk-theme-config-panel\"\n" + + "widget \"*indicator-applet*\" style \"gtk-theme-config-panel\"\n" + + "class \"PanelApp*\" style \"gtk-theme-config-panel\"\n" + + "class \"PanelToplevel*\" style \"gtk-theme-config-panel\"\n" + + "widget_class \"*PanelToplevel*\" style \"gtk-theme-config-panel\"\n" + + "widget_class \"*notif*\" style \"gtk-theme-config-panel\"\n" + + "widget_class \"*Notif*\" style \"gtk-theme-config-panel\"\n" + + "widget_class \"*Tray*\" style \"gtk-theme-config-panel\" \n" + + "widget_class \"*tray*\" style \"gtk-theme-config-panel\"\n" + + "widget_class \"*computertemp*\" style \"gtk-theme-config-panel\"\n" + + "widget_class \"*Applet*Tomboy*\" style \"gtk-theme-config-panel\"\n" + + "widget_class \"*Applet*Netstatus*\" style \"gtk-theme-config-panel\"\n" + + "widget \"*gdm-user-switch-menubar*\" style \"gtk-theme-config-panel\"\n" + + "widget \"*Xfce*Panel*\" style \"gtk-theme-config-panel\"\n" + + "class \"*Xfce*Panel*\" style \"gtk-theme-config-panel\"\n").printf (panelbg_value, panelbg_value, panelbg_value, panelbg_value, panelfg_value, panelfg_value, panelfg_value, panelfg_value); + } else { + panel_state1 = "/* panel-off"; + panel_state2 = "panel-off */"; + panel_gtk2 = ""; + } + if (menu_switch.get_active()) { + menu_state1 = "/* menu-on */"; + menu_state2 = "/* menu-on */"; + menu_gtk2 = ("style \"gtk-theme-config-menu\" {\n" + + "\tbase[NORMAL] = \"%s\"\n" + + "\tbg[NORMAL] = \"%s\"\n" + + "\tbg[ACTIVE] = \"%s\"\n" + + "\tbg[INSENSITIVE] = \"%s\"\n" + + "\ttext[NORMAL] = \"%s\"\n" + + "\tfg[NORMAL] = \"%s\"\n" + + "}\n\n" + + "widget_class\"**\"style\"gtk-theme-config-menu\"\n").printf (menubg_value, menubg_value, menubg_value, menubg_value, menufg_value, menufg_value); + } else { + menu_state1 = "/* menu-off"; + menu_state2 = "menu-off */";; + menu_gtk2 = ""; + } + + // Write config + try { + var dos = new DataOutputStream (gtk3_config_file.replace (null, false, FileCreateFlags.REPLACE_DESTINATION)); + dos.put_string ("/* Custom styles */\n\n"); + string text = ("%s\n" + + "@define-color selected_bg_color %s;\n" + + "@define-color selected_fg_color %s;\n" + + "@define-color theme_selected_bg_color @selected_bg_color;\n" + + "@define-color theme_selected_fg_color @selected_fg_color;\n" + + "%s\n\n" + + "%s\n" + + "@define-color panel_bg_color %s;\n" + + "@define-color panel_fg_color %s;\n\n" + + "PanelWidget,\n" + + "PanelApplet,\n" + + "PanelToplevel,\n" + + "PanelSeparator,\n" + + "PanelApplet > GtkMenuBar.menubar,\n" + + "PanelApplet > GtkMenuBar.menubar.menuitem,\n" + + "PanelMenuBar.menubar,\n" + + "PanelMenuBar.menubar.menuitem,\n" + + "PanelAppletFrame,\n" + + "UnityPanelWidget,\n" + + ".gnome-panel-menu-bar,\n" + + ".unity-panel {\n" + + "\tbackground-image: -gtk-gradient(linear,left top,left bottom,from(shade(@panel_bg_color,1.2)),to(shade(@panel_bg_color,0.8)));\n" + + "\tcolor: @panel_fg_color;\n" + + "}\n\n" + + ".unity-panel.menuitem,\n" + + ".unity-panel .menuitem {\n" + + "\tcolor: @panel_fg_color;\n" + + "}\n\n" + + ".unity-panel.menubar.menuitem:hover,\n" + + ".unity-panel.menubar .menuitem *:hover {\n" + + "\tborder-color: shade(@panel_bg_color, 0.7);\n" + + "\tborder-image: none;\n" + + "\tbackground-image: -gtk-gradient(linear,left top,left bottom,from(shade(@panel_bg_color, 0.97)),to(shade(@panel_bg_color, 0.82)));\n" + + "\tcolor: @panel_fg_color;\n" + + "}\n\n" + + "PanelApplet .button {\n" + + "\tborder-color: transparent;\n" + + "\tborder-image: none;\n" + + "\tbackground-image: -gtk-gradient(linear,left top,left bottom,from(shade(@panel_bg_color,1.2)),to(shade(@panel_bg_color,0.8)));\n" + + "\tcolor: @panel_fg_color;\n" + + "\tbox-shadow: none;\n" + + "\ttext-shadow: none;\n" + + "\t-unico-inner-stroke-width: 0;\n" + + "}\n\n" + + "PanelApplet .button:active {\n" + + "\tborder-color: shade(@panel_bg_color,0.8);\n" + + "\tborder-image: none;\n" + + "\tbackground-image: -gtk-gradient(linear,left top,left bottom,from(shade(shade(@panel_bg_color,1.02),0.9)),to(shade(shade(@panel_bg_color,1.02),0.95)));\n" + + "\tcolor: @panel_fg_color;\n" + + "\tbox-shadow: none;\n" + + "\ttext-shadow: none;\n" + + "\t-unico-inner-stroke-width: 0;\n" + + "}\n\n" + + "PanelApplet .button:prelight {\n" + + "\tborder-color: transparent;\n" + + "\tborder-image: none;\n" + + "\tbackground-image: -gtk-gradient(linear,left top,left bottom,from(shade(@panel_bg_color,1.2)),to(shade(@panel_bg_color,1.0)));\n" + + "\tcolor: @panel_fg_color;\n" + + "\tbox-shadow: none;\n" + + "\ttext-shadow: none;\n" + + "\t-unico-inner-stroke-width: 0;\n" + + "}\n\n" + + "PanelApplet .button:active:prelight {\n" + + "\tborder-color: shade(@panel_bg_color,0.8);\n" + + "\tborder-image: none;\n" + + "\tbackground-image: -gtk-gradient(linear,left top,left bottom,from(shade(shade(@panel_bg_color,1.02),1.0)),to(shade(shade(@panel_bg_color,1.02),1.05)));\n" + + "\tcolor: @panel_fg_color;\n" + + "\tbox-shadow: none;\n" + + "\ttext-shadow: none;\n" + + "\t-unico-inner-stroke-width: 0;\n" + + "}\n\n" + + "WnckPager,\n" + + "WnckTasklist {\n" + + "\tbackground-color: @panel_bg_color;\n" + + "}\n\n" + + "%s\n\n" + + "%s\n" + + "@define-color menu_bg_color %s;\n" + + "@define-color menu_fg_color %s;\n\n" + + "GtkTreeMenu.menu,\n" + + "GtkMenuToolButton.menu,\n" + + "GtkComboBox .menu {\n" + + "\tbackground-color: @menu_bg_color;\n" + + "}\n\n" + + ".primary-toolbar .button .menu,\n" + + ".toolbar .menu,\n" + + ".toolbar .primary-toolbar .menu,\n" + + ".menu {\n" + + "\tborder-style: none;\n" + + "\tbackground-image: none;\n" + + "\tbackground-color: @menu_bg_color;\n" + + "\tcolor: @menu_fg_color;\n" + + "\tbox-shadow: none;\n" + + "\ttext-shadow: none;\n" + + "\t-unico-inner-stroke-width: 0;\n" + + "}\n\n" + + ".menu.button:hover,\n" + + ".menu.button:active,\n" + + ".menu.button:active:insensitive,\n" + + ".menu.button:insensitive,\n" + + ".menu.button {\n" + + "\tbackground-color: @menu_bg_color;\n" + + "\tbackground-image: none;\n" + + "}\n\n" + + "GtkTreeMenu .menuitem * {\n" + + "\tcolor: @menu_fg_color;\n" + + "}\n\n" + + ".menuitem,\n" + + ".menu .menuitem {\n" + + "\tbackground-color: transparent;\n" + + "}\n\n" + + ".menu .menuitem:active,\n" + + ".menu .menuitem:hover {\n" + + "\tbackground-color: @theme_selected_bg_color;\n" + + "}\n\n" + + ".menuitem.check,\n" + + ".menuitem.radio,\n" + + ".menuitem.check:hover,\n" + + ".menuitem.radio:hover,\n" + + ".menuitem.check:active,\n" + + ".menuitem.radio:active {\n" + + "\tbackground-color: transparent;\n" + + "}\n\n" + + ".menu .menuitem:insensitive,\n" + + ".menu .menuitem *:insensitive {\n" + + "\tcolor: mix(@menu_fg_color,@menu_bg_color,0.5);\n" + + "}\n\n" + + ".menuitem.arrow {\n" + + "\tcolor: alpha(@menu_fg_color, 0.6);\n" + + "}\n\n" + + ".menuitem .entry {\n" + + "\tborder-color: shade(@menu_bg_color,0.7);\n" + + "\tborder-image: none;\n" + + "\tbackground-color: @menu_bg_color;\n" + + "\tbackground-image: none;\n" + + "\tcolor: @menu_fg_color;\n" + + "}\n\n" + + ".menuitem .accelerator {\n" + + "\tcolor: alpha(@menu_fg_color,0.6);\n" + + "}\n\n" + + ".menuitem .accelerator:insensitive {\n" + + "\tcolor: alpha(mix(@menu_fg_color,@menu_bg_color,0.5),0.6);\n" + + "\ttext-shadow: none;\n" + + "}\n\n" + + ".menuitem.separator {\n" + + "\tbackground-color: transparent;\n" + + "\tcolor: shade(@menu_bg_color, 0.9);\n" + + "}\n\n" + + ".menuitem GtkCalendar,\n" + + ".menuitem GtkCalendar.button,\n" + + ".menuitem GtkCalendar.header,\n" + + ".menuitem GtkCalendar.view {\n" + + "\tborder-color: shade(@menu_bg_color,0.8);\n" + + "\tborder-image: none;\n" + + "\tbackground-color: @menu_bg_color;\n" + + "\tbackground-image: none;\n" + + "\tcolor: @menu_fg_color;\n" + + "}\n\n" + + ".menuitem GtkCalendar:inconsistent {\n" + + "\tcolor: mix(@menu_fg_color,@menu_bg_color,0.5);\n" + + "}\n\n" + + "%s\n").printf (select_state1, selectbg_value, selectfg_value, select_state2, panel_state1, panelbg_value, panelfg_value, panel_state2, menu_state1, menubg_value, menufg_value, menu_state2); + uint8[] data = text.data; + long written = 0; + while (written < data.length) { + written += dos.write (data[written:data.length]); + } + } catch (Error e) { + stderr.printf ("Gtk3 yapılandırması yazılamadı: %s\n", e.message); + } + try { + var dos = new DataOutputStream (gtk2_config_file.replace (null, false, FileCreateFlags.REPLACE_DESTINATION)); + dos.put_string ("# Custom styles\n\n"); + string text = "%s\n%s".printf(panel_gtk2, menu_gtk2); + uint8[] data = text.data; + long written = 0; + while (written < data.length) { + written += dos.write (data[written:data.length]); + } + } catch (Error e) { + stderr.printf ("Gtk2 yapılandırması yazılamadı: %s\n", e.message); + } + } + + void notify_change() { + try { + Process.spawn_command_line_async("notify-send -h int:transient:1 -i \"gtk-theme-config\" \"Changes applied.\" \"You might need to restart running applications.\""); + } catch (Error e) { + stderr.printf ("Bildirim görüntülenemiyor: %s\n", e.message); + } + } +} + +class ThemeConfigApp : Gtk.Application { + internal ThemeConfigApp () { + Object (application_id: "org.themeconfig.app"); + } + + protected override void activate () { + var window = new ThemeConfigWindow (this); + window.show_all (); + } +} + +int main (string[] args) { + return new ThemeConfigApp ().run (args); +} diff --git a/talimatname/genel/g/gtk-theme-config/talimat b/talimatname/genel/g/gtk-theme-config/talimat new file mode 100644 index 000000000..d0b3f7a58 --- /dev/null +++ b/talimatname/genel/g/gtk-theme-config/talimat @@ -0,0 +1,20 @@ +# Tanım: GTK tema renklerini yapılandırmak için kullanılan bir araç. +# URL: https://github.com/satya164/gtk-theme-config +# Paketçi: Cihan_Alkan +# Gerekler: gconf gsettings-desktop-schemas hicolor-icon-theme gtk3 vala +# Grup: + +isim=gtk-theme-config +surum=1.0 +devir=1 +kaynak=(https://github.com/satya164/gtk-theme-config/archive/v1.0.tar.gz::$isim-$surum.tar.gz + gtk-theme-config-tr.desktop + gtk-theme-config-tr.vala) + +derle() { + cd gtk-theme-config-1.0 + cp ../gtk-theme-config-tr.vala ./gtk-theme-config.vala + cp ../gtk-theme-config-tr.desktop ./gtk-theme-config.desktop + make + make DESTDIR="$PKG/" install +} diff --git a/talimatname/genel/g/gtk-update-icon-cache/talimat b/talimatname/genel/g/gtk-update-icon-cache/talimat new file mode 100644 index 000000000..3d5c33303 --- /dev/null +++ b/talimatname/genel/g/gtk-update-icon-cache/talimat @@ -0,0 +1,23 @@ +# Tanım: GTK + güncelleme simgesi önbellek aracı +# URL: http://www.gtk.org/ +# Paketçi: milisarge +# Gerekler: gdk-pixbuf glib atk pango cairo libffi libpng pcre + +isim=gtk-update-icon-cache +surum=2.24.29 +devir=2 +kaynak=(http://ftp.gnome.org/pub/gnome/sources/gtk+/${surum%.*}/gtk+-$surum.tar.xz) + +derle() { +cd gtk+-$surum +sed -i 's#.*@man_#man_#' docs/reference/gtk/Makefile.in +./configure --prefix=/usr \ +--mandir=/usr/share/man \ +--infodir=/usr/share/info \ +--sysconfdir=/etc \ +--with-xinput=yes +cd gtk +make gtk-update-icon-cache +mkdir -p $PKG/usr/{bin,share/man/man1} +install -c gtk-update-icon-cache $PKG/usr/bin/gtk-update-icon-cache +} diff --git a/talimatname/genel/g/gtk-vnc/talimat b/talimatname/genel/g/gtk-vnc/talimat new file mode 100644 index 000000000..71bcaf694 --- /dev/null +++ b/talimatname/genel/g/gtk-vnc/talimat @@ -0,0 +1,19 @@ +# Tanım: GTK için bir VNC görüntüleyici widget'ı +# URL: http://live.gnome.org/gtk-vnc +# Paketçi: yasarciv67@gmail.com +# Gerekler: gtk3 python-gtk gnutls pulseaudio cyrus-sasl + +isim=gtk-vnc +surum=0.6.0 +devir=2 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --with-gtk=3.0 \ + --enable-vala + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/g/gtk2/gtk.kur-kos b/talimatname/genel/g/gtk2/gtk.kur-kos new file mode 100644 index 000000000..ac5d54a7c --- /dev/null +++ b/talimatname/genel/g/gtk2/gtk.kur-kos @@ -0,0 +1,5 @@ +/usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules +gdk-pixbuf-query-loaders > /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache +gdk-pixbuf-query-loaders --update-cache + + diff --git a/talimatname/genel/g/gtk2/talimat b/talimatname/genel/g/gtk2/talimat new file mode 100644 index 000000000..753ddcfe3 --- /dev/null +++ b/talimatname/genel/g/gtk2/talimat @@ -0,0 +1,56 @@ +# Tanım: GTK +, çok platformlu bir araç setidir (sürüm 2) +# URL: http://www.gtk.org/ +# Paketçi: milisarge +# Gerekler: gtk-doc shared-mime-info xorg-libxinerama xorg-libxrandr cairo pango pangox-compat atk libtiff cups gdk-pixbuf xorg-libxi xorg-libxcursor hicolor-icon-theme gtk-update-icon-cache + +isim=gtk2 +surum=2.24.29 +devir=1 +kaynak=(http://ftp.gnome.org/pub/gnome/sources/gtk+/${surum%.*}/gtk+-$surum.tar.xz) + +gdk-pixbuf-query-loaders > /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache + +derle() { +cd gtk+-$surum +sed -i 's#l \(gtk-.*\).sgml#& -o \1#' docs/{faq,tutorial}/Makefile.in +./configure --prefix=/usr \ +--mandir=/usr/share/man \ +--infodir=/usr/share/info \ +--sysconfdir=/etc +make +make DESTDIR=$PKG install +mkdir -p $PKG/etc/gtk-2.0 +echo 'gtk-fallback-icon-theme = "Tango"' > $PKG/etc/gtk-2.0/gtkrc + +# Construit dans gtk-update-icon-cache +rm -f $PKG/usr/bin/gtk-update-icon-cache +rm -f $PKG/usr/share/man/man1/gtk-update-icon-cache.1 +} +doc () { +# Chaque fonction produisant un groupe doit suivre les règles suivantes +# 1. Archiver les fichiers souhaités en utilisant la syntaxe correcte (avec les bonnes variables) +# 2. Effacer ces même fichiers pour qu'ils ne se retrouvent pas dans le paquet principal (ou de base) + +# Normalement pkgmk EST dans $PKG juste pour la lisibilitée et la compréhension + +cd $PKG + +# 1. Création de l'archive des fichiers souhaités +bsdtar -cf \ +$PKGMK_PACKAGE_DIR/${isim}.doc#$surum-any.mps \ +usr/share/gtk-doc usr/share/gtk-2.0/demo +# 2. On efface CES MÊMES fichiers +rm -r usr/share/{gtk-doc,gtk-2.0/demo} +} +devel () { + +cd $PKG + +bsdtar -cf \ +$PKGMK_PACKAGE_DIR/$isim.devel#$surum-any.mps \ +usr/lib/pkgconfig \ +usr/include \ +usr/share/gir-1.0 + +rm -r usr/{share/gir-1.0,lib/pkgconfig,include} +} diff --git a/talimatname/genel/g/gtk3/gtk3.kur-kos b/talimatname/genel/g/gtk3/gtk3.kur-kos new file mode 100644 index 000000000..088752e4d --- /dev/null +++ b/talimatname/genel/g/gtk3/gtk3.kur-kos @@ -0,0 +1 @@ +/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas diff --git a/talimatname/genel/g/gtk3/talimat b/talimatname/genel/g/gtk3/talimat new file mode 100644 index 000000000..c1bfcbefe --- /dev/null +++ b/talimatname/genel/g/gtk3/talimat @@ -0,0 +1,30 @@ +# Tanım: GTK + Araç Seti, grafik kullanıcı arayüzleri oluşturmak için kullanılan çoklu platform araç kitidir. +# URL: http://www.gtk.org/ +# Paketçi: milisarge +# Gerekler: adwaita-icon-theme libepoxy xorg-libxinerama,xorg-libxrandr xorg-libxcursor at-spi2-atk cups colord xorg-libxi atk cairo pango pangox-compat gdk-pixbuf gtk-update-icon-cache graphene + +isim=gtk3 +surum=3.22.15 +devir=1 +kaynak=(http://ftp.gnome.org/pub/gnome/sources/gtk+/${surum%.*}/gtk+-$surum.tar.xz) + +derle() { +cd gtk+-$surum +./configure --prefix=/usr \ +--sysconfdir=/etc \ +--mandir=/usr/share/man \ +--infodir=/usr/share/info \ +--enable-broadway-backend \ +--enable-x11-backend \ +--disable-wayland-backend + +make || make -j1 +make DESTDIR=$PKG install +rm -r $PKG/usr/share/gtk-doc +cat > $PKG/etc/gtk-3.0/settings.ini << "EOF" +[Settings] +gtk-theme-name = Adwaita +gtk-icon-theme-name = gnome +gtk-cursor-theme-name = Adwaita +EOF +} diff --git a/talimatname/genel/g/gtkdialog/talimat b/talimatname/genel/g/gtkdialog/talimat new file mode 100644 index 000000000..ece67cfe6 --- /dev/null +++ b/talimatname/genel/g/gtkdialog/talimat @@ -0,0 +1,18 @@ +# Tanım: Gtkdialog hızlı arayüz yapma aracı +# URL: http://linux.pte.hu/~pipas/gtkdialog/ +# Paketçi: milisarge +# Gerekler: gtk2 vte + +isim=gtkdialog +surum=0.8.3 +devir=2 +kaynak=(https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/gtkdialog/gtkdialog-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make + make prefix=$PKG/usr install + mkdir -p "$PKG"/usr/share/$isim + cp -a examples "$PKG"/usr/share/$isim/examples +} diff --git a/talimatname/genel/g/gtkglext/gtk2.20.patch b/talimatname/genel/g/gtkglext/gtk2.20.patch new file mode 100644 index 000000000..54b34c11e --- /dev/null +++ b/talimatname/genel/g/gtkglext/gtk2.20.patch @@ -0,0 +1,77 @@ +diff -Nur gtkglext-1.2.0.orig/gtk/gtkglwidget.c gtkglext-1.2.0/gtk/gtkglwidget.c +--- gtkglext-1.2.0.orig/gtk/gtkglwidget.c 2004-02-20 11:38:36.000000000 +0200 ++++ gtkglext-1.2.0/gtk/gtkglwidget.c 2010-04-20 19:29:42.941917275 +0300 +@@ -127,7 +127,7 @@ + * Synchronize OpenGL and window resizing request streams. + */ + +- if (GTK_WIDGET_REALIZED (widget) && private->is_realized) ++ if (gtk_widget_get_realized (widget) && private->is_realized) + { + gldrawable = gdk_window_get_gl_drawable (widget->window); + gdk_gl_drawable_wait_gdk (gldrawable); +@@ -154,7 +154,7 @@ + * Remove OpenGL-capability from widget->window. + */ + +- if (GTK_WIDGET_REALIZED (widget)) ++ if (gtk_widget_get_realized (widget)) + gdk_window_unset_gl_capability (widget->window); + + private->is_realized = FALSE; +@@ -174,7 +174,7 @@ + */ + + toplevel = gtk_widget_get_toplevel (widget); +- if (GTK_WIDGET_TOPLEVEL (toplevel) && !GTK_WIDGET_REALIZED (toplevel)) ++ if (gtk_widget_is_toplevel (toplevel) && !gtk_widget_get_realized (toplevel)) + { + GTK_GL_NOTE (MISC, + g_message (" - Install colormap to the top-level window.")); +@@ -194,7 +194,7 @@ + * Set a background of "None" on window to avoid AIX X server crash. + */ + +- if (GTK_WIDGET_REALIZED (widget)) ++ if (gtk_widget_get_realized (widget)) + { + GTK_GL_NOTE (MISC, + g_message (" - window->bg_pixmap = %p", +@@ -250,8 +250,8 @@ + GTK_GL_NOTE_FUNC (); + + g_return_val_if_fail (GTK_IS_WIDGET (widget), FALSE); +- g_return_val_if_fail (!GTK_WIDGET_NO_WINDOW (widget), FALSE); +- g_return_val_if_fail (!GTK_WIDGET_REALIZED (widget), FALSE); ++ g_return_val_if_fail (gtk_widget_get_has_window (widget), FALSE); ++ g_return_val_if_fail (!gtk_widget_get_realized (widget), FALSE); + g_return_val_if_fail (GDK_IS_GL_CONFIG (glconfig), FALSE); + + /* +@@ -432,7 +432,7 @@ + GTK_GL_NOTE_FUNC (); + + g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL); +- g_return_val_if_fail (GTK_WIDGET_REALIZED (widget), NULL); ++ g_return_val_if_fail (gtk_widget_get_realized (widget), NULL); + + gldrawable = gdk_window_get_gl_drawable (widget->window); + if (gldrawable == NULL) +@@ -474,7 +474,7 @@ + GLWidgetPrivate *private; + + g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL); +- g_return_val_if_fail (GTK_WIDGET_REALIZED (widget), NULL); ++ g_return_val_if_fail (gtk_widget_get_realized (widget), NULL); + + private = g_object_get_qdata (G_OBJECT (widget), quark_gl_private); + if (private == NULL) +@@ -501,7 +501,7 @@ + gtk_widget_get_gl_window (GtkWidget *widget) + { + g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL); +- g_return_val_if_fail (GTK_WIDGET_REALIZED (widget), NULL); ++ g_return_val_if_fail (gtk_widget_get_realized (widget), NULL); + + return gdk_window_get_gl_window (widget->window); + } diff --git a/talimatname/genel/g/gtkglext/talimat b/talimatname/genel/g/gtkglext/talimat new file mode 100644 index 000000000..e73eb6acc --- /dev/null +++ b/talimatname/genel/g/gtkglext/talimat @@ -0,0 +1,23 @@ +# Tanım: Gtk2 için opengl uzantıları +# URL: http://gtkglext.sourceforge.net/ +# Paketçi: Cihan Alkan +# Gerekler: glib gtk2 + +isim=gtkglext +surum=1.2.0 +devir=1 + +kaynak=(http://downloads.sourceforge.net/sourceforge/gtkglext/$isim-$surum.tar.gz + gtk2.20.patch) + + +derle() { + cd $isim-$surum + patch -Np1 -i $SRC/gtk2.20.patch + sed '/AC_PATH_XTRA/d' -i configure.in + + autoreconf --force --install + ./configure --prefix=/usr --disable-static + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/g/gtkhtml/talimat b/talimatname/genel/g/gtkhtml/talimat new file mode 100644 index 000000000..8aceab8c4 --- /dev/null +++ b/talimatname/genel/g/gtkhtml/talimat @@ -0,0 +1,16 @@ +# Tanım: GtkHTML paketi hafif bir HTML oluşturma / yazdırma / düzenleme motoru içerir. +# URL: https://github.com/GNOME/gtkhtml +# Paketçi: milisarge +# Gerekler: enchant gsettings-desktop-schemas gtk3 iso-codes libsoup + +isim=gtkhtml +surum=4.10.0 +devir=1 +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/g/gtkmm/talimat b/talimatname/genel/g/gtkmm/talimat new file mode 100644 index 000000000..ecbc8d924 --- /dev/null +++ b/talimatname/genel/g/gtkmm/talimat @@ -0,0 +1,23 @@ +# Tanım: Gtk2 için C ++ bağları +# URL: http://gtkmm.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: gtk2 pangomm cairomm atkmm + +isim=gtkmm +surum=2.24.4 +devir=1 +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum + +CXXFLAGS+=' -std=c++11' + + ./configure \ + --prefix=/usr \ + --disable-dependency-tracking \ + --disable-documentation + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/g/gtkmm3/talimat b/talimatname/genel/g/gtkmm3/talimat new file mode 100644 index 000000000..419c949ff --- /dev/null +++ b/talimatname/genel/g/gtkmm3/talimat @@ -0,0 +1,18 @@ +# Tanım: GTK+ ve GNOME için C ++ arabirimleri +# URL: http://www.gtkmm.org/ +# Paketçi: yasarciv milisarge +# Gerekler: gtk3 glibmm pangomm atkmm + +isim=gtkmm3 +surum=3.18.1 +devir=1 +kaynak=(http://download.gnome.org/sources/gtkmm/${version:0:4}/gtkmm-$surum.tar.xz) + +derle() { + cd gtkmm-$surum + ./configure --prefix=/usr + make -j1 + make -j1 DESTDIR=$PKG install + + rm -r $PKG/usr/share/doc +} diff --git a/talimatname/genel/g/gtksourceview2/talimat b/talimatname/genel/g/gtksourceview2/talimat new file mode 100644 index 000000000..d40f1510f --- /dev/null +++ b/talimatname/genel/g/gtksourceview2/talimat @@ -0,0 +1,18 @@ +# Tanım: GTK+ 2 metin işlevlerini sözdizimini vurgulamaya genişletmek için kullanılan kitaplıklar. +# URL: http://www.gnome.org/ +# Paketçi: milisarge +# Gerekler: gtk2 libxml2 + +isim=gtksourceview2 +surum=2.10.5 +devir=2 +kaynak=(http://ftp.gnome.org/pub/gnome/sources/gtksourceview/2.10/gtksourceview-${surum}.tar.bz2) + +derle() { +cd gtksourceview-$surum +sed -i 's#python#python2#' gtksourceview/language-specs/convert.py + ./configure --prefix=/usr --sysconfdir=/etc \ + --localstatedir=/var --disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/g/gtksourceview3/talimat b/talimatname/genel/g/gtksourceview3/talimat new file mode 100644 index 000000000..f3dd98402 --- /dev/null +++ b/talimatname/genel/g/gtksourceview3/talimat @@ -0,0 +1,17 @@ +# Tanım: GtkSourceView, standart GTK+ metin widget'ını genişleten bir metin widgettır +# URL: http://mail.gnome.org/mailman/listinfo/gnome-devtools +# Paketçi: milisarge yasarciv67@gmail.com +# Gerekler: gtk3 libxml2 + +isim=gtksourceview3 +surum=3.24.2 +devir=1 +_isim=gtksourceview +kaynak=(http://download.gnome.org/sources/${_name}/${version:0:4}/${_name}-$surum.tar.xz) + +derle() { + cd ${_name}-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/g/gtkspell/talimat b/talimatname/genel/g/gtkspell/talimat new file mode 100644 index 000000000..a2c1aeebc --- /dev/null +++ b/talimatname/genel/g/gtkspell/talimat @@ -0,0 +1,26 @@ +# Tanım: GtkTextView widget'inde kelime işlemci tarzı vurgulama ve yanlış yazılmış kelimelerin değiştirilmesini sağlar. +# URL: http://gtkspell.sourceforge.net/ +# Paketçi: yasarciv67 Cihan_Alkan +# Gerekler: gtk3 enchant gtk2 +# Grup: kütüphane + +isim=gtkspell +surum=3.0.9 +devir=1 + +kaynak=(https://sourceforge.net/projects/gtkspell/files/$surum/gtkspell3-$surum.tar.xz + https://downloads.sourceforge.net/sourceforge/gtkspell/${isim}-2.0.16.tar.gz) + +derle() { + cd gtkspell3-$surum + ./configure --prefix=/usr --disable-static + make + make DESTDIR=$PKG install + + cd ../$isim-2.0.16 + ./configure --prefix=/usr --disable-static + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/gtk-doc +} diff --git a/talimatname/genel/g/gtop/talimat b/talimatname/genel/g/gtop/talimat new file mode 100644 index 000000000..3ed67ef98 --- /dev/null +++ b/talimatname/genel/g/gtop/talimat @@ -0,0 +1,23 @@ +# Tanım: Terminal için sistem izleme kontrol paneli +# URL: https://github.com/aksakalli/gtop +# Paketçi: Cihan_Alkan +# Gerekler: node +# Grup: sistem + + +isim=gtop +surum=0.1.4 +devir=1 +kaynak=(https://github.com/aksakalli/gtop/archive/v${surum}.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + npm install --production + cd $SRC + local _npmdir="$PKG/usr/lib/node_modules" + mkdir -p "$_npmdir" + cp -R "$SRC/$isim-$surum" "$_npmdir/gtop" + local _bindir="$PKG/usr/bin" + mkdir -p "$_bindir" + ln -s /usr/lib/node_modules/gtop/bin/gtop "$_bindir/gtop" +} diff --git a/talimatname/genel/g/gtrayicon/talimat b/talimatname/genel/g/gtrayicon/talimat new file mode 100644 index 000000000..7b40757a4 --- /dev/null +++ b/talimatname/genel/g/gtrayicon/talimat @@ -0,0 +1,25 @@ +# Tanım: Hızlı ve menulü , sistem çekmecesi için simge oluştuma uygulaması +# URL: http://gtrayicon.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: gtk2 libglade + +isim=gtrayicon +surum=1.1 +devir=1 +kaynak=(http://kaynaklar.milislinux.org/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + make + install -d $PKG/usr/share/$isim + install -d $PKG/usr/bin + install -m 644 $isim.glade $PKG/usr/share/$isim/ + install -m 644 activate.svg $PKG/usr/share/$isim/ + install -m 644 deactivate.svg $PKG/usr/share/$isim/ + install -m 755 $isim $PKG/usr/bin/ + install -m 644 README $PKG/usr/share/$isim/ + install -m 644 ChangeLog $PKG/usr/share/$isim/ + install -m 644 LICENSE $PKG/usr/share/$isim/ + install -m 644 sample.menu $PKG/usr/share/$isim/ +} + diff --git a/talimatname/genel/g/guake/guake.kur-kos b/talimatname/genel/g/guake/guake.kur-kos new file mode 100644 index 000000000..aea6bad51 --- /dev/null +++ b/talimatname/genel/g/guake/guake.kur-kos @@ -0,0 +1 @@ +gconftool-2 --install-schema-file=/usr/share/gconf/schemas/guake.schemas diff --git a/talimatname/genel/g/guake/talimat b/talimatname/genel/g/guake/talimat new file mode 100644 index 000000000..2c3bda1e4 --- /dev/null +++ b/talimatname/genel/g/guake/talimat @@ -0,0 +1,25 @@ +# Tanım: Guake, Gnome için tepeden inişli bir terminaldir (KDE Yakuake, Tilda veya Quake'de kullanılan terminal tarzında) +# URL: http://guake-project.org/ +# Paketçi: milisarge aydinyakar +# Gerekler: intltool gnome-common python-notify vte python-vte python-gconf dbus-python python-keybinder python-xdg libutempter + +isim=guake +surum=0.8.7 +devir=1 +kaynak=(https://github.com/Guake/$isim/archive/$surum.tar.gz) + +derle() { + # Python2 fix + cd $isim-$surum + sed -i 's|/usr/bin/env python|/usr/bin/python2|' src/guake/prefs.py + + NOCONFIGURE=1 ./autogen.sh + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + --disable-schemas-install \ + --with-gconf-schema-file-dir=/usr/share/gconf/schemas \ + PYTHON=python2 + make + make DESTDIR="$PKG" install + python2 -m compileall "$PKG"/usr/lib/python2.7/site-packages/guake/ + +} diff --git a/talimatname/genel/g/gucharmap/gucharmap.kur-kos b/talimatname/genel/g/gucharmap/gucharmap.kur-kos new file mode 100644 index 000000000..4b4baf3fd --- /dev/null +++ b/talimatname/genel/g/gucharmap/gucharmap.kur-kos @@ -0,0 +1,2 @@ +glib-compile-schemas /usr/share/glib-2.0/schemas +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor diff --git a/talimatname/genel/g/gucharmap/talimat b/talimatname/genel/g/gucharmap/talimat new file mode 100644 index 000000000..3a6906701 --- /dev/null +++ b/talimatname/genel/g/gucharmap/talimat @@ -0,0 +1,17 @@ +# Tanım: Gucharmap, Unicode karakter haritası ve yazı tipi görüntüleyici. +# URL: http://www.gnome.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: gsettings-desktop-schemas desktop-file-utils gtk-update-icon-cache gtk3 itstool gobject-introspection vala + +isim=gucharmap +surum=8.0.1 +devir=1 + +kaynak=(http://download.gnome.org/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --enable-vala + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/g/guile/talimat b/talimatname/genel/g/guile/talimat new file mode 100644 index 000000000..4da52b858 --- /dev/null +++ b/talimatname/genel/g/guile/talimat @@ -0,0 +1,35 @@ +# Tanım: Guile, Scheme programlama dili için bir yorumlayıcı ve derleyicidir. +# URL: http://www.gnu.org/software/guile/guile.html +# Paketçi: milisarge +# Gerekler: gc libunistring libffi emacs gdb + +isim=guile +surum=2.2.2 +devir=1 +kaynak=(ftp://ftp.gnu.org/gnu/$isim/$isim-$surum.tar.xz) + +derle() { + + cd $isim-$surum + + ./configure \ + --prefix=/usr \ + --disable-static + + make + make html + + makeinfo --plaintext -o doc/r5rs/r5rs.txt doc/r5rs/r5rs.texi + makeinfo --plaintext -o doc/ref/guile.txt doc/ref/guile.texi + + make DESTDIR=$PKG install + make install-html + + install -v -m755 -d $PKG/usr/share/gdb/auto-load/usr/lib + mv $PKG/usr/lib/libguile-*-gdb.scm $PKG/usr/share/gdb/auto-load/usr/lib + install -v -m755 -d $PKG/usr/share/doc/guile-2.0.11 + + find examples -name "Makefile*" -delete + unset DIRNAME + +} diff --git a/talimatname/genel/g/gunicorn/talimat b/talimatname/genel/g/gunicorn/talimat new file mode 100644 index 000000000..896b739f4 --- /dev/null +++ b/talimatname/genel/g/gunicorn/talimat @@ -0,0 +1,19 @@ +# Tanım: Python'da yazılmış (green unicorn) WSGI HTTP sunucu +# URL: http://pypi.python.org/pypi/six/ +# Paketçi: milisarge +# Gerekler: python python3 python-pip python3-pip + +isim=gunicorn +surum=19.7.0 +devir=1 + +kaynak=(https://github.com/benoitc/${isim}/archive/${surum}.tar.gz) + +derle() { + cd "${isim}-${surum}" + python3 setup.py install --root="${PKG}" --prefix=/usr --optimize=1 + mv "${PKG}/usr/bin/gunicorn" "${PKG}/usr/bin/gunicorn3" + python setup.py install --root="${PKG}" --prefix=/usr --optimize=1 + rm -r "${PKG}/usr/bin/gunicorn_paster" +} + diff --git a/talimatname/genel/g/gupnp/talimat b/talimatname/genel/g/gupnp/talimat new file mode 100755 index 000000000..3a34b3f80 --- /dev/null +++ b/talimatname/genel/g/gupnp/talimat @@ -0,0 +1,18 @@ +# Tanım: Nesneye yönelik bir UPNP çerçevesi +# URL: http://gupnp.org/ +# Paketçi: milisarge +# Gerekler: gssdp util-linux + +isim=gupnp +surum=0.20.14 +devir=1 +kaynak=(http://ftp.gnome.org/pub/gnome/sources/${isim}/${surum%.*}.tar.xz) + +derle() { +cd $isim-$surum +sed -i '1s|^#!.*python$|&2|' tools/gupnp-binding-tool + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + --disable-static --with-context-manager=linux +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/g/gutenprint-gimp/talimat b/talimatname/genel/g/gutenprint-gimp/talimat new file mode 100644 index 000000000..0cf956073 --- /dev/null +++ b/talimatname/genel/g/gutenprint-gimp/talimat @@ -0,0 +1,27 @@ +# Tanım: Gimp gutenprint eklentisi +# URL: http://gimp-print.sourceforge.net +# Paketçi: milisarge +# Gerekler: gutenprint gimp + +isim=gutenprint-gimp +surum=5.2.13 +devir=1 +kaynak=(http://downloads.sourceforge.net/gimp-print/gutenprint-$surum.tar.bz2) + +derle() { + cd gutenprint-$surum + + ./configure --prefix=/usr \ + --disable-{samples,escputil} \ + --without-{foomatic,ghostscript,doc} \ + --enable-libgutenprintui2 \ + --with-gimp2 + make + make DESTDIR=$PKG install + + rm $PKG/usr/lib/libgutenprint.* + rm $PKG/usr/lib/pkgconfig/gutenprint.pc + rm -r $PKG/usr/include/gutenprint + rm -r $PKG/usr/lib/cups + rm -r $PKG/usr/{bin,sbin,share} $PKG/etc +} diff --git a/talimatname/genel/g/gutenprint/gutenprint.kur-kos b/talimatname/genel/g/gutenprint/gutenprint.kur-kos new file mode 100644 index 000000000..7083fbdd1 --- /dev/null +++ b/talimatname/genel/g/gutenprint/gutenprint.kur-kos @@ -0,0 +1,3 @@ +if [ -f /etc/rc.d/init.d/cups ]; then + /etc/rc.d/init.d/cups restart +fi diff --git a/talimatname/genel/g/gutenprint/talimat b/talimatname/genel/g/gutenprint/talimat new file mode 100644 index 000000000..596a7f4bd --- /dev/null +++ b/talimatname/genel/g/gutenprint/talimat @@ -0,0 +1,23 @@ +# Tanım: POSIX sistemleri için en kaliteli yazıcı sürücüleri +# URL: http://gimp-print.sourceforge.net +# Paketçi: milisarge +# Gerekler: ghostscript + +isim=gutenprint +surum=5.2.13 +devir=1 +kaynak=(http://downloads.sourceforge.net/gimp-print/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + + ./configure --prefix=/usr \ + --disable-samples \ + --disable-libgutenprintui2 \ + --without-gimp2 + + make + make DESTDIR=$PKG install + + rm -r $PKG/usr/share/gutenprint/doc +} diff --git a/talimatname/genel/g/gvfs/gvfs.kur-kos b/talimatname/genel/g/gvfs/gvfs.kur-kos new file mode 100644 index 000000000..f57cfeb82 --- /dev/null +++ b/talimatname/genel/g/gvfs/gvfs.kur-kos @@ -0,0 +1,2 @@ +gio-querymodules /usr/lib/gio/modules +glib-compile-schemas /usr/share/glib-2.0/schemas > /dev/null 2>&1 diff --git a/talimatname/genel/g/gvfs/talimat b/talimatname/genel/g/gvfs/talimat new file mode 100644 index 000000000..5a1036c9d --- /dev/null +++ b/talimatname/genel/g/gvfs/talimat @@ -0,0 +1,20 @@ +# Tanım: GVfs, GIO'nun G/Ç soyutlamasıyla çalışmak üzere tasarlanmış bir kullanıcı alanı sanal dosya sistemidir. +# URL: http://www.gnome.org/ +# Paketçi: milisarge +# Gerekler: avahi dbus-glib intltool libsecret gtk3 libsoup udisks2 obexd fuse libarchive samba bluez gcr libgphoto2 libmtp glib + +isim=gvfs +surum=1.33.1 +devir=1 +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --sysconfdir=/etc \ + --localstatedir=/var --disable-static \ + --libexecdir=/usr/lib/gvfs \ + --with-bash-completion-dir=/usr/share/bash-completion/completions \ + --disable-systemd + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/g/gvim/gvim.desktop b/talimatname/genel/g/gvim/gvim.desktop new file mode 100644 index 000000000..e1a43b5e0 --- /dev/null +++ b/talimatname/genel/g/gvim/gvim.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Encoding=UTF-8 +Version=1.0 +Name=gVim +Comment=GTK2 enhanced vim text editor +GenericName=Text Editor +Type=Application +TryExec=gvim +Exec=gvim %F +Icon=vim48x48.png +Terminal=false +Categories=GTK;Application;Utility;TextEditor; diff --git a/talimatname/genel/g/gvim/talimat b/talimatname/genel/g/gvim/talimat new file mode 100644 index 000000000..3977fcfd4 --- /dev/null +++ b/talimatname/genel/g/gvim/talimat @@ -0,0 +1,26 @@ +# Tanım: Vim düzenleyicisinin GTK sürümü +# URL: http://www.vim.org/ +# Paketçi: milisarge +# Gerekler: vim gtk2 xorg-libxt + +isim=gvim +surum=8.0.0329 +devir=1 +kaynak=(http://crux.nu/files/distfiles/vim-$surum.tar.xz) + +derle() { + cd vim-$surum/src + + ./configure --prefix=/usr \ + --with-vim-isim=gvim \ + --with-x=yes \ + --enable-gui=gtk2 \ + --enable-multibyte \ + --enable-cscope \ + --disable-gpm + + make VIMRTDIR= + make VIMRTDIR= DESTDIR=$PKG installvimbin install-icons + + sed -ri '/\[.+\]=/d' $PKG/usr/share/applications/*.desktop +} diff --git a/talimatname/genel/g/gwenview/talimat b/talimatname/genel/g/gwenview/talimat new file mode 100644 index 000000000..0433261d1 --- /dev/null +++ b/talimatname/genel/g/gwenview/talimat @@ -0,0 +1,23 @@ +# Tanım: KDE5 için hızlı ve basit bir resim görüntüleme aracı +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: qt5 kf5-extra-cmake-modules phonon-qt5 kf5-kio kf5-kactivities kf5-kdelibs4support libjpeg-turbo libpng exiv2 lcms2 kf5-baloo hicolor-icon-theme libkdcraw libkipi +# Grup: kde + +isim=gwenview +surum=17.12.0 +devir=1 +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DGWENVIEW_SEMANTICINFO_BACKEND="Baloo" \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/h/handbrake/talimat b/talimatname/genel/h/handbrake/talimat new file mode 100644 index 000000000..634a342d3 --- /dev/null +++ b/talimatname/genel/h/handbrake/talimat @@ -0,0 +1,22 @@ +# Tanım: Acik kaynak kodlu video donusturucu +# URL: http://handbrake.fr/ +# Paketçi: milisarge +# Gerekler: cmake qt5 libnotify lame x264 gtk3 faad2 freetype fribidi xorg-fontconfig libass libbluray libogg libpng libsamplerate libtheora libvorbis libvpx libxml2 perl-xml-parser pcre xorg-pixman python yasm x265 + +isim=handbrake +surum=0.10.3 +devir=1 +kaynak=(http://download.handbrake.fr/releases/$surum/HandBrake-$surum.tar.bz2) + +derle() { + cd HandBrake-$surum + + ./configure \ + --prefix=/usr \ + --force \ + --disable-gtk-update-checks + + cd build + make -j1 + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/h/hardinfo/hardinfo-tr.po b/talimatname/genel/h/hardinfo/hardinfo-tr.po new file mode 100644 index 000000000..ea91face0 --- /dev/null +++ b/talimatname/genel/h/hardinfo/hardinfo-tr.po @@ -0,0 +1,4350 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , 2018. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: 0.6\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-08-14 22:23-0500\n" +"PO-Revision-Date: 2018-01-10 22:23-0200\n" +"Last-Translator: Cihan Alkan \n" +"Language-Team: Turkish\n" +"Language: tr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" + +#. / %d will be latest year of copyright +#: hardinfo/hardinfo.c:49 +#, c-format +msgid "" +"Copyright (C) 2003-%d Leandro A. F. Pereira. See COPYING for details.\n" +"\n" +msgstr "" +"Telif(C) 2003-%d Leandro A. F. Pereira. Ayrıntılar için COPYING bölümüne bakın.\n" +"\n" + +#: hardinfo/hardinfo.c:51 +#, c-format +msgid "" +"Compile-time options:\n" +" Release version: %s (%s)\n" +" BinReloc enabled: %s\n" +" Data prefix: %s\n" +" Library prefix: %s\n" +" Compiled for: %s\n" +msgstr "" +"Derleme zamanı seçenekleri:\n" +" Dağıtım sürümü: %s (%s)\n" +" BinReloc etkin: %s\n" +" Veri öneki: %s\n" +" Kütüphane öneki: %s\n" +" Için derlendi: %s\n" + +#: hardinfo/hardinfo.c:57 hardinfo/hardinfo.c:58 modules/computer.c:605 +#: modules/devices/inputdevices.c:128 modules/devices/pci.c:112 +#: modules/devices/printers.c:138 +msgid "Yes" +msgstr "Evet" + +#: hardinfo/hardinfo.c:58 modules/computer.c:605 modules/devices/pci.c:112 +#: modules/devices/printers.c:138 +msgid "No" +msgstr "Hayır" + +#: hardinfo/hardinfo.c:69 +#, c-format +msgid "" +"Failed to find runtime data.\n" +"\n" +"• Is HardInfo correctly installed?\n" +"• See if %s and %s exists and you have read permission." +msgstr "" +"Çalışma zamanı verileri bulunamadı.\n" +"\n" +"• HardInfo doğru kurulmuş mu?\n" +"• See if %s and %s exists and you have read permission." + +#: hardinfo/hardinfo.c:76 +#, c-format +msgid "" +"Modules:\n" +"%-20s %-15s %-12s\n" +msgstr "" + +#: hardinfo/hardinfo.c:77 +msgid "File Name" +msgstr "Dosya Adı" + +#: hardinfo/hardinfo.c:77 modules/computer.c:534 modules/computer.c:562 +#: modules/computer.c:630 modules/computer/languages.c:104 +#: modules/computer/modules.c:146 modules/devices/arm/processor.c:336 +#: modules/devices/ia64/processor.c:160 modules/devices/inputdevices.c:116 +#: modules/devices/pci.c:215 modules/devices/sh/processor.c:84 +#: modules/devices/x86/processor.c:455 modules/network.c:326 +msgid "Name" +msgstr "İsim" + +#: hardinfo/hardinfo.c:77 modules/computer.c:296 modules/computer.c:505 +#: modules/computer.c:507 modules/computer.c:595 modules/computer.c:603 +#: modules/devices/inputdevices.c:121 +msgid "Version" +msgstr "Sürüm" + +#: hardinfo/hardinfo.c:124 +#, c-format +msgid "Unknown benchmark ``%s'' or libbenchmark.so not loaded" +msgstr "" + +#: hardinfo/hardinfo.c:152 +msgid "Don't know what to do. Exiting." +msgstr "Ne yapacağımı bilmiyorum. Çıkılıyor." + +#: hardinfo/util.c:104 modules/computer/uptime.c:53 +#, c-format +msgid "%d day" +msgid_plural "%d days" +msgstr[0] "%d gün" +msgstr[1] "%d gün" + +#: hardinfo/util.c:105 modules/computer/uptime.c:54 +#, c-format +msgid "%d hour" +msgid_plural "%d hours" +msgstr[0] "%d saat" +msgstr[1] "%d saat" + +#: hardinfo/util.c:106 modules/computer/uptime.c:55 +#, c-format +msgid "%d minute" +msgid_plural "%d minutes" +msgstr[0] "%d dakika" +msgstr[1] "%d dakika" + +#: hardinfo/util.c:107 +#, c-format +msgid "%d second" +msgid_plural "%d seconds" +msgstr[0] "%d saniye" +msgstr[1] "%d saniye" + +#: hardinfo/util.c:128 +#, c-format +msgid "%.1f B" +msgstr "" + +#: hardinfo/util.c:130 +#, c-format +msgid "%.1f KiB" +msgstr "" + +#: hardinfo/util.c:132 +#, c-format +msgid "%.1f MiB" +msgstr "" + +#: hardinfo/util.c:134 +#, c-format +msgid "%.1f GiB" +msgstr "" + +#: hardinfo/util.c:136 +#, c-format +msgid "%.1f TiB" +msgstr "" + +#: hardinfo/util.c:138 +#, c-format +msgid "%.1f PiB" +msgstr "" + +#: hardinfo/util.c:361 +msgid "Error" +msgstr "Hata" + +#: hardinfo/util.c:361 hardinfo/util.c:377 +msgid "Warning" +msgstr "Uyarı" + +#: hardinfo/util.c:376 +msgid "Fatal Error" +msgstr "Ölümcül Hata" + +#: hardinfo/util.c:401 +msgid "creates a report and prints to standard output" +msgstr "bir rapor oluşturur ve standart çıktıya basar" + +#: hardinfo/util.c:407 +msgid "chooses a report format (text, html)" +msgstr "bir rapor biçimi seçer (metin, html)" + +#: hardinfo/util.c:413 +msgid "run benchmark; requires benchmark.so to be loaded" +msgstr "kriter çalıştır; Benchmark.so'nin yüklenmesi gerekiyor" + +#: hardinfo/util.c:419 +msgid "lists modules" +msgstr "modülleri listeler" + +#: hardinfo/util.c:425 +msgid "specify module to load" +msgstr "yüklenecek modülü belirt" + +#: hardinfo/util.c:431 +msgid "automatically load module dependencies" +msgstr "modül bağımlılıklarını otomatik olarak yükle" + +#: hardinfo/util.c:438 +msgid "run in XML-RPC server mode" +msgstr "XML-RPC sunucu modunda çalıştır" + +#: hardinfo/util.c:445 +msgid "shows program version and quit" +msgstr "program sürümünü gösterir ve çıkış" + +#: hardinfo/util.c:450 +msgid "- System Profiler and Benchmark tool" +msgstr "- Sistem Profiler ve Karşılaştırma aracı" + +#: hardinfo/util.c:460 +#, c-format +msgid "" +"Unrecognized arguments.\n" +"Try ``%s --help'' for more information.\n" +msgstr "" + +#: hardinfo/util.c:526 +#, c-format +msgid "Couldn't find a Web browser to open URL %s." +msgstr "" + +#: hardinfo/util.c:875 +#, c-format +msgid "Module \"%s\" depends on module \"%s\", load it?" +msgstr "" + +#: hardinfo/util.c:898 +#, c-format +msgid "Module \"%s\" depends on module \"%s\"." +msgstr "" + +#: hardinfo/util.c:943 +#, c-format +msgid "No module could be loaded. Check permissions on \"%s\" and try again." +msgstr "" + +#: hardinfo/util.c:947 +msgid "" +"No module could be loaded. Please use hardinfo -l to list all available " +"modules and try again with a valid module list." +msgstr "" + +#: hardinfo/util.c:1024 +#, c-format +msgid "Scanning: %s..." +msgstr "Taranıyor: %s..." + +#: hardinfo/util.c:1034 shell/shell.c:301 shell/shell.c:760 shell/shell.c:1795 +#: modules/benchmark.c:449 modules/benchmark.c:457 +msgid "Done." +msgstr "Bitti" + +#: shell/callbacks.c:117 +#, c-format +msgid "%s Module" +msgstr "%s Modül" + +#: shell/callbacks.c:128 +#, c-format +msgid "" +"Written by %s\n" +"Licensed under %s" +msgstr "" + +#: shell/callbacks.c:142 +#, c-format +msgid "No about information is associated with the %s module." +msgstr "%s modülü ile ilgili bilgi yok." + +#: shell/callbacks.c:158 +msgid "Author:" +msgstr "Yazar:" + +#: shell/callbacks.c:161 +msgid "Contributors:" +msgstr "Katkı sağlayanlar" + +#: shell/callbacks.c:166 +msgid "Based on work by:" +msgstr "Tarafından yapılan çalışmaya göre" + +#: shell/callbacks.c:167 +msgid "MD5 implementation by Colin Plumb (see md5.c for details)" +msgstr "Colin Plumb tarafından MD5 uygulaması (ayrıntılar için md5.c'ye bakın)" + +#: shell/callbacks.c:168 +msgid "SHA1 implementation by Steve Reid (see sha1.c for details)" +msgstr "Steve Reid'in SHA1 uygulaması (ayrıntılar için sha1.c'ye bakın)" + +#: shell/callbacks.c:169 +msgid "Blowfish implementation by Paul Kocher (see blowfich.c for details)" +msgstr "Paul Kocher tarafından yapılan Blowfish uygulaması (ayrıntılar için blowfich.c'ye bakın)" + +#: shell/callbacks.c:170 +msgid "Raytracing benchmark by John Walker (see fbench.c for details)" +msgstr "" + +#: shell/callbacks.c:171 +msgid "FFT benchmark by Scott Robert Ladd (see fftbench.c for details)" +msgstr "" + +#: shell/callbacks.c:172 +msgid "Some code partly based on x86cpucaps by Osamu Kayasono" +msgstr "" + +#: shell/callbacks.c:173 +msgid "Vendor list based on GtkSysInfo by Pissens Sebastien" +msgstr "" + +#: shell/callbacks.c:174 +msgid "DMI support based on code by Stewart Adam" +msgstr "" + +#: shell/callbacks.c:175 +msgid "SCSI support based on code by Pascal F. Martin" +msgstr "" + +#: shell/callbacks.c:180 +msgid "Tango Project" +msgstr "Tango Projesi" + +#: shell/callbacks.c:181 +msgid "The GNOME Project" +msgstr "GNOME Projesi" + +#: shell/callbacks.c:182 +msgid "VMWare, Inc. (USB icon from VMWare Workstation 6)" +msgstr "" + +#: shell/callbacks.c:200 +msgid "System information and benchmark tool" +msgstr "Sistem bilgisi ve Karşılaştırma Aracı\n (Türkçe Çevirisi Cihan Alkan Tarafından Yapılmıştır)" + +#: shell/callbacks.c:205 +msgid "" +"HardInfo is free software; you can redistribute it and/or modify it under " +"the terms of the GNU General Public License as published by the Free " +"Software Foundation, version 2.\n" +"\n" +"This program is distributed in the hope that it will be useful, but WITHOUT " +"ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or " +"FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for " +"more details.\n" +"\n" +"You should have received a copy of the GNU General Public License along with " +"this program; if not, write to the Free Software Foundation, Inc., 51 " +"Franklin St, Fifth Floor, Boston, MA 02110-1301 USA" +msgstr "" + +#: shell/callbacks.c:220 +msgid "translator-credits" +msgstr "çevirmen-kredisi" + +#: shell/menu.c:35 +msgid "_Information" +msgstr "_Bilgi" + +#: shell/menu.c:36 +msgid "_Remote" +msgstr "Uzak" + +#: shell/menu.c:37 +msgid "_View" +msgstr "Görünüm" + +#: shell/menu.c:38 +msgid "_Help" +msgstr "Yardım" + +#: shell/menu.c:39 +msgid "About _Modules" +msgstr "Modüller Hakkında" + +#: shell/menu.c:43 +msgid "Generate _Report" +msgstr "Rapor Oluştur" + +#: shell/menu.c:48 +msgid "_Network Updater..." +msgstr "" + +#: shell/menu.c:53 +msgid "_Open..." +msgstr "Aç..." + +#: shell/menu.c:58 +msgid "_Copy to Clipboard" +msgstr "Panoya Kopyala" + +#: shell/menu.c:59 +msgid "Copy to clipboard" +msgstr "Panoya kopyala" + +#: shell/menu.c:63 +msgid "_Refresh" +msgstr "Yenile" + +#: shell/menu.c:68 +msgid "_Open HardInfo Web Site" +msgstr "HardInfo Web Sayfasına Git" + +#: shell/menu.c:73 +msgid "_Report bug" +msgstr "Hata Bildir" + +#: shell/menu.c:78 +msgid "_About HardInfo" +msgstr "HardInfo Hakkında" + +#: shell/menu.c:79 +msgid "Displays program version information" +msgstr "Program sürüm bilgilerini görüntüler" + +#: shell/menu.c:83 +msgid "_Quit" +msgstr "Çıkış" + +#: shell/menu.c:90 +msgid "_Side Pane" +msgstr "Yan Panel" + +#: shell/menu.c:91 +msgid "Toggles side pane visibility" +msgstr "Yan bölmenin görünürlüğünü açar veya kapatır" + +#: shell/menu.c:94 +msgid "_Toolbar" +msgstr "Araç Çubuğu" + +#: shell/report.c:494 shell/report.c:502 +msgid "Save File" +msgstr "Dosya Kaydet" + +#: shell/report.c:629 +msgid "Cannot create ReportContext. Programming bug?" +msgstr "ReportContext oluşturulamıyor. Hatalı programlama mı?" + +#: shell/report.c:648 +msgid "Open the report with your web browser?" +msgstr "Raporu web tarayıcınızla açın?" + +#: shell/report.c:682 +msgid "Generating report..." +msgstr "Rapor üretiliyor ..." + +#: shell/report.c:692 +msgid "Report saved." +msgstr "Rapor kaydedildi." + +#: shell/report.c:694 +msgid "Error while creating the report." +msgstr "Rapor oluşturulurken hata oluştu." + +#: shell/report.c:796 +msgid "Generate Report" +msgstr "Rapor Oluştur" + +#: shell/report.c:821 +msgid "" +"Generate Report\n" +"Please choose the information that you wish to view in your report:" +msgstr "" +"Rapor Oluştur\n" +"Lütfen raporunuzda görmek istediğiniz bilgileri seçin:" + +#: shell/report.c:893 +msgid "Select _None" +msgstr "Seçim Yok" + +#: shell/report.c:904 +msgid "Select _All" +msgstr "Tümünü Seç" + +#: shell/report.c:929 shell/syncmanager.c:748 +msgid "_Cancel" +msgstr "İptal" + +#: shell/report.c:939 +msgid "_Generate" +msgstr "Oluştur" + +#: shell/shell.c:402 +#, c-format +msgid "%s - System Information" +msgstr "%s - Sistem Bilgisi" + +#: shell/shell.c:407 +msgid "System Information" +msgstr "Sistem Bilgisi" + +#: shell/shell.c:747 +msgid "Loading modules..." +msgstr "Modüller yükleniyor..." + +#: shell/shell.c:1660 +#, c-format +msgid "%s → Summary" +msgstr "%s → Özet" + +#: shell/shell.c:1769 +msgid "Updating..." +msgstr "Güncelleniyor" + +#: shell/syncmanager.c:69 +msgid "" +"Synchronize with Central Database\n" +"The following information may be synchronized with the HardInfo central " +"database." +msgstr "" + +#: shell/syncmanager.c:72 +msgid "" +"Synchronizing\n" +"This may take some time." +msgstr "" + +#: shell/syncmanager.c:132 +msgid "" +"HardInfo was compiled without libsoup support. (Network Updater requires it.)" +msgstr "" + +#: shell/syncmanager.c:161 shell/syncmanager.c:189 +#, c-format +msgid "%s (error #%d)" +msgstr "" + +#: shell/syncmanager.c:170 shell/syncmanager.c:198 +msgid "Could not parse XML-RPC response" +msgstr "XML-RPC yanıtı ayrıştırılamadı" + +#: shell/syncmanager.c:280 +#, c-format +msgid "" +"Server says it supports API version %d, but this version of HardInfo only " +"supports API version %d." +msgstr "" + +#: shell/syncmanager.c:375 +msgid "Contacting HardInfo Central Database" +msgstr "HardInfo Merkez Veritabanı ile Bağlantı Kuruluyor" + +#: shell/syncmanager.c:376 +msgid "Cleaning up" +msgstr "Temizle" + +#: shell/syncmanager.c:493 +msgid "(canceled)" +msgstr "(vazgeçildi)" + +#: shell/syncmanager.c:510 +msgid "(failed)" +msgstr "(hatalı)" + +#: shell/syncmanager.c:521 +#, c-format +msgid "" +"Failed while performing \"%s\". Please file a bug report if this problem " +"persists. (Use the Help→Report bug option.)\n" +"\n" +"Details: %s" +msgstr "" + +#: shell/syncmanager.c:530 +#, c-format +msgid "" +"Failed while performing \"%s\". Please file a bug report if this problem " +"persists. (Use the Help→Report bug option.)" +msgstr "" + +#: shell/syncmanager.c:658 +msgid "Network Updater" +msgstr "Ağ Güncelleyicisi" + +#: shell/syncmanager.c:757 +msgid "_Synchronize" +msgstr "Senkronize Et" + +#: modules/benchmark.c:52 +msgid "CPU Blowfish" +msgstr "" + +#: modules/benchmark.c:53 +msgid "CPU CryptoHash" +msgstr "" + +#: modules/benchmark.c:54 +msgid "CPU Fibonacci" +msgstr "" + +#: modules/benchmark.c:55 +msgid "CPU N-Queens" +msgstr "" + +#: modules/benchmark.c:56 +msgid "CPU Zlib" +msgstr "" + +#: modules/benchmark.c:57 +msgid "FPU FFT" +msgstr "" + +#: modules/benchmark.c:58 +msgid "FPU Raytracing" +msgstr "" + +#: modules/benchmark.c:60 +msgid "GPU Drawing" +msgstr "" + +#: modules/benchmark.c:239 modules/benchmark.c:255 +msgid "CPU Config" +msgstr "" + +#: modules/benchmark.c:239 modules/benchmark.c:255 +msgid "Results" +msgstr "Sonuç" + +#: modules/benchmark.c:239 modules/benchmark.c:255 modules/computer.c:751 +#: modules/devices/sparc/processor.c:75 +msgid "CPU" +msgstr "" + +#: modules/benchmark.c:381 +#, c-format +msgid "Benchmarking: %s." +msgstr "Karşılaştırılıyor: %s." + +#: modules/benchmark.c:395 +msgid "Benchmarking. Please do not move your mouse or press any keys." +msgstr "Karşılaştırılıyor. Lütfen farenizi hareket ettirmeyin veya herhangi bir tuşa basmayın." + +#: modules/benchmark.c:399 +msgid "Cancel" +msgstr "İptal" + +#: modules/benchmark.c:536 +msgid "Results in MiB/second. Higher is better." +msgstr "MiB / saniye olarak sonuçlanır. Üstte olanlar daha iyidir." + +#: modules/benchmark.c:540 +msgid "Results in HIMarks. Higher is better." +msgstr "HIMarks sonuçları. Üstte olanlar daha iyidir." + +#: modules/benchmark.c:547 +msgid "Results in seconds. Lower is better." +msgstr "Saniyeler içinde sonuçlandı. Altta olanlar daha iyidir." + +#: modules/benchmark.c:555 +msgid "Benchmarks" +msgstr "Karşılaştır" + +#: modules/benchmark.c:573 +msgid "Perform tasks and compare with other systems" +msgstr "Görevleri yerine getir ve diğer sistemler ile karşılaştır" + +#: modules/benchmark.c:663 +msgid "Send benchmark results" +msgstr "" + +#: modules/benchmark.c:668 +msgid "Receive benchmark results" +msgstr "Benchmark results gönder" + +#: modules/computer/alsa.c:26 modules/computer.c:489 +msgid "Audio Devices" +msgstr "Ses Aygıtları" + +#: modules/computer/alsa.c:34 +msgid "Audio Adapter" +msgstr "Ses Adaptörü" + +#: modules/computer/boots.c:33 modules/computer.c:73 modules/computer.c:546 +msgid "Boots" +msgstr "Açılış" + +#: modules/computer.c:70 +msgid "Summary" +msgstr "Özet" + +#: modules/computer.c:71 modules/computer.c:476 modules/computer.c:750 +msgid "Operating System" +msgstr "İşletim Sistemi" + +#: modules/computer.c:72 +msgid "Kernel Modules" +msgstr "Çekirdek Modülleri" + +#: modules/computer.c:74 +msgid "Languages" +msgstr "Diller" + +#: modules/computer.c:75 +msgid "Filesystems" +msgstr "Dosya Sistemleri" + +#: modules/computer.c:76 modules/computer.c:481 modules/computer.c:590 +msgid "Display" +msgstr "Ekran" + +#: modules/computer.c:77 modules/computer/environment.c:32 +msgid "Environment Variables" +msgstr "Ortam Değişkenleri" + +#: modules/computer.c:79 +msgid "Development" +msgstr "Geliştirme" + +#: modules/computer.c:81 modules/computer.c:617 +msgid "Users" +msgstr "Kullanıcılar" + +#: modules/computer.c:82 +msgid "Groups" +msgstr "Gruplar" + +#: modules/computer.c:104 modules/computer.c:473 modules/devices.c:96 +#: modules/devices/pci.c:149 +msgid "Memory" +msgstr "Hafıza" + +#: modules/computer.c:106 +#, c-format +msgid "%dMB (%dMB used)" +msgstr "%dMB (%dMB kullanılan)" + +#: modules/computer.c:108 modules/computer.c:520 +msgid "Uptime" +msgstr "Çalışma Süresi" + +#: modules/computer.c:110 modules/computer.c:478 +msgid "Date/Time" +msgstr "Tarih/Saat" + +#: modules/computer.c:115 modules/computer.c:521 +msgid "Load Average" +msgstr "" + +#: modules/computer.c:117 modules/computer.c:522 +msgid "Available entropy in /dev/random" +msgstr "" + +#: modules/computer.c:203 +msgid "Scripting Languages" +msgstr "Komut Oluşturma Dilleri" + +#: modules/computer.c:204 +msgid "Gambas3 (gbr3)" +msgstr "" + +#: modules/computer.c:205 +msgid "Python" +msgstr "" + +#: modules/computer.c:206 +msgid "Python2" +msgstr "" + +#: modules/computer.c:207 +msgid "Python3" +msgstr "" + +#: modules/computer.c:208 +msgid "Perl" +msgstr "" + +#: modules/computer.c:209 +msgid "Perl6 (VM)" +msgstr "" + +#: modules/computer.c:210 +msgid "Perl6" +msgstr "" + +#: modules/computer.c:211 +msgid "PHP" +msgstr "" + +#: modules/computer.c:212 +msgid "Ruby" +msgstr "" + +#: modules/computer.c:213 +msgid "Bash" +msgstr "" + +#: modules/computer.c:214 +msgid "Compilers" +msgstr "Derleyiciler" + +#: modules/computer.c:215 +msgid "C (GCC)" +msgstr "" + +#: modules/computer.c:216 +msgid "C (Clang)" +msgstr "" + +#: modules/computer.c:217 +msgid "D (dmd)" +msgstr "" + +#: modules/computer.c:218 +msgid "Gambas3 (gbc3)" +msgstr "" + +#: modules/computer.c:219 +msgid "Java" +msgstr "" + +#: modules/computer.c:220 +msgid "CSharp (Mono, old)" +msgstr "" + +#: modules/computer.c:221 +msgid "CSharp (Mono)" +msgstr "" + +#: modules/computer.c:222 +msgid "Vala" +msgstr "" + +#: modules/computer.c:223 +msgid "Haskell (GHC)" +msgstr "" + +#: modules/computer.c:224 +msgid "FreePascal" +msgstr "" + +#: modules/computer.c:225 +msgid "Go" +msgstr "" + +#: modules/computer.c:226 +msgid "Tools" +msgstr "Araçlar" + +#: modules/computer.c:227 +msgid "make" +msgstr "" + +#: modules/computer.c:228 +msgid "GDB" +msgstr "" + +#: modules/computer.c:229 +msgid "strace" +msgstr "" + +#: modules/computer.c:230 +msgid "valgrind" +msgstr "" + +#: modules/computer.c:231 +msgid "QMake" +msgstr "" + +#: modules/computer.c:232 +msgid "CMake" +msgstr "" + +#: modules/computer.c:233 +msgid "Gambas3 IDE" +msgstr "" + +#: modules/computer.c:274 +msgid "Not found" +msgstr "Bulunamadı" + +#: modules/computer.c:279 +#, c-format +msgid "Detecting version: %s" +msgstr "Sürüm algılanıyor: %s" + +#: modules/computer.c:296 +msgid "Program" +msgstr "" + +#: modules/computer.c:308 +msgid "Invalid chassis type (0)" +msgstr "" + +#: modules/computer.c:309 modules/computer.c:310 +msgid "Unknown chassis type" +msgstr "Bilinmeyen şasi tipi" + +#: modules/computer.c:311 +msgid "Desktop" +msgstr "Masaüstü" + +#: modules/computer.c:312 +msgid "Low-profile Desktop" +msgstr "Düşük profilli Masaüstü" + +#: modules/computer.c:313 +msgid "Pizza Box" +msgstr "" + +#: modules/computer.c:314 +msgid "Mini Tower" +msgstr "" + +#: modules/computer.c:315 +msgid "Tower" +msgstr "" + +#: modules/computer.c:316 +msgid "Portable" +msgstr "Taşınabilir" + +#: modules/computer.c:317 modules/computer.c:341 modules/computer.c:350 +#: modules/computer.c:372 +msgid "Laptop" +msgstr "" + +#: modules/computer.c:318 +msgid "Notebook" +msgstr "" + +#: modules/computer.c:319 +msgid "Handheld" +msgstr "" + +#: modules/computer.c:320 +msgid "Docking Station" +msgstr "Yerleştirme İstasyonu" + +#: modules/computer.c:321 +msgid "All-in-one" +msgstr "Hepsi Bir Arada" + +#: modules/computer.c:322 +msgid "Subnotebook" +msgstr "" + +#: modules/computer.c:323 +msgid "Space-saving" +msgstr "" + +#: modules/computer.c:324 +msgid "Lunch Box" +msgstr "" + +#: modules/computer.c:325 +msgid "Main Server Chassis" +msgstr "" + +#: modules/computer.c:326 +msgid "Expansion Chassis" +msgstr "Genişletme Şasisi" + +#: modules/computer.c:327 +msgid "Sub Chassis" +msgstr "" + +#: modules/computer.c:328 +msgid "Bus Expansion Chassis" +msgstr "" + +#: modules/computer.c:329 +msgid "Peripheral Chassis" +msgstr "" + +#: modules/computer.c:330 +msgid "RAID Chassis" +msgstr "" + +#: modules/computer.c:331 +msgid "Rack Mount Chassis" +msgstr "" + +#: modules/computer.c:332 +msgid "Sealed-case PC" +msgstr "" + +#. /proc/apm +#. FIXME: use dmidecode if available to get chassis type +#: modules/computer.c:386 +msgid "Unknown physical machine type" +msgstr "Bilinmeyen fiziksel makine türü" + +#: modules/computer.c:470 modules/computer.c:709 +msgid "Computer" +msgstr "Bilgisayar" + +#: modules/computer.c:471 modules/devices/alpha/processor.c:87 +#: modules/devices/arm/processor.c:236 modules/devices.c:95 +#: modules/devices/ia64/processor.c:159 modules/devices/m68k/processor.c:83 +#: modules/devices/mips/processor.c:74 modules/devices/parisc/processor.c:154 +#: modules/devices/ppc/processor.c:157 modules/devices/riscv/processor.c:181 +#: modules/devices/s390/processor.c:131 modules/devices/sh/processor.c:83 +#: modules/devices/sparc/processor.c:74 modules/devices/x86/processor.c:409 +msgid "Processor" +msgstr "İşlemci" + +#: modules/computer.c:474 +msgid "Machine Type" +msgstr "Makine Türü" + +#: modules/computer.c:477 modules/computer.c:514 +msgid "User Name" +msgstr "Kullanıcı Adı" + +#: modules/computer.c:482 modules/computer.c:591 +msgid "Resolution" +msgstr "Çözünürlük" + +#: modules/computer.c:483 modules/computer.c:592 +#, c-format +msgid "%dx%d pixels" +msgstr "%dx%d piksel" + +#: modules/computer.c:485 +msgid "OpenGL Renderer" +msgstr "" + +#: modules/computer.c:486 +msgid "X11 Vendor" +msgstr "" + +#: modules/computer.c:491 modules/devices.c:102 +msgid "Input Devices" +msgstr "Giriş Aygıtları" + +#: modules/computer.c:493 modules/computer.c:752 modules/devices.c:99 +msgid "Printers" +msgstr "Yazıcılar" + +#: modules/computer.c:495 modules/computer.c:752 modules/devices.c:103 +msgid "Storage" +msgstr "Depolama" + +#: modules/computer.c:506 +msgid "Kernel" +msgstr "Çekirdek" + +#: modules/computer.c:508 +msgid "C Library" +msgstr "C Kütüphanesi" + +#: modules/computer.c:509 +msgid "Distribution" +msgstr "Dağıtım" + +#: modules/computer.c:512 +msgid "Current Session" +msgstr "Mevcut Oturum" + +#: modules/computer.c:513 +msgid "Computer Name" +msgstr "Bilgisayar Adı" + +#: modules/computer.c:515 modules/computer/languages.c:108 +msgid "Language" +msgstr "Dil" + +#: modules/computer.c:516 modules/computer/users.c:50 +msgid "Home Directory" +msgstr "Ev Dizini" + +#: modules/computer.c:519 modules/devices/usb.c:87 modules/devices/usb.c:234 +#: modules/devices/usb.c:351 +msgid "Misc" +msgstr "Çeşitli" + +#: modules/computer.c:532 +msgid "Loaded Modules" +msgstr "Yüklü Modüller" + +#: modules/computer.c:535 modules/computer/modules.c:145 +#: modules/computer/modules.c:147 modules/devices/arm/processor.c:337 +#: modules/devices.c:559 modules/devices/x86/processor.c:456 +msgid "Description" +msgstr "Tanım" + +#: modules/computer.c:548 +msgid "Date & Time" +msgstr "Tarih & Zaman" + +#: modules/computer.c:549 +msgid "Kernel Version" +msgstr "Çekirdek Sürümü" + +#: modules/computer.c:559 +msgid "Available Languages" +msgstr "" + +#: modules/computer.c:561 +msgid "Language Code" +msgstr "Dil Kodu" + +#: modules/computer.c:573 +msgid "Mounted File Systems" +msgstr "Bağlı Dosya Sistemleri" + +#: modules/computer.c:575 modules/computer/filesystem.c:85 +msgid "Mount Point" +msgstr "Bağlantı Noktası" + +#: modules/computer.c:576 +msgid "Usage" +msgstr "Kullanım" + +#: modules/computer.c:577 +msgid "Device" +msgstr "Aygıt" + +#: modules/computer.c:594 modules/computer.c:601 +#: modules/devices/ia64/processor.c:161 modules/devices/inputdevices.c:119 +#: modules/devices/pci.c:225 modules/devices/usb.c:349 +#: modules/devices/x86/processor.c:416 +msgid "Vendor" +msgstr "Satıcı" + +#: modules/computer.c:598 +msgid "Monitors" +msgstr "Ekranlar" + +#: modules/computer.c:600 +msgid "OpenGL" +msgstr "" + +#: modules/computer.c:602 +msgid "Renderer" +msgstr "" + +#: modules/computer.c:604 +msgid "Direct Rendering" +msgstr "" + +#: modules/computer.c:608 +msgid "Extensions" +msgstr "Eklentiler" + +#: modules/computer.c:628 +msgid "Group" +msgstr "Grup" + +#: modules/computer.c:631 modules/computer/users.c:49 +msgid "Group ID" +msgstr "Grup ID" + +#: modules/computer.c:751 +msgid "RAM" +msgstr "" + +#: modules/computer.c:751 modules/devices/devicetree/pmac_data.c:82 +msgid "Motherboard" +msgstr "Anakart" + +#: modules/computer.c:751 +msgid "Graphics" +msgstr "Ekran Kartı" + +#: modules/computer.c:752 +msgid "Audio" +msgstr "Ses" + +#: modules/computer.c:807 +msgid "Gathers high-level computer information" +msgstr "Üst düzey bilgisayar bilgilerini toplar" + +#: modules/computer/display.c:122 +#, c-format +msgid "Monitor %d=%dx%d pixels\n" +msgstr "" + +#: modules/computer/filesystem.c:83 +msgid "Filesystem" +msgstr "Dosya Sistemi" + +#: modules/computer/filesystem.c:84 +msgid "Mounted As" +msgstr "" + +#: modules/computer/filesystem.c:84 +msgid "Read-Write" +msgstr "Okuma-Yazma" + +#: modules/computer/filesystem.c:84 +msgid "Read-Only" +msgstr "Salt Okunur" + +#: modules/computer/filesystem.c:86 modules/devices/spd-decode.c:1510 +msgid "Size" +msgstr "Boyut" + +#: modules/computer/filesystem.c:87 +msgid "Used" +msgstr "Kullanılan" + +#: modules/computer/filesystem.c:88 +msgid "Available" +msgstr "Uygulanabilir" + +#: modules/computer/languages.c:103 +msgid "Locale Information" +msgstr "Yerel Bilgisi" + +#: modules/computer/languages.c:105 +msgid "Source" +msgstr "Kaynak" + +#: modules/computer/languages.c:106 +msgid "Address" +msgstr "Adres" + +#: modules/computer/languages.c:107 +msgid "E-mail" +msgstr "" + +#: modules/computer/languages.c:109 +msgid "Territory" +msgstr "Bölge" + +#: modules/computer/languages.c:110 modules/devices/arm/processor.c:250 +#: modules/devices/ia64/processor.c:166 modules/devices/ppc/processor.c:159 +#: modules/devices/usb.c:236 +msgid "Revision" +msgstr "Revizyon" + +#: modules/computer/languages.c:111 +msgid "Date" +msgstr "Tarih" + +#: modules/computer/languages.c:112 +msgid "Codeset" +msgstr "" + +#: modules/computer/loadavg.c:64 +msgid "Couldn't obtain load average" +msgstr "Yük ortalaması alınamadı" + +#: modules/computer/modules.c:125 modules/computer/modules.c:126 +#: modules/computer/modules.c:127 modules/computer/modules.c:128 +#: modules/computer/modules.c:129 +msgid "(Not available)" +msgstr "(Uygun değil)" + +#: modules/computer/modules.c:142 +msgid "Module Information" +msgstr "Modül Bilgisi" + +#: modules/computer/modules.c:143 +msgid "Path" +msgstr "Yol" + +#: modules/computer/modules.c:144 +msgid "Used Memory" +msgstr "Kullanılan Hafıza" + +#: modules/computer/modules.c:144 +msgid "KiB" +msgstr "" + +#: modules/computer/modules.c:148 +msgid "Version Magic" +msgstr "" + +#: modules/computer/modules.c:149 +msgid "Copyright" +msgstr "Telif" + +#: modules/computer/modules.c:150 +msgid "Author" +msgstr "Yazar" + +#: modules/computer/modules.c:151 +msgid "License" +msgstr "Lisans" + +#: modules/computer/modules.c:158 +msgid "Dependencies" +msgstr "Bağımlılıklar" + +#: modules/computer/os.c:35 modules/computer/os.c:36 modules/computer/os.c:37 +#: modules/computer/os.c:38 +msgid "GNU C Library" +msgstr "" + +#: modules/computer/os.c:39 +msgid "uClibc or uClibc-ng" +msgstr "" + +#: modules/computer/os.c:40 +msgid "diet libc" +msgstr "" + +#: modules/computer/os.c:78 modules/computer/os.c:234 modules/computer/os.c:359 +#: modules/devices.c:333 modules/devices.c:387 modules/devices/printers.c:99 +#: modules/devices/printers.c:106 modules/devices/printers.c:116 +#: modules/devices/printers.c:131 modules/devices/printers.c:140 +#: modules/devices/printers.c:243 +msgid "Unknown" +msgstr "Bilinmeyen" + +#: modules/computer/os.c:112 modules/computer/os.c:115 +msgid "GNOME Shell " +msgstr "" + +#: modules/computer/os.c:123 modules/computer/os.c:126 +msgid "Version: " +msgstr "Sürüm" + +#: modules/computer/os.c:157 +#, c-format +msgid "Unknown (Window Manager: %s)" +msgstr "Bilinmeyen (Pencere Yöneticisi: %s)" + +#. /{desktop environment} on {session type} +#: modules/computer/os.c:168 +#, c-format +msgid "%s on %s" +msgstr "" + +#: modules/computer/os.c:232 +msgid "Terminal" +msgstr "" + +#. /bits of entropy for rng (0) +#: modules/computer/os.c:241 +msgid "(None or not available)" +msgstr "(Yok veya uygun değil)" + +#. /bits of entropy for rng (low/poor value) +#: modules/computer/os.c:242 +#, c-format +msgid "%d bits (low)" +msgstr "" + +#. /bits of entropy for rng (medium value) +#: modules/computer/os.c:243 +#, c-format +msgid "%d bits (medium)" +msgstr "" + +#. /bits of entropy for rng (high/good value) +#: modules/computer/os.c:244 +#, c-format +msgid "%d bits (healthy)" +msgstr "" + +#: modules/computer/os.c:279 modules/devices/usb.c:48 modules/devices/usb.c:307 +#: modules/devices/usb.c:310 modules/network/net.c:442 includes/cpu_util.h:11 +msgid "(Unknown)" +msgstr "(Bilinmeyen)" + +#: modules/computer/users.c:47 +msgid "User Information" +msgstr "Kullanıcı Bilgisi" + +#: modules/computer/users.c:48 +msgid "User ID" +msgstr "Kullanıcı ID" + +#: modules/computer/users.c:51 +msgid "Default Shell" +msgstr "" + +#: modules/devices/alpha/processor.c:88 modules/devices/devicetree.c:141 +#: modules/devices/devicetree.c:176 modules/devices/devicetree/pmac_data.c:80 +#: modules/devices/ia64/processor.c:165 modules/devices/m68k/processor.c:84 +#: modules/devices/mips/processor.c:75 modules/devices/parisc/processor.c:155 +#: modules/devices/ppc/processor.c:158 modules/devices/riscv/processor.c:182 +#: modules/devices/s390/processor.c:132 modules/devices/spd-decode.c:1510 +msgid "Model" +msgstr "" + +#: modules/devices/alpha/processor.c:89 +msgid "Platform String" +msgstr "" + +#: modules/devices/alpha/processor.c:90 modules/devices/arm/processor.c:240 +#: modules/devices/ia64/processor.c:167 modules/devices/m68k/processor.c:87 +#: modules/devices/mips/processor.c:77 modules/devices/parisc/processor.c:158 +#: modules/devices/pci.c:108 modules/devices/ppc/processor.c:160 +#: modules/devices/riscv/processor.c:186 modules/devices/sh/processor.c:87 +#: modules/devices/x86/processor.c:420 +msgid "Frequency" +msgstr "Frekans" + +#: modules/devices/alpha/processor.c:90 modules/devices/arm/processor.c:240 +#: modules/devices/arm/processor.c:365 modules/devices.c:299 +#: modules/devices.c:307 modules/devices.c:335 +#: modules/devices/ia64/processor.c:167 modules/devices/ia64/processor.c:196 +#: modules/devices/m68k/processor.c:87 modules/devices/mips/processor.c:77 +#: modules/devices/parisc/processor.c:158 +#: modules/devices/parisc/processor.c:191 modules/devices/pci.c:108 +#: modules/devices/ppc/processor.c:160 modules/devices/ppc/processor.c:187 +#: modules/devices/riscv/processor.c:186 modules/devices/riscv/processor.c:214 +#: modules/devices/s390/processor.c:160 modules/devices/sh/processor.c:87 +#: modules/devices/sh/processor.c:88 modules/devices/sh/processor.c:89 +#: modules/devices/x86/processor.c:420 modules/devices/x86/processor.c:479 +msgid "MHz" +msgstr "" + +#: modules/devices/alpha/processor.c:91 modules/devices/arm/processor.c:241 +#: modules/devices/ia64/processor.c:168 modules/devices/m68k/processor.c:88 +#: modules/devices/mips/processor.c:78 modules/devices/parisc/processor.c:159 +#: modules/devices/ppc/processor.c:161 modules/devices/s390/processor.c:134 +#: modules/devices/sh/processor.c:90 modules/devices/x86/processor.c:421 +msgid "BogoMips" +msgstr "" + +#: modules/devices/alpha/processor.c:92 modules/devices/arm/processor.c:242 +#: modules/devices/ia64/processor.c:169 modules/devices/m68k/processor.c:89 +#: modules/devices/mips/processor.c:79 modules/devices/parisc/processor.c:160 +#: modules/devices/ppc/processor.c:162 modules/devices/riscv/processor.c:187 +#: modules/devices/s390/processor.c:135 modules/devices/sh/processor.c:91 +#: modules/devices/sparc/processor.c:77 modules/devices/x86/processor.c:422 +msgid "Byte Order" +msgstr "" + +#. /hw_cap +#. /flag:swp +#: modules/devices/arm/arm_data.c:42 +msgctxt "arm-flag" +msgid "SWP instruction (atomic read-modify-write)" +msgstr "" + +#. /flag:half +#: modules/devices/arm/arm_data.c:43 +msgctxt "arm-flag" +msgid "Half-word loads and stores" +msgstr "" + +#. /flag:thumb +#: modules/devices/arm/arm_data.c:44 +msgctxt "arm-flag" +msgid "Thumb (16-bit instruction set)" +msgstr "" + +#. /flag:26bit +#: modules/devices/arm/arm_data.c:45 +msgctxt "arm-flag" +msgid "26-Bit Model (Processor status register folded into program counter)" +msgstr "" + +#. /flag:fastmult +#: modules/devices/arm/arm_data.c:46 +msgctxt "arm-flag" +msgid "32x32->64-bit multiplication" +msgstr "" + +#. /flag:fpa +#: modules/devices/arm/arm_data.c:47 +msgctxt "arm-flag" +msgid "Floating point accelerator" +msgstr "" + +#. /flag:vfp +#: modules/devices/arm/arm_data.c:48 +msgctxt "arm-flag" +msgid "VFP (early SIMD vector floating point instructions)" +msgstr "" + +#. /flag:edsp +#: modules/devices/arm/arm_data.c:49 +msgctxt "arm-flag" +msgid "DSP extensions (the 'e' variant of the ARM9 CPUs, and all others above)" +msgstr "" + +#. /flag:java +#: modules/devices/arm/arm_data.c:50 +msgctxt "arm-flag" +msgid "Jazelle (Java bytecode accelerator)" +msgstr "" + +#. /flag:iwmmxt +#: modules/devices/arm/arm_data.c:51 +msgctxt "arm-flag" +msgid "SIMD instructions similar to Intel MMX" +msgstr "" + +#. /flag:crunch +#: modules/devices/arm/arm_data.c:52 +msgctxt "arm-flag" +msgid "MaverickCrunch coprocessor (if kernel support enabled)" +msgstr "" + +#. /flag:thumbee +#: modules/devices/arm/arm_data.c:53 +msgctxt "arm-flag" +msgid "ThumbEE" +msgstr "" + +#. /flag:neon +#: modules/devices/arm/arm_data.c:54 +msgctxt "arm-flag" +msgid "Advanced SIMD/NEON on AArch32" +msgstr "" + +#. /flag:evtstrm +#: modules/devices/arm/arm_data.c:55 +msgctxt "arm-flag" +msgid "Kernel event stream using generic architected timer" +msgstr "" + +#. /flag:vfpv3 +#: modules/devices/arm/arm_data.c:56 +msgctxt "arm-flag" +msgid "VFP version 3" +msgstr "" + +#. /flag:vfpv3d16 +#: modules/devices/arm/arm_data.c:57 +msgctxt "arm-flag" +msgid "VFP version 3 with 16 D-registers" +msgstr "" + +#. /flag:vfpv4 +#: modules/devices/arm/arm_data.c:58 +msgctxt "arm-flag" +msgid "VFP version 4 with fast context switching" +msgstr "" + +#. /flag:vfpd32 +#: modules/devices/arm/arm_data.c:59 +msgctxt "arm-flag" +msgid "VFP with 32 D-registers" +msgstr "" + +#. /flag:tls +#: modules/devices/arm/arm_data.c:60 +msgctxt "arm-flag" +msgid "TLS register" +msgstr "" + +#. /flag:idiva +#: modules/devices/arm/arm_data.c:61 +msgctxt "arm-flag" +msgid "SDIV and UDIV hardware division in ARM mode" +msgstr "" + +#. /flag:idivt +#: modules/devices/arm/arm_data.c:62 +msgctxt "arm-flag" +msgid "SDIV and UDIV hardware division in Thumb mode" +msgstr "" + +#. /flag:lpae +#: modules/devices/arm/arm_data.c:63 +msgctxt "arm-flag" +msgid "40-bit Large Physical Address Extension" +msgstr "" + +#. /hw_cap2 +#. /flag:pmull +#: modules/devices/arm/arm_data.c:65 +msgctxt "arm-flag" +msgid "64x64->128-bit F2m multiplication (arch>8)" +msgstr "" + +#. /flag:aes +#: modules/devices/arm/arm_data.c:66 +msgctxt "arm-flag" +msgid "Crypto:AES (arch>8)" +msgstr "" + +#. /flag:sha1 +#: modules/devices/arm/arm_data.c:67 +msgctxt "arm-flag" +msgid "Crypto:SHA1 (arch>8)" +msgstr "" + +#. /flag:sha2 +#: modules/devices/arm/arm_data.c:68 +msgctxt "arm-flag" +msgid "Crypto:SHA2 (arch>8)" +msgstr "" + +#. /flag:crc32 +#: modules/devices/arm/arm_data.c:69 +msgctxt "arm-flag" +msgid "CRC32 checksum instructions (arch>8)" +msgstr "" + +#. /flag:asimd +#: modules/devices/arm/arm_data.c:72 +msgctxt "arm-flag" +msgid "Advanced SIMD/NEON on AArch64 (arch>8)" +msgstr "" + +#: modules/devices/arm/processor.c:142 +msgid "ARM Processor" +msgstr "" + +#: modules/devices/arm/processor.c:200 modules/devices/riscv/processor.c:147 +#: modules/devices/x86/processor.c:371 +msgid "Empty List" +msgstr "" + +#: modules/devices/arm/processor.c:237 +msgid "Linux Name" +msgstr "Linux Adı" + +#: modules/devices/arm/processor.c:238 +msgid "Decoded Name" +msgstr "" + +#: modules/devices/arm/processor.c:239 modules/network/net.c:458 +msgid "Mode" +msgstr "" + +#: modules/devices/arm/processor.c:245 +msgid "ARM" +msgstr "" + +#: modules/devices/arm/processor.c:246 +msgid "Implementer" +msgstr "" + +#: modules/devices/arm/processor.c:247 +msgid "Part" +msgstr "" + +#: modules/devices/arm/processor.c:248 modules/devices/ia64/processor.c:162 +#: modules/devices/parisc/processor.c:156 modules/devices/riscv/processor.c:183 +msgid "Architecture" +msgstr "Mimari" + +#: modules/devices/arm/processor.c:249 +msgid "Variant" +msgstr "" + +#: modules/devices/arm/processor.c:251 modules/devices/riscv/processor.c:190 +#: modules/devices/sparc/processor.c:78 modules/devices/x86/processor.c:428 +msgid "Capabilities" +msgstr "" + +#: modules/devices/arm/processor.c:335 +msgid "SOC/Package" +msgstr "" + +#: modules/devices/arm/processor.c:338 modules/devices/cpu_util.c:222 +msgid "Topology" +msgstr "" + +#: modules/devices/arm/processor.c:339 +msgid "Clocks" +msgstr "" + +#: modules/devices/arm/processor.c:354 +msgid "SOC/Package Information" +msgstr "" + +#: modules/devices/battery.c:181 +#, c-format +msgid "" +"\n" +"[Battery: %s]\n" +"State=%s (load: %s)\n" +"Capacity=%s / %s (%.2f%%)\n" +"Battery Technology=%s (%s)\n" +"Manufacturer=%s\n" +"Model Number=%s\n" +"Serial Number=%s\n" +msgstr "" + +#: modules/devices/battery.c:258 +#, c-format +msgid "" +"\n" +"[Battery: %s]\n" +"State=%s\n" +"Capacity=%s / %s\n" +"Battery Technology=%s\n" +"Manufacturer=%s\n" +"Model Number=%s\n" +"Serial Number=%s\n" +msgstr "" + +#: modules/devices/battery.c:346 +#, c-format +msgid "" +"\n" +"[Battery (APM)]\n" +"Charge=%d%%\n" +"Remaining Charge=%s of %s\n" +"Using=%s\n" +"APM driver version=%s\n" +"APM BIOS version=%s\n" +msgstr "" + +#: modules/devices/battery.c:358 +#, c-format +msgid "" +"\n" +"[Battery (APM)]\n" +"Charge=%d%%\n" +"Using=%s\n" +"APM driver version=%s\n" +"APM BIOS version=%s\n" +msgstr "" + +#: modules/devices/battery.c:385 +msgid "" +"[No batteries]\n" +"No batteries found on this system=\n" +msgstr "" + +#: modules/devices.c:97 +msgid "PCI Devices" +msgstr "PCI Aygıtlar" + +#: modules/devices.c:98 modules/devices/usb.c:117 modules/devices/usb.c:156 +#: modules/devices/usb.c:415 +msgid "USB Devices" +msgstr "USB Aygıtlar" + +#: modules/devices.c:100 +msgid "Battery" +msgstr "Batarya" + +#: modules/devices.c:101 +msgid "Sensors" +msgstr "Sensörler" + +#: modules/devices.c:105 +msgid "DMI" +msgstr "" + +#: modules/devices.c:106 +msgid "Memory SPD" +msgstr "SPD Hafıza" + +#: modules/devices.c:111 +msgid "Device Tree" +msgstr "Aygıt Ağacı" + +#: modules/devices.c:113 +msgid "Resources" +msgstr "Kaynaklar" + +#: modules/devices.c:151 +#, c-format +msgid "%d physical processor" +msgid_plural "%d physical processors" +msgstr[0] "" +msgstr[1] "" + +#: modules/devices.c:152 +#, c-format +msgid "%d core" +msgid_plural "%d cores" +msgstr[0] "" +msgstr[1] "" + +#: modules/devices.c:153 +#, c-format +msgid "%d thread" +msgid_plural "%d threads" +msgstr[0] "" +msgstr[1] "" + +#. /NP procs; NC cores; NT threads +#: modules/devices.c:154 +#, c-format +msgid "%s; %s; %s" +msgstr "" + +#: modules/devices.c:372 +msgid " (model unknown)" +msgstr "(model bilinmiyor)" + +#: modules/devices.c:374 +msgid " (vendor unknown)" +msgstr "" + +#: modules/devices.c:559 +msgid "Field" +msgstr "" + +#: modules/devices.c:559 modules/devices.c:591 +msgid "Value" +msgstr "" + +#: modules/devices.c:591 +msgid "Sensor" +msgstr "" + +#: modules/devices.c:591 modules/devices/inputdevices.c:117 +msgid "Type" +msgstr "Tür" + +#: modules/devices.c:637 +msgid "Devices" +msgstr "Aygıtlar" + +#: modules/devices.c:649 +msgid "Update PCI ID listing" +msgstr "" + +#: modules/devices.c:661 +msgid "Update CPU feature database" +msgstr "CPU özellik veritabanını güncelle" + +#: modules/devices.c:689 +msgid "Gathers information about hardware devices" +msgstr "Donanım aygıtları hakkında bilgi toplar" + +#: modules/devices.c:708 +msgid "Resource information requires superuser privileges" +msgstr "Kaynak bilgileri süper kullanıcı ayrıcalıkları gerektirir" + +#: modules/devices/cpu_util.c:30 +msgid "Little Endian" +msgstr "" + +#: modules/devices/cpu_util.c:32 +msgid "Big Endian" +msgstr "" + +#: modules/devices/cpu_util.c:178 modules/devices/cpu_util.c:189 +msgid "Frequency Scaling" +msgstr "" + +#: modules/devices/cpu_util.c:179 +msgid "Minimum" +msgstr "" + +#: modules/devices/cpu_util.c:179 modules/devices/cpu_util.c:180 +#: modules/devices/cpu_util.c:181 +msgid "kHz" +msgstr "" + +#: modules/devices/cpu_util.c:180 +msgid "Maximum" +msgstr "En Fazla" + +#: modules/devices/cpu_util.c:181 +msgid "Current" +msgstr "Güncel" + +#: modules/devices/cpu_util.c:182 +msgid "Transition Latency" +msgstr "" + +#: modules/devices/cpu_util.c:182 +msgid "ns" +msgstr "" + +#: modules/devices/cpu_util.c:183 +msgid "Governor" +msgstr "" + +#: modules/devices/cpu_util.c:184 modules/devices/cpu_util.c:190 +msgid "Driver" +msgstr "Sürücü" + +#: modules/devices/cpu_util.c:196 modules/devices/x86/processor.c:297 +msgid "(Not Available)" +msgstr "" + +#: modules/devices/cpu_util.c:204 modules/devices/cpu_util.c:206 +msgid "Socket" +msgstr "" + +#: modules/devices/cpu_util.c:209 modules/devices/cpu_util.c:211 +msgid "Core" +msgstr "" + +#: modules/devices/cpu_util.c:214 +msgid "Book" +msgstr "" + +#: modules/devices/cpu_util.c:216 +msgid "Drawer" +msgstr "" + +#: modules/devices/cpu_util.c:223 +msgid "ID" +msgstr "" + +#: modules/devices/devicetree.c:47 +msgid "Properties" +msgstr "" + +#: modules/devices/devicetree.c:48 +msgid "Children" +msgstr "" + +#: modules/devices/devicetree.c:84 +msgid "Node" +msgstr "" + +#: modules/devices/devicetree.c:85 +msgid "Node Path" +msgstr "" + +#: modules/devices/devicetree.c:86 +msgid "Alias" +msgstr "" + +#: modules/devices/devicetree.c:86 modules/devices/devicetree.c:87 +msgid "(None)" +msgstr "" + +#: modules/devices/devicetree.c:87 +msgid "Symbol" +msgstr "" + +#: modules/devices/devicetree.c:132 modules/devices/devicetree/pmac_data.c:79 +msgid "Platform" +msgstr "" + +#: modules/devices/devicetree.c:133 modules/devices/devicetree.c:178 +msgid "Compatible" +msgstr "" + +#: modules/devices/devicetree.c:134 +msgid "GPU-compatible" +msgstr "" + +#: modules/devices/devicetree.c:140 +msgid "Raspberry Pi or Compatible" +msgstr "" + +#: modules/devices/devicetree.c:142 modules/devices/devicetree.c:160 +#: modules/devices/devicetree.c:177 modules/devices/devicetree/rpi_data.c:160 +msgid "Serial Number" +msgstr "" + +#: modules/devices/devicetree.c:143 modules/devices/devicetree/rpi_data.c:157 +msgid "RCode" +msgstr "" + +#: modules/devices/devicetree.c:143 +msgid "No revision code available; unable to lookup model details." +msgstr "" + +#: modules/devices/devicetree.c:159 +msgid "More" +msgstr "" + +#: modules/devices/devicetree.c:175 +msgid "Board" +msgstr "" + +#: modules/devices/devicetree.c:234 +msgid "Messages" +msgstr "" + +#: modules/devices/devicetree/dt_util.c:1013 +msgid "phandle Map" +msgstr "" + +#: modules/devices/devicetree/dt_util.c:1014 +msgid "Alias Map" +msgstr "" + +#: modules/devices/devicetree/dt_util.c:1015 +msgid "Symbol Map" +msgstr "" + +#: modules/devices/devicetree/pmac_data.c:78 +msgid "Apple Power Macintosh" +msgstr "" + +#: modules/devices/devicetree/pmac_data.c:81 modules/devices/sh/processor.c:85 +msgid "Machine" +msgstr "" + +#: modules/devices/devicetree/pmac_data.c:83 +msgid "Detected as" +msgstr "" + +#: modules/devices/devicetree/pmac_data.c:84 +msgid "PMAC Flags" +msgstr "" + +#: modules/devices/devicetree/pmac_data.c:85 +msgid "L2 Cache" +msgstr "" + +#: modules/devices/devicetree/pmac_data.c:86 +msgid "PMAC Generation" +msgstr "" + +#: modules/devices/devicetree/rpi_data.c:152 +#: modules/devices/devicetree/rpi_data.c:153 +msgid "Raspberry Pi" +msgstr "" + +#: modules/devices/devicetree/rpi_data.c:153 +msgid "Board Name" +msgstr "" + +#: modules/devices/devicetree/rpi_data.c:154 +msgid "PCB Revision" +msgstr "" + +#: modules/devices/devicetree/rpi_data.c:155 +msgid "Introduction" +msgstr "" + +#: modules/devices/devicetree/rpi_data.c:156 modules/devices/spd-decode.c:1510 +#: modules/devices/usb.c:84 modules/devices/usb.c:217 +msgid "Manufacturer" +msgstr "" + +#: modules/devices/devicetree/rpi_data.c:158 +msgid "SOC (spec)" +msgstr "" + +#: modules/devices/devicetree/rpi_data.c:159 +msgid "Memory (spec)" +msgstr "" + +#: modules/devices/devicetree/rpi_data.c:161 +msgid "Permanent overvolt bit" +msgstr "" + +#: modules/devices/devicetree/rpi_data.c:161 +msgctxt "rpi-ov-bit" +msgid "Set" +msgstr "" + +#: modules/devices/devicetree/rpi_data.c:161 +msgctxt "rpi-ov-bit" +msgid "Not set" +msgstr "" + +#: modules/devices/devmemory.c:93 +msgid "Total Memory" +msgstr "Toplam Hafıza" + +#: modules/devices/devmemory.c:94 +msgid "Free Memory" +msgstr "Boş Hafıza" + +#: modules/devices/devmemory.c:95 +msgid "Cached Swap" +msgstr "" + +#: modules/devices/devmemory.c:96 +msgid "High Memory" +msgstr "" + +#: modules/devices/devmemory.c:97 +msgid "Free High Memory" +msgstr "" + +#: modules/devices/devmemory.c:98 +msgid "Low Memory" +msgstr "" + +#: modules/devices/devmemory.c:99 +msgid "Free Low Memory" +msgstr "" + +#: modules/devices/devmemory.c:100 +msgid "Virtual Memory" +msgstr "" + +#: modules/devices/devmemory.c:101 +msgid "Free Virtual Memory" +msgstr "" + +#: modules/devices/dmi.c:188 +msgid "(Not available; Perhaps try running HardInfo as root.)" +msgstr "(Mevcut değil, belki de HardInfo'u kök olarak çalıştırmalısınız.)" + +#: modules/devices/ia64/processor.c:108 +msgid "IA64 Processor" +msgstr "" + +#: modules/devices/ia64/processor.c:163 +msgid "Architecture Revision" +msgstr "" + +#: modules/devices/ia64/processor.c:164 modules/devices/sh/processor.c:86 +msgid "Family" +msgstr "" + +#: modules/devices/ia64/processor.c:170 +msgid "CPU regs" +msgstr "" + +#: modules/devices/ia64/processor.c:171 +msgid "Features" +msgstr "" + +#: modules/devices/inputdevices.c:115 modules/devices/pci.c:214 +#: modules/devices/usb.c:82 modules/devices/usb.c:215 modules/devices/usb.c:347 +msgid "Device Information" +msgstr "Aygıt Bilgisi" + +#: modules/devices/inputdevices.c:118 modules/devices/usb.c:92 +#: modules/devices/usb.c:240 modules/devices/usb.c:356 +msgid "Bus" +msgstr "" + +#: modules/devices/inputdevices.c:120 modules/devices/usb.c:83 +#: modules/devices/usb.c:216 modules/devices/usb.c:348 +msgid "Product" +msgstr "Ürün" + +#: modules/devices/inputdevices.c:124 +msgid "Connected to" +msgstr "" + +#: modules/devices/inputdevices.c:128 +msgid "InfraRed port" +msgstr "Kızılötesi Portu" + +#: modules/devices/m68k/processor.c:85 modules/devices/riscv/processor.c:185 +msgid "MMU" +msgstr "" + +#: modules/devices/m68k/processor.c:86 modules/devices/sparc/processor.c:76 +msgid "FPU" +msgstr "" + +#: modules/devices/m68k/processor.c:90 +msgid "Calibration" +msgstr "" + +#: modules/devices/mips/processor.c:76 +msgid "System Type" +msgstr "Sistem Türü" + +#: modules/devices/parisc/processor.c:107 +msgid "PA-RISC Processor" +msgstr "" + +#: modules/devices/parisc/processor.c:157 +msgid "System" +msgstr "Sistem" + +#: modules/devices/parisc/processor.c:161 +msgid "HVersion" +msgstr "" + +#: modules/devices/parisc/processor.c:162 +msgid "SVersion" +msgstr "" + +#: modules/devices/parisc/processor.c:163 modules/devices/x86/processor.c:425 +msgid "Cache" +msgstr "" + +#: modules/devices/pci.c:106 +msgid "IRQ" +msgstr "" + +#: modules/devices/pci.c:110 +msgid "Latency" +msgstr "" + +#: modules/devices/pci.c:112 +msgid "Bus Master" +msgstr "" + +#: modules/devices/pci.c:118 +msgid "Kernel modules" +msgstr "" + +#: modules/devices/pci.c:124 +#, c-format +msgid "%s=%s (%s)\n" +msgstr "" + +#: modules/devices/pci.c:126 +msgid "OEM Vendor" +msgstr "" + +#: modules/devices/pci.c:153 +msgid "prefetchable" +msgstr "" + +#: modules/devices/pci.c:154 +msgid "non-prefetchable" +msgstr "" + +#: modules/devices/pci.c:163 +msgid "I/O ports at" +msgstr "" + +#: modules/devices/pci.c:216 modules/devices/usb.c:89 modules/devices/usb.c:237 +#: modules/devices/usb.c:353 +msgid "Class" +msgstr "" + +#: modules/devices/pci.c:217 +msgid "Domain" +msgstr "" + +#: modules/devices/pci.c:218 +msgid "Bus, device, function" +msgstr "" + +#: modules/devices/pci.c:243 +msgid "No PCI devices found" +msgstr "" + +#: modules/devices/ppc/processor.c:117 +msgid "POWER Processor" +msgstr "" + +#: modules/devices/printers.c:81 +msgid "⚬ Can do black and white printing=\n" +msgstr "" + +#: modules/devices/printers.c:83 +msgid "⚬ Can do color printing=\n" +msgstr "" + +#: modules/devices/printers.c:85 +msgid "⚬ Can do duplexing=\n" +msgstr "" + +#: modules/devices/printers.c:87 +msgid "⚬ Can do staple output=\n" +msgstr "" + +#: modules/devices/printers.c:89 +msgid "⚬ Can do copies=\n" +msgstr "" + +#: modules/devices/printers.c:91 +msgid "⚬ Can collate copies=\n" +msgstr "" + +#: modules/devices/printers.c:93 +msgid "⚬ Printer is rejecting jobs=\n" +msgstr "" + +#: modules/devices/printers.c:95 +msgid "⚬ Printer was automatically discovered and added=\n" +msgstr "" + +#: modules/devices/printers.c:110 +msgid "Idle" +msgstr "" + +#: modules/devices/printers.c:112 +msgid "Printing a Job" +msgstr "" + +#: modules/devices/printers.c:114 +msgid "Stopped" +msgstr "" + +#: modules/devices/printers.c:190 +msgid "" +"[Printers]\n" +"No suitable CUPS library found=" +msgstr "" + +#: modules/devices/printers.c:200 +msgid "[Printers (CUPS)]\n" +msgstr "" + +#: modules/devices/printers.c:263 +msgid "" +"[Printers]\n" +"No printers found=\n" +msgstr "" +"[Yazıcılar]\n" +"Yazıcı bulunamadı=\n" + +#: modules/devices/riscv/processor.c:107 +msgid "RISC-V Processor" +msgstr "" + +#: modules/devices/riscv/processor.c:184 +msgid "uarch" +msgstr "" + +#. /ext:RV32 +#: modules/devices/riscv/riscv_data.c:37 +msgctxt "rv-ext" +msgid "RISC-V 32-bit" +msgstr "" + +#. /ext:RV64 +#: modules/devices/riscv/riscv_data.c:38 +msgctxt "rv-ext" +msgid "RISC-V 64-bit" +msgstr "" + +#. /ext:RV128 +#: modules/devices/riscv/riscv_data.c:39 +msgctxt "rv-ext" +msgid "RISC-V 128-bit" +msgstr "" + +#. /ext:E +#: modules/devices/riscv/riscv_data.c:40 +msgctxt "rv-ext" +msgid "Base embedded integer instructions (15 registers)" +msgstr "" + +#. /ext:I +#: modules/devices/riscv/riscv_data.c:41 +msgctxt "rv-ext" +msgid "Base integer instructions (31 registers)" +msgstr "" + +#. /ext:M +#: modules/devices/riscv/riscv_data.c:42 +msgctxt "rv-ext" +msgid "Hardware integer multiply and divide" +msgstr "" + +#. /ext:A +#: modules/devices/riscv/riscv_data.c:43 +msgctxt "rv-ext" +msgid "Atomic memory operations" +msgstr "" + +#. /ext:C +#: modules/devices/riscv/riscv_data.c:44 +msgctxt "rv-ext" +msgid "Compressed 16-bit instructions" +msgstr "" + +#. /ext:F +#: modules/devices/riscv/riscv_data.c:45 +msgctxt "rv-ext" +msgid "Floating-point instructions, single-precision" +msgstr "" + +#. /ext:D +#: modules/devices/riscv/riscv_data.c:46 +msgctxt "rv-ext" +msgid "Floating-point instructions, double-precision" +msgstr "" + +#. /ext:Q +#: modules/devices/riscv/riscv_data.c:47 +msgctxt "rv-ext" +msgid "Floating-point instructions, quad-precision" +msgstr "" + +#. /ext:B +#: modules/devices/riscv/riscv_data.c:48 +msgctxt "rv-ext" +msgid "Bit manipulation instructions" +msgstr "" + +#. /ext:V +#: modules/devices/riscv/riscv_data.c:49 +msgctxt "rv-ext" +msgid "Vector operations" +msgstr "" + +#. /ext:T +#: modules/devices/riscv/riscv_data.c:50 +msgctxt "rv-ext" +msgid "Transactional memory" +msgstr "" + +#. /ext:P +#: modules/devices/riscv/riscv_data.c:51 +msgctxt "rv-ext" +msgid "Packed SIMD instructions" +msgstr "" + +#. /ext:L +#: modules/devices/riscv/riscv_data.c:52 +msgctxt "rv-ext" +msgid "Decimal floating-point instructions" +msgstr "" + +#. /ext:J +#: modules/devices/riscv/riscv_data.c:53 +msgctxt "rv-ext" +msgid "Dynamically translated languages" +msgstr "" + +#. /ext:N +#: modules/devices/riscv/riscv_data.c:54 +msgctxt "rv-ext" +msgid "User-level interrupts" +msgstr "" + +#: modules/devices/s390/processor.c:92 +msgid "S390 Processor" +msgstr "" + +#: modules/devices/s390/processor.c:133 +msgid "ID String" +msgstr "" + +#: modules/devices/sh/processor.c:55 +msgid "SuperH Processor" +msgstr "" + +#: modules/devices/sh/processor.c:88 +msgid "Bus Frequency" +msgstr "" + +#: modules/devices/sh/processor.c:89 +msgid "Module Frequency" +msgstr "Modül Frekansı" + +#: modules/devices/spd-decode.c:1475 +msgid "" +"[SPD]\n" +"Please load the eeprom module to obtain information about memory SPD=\n" +"[$ShellParam$]\n" +"ReloadInterval=500\n" +msgstr "" + +#: modules/devices/spd-decode.c:1480 +msgid "" +"[SPD]\n" +"Reading memory SPD not supported on this system=\n" +msgstr "" + +#: modules/devices/spd-decode.c:1509 +msgid "SPD" +msgstr "" + +#: modules/devices/spd-decode.c:1510 +msgid "Bank" +msgstr "" + +#: modules/devices/storage.c:46 +msgid "" +"\n" +"[SCSI Disks]\n" +msgstr "" + +#: modules/devices/storage.c:110 modules/devices/storage.c:313 +#, c-format +msgid "" +"[Device Information]\n" +"Model=%s\n" +msgstr "" + +#: modules/devices/storage.c:115 modules/devices/storage.c:319 +#, c-format +msgid "Vendor=%s (%s)\n" +msgstr "" + +#: modules/devices/storage.c:120 modules/devices/storage.c:321 +#, c-format +msgid "Vendor=%s\n" +msgstr "" + +#: modules/devices/storage.c:125 +#, c-format +msgid "" +"Type=%s\n" +"Revision=%s\n" +"[SCSI Controller]\n" +"Controller=scsi%d\n" +"Channel=%d\n" +"ID=%d\n" +"LUN=%d\n" +msgstr "" + +#: modules/devices/storage.c:167 +msgid "" +"\n" +"[IDE Disks]\n" +msgstr "" + +#: modules/devices/storage.c:250 +#, c-format +msgid "Driver=%s\n" +msgstr "" + +#: modules/devices/storage.c:324 +#, c-format +msgid "" +"Device Name=hd%c\n" +"Media=%s\n" +"Cache=%dkb\n" +msgstr "" + +#: modules/devices/storage.c:334 +#, c-format +msgid "" +"[Geometry]\n" +"Physical=%s\n" +"Logical=%s\n" +msgstr "" + +#: modules/devices/storage.c:344 +#, c-format +msgid "" +"[Capabilities]\n" +"%s" +msgstr "" + +#: modules/devices/storage.c:351 +#, c-format +msgid "" +"[Speeds]\n" +"%s" +msgstr "" + +#: modules/devices/usb.c:44 modules/devices/usb.c:326 +msgid "mA" +msgstr "" + +#. /%.2f is version +#: modules/devices/usb.c:53 modules/devices/usb.c:190 +#, c-format +msgid "USB %.2f Hub" +msgstr "" + +#: modules/devices/usb.c:55 modules/devices/usb.c:192 +#, c-format +msgid "Unknown USB %.2f Device (class %d)" +msgstr "" + +#: modules/devices/usb.c:85 modules/devices/usb.c:232 +msgid "Speed" +msgstr "Hız" + +#: modules/devices/usb.c:85 modules/devices/usb.c:232 +msgid "Mbit/s" +msgstr "" + +#: modules/devices/usb.c:86 modules/devices/usb.c:233 modules/devices/usb.c:350 +msgid "Max Current" +msgstr "" + +#: modules/devices/usb.c:88 modules/devices/usb.c:235 modules/devices/usb.c:352 +msgid "USB Version" +msgstr "USB Sürümü" + +#: modules/devices/usb.c:90 modules/devices/usb.c:238 modules/devices/usb.c:354 +msgid "Vendor ID" +msgstr "" + +#: modules/devices/usb.c:91 modules/devices/usb.c:239 modules/devices/usb.c:355 +msgid "Product ID" +msgstr "" + +#: modules/devices/usb.c:231 +msgid "Port" +msgstr "" + +#: modules/devices/usb.c:241 +msgid "Level" +msgstr "" + +#: modules/devices/x86/processor.c:149 +msgid "Cache information not available=\n" +msgstr "" + +#: modules/devices/x86/processor.c:155 +#, c-format +msgid "Level %d (%s)=%d-way set-associative, %d sets, %dKB size\n" +msgstr "" + +#. /cache type, as appears in: Level 1 (Data) +#: modules/devices/x86/processor.c:170 +msgctxt "cache-type" +msgid "Data" +msgstr "" + +#. /cache type, as appears in: Level 1 (Instruction) +#: modules/devices/x86/processor.c:171 +msgctxt "cache-type" +msgid "Instruction" +msgstr "" + +#. /cache type, as appears in: Level 2 (Unified) +#: modules/devices/x86/processor.c:172 +msgctxt "cache-type" +msgid "Unified" +msgstr "" + +#: modules/devices/x86/processor.c:410 +msgid "Model Name" +msgstr "" + +#: modules/devices/x86/processor.c:411 +msgid "Family, model, stepping" +msgstr "" + +#: modules/devices/x86/processor.c:417 +msgid "Microcode Version" +msgstr "" + +#: modules/devices/x86/processor.c:418 +msgid "Configuration" +msgstr "" + +#: modules/devices/x86/processor.c:419 +msgid "Cache Size" +msgstr "" + +#: modules/devices/x86/processor.c:419 +msgid "kb" +msgstr "" + +#: modules/devices/x86/processor.c:426 +msgid "Power Management" +msgstr "" + +#: modules/devices/x86/processor.c:427 +msgid "Bug Workarounds" +msgstr "" + +#: modules/devices/x86/processor.c:454 modules/devices/x86/processor.c:468 +msgid "Package Information" +msgstr "" + +#. /flag:fpu +#: modules/devices/x86/x86_data.c:43 +msgctxt "x86-flag" +msgid "Onboard FPU (floating point support)" +msgstr "" + +#. /flag:vme +#: modules/devices/x86/x86_data.c:44 +msgctxt "x86-flag" +msgid "Virtual 8086 mode enhancements" +msgstr "" + +#. /flag:de +#: modules/devices/x86/x86_data.c:45 +msgctxt "x86-flag" +msgid "Debugging Extensions (CR4.DE)" +msgstr "" + +#. /flag:pse +#: modules/devices/x86/x86_data.c:46 +msgctxt "x86-flag" +msgid "Page Size Extensions (4MB memory pages)" +msgstr "" + +#. /flag:tsc +#: modules/devices/x86/x86_data.c:47 +msgctxt "x86-flag" +msgid "Time Stamp Counter (RDTSC)" +msgstr "" + +#. /flag:msr +#: modules/devices/x86/x86_data.c:48 +msgctxt "x86-flag" +msgid "Model-Specific Registers (RDMSR, WRMSR)" +msgstr "" + +#. /flag:pae +#: modules/devices/x86/x86_data.c:49 +msgctxt "x86-flag" +msgid "Physical Address Extensions (support for more than 4GB of RAM)" +msgstr "Fiziksel Adres Uzantıları (4GB'dan fazla RAM desteği)" + +#. /flag:mce +#: modules/devices/x86/x86_data.c:50 +msgctxt "x86-flag" +msgid "Machine Check Exception" +msgstr "" + +#. /flag:cx8 +#: modules/devices/x86/x86_data.c:51 +msgctxt "x86-flag" +msgid "CMPXCHG8 instruction (64-bit compare-and-swap)" +msgstr "" + +#. /flag:apic +#: modules/devices/x86/x86_data.c:52 +msgctxt "x86-flag" +msgid "Onboard APIC" +msgstr "" + +#. /flag:sep +#: modules/devices/x86/x86_data.c:53 +msgctxt "x86-flag" +msgid "SYSENTER/SYSEXIT" +msgstr "" + +#. /flag:mtrr +#: modules/devices/x86/x86_data.c:54 +msgctxt "x86-flag" +msgid "Memory Type Range Registers" +msgstr "" + +#. /flag:pge +#: modules/devices/x86/x86_data.c:55 +msgctxt "x86-flag" +msgid "Page Global Enable (global bit in PDEs and PTEs)" +msgstr "" + +#. /flag:mca +#: modules/devices/x86/x86_data.c:56 +msgctxt "x86-flag" +msgid "Machine Check Architecture" +msgstr "" + +#. /flag:cmov +#: modules/devices/x86/x86_data.c:57 +msgctxt "x86-flag" +msgid "CMOV instructions (conditional move) (also FCMOV)" +msgstr "" + +#. /flag:pat +#: modules/devices/x86/x86_data.c:58 +msgctxt "x86-flag" +msgid "Page Attribute Table" +msgstr "" + +#. /flag:pse36 +#: modules/devices/x86/x86_data.c:59 +msgctxt "x86-flag" +msgid "36-bit PSEs (huge pages)" +msgstr "" + +#. /flag:pn +#: modules/devices/x86/x86_data.c:60 +msgctxt "x86-flag" +msgid "Processor serial number" +msgstr "" + +#. /flag:clflush +#: modules/devices/x86/x86_data.c:61 +msgctxt "x86-flag" +msgid "Cache Line Flush instruction" +msgstr "" + +#. /flag:dts +#: modules/devices/x86/x86_data.c:62 +msgctxt "x86-flag" +msgid "" +"Debug Store (buffer for debugging and profiling instructions), or " +"alternately: digital thermal sensor" +msgstr "" + +#. /flag:acpi +#: modules/devices/x86/x86_data.c:63 +msgctxt "x86-flag" +msgid "ACPI via MSR (temperature monitoring and clock speed modulation)" +msgstr "" + +#. /flag:mmx +#: modules/devices/x86/x86_data.c:64 +msgctxt "x86-flag" +msgid "Multimedia Extensions" +msgstr "" + +#. /flag:fxsr +#: modules/devices/x86/x86_data.c:65 +msgctxt "x86-flag" +msgid "FXSAVE/FXRSTOR, CR4.OSFXSR" +msgstr "" + +#. /flag:sse +#: modules/devices/x86/x86_data.c:66 +msgctxt "x86-flag" +msgid "Intel SSE vector instructions" +msgstr "" + +#. /flag:sse2 +#: modules/devices/x86/x86_data.c:67 +msgctxt "x86-flag" +msgid "SSE2" +msgstr "" + +#. /flag:ss +#: modules/devices/x86/x86_data.c:68 +msgctxt "x86-flag" +msgid "CPU self snoop" +msgstr "" + +#. /flag:ht +#: modules/devices/x86/x86_data.c:69 +msgctxt "x86-flag" +msgid "Hyper-Threading" +msgstr "" + +#. /flag:tm +#: modules/devices/x86/x86_data.c:70 +msgctxt "x86-flag" +msgid "Automatic clock control (Thermal Monitor)" +msgstr "" + +#. /flag:ia64 +#: modules/devices/x86/x86_data.c:71 +msgctxt "x86-flag" +msgid "" +"Intel Itanium Architecture 64-bit (not to be confused with Intel's 64-bit " +"x86 architecture with flag x86-64 or \"AMD64\" bit indicated by flag lm)" +msgstr "" + +#. /flag:pbe +#: modules/devices/x86/x86_data.c:72 +msgctxt "x86-flag" +msgid "Pending Break Enable (PBE# pin) wakeup support" +msgstr "" + +#. /flag:syscall +#: modules/devices/x86/x86_data.c:75 +msgctxt "x86-flag" +msgid "SYSCALL (Fast System Call) and SYSRET (Return From Fast System Call)" +msgstr "" + +#. /flag:mp +#: modules/devices/x86/x86_data.c:76 +msgctxt "x86-flag" +msgid "Multiprocessing Capable." +msgstr "" + +#. /flag:nx +#: modules/devices/x86/x86_data.c:77 +msgctxt "x86-flag" +msgid "Execute Disable" +msgstr "" + +#. /flag:mmxext +#: modules/devices/x86/x86_data.c:78 +msgctxt "x86-flag" +msgid "AMD MMX extensions" +msgstr "" + +#. /flag:fxsr_opt +#: modules/devices/x86/x86_data.c:79 +msgctxt "x86-flag" +msgid "FXSAVE/FXRSTOR optimizations" +msgstr "" + +#. /flag:pdpe1gb +#: modules/devices/x86/x86_data.c:80 +msgctxt "x86-flag" +msgid "One GB pages (allows hugepagesz=1G)" +msgstr "" + +#. /flag:rdtscp +#: modules/devices/x86/x86_data.c:81 +msgctxt "x86-flag" +msgid "Read Time-Stamp Counter and Processor ID" +msgstr "" + +#. /flag:lm +#: modules/devices/x86/x86_data.c:82 +msgctxt "x86-flag" +msgid "Long Mode (x86-64: amd64, also known as Intel 64, i.e. 64-bit capable)" +msgstr "" + +#. /flag:3dnow +#: modules/devices/x86/x86_data.c:83 +msgctxt "x86-flag" +msgid "3DNow! (AMD vector instructions, competing with Intel's SSE1)" +msgstr "" + +#. /flag:3dnowext +#: modules/devices/x86/x86_data.c:84 +msgctxt "x86-flag" +msgid "AMD 3DNow! extensions" +msgstr "" + +#. /flag:recovery +#: modules/devices/x86/x86_data.c:86 +msgctxt "x86-flag" +msgid "CPU in recovery mode" +msgstr "" + +#. /flag:longrun +#: modules/devices/x86/x86_data.c:87 +msgctxt "x86-flag" +msgid "Longrun power control" +msgstr "" + +#. /flag:lrti +#: modules/devices/x86/x86_data.c:88 +msgctxt "x86-flag" +msgid "LongRun table interface" +msgstr "" + +#. /flag:cxmmx +#: modules/devices/x86/x86_data.c:90 +msgctxt "x86-flag" +msgid "Cyrix MMX extensions" +msgstr "" + +#. /flag:k6_mtrr +#: modules/devices/x86/x86_data.c:91 +msgctxt "x86-flag" +msgid "AMD K6 nonstandard MTRRs" +msgstr "" + +#. /flag:cyrix_arr +#: modules/devices/x86/x86_data.c:92 +msgctxt "x86-flag" +msgid "Cyrix ARRs (= MTRRs)" +msgstr "" + +#. /flag:centaur_mcr +#: modules/devices/x86/x86_data.c:93 +msgctxt "x86-flag" +msgid "Centaur MCRs (= MTRRs)" +msgstr "" + +#. /flag:constant_tsc +#: modules/devices/x86/x86_data.c:94 +msgctxt "x86-flag" +msgid "TSC ticks at a constant rate" +msgstr "" + +#. /flag:up +#: modules/devices/x86/x86_data.c:95 +msgctxt "x86-flag" +msgid "SMP kernel running on UP" +msgstr "" + +#. /flag:art +#: modules/devices/x86/x86_data.c:96 +msgctxt "x86-flag" +msgid "Always-Running Timer" +msgstr "" + +#. /flag:arch_perfmon +#: modules/devices/x86/x86_data.c:97 +msgctxt "x86-flag" +msgid "Intel Architectural PerfMon" +msgstr "" + +#. /flag:pebs +#: modules/devices/x86/x86_data.c:98 +msgctxt "x86-flag" +msgid "Precise-Event Based Sampling" +msgstr "" + +#. /flag:bts +#: modules/devices/x86/x86_data.c:99 +msgctxt "x86-flag" +msgid "Branch Trace Store" +msgstr "" + +#. /flag:rep_good +#: modules/devices/x86/x86_data.c:100 +msgctxt "x86-flag" +msgid "rep microcode works well" +msgstr "" + +#. /flag:acc_power +#: modules/devices/x86/x86_data.c:101 +msgctxt "x86-flag" +msgid "AMD accumulated power mechanism" +msgstr "" + +#. /flag:nopl +#: modules/devices/x86/x86_data.c:102 +msgctxt "x86-flag" +msgid "The NOPL (0F 1F) instructions" +msgstr "" + +#. /flag:xtopology +#: modules/devices/x86/x86_data.c:103 +msgctxt "x86-flag" +msgid "cpu topology enum extensions" +msgstr "" + +#. /flag:tsc_reliable +#: modules/devices/x86/x86_data.c:104 +msgctxt "x86-flag" +msgid "TSC is known to be reliable" +msgstr "" + +#. /flag:nonstop_tsc +#: modules/devices/x86/x86_data.c:105 +msgctxt "x86-flag" +msgid "TSC does not stop in C states" +msgstr "" + +#. /flag:extd_apicid +#: modules/devices/x86/x86_data.c:106 +msgctxt "x86-flag" +msgid "has extended APICID (8 bits)" +msgstr "" + +#. /flag:amd_dcm +#: modules/devices/x86/x86_data.c:107 +msgctxt "x86-flag" +msgid "multi-node processor" +msgstr "" + +#. /flag:aperfmperf +#: modules/devices/x86/x86_data.c:108 +msgctxt "x86-flag" +msgid "APERFMPERF" +msgstr "" + +#. /flag:eagerfpu +#: modules/devices/x86/x86_data.c:109 +msgctxt "x86-flag" +msgid "Non lazy FPU restore" +msgstr "" + +#. /flag:nonstop_tsc_s3 +#: modules/devices/x86/x86_data.c:110 +msgctxt "x86-flag" +msgid "TSC doesn't stop in S3 state" +msgstr "" + +#. /flag:mce_recovery +#: modules/devices/x86/x86_data.c:111 +msgctxt "x86-flag" +msgid "CPU has recoverable machine checks" +msgstr "" + +#. /flag:pni +#: modules/devices/x86/x86_data.c:114 +msgctxt "x86-flag" +msgid "SSE-3 (\"Prescott New Instructions\")" +msgstr "" + +#. /flag:pclmulqdq +#: modules/devices/x86/x86_data.c:115 +msgctxt "x86-flag" +msgid "" +"Perform a Carry-Less Multiplication of Quadword instruction - accelerator " +"for GCM)" +msgstr "" + +#. /flag:dtes64 +#: modules/devices/x86/x86_data.c:116 +msgctxt "x86-flag" +msgid "64-bit Debug Store" +msgstr "" + +#. /flag:monitor +#: modules/devices/x86/x86_data.c:117 +msgctxt "x86-flag" +msgid "Monitor/Mwait support (Intel SSE3 supplements)" +msgstr "" + +#. /flag:ds_cpl +#: modules/devices/x86/x86_data.c:118 +msgctxt "x86-flag" +msgid "CPL Qual. Debug Store" +msgstr "" + +#. /flag:vmx +#: modules/devices/x86/x86_data.c:119 +msgctxt "x86-flag" +msgid "Hardware virtualization, Intel VMX" +msgstr "" + +#. /flag:smx +#: modules/devices/x86/x86_data.c:120 +msgctxt "x86-flag" +msgid "Safer mode TXT (TPM support)" +msgstr "" + +#. /flag:est +#: modules/devices/x86/x86_data.c:121 +msgctxt "x86-flag" +msgid "Enhanced SpeedStep" +msgstr "" + +#. /flag:tm2 +#: modules/devices/x86/x86_data.c:122 +msgctxt "x86-flag" +msgid "Thermal Monitor 2" +msgstr "" + +#. /flag:ssse3 +#: modules/devices/x86/x86_data.c:123 +msgctxt "x86-flag" +msgid "Supplemental SSE-3" +msgstr "" + +#. /flag:cid +#: modules/devices/x86/x86_data.c:124 +msgctxt "x86-flag" +msgid "Context ID" +msgstr "" + +#. /flag:sdbg +#: modules/devices/x86/x86_data.c:125 +msgctxt "x86-flag" +msgid "silicon debug" +msgstr "" + +#. /flag:fma +#: modules/devices/x86/x86_data.c:126 +msgctxt "x86-flag" +msgid "Fused multiply-add" +msgstr "" + +#. /flag:cx16 +#: modules/devices/x86/x86_data.c:127 +msgctxt "x86-flag" +msgid "CMPXCHG16B" +msgstr "" + +#. /flag:xtpr +#: modules/devices/x86/x86_data.c:128 +msgctxt "x86-flag" +msgid "Send Task Priority Messages" +msgstr "" + +#. /flag:pdcm +#: modules/devices/x86/x86_data.c:129 +msgctxt "x86-flag" +msgid "Performance Capabilities" +msgstr "" + +#. /flag:pcid +#: modules/devices/x86/x86_data.c:130 +msgctxt "x86-flag" +msgid "Process Context Identifiers" +msgstr "" + +#. /flag:dca +#: modules/devices/x86/x86_data.c:131 +msgctxt "x86-flag" +msgid "Direct Cache Access" +msgstr "" + +#. /flag:sse4_1 +#: modules/devices/x86/x86_data.c:132 +msgctxt "x86-flag" +msgid "SSE-4.1" +msgstr "" + +#. /flag:sse4_2 +#: modules/devices/x86/x86_data.c:133 +msgctxt "x86-flag" +msgid "SSE-4.2" +msgstr "" + +#. /flag:x2apic +#: modules/devices/x86/x86_data.c:134 +msgctxt "x86-flag" +msgid "x2APIC" +msgstr "" + +#. /flag:movbe +#: modules/devices/x86/x86_data.c:135 +msgctxt "x86-flag" +msgid "Move Data After Swapping Bytes instruction" +msgstr "" + +#. /flag:popcnt +#: modules/devices/x86/x86_data.c:136 +msgctxt "x86-flag" +msgid "" +"Return the Count of Number of Bits Set to 1 instruction (Hamming weight, i." +"e. bit count)" +msgstr "" + +#. /flag:tsc_deadline_timer +#: modules/devices/x86/x86_data.c:137 +msgctxt "x86-flag" +msgid "Tsc deadline timer" +msgstr "" + +#. /flag:aes/aes-ni +#: modules/devices/x86/x86_data.c:138 +msgctxt "x86-flag" +msgid "Advanced Encryption Standard (New Instructions)" +msgstr "" + +#. /flag:xsave +#: modules/devices/x86/x86_data.c:139 +msgctxt "x86-flag" +msgid "Save Processor Extended States: also provides XGETBY,XRSTOR,XSETBY" +msgstr "" + +#. /flag:avx +#: modules/devices/x86/x86_data.c:140 +msgctxt "x86-flag" +msgid "Advanced Vector Extensions" +msgstr "" + +#. /flag:f16c +#: modules/devices/x86/x86_data.c:141 +msgctxt "x86-flag" +msgid "16-bit fp conversions (CVT16)" +msgstr "" + +#. /flag:rdrand +#: modules/devices/x86/x86_data.c:142 +msgctxt "x86-flag" +msgid "Read Random Number from hardware random number generator instruction" +msgstr "" + +#. /flag:hypervisor +#: modules/devices/x86/x86_data.c:143 +msgctxt "x86-flag" +msgid "Running on a hypervisor" +msgstr "" + +#. /Cyrix/Centaur-defined CPU features, CPUID level 0xC0000001 +#. /flag:rng +#: modules/devices/x86/x86_data.c:145 +msgctxt "x86-flag" +msgid "Random Number Generator present (xstore)" +msgstr "" + +#. /flag:rng_en +#: modules/devices/x86/x86_data.c:146 +msgctxt "x86-flag" +msgid "Random Number Generator enabled" +msgstr "" + +#. /flag:ace +#: modules/devices/x86/x86_data.c:147 +msgctxt "x86-flag" +msgid "on-CPU crypto (xcrypt)" +msgstr "" + +#. /flag:ace_en +#: modules/devices/x86/x86_data.c:148 +msgctxt "x86-flag" +msgid "on-CPU crypto enabled" +msgstr "" + +#. /flag:ace2 +#: modules/devices/x86/x86_data.c:149 +msgctxt "x86-flag" +msgid "Advanced Cryptography Engine v2" +msgstr "" + +#. /flag:ace2_en +#: modules/devices/x86/x86_data.c:150 +msgctxt "x86-flag" +msgid "ACE v2 enabled" +msgstr "" + +#. /flag:phe +#: modules/devices/x86/x86_data.c:151 +msgctxt "x86-flag" +msgid "PadLock Hash Engine" +msgstr "" + +#. /flag:phe_en +#: modules/devices/x86/x86_data.c:152 +msgctxt "x86-flag" +msgid "PHE enabled" +msgstr "" + +#. /flag:pmm +#: modules/devices/x86/x86_data.c:153 +msgctxt "x86-flag" +msgid "PadLock Montgomery Multiplier" +msgstr "" + +#. /flag:pmm_en +#: modules/devices/x86/x86_data.c:154 +msgctxt "x86-flag" +msgid "PMM enabled" +msgstr "" + +#. /flag:lahf_lm +#: modules/devices/x86/x86_data.c:156 +msgctxt "x86-flag" +msgid "Load AH from Flags (LAHF) and Store AH into Flags (SAHF) in long mode" +msgstr "" + +#. /flag:cmp_legacy +#: modules/devices/x86/x86_data.c:157 +msgctxt "x86-flag" +msgid "If yes HyperThreading not valid" +msgstr "" + +#. /flag:svm +#: modules/devices/x86/x86_data.c:158 +msgctxt "x86-flag" +msgid "\"Secure virtual machine\": AMD-V" +msgstr "" + +#. /flag:extapic +#: modules/devices/x86/x86_data.c:159 +msgctxt "x86-flag" +msgid "Extended APIC space" +msgstr "" + +#. /flag:cr8_legacy +#: modules/devices/x86/x86_data.c:160 +msgctxt "x86-flag" +msgid "CR8 in 32-bit mode" +msgstr "" + +#. /flag:abm +#: modules/devices/x86/x86_data.c:161 +msgctxt "x86-flag" +msgid "Advanced Bit Manipulation" +msgstr "" + +#. /flag:sse4a +#: modules/devices/x86/x86_data.c:162 +msgctxt "x86-flag" +msgid "SSE-4A" +msgstr "" + +#. /flag:misalignsse +#: modules/devices/x86/x86_data.c:163 +msgctxt "x86-flag" +msgid "" +"indicates if a general-protection exception (#GP) is generated when some " +"legacy SSE instructions operate on unaligned data. Also depends on CR0 and " +"Alignment Checking bit" +msgstr "" + +#. /flag:3dnowprefetch +#: modules/devices/x86/x86_data.c:164 +msgctxt "x86-flag" +msgid "3DNow prefetch instructions" +msgstr "" + +#. /flag:osvw +#: modules/devices/x86/x86_data.c:165 +msgctxt "x86-flag" +msgid "" +"indicates OS Visible Workaround, which allows the OS to work around " +"processor errata." +msgstr "" + +#. /flag:ibs +#: modules/devices/x86/x86_data.c:166 +msgctxt "x86-flag" +msgid "Instruction Based Sampling" +msgstr "" + +#. /flag:xop +#: modules/devices/x86/x86_data.c:167 +msgctxt "x86-flag" +msgid "extended AVX instructions" +msgstr "" + +#. /flag:skinit +#: modules/devices/x86/x86_data.c:168 +msgctxt "x86-flag" +msgid "SKINIT/STGI instructions" +msgstr "" + +#. /flag:wdt +#: modules/devices/x86/x86_data.c:169 +msgctxt "x86-flag" +msgid "Watchdog timer" +msgstr "" + +#. /flag:lwp +#: modules/devices/x86/x86_data.c:170 +msgctxt "x86-flag" +msgid "Light Weight Profiling" +msgstr "" + +#. /flag:fma4 +#: modules/devices/x86/x86_data.c:171 +msgctxt "x86-flag" +msgid "4 operands MAC instructions" +msgstr "" + +#. /flag:tce +#: modules/devices/x86/x86_data.c:172 +msgctxt "x86-flag" +msgid "translation cache extension" +msgstr "" + +#. /flag:nodeid_msr +#: modules/devices/x86/x86_data.c:173 +msgctxt "x86-flag" +msgid "NodeId MSR" +msgstr "" + +#. /flag:tbm +#: modules/devices/x86/x86_data.c:174 +msgctxt "x86-flag" +msgid "Trailing Bit Manipulation" +msgstr "" + +#. /flag:topoext +#: modules/devices/x86/x86_data.c:175 +msgctxt "x86-flag" +msgid "Topology Extensions CPUID leafs" +msgstr "" + +#. /flag:perfctr_core +#: modules/devices/x86/x86_data.c:176 +msgctxt "x86-flag" +msgid "Core Performance Counter Extensions" +msgstr "" + +#. /flag:perfctr_nb +#: modules/devices/x86/x86_data.c:177 +msgctxt "x86-flag" +msgid "NB Performance Counter Extensions" +msgstr "" + +#. /flag:bpext +#: modules/devices/x86/x86_data.c:178 +msgctxt "x86-flag" +msgid "data breakpoint extension" +msgstr "" + +#. /flag:ptsc +#: modules/devices/x86/x86_data.c:179 +msgctxt "x86-flag" +msgid "performance time-stamp counter" +msgstr "" + +#. /flag:perfctr_l2 +#: modules/devices/x86/x86_data.c:180 +msgctxt "x86-flag" +msgid "L2 Performance Counter Extensions" +msgstr "" + +#. /flag:mwaitx +#: modules/devices/x86/x86_data.c:181 +msgctxt "x86-flag" +msgid "MWAIT extension (MONITORX/MWAITX)" +msgstr "" + +#. /flag:cpb +#: modules/devices/x86/x86_data.c:183 +msgctxt "x86-flag" +msgid "AMD Core Performance Boost" +msgstr "" + +#. /flag:epb +#: modules/devices/x86/x86_data.c:184 +msgctxt "x86-flag" +msgid "IA32_ENERGY_PERF_BIAS support" +msgstr "" + +#. /flag:hw_pstate +#: modules/devices/x86/x86_data.c:185 +msgctxt "x86-flag" +msgid "AMD HW-PState" +msgstr "" + +#. /flag:proc_feedback +#: modules/devices/x86/x86_data.c:186 +msgctxt "x86-flag" +msgid "AMD ProcFeedbackInterface" +msgstr "" + +#. /flag:intel_pt +#: modules/devices/x86/x86_data.c:187 +msgctxt "x86-flag" +msgid "Intel Processor Tracing" +msgstr "" + +#. /flag:tpr_shadow +#: modules/devices/x86/x86_data.c:189 +msgctxt "x86-flag" +msgid "Intel TPR Shadow" +msgstr "" + +#. /flag:vnmi +#: modules/devices/x86/x86_data.c:190 +msgctxt "x86-flag" +msgid "Intel Virtual NMI" +msgstr "" + +#. /flag:flexpriority +#: modules/devices/x86/x86_data.c:191 +msgctxt "x86-flag" +msgid "Intel FlexPriority" +msgstr "" + +#. /flag:ept +#: modules/devices/x86/x86_data.c:192 +msgctxt "x86-flag" +msgid "Intel Extended Page Table" +msgstr "" + +#. /flag:vpid +#: modules/devices/x86/x86_data.c:193 +msgctxt "x86-flag" +msgid "Intel Virtual Processor ID" +msgstr "" + +#. /flag:vmmcall +#: modules/devices/x86/x86_data.c:194 +msgctxt "x86-flag" +msgid "prefer VMMCALL to VMCALL" +msgstr "" + +#. /flag:fsgsbase +#: modules/devices/x86/x86_data.c:196 +msgctxt "x86-flag" +msgid "{RD/WR}{FS/GS}BASE instructions" +msgstr "" + +#. /flag:tsc_adjust +#: modules/devices/x86/x86_data.c:197 +msgctxt "x86-flag" +msgid "TSC adjustment MSR" +msgstr "" + +#. /flag:bmi1 +#: modules/devices/x86/x86_data.c:198 +msgctxt "x86-flag" +msgid "1st group bit manipulation extensions" +msgstr "" + +#. /flag:hle +#: modules/devices/x86/x86_data.c:199 +msgctxt "x86-flag" +msgid "Hardware Lock Elision" +msgstr "" + +#. /flag:avx2 +#: modules/devices/x86/x86_data.c:200 +msgctxt "x86-flag" +msgid "AVX2 instructions" +msgstr "" + +#. /flag:smep +#: modules/devices/x86/x86_data.c:201 +msgctxt "x86-flag" +msgid "Supervisor Mode Execution Protection" +msgstr "" + +#. /flag:bmi2 +#: modules/devices/x86/x86_data.c:202 +msgctxt "x86-flag" +msgid "2nd group bit manipulation extensions" +msgstr "" + +#. /flag:erms +#: modules/devices/x86/x86_data.c:203 +msgctxt "x86-flag" +msgid "Enhanced REP MOVSB/STOSB" +msgstr "" + +#. /flag:invpcid +#: modules/devices/x86/x86_data.c:204 +msgctxt "x86-flag" +msgid "Invalidate Processor Context ID" +msgstr "" + +#. /flag:rtm +#: modules/devices/x86/x86_data.c:205 +msgctxt "x86-flag" +msgid "Restricted Transactional Memory" +msgstr "" + +#. /flag:cqm +#: modules/devices/x86/x86_data.c:206 +msgctxt "x86-flag" +msgid "Cache QoS Monitoring" +msgstr "" + +#. /flag:mpx +#: modules/devices/x86/x86_data.c:207 +msgctxt "x86-flag" +msgid "Memory Protection Extension" +msgstr "" + +#. /flag:avx512f +#: modules/devices/x86/x86_data.c:208 +msgctxt "x86-flag" +msgid "AVX-512 foundation" +msgstr "" + +#. /flag:avx512dq +#: modules/devices/x86/x86_data.c:209 +msgctxt "x86-flag" +msgid "AVX-512 Double/Quad instructions" +msgstr "" + +#. /flag:rdseed +#: modules/devices/x86/x86_data.c:210 +msgctxt "x86-flag" +msgid "The RDSEED instruction" +msgstr "" + +#. /flag:adx +#: modules/devices/x86/x86_data.c:211 +msgctxt "x86-flag" +msgid "The ADCX and ADOX instructions" +msgstr "" + +#. /flag:smap +#: modules/devices/x86/x86_data.c:212 +msgctxt "x86-flag" +msgid "Supervisor Mode Access Prevention" +msgstr "" + +#. /flag:clflushopt +#: modules/devices/x86/x86_data.c:213 +msgctxt "x86-flag" +msgid "CLFLUSHOPT instruction" +msgstr "" + +#. /flag:clwb +#: modules/devices/x86/x86_data.c:214 +msgctxt "x86-flag" +msgid "CLWB instruction" +msgstr "" + +#. /flag:avx512pf +#: modules/devices/x86/x86_data.c:215 +msgctxt "x86-flag" +msgid "AVX-512 Prefetch" +msgstr "" + +#. /flag:avx512er +#: modules/devices/x86/x86_data.c:216 +msgctxt "x86-flag" +msgid "AVX-512 Exponential and Reciprocal" +msgstr "" + +#. /flag:avx512cd +#: modules/devices/x86/x86_data.c:217 +msgctxt "x86-flag" +msgid "AVX-512 Conflict Detection" +msgstr "" + +#. /flag:sha_ni +#: modules/devices/x86/x86_data.c:218 +msgctxt "x86-flag" +msgid "SHA1/SHA256 Instruction Extensions" +msgstr "" + +#. /flag:avx512bw +#: modules/devices/x86/x86_data.c:219 +msgctxt "x86-flag" +msgid "AVX-512 Byte/Word instructions" +msgstr "" + +#. /flag:avx512vl +#: modules/devices/x86/x86_data.c:220 +msgctxt "x86-flag" +msgid "AVX-512 128/256 Vector Length extensions" +msgstr "" + +#. /flag:xsaveopt +#: modules/devices/x86/x86_data.c:222 +msgctxt "x86-flag" +msgid "Optimized XSAVE" +msgstr "" + +#. /flag:xsavec +#: modules/devices/x86/x86_data.c:223 +msgctxt "x86-flag" +msgid "XSAVEC" +msgstr "" + +#. /flag:xgetbv1 +#: modules/devices/x86/x86_data.c:224 +msgctxt "x86-flag" +msgid "XGETBV with ECX = 1" +msgstr "" + +#. /flag:xsaves +#: modules/devices/x86/x86_data.c:225 +msgctxt "x86-flag" +msgid "XSAVES/XRSTORS" +msgstr "" + +#. /flag:cqm_llc +#: modules/devices/x86/x86_data.c:227 +msgctxt "x86-flag" +msgid "LLC QoS" +msgstr "" + +#. /flag:cqm_occup_llc +#: modules/devices/x86/x86_data.c:229 +msgctxt "x86-flag" +msgid "LLC occupancy monitoring" +msgstr "" + +#. /flag:cqm_mbm_total +#: modules/devices/x86/x86_data.c:230 +msgctxt "x86-flag" +msgid "LLC total MBM monitoring" +msgstr "" + +#. /flag:cqm_mbm_local +#: modules/devices/x86/x86_data.c:231 +msgctxt "x86-flag" +msgid "LLC local MBM monitoring" +msgstr "" + +#. /flag:clzero +#: modules/devices/x86/x86_data.c:233 +msgctxt "x86-flag" +msgid "CLZERO instruction" +msgstr "" + +#. /flag:irperf +#: modules/devices/x86/x86_data.c:234 +msgctxt "x86-flag" +msgid "instructions retired performance counter" +msgstr "" + +#. /flag:dtherm +#: modules/devices/x86/x86_data.c:236 +msgctxt "x86-flag" +msgid "digital thermal sensor" +msgstr "" + +#. /flag:ida +#: modules/devices/x86/x86_data.c:237 +msgctxt "x86-flag" +msgid "Intel Dynamic Acceleration" +msgstr "" + +#. /flag:arat +#: modules/devices/x86/x86_data.c:238 +msgctxt "x86-flag" +msgid "Always Running APIC Timer" +msgstr "" + +#. /flag:pln +#: modules/devices/x86/x86_data.c:239 +msgctxt "x86-flag" +msgid "Intel Power Limit Notification" +msgstr "" + +#. /flag:pts +#: modules/devices/x86/x86_data.c:240 +msgctxt "x86-flag" +msgid "Intel Package Thermal Status" +msgstr "" + +#. /flag:hwp +#: modules/devices/x86/x86_data.c:241 +msgctxt "x86-flag" +msgid "Intel Hardware P-states" +msgstr "" + +#. /flag:hwp_notify +#: modules/devices/x86/x86_data.c:242 +msgctxt "x86-flag" +msgid "HWP notification" +msgstr "" + +#. /flag:hwp_act_window +#: modules/devices/x86/x86_data.c:243 +msgctxt "x86-flag" +msgid "HWP Activity Window" +msgstr "" + +#. /flag:hwp_epp +#: modules/devices/x86/x86_data.c:244 +msgctxt "x86-flag" +msgid "HWP Energy Performance Preference" +msgstr "" + +#. /flag:hwp_pkg_req +#: modules/devices/x86/x86_data.c:245 +msgctxt "x86-flag" +msgid "HWP package-level request" +msgstr "" + +#. /flag:npt +#: modules/devices/x86/x86_data.c:247 +msgctxt "x86-flag" +msgid "AMD Nested Page Table support" +msgstr "" + +#. /flag:lbrv +#: modules/devices/x86/x86_data.c:248 +msgctxt "x86-flag" +msgid "AMD LBR Virtualization support" +msgstr "" + +#. /flag:svm_lock +#: modules/devices/x86/x86_data.c:249 +msgctxt "x86-flag" +msgid "AMD SVM locking MSR" +msgstr "" + +#. /flag:nrip_save +#: modules/devices/x86/x86_data.c:250 +msgctxt "x86-flag" +msgid "AMD SVM next_rip save" +msgstr "" + +#. /flag:tsc_scale +#: modules/devices/x86/x86_data.c:251 +msgctxt "x86-flag" +msgid "AMD TSC scaling support" +msgstr "" + +#. /flag:vmcb_clean +#: modules/devices/x86/x86_data.c:252 +msgctxt "x86-flag" +msgid "AMD VMCB clean bits support" +msgstr "" + +#. /flag:flushbyasid +#: modules/devices/x86/x86_data.c:253 +msgctxt "x86-flag" +msgid "AMD flush-by-ASID support" +msgstr "" + +#. /flag:decodeassists +#: modules/devices/x86/x86_data.c:254 +msgctxt "x86-flag" +msgid "AMD Decode Assists support" +msgstr "" + +#. /flag:pausefilter +#: modules/devices/x86/x86_data.c:255 +msgctxt "x86-flag" +msgid "AMD filtered pause intercept" +msgstr "" + +#. /flag:pfthreshold +#: modules/devices/x86/x86_data.c:256 +msgctxt "x86-flag" +msgid "AMD pause filter threshold" +msgstr "" + +#. /flag:avic +#: modules/devices/x86/x86_data.c:257 +msgctxt "x86-flag" +msgid "Virtual Interrupt Controller" +msgstr "" + +#. /flag:pku +#: modules/devices/x86/x86_data.c:259 +msgctxt "x86-flag" +msgid "Protection Keys for Userspace" +msgstr "" + +#. /flag:ospke +#: modules/devices/x86/x86_data.c:260 +msgctxt "x86-flag" +msgid "OS Protection Keys Enable" +msgstr "" + +#. /flag:overflow_recov +#: modules/devices/x86/x86_data.c:262 +msgctxt "x86-flag" +msgid "MCA overflow recovery support" +msgstr "" + +#. /flag:succor +#: modules/devices/x86/x86_data.c:263 +msgctxt "x86-flag" +msgid "uncorrectable error containment and recovery" +msgstr "" + +#. /flag:smca +#: modules/devices/x86/x86_data.c:264 +msgctxt "x86-flag" +msgid "Scalable MCA" +msgstr "" + +#. /bug:f00f +#: modules/devices/x86/x86_data.c:267 +msgctxt "x86-flag" +msgid "Intel F00F bug" +msgstr "" + +#. /bug:fdiv +#: modules/devices/x86/x86_data.c:268 +msgctxt "x86-flag" +msgid "FPU FDIV" +msgstr "" + +#. /bug:coma +#: modules/devices/x86/x86_data.c:269 +msgctxt "x86-flag" +msgid "Cyrix 6x86 coma" +msgstr "" + +#. /bug:tlb_mmatch +#: modules/devices/x86/x86_data.c:270 +msgctxt "x86-flag" +msgid "AMD Erratum 383" +msgstr "" + +#. /bug:apic_c1e +#. /bug:amd_e400 +#: modules/devices/x86/x86_data.c:271 modules/devices/x86/x86_data.c:280 +msgctxt "x86-flag" +msgid "AMD Erratum 400" +msgstr "" + +#. /bug:11ap +#: modules/devices/x86/x86_data.c:272 +msgctxt "x86-flag" +msgid "Bad local APIC aka 11AP" +msgstr "" + +#. /bug:fxsave_leak +#: modules/devices/x86/x86_data.c:273 +msgctxt "x86-flag" +msgid "FXSAVE leaks FOP/FIP/FOP" +msgstr "" + +#. /bug:clflush_monitor +#: modules/devices/x86/x86_data.c:274 +msgctxt "x86-flag" +msgid "AAI65, CLFLUSH required before MONITOR" +msgstr "" + +#. /bug:sysret_ss_attrs +#: modules/devices/x86/x86_data.c:275 +msgctxt "x86-flag" +msgid "SYSRET doesn't fix up SS attrs" +msgstr "" + +#. /bug:espfix +#: modules/devices/x86/x86_data.c:276 +msgctxt "x86-flag" +msgid "IRET to 16-bit SS corrupts ESP/RSP high bits" +msgstr "" + +#. /bug:null_seg +#: modules/devices/x86/x86_data.c:277 +msgctxt "x86-flag" +msgid "Nulling a selector preserves the base" +msgstr "" + +#. /bug:swapgs_fence +#: modules/devices/x86/x86_data.c:278 +msgctxt "x86-flag" +msgid "SWAPGS without input dep on GS" +msgstr "" + +#. /bug:monitor +#: modules/devices/x86/x86_data.c:279 +msgctxt "x86-flag" +msgid "IPI required to wake up remote CPU" +msgstr "" + +#. /x86/kernel/cpu/powerflags.h +#. /flag:pm:ts +#: modules/devices/x86/x86_data.c:283 +msgctxt "x86-flag" +msgid "temperature sensor" +msgstr "" + +#. /flag:pm:fid +#: modules/devices/x86/x86_data.c:284 +msgctxt "x86-flag" +msgid "frequency id control" +msgstr "" + +#. /flag:pm:vid +#: modules/devices/x86/x86_data.c:285 +msgctxt "x86-flag" +msgid "voltage id control" +msgstr "" + +#. /flag:pm:ttp +#: modules/devices/x86/x86_data.c:286 +msgctxt "x86-flag" +msgid "thermal trip" +msgstr "" + +#. /flag:pm:tm +#: modules/devices/x86/x86_data.c:287 +msgctxt "x86-flag" +msgid "hardware thermal control" +msgstr "" + +#. /flag:pm:stc +#: modules/devices/x86/x86_data.c:288 +msgctxt "x86-flag" +msgid "software thermal control" +msgstr "" + +#. /flag:pm:100mhzsteps +#: modules/devices/x86/x86_data.c:289 +msgctxt "x86-flag" +msgid "100 MHz multiplier control" +msgstr "" + +#. /flag:pm:hwpstate +#: modules/devices/x86/x86_data.c:290 +msgctxt "x86-flag" +msgid "hardware P-state control" +msgstr "" + +#. /flag:pm:cpb +#: modules/devices/x86/x86_data.c:291 +msgctxt "x86-flag" +msgid "core performance boost" +msgstr "" + +#. /flag:pm:eff_freq_ro +#: modules/devices/x86/x86_data.c:292 +msgctxt "x86-flag" +msgid "Readonly aperf/mperf" +msgstr "" + +#. /flag:pm:proc_feedback +#: modules/devices/x86/x86_data.c:293 +msgctxt "x86-flag" +msgid "processor feedback interface" +msgstr "" + +#. /flag:pm:acc_power +#: modules/devices/x86/x86_data.c:294 +msgctxt "x86-flag" +msgid "accumulated power mechanism" +msgstr "" + +#: modules/network.c:59 +msgid "Interfaces" +msgstr "" + +#: modules/network.c:60 +msgid "IP Connections" +msgstr "" + +#: modules/network.c:61 +msgid "Routing Table" +msgstr "" + +#: modules/network.c:62 modules/network.c:303 +msgid "ARP Table" +msgstr "" + +#: modules/network.c:63 +msgid "DNS Servers" +msgstr "" + +#: modules/network.c:64 +msgid "Statistics" +msgstr "" + +#: modules/network.c:65 +msgid "Shared Directories" +msgstr "Paylaşılan Dizinler" + +#: modules/network.c:304 modules/network.c:326 modules/network.c:357 +#: modules/network/net.c:477 +msgid "IP Address" +msgstr "" + +#: modules/network.c:304 modules/network.c:357 modules/network.c:374 +msgid "Interface" +msgstr "" + +#: modules/network.c:304 +msgid "MAC Address" +msgstr "" + +#: modules/network.c:313 +msgid "SAMBA" +msgstr "" + +#: modules/network.c:314 +msgid "NFS" +msgstr "" + +#: modules/network.c:325 +msgid "Name Servers" +msgstr "" + +#: modules/network.c:340 +msgid "Connections" +msgstr "Bağlantılar" + +#: modules/network.c:341 +msgid "Local Address" +msgstr "" + +#: modules/network.c:341 +msgid "Protocol" +msgstr "Protokol" + +#: modules/network.c:341 +msgid "Foreign Address" +msgstr "" + +#: modules/network.c:341 +msgid "State" +msgstr "" + +#: modules/network.c:357 +msgid "Sent" +msgstr "" + +#: modules/network.c:357 +msgid "Received" +msgstr "" + +#: modules/network.c:373 +msgid "IP routing table" +msgstr "" + +#: modules/network.c:374 +msgid "Destination/Gateway" +msgstr "" + +#: modules/network.c:374 +msgid "Flags" +msgstr "" + +#: modules/network.c:374 modules/network/net.c:478 +msgid "Mask" +msgstr "" + +#: modules/network.c:402 +msgid "Network" +msgstr "Ağ" + +#: modules/network.c:435 +msgid "Gathers information about this computer's network connection" +msgstr "Bu bilgisayarın ağ bağlantısı hakkında bilgi toplar" + +#: modules/network/net.c:72 +msgctxt "wi-op-mode" +msgid "Auto" +msgstr "" + +#: modules/network/net.c:73 +msgctxt "wi-op-mode" +msgid "Ad-Hoc" +msgstr "" + +#: modules/network/net.c:74 +msgctxt "wi-op-mode" +msgid "Managed" +msgstr "" + +#: modules/network/net.c:75 +msgctxt "wi-op-mode" +msgid "Master" +msgstr "" + +#: modules/network/net.c:76 +msgctxt "wi-op-mode" +msgid "Repeater" +msgstr "" + +#: modules/network/net.c:77 +msgctxt "wi-op-mode" +msgid "Secondary" +msgstr "" + +#: modules/network/net.c:78 +msgctxt "wi-op-mode" +msgid "(Unknown)" +msgstr "" + +#: modules/network/net.c:242 modules/network/net.c:262 +#: modules/network/net.c:270 +msgctxt "net-if-type" +msgid "Ethernet" +msgstr "" + +#: modules/network/net.c:243 +msgctxt "net-if-type" +msgid "Loopback" +msgstr "" + +#: modules/network/net.c:244 +msgctxt "net-if-type" +msgid "Point-to-Point" +msgstr "" + +#: modules/network/net.c:245 modules/network/net.c:246 +#: modules/network/net.c:247 modules/network/net.c:248 +#: modules/network/net.c:272 +msgctxt "net-if-type" +msgid "Wireless" +msgstr "" + +#: modules/network/net.c:249 +msgctxt "net-if-type" +msgid "Virtual Point-to-Point (TUN)" +msgstr "" + +#: modules/network/net.c:250 +msgctxt "net-if-type" +msgid "Ethernet (TAP)" +msgstr "" + +#: modules/network/net.c:251 +msgctxt "net-if-type" +msgid "Parallel Line Internet Protocol" +msgstr "" + +#: modules/network/net.c:252 +msgctxt "net-if-type" +msgid "Infrared" +msgstr "" + +#: modules/network/net.c:253 modules/network/net.c:271 +msgctxt "net-if-type" +msgid "Serial Line Internet Protocol" +msgstr "" + +#: modules/network/net.c:254 +msgctxt "net-if-type" +msgid "Integrated Services Digital Network" +msgstr "" + +#: modules/network/net.c:255 +msgctxt "net-if-type" +msgid "IPv6-over-IPv4 Tunnel" +msgstr "" + +#: modules/network/net.c:256 +msgctxt "net-if-type" +msgid "VMWare Virtual Network Interface (NAT)" +msgstr "" + +#: modules/network/net.c:257 +msgctxt "net-if-type" +msgid "VMWare Virtual Network Interface" +msgstr "" + +#: modules/network/net.c:258 +msgctxt "net-if-type" +msgid "Personal Area Network (PAN)" +msgstr "" + +#: modules/network/net.c:259 +msgctxt "net-if-type" +msgid "Bluetooth" +msgstr "" + +#: modules/network/net.c:260 +msgctxt "net-if-type" +msgid "Bridge Interface" +msgstr "" + +#: modules/network/net.c:261 +msgctxt "net-if-type" +msgid "Hamachi Virtual Personal Network" +msgstr "" + +#: modules/network/net.c:263 +msgctxt "net-if-type" +msgid "Intermediate Functional Block" +msgstr "" + +#: modules/network/net.c:264 +msgctxt "net-if-type" +msgid "GRE Network Tunnel" +msgstr "" + +#: modules/network/net.c:265 +msgctxt "net-if-type" +msgid "Mesh Network" +msgstr "" + +#: modules/network/net.c:266 +msgctxt "net-if-type" +msgid "Wireless Master Interface" +msgstr "" + +#: modules/network/net.c:267 +msgctxt "net-if-type" +msgid "VirtualBox Virtual Network Interface" +msgstr "" + +#: modules/network/net.c:273 +msgctxt "net-if-type" +msgid "Wireless (WAN)" +msgstr "" + +#: modules/network/net.c:275 +msgctxt "net-if-type" +msgid "(Unknown)" +msgstr "" + +#: modules/network/net.c:348 modules/network/net.c:358 +msgid "Network Interfaces" +msgstr "" + +#: modules/network/net.c:348 +msgid "None Found" +msgstr "" + +#: modules/network/net.c:400 modules/network/net.c:422 +#: modules/network/net.c:423 +msgid "MiB" +msgstr "" + +#: modules/network/net.c:414 +msgid "Network Adapter Properties" +msgstr "" + +#: modules/network/net.c:415 +msgid "Interface Type" +msgstr "" + +#: modules/network/net.c:416 +msgid "Hardware Address (MAC)" +msgstr "" + +#: modules/network/net.c:420 +msgid "MTU" +msgstr "" + +#: modules/network/net.c:421 +msgid "Transfer Details" +msgstr "" + +#: modules/network/net.c:422 +msgid "Bytes Received" +msgstr "" + +#: modules/network/net.c:423 +msgid "Bytes Sent" +msgstr "" + +#: modules/network/net.c:440 modules/network/net.c:462 +#: modules/network/net.c:463 +msgid "dBm" +msgstr "" + +#: modules/network/net.c:440 +msgid "mW" +msgstr "" + +#: modules/network/net.c:454 +msgid "Wireless Properties" +msgstr "" + +#: modules/network/net.c:455 +msgid "Network Name (SSID)" +msgstr "" + +#: modules/network/net.c:456 +msgid "Bit Rate" +msgstr "" + +#: modules/network/net.c:456 +msgid "Mb/s" +msgstr "" + +#: modules/network/net.c:457 +msgid "Transmission Power" +msgstr "" + +#: modules/network/net.c:459 +msgid "Status" +msgstr "" + +#: modules/network/net.c:460 +msgid "Link Quality" +msgstr "" + +#: modules/network/net.c:461 +msgid "Signal / Noise" +msgstr "" + +#: modules/network/net.c:476 +msgid "Internet Protocol (IPv4)" +msgstr "" + +#: modules/network/net.c:477 modules/network/net.c:478 +#: modules/network/net.c:480 +msgid "(Not set)" +msgstr "" + +#: modules/network/net.c:479 +msgid "Broadcast Address" +msgstr "" diff --git a/talimatname/genel/h/hardinfo/talimat b/talimatname/genel/h/hardinfo/talimat new file mode 100644 index 000000000..d16bb1c0b --- /dev/null +++ b/talimatname/genel/h/hardinfo/talimat @@ -0,0 +1,31 @@ +# Tanım: Bir sistem bilgisi ve performans aracı. +# URL: http://sourceforge.net/projects/hardinfo.berlios/ +# Paketçi: Cihan_Alkan +# Gerekler: gtk2 libsoup glib +# Grup: sistem + +isim=hardinfo +surum=0.6 +devir=1 +kaynak=(hardinfo-tr.po) + +derle() { + + if [ ! -d $DERLEME_KAYNAKDIZIN/$isim ];then + git clone https://github.com/lpereira/hardinfo $DERLEME_KAYNAKDIZIN/$isim + else + cd $DERLEME_KAYNAKDIZIN/$isim + git pull + cd - + fi + cp -r $DERLEME_KAYNAKDIZIN/$isim $SRC/ + cd $SRC/$isim + cp ../hardinfo-tr.po po/tr.po + mkdir build + cd build + cmake .. -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib + make + + make DESTDIR="${PKG}" install +} diff --git a/talimatname/genel/h/harfbuzz/harfbuzz.kos-kur b/talimatname/genel/h/harfbuzz/harfbuzz.kos-kur new file mode 100644 index 000000000..108d5e2e1 --- /dev/null +++ b/talimatname/genel/h/harfbuzz/harfbuzz.kos-kur @@ -0,0 +1 @@ +mkdir -p /usr/share/gir-1.0 diff --git a/talimatname/genel/h/harfbuzz/harfbuzz.kos-sil b/talimatname/genel/h/harfbuzz/harfbuzz.kos-sil new file mode 100644 index 000000000..2530ea28c --- /dev/null +++ b/talimatname/genel/h/harfbuzz/harfbuzz.kos-sil @@ -0,0 +1 @@ +[ -d /usr/share/gir-1.0 ] && mv /usr/share/gir-1.0 /usr/share/gir-1.0.ydk diff --git a/talimatname/genel/h/harfbuzz/harfbuzz.sil-kos b/talimatname/genel/h/harfbuzz/harfbuzz.sil-kos new file mode 100644 index 000000000..ef803d41f --- /dev/null +++ b/talimatname/genel/h/harfbuzz/harfbuzz.sil-kos @@ -0,0 +1 @@ +[ -d /usr/share/gir-1.0.ydk ] && mv /usr/share/gir-1.0.ydk /usr/share/gir-1.0 diff --git a/talimatname/genel/h/harfbuzz/talimat b/talimatname/genel/h/harfbuzz/talimat new file mode 100644 index 000000000..ca222c282 --- /dev/null +++ b/talimatname/genel/h/harfbuzz/talimat @@ -0,0 +1,32 @@ +# Tanım: OpenType metin şekillendirme motoru +# URL: http://www.freedesktop.org/software/harfbuzz +# Paketçi: Cihan Alkan +# Gerekler: cairo glib icu freetype ragel graphite2 + +isim=harfbuzz +surum=1.5.1 +devir=3 +kaynak=(http://www.freedesktop.org/software/$isim/release/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum + NOCONFIGURE=1 ./autogen.sh + ./configure \ + --prefix=/usr \ + --with-cairo \ + --with-freetype \ + --with-glib \ + --with-gobject \ + --with-graphite2 \ + --with-icu + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + make + make DESTDIR=$PKG install + install -Dm644 COPYING "$PKG/usr/share/licenses/harfbuzz/COPYING" + mkdir -p ../hb-icu/usr/{include/harfbuzz,lib/pkgconfig}; cd ../hb-icu + mv "$PKG"/usr/lib/libharfbuzz-icu* ./usr/lib + mv "$PKG"/usr/lib/pkgconfig/harfbuzz-icu.pc ./usr/lib/pkgconfig + mv "$PKG"/usr/include/harfbuzz/hb-icu.h ./usr/include/harfbuzz + cp -r $SRC/hb-icu/* "$PKG" + rm -rf $PKG/usr/share/gtk-doc +} diff --git a/talimatname/genel/h/haveged/talimat b/talimatname/genel/h/haveged/talimat new file mode 100644 index 000000000..7429efa19 --- /dev/null +++ b/talimatname/genel/h/haveged/talimat @@ -0,0 +1,29 @@ +# Tanım: Rasgele sayıların öngörülemeyen bir akışı üreten ve /dev/random'ı besleyen program +# URL: http://www.issihosts.com/haveged/ +# Paketçi: milisarge +# Gerekler: + +isim=haveged +surum=1.9.1 +devir=1 +kaynak=(http://downloads.sourceforge.net/project/haveged/$isim-$surum.tar.gz) + +derle() { + + cd $isim-$surum + + source /etc/blfs-bootscripts + wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2 + tar xvf $scripts-$scriptsversion.tar.bz2 + + ./configure --prefix=/usr + make + make DESTDIR=$PKG install + + cd $scripts-$scriptsversion + make DESTDIR=$PKG install-haveged + + mkdir -pv $PKG/usr/share/doc/haveged-1.9.1 + cp -v README $PKG/usr/share/doc/haveged-1.9.1 + +} diff --git a/talimatname/genel/h/hd2u/talimat b/talimatname/genel/h/hd2u/talimat new file mode 100644 index 000000000..8f5011f71 --- /dev/null +++ b/talimatname/genel/h/hd2u/talimat @@ -0,0 +1,20 @@ +# Tanım: Metin formatlari icin donusturucu +# URL: http://terminus.sk/~hany +# Paketçi: milisarge +# Gerekler: popt + +isim=hd2u +surum=1.0.3 +devir=1 +kaynak=(http://terminus.sk/~hany/\_data/hd2u/$isim-$surum.tgz) + +derle() { + + cd $isim-$surum + + ./configure --prefix=/usr + make + install -d -m 755 $PKG/usr/bin + install -m 755 -s dos2unix $PKG/usr/bin + +} diff --git a/talimatname/genel/h/hdajackretask/talimat b/talimatname/genel/h/hdajackretask/talimat new file mode 100644 index 000000000..0adb037f7 --- /dev/null +++ b/talimatname/genel/h/hdajackretask/talimat @@ -0,0 +1,16 @@ +# Tanım: jack girişlerini yeniden ayarlama yapar. +# URL: http://alsa-project.org/ +# Paketçi: milisarge +# Gerekler: gtk3 + +isim=hdajackretask +surum=1.1.3 +devir=1 +kaynak=(ftp://ftp.alsa-project.org/pub/tools/alsa-tools-$surum.tar.bz2) + +derle() { + cd alsa-tools-$surum/$isim + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/h/hddtemp/hddtemp-0.3-beta15-byteswap.patch b/talimatname/genel/h/hddtemp/hddtemp-0.3-beta15-byteswap.patch new file mode 100644 index 000000000..7b0dddc2a --- /dev/null +++ b/talimatname/genel/h/hddtemp/hddtemp-0.3-beta15-byteswap.patch @@ -0,0 +1,28 @@ +diff -Nuar --exclude '*~' hddtemp-0.3-beta15.orig/src/sata.c hddtemp-0.3-beta15/src/sata.c +--- hddtemp-0.3-beta15.orig/src/sata.c 2006-05-14 02:09:55.579437498 -0700 ++++ hddtemp-0.3-beta15/src/sata.c 2006-05-14 02:06:08.495948437 -0700 +@@ -88,7 +88,9 @@ + return strdup(_("unknown")); + else + { ++ //fprintf(stderr,"sata_model1=%s\n",identify + 54); + sata_fixstring(identify + 54, 24); ++ //fprintf(stderr,"sata_model2=%s\n",identify + 54); + return strdup(identify + 54); + } + } +diff -Nuar --exclude '*~' hddtemp-0.3-beta15.orig/src/satacmds.c hddtemp-0.3-beta15/src/satacmds.c +--- hddtemp-0.3-beta15.orig/src/satacmds.c 2006-05-14 02:09:40.983470339 -0700 ++++ hddtemp-0.3-beta15/src/satacmds.c 2006-05-14 02:09:02.319557333 -0700 +@@ -98,7 +98,10 @@ + /* convert from big-endian to host byte order */ + for (p = end ; p != s;) { + unsigned short *pp = (unsigned short *) (p -= 2); +- *pp = ntohs(*pp); ++ char tmp = p[0]; ++ p[0] = p[1]; ++ p[1] = tmp; ++ //*pp = ntohs(*pp); + } + + /* strip leading blanks */ diff --git a/talimatname/genel/h/hddtemp/hddtemp-0.3-beta15-execinfo.patch b/talimatname/genel/h/hddtemp/hddtemp-0.3-beta15-execinfo.patch new file mode 100644 index 000000000..1e7239535 --- /dev/null +++ b/talimatname/genel/h/hddtemp/hddtemp-0.3-beta15-execinfo.patch @@ -0,0 +1,21 @@ +--- hddtemp-0.3-beta15/configure.in~ 2005-10-17 19:14:19 +0000 ++++ hddtemp-0.3-beta15/configure.in 2006-12-11 18:23:22 +0000 +@@ -18,6 +18,7 @@ + AC_HEADER_STDC + AC_CHECK_HEADERS(fcntl.h) + AC_CHECK_HEADERS(netinet/in.h) ++AC_CHECK_HEADERS(execinfo.h) + AC_CHECK_TYPE(in_addr_t, ,[AC_DEFINE_UNQUOTED([in_addr_t], [uint32_t], [Define to 'uint32_t' if does not define.])], [#include ]) + + # Checks for typedefs, structures, and compiler characteristics. +--- hddtemp-0.3-beta15/src/backtrace.c-orig 2006-12-11 18:20:41 +0000 ++++ hddtemp-0.3-beta15/src/backtrace.c 2006-12-11 18:23:28 +0000 +@@ -18,7 +18,7 @@ + + #include + +-#if defined(__i386__) && defined(__GLIBC__) ++#ifdef HAS_EXECINFO_H + + #include + diff --git a/talimatname/genel/h/hddtemp/hddtemp-0.3-beta15-iconv.patch b/talimatname/genel/h/hddtemp/hddtemp-0.3-beta15-iconv.patch new file mode 100644 index 000000000..621e7549a --- /dev/null +++ b/talimatname/genel/h/hddtemp/hddtemp-0.3-beta15-iconv.patch @@ -0,0 +1,28 @@ +--- hddtemp-0.3-beta15/src/utf8.c~ 2007-03-27 09:09:59.000000000 +0200 ++++ hddtemp-0.3-beta15/src/utf8.c 2007-03-27 09:10:06.000000000 +0200 +@@ -23,7 +23,9 @@ + + // Standard includes + #include ++#ifdef HAVE_ICONV + #include ++#endif + #include + #include + #include +@@ -34,6 +36,7 @@ + + static char *iconv_from_utf8_to_locale(const char *string, const char* fallback_string) + { ++#ifdef HAVE_ICONV + const size_t buffer_inc = 80; // Increment buffer size in 80 bytes step + const char *charset; + iconv_t cd; +@@ -93,6 +96,7 @@ + if (dest_buffer != NULL) + free(dest_buffer); // free buffer + free(src_buffer); // free string ++#endif // HAVE_ICONV + return strdup(fallback_string); // and return fallback string + } + diff --git a/talimatname/genel/h/hddtemp/hddtemp-0.3-beta15-nls.patch b/talimatname/genel/h/hddtemp/hddtemp-0.3-beta15-nls.patch new file mode 100644 index 000000000..86567aeb8 --- /dev/null +++ b/talimatname/genel/h/hddtemp/hddtemp-0.3-beta15-nls.patch @@ -0,0 +1,14 @@ +--- hddtemp-0.3-beta15/src/hddtemp.c~ 2006-04-19 02:37:35 +0000 ++++ hddtemp-0.3-beta15/src/hddtemp.c 2007-03-26 08:14:17 +0000 +@@ -275,9 +275,11 @@ + backtrace_sigill(); + backtrace_sigbus(); + ++#if ENABLE_NLS + setlocale (LC_ALL, ""); + bindtextdomain (PACKAGE, LOCALEDIR); + textdomain (PACKAGE); ++#endif + + show_db = debug = numeric = quiet = wakeup = af_hint = syslog_interval = 0; + unit = DEFAULT; diff --git a/talimatname/genel/h/hddtemp/hddtemp-0.3-beta15-satacmds.patch b/talimatname/genel/h/hddtemp/hddtemp-0.3-beta15-satacmds.patch new file mode 100644 index 000000000..d67e0681f --- /dev/null +++ b/talimatname/genel/h/hddtemp/hddtemp-0.3-beta15-satacmds.patch @@ -0,0 +1,26 @@ +diff -Naurp hddtemp-0.3-beta15-orig/src/satacmds.c hddtemp-0.3-beta15/src/satacmds.c +--- hddtemp-0.3-beta15-orig/src/satacmds.c 2007-02-10 14:25:15.000000000 +0100 ++++ hddtemp-0.3-beta15/src/satacmds.c 2007-02-10 14:26:53.000000000 +0100 +@@ -54,7 +54,6 @@ int sata_pass_thru(int device, unsigned + unsigned char cdb[16]; + unsigned char sense[32]; + int dxfer_direction; +- int ret; + + memset(cdb, 0, sizeof(cdb)); + cdb[0] = ATA_16; +@@ -78,13 +77,7 @@ int sata_pass_thru(int device, unsigned + cdb[6] = cmd[1]; + cdb[14] = cmd[0]; + +- ret = scsi_SG_IO(device, cdb, sizeof(cdb), buffer, cmd[3] * 512, sense, sizeof(sense), dxfer_direction); +- +- /* Verify SATA magics */ +- if (sense[0] != 0x72 || sense[7] != 0x0e || sense[9] != 0x0e || sense[10] != 0x00) +- return 1; +- else +- return ret; ++ return scsi_SG_IO(device, cdb, sizeof(cdb), buffer, cmd[3] * 512, sense, sizeof(sense), dxfer_direction); + } + + void sata_fixstring(unsigned char *s, int bytecount) diff --git a/talimatname/genel/h/hddtemp/hddtemp.rc b/talimatname/genel/h/hddtemp/hddtemp.rc new file mode 100644 index 000000000..53b0508ad --- /dev/null +++ b/talimatname/genel/h/hddtemp/hddtemp.rc @@ -0,0 +1,37 @@ +#!/bin/sh +# +# /etc/rc.d/hddtemp: start/stop hddtemp daemon +# + +# Check for configuration files +[ -f /etc/hddtemp.db ] || exit 1 + +case $1 in +start) + printf "Starting hddtemp..." + /usr/sbin/hddtemp -d -l 127.0.0.1 $(ls /dev/sd[a-z] | xargs) + if [ $? = 0 ]; then + printf " done.\n" + else + printf " error.\n" + fi + ;; +stop) + printf "Shutting down hddtemp..." + killall -q /usr/sbin/hddtemp + printf " done.\n" + ;; +restart) + $0 stop + sleep 2 + $0 start + ;; +*) + echo "usage: $0 [start|stop|restart]" + exit 1 + ;; +esac + +exit $? + +# End of file diff --git a/talimatname/genel/h/hddtemp/talimat b/talimatname/genel/h/hddtemp/talimat new file mode 100644 index 000000000..acb5a617f --- /dev/null +++ b/talimatname/genel/h/hddtemp/talimat @@ -0,0 +1,37 @@ +# Tanım: S.M.A.R.T degerlerini okuyarak hdd ısısını verir +# URL: http://www.guzu.net/linux/hddtemp.php +# Paketçi: milisarge +# Gerekler: + +isim=hddtemp +surum=0.3-beta15 +devir=2 +kaynak=(http://nongnu.askapache.com/hddtemp/$isim-$surum.tar.bz2 + http://nongnu.askapache.com/hddtemp/hddtemp.db + hddtemp-0.3-beta15-satacmds.patch + hddtemp-0.3-beta15-byteswap.patch + hddtemp-0.3-beta15-execinfo.patch + hddtemp-0.3-beta15-nls.patch + hddtemp-0.3-beta15-iconv.patch + hddtemp.rc) + +derle() { + cd $isim-$surum + + patch -p 1 -i $SRC/hddtemp-0.3-beta15-satacmds.patch + patch -p 1 -i $SRC/hddtemp-0.3-beta15-byteswap.patch + patch -p 1 -i $SRC/hddtemp-0.3-beta15-execinfo.patch + patch -p 1 -i $SRC/hddtemp-0.3-beta15-nls.patch + patch -p 1 -i $SRC/hddtemp-0.3-beta15-iconv.patch + autoreconf + + ./configure \ + --prefix=/usr \ + --mandir=/usr/man \ + --with-db-path=/etc/hddtemp.db + + make + make DESTDIR=$PKG install + install -m 0644 -D $SRC/hddtemp.db $PKG/etc/hddtemp.db + install -m 0744 -D $SRC/hddtemp.rc $PKG/etc/rc.d/init.d/hddtemp +} diff --git a/talimatname/genel/h/hdparm/talimat b/talimatname/genel/h/hdparm/talimat new file mode 100644 index 000000000..83b15e891 --- /dev/null +++ b/talimatname/genel/h/hdparm/talimat @@ -0,0 +1,14 @@ +# Tanım: Hdparm paketi, ATA/IDE'yi denetlemek için kullanışlı bir yardımcı program içerir +# URL: http://hdparm.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: + +isim=hdparm +surum=9.52 +devir=1 +kaynak=(http://downloads.sourceforge.net/$isim/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum && make + make DESTDIR=$PKG binprefix=/usr install +} diff --git a/talimatname/genel/h/heimdall/heimdall.desktop b/talimatname/genel/h/heimdall/heimdall.desktop new file mode 100644 index 000000000..ca2d125c1 --- /dev/null +++ b/talimatname/genel/h/heimdall/heimdall.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Version=1.0 +Name=Heimdall +Type=Application +Comment=Firmware flasher for Samsung mobile devices +Terminal=false +Exec=heimdall-frontend +Icon=phone +Categories=Development; diff --git a/talimatname/genel/h/heimdall/talimat b/talimatname/genel/h/heimdall/talimat new file mode 100644 index 000000000..c8c957107 --- /dev/null +++ b/talimatname/genel/h/heimdall/talimat @@ -0,0 +1,25 @@ +# Tanım: Samsung cihazlara firmware yükleme aracı +# URL: http://www.glassechidna.com.au/products/heimdall/ +# Paketçi: milisarge +# Gerekler: cmake qt5 android-udev + +isim=heimdall +surum=1.4.2 +devir=2 +kaynak=(https://github.com/Benjamin-Dobell/Heimdall/archive/v${surum}.tar.gz::$isim-$surum.tar.gz + https://github.com/oltulu/Heimdall/raw/master/heimdall-frontend/mainwindow.ui::$isim-mainwindow.ui + https://github.com/oltulu/Heimdall/raw/master/heimdall-frontend/aboutform.ui::$isim-aboutform.ui + heimdall.desktop) + +derle(){ + cd Heimdall-$surum + cp -r $SRC/$isim-mainwindow.ui $SRC/Heimdall-$surum/heimdall-frontend/ + cp -r $SRC/$isim-aboutform.ui $SRC/Heimdall-$surum/heimdall-frontend/ + cmake . -DCMAKE_INSTALL_PREFIX=/usr + make + install -m644 -D $SRC/heimdall.desktop "$PKG/usr/share/applications/heimdall.desktop" + install -m644 -D LICENSE "$PKG/usr/share/licenses/$isim/LICENSE" + install -d "$PKG"/usr/bin + install -Dm755 bin/* "$PKG"/usr/bin/ + install -Dm644 heimdall/60-heimdall.rules "$PKG"/usr/lib/udev/rules.d/60-heimdall.rules +} diff --git a/talimatname/genel/h/help2man/talimat b/talimatname/genel/h/help2man/talimat new file mode 100644 index 000000000..c7eac3528 --- /dev/null +++ b/talimatname/genel/h/help2man/talimat @@ -0,0 +1,19 @@ +# Tanım: Help2man, program çıktısından otomatik olarak basit manuel sayfalar üretmek için kullanılan bir araçtır. +# URL: http://www.gnu.org/software/help2man/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: perl-locale-gettext + +isim=help2man +surum=1.47.3 +devir=1 +kaynak=(http://ftp.gnu.org/gnu/help2man/help2man-$surum.tar.xz) + +derle(){ + cd $isim-$surum + ./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --libdir=/usr/lib + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/h/hexchat/talimat b/talimatname/genel/h/hexchat/talimat new file mode 100644 index 000000000..495d86b3b --- /dev/null +++ b/talimatname/genel/h/hexchat/talimat @@ -0,0 +1,25 @@ +# Tanım: HexChat bir IRC sohbet programıdır. Aynı anda birden fazla IRC kanalına (sohbet odaları) katılmanızı, herkese açık olarak konuşmanızı, özel birebir konuşmalar yapmanızı, vb. olanak sağlar. Dosya aktarımları da mümkündür. +# URL: https://dl.hexchat.net/hexchat +# Paketçi: milisarge +# Gerekler: lua52 glib gtk2 dbus libnotify libcanberra openssl pciutils desktop-file-utils pango + +isim=hexchat +surum=2.12.3 +devir=1 +kaynak=(https://dl.hexchat.net/hexchat/$isim-$surum.tar.xz) + +derle() { + gdk-pixbuf-query-loaders --update-cache + cd $isim-$surum + + ./configure \ + --prefix='/usr' \ + --enable-python='python3' \ + --enable-textfe + + make + + make DESTDIR=$PKG install + + +} diff --git a/talimatname/genel/h/hfsprogs/license b/talimatname/genel/h/hfsprogs/license new file mode 100644 index 000000000..c7fab4b24 --- /dev/null +++ b/talimatname/genel/h/hfsprogs/license @@ -0,0 +1,353 @@ +Apple Public Source License + +Version 2.0 - August 6, 2003 + +Please read this License carefully before downloading this software. By +downloading or using this software, you are agreeing to be bound by the +terms of this License. If you do not or cannot agree to the terms of +this License, please do not download or use the software. + +1. General; Definitions. This License applies to any program or other +work which Apple Computer, Inc. ("Apple") makes publicly available and +which contains a notice placed by Apple identifying such program or work +as "Original Code" and stating that it is subject to the terms of this +Apple Public Source License version 2.0 ("License"). As used in this +License: + +1.1 "Applicable Patent Rights" mean: (a) in the case where Apple is the +grantor of rights, (i) claims of patents that are now or hereafter +acquired, owned by or assigned to Apple and (ii) that cover subject +matter contained in the Original Code, but only to the extent necessary +to use, reproduce and/or distribute the Original Code without +infringement; and (b) in the case where You are the grantor of rights, +(i) claims of patents that are now or hereafter acquired, owned by or +assigned to You and (ii) that cover subject matter in Your +Modifications, taken alone or in combination with Original Code. + +1.2 "Contributor" means any person or entity that creates or contributes +to the creation of Modifications. + +1.3 "Covered Code" means the Original Code, Modifications, the +combination of Original Code and any Modifications, and/or any +respective portions thereof. + +1.4 "Externally Deploy" means: (a) to sublicense, distribute or +otherwise make Covered Code available, directly or indirectly, to anyone +other than You; and/or (b) to use Covered Code, alone or as part of a +Larger Work, in any way to provide a service, including but not limited +to delivery of content, through electronic communication with a client +other than You. + +1.5 "Larger Work" means a work which combines Covered Code or portions +thereof with code not governed by the terms of this License. + +1.6 "Modifications" mean any addition to, deletion from, and/or change +to, the substance and/or structure of the Original Code, any previous +Modifications, the combination of Original Code and any previous +Modifications, and/or any respective portions thereof. When code is +released as a series of files, a Modification is: (a) any addition to or +deletion from the contents of a file containing Covered Code; and/or (b) +any new file or other representation of computer program statements that +contains any part of Covered Code. + +1.7 "Original Code" means (a) the Source Code of a program or other work +as originally made available by Apple under this License, including the +Source Code of any updates or upgrades to such programs or works made +available by Apple under this License, and that has been expressly +identified by Apple as such in the header file(s) of such work; and (b) +the object code compiled from such Source Code and originally made +available by Apple under this License + +1.8 "Source Code" means the human readable form of a program or other +work that is suitable for making modifications to it, including all +modules it contains, plus any associated interface definition files, +scripts used to control compilation and installation of an executable +(object code). + +1.9 "You" or "Your" means an individual or a legal entity exercising +rights under this License. For legal entities, "You" or "Your" includes +any entity which controls, is controlled by, or is under common control +with, You, where "control" means (a) the power, direct or indirect, to +cause the direction or management of such entity, whether by contract or +otherwise, or (b) ownership of fifty percent (50%) or more of the +outstanding shares or beneficial ownership of such entity. + +2. Permitted Uses; Conditions & Restrictions. Subject to the terms and +conditions of this License, Apple hereby grants You, effective on the +date You accept this License and download the Original Code, a +world-wide, royalty-free, non-exclusive license, to the extent of +Apple's Applicable Patent Rights and copyrights covering the Original +Code, to do the following: + +2.1 Unmodified Code. You may use, reproduce, display, perform, +internally distribute within Your organization, and Externally Deploy +verbatim, unmodified copies of the Original Code, for commercial or +non-commercial purposes, provided that in each instance: + +(a) You must retain and reproduce in all copies of Original Code the +copyright and other proprietary notices and disclaimers of Apple as they +appear in the Original Code, and keep intact all notices in the Original +Code that refer to this License; and + +(b) You must include a copy of this License with every copy of Source +Code of Covered Code and documentation You distribute or Externally +Deploy, and You may not offer or impose any terms on such Source Code +that alter or restrict this License or the recipients' rights hereunder, +except as permitted under Section 6. + +2.2 Modified Code. You may modify Covered Code and use, reproduce, +display, perform, internally distribute within Your organization, and +Externally Deploy Your Modifications and Covered Code, for commercial or +non-commercial purposes, provided that in each instance You also meet +all of these conditions: + +(a) You must satisfy all the conditions of Section 2.1 with respect to +the Source Code of the Covered Code; + +(b) You must duplicate, to the extent it does not already exist, the +notice in Exhibit A in each file of the Source Code of all Your +Modifications, and cause the modified files to carry prominent notices +stating that You changed the files and the date of any change; and + +(c) If You Externally Deploy Your Modifications, You must make Source +Code of all Your Externally Deployed Modifications either available to +those to whom You have Externally Deployed Your Modifications, or +publicly available. Source Code of Your Externally Deployed +Modifications must be released under the terms set forth in this +License, including the license grants set forth in Section 3 below, for +as long as you Externally Deploy the Covered Code or twelve (12) months +from the date of initial External Deployment, whichever is longer. You +should preferably distribute the Source Code of Your Externally Deployed +Modifications electronically (e.g. download from a web site). + +2.3 Distribution of Executable Versions. In addition, if You Externally +Deploy Covered Code (Original Code and/or Modifications) in object code, +executable form only, You must include a prominent notice, in the code +itself as well as in related documentatble under the terms of this +License with information on how and where to obtain such Source Code. + +2.4 Third Party Rights. You expressly acknowledge and agree that +although Apple and each Contributor grants the licenses to their +respective portions of the Covered Code set forth herein, no assurances +are provided by Apple or any Contributor that the Covered Code does not +infringe the patent or other intellectual property rights of any other +entity. Apple and each Contributor disclaim any liability to You for +claims brought by any other entity based on infringement of intellectual +property rights or otherwise. As a condition to exercising the rights +and licenses granted hereunder, You hereby assume sole responsibility to +secure any other intellectual property rights needed, if any. For +example, if a third party patent license is required to allow You to +distribute the Covered Code, it is Your responsibility to acquire that +license before distributing the Covered Code. + +3. Your Grants. In consideration of, and as a condition to, the licenses +granted to You under this License, You hereby grant to any person or +entity receiving or distributing Covered Code under this License a +non-exclusive, royalty-free, perpetual, irrevocable license, under Your +Applicable Patent Rights and other intellectual property rights (other +than patent) owned or controlled by You, to use, reproduce, display, +perform, modify, sublicense, distribute and Externally Deploy Your +Modifications of the same scope and extent as Apple's licenses under +Sections 2.1 and 2.2 above. + +4. Larger Works. You may create a Larger Work by combining Covered Code +with other code not governed by the terms of this License and distribute +the Larger Work as a single product. In each such instance, You must +make sure the requirements of this License are fulfilled for the Covered +Code or any portion thereof. + +5. Limitations on Patent License. Except as expressly stated in Section +2, no other patent rights, express or implied, are granted by Apple +herein. Modifications and/or Larger Works may require additional patent +licensesrms") to one or more recipients of Covered Code. However, You +may do so only on Your own behalf and as Your sole responsibility, and +not on behalf of Apple or any Contributor. You must obtain the +recipient's agreement that any such Additional Terms are offered by You +alone, and You hereby agree to indemnify, defend and hold Apple and +every Contributor harmless for any liability incurred by or claims +asserted against Apple or such Contributor by reason of any such +Additional Terms. + +7. Versions of the License. Apple may publish revised and/or new +versions of this License from time to time. Each version will be given a +distinguishing version number. Once Original Code has been published +under a particular version of this License, You may continue to use it +under the terms of that version. You may also choose to use such +Original Code under the terms of any subsequent version of this License +published by Apple. No one other than Apple has the right to modify the +terms applicable to Covered Code created under this License. + +8. NO WARRANTY OR SUPPORT. The Covered Code may contain in whole or in +part pre-release, untested, or not fully tested works. The Covered Code +may contain errors that could cause failures or loss of data, and may be +incomplete or contain inaccuracies. You expressly acknowledge and agree +that use of the Covered Code, or any portion thereof, is at Your sole +and entire risk. THE COVERED CODE IS PROVIDED "AS IS" AND WITHOUT +WARRANTY, UPGRADES OR SUPPORT OF ANY KIND AND APPLE AND APPLE'S +LICENSOR(S) (COLLECTIVELY REFERRED TO AS "APPLE" FOR THE PURPOSES OF +SECTIONS 8 AND 9) AND ALL CONTRIBUTORS EXPRESSLY DISCLAIM ALL WARRANTIES +AND/OR CONDITIONS, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES AND/OR CONDITIONS OF MERCHANTABILITY, OF +SATISFACTORY QUALITY, OF FITNESS FOR A PARTICULAR PURPOSE, OF ACCURACY, +OF QUIET ENJOYMENT, AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. APPLE AND +EACH CONTRIBUTOR DOES NOT WARRANT AGAINST INTERFERENCE WITH YOUR +ENJOYMENT OF THE COVERED CODE, THAT THE FUNCTIONS CONTAINED IN THE +COVERED CODE WILL MEET YOUR REQUIREMENTS, THAT THE OPERATION OF THE +COVERED CODE WILL BE UNINTERRUPTED OR ERROR-FREE, OR THAT DEFECTS IN THE +COVERED CODE WILL BE CORRECTED. NO ORAL OR WRITTEN INFORMATION OR ADVICE +GIVEN BY APPLE, AN APPLE AUTHORIZED REPRESENTATIVE OR ANY CONTRIBUTOR +SHALL CREATE A WARRANTY. You acknowledge that the Covered Code is not +intended for use in the operation of nuclear facilities, aircraft +navigation, communication systems, or air traffic control machines in +which case the failure of the Covered Code could lead to death, personal +injury, or severe physical or environmental damage. + +9. LIMITATION OF LIABILITY. TO THE EXTENT NOT PROHIBITED BY LAW, IN NO +EVENT SHALL APPLE OR ANY CONTRIBUTOR BE LIABLE FOR ANY INCIDENTAL, +SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR RELATING TO +THIS LICENSE OR YOUR USE OR INABILITY TO USE THE COVERED CODE, OR ANY +PORTION THEREOF, WHETHER UNDER A THEORY OF CONTRACT, WARRANTY, TORT +(INCLUDING NEGLIGENCE), PRODUCTS LIABILITY OR OTHERWISE, EVEN IF APPLE +OR SUCH CONTRIBUTOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES +AND NOTWITHSTANDING THE FAILURE OF ESSENTIAL PURPOSE OF ANY REMEDY. SOME +JURISDICTIONS DO NOT ALLOW THE LIMITATION OF LIABILITY OF INCIDENTAL OR +CONSEQUENTIAL DAMAGES, SO THIS LIMITATION MAY NOT APPLY TO YOU. In no +event shall Apple's total liability to You for all damages (other than +as may be required by applicable law) under this License exceed the +amount of fifty dollars ($50.00). + +10. Trademarks. This License does not grant any rights to use the +trademarks or trade names "Apple", "Apple Computer", "Mac", "Mac OS", +"QuickTime", "QuickTime Streaming Server" or any other trademarks, +service marks, logos or trade names belonging to Apple (collectively +"Apple Marks") or to any trademark, service mark, logo or trade name +belonging to any Contributor. You agree not to use any Apple Marks in or +as part of the name of products derived from the Original Code or to +endorse or promote products derived from the Original Code other than as +expressly permitted by and in strict compliance at all times with +Apple's third party trademark usage guidelines which are posted at +http://www.apple.com/legal/guidelinesfor3rdparties.html. + +11. Ownership. Subject to the licenses granted under this License, each +Contributor retains all rights, title and interest in and to any +Modifications made by such Contributor. Apple retains all rights, title +and interest in and to the Original Code and any Modifications made by +or on behalf of Apple ("Apple Modifications"), and such Apple +Modifications will not be automatically subject to this License. Apple +may, at its sole discretion, choose to license such Apple Modifications +under this License, or on different terms from those contained in this +License or may choose not to license them at all. + +12. Termination. + +12.1 Termination. This License and the rights granted hereunder will +terminate: + +(a) automatically without notice from Apple if You fail to comply with +any term(s) of this License and fail to cure such breach within 30 days +of becoming aware of such breach; + +(b) immediately in the event of the circumstances described in Section +13.5(b); or + +(c) automatically without notice from Apple if You, at any time during +the term of this License, commence an action for patent infringement +against Apple; provided that Apple did not first commence an action for +patent infringement against You in that instance. + +12.2 Effect of Termination. Upon termination, You agree to immediately +stop any further use, reproduction, modification, sublicensing and +distribution of the Covered Code. All sublicenses to the Covered Code +which have been properly granted prior to termination shall survive any +termination of this License. Provisions which, by their nature, should +remain in effect beyond the termination of this License shall survive, +including but not limited to Sections 3, 5, 8, 9, 10, 11, 12.2 and 13. +No party will be liable to any other for compensation, indemnity or +damages of any sort solely as a result of terminating this License in +accordance with its terms, and termination of this License will be +without prejudice to any other right or remedy of any party. + +13. Miscellaneous. + +13.1 Government End Users. The Covered Code is a "commercial item" as +defined in FAR 2.101. Government software and technical data rights in +the Covered Code include only those rights customarily provided to the +public as defined in this License. This customary commercial license in +technical data and software is provided in accordance with FAR 12.211 +(Technical Data) and 12.212 (Computer Software) and, for Department of +Defense purchases, DFAR 252.227-7015 (Technical Data -- Commercial +Items) and 227.7202-3 (Rights in Commercial Computer Software or +Computer Software Documentation). Accordingly, all U.S. Government End +Users acquire Covered Code with only those rights set forth herein. + +13.2 Relationship of Parties. This License will not be construed as +creating an agency, partnership, joint venture or any other form of +legal association between or among You, Apple or any Contributor, and +You will not represent to the contrary, whether expressly, by +implication, appearance or otherwise. + +13.3 Independent Development. Nothing in this License will impair +Apple's right to acquire, license, develop, have others develop for it, +market and/or distribute technology or products that perform the same or +similar functions as, or otherwise compete with, Modifications, Larger +Works, technology or products that You may develop, produce, market or +distribute. + +13.4 Waiver; Construction. Failure by Apple or any Contributor to +enforce any provision of this License will not be deemed a waiver of +future enforcement of that or any other provision. Any law or regulation +which provides that the language of a contract shall be construed +against the drafter will not apply to this License. + +13.5 Severability. (a) If for any reason a court of competent +jurisdiction finds any provision of this License, or portion thereof, to +be unenforceable, that provision of the License will be enforced to the +maximum extent permissible so as to effect the economic benefits and +intent of the parties, and the remainder of this License will continue +in full force and effect. (b) Notwithstanding the foregoing, if +applicable law prohibits or restricts You from fully and/or specifically +complying with Sections 2 and/or 3 or prevents the enforceability of +either of those Sections, this License will immediately terminate and +You must immediately discontinue any use of the Covered Code and destroy +all copies of it that are in your possession or control. + +13.6 Dispute Resolution. Any litigation or other dispute resolution +between You and Apple relating to this License shall take place in the +Northern District of California, and You and Apple hereby consent to the +personal jurisdiction of, and venue in, the state and federal courts +within that District with respect to this License. The application of +the United Nations Convention on Contracts for the International Sale of +Goods isce of Quebec, Canada, the following clause applies: The parties +hereby confirm that they have requested that this License and all +related documents be drafted in English. Les parties ont exigé que le +présent contrat et tous les documents connexes soient rédigés en +anglais. + +EXHIBIT A. + +"Portions Copyright (c) 1999-2003 Apple Computer, Inc. All Rights +Reserved. + +This file contains Original Code and/or Modifications of Original Code +as defined in and that are subject to the Apple Public Source License +Version 2.0 (the 'License'). You may not use this file except in +compliance with the License. Please obtain a copy of the License at +http://www.opensource.apple.com/apsl/ and read it before using this +file. + +The Original Code and all software distributed under the License are +distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER +EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, +INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please +see the License for the specific language governing rights and +limitations under the License." + +Please read the terms of this license carefully. By clicking on the +"Yes, I Accept" button below you are accepting and agreeing to the terms +of this license with Apple Computer, Inc. If you are agreeing to this +license on behalf of a company, you represent that you are authorized to +bind the company to such a license. If you do not meet this criterion or +you do not agree to any of the terms of this license, please click on +the "No, I Reject" button below or use your browser's Back button to +exit this page. diff --git a/talimatname/genel/h/hfsprogs/makefile.patch b/talimatname/genel/h/hfsprogs/makefile.patch new file mode 100644 index 000000000..812655f2e --- /dev/null +++ b/talimatname/genel/h/hfsprogs/makefile.patch @@ -0,0 +1,10 @@ +diff -Naur a/Makefile.lnx b/Makefile.lnx +--- a/Makefile.lnx 2014-05-03 21:05:26.619853000 +0200 ++++ b/Makefile.lnx 2014-05-03 21:04:42.977667000 +0200 +@@ -1,5 +1,5 @@ + CC := gcc +-CFLAGS += -I$(PWD)/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 ++CFLAGS += `pkg-config --cflags libbsd` -I$(PWD)/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 + SUBDIRS := newfs_hfs.tproj fsck_hfs.tproj + + all clean: diff --git a/talimatname/genel/h/hfsprogs/talimat b/talimatname/genel/h/hfsprogs/talimat new file mode 100644 index 000000000..6677c17d3 --- /dev/null +++ b/talimatname/genel/h/hfsprogs/talimat @@ -0,0 +1,35 @@ +# Tanım: HFS/HFS + kullanıcı alanı etiketleri +# URL: http://www.opensource.apple.com/ +# Paketçi: milisarge +# Gerekler: libbsd openssl + +isim=hfsprogs +surum=332.25 +devir=1 +kaynak=(http://ftp.de.debian.org/debian/pool/main/h/hfsprogs/${isim}_${surum}.orig.tar.gz + http://ftp.de.debian.org/debian/pool/main/h/hfsprogs/${isim}_${surum}-11.debian.tar.gz + license + makefile.patch) + +derle() { + cd diskdev_cmds-${surum} + for patch in ../debian/patches/*.patch ../makefile.patch + do + patch -Np1 -i ${patch} + done + make -f Makefile.lnx + install -m 755 -d ${PKG}/usr/bin + install -m 755 -d ${PKG}/usr/share/licenses/${isim} + install -m 755 -d ${PKG}/usr/share/${isim} + install -m 755 -d ${PKG}/usr/share/man/man8/ + + install -m 644 ../license ${PKG}/usr/share/licenses/${isim}/APSL + + install -m 755 newfs_hfs.tproj/newfs_hfs ${PKG}/usr/bin/mkfs.hfsplus + install -m 755 fsck_hfs.tproj/fsck_hfs ${PKG}/usr/bin/fsck.hfsplus + + install -m 644 newfs_hfs.tproj/hfsbootdata.img ${PKG}/usr/share/${NAME}/hfsbootdata + + install -m 644 newfs_hfs.tproj/newfs_hfs.8 ${PKG}/usr/share/man/man8/mkfs.hfsplus.8 + install -m 644 fsck_hfs.tproj/fsck_hfs.8 ${PKG}/usr/share/man/man8/fsck.hfsplus.8 +} diff --git a/talimatname/genel/h/hiawatha/hiawatha.conf.sample b/talimatname/genel/h/hiawatha/hiawatha.conf.sample new file mode 100644 index 000000000..1c1d62450 --- /dev/null +++ b/talimatname/genel/h/hiawatha/hiawatha.conf.sample @@ -0,0 +1,114 @@ +# Hiawatha main configuration file +# This is a basic sample configuration file that sets up a: +# 1) Default web site at /srv/http/hiawatha (Note: fast CGI is not active on default site) +# 2) Virtual host for phpmyadmin at /srv/http/phpMyAdmin +# note: you must install phpmyadmin, mysql, php-mcrypt, and php-cgi separately. Be sure that extensions +# mcrypt.so and mysql.so are enabled in your php.ini. +# Also add phpmyadmin to your hosts file +# 3) FastCGI server + + +# GENERAL SETTINGS +ServerId = http +ConnectionsTotal = 150 +ConnectionsPerIP = 10 +SystemLogfile = /var/log/hiawatha/system.log +GarbageLogfile = /var/log/hiawatha/garbage.log + + +# BINDING SETTINGS +# A binding is where a client can connect to. +# +Binding { + Port = 80 +} + + + +### The following fast CGI daemons require php-fpm using a UNIX socket and TCP port, respectively. +# ACTIVATE a FastCGI server for php (using UNIX socket) +FastCGIserver { + FastCGIid = PHP5 + ConnectTo = /run/php-fpm/php-fpm.sock + Extension = php + SessionTimeout = 30 +} + +# ACTIVATE a FastCGI server for php (using IP-address and TCP port) +#FastCGIserver { +# FastCGIid = PHP5 +# ConnectTo = 127.0.0.1:9000 +# Extension = php +# SessionTimeout = 30 +#} + + +# DEFAULT WEBSITE +# It is wise to use your IP address as the hostname of the default website +# and give it a blank webpage. By doing so, automated webscanners won't find +# your possible vulnerable website. +# +Hostname = 127.0.0.1 +WebsiteRoot = /srv/http/hiawatha +StartFile = index.html +AccessLogfile = /var/log/hiawatha/access.log +ErrorLogfile = /var/log/hiawatha/error.log +#ErrorHandler = 404:/error.cgi +UseXSLT = yes + + +# VIRTUAL HOSTS +VirtualHost { + + # If you set WebsiteRoot to /usr/share/webapps/phpMyAdmin you don't need followsymlinks + # I symlinked the phpMyAdmin folder to '/srv/http/phpMyAdmin' so that I can easily remember where it's located but + # still set 'WebsiteRoot' to the real source directory. You could point WebsiteRoot to the + # symlinked directory, but you will have to set 'FollowSymlinks = yes' for that to function properly + + #FollowSymlinks = yes + #WebsiteRoot = /srv/http/phpMyAdmin + WebsiteRoot = /usr/share/webapps/phpMyAdmin + Hostname = phpmyadmin + AccessLogfile = /var/log/hiawatha/phpmyadmin/access.log + ErrorLogfile = /var/log/hiawatha/phpmyadmin/error.log + StartFile = index.php + UseFastCGI = PHP5 + +} + +# Add some more + +#VirtualHost { +# Hostname = www.my-domain.com +# WebsiteRoot = /svr/http/my-domain/public +# StartFile = index.php +# AccessLogfile = /svr/http/my-domain/log/access.log +# ErrorLogfile = /svr/http/my-domain/log/error.log +# TimeForCGI = 5 +# UseFastCGI = PHP5 +# UseToolkit = banshee +#} + + +#Additional settings for monitoring + +UrlToolkit { + ToolkitID = banshee + RequestURI isfile Return + Match ^/(css|files|images|js)/ Return + Match ^/(favicon.ico|robots.txt|sitemap.xml)$ Return + Match .*\?(.*) Rewrite /index.php?$1 + Match .* Rewrite /index.php +} + +VirtualHost { + Hostname = monitor.domain.com + WebsiteRoot = /svr/http/monitor/public + AccessLogfile = /svr/http/monitor/logfiles/access.log + ErrorLogfile = /svr/http/monitor/logfiles/error.log + StartFile = index.php +# ExecuteCGI = yes + UseFastCGI = PHP5 # Use if you use PHP as a FastCGI daemon + TimeForCGI = 15 + UseToolkit = banshee +} diff --git a/talimatname/genel/h/hiawatha/hiawatha.kur-kos b/talimatname/genel/h/hiawatha/hiawatha.kur-kos new file mode 100644 index 000000000..d520b8257 --- /dev/null +++ b/talimatname/genel/h/hiawatha/hiawatha.kur-kos @@ -0,0 +1 @@ +cp /sources/milis.git/talimatname/genel/hiawatha/hiawatha.rc /etc/rc.d/init.d/hiawatha diff --git a/talimatname/genel/h/hiawatha/hiawatha.rc b/talimatname/genel/h/hiawatha/hiawatha.rc new file mode 100755 index 000000000..b482bdfef --- /dev/null +++ b/talimatname/genel/h/hiawatha/hiawatha.rc @@ -0,0 +1,33 @@ +#!/bin/sh +# +# /etc/rc.d/hiawatha: başlatma/durdurma hiawatha web sunucu +# + +. /lib/lsb/init-functions +_PID=/var/run/hiawatha.pid + +case $1 in +start) + log_info_msg "Hiawatha başlatılıyor..." + /usr/bin/hiawatha + evaluate_retval + ;; +stop) + log_info_msg "Hiawatha durduruluyor..." + if [ -f $_PID ]; then + kill `cat $_PID` + else + killall -9 /usr/bin/hiawatha + fi + evaluate_retval + ;; +restart) + $0 stop + sleep 2 + $0 start + ;; +*) + echo "Kullanım: $0 [start|stop|restart]" + exit 1 + ;; +esac diff --git a/talimatname/genel/h/hiawatha/talimat b/talimatname/genel/h/hiawatha/talimat new file mode 100644 index 000000000..53550d32d --- /dev/null +++ b/talimatname/genel/h/hiawatha/talimat @@ -0,0 +1,65 @@ +# Tanım: Guvenli ve gelişmiş bir webserver +# URL: https://www.hiawatha-webserver.org/ +# Paketçi: milisarge +# Gerekler: cmake libxslt mbedtls + +isim=hiawatha +surum=10.3 +devir=1 +kaynak=(https://www.hiawatha-webserver.org/files/$isim-$surum.tar.gz + hiawatha.conf.sample) + +derle() { + + cd "$isim-$surum" + sed -i 's/www-data/http/g' extra/logrotate.in + mkdir -p build + cd build + + cmake ../ -DCMAKE_INSTALL_PREFIX="/" \ + -DCMAKE_INSTALL_BINDIR="/usr/bin" \ + -DCMAKE_INSTALL_SBINDIR="/usr/bin" \ + -DCMAKE_INSTALL_SYSCONFDIR="/etc/hiawatha" \ + -DCMAKE_INSTALL_LIBDIR="/usr/lib" \ + -DCMAKE_INSTALL_MANDIR="/usr/share/man" \ + -DCONFIG_DIR="/etc/hiawatha" \ + -DLOG_DIR="/var/log/hiawatha" \ + -DPID_DIR="/run" \ + -DENABLE_TLS=ON \ + -DUSE_SYSTEM_MBEDTLS=ON \ + -DENABLE_MONITOR=ON \ + -DWEBROOT_DIR="/srv/http/hiawatha" \ + -DWORK_DIR="/var/lib/hiawatha" + + make + + # Features enabled by default + # -DENABLE_CACHE + # -DENABLE_IPV6 + # -DENABLE_RPROXY + # -DENABLE_TOOLKIT + # -DENABLE_XSLT + + # Features disabled by default + # -DENABLE_DEBUG + # -DENABLE_TOMAHAWK + + make DESTDIR="$PKG/" install + + rmdir "$PKG/run" + rm "$PKG/srv/http/hiawatha/index.html" + rmdir -p --ignore-fail-on-non-empty "$PKG/srv/http/hiawatha" + + # Update stock hiawatha.conf + sed -e 's|#ServerId = www-data|ServerId = http|' \ + -e 's|/var/www/|/srv/http/|g' \ + -e 's|//|/|g' \ + -e 's|#CGIextension = cgi|&\n#TriggerOnCGIstatus = no|g' \ + -e 's|ConnectTo = 127.0.0.1:2005|ConnectTo = 127.0.0.1:9000|g' \ + -e 's|# Extension = php|&\n# SessionTimeout = 30|g' \ + -e 's|#ErrorHandler = 404:/error.cgi|&\n#UseGZfile = yes|g' \ + -i "$PKG/etc/hiawatha/hiawatha.conf" + + install -Dm644 logrotate.d/hiawatha "$PKG/etc/logrotate.d/hiawatha" + install -Dm644 $SRC/"hiawatha.conf.sample" "$PKG/etc/hiawatha/" +} diff --git a/talimatname/genel/h/hicolor-icon-theme/talimat b/talimatname/genel/h/hicolor-icon-theme/talimat new file mode 100644 index 000000000..df3d62b01 --- /dev/null +++ b/talimatname/genel/h/hicolor-icon-theme/talimat @@ -0,0 +1,18 @@ +# Tanım: Freedesktop.org Hicolor icon temasi +# URL: http://icon-theme.freedesktop.org/wiki/HicolorTheme +# Paketçi: milisarge +# Gerekler: + +isim=hicolor-icon-theme +surum=0.15 +devir=1 +kaynak=( http://ftp.osuosl.org/pub/blfs/conglomeration/hicolor-icon-theme/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/h/hidapi/talimat b/talimatname/genel/h/hidapi/talimat new file mode 100644 index 000000000..b55f50357 --- /dev/null +++ b/talimatname/genel/h/hidapi/talimat @@ -0,0 +1,18 @@ +# Tanım: USB ve Bluetooth aygıtları ile iletişim için basit bir kütüphane +# URL: http://www.signal11.us/oss/hidapi/ +# Paketçi: milisarge +# Gerekler: libusb fox + + +isim=hidapi +surum=0.8.0-rc1 +devir=1 +kaynak=(https://github.com/signal11/hidapi/archive/$isim-$surum.tar.gz) + +derle() { + cd "$isim-$isim-$surum" + ./bootstrap + ./configure --enable-testgui --prefix=/usr + make + make DESTDIR="$PKG/" install +} diff --git a/talimatname/genel/h/highlight/talimat b/talimatname/genel/h/highlight/talimat new file mode 100644 index 000000000..71df63ae9 --- /dev/null +++ b/talimatname/genel/h/highlight/talimat @@ -0,0 +1,15 @@ +# Tanım: Hızlı ve esnek kaynak kodu vurgulayıcı (CLI sürümü) +# URL: http://www.andre-simon.de/doku/highlight/highlight.html +# Paketçi: milisarge +# Gerekler: qt4 boost lua + +isim=highlight +surum=3.23 +devir=1 +kaynak=(http://www.andre-simon.de/zip/$isim-$surum.tar.bz2) + +derle(){ + cd $isim-$surum + make QMAKE=qmake-qt4 + make DESTDIR=$PKG QMAKE=qmake-qt4 install +} diff --git a/talimatname/genel/h/hping/Makefile.patch b/talimatname/genel/h/hping/Makefile.patch new file mode 100644 index 000000000..d1d4221f4 --- /dev/null +++ b/talimatname/genel/h/hping/Makefile.patch @@ -0,0 +1,30 @@ +diff -Naur hping3-20051105/Makefile hping3-20051105-new/Makefile +--- hping3-20051105/Makefile 2005-11-05 05:31:41.000000000 -0500 ++++ hping3-20051105-new/Makefile 2009-02-26 03:21:46.000000000 -0500 +@@ -72,16 +72,18 @@ + rm -rf hping3 *.o byteorder byteorder.h systype.h Makefile libars.a .depend + + install: hping3 +- cp -f hping3 /usr/sbin/ +- chmod 755 /usr/sbin/hping3 +- ln -s /usr/sbin/hping3 /usr/sbin/hping +- ln -s /usr/sbin/hping3 /usr/sbin/hping2 +- @if [ -d ${INSTALL_MANPATH}/man8 ]; then \ +- cp ./docs/hping3.8 ${INSTALL_MANPATH}/man8; \ +- chmod 644 ${INSTALL_MANPATH}/man8/hping3.8; \ ++ @[ ! -d ${DESTDIR}/usr/bin ] && install -d ${DESTDIR}/usr/bin ++ cp -f hping3 ${DESTDIR}/usr/bin/ ++ chmod 755 ${DESTDIR}/usr/bin/hping3 ++ ln -s hping3 ${DESTDIR}/usr/bin/hping ++ ln -s hping3 ${DESTDIR}/usr/bin/hping2 ++ @[ ! -d ${DESTDIR}${INSTALL_MANPATH}/man8 ] && install -d ${DESTDIR}${INSTALL_MANPATH}/man8 ++ @if [ -d ${DESTDIR}${INSTALL_MANPATH}/man8 ]; then \ ++ cp ./docs/hping3.8 ${DESTDIR}${INSTALL_MANPATH}/man8; \ ++ chmod 644 ${DESTDIR}${INSTALL_MANPATH}/man8/hping3.8; \ + else \ + echo "@@@@@@ WARNING @@@@@@"; \ +- echo "Can't install the man page: ${INSTALL_MANPATH}/man8 does not exist"; \ ++ echo "Can't install the man page: ${DESTDIR}${INSTALL_MANPATH}/man8 does not exist"; \ + fi + + strip: hping3 diff --git a/talimatname/genel/h/hping/talimat b/talimatname/genel/h/hping/talimat new file mode 100644 index 000000000..51fb19f25 --- /dev/null +++ b/talimatname/genel/h/hping/talimat @@ -0,0 +1,21 @@ +# Tanım: TCP/IP prokolu icin Ping +# URL: https://github.com/antirez/hping +# Paketçi: milisarge +# Gerekler: libpcap + +isim=hping +surum=git +devir=1 +kaynak=(tshzset.patch Makefile.patch) + +derle() { + git clone https://github.com/antirez/hping + + cd $isim + patch -Np1 -i $SRC/tshzset.patch + MANPATH=/usr/share/man + ./configure --prefix=/usr --no-tcl + make + patch -p1 < $SRC/Makefile.patch + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/h/hping/tshzset.patch b/talimatname/genel/h/hping/tshzset.patch new file mode 100644 index 000000000..2d831e7c0 --- /dev/null +++ b/talimatname/genel/h/hping/tshzset.patch @@ -0,0 +1,13 @@ +diff --git a/waitpacket.c b/waitpacket.c +index a6c20f0..6e6acfb 100644 +--- a/waitpacket.c ++++ b/waitpacket.c +@@ -656,7 +656,7 @@ found: + printf(" TCP timestamp: tcpts=%u\n", tstamp); + if (first_tstamp) { + int tsdiff; +- int hz_set[] = { 2, 10, 100, 1000, 0 }; ++ int hz_set[] = { 1, 2, 10, 20, 25, 30, 40, 50, 60, 70, 80, 90, 100, 150, 200, 250, 300, 400, 500, 600, 700, 750, 800, 1000, 2000, 9000, 0 }; + int hzdiff = -1; + int hz = 0, sec; + int days, hours, minutes; diff --git a/talimatname/genel/h/hplip-plugin/talimat b/talimatname/genel/h/hplip-plugin/talimat new file mode 100644 index 000000000..237b622c2 --- /dev/null +++ b/talimatname/genel/h/hplip-plugin/talimat @@ -0,0 +1,48 @@ +# Tanım: HPs hplip yazıcı ikili sürücüler +# URL: http://hplipopensource.com/node/309 +# Paketçi: milisarge +# Gerekler: hplip + +isim=hplip-plugin +surum=3.17.6 +devir=1 +kaynak=(http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-$surum-plugin.run) + +derle() { + sh "hplip-$surum-plugin.run" --target "$SRC/hplip-$surum-plugin" --noexec + cd "$SRC/hplip-$surum-plugin" + _arch='x86_64' + + install -d "$PKG/usr/share/hplip/data/firmware" + install -d "$PKG/usr/share/hplip/fax/plugins" + install -d "$PKG/usr/share/hplip/prnt/plugins" + install -d "$PKG/usr/share/hplip/scan/plugins" + install -d "$PKG/usr/share/licenses/hplip-plugin" + install -d "$PKG/var/lib/hp" + + install -m644 plugin.spec "$PKG/usr/share/hplip/" + install -m644 hp_laserjet_*.fw.gz "$PKG/usr/share/hplip/data/firmware/" + install -m755 fax_marvell-"$_arch".so "$PKG/usr/share/hplip/fax/plugins/" + install -m755 hbpl1-"$_arch".so "$PKG/usr/share/hplip/prnt/plugins/" + install -m755 lj-"$_arch".so "$PKG/usr/share/hplip/prnt/plugins/" + install -m755 bb_*-"$_arch".so "$PKG/usr/share/hplip/scan/plugins/" + install -m644 license.txt "$PKG/usr/share/licenses/hplip-plugin/" + + # Create hplip.state used by hplip-tools + + cat << EOF > hplip.state +[plugin] +installed = 1 +eula = 1 +version = $surum +EOF + + install -m644 hplip.state "$PKG/var/lib/hp" + # Create symlinks + find "$PKG/usr/share/hplip" -type f -name "*.so" | while read f; do + lib_dir="${f%/*}" + lib_isim="${f##*/}" + ln -vsf "$lib_name" "$lib_dir/${lib_name%%-*}.so" + done + +} diff --git a/talimatname/genel/h/hplip/0022-Add-include-cups-ppd.h-in-various-places-as-CUPS-2.2.patch b/talimatname/genel/h/hplip/0022-Add-include-cups-ppd.h-in-various-places-as-CUPS-2.2.patch new file mode 100644 index 000000000..491c3072b --- /dev/null +++ b/talimatname/genel/h/hplip/0022-Add-include-cups-ppd.h-in-various-places-as-CUPS-2.2.patch @@ -0,0 +1,50 @@ +From b3a7fa4d4a573cfe0073ae50197f679af7e3a0ac Mon Sep 17 00:00:00 2001 +From: Till Kamppeter +Date: Sat, 24 Sep 2016 10:37:20 +0200 +Subject: Add 'include ' in various places as CUPS 2.2 moved some + definitions to ppd.h + +--- + configure.in | 2 +- + prnt/hpcups/HPCupsFilter.h | 2 ++ + prnt/hpijs/hpcupsfax.cpp | 1 + + 3 files changed, 4 insertions(+), 1 deletion(-) + +diff --git a/configure.in b/configure.in +index d3a1ddb..eabe14a 100755 +--- a/configure.in ++++ b/configure.in +@@ -554,7 +554,7 @@ fi + + if test "$hpijs_only_build" = "no" && test "$hpcups_only_build" = "no"; then + AC_CHECK_LIB([cups], [cupsDoFileRequest], [LIBS="$LIBS"], [AC_MSG_ERROR([cannot find libcups support], 9)]) +- AC_CHECK_HEADERS(cups/cups.h, ,[AC_MSG_ERROR([cannot find cups-devel support], 3)]) ++ AC_CHECK_HEADERS(cups/cups.h cups/ppd.h, ,[AC_MSG_ERROR([cannot find cups-devel support], 3)]) + if test "$libusb01_build" = "yes"; then + AC_CHECK_LIB([usb], [usb_init], [LIBS="$LIBS"], [AC_MSG_ERROR([cannot find libusb support], 2)]) + AC_CHECK_HEADERS(usb.h, ,[AC_MSG_ERROR([cannot find libusb-devel support], 11)]) +diff --git a/prnt/hpcups/HPCupsFilter.h b/prnt/hpcups/HPCupsFilter.h +index ff5548e..c517989 100644 +--- a/prnt/hpcups/HPCupsFilter.h ++++ b/prnt/hpcups/HPCupsFilter.h +@@ -38,6 +38,8 @@ + + #include "dbuscomm.h" + ++#include ++ + #define DBITMAPFILEHEADER 14 + #define DBITMAPINFOHEADER 40 + +diff --git a/prnt/hpijs/hpcupsfax.cpp b/prnt/hpijs/hpcupsfax.cpp +index 8514775..994e50f 100644 +--- a/prnt/hpijs/hpcupsfax.cpp ++++ b/prnt/hpijs/hpcupsfax.cpp +@@ -43,6 +43,7 @@ + #include + #include + #include ++#include + #include + #include + #ifdef FALSE diff --git a/talimatname/genel/h/hplip/fix_tabs.patch b/talimatname/genel/h/hplip/fix_tabs.patch new file mode 100644 index 000000000..1552933df --- /dev/null +++ b/talimatname/genel/h/hplip/fix_tabs.patch @@ -0,0 +1,17 @@ +--- prnt/filters/hpps 2016-08-26 12:04:29.000000000 +0200 ++++ prnt/filters/hpps.new 2016-08-31 21:19:57.868640372 +0200 +@@ -191,11 +191,11 @@ + msg("Setting Pin to default") + else: + szKeyInitials = ['HPFIDigit', 'HPSEDigit', 'HPTHDigit', 'HPFTDigit'] +- for x in szKeyInitials: ++ for x in szKeyInitials: + try: +- secpin += opts[x] ++ secpin += opts[x] + except KeyError: +- secpin += '0' ++ secpin += '0' + + os.write(output_fd, to_bytes_utf8('@PJL SET HOLDKEY="%s"\x0a' % secpin)) + diff --git a/talimatname/genel/h/hplip/hplip.kur-kos b/talimatname/genel/h/hplip/hplip.kur-kos new file mode 100644 index 000000000..eaf822ba0 --- /dev/null +++ b/talimatname/genel/h/hplip/hplip.kur-kos @@ -0,0 +1,3 @@ +# Pour que les scanners en reseau soient reconnus +# +echo "hpaio" >> /etc/sane.d/dll.conf diff --git a/talimatname/genel/h/hplip/talimat b/talimatname/genel/h/hplip/talimat new file mode 100644 index 000000000..3ebecd063 --- /dev/null +++ b/talimatname/genel/h/hplip/talimat @@ -0,0 +1,62 @@ +# Tanım: HP DeskJet, OfficeJet, Photosmart, Business Inkjet ve bazı LaserJet serileri için sürücüler +# URL: http://hplipopensource.com/hplip-web/index.html +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: v4l-utils libgphoto2 python3-sip python3-qt5 avahi python3 wget ghostscript foomatic-db foomatic-db-engine usbutils sane xsane cups cups-filters rpcbind libusb libusb-compat net-snmp dbus-python python3-gobject python-notify python3-pillow python3-reportlab + +isim=hplip +surum=3.16.10 +devir=1 +kaynak=(http://downloads.sourceforge.net/$isim/$isim-$surum.tar.gz + 0022-Add-include-cups-ppd.h-in-various-places-as-CUPS-2.2.patch + fix_tabs.patch) + + +derle() { + cd $isim-$surum + patch -Np0 -i $SRC/fix_tabs.patch + patch -Np1 -i $SRC/0022-Add-include-cups-ppd.h-in-various-places-as-CUPS-2.2.patch + + # Use system foomatic-rip for hpijs driver instead of foomatic-rip-hplip + # The hpcups driver does not use foomatic-rip + local i + for i in ppd/hpijs/*.ppd.gz ; do + rm -f ${i}.temp + gunzip -c ${i} | sed 's/foomatic-rip-hplip/foomatic-rip/g' | \ + gzip > ${i}.temp || return 1 + mv ${i}.temp ${i} + done + + export AUTOMAKE='automake --foreign' + autoreconf --force --install + + ./configure --prefix=/usr \ + --enable-qt5 \ + --disable-qt4 \ + --disable-foomatic-rip-hplip-install \ + --enable-foomatic-ppd-install \ + --enable-hpcups-install \ + --enable-new-hpcups \ + --enable-cups-ppd-install \ + --enable-cups-drv-install \ + --enable-hpijs-install \ + --enable-foomatic-drv-install \ + --enable-pp-build \ + --enable-udev-acl-rules \ + --enable-dbus-build \ + --enable-scan-build \ + --enable-fax-build \ + --enable-network-build + make + make -j1 rulesdir=/usr/lib/udev/rules.d DESTDIR=$PKG install + + # hplip ne connait que lfs 6 ... + mkdir -pv $PKG/etc + echo "lfs 6" > $PKG/etc/issue + + # remove config provided by sane and autostart of hp-daemon + rm -rf $PKG/etc/{sane.d,xdg} + + # remove HAL .fdi file because HAL is no longer used + rm -vrf $PKG/usr/share/hal + +} diff --git a/talimatname/genel/h/htop/talimat b/talimatname/genel/h/htop/talimat new file mode 100644 index 000000000..def3e7fa2 --- /dev/null +++ b/talimatname/genel/h/htop/talimat @@ -0,0 +1,16 @@ +# Tanım: interaktif bir süreç görüntüleyici/düzenleyici +# URL: http://htop.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: + +isim=htop +surum=2.0.2 +devir=1 +kaynak=(http://hisham.hm/htop/releases/2.0.2/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/h/http-parser/talimat b/talimatname/genel/h/http-parser/talimat new file mode 100644 index 000000000..7f7cacc17 --- /dev/null +++ b/talimatname/genel/h/http-parser/talimat @@ -0,0 +1,21 @@ +# Tanım: HTTP İstek/Yanıt için ayrıştırıcı +# URL: https://github.com/nodejs/http-parser +# Paketçi: Cihan_Alkan +# Gerekler: +# Grup: geliştirme + +isim=http-parser +surum=2.7.1 +devir=1 + +kaynak=(https://github.com/nodejs/http-parser/archive/v2.7.1.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + sed -i 's|-Werror||' ./Makefile + make library + make PREFIX="$PKG/usr" install + install -Dm644 LICENSE-MIT \ + "${PKG}/usr/share/licenses/${isim}/LICENSE-MIT" + ln -sf libhttp_parser.so.$surum "${PKG}/usr/lib/libhttp_parser.so" +} diff --git a/talimatname/genel/h/httpup/talimat b/talimatname/genel/h/httpup/talimat new file mode 100644 index 000000000..08390fa29 --- /dev/null +++ b/talimatname/genel/h/httpup/talimat @@ -0,0 +1,15 @@ +# Tanım: Http üzerinden tek yönlü senkronizasyon +# URL: http://jw.tks6.net/files/crux/httpup_manual.html +# Paketçi: milisarge +# Gerekler: + +isim=httpup +surum=0.4.0l +devir=1 +kaynak=(http://crux.nu/files/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + make + make DESTDIR=$PKG prefix=/usr mandir=/usr/share/man install +} diff --git a/talimatname/genel/h/hunspell/talimat b/talimatname/genel/h/hunspell/talimat new file mode 100644 index 000000000..16207c789 --- /dev/null +++ b/talimatname/genel/h/hunspell/talimat @@ -0,0 +1,20 @@ +# Tanım: Yazım denetimi ve morfolojik analizler için kütüphane ve uygulama +# URL: http://hunspell.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: + +isim=hunspell +surum=1.3.3 +devir=1 +kaynak=(http://downloads.sourceforge.net/$isim/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --disable-static \ + --with-ui \ + --with-readline \ + --with-experimental + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/h/hydra/talimat b/talimatname/genel/h/hydra/talimat new file mode 100644 index 000000000..8a2d7ab82 --- /dev/null +++ b/talimatname/genel/h/hydra/talimat @@ -0,0 +1,17 @@ +# Tanım: Birçok farklı hizmeti destekleyen çok hızlı ağ oturum açma test (fuzzer) uygulaması. +# URL: https://www.thc.org/thc-hydra/ +# Paketçi: yakar (aydin@komutan.org) +# Gerekler: postgresql subversion libssh mariadb libidn freebird-client afpfs-ng zlib openssl ncurses pcre + +isim=hydra +surum=8.5 +devir=1 +kaynak=(https://www.thc.org/releases/${isim}-${surum}.tar.gz) + +derle() { + cd ${isim}-${surum} + ./configure --fhs + make + make DESTDIR="${PKG}" install + install -Dm 644 README -t "${PKG}/usr/share/doc/${isim}" +} diff --git a/talimatname/genel/h/hyphen/talimat b/talimatname/genel/h/hyphen/talimat new file mode 100644 index 000000000..735c594b0 --- /dev/null +++ b/talimatname/genel/h/hyphen/talimat @@ -0,0 +1,17 @@ +# Tanım: Dönüştürülmüş TeX tireleme kalıplarını kullanmak için tire, tireleme kitaplığı +# URL: http://hunspell.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: + +isim=hyphen +surum=2.8.8 +devir=1 +kaynak=( http://downloads.sourceforge.net/hunspell/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --disable-static + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/i/i2pd/i2pd.conf b/talimatname/genel/i/i2pd/i2pd.conf new file mode 100644 index 000000000..74ce0f1fd --- /dev/null +++ b/talimatname/genel/i/i2pd/i2pd.conf @@ -0,0 +1,168 @@ +## milis ayar dosyası +## See https://i2pd.readthedocs.org/en/latest/configuration.html +## for more options you can use in this file. + +## Lines that begin with "## " try to explain what's going on. Lines +## that begin with just "#" are disabled commands: you can enable them +## by removing the "#" symbol. + +## Tunnels config file +## Default: ~/.i2pd/tunnels.conf or /var/lib/i2pd/tunnels.conf +#tunconf = /etc/i2pd/tunnels.conf + +## Where to write pidfile (don't write by default) +# pidfile = /var/run/i2pd.pid + +## Logging configuration section +## By default logs go to stdout with level 'info' and higher +## +## Logs destination (valid values: stdout, file, syslog) +## * stdout - print log entries to stdout +## * file - log entries to a file +## * syslog - use syslog, see man 3 syslog +# log = file +## Path to logfile (default - autodetect) +logfile = /var/log/i2pd.log +## Log messages above this level (debug, *info, warn, error) +# loglevel = info + +## Path to storage of i2pd data (RI, keys, peer profiles, ...) +## Default: ~/.i2pd or /var/lib/i2pd +#datadir = /var/lib/i2pd + +## Daemon mode. Router will go to background after start +# daemon = true +## Run as a service. Router will use system folders like ‘/var/lib/i2pd’ +# service = true + +## Specify a family, router belongs to (default - none) +# family = + +## External IP address to listen for connections +## By default i2pd sets IP automatically +# host = 1.2.3.4 + +## Port to listen for connections +## By default i2pd picks random port. You MUST pick a random number too, +## don't just uncomment this +# port = 4567 + +## Enable communication through ipv4 +ipv4 = true +## Enable communication through ipv6 +ipv6 = false + +## Network interface to bind to +# ifname = + +## Enable NTCP transport (default = true) +# ntcp = true +## Enable SSU transport (default = true) +# ssu = true + +## Should we assume we are behind NAT? (false only in MeshNet) +# nat = true + +## Bandwidth configuration +## L limit bandwidth to 32Kbs/sec, O - to 256Kbs/sec, P - to 2048Kbs/sec, +## X - unlimited +## Default is X for floodfill, L for regular node +# bandwidth = L + +## Router will not accept transit tunnels at startup +# notransit = true + +## Router will be floodfill +# floodfill = true + +[limits] +## Maximum active transit sessions (default:2500) +# transittunnels = 2500 + +[precomputation] +## Enable or disable elgamal precomputation table +## By default, enabled on i386 hosts +# elgamal = true + +[upnp] +## Enable or disable UPnP: automatic port forwarding (enabled by default in WINDOWS, ANDROID) +# enabled = false + +## Name i2pd appears in UPnP forwardings list (default = I2Pd) +# name = I2Pd + +[reseed] +## Enable or disable reseed data verification. +verify = true +## URLs to request reseed data from, separated by comma +## Default: "mainline" I2P Network reseeds +# urls = https://reseed.i2p-projekt.de/,https://i2p.mooo.com/netDb/,https://netdb.i2p2.no/ +## Path to local reseed data file (.su3) for manual reseeding +# file = /path/to/i2pseeds.su3 +## or HTTPS URL to reseed from +# file = https://legit-website.com/i2pseeds.su3 + +[addressbook] +## AddressBook subscription URL for initial setup +## Default: inr.i2p at "mainline" I2P Network +defaulturl = http://joajgazyztfssty4w2on5oaqksz6tqoxbduy553y34mf4byv6gpq.b32.i2p/export/alive-hosts.txt +## Optional subscriptions URLs, separated by comma +subscriptions = http://inr.i2p/export/alive-hosts.txt,http://stats.i2p/cgi-bin/newhosts.txt,http://rus.i2p/hosts.txt + +[http] +## Uncomment and set to 'false' to disable Web Console +# enabled = true +## Address and port service will listen on +address = 127.0.0.1 +port = 7070 + +[httpproxy] +## Uncomment and set to 'false' to disable HTTP Proxy +# enabled = true +## Address and port service will listen on +address = 127.0.0.1 +port = 4444 +## Optional keys file for proxy local destination +# keys = http-proxy-keys.dat + +[socksproxy] +## Uncomment and set to 'false' to disable SOCKS Proxy +# enabled = true +## Address and port service will listen on +address = 127.0.0.1 +port = 4447 +## Optional keys file for proxy local destination +# keys = socks-proxy-keys.dat + +## Socks outproxy. Example below is set to use Tor for all connections except i2p +## Address and port of outproxy +# outproxy = 127.0.0.1 +# outproxyport = 9050 + +[sam] +## Uncomment and set to 'true' to enable SAM Bridge +# enabled = false +## Address and port service will listen on +# address = 127.0.0.1 +# port = 7656 + +[bob] +## Uncomment and set to 'true' to enable BOB command channel +# enabled = false +## Address and port service will listen on +# address = 127.0.0.1 +# port = 2827 + +[i2cp] +## Uncomment and set to 'true' to enable I2CP protocol +# enabled = false +## Address and port service will listen on +# address = 127.0.0.1 +# port = 7654 + +[i2pcontrol] +## Uncomment and set to 'true' to enable I2PControl protocol +# enabled = false +## Address and port service will listen on +# address = 127.0.0.1 +# port = 7650 diff --git a/talimatname/genel/i/i2pd/i2pd.kur-kos b/talimatname/genel/i/i2pd/i2pd.kur-kos new file mode 100644 index 000000000..426f6fe20 --- /dev/null +++ b/talimatname/genel/i/i2pd/i2pd.kur-kos @@ -0,0 +1,5 @@ +rm -rf ~/.i2pd +mkdir -p ~/.i2pd +cp -r /usr/share/i2pd/certificates ~/.i2pd/certificates +cp /etc/i2pd/i2pd.conf ~/.i2pd/ +cp /etc/i2pd/tunnels.conf ~/.i2pd/ diff --git a/talimatname/genel/i/i2pd/talimat b/talimatname/genel/i/i2pd/talimat new file mode 100644 index 000000000..9763ce73a --- /dev/null +++ b/talimatname/genel/i/i2pd/talimat @@ -0,0 +1,60 @@ +# Tanım: I2P sistemi c++ +# URL: https://github.com/PurpleI2P/i2pd +# Paketçi: milisarge +# Gerekler: cmake boost miniupnpc websocketpp + +isim=i2pd +surum=2.11.0 +devir=1 +kaynak=(https://github.com/PurpleI2P/${isim}/archive/${surum}.tar.gz + i2pd.conf + tunnels.conf) + +derle() { + cd $SRC/$isim-$surum + cd build + cmake . -Wno-dev \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DWITH_UPNP=1 -DWITH_PCH=1 \ + -DCMAKE_BUILD_TYPE=Release + make + _conf_dest=etc/${isim} + _home_dest=var/lib/${isim} + _share_dest=usr/share + + cd $SRC/$isim-$surum + + cd build + make DESTDIR=$PKG install + install -Dm0644 $SRC/i2pd.conf $PKG/${_conf_dest}/i2pd.conf + install -Dm0644 $SRC/tunnels.conf $PKG/${_conf_dest}/tunnels.conf + install -Dm0644 $SRC/$isim-$surum/docs/subscriptions.txt $PKG/${_conf_dest}/subscriptions.txt + install -d -m0750 $PKG/${_home_dest} + ln -s /${_conf_dest}/i2pd.conf $PKG/${_home_dest}/i2pd.conf + ln -s /${_conf_dest}/tunnels.conf $PKG/${_home_dest}/tunnels.conf + ln -s /${_conf_dest}/subscriptions.txt $PKG/${_home_dest}/subscriptions.txt + + cd $SRC/$isim-$surum/contrib + _dest="$PKG/${_share_dest}/${isim}" + find ./certificates -type d -exec install -d {} ${_dest}/{} \; + find ./certificates -type f -exec install -Dm644 {} ${_dest}/{} \; + ln -s /${_share_dest}/${isim}/certificates $PKG/${_home_dest}/certificates + + # license + install -Dm644 $SRC/$isim-$surum/LICENSE "$PKG/${_share_dest}/licenses/${isim}/LICENSE" + + # docs + _dest="$PKG/${_share_dest}/doc/${isim}" + install -Dm644 $SRC/$isim-$surum/README.md "${_dest}/README.md" + install -Dm644 $SRC/$isim-$surum/docs/configuration.md "${_dest}/configuration.md" + install -Dm644 $SRC/$isim-$surum/docs/family.md "${_dest}/family.md" + install -Dm644 $SRC/$isim-$surum/docs/config_opts_after_2.3.0.md "${_dest}/config_opts_after_2.3.0.md" + + # remove src folder + rm -r "$PKG/usr/src" + + #man + install -Dm644 $SRC/$isim-$surum/debian/i2pd.1 "$PKG/${_share_dest}/man/man1/i2pd.1" + + chmod -R o= $PKG/${_home_dest} +} diff --git a/talimatname/genel/i/i2pd/tunnels.conf b/talimatname/genel/i/i2pd/tunnels.conf new file mode 100644 index 000000000..c9df56f42 --- /dev/null +++ b/talimatname/genel/i/i2pd/tunnels.conf @@ -0,0 +1,49 @@ +[IRC] +type = client +address = 127.0.0.1 +port = 6668 +destination = irc.postman.i2p +destinationport = 6667 +keys = irc-keys.dat + +#[IRCBAGLANICI] +#type = client +#address = 127.0.0.1 +#port = 6670 +#destination = walker.i2p +#destinationport = 6670 +#keys = irc-keys.dat + +#[SMTP] +#type = client +#address = 127.0.0.1 +#port = 7659 +#destination = smtp.postman.i2p +#destinationport = 25 +#keys = smtp-keys.dat + +#[POP3] +#type = client +#address = 127.0.0.1 +#port = 7660 +#destination = pop.postman.i2p +#destinationport = 110 +#keys = pop3-keys.dat + +#[MTN] +#type = client +#address = 127.0.0.1 +#port = 8998 +#destination = mtn.i2p-projekt.i2p +#destinationport = 4691 +#keys = mtn-keys.dat + +#yerel siste sunmak icin + +#[YERELSITE] +#type = http +#host = 127.0.0.1 +#port = 80 +#keys = site-keys.dat + +# see more examples in /usr/share/doc/i2pd/configuration.md.gz diff --git a/talimatname/genel/i/i3-status/talimat b/talimatname/genel/i/i3-status/talimat new file mode 100644 index 000000000..3b4c8e3e7 --- /dev/null +++ b/talimatname/genel/i/i3-status/talimat @@ -0,0 +1,19 @@ +# Tanım: I3bar, dzen2 veya xmobar ile kullanılacak durum çubuğu üretir +# URL: https://i3wm.org/i3status/ +# Paketçi: Cihan_Alkan +# Gerekler: wireless-tools confuse yajl pulseaudio libnl asciidoc +# Grup: i3 + + +isim=i3-status +surum=2.11 +devir=1 +kaynak=(https://i3wm.org/i3status/i3status-$surum.tar.bz2) + +derle() { + cd i3status-$surum + make + make DESTDIR="$PKG" install + install -Dm644 LICENSE ${PKG}/usr/share/licenses/i3status/LICENSE + make clean +} diff --git a/talimatname/genel/i/i3wm/talimat b/talimatname/genel/i/i3wm/talimat new file mode 100644 index 000000000..6f88be4f1 --- /dev/null +++ b/talimatname/genel/i/i3wm/talimat @@ -0,0 +1,21 @@ +# Tanım: Bir döşeme pencere yöneticisi +# URL: https://i3wm.org/ +# Paketçi: Yaşar Çiv +# Gerekler: yajl xmlto libev startup-notification pango libxkbcommon xcb-util-cursor xcb-util-wm xcb-util-keysyms xorg-libx11 xcb-util-xrm i3-status +# Grup: i3 + + +isim=i3wm +surum=4.14.1 +devir=1 +kaynak=(https://i3wm.org/downloads/i3-$surum.tar.bz2) + +derle() { + cd i3-$surum +autoreconf -fi +mkdir build +cd build +../configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/i/ibus/talimat b/talimatname/genel/i/ibus/talimat new file mode 100644 index 000000000..35dc6c564 --- /dev/null +++ b/talimatname/genel/i/ibus/talimat @@ -0,0 +1,25 @@ +# Tanım: IBus is an Intelligent Input Bus +# URL: http://ibus.googlecode.com +# Paketçi: yasarciv67@gmail.com +# Gerekler: dconf iso-codes gobject-introspection gtk2 libnotify vala python python-gobject libxkbcommon dbus-python python-xdg + +isim=ibus +surum=1.5.15 +devir=1 + +kaynak=(https://github.com/ibus/ibus/releases/download/$surum/$isim-$surum.tar.gz) +derle() { +cd $isim-$surum + +sed -i 's@/desktop/ibus@/org/freedesktop/ibus@g' \ + data/ibus.schemas.in \ + data/dconf/org.freedesktop.ibus.gschema.xml.in + +./configure --prefix=/usr \ + --sysconfdir=/etc \ + --enable-gtk-doc \ + --disable-emoji-dict +rm -f tools/main.c +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/i/icecat/fix-wifi-scanner.diff b/talimatname/genel/i/icecat/fix-wifi-scanner.diff new file mode 100644 index 000000000..f8fdd6c42 --- /dev/null +++ b/talimatname/genel/i/icecat/fix-wifi-scanner.diff @@ -0,0 +1,16 @@ + netwerk/wifi/nsWifiScannerDBus.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git c/netwerk/wifi/nsWifiScannerDBus.cpp i/netwerk/wifi/nsWifiScannerDBus.cpp +index 182553e18fa6e104..6fa0a0b023d3e45f 100644 +--- c/netwerk/wifi/nsWifiScannerDBus.cpp ++++ i/netwerk/wifi/nsWifiScannerDBus.cpp +@@ -62,7 +62,7 @@ nsWifiScannerDBus::SendMessage(const char* aInterface, + return NS_ERROR_FAILURE; + } + } else if (!strcmp(aFuncCall, "GetAll")) { +- const char* param = ""; ++ const char* param = "org.freedesktop.NetworkManager.AccessPoint"; + if (!dbus_message_iter_append_basic(&argsIter, DBUS_TYPE_STRING, ¶m)) { + return NS_ERROR_FAILURE; + } diff --git a/talimatname/genel/i/icecat/icecat-safe.desktop b/talimatname/genel/i/icecat/icecat-safe.desktop new file mode 100644 index 000000000..87acc970c --- /dev/null +++ b/talimatname/genel/i/icecat/icecat-safe.desktop @@ -0,0 +1,78 @@ +[Desktop Entry] +Encoding=UTF-8 +Exec=/usr/bin/icecat -safe-mode %u +Icon=icecat +Type=Application +Terminal=false +MultipleArgs=false +Name=GNU IceCat - Safe Mode +GenericName=Web Browser +GenericName[af]=Web Blaaier +GenericName[ar]=متصفح ويب +GenericName[az]=Veb Səyyahı +GenericName[bg]=Браузър +GenericName[bn]=ওয়েব ব্রাউজার +GenericName[br]=Furcher ar Gwiad +GenericName[bs]=WWW Preglednik +GenericName[ca]=Fullejador web +GenericName[cs]=WWW prohlížeč +GenericName[cy]=Porydd Gwe +GenericName[da]=Browser +GenericName[de]=Web-Browser +GenericName[el]=Περιηγητής Ιστού +GenericName[eo]=TTT-legilo +GenericName[es]=Navegador web +GenericName[et]=Veebilehitseja +GenericName[eu]=Web arakatzailea +GenericName[fa]=مرورگر وب +GenericName[fi]=WWW-selain +GenericName[fo]=Alnótsfar +GenericName[fr]=Navigateur web +GenericName[gl]=Navegador Web +GenericName[he]=דפדפן אינטרנט +GenericName[hi]=वेब ब्राउज़र +GenericName[hr]=Web preglednik +GenericName[hu]=Webböngésző +GenericName[is]=Vafri +GenericName[it]=Browser Web +GenericName[ja]=ウェブブラウザ +GenericName[ko]=웹 브라우저 +GenericName[lo]=ເວັບບຣາວເຊີ +GenericName[lt]=Žiniatinklio naršyklė +GenericName[lv]=Web Pārlūks +GenericName[mk]=Прелистувач на Интернет +GenericName[mn]=Веб-Хөтөч +GenericName[nb]=Nettleser +GenericName[nds]=Nettkieker +GenericName[nl]=Webbrowser +GenericName[nn]=Nettlesar +GenericName[nso]=Seinyakisi sa Web +GenericName[pa]=ਵੈਬ ਝਲਕਾਰਾ +GenericName[pl]=Przeglądarka WWW +GenericName[pt]=Navegador Web +GenericName[pt_BR]=Navegador Web +GenericName[ro]=Navigator de web +GenericName[ru]=Веб-браузер +GenericName[se]=Fierpmádatlogan +GenericName[sk]=Webový prehliadač +GenericName[sl]=Spletni brskalnik +GenericName[sr]=Веб претраживач +GenericName[sr@Latn]=Veb pretraživač +GenericName[ss]=Ibrawuza yeWeb +GenericName[sv]=Webbläsare +GenericName[ta]=வலை உலாவி +GenericName[tg]=Тафсиргари вэб +GenericName[th]=เว็บบราวเซอร์ +GenericName[tr]=Web Tarayıcı +GenericName[uk]=Навігатор Тенет +GenericName[uz]=Веб-браузер +GenericName[ven]=Buronza ya Webu +GenericName[vi]=Trình duyệt Web +GenericName[wa]=Betchteu waibe +GenericName[xh]=Umkhangeli zincwadi we Web +GenericName[zh_CN]=网页浏览器 +GenericName[zh_TW]=網頁瀏覽器 +GenericName[zu]=Umcingi we-Web +MimeType=text/html +StartupNotify=false +Categories=Application;Network; diff --git a/talimatname/genel/i/icecat/icecat.desktop b/talimatname/genel/i/icecat/icecat.desktop new file mode 100644 index 000000000..8a7cad93d --- /dev/null +++ b/talimatname/genel/i/icecat/icecat.desktop @@ -0,0 +1,78 @@ +[Desktop Entry] +Encoding=UTF-8 +Exec=/usr/bin/icecat %u +Icon=icecat +Type=Application +Terminal=false +MultipleArgs=false +Name=GNU IceCat +GenericName=Web Browser +GenericName[af]=Web Blaaier +GenericName[ar]=متصفح ويب +GenericName[az]=Veb Səyyahı +GenericName[bg]=Браузър +GenericName[bn]=ওয়েব ব্রাউজার +GenericName[br]=Furcher ar Gwiad +GenericName[bs]=WWW Preglednik +GenericName[ca]=Fullejador web +GenericName[cs]=WWW prohlížeč +GenericName[cy]=Porydd Gwe +GenericName[da]=Browser +GenericName[de]=Web-Browser +GenericName[el]=Περιηγητής Ιστού +GenericName[eo]=TTT-legilo +GenericName[es]=Navegador web +GenericName[et]=Veebilehitseja +GenericName[eu]=Web arakatzailea +GenericName[fa]=مرورگر وب +GenericName[fi]=WWW-selain +GenericName[fo]=Alnótsfar +GenericName[fr]=Navigateur web +GenericName[gl]=Navegador Web +GenericName[he]=דפדפן אינטרנט +GenericName[hi]=वेब ब्राउज़र +GenericName[hr]=Web preglednik +GenericName[hu]=Webböngésző +GenericName[is]=Vafri +GenericName[it]=Browser Web +GenericName[ja]=ウェブブラウザ +GenericName[ko]=웹 브라우저 +GenericName[lo]=ເວັບບຣາວເຊີ +GenericName[lt]=Žiniatinklio naršyklė +GenericName[lv]=Web Pārlūks +GenericName[mk]=Прелистувач на Интернет +GenericName[mn]=Веб-Хөтөч +GenericName[nb]=Nettleser +GenericName[nds]=Nettkieker +GenericName[nl]=Webbrowser +GenericName[nn]=Nettlesar +GenericName[nso]=Seinyakisi sa Web +GenericName[pa]=ਵੈਬ ਝਲਕਾਰਾ +GenericName[pl]=Przeglądarka WWW +GenericName[pt]=Navegador Web +GenericName[pt_BR]=Navegador Web +GenericName[ro]=Navigator de web +GenericName[ru]=Веб-браузер +GenericName[se]=Fierpmádatlogan +GenericName[sk]=Webový prehliadač +GenericName[sl]=Spletni brskalnik +GenericName[sr]=Веб претраживач +GenericName[sr@Latn]=Veb pretraživač +GenericName[ss]=Ibrawuza yeWeb +GenericName[sv]=Webbläsare +GenericName[ta]=வலை உலாவி +GenericName[tg]=Тафсиргари вэб +GenericName[th]=เว็บบราวเซอร์ +GenericName[tr]=Web Tarayıcı +GenericName[uk]=Навігатор Тенет +GenericName[uz]=Веб-браузер +GenericName[ven]=Buronza ya Webu +GenericName[vi]=Trình duyệt Web +GenericName[wa]=Betchteu waibe +GenericName[xh]=Umkhangeli zincwadi we Web +GenericName[zh_CN]=网页浏览器 +GenericName[zh_TW]=網頁瀏覽器 +GenericName[zu]=Umcingi we-Web +MimeType=text/html +StartupNotify=false +Categories=Application;Network; diff --git a/talimatname/genel/i/icecat/mozconfig b/talimatname/genel/i/icecat/mozconfig new file mode 100644 index 000000000..b7dc4528c --- /dev/null +++ b/talimatname/genel/i/icecat/mozconfig @@ -0,0 +1,37 @@ +. $topsrcdir/browser/config/mozconfig + +ac_add_options --prefix=/usr +ac_add_options --libdir=/usr/lib +ac_add_options --enable-gold +ac_add_options --enable-pie +ac_add_options --enable-optimize="-O2" +ac_add_options --enable-official-branding +ac_add_options --with-distribution-id=org.gnu + +# System libraries +ac_add_options --with-system-nspr +ac_add_options --with-system-nss +ac_add_options --with-system-jpeg +ac_add_options --with-system-zlib +ac_add_options --with-system-bz2 +ac_add_options --with-system-libvpx +ac_add_options --enable-system-hunspell +ac_add_options --enable-system-sqlite +ac_add_options --enable-system-ffi +ac_add_options --enable-system-pixman + +# Features +ac_add_options --enable-startup-notification +ac_add_options --enable-alsa +ac_add_options --disable-updater +ac_add_options --disable-crashreporter +ac_add_options --disable-debug-symbols +ac_add_options --disable-tests +ac_add_options --disable-eme + +ac_add_options --with-app-baseisim=icecat +ac_add_options --with-app-isim=icecat + +STRIP_FLAGS="--strip-debug" + +# vim:set ft=sh: diff --git a/talimatname/genel/i/icecat/mozilla-1228540-1.patch b/talimatname/genel/i/icecat/mozilla-1228540-1.patch new file mode 100644 index 000000000..be6ffc316 --- /dev/null +++ b/talimatname/genel/i/icecat/mozilla-1228540-1.patch @@ -0,0 +1,84 @@ +# HG changeset patch +# User Jonathan Kew +# Date 1452675061 0 +# Wed Jan 13 08:51:01 2016 +0000 +# Node ID cf699e95e98829b465b64a7e0281d95ec851ce8c +# Parent 3c9f357598e86c2f593e9895d5725bf3498f8f5a +Bug 1228540 - pt 2 - Remove our HBGetGlyphHOrigin callback, as the default behavior is sufficient. + +diff --git a/gfx/thebes/gfxHarfBuzzShaper.cpp b/gfx/thebes/gfxHarfBuzzShaper.cpp +--- a/gfx/thebes/gfxHarfBuzzShaper.cpp ++++ b/gfx/thebes/gfxHarfBuzzShaper.cpp +@@ -349,27 +349,16 @@ gfxHarfBuzzShaper::HBGetGlyphVAdvance(hb + static_cast(font_data); + // Currently, we don't offer gfxFont subclasses a method to override this + // and provide hinted platform-specific vertical advances (analogous to the + // GetGlyphWidth method for horizontal advances). If that proves necessary, + // we'll add a new gfxFont method and call it from here. + return fcd->mShaper->GetGlyphVAdvance(glyph); + } + +-/* static */ +-hb_bool_t +-gfxHarfBuzzShaper::HBGetGlyphHOrigin(hb_font_t *font, void *font_data, +- hb_codepoint_t glyph, +- hb_position_t *x, hb_position_t *y, +- void *user_data) +-{ +- // We work in horizontal coordinates, so no origin adjustment needed here. +- return true; +-} +- + struct VORG { + AutoSwap_PRUint16 majorVersion; + AutoSwap_PRUint16 minorVersion; + AutoSwap_PRInt16 defaultVertOriginY; + AutoSwap_PRUint16 numVertOriginYMetrics; + }; + + struct VORGrec { +@@ -1262,19 +1251,16 @@ gfxHarfBuzzShaper::Initialize() + hb_font_funcs_set_glyph_func(sHBFontFuncs, HBGetGlyph, + nullptr, nullptr); + hb_font_funcs_set_glyph_h_advance_func(sHBFontFuncs, + HBGetGlyphHAdvance, + nullptr, nullptr); + hb_font_funcs_set_glyph_v_advance_func(sHBFontFuncs, + HBGetGlyphVAdvance, + nullptr, nullptr); +- hb_font_funcs_set_glyph_h_origin_func(sHBFontFuncs, +- HBGetGlyphHOrigin, +- nullptr, nullptr); + hb_font_funcs_set_glyph_v_origin_func(sHBFontFuncs, + HBGetGlyphVOrigin, + nullptr, nullptr); + hb_font_funcs_set_glyph_extents_func(sHBFontFuncs, + HBGetGlyphExtents, + nullptr, nullptr); + hb_font_funcs_set_glyph_contour_point_func(sHBFontFuncs, + HBGetContourPoint, +diff --git a/gfx/thebes/gfxHarfBuzzShaper.h b/gfx/thebes/gfxHarfBuzzShaper.h +--- a/gfx/thebes/gfxHarfBuzzShaper.h ++++ b/gfx/thebes/gfxHarfBuzzShaper.h +@@ -56,21 +56,16 @@ public: + hb_codepoint_t glyph, void *user_data); + + // get harfbuzz vertical advance in 16.16 fixed point format. + static hb_position_t + HBGetGlyphVAdvance(hb_font_t *font, void *font_data, + hb_codepoint_t glyph, void *user_data); + + static hb_bool_t +- HBGetGlyphHOrigin(hb_font_t *font, void *font_data, +- hb_codepoint_t glyph, +- hb_position_t *x, hb_position_t *y, +- void *user_data); +- static hb_bool_t + HBGetGlyphVOrigin(hb_font_t *font, void *font_data, + hb_codepoint_t glyph, + hb_position_t *x, hb_position_t *y, + void *user_data); + + hb_position_t GetHKerning(uint16_t aFirstGlyph, + uint16_t aSecondGlyph) const; + diff --git a/talimatname/genel/i/icecat/no-crmf.diff b/talimatname/genel/i/icecat/no-crmf.diff new file mode 100644 index 000000000..f30d17cc3 --- /dev/null +++ b/talimatname/genel/i/icecat/no-crmf.diff @@ -0,0 +1,27 @@ +diff --git i/old-configure.in w/old-configure.in +index 0a06e470d2085922..d41c8e9d5dd2dbfb 100644 +--- i/old-configure.in ++++ w/old-configure.in +@@ -2020,9 +2020,7 @@ if test -n "$_USE_SYSTEM_NSS"; then + AM_PATH_NSS(3.31, [MOZ_SYSTEM_NSS=1], [AC_MSG_ERROR([you don't have NSS installed or your version is too old])]) + fi + +-if test -n "$MOZ_SYSTEM_NSS"; then +- NSS_LIBS="$NSS_LIBS -lcrmf" +-else ++if test -z "$MOZ_SYSTEM_NSS"; then + NSS_CFLAGS="-I${DIST}/include/nss" + case "${OS_ARCH}" in + # Only few platforms have been tested with GYP +diff --git a/config/external/nss/crmf/moz.build b/config/external/nss/crmf/moz.build +index 9b8005f..4bfcc81 100644 +--- a/config/external/nss/crmf/moz.build ++++ b/config/external/nss/crmf/moz.build +@@ -8,7 +8,6 @@ Library('crmf') + + if CONFIG['MOZ_NATIVE_NSS']: + OS_LIBS += [l for l in CONFIG['NSS_LIBS'] if l.startswith('-L')] +- OS_LIBS += ['-lcrmf'] + else: + USE_LIBS += [ + # The dependency on nss is not real, but is required to force the diff --git a/talimatname/genel/i/icecat/talimat b/talimatname/genel/i/icecat/talimat new file mode 100644 index 000000000..74604322e --- /dev/null +++ b/talimatname/genel/i/icecat/talimat @@ -0,0 +1,58 @@ +# Tanım: Firefox Web Tarayıcısının GNU çatallaması +# URL: http://www.gnu.org/software/gnuzilla/ +# Paketçi: milisarge +# Gerekler: unzip zip python yasm xorg-mesa xorg-imake gconf autoconf2 pulseaudio dejavu-ttf gstreamer-plugins-base cargo gtk3 gtk2 xorg-libxt startup-notification dbus-glib alsa-lib ffmpeg libvpx icu libevent nss hunspell sqlite freefont-ttf + +isim=icecat +surum=52.1.0 +devir=1 +kaynak=(http://ftpmirror.gnu.org/gnuzilla/52.1.0/icecat-$surum-gnu1.tar.bz2 + mozconfig + icecat.desktop + icecat-safe.desktop + vendor.js + fix-wifi-scanner.diff + no-crmf.diff) + +derle() { + + cd "${SRC}/${isim}-${surum}" + sed -e 's;$(libdir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION);$(libdir)/$(MOZ_APP_NAME);g' -i config/baseconfig.mk + sed -e 's;$(libdir)/$(MOZ_APP_NAME)-devel-$(MOZ_APP_VERSION);$(libdir)/$(MOZ_APP_NAME)-devel;g' -i config/baseconfig.mk + + patch -Np1 -i ../fix-wifi-scanner.diff + patch -Np1 -i ../no-crmf.diff + + cp -v ${SRC}/mozconfig .mozconfig + + mkdir -p "$SRC/path" + + ln -s /usr/bin/python2 "$SRC/path/python" + + cd "${SRC}/${isim}-${surum}" + + ICECATDIR="/usr/lib/${isim}" && export ICECATDIR + + CPPFLAGS+=" -O2" + LDFLAGS+=" -Wl,-z,now" + + export PATH="$SRC/path:$PATH" + +SHELL=/bin/sh make -f client.mk build +SHELL=/bin/sh make -f client.mk DESTDIR="${PKG}" install + + install -m755 -d ${PKG}/usr/share/applications + install -m755 -d ${PKG}/usr/share/pixmaps + + for i in 16 32 48; do + install -Dm644 ${SRC}/${isim}-${surum}/browser/branding/official/default${i}.png \ + "$PKG/usr/share/icons/hicolor/${i}x${i}/apps/icecat.png" + done + + install -Dm644 ${SRC}/${isim}-${surum}/browser/branding/official/default48.png ${PKG}/usr/share/pixmaps/icecat.png + install -Dm644 ${SRC}/icecat.desktop ${PKG}/usr/share/applications/ + install -Dm644 ${SRC}/icecat-safe.desktop ${PKG}/usr/share/applications/ + install -Dm644 "${SRC}"/vendor.js "${PKG}${ICECATDIR}/browser/defaults/preferences/vendor.js" + rm -rv "$PKG"/usr/{include,lib/icecat-devel,share/idl} + +} diff --git a/talimatname/genel/i/icecat/vendor.js b/talimatname/genel/i/icecat/vendor.js new file mode 100644 index 000000000..d8d606bc1 --- /dev/null +++ b/talimatname/genel/i/icecat/vendor.js @@ -0,0 +1,9 @@ +// Use LANG environment variable to choose locale +pref("intl.locale.matchOS", true); + +// Disable default browser checking. +pref("browser.shell.checkDefaultBrowser", false); + +// Don't disable our bundled extensions in the application directory +pref("extensions.autoDisableScopes", 11); +pref("extensions.shownSelectionUI", true); diff --git a/talimatname/genel/i/icedtea-web/talimat b/talimatname/genel/i/icedtea-web/talimat new file mode 100644 index 000000000..76a3d6cc2 --- /dev/null +++ b/talimatname/genel/i/icedtea-web/talimat @@ -0,0 +1,90 @@ +# Tanım: java web uygulamaları için tarayıcı eklentisi +# URL: http://icedtea.classpath.org/wiki/IcedTea-Web +# Paketçi: milisarge +# Gerekler: firefox npapi-sdk junit openjdk rhino xorg-libxtst zip + +isim=icedtea-web +surum=1.6.2 +devir=1 +kaynak=(http://icedtea.wildebeest.org/download/source/$isim-$surum.tar.gz) + +unpack_source() { + local FILE LOCAL_FILENAME COMMAND + + for FILE in ${source[@]}; do + LOCAL_FILENAME=`get_filename $FILE` + case $LOCAL_FILENAME in + *.tar|*.tar.gz|*.tar.Z|*.tgz|*.tar.bz2|*.tbz2|*.tar.xz|*.txz|*.tar.lzma|*.tar.lz|*.zip|*.rpm) + COMMAND="tar -p --no-same-owner -C $SRC -xf $LOCAL_FILENAME" ;; + *) + COMMAND="cp $LOCAL_FILENAME $SRC" ;; + esac + + echo "$COMMAND" + + $COMMAND + + if [ $? != 0 ]; then + if [ "$PKGMK_KEEP_WORK" = "no" ]; then + rm -rf $PKGMK_WORK_DIR + fi + error "Building '$TARGET' failed." + exit $E_UNPACK + fi + done + + export LC_ALL="$SAVED_LC_ALL" +} + +derle() { + + cd "${SRC}"/${isim}-${surum} + LC_ALL=C \ + CFLAGS="$CFLAGS -fno-delete-null-pointer-checks -fno-omit-frame-pointer -fno-lifetime-dse" \ + CXXFLAGS="$CXXFLAGS -fno-delete-null-pointer-checks -fno-omit-frame-pointer -fno-lifetime-dse" \ + JAVA_HOME=/opt/OpenJDK-8u60-bin \ + PATH=$JAVA_HOME/bin:$PATH \ + CONFIG_SHELL=/bin/bash \ + ./configure \ + --prefix=/usr \ + --datarootdir=/usr/share \ + --libdir=/usr/lib/$isim \ + --libexecdir=/usr/lib/$isim \ + --with-jdk-home=/opt/OpenJDK-8u60-bin \ + --with-rhino=/usr/share/java/rhino.jar \ + --with-firefox=/usr/bin/firefox \ + --with-versionsion=MILIS \ + --disable-docs + + LANG=tr_TR.UTF-8 \ + LC_ALL=C \ + CFLAGS="$CFLAGS -fno-delete-null-pointer-checks -fno-omit-frame-pointer -fno-lifetime-dse" \ + CXXFLAGS="$CXXFLAGS -fno-delete-null-pointer-checks -fno-omit-frame-pointer -fno-lifetime-dse" \ + JAVA_HOME=/opt/OpenJDK-8u60-bin \ + PATH=$JAVA_HOME/bin:$PATH \ + CONFIG_SHELL=/bin/bash \ + make + + make DESTDIR=$PKG install-exec-local install-data-local + + cd "${SRC}"/${isim}-${surum} + + rm -rf $PKG/usr/share/man/* + rm -rf $PKG/usr/share/doc + + install -m 755 -d "${PKG}"/usr/share/{applications,pixmaps} + install -m 644 javaws.png "${PKG}"/usr/share/pixmaps + mv javaws.desktop.in javaws.desktop + mv itweb-settings.desktop.in itweb-settings.desktop + install -m 644 {javaws,itweb-settings}.desktop "${PKG}"/usr/share/applications + install -m 755 -d "${PKG}"/usr/bin + install -m 755 -d "${PKG}"/usr/share/${isim}/bin + pushd "${PKG}"/usr/share/${isim}/bin + for file in *; do + ln -sf /usr/share/${isim}/bin/${file} "${PKG}"/usr/bin/ + done + popd + install -d -m 755 $PKG/usr/lib/mozilla/plugins + ln -s ../../$isim/IcedTeaPlugin.so $PKG/usr/lib/mozilla/plugins/ + +} diff --git a/talimatname/genel/i/icewm/icewm.post.install b/talimatname/genel/i/icewm/icewm.post.install new file mode 100644 index 000000000..5a747a384 --- /dev/null +++ b/talimatname/genel/i/icewm/icewm.post.install @@ -0,0 +1,40 @@ +mkdir -v ~/.icewm +cp -v /usr/share/icewm/keys ~/.icewm/keys +cp -v /usr/share/icewm/menu ~/.icewm/menu +cp -v /usr/share/icewm/preferences ~/.icewm/preferences +cp -v /usr/share/icewm/toolbar ~/.icewm/toolbar +cp -v /usr/share/icewm/winoptions ~/.icewm/winoptions + +cat > ~/.icewm/menu << "EOF" && +prog Urxvt xterm urxvt +prog GVolWheel /usr/share/pixmaps/gvolwheel/audio-volume-medium gvolwheel +separator +menufile General folder general +menufile Multimedia folder multimedia +menufile Tool_bar folder toolbar +EOF +cat > ~/.icewm/general << "EOF" && +prog Firefox firefox firefox +prog Epiphany /usr/share/icons/gnome/16x16/apps/web-browser epiphany +prog Midori /usr/share/icons/hicolor/24x24/apps/midori midori +separator +prog Gimp /usr/share/icons/hicolor/16x16/apps/gimp gimp +separator +prog Evince /usr/share/icons/hicolor/16x16/apps/evince evince +prog Epdfview /usr/share/epdfview/pixmaps/icon_epdfview-48 epdfview +EOF +cat > ~/.icewm/multimedia << "EOF" +prog Audacious /usr/share/icons/hicolor/48x48/apps/audacious audacious +separator +prog Parole /usr/share/icons/hicolor/16x16/apps/parole parole +prog Totem /usr/share/icons/hicolor/16x16/apps/totem totem +prog Vlc /usr/share/icons/hicolor/16x16/apps/vlc vlc +prog Xine /usr/share/pixmaps/xine xine +EOF + +cat > ~/.icewm/startup << "EOF" +rox -p Default & +EOF && +chmod +x ~/.icewm/startup + + diff --git a/talimatname/genel/i/icewm/talimat b/talimatname/genel/i/icewm/talimat new file mode 100644 index 000000000..239b9d242 --- /dev/null +++ b/talimatname/genel/i/icewm/talimat @@ -0,0 +1,25 @@ +# Tanım: IceWM, hedefi hız ve hafiflik olan bir pencere yöneticisi +# URL: http://www.icewm.org/ +# Paketçi: milisarge +# Gerekler: xorg gdk-pixbuf + +isim=icewm +surum=1.3.8 +devir=1 +kaynak=(http://downloads.sourceforge.net/icewm/$isim-$surum.tar.gz) + +derle() { + +cd $isim-$surum + +sed -i '/^LIBS/s/\(.*\)/\1 -lfontconfig/' src/Makefile.in && +./configure --prefix=/usr + +make + +make DESTDIR=$PKG install +make DESTDIR=$PKG install-docs +make DESTDIR=$PKG install-man +make DESTDIR=$PKG install-desktop + +} diff --git a/talimatname/genel/i/icon-naming-utils/talimat b/talimatname/genel/i/icon-naming-utils/talimat new file mode 100644 index 000000000..0431467c2 --- /dev/null +++ b/talimatname/genel/i/icon-naming-utils/talimat @@ -0,0 +1,19 @@ +# Tanım: Tango simgelerinin yeni adlarını GNOME ve KDE masaüstleri tarafından kullanılan eski adlarla eşleştirir +# URL: http://tango.freedesktop.org/ +# Paketçi: milisarge +# Gerekler: perl-xml-simple + +isim=icon-naming-utils +surum=0.8.90 +devir=1 +kaynak=(http://tango.freedesktop.org/releases/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib/icon-naming-utils \ + --localstatedir=/var + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/i/icu/talimat b/talimatname/genel/i/icu/talimat new file mode 100644 index 000000000..06ab55dee --- /dev/null +++ b/talimatname/genel/i/icu/talimat @@ -0,0 +1,23 @@ +# Tanım: Unicode Uluslararası Bileşenleri, olgun ve yaygın olarak kullanılan C / C ++ kitaplıkları kümesidir +# URL: http://www.icu-project.org/ +# Paketçi: milisarge +# Gerekler: + +isim=icu +surum=59.1 +devir=1 +kaynak=(http://download.icu-project.org/files/icu4c/$surum/icu4c-${version//./_}-src.tgz) + +derle() { + cd icu/source + + sed -i 's/xlocale/locale/' i18n/digitlst.cpp + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --sbindir=/usr/bin + make + make -k check + make -j1 DESTDIR=$PKG install + install -Dm644 ${SRC}/icu/LICENSE ${PKG}/usr/share/licenses/icu/LICENSE +} diff --git a/talimatname/genel/i/id3lib/talimat b/talimatname/genel/i/id3lib/talimat new file mode 100644 index 000000000..dc8b155d1 --- /dev/null +++ b/talimatname/genel/i/id3lib/talimat @@ -0,0 +1,23 @@ +# Tanım: ID3v1 and ID3v2 taglarını okuma yazma ve düzenleme için kütüphane +# URL: http://id3lib.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: + +isim=id3lib +surum=3.8.3 +devir=1 +kaynak=(http://downloads.sourceforge.net/sourceforge/$isim/$isim-$surum.tar.gz + http://downloads.nutyx.org/files/patchs/$isim/patch_id3lib_3.8.3_UTF16_writing_bug.diff + http://downloads.nutyx.org/files/patchs/$isim/id3lib-3.8.3-CVE-2007-4460.patch + http://downloads.nutyx.org/files/patchs/$isim/id3lib-3.8.3-gcc-4.3.patch) + +derle() { +cd $isim-$surum +patch -p1 -i ../patch_id3lib_3.8.3_UTF16_writing_bug.diff +patch -p0 -i ../id3lib-3.8.3-CVE-2007-4460.patch +patch -p1 -i ../id3lib-3.8.3-gcc-4.3.patch +./configure --prefix=/usr +sed -i -e 's/^LIBS =/LIBS = -lz -lstdc++/' src/Makefile +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/i/ido/talimat b/talimatname/genel/i/ido/talimat new file mode 100644 index 000000000..5ab232c86 --- /dev/null +++ b/talimatname/genel/i/ido/talimat @@ -0,0 +1,24 @@ +# Tanım: Göstergeler için kullanılan pencere öğeleri ve diğer nesneler +# URL: https://launchpad.net/ido +# Paketçi: yasarciv67@gmail.com +# Gerekler: gtk3 + +isim=ido +surum=12.10.2 +devir=1 +kaynak=(https://launchpad.net/$isim/${surum%.*}/$surum/+download/$isim-$surum.tar.gz +) + +derle() { + cd $isim-${surum} + + export CFLAGS="$CFLAGS -Wno-deprecated-declarations" + + ./configure \ + --prefix='/usr' \ + --localstatedir='/var' \ + --sysconfdir='/etc' + make -j1 + make DESTDIR="${PKG}" install + +} diff --git a/talimatname/genel/i/iftop/talimat b/talimatname/genel/i/iftop/talimat new file mode 100644 index 000000000..872eb2959 --- /dev/null +++ b/talimatname/genel/i/iftop/talimat @@ -0,0 +1,16 @@ +# Tanım: Bir ağ arayüzünde gerçek zamanlı bant genişliği kullanımı bilgisi +# URL: http://www.ex-parrot.com/~pdw/iftop/ +# Paketçi: milisarge +# Gerekler: libpcap, ncurses + +isim=iftop +surum=1.0pre4 +devir=1 +kaynak=(http://www.ex-parrot.com/~pdw/iftop/download/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --mandir=/usr/man + make iftop + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/i/ijs/talimat b/talimatname/genel/i/ijs/talimat new file mode 100644 index 000000000..08a9ff40e --- /dev/null +++ b/talimatname/genel/i/ijs/talimat @@ -0,0 +1,18 @@ +# Tanım: Raster sayfa görüntülerinin iletimi için bir protokol uygulayan bir kütüphane. +# URL: http://www.linuxfoundation.org/collaborate/workgroups/openprinting +# Paketçi: milisarge +# Gerekler: + +isim=ijs +surum=0.35 +devir=1 +kaynak=(http://www.openprinting.org/download/$isim/download/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--enable-shared --disable-static \ +--infodir=/usr/share/info --mandir=/usr/share/man +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/i/ilmbase/talimat b/talimatname/genel/i/ilmbase/talimat new file mode 100644 index 000000000..773de781d --- /dev/null +++ b/talimatname/genel/i/ilmbase/talimat @@ -0,0 +1,20 @@ +# Tanım: OpenEXR için ILM'den temel kütüphaneler +# URL: http://openexr.com/ +# Paketçi: milisarge +# Gerekler: + +isim=ilmbase +surum=2.2.0 +devir=1 +kaynak=( http://download.savannah.nongnu.org/releases/openexr/$isim-$surum.tar.gz) + +derle() { +# build package +cd $isim-$surum +./configure --prefix=/usr \ +--disable-build-docs \ +--mandir=/usr/share/man \ +--infodir=/usr/share/info +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/i/imagemagick/talimat b/talimatname/genel/i/imagemagick/talimat new file mode 100644 index 000000000..31c7c4909 --- /dev/null +++ b/talimatname/genel/i/imagemagick/talimat @@ -0,0 +1,42 @@ +# Tanım: İmaj dosyaları için görüntüleme/düzenleme programı +# URL: URL: http://www.imagemagick.org/ +# Paketçi: milisarge +# Gerekler: freetype ghostscript lcms libgsf giflib libxml2 openexr libwmf libpng librsvg libwebp djvulibre + +isim=imagemagick +surum=6.9.3-6 +devir=1 +_surum=6.9.3-6 +kaynak=(https://launchpad.net/imagemagick/main/6.9.3-6/+download/ImageMagick-$surum.tar.gz) + +derle() { + cd ImageMagick-* + + [ "`uname -m`" == "i686" ] && EXTRAOPTS="--with-gcc-arch=i686" + [ "`uname -m`" == "x86_64" ] && EXTRAOPTS="--with-gcc-arch=x86-64" + + sed '/AC_PATH_XTRA/d' -i configure.ac + + ./configure --prefix=/usr \ + --enable-static=no \ + --enable-shared \ + --with-webp \ + --with-gslib \ + --with-perl \ + --with-perl-options="INSTALLDIRS=vendor" \ + --with-x \ + --with-frozenpaths=no \ + --with-modules \ + --disable-openmp \ + --enable-hdri \ + --with-wmf \ + --with-gs-font-dir=/usr/share/fonts/Type1 \ + --with-lqr \ + --with-rsvg \ + --enable-opencl \ + --with-openjp2 \ + $EXTRAOPTS + make + make DESTDIR=$PKG install + find $PKG -name perllocal.pod -exec rm {} \; +} diff --git a/talimatname/genel/i/imlib2/talimat b/talimatname/genel/i/imlib2/talimat new file mode 100644 index 000000000..58d50f167 --- /dev/null +++ b/talimatname/genel/i/imlib2/talimat @@ -0,0 +1,21 @@ +# Tanım: Imlib2 hızlı dosya yükleme, kaydetme, işleme ve değiştirme için bir grafik kitaplığıdır +# URL: http://sourceforge.net/projects/enlightenment +# Paketçi: milisarge +# Gerekler: aalib giflib xorg-libxext libtiff freetype xorg-libsm libpng libjpeg-turbo libid3tag +# Grup: kütüphane + +isim=imlib2 +surum=1.4.10 +devir=1 +kaynak=(http://downloads.sourceforge.net/enlightenment/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + sed -i 's/@my_libs@//' imlib2-config.in + EXTRAOPTS="--enable-amd64" + ./configure --prefix=/usr \ + --sysconfdir=/etc/imlib2 \ + --x-libraries=/usr/lib $EXTRAOPTS + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/i/impacket/talimat b/talimatname/genel/i/impacket/talimat new file mode 100644 index 000000000..99987a9a4 --- /dev/null +++ b/talimatname/genel/i/impacket/talimat @@ -0,0 +1,19 @@ +# Tanım: Ağ protokolleriyle çalışmak için sınıfların toplanması +# URL: Ağ protokolleriyle çalışmak için sınıfların toplanması +# Paketçi: Cihan_Alkan +# Gerekler: python-crypto python-pyasn1 python-pcapy python-openssl +# Grup: ağ + +isim=impacket +surum=0.9.15 +devir=1 +kaynak=(https://github.com/CoreSecurity/impacket/releases/download/impacket_0_9_15/impacket-0.9.15.tar.gz) + +derle() { + cd impacket-0.9.15 + find . -type f -exec sed -r 's|(#!/usr/bin/(env )?python)$|\12|' -i '{}' \; + python setup.py install -O1 --root="${PKG}" + install -Dm 644 ChangeLog -t "${PKG}/usr/share/doc/${isim}" + local PYTHONVERSION="$(python -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')" + ln -s "/usr/lib/python${PYTHONVERSION}/site-packages/impacket/examples" "${PKG}/usr/share/doc/${isim}/examples" +} diff --git a/talimatname/genel/i/incidenceeditor/talimat b/talimatname/genel/i/incidenceeditor/talimat new file mode 100644 index 000000000..a2708af83 --- /dev/null +++ b/talimatname/genel/i/incidenceeditor/talimat @@ -0,0 +1,20 @@ +# Tanım: KDE PIM insidensiyon editörü +# URL: https://community.kde.org/KDE_PIM +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules kf5-kdoctools boost eventviews + +isim=incidenceeditor +surum=16.08.2 +devir=1 +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/i/indicator-sound/indicator-sound.kur-kos b/talimatname/genel/i/indicator-sound/indicator-sound.kur-kos new file mode 100644 index 000000000..1d319936d --- /dev/null +++ b/talimatname/genel/i/indicator-sound/indicator-sound.kur-kos @@ -0,0 +1 @@ +glib-compile-schemas /usr/share/glib-2.0/schemas/ diff --git a/talimatname/genel/i/indicator-sound/talimat b/talimatname/genel/i/indicator-sound/talimat new file mode 100644 index 000000000..351e25a3c --- /dev/null +++ b/talimatname/genel/i/indicator-sound/talimat @@ -0,0 +1,29 @@ +# Tanım: Birleştirilmiş ses menü göstergesi. +# URL: https://launchpad.net/indicator-sound +# Paketçi: yasarciv67@gmail.com +# Gerekler: intltool vala ido libdbusmenu-gtk3 libgee06 libindicator libindicator-gtk2 pulseaudio libnotify + +isim=indicator-sound +surum=12.10.1 +devir=1 +kaynak=(https://launchpad.net/indicator-sound/12.10/$surum/+download/$isim-$surum.tar.gz + http://pkgbuild.com/~bgyorgy/sources/indicator-sound-translations-20130310.tar.gz) + +derle() { + cd ${isim}-${surum} +# Install updated language files + rename ${isim}- '' ../po/${isim}-*.po + mv -f -t po ../po/* + printf "%s\n" po/*.po | sed -e 's/po\///g' -e 's/\.po//g' >po/LINGUAS + export CFLAGS="$CFLAGS -Wno-deprecated-declarations" + ./configure --prefix='/usr' --sysconfdir='/etc' --localstatedir='/var' --libexecdir="/usr/lib/${isim}" --disable-{schemas-compile,static} + make + make DESTDIR="${PKG}" install +# Fix icon names to provide the playlist icon + install -dm 755 "${PKG}"/usr/share/libindicator/icons/hicolor/{16x16,scalable}/mimetypes + mv "${PKG}"/usr/share/libindicator/icons/hicolor/16x16/{status/sound-icon.png,mimetypes/playlist.png} + mv "${PKG}"/usr/share/libindicator/icons/hicolor/scalable/{status/sound-icon.svg,mimetypes/playlist.svg} + rm -r "${PKG}"/usr/share/libindicator/icons/hicolor/{16x16,scalable}/status +# vim: ts=2 sw=2 et: + +} diff --git a/talimatname/genel/i/initd-tools/initd-tools-0.1.3-0.1.3.tar.gz.partial b/talimatname/genel/i/initd-tools/initd-tools-0.1.3-0.1.3.tar.gz.partial new file mode 100644 index 000000000..e69de29bb diff --git a/talimatname/genel/i/initd-tools/talimat b/talimatname/genel/i/initd-tools/talimat new file mode 100644 index 000000000..46c773284 --- /dev/null +++ b/talimatname/genel/i/initd-tools/talimat @@ -0,0 +1,23 @@ +# Tanım: Init-tools paketi, LSB tabanlı önyükleme komut dosyalarını yükleyip kaldırmak için kullanılan programları içerir. +# URL: http://people.freedesktop.org/~dbn/initd-tools/releases/initd-tools-0.1.3.tar.gz +# Paketçi: milisarge +# Gerekler: + + +isim=initd-tools +surum=0.1.3 +devir=1 +kaynak=(http://people.freedesktop.org/~dbn/initd-tools/releases/$isim-$surum.tar.gz) + +derle() { + + cd $isim-$surum + + ./configure --prefix=/ --mandir=/usr/share/man + + make + + make DESTDIR=$PKG install + + +} diff --git a/talimatname/genel/i/inkscape/inkscape-0.91-testfiles-1.patch b/talimatname/genel/i/inkscape/inkscape-0.91-testfiles-1.patch new file mode 100644 index 000000000..f3d297c29 --- /dev/null +++ b/talimatname/genel/i/inkscape/inkscape-0.91-testfiles-1.patch @@ -0,0 +1,257 @@ +Submitted By: Ken Moffat +Date: 2015-02-07 +Initial Package Version: 0.91 +Upstream Status: Applied +Origin: Upstream +Tanım: The tarball for 0.91 is missing the svg files used for the +extensions tests. Taken from +https://bazaar.launchpad.net/~inkscape.dev/inkscape/RELEASE_0_91_BRANCH/files/head:/share/extensions +/test/svg/ + +diff -Naur inkscape-0.91/share/extensions/test/svg/default-inkscape-SVG.svg inkscape-0.91-testfiles/share/extensions/test/svg/default-inkscape-SVG.svg +--- inkscape-0.91/share/extensions/test/svg/default-inkscape-SVG.svg 1970-01-01 01:00:00.000000000 +0100 ++++ inkscape-0.91-testfiles/share/extensions/test/svg/default-inkscape-SVG.svg 2015-02-07 13:59:29.083967647 +0000 +@@ -0,0 +1,37 @@ ++ ++ ++ ++ ++ ++ ++ ++ ++ image/svg+xml ++ ++ ++ ++ ++ ++ +diff -Naur inkscape-0.91/share/extensions/test/svg/default-plain-SVG.svg inkscape-0.91-testfiles/share/extensions/test/svg/default-plain-SVG.svg +--- inkscape-0.91/share/extensions/test/svg/default-plain-SVG.svg 1970-01-01 01:00:00.000000000 +0100 ++++ inkscape-0.91-testfiles/share/extensions/test/svg/default-plain-SVG.svg 2015-02-07 13:59:29.087967572 +0000 +@@ -0,0 +1,29 @@ ++ ++ ++ ++ ++ ++ ++ ++ ++ image/svg+xml ++ ++ ++ ++ ++ ++ ++ +diff -Naur inkscape-0.91/share/extensions/test/svg/empty-SVG.svg inkscape-0.91-testfiles/share/extensions/test/svg/empty-SVG.svg +--- inkscape-0.91/share/extensions/test/svg/empty-SVG.svg 1970-01-01 01:00:00.000000000 +0100 ++++ inkscape-0.91-testfiles/share/extensions/test/svg/empty-SVG.svg 2015-02-07 13:59:29.087967572 +0000 +@@ -0,0 +1,13 @@ ++ ++ ++ ++ ++ +diff -Naur inkscape-0.91/share/extensions/test/svg/multilayered-test.svg inkscape-0.91-testfiles/share/extensions/test/svg/multilayered-test.svg +--- inkscape-0.91/share/extensions/test/svg/multilayered-test.svg 1970-01-01 01:00:00.000000000 +0100 ++++ inkscape-0.91-testfiles/share/extensions/test/svg/multilayered-test.svg 2015-02-07 13:59:29.091967496 +0000 +@@ -0,0 +1,152 @@ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ image/svg+xml ++ ++ ++ ++ ++ ++ ++ ++ ++ Bottom layer ++ ++ ++ ++ ++ ++ Middle sublayer ++ ++ ++ ++ Middle layer ++ ++ ++ ++ Top layer ++ ++ ++ diff --git a/talimatname/genel/i/inkscape/talimat b/talimatname/genel/i/inkscape/talimat new file mode 100644 index 000000000..d0fd78417 --- /dev/null +++ b/talimatname/genel/i/inkscape/talimat @@ -0,0 +1,18 @@ +# Tanım: Açık kaynaklı bir SVG editörü +# URL: http://www.inkscape.org +# Paketçi: milisarge +# Gerekler: gc boost gsl gtkmm intltool libxslt popt poppler lcms lcms2 + +isim=inkscape +surum=0.91 +devir=1 +kaynak=(https://launchpad.net/inkscape/0.91.x/0.91/+download/inkscape-0.91.tar.bz2 + inkscape-0.91-testfiles-1.patch) + +derle() { + cd $isim-$surum + patch -Np1 -i ../inkscape-0.91-testfiles-1.patch + CXXFLAGS="-g -O2 -std=c++11" ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/i/innoextract/talimat b/talimatname/genel/i/innoextract/talimat new file mode 100644 index 000000000..c5235a635 --- /dev/null +++ b/talimatname/genel/i/innoextract/talimat @@ -0,0 +1,23 @@ +# Tanım: Inno Setup tarafından oluşturulan yükleyicileri ayıklamak için kullanılan bir araç +# URL: https://constexpr.org/innoextract +# Paketçi: Cihan_Alkan +# Gerekler: boost cmake +# Grup: + +isim=innoextract +surum=1.6 +devir=1 +kaynak=(https://constexpr.org/innoextract/files/$isim-$surum.tar.gz) + +derle() { + + cd "$isim-$surum" + cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release + make + + make DESTDIR="$PKG/" install + + install -Dm644 README.md "$PKG/usr/share/doc/$isim/README.md" + install -m644 CHANGELOG "$PKG/usr/share/doc/$isim/CHANGELOG" + install -Dm644 LICENSE "$PKG/usr/share/licenses/$isim/LICENSE" +} diff --git a/talimatname/genel/i/inspircd/inspircd.kur-kos b/talimatname/genel/i/inspircd/inspircd.kur-kos new file mode 100644 index 000000000..f7576a8da --- /dev/null +++ b/talimatname/genel/i/inspircd/inspircd.kur-kos @@ -0,0 +1,16 @@ +create_user() { + getent group inspircd &>/dev/null || groupadd -r -g 141 inspircd >/dev/null + getent passwd inspircd &>/dev/null || useradd -r -u 141 -g inspircd -d /var/lib/inspircd -s /bin/false inspircd >/dev/null +} + +kurkos() { + create_user + echo '==> Inspircd için bir yapılandırma dosyası oluşturmanız gerekecek' + echo '==> cp /usr/share/inspircd/examples/inspircd.conf.example /etc/inspircd/inspircd.conf' + echo '==> Pidfile değiştirmeniz gerekecek. Bunu yapmak için aşağıdakilerinizi yapılandırmanıza ekleyebilirsiniz.' + echo '==> ' + echo '==> Mutlak yolları config dizininizde kullanmayı unutmayın; kullanıcı tabanlı bir inspircd yüklemesiyle yapacağınız göreceli yolları değil.' +} + + +kurkos diff --git a/talimatname/genel/i/inspircd/inspircd.sil-kos b/talimatname/genel/i/inspircd/inspircd.sil-kos new file mode 100644 index 000000000..32d7fe34c --- /dev/null +++ b/talimatname/genel/i/inspircd/inspircd.sil-kos @@ -0,0 +1 @@ +getent passwd inspircd &>/dev/null && userdel inspircd diff --git a/talimatname/genel/i/inspircd/talimat b/talimatname/genel/i/inspircd/talimat new file mode 100644 index 000000000..bc3daf84e --- /dev/null +++ b/talimatname/genel/i/inspircd/talimat @@ -0,0 +1,47 @@ +# Tanım: Kararlı, modern ve hafif IRC arka plan +# URL: http://www.inspircd.org/ +# Paketçi: Cihan_Alkan +# Gerekler: mariadb sqlite geoip gnutls libgcrypt openldap +# Grup: ağ + +isim=inspircd +surum=2.0.24 +devir=1 +kaynak=(https://github.com/inspircd/inspircd/archive/v$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd "${SRC}/inspircd-${surum}" + + ./configure \ + --enable-extras=m_geoip.cpp \ + --enable-extras=m_ldapauth.cpp \ + --enable-extras=m_ldapoper.cpp \ + --enable-extras=m_mysql.cpp \ + --enable-extras=m_regex_pcre.cpp \ + --enable-extras=m_regex_posix.cpp \ + --enable-extras=m_sqlite3.cpp + + ./configure \ + --uid \ + --prefix=/usr/lib/inspircd \ + --binary-dir=/usr/bin \ + --module-dir=/usr/lib/inspircd/modules \ + --config-dir=/etc/inspircd \ + --data-dir=/var/lib/inspircd \ + --log-dir=/var/log/inspircd \ + --enable-gnutls \ + --enable-openssl \ + --enable-epoll + + make + + install -o141 -g141 -dm750 "${PKG}/var/log/inspircd" "${PKG}/var/lib/inspircd" + + make DESTDIR="$PKG" install + + mkdir -p "${PKG}"/usr/share/inspircd + mv "${PKG}"/etc/inspircd/examples "${PKG}"/usr/share/inspircd/examples + + rm -rf "${PKG}"/usr/lib/inspircd/logs + rm -rf "${PKG}"/usr/lib/inspircd/data +} diff --git a/talimatname/genel/i/intel-ucode/intel-ucode.kur-kos b/talimatname/genel/i/intel-ucode/intel-ucode.kur-kos new file mode 100644 index 000000000..99b8ec97c --- /dev/null +++ b/talimatname/genel/i/intel-ucode/intel-ucode.kur-kos @@ -0,0 +1,3 @@ +#!/bin/sh +[ ! -f /usr/lib/dracut/dracut.conf.d/intel_ucode.conf ] && echo "early_microcode=yes" >> /usr/lib/dracut/dracut.conf.d/intel_ucode.conf +initramfs_guncelle diff --git a/talimatname/genel/i/intel-ucode/talimat b/talimatname/genel/i/intel-ucode/talimat new file mode 100644 index 000000000..165f62cd2 --- /dev/null +++ b/talimatname/genel/i/intel-ucode/talimat @@ -0,0 +1,18 @@ +# Tanım: Microcode update for Intel CPUs +# URL: http://downloadcenter.intel.com/ +# Paketçi: milisarge +# Gerekler: +# Grup: firmware + +isim=intel-ucode +surum=2.1.15 +devir=1 + +kaynak=( +http://pkgs.fedoraproject.org/repo/pkgs/microcode_ctl/microcode_ctl-2.1-15.tar.xz/sha512/2c1c65b62de80ca958068f18b54c3c635415c45f83095d5dbf07c5c94776b0297c8ae8cf82271cc96d6ded9bf6e22c511f6a50523b307fd9e995d723621d63e7/microcode_ctl-2.1-15.tar.xz) + +derle() { + cd microcode_ctl-2.1-15 + make all + install -Dt $PKG/lib/firmware/intel-ucode/ intel-ucode/* +} diff --git a/talimatname/genel/i/intltool/talimat b/talimatname/genel/i/intltool/talimat new file mode 100644 index 000000000..dfc4ef3e5 --- /dev/null +++ b/talimatname/genel/i/intltool/talimat @@ -0,0 +1,19 @@ +# Tanım: Uluslararasılaştırma aracı koleksiyonu +# URL: http://freedesktop.org/wiki/Software/intltool +# Paketçi: milisarge +# Gerekler: perl-xml-parser + +isim=intltool +surum=0.51.0 +devir=1 +kaynak=(http://edge.launchpad.net/intltool/trunk/$surum/+download/intltool-$surum.tar.gz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +mkdir -p $PKG/usr/share/doc/intltool-$surum +install -v -Dm644 doc/I18N-HOWTO \ +$PKG/usr/share/doc/intltool-$surum/I18N-HOWTO +} diff --git a/talimatname/genel/i/inxi/talimat b/talimatname/genel/i/inxi/talimat new file mode 100644 index 000000000..0bdb629f7 --- /dev/null +++ b/talimatname/genel/i/inxi/talimat @@ -0,0 +1,18 @@ +# Tanım: inxi sistem bilgi betigi +# URL: http://inxi.org +# Paketçi: milisarge +# Gerekler: + +isim=inxi +surum=master +devir=1 +kaynak=(https://github.com/smxi/inxi/archive/master.tar.gz) + +derle(){ + mv $DERLEME_KAYNAKDIZIN/$surum.tar.gz $DERLEME_KAYNAKDIZIN/$isim-$surum.tar.gz + cd $isim-$surum + install -Dm755 inxi \ + $PKG/usr/bin/inxi + install -Dm644 inxi.1 \ + $PKG/usr/share/man/man1/inxi.1 +} diff --git a/talimatname/genel/i/io/talimat b/talimatname/genel/i/io/talimat new file mode 100644 index 000000000..d6c29762c --- /dev/null +++ b/talimatname/genel/i/io/talimat @@ -0,0 +1,23 @@ +# Tanım: Io Smalltalk benzer programlama dili +# URL: http://www.iolanguage.com/ +# Paketçi: milisarge +# Gerekler: git cmake pcre libsndfile xorg-libxmu freetype libedit libxml2 libtiff libevent yajl mariadb libpng python3 freeglut libjpeg-turbo libtheora +# Grup: geliştirme + +isim=io +surum=git +devir=1 +kaynak=(https://github.com/stevedekorte/io/archive/master.tar.gz::$isim-master.tar.gz) + +derle() { + #git_indir https://github.com/stevedekorte/io.git $isim + #cd $SRC/io + cd $SRC/$isim-master + sed -ri "s|20[0-9]+|$surum|" libs/iovm/source/IoVersion.h + mkdir -p build + cd build + cmake -DCMAKE_INSTALL_PREFIX=/usr .. + make -j1 + make -C../build DESTDIR="$PKG" install + install -Dm644 ../license/bsd_license.txt "$PKG/usr/share/licenses/$isim/bsd_license.txt" +} diff --git a/talimatname/genel/i/iperf/talimat b/talimatname/genel/i/iperf/talimat new file mode 100644 index 000000000..4fea53929 --- /dev/null +++ b/talimatname/genel/i/iperf/talimat @@ -0,0 +1,28 @@ +# Tanım: Maksimum TCP bant genişliğini ölçmek için bir araç +# URL: https://sourceforge.net/projects/iperf2/ +# Paketçi: Cihan_Alkan +# Gerekler: +# Grup: ağ + +isim=iperf +surum=2.0.10 +devir=1 +kaynak=(http://downloads.sourceforge.net/iperf2/iperf-$surum.tar.gz) + +derle() { + cd $isim-$surum + # kaynak diziden yama uygulayın + local filename + for filename in "${source[@]}"; do + if [[ "$filename" =~ \.patch$ ]]; then + patch -p1 -N -i "$SRC/${filename##*/}" + fi + done + : + ./configure --prefix=/usr \ + --enable-ipv6 \ + --enable-multicast \ + --enable-threads + make + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/i/iprange/talimat b/talimatname/genel/i/iprange/talimat new file mode 100644 index 000000000..8da486dcc --- /dev/null +++ b/talimatname/genel/i/iprange/talimat @@ -0,0 +1,19 @@ +# Tanım: ip aralıklarını yönetme aracı- firehol projesinden +# URL: http://firehol.org/ +# Paketçi: milisarge +# Gerekler: help2man + +isim=iprange +surum=1.0.3 +devir=2.0 +kaynak=(https://github.com/firehol/$isim/archive/v$surum.tar.gz +) + +derle() { + cd "$isim-$surum" + ./autogen.sh + ./configure --disable-man --prefix="/usr" --sysconfdir="/etc" --sbindir="/usr/bin" + make + make prefix="$PKG/usr" sysconfdir="$PKG/etc" sbindir="$PKG/usr/bin" install + +} diff --git a/talimatname/genel/i/ipset/talimat b/talimatname/genel/i/ipset/talimat new file mode 100644 index 000000000..d56e155b4 --- /dev/null +++ b/talimatname/genel/i/ipset/talimat @@ -0,0 +1,19 @@ +# Tanım: IP veya port ayarlamaları için yetkili uygulaması +# URL: http://ipset.netfilter.org/ +# Paketçi: milisarge +# Gerekler: iptables libmnl + +isim=ipset +surum=6.32 +devir=1 +kaynak=(http://$isim.netfilter.org/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --sbindir=/usr/bin --with-kmod=no + make + make DESTDIR="$PKG" install + install -Dm644 lib/libipset.pc "$PKG/usr/lib/pkgconfig/libipset.pc" + # default config file + install -Dm 644 /dev/null "$PKG/etc/$isim.conf" +} diff --git a/talimatname/genel/i/iptables/iptables.kur-kos b/talimatname/genel/i/iptables/iptables.kur-kos new file mode 100644 index 000000000..77a284463 --- /dev/null +++ b/talimatname/genel/i/iptables/iptables.kur-kos @@ -0,0 +1 @@ +cp /sources/milis.git/talimatname/genel/iptables/iptables.rc /etc/rc.d/init.d/iptables diff --git a/talimatname/genel/i/iptables/iptables.okubeni b/talimatname/genel/i/iptables/iptables.okubeni new file mode 100644 index 000000000..08d78f8dc --- /dev/null +++ b/talimatname/genel/i/iptables/iptables.okubeni @@ -0,0 +1,57 @@ +Ce readme est une copie de la page: +http://www.fr.linuxfromscratch.org/view/blfs-svn/postlfs/firewall.html + +INTRODUCTION + L'objectif général d'un pare-feu est de protéger un ordinateur ou un réseau contre les accès malveillants. + +Dans un monde parfait, tout démon et tout service sur la machine est parfaitement configuré et immunisé contre des fléaux tels que les débordements de mémoire ou d'autres problèmes liés à leur sécurité. De plus, vous faites confiance aux utilisateurs qui accèdent à vos services. Dans ce monde, vous n'avez pas besoin de pare-feu. + +Mais dans le monde réel, les démons peuvent être mal configurés et les exploits contre des services essentiels sont librement disponibles. Vous pouvez souhaiter choisir les services qui sont accessibles à certaines machines ou vous pourriez souhaiter limiter les machines ou les applications qui sont autorisés à y accéder depuis l'extérieur. Sinon, vous pouvez tout simplement ne pas faire confiance à certaines de vos applications ou à certains de vos utilisateurs. Vous êtes probablement connectés à Internet. Dans ce monde, un pare-feu est essentiel. + +N'imaginez toutefois pas qu'un pare-feu rend redondante les mauvaises configurations, ni qu'il ôte tout risque d'une mauvaise configuration par négligence. Il n'empêche personne d'exploiter un service que vous offrez intentionnellement, mais que vous n'avez pas mis à jour récemment ou que vous n'avez pas corrigé après qu'un exploit a été publié. Bien qu'ayant un pare-feu, vous avez besoin d'avoir sur votre système des applications et des démons configurés correctement et à jour. Un pare-feu n'est pas le remède à tout, mais il devrait être une partie essentielle de votre stratégie globale de sécurité. + +SIGNIFICATION DU MOT "PARE-FEU" + Le mot « pare-feu » peut avoir plusieurs sens différents. + +C'est un périphérique matériel ou un logiciel disponible sur le commerce (ou offert gratuitement) par des sociétés telles que Symantec qui prétend que cela sécurise un ordinateur familial ou de bureau connecté à Internet. Ce type de pare-feu est fort pertinent pour les utilisateurs qui ne savent pas comment on pourrait accéder à leur ordinateur par Internet ou comment désactiver cet accès, surtout s'ils sont toujours en ligne et connectés par des liens à connexion illimitée. + +C'est un système placé entre Internet et l'intranet. Pour minimiser le risque de compromettre le pare-feu lui-même, il ne devrait en général jouer qu'un rôle—celui de protéger l'intranet. Bien que cela ne soit pas sans risques, la tâche de routage et de masquerading d'IPs (réécrire des en-têtes IP de paquets qu'il route depuis les clients avec des adresses privées sur Internet afin qu'elles semblent venir du pare-feu lui-même) est en général considérée comme relativement sécurisée. + +C'est souvent un vieil ordinateur à la retraite et que vous avez presqu'oublié, qui fait du masquerading ou des fonctions de routage mais qui offre des services de non pare-feu tels qu'un cache Web ou la messagerie. Cela peut être utilisé pour des réseaux familiaux, mais ce n'est pas considéré comme sécurisé en tant que machine uniquement dédiée au pare-feu car la combinaison d'un serveur et d'un routeur/pare-feu sur une machine augmente la complexité du paramétra + +PARE-FEU AVEC UN DEMILITARIZED ZONE +Cette machine effectue du masquerading ou du routage mais elle autorise un accès public à certaines branches de votre réseau qui, du fait des IPs publiques et d'une structure physique séparée, est epsentiellement un réseau séparé avec un accès direct à Internet. Les serveurs sur ce réseau sont les plus facilement accessibles, tant par Internet que depuis l'intranet. Le pare-feu protège les deux réseaux. Ce type de pare-feu a un minimum de trois interfaces réseaux. + +PACKETFILTER +Ce type de pare-feu fait du routage et du masquerading, mais il ne maintient pas un tableaux d'état de flux de communication en cours. Il est rapide mais a des capacités de blocage des paquets indésirés très limitées sans bloquer les paquets désirés. + +MAINTENANT VOUS POUVEZ COMMENCER A CONSTRUIRE VOTRE PARE-FEU +AVERTISSEMENT: +Cette introduction sur la façon de paramùqrer un pare-feu n'est pas un guide complet pour sécuriser des systèmes. Le pare-feu est un sujet complexe qui exige une configuration soignée. Les scripts cités ici ne visent qu'à donner des exemples de la façon dont fonctionne un pare-feu. Ils n'ambitionnent pas de convenir à toute configuration particulière et ils peuvent ne pas offrir de protection complète contre une attaque + +Une personnalisation de ces scripts pour votre situation spécifique sera nécessaire pour avoir une configuration optimale, mais vous devriez étudier sérieusement la documentation d'iptables et la création de pare-feux en général avant de toucher quoique ce soit. Jetez un oeil sur les liens en bas de ce README pour plus de détails. Vous y trouverez une liste de liens contenant des informations rapides et complètes sur la construction de votre propre pare-feu. + +Le script de configuration de pare-feu installé dans la section sur iptables diffère du script de configuration standard. Il n'a que deux des cibles standards : start et status. Les autres cibles sont vides et verrouillées. Par exemple, si vous lancez : + +/etc/rc.d/init.d/iptables start + + le pare-feu sera redémarré comme s'il s'agissait du démarrage du système. La cible status présentera une liste de toutes les règles actuellement implémentées. La cible vide désactive toutes les règles de pare-feu et la cible verrouillée (lock) bloquera tous les paquets entrant et sortant sur l'ordinateur sauf l'interface loopback. + +Le pare-feu de démarrage principal se trouve dans le fichier /etc/rc.d/rc.iptables. Les sections ci-dessous présentent trois approches différentes qu'on peut utiliser sur un système. + +NOTE: +Vous devriez toujours exécuter vos règles de pare-feu à partir d'un script. Cela vous assure d'être cohérent et de vous souvenir de ce que vous avez fait. Cela permet aussi de mettre des commentaires essentiels à la compréhension des règles longtemps après les avoir écrites. + +PARE-FEU PERSONNEL +Un pare-feu personnel est conçu pour vous permettre un accès à tous les services offerts sur Internet, mais il garde votre machine ainsi que vos données privées en sécurité. + +Le fichier rc.iptables est une version légèrement modifiée de la recommandation de Rusty Russell sur le lien +http://www.netfilter.org/documentation/HOWTO/packet-filtering-HOWTO.html (guide pratique sur le filtrage des paquets avec Linux 2.4). Il s'applique encore aux noyaux Linux 2.6. + +Ce script est très simple, il accepte tout le trafic venant dans votre ordinateur qui a été initié par votre ordinateur, mais tant que vous surfez simplement sur Internet, il y a peu de chances que vous dépassiez ses limites. + +Plus d'information sur ce lien + +http://www.fr.linuxfromscratch.org/view/blfs-svn/postlfs/firewall.html +http://www.linuxfromscratch.org/blfs/view/svn/postlfs/firewall.html + diff --git a/talimatname/genel/i/iptables/iptables.rc b/talimatname/genel/i/iptables/iptables.rc new file mode 100755 index 000000000..69ac3fc65 --- /dev/null +++ b/talimatname/genel/i/iptables/iptables.rc @@ -0,0 +1,84 @@ +#!/bin/sh +######################################################################## +# Begin iptables +# +# Tanım: Start iptables +# +# Authors : Ken Moffat - ken@linuxfromscratch.org +# Bruce Dubbs - bdubbs@linuxfromscratch.org +# +# Version : LFS 7.0 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: iptables +# Required-Start: +# Should-Start: +# Required-Stop: $local_fs +# Should-Stop: +# Default-Start: 3 4 5 +# Default-Stop: +# Short-Tanım: Loads iptables rules. +# Tanım: Iptables provides firewall for Linux systems. +# X-LFS-Provided-By: BLFS / LFS 7.0 +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: krejzi $ +#$Date: 2013-06-11 11:01:46 -0500 (Tue, 11 Jun 2013) $ + +case "$1" in + start) + if [ -x /etc/rc.d/rc.iptables ]; then + log_info_msg "Starting iptables..." + /etc/rc.d/rc.iptables + evaluate_retval + fi + ;; + + lock) + log_info_msg "Locking system iptables firewall..." + /usr/sbin/iptables --policy INPUT DROP + /usr/sbin/iptables --policy OUTPUT DROP + /usr/sbin/iptables --policy FORWARD DROP + /usr/sbin/iptables --flush + /usr/sbin/iptables -t nat --flush + /usr/sbin/iptables -t mangle --flush + /usr/sbin/iptables --delete-chain + /usr/sbin/iptables -t nat --delete-chain + /usr/sbin/iptables -t mangle --delete-chain + /usr/sbin/iptables -A INPUT -i lo -j ACCEPT + /usr/sbin/iptables -A OUTPUT -o lo -j ACCEPT + evaluate_retval + ;; + + clear) + log_info_msg "Clearing system iptables iptables..." + /usr/sbin/iptables --policy INPUT ACCEPT + /usr/sbin/iptables --policy OUTPUT ACCEPT + /usr/sbin/iptables --policy FORWARD ACCEPT + /usr/sbin/iptables --flush + /usr/sbin/iptables -t nat --flush + /usr/sbin/iptables -t mangle --flush + /usr/sbin/iptables --delete-chain + /usr/sbin/iptables -t nat --delete-chain + /usr/sbin/iptables -t mangle --delete-chain + evaluate_retval + ;; + + status) + /usr/sbin/iptables --numeric --list + /usr/sbin/iptables -t nat --numeric --list + /usr/sbin/iptables -t mangle --numeric --list + ;; + + *) + echo "Usage: $0 {start|clear|lock|status}" + exit 1 + ;; +esac + +# End /etc/init.d/iptables + diff --git a/talimatname/genel/i/iptables/talimat b/talimatname/genel/i/iptables/talimat new file mode 100644 index 000000000..d5273067c --- /dev/null +++ b/talimatname/genel/i/iptables/talimat @@ -0,0 +1,22 @@ +# Tanım: Linux çekirdeği paket filtreleme ve kontrol aracı +# URL: http://www.iptables.org/ +# Paketçi: milisarge +# Gerekler: + +isim=iptables +surum=1.6.0 +devir=1 +kaynak=(ftp://ftp.netfilter.org/pub/iptables/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --libexecdir=/usr/lib \ + --enable-libipq \ + --with-xtlibdir=/lib/xtables \ + --enable-devel \ + --with-pkgconfigdir=/usr/lib/pkgconfig \ + --disable-nftables + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/i/iputils/talimat b/talimatname/genel/i/iputils/talimat new file mode 100644 index 000000000..b06e07378 --- /dev/null +++ b/talimatname/genel/i/iputils/talimat @@ -0,0 +1,16 @@ +# Tanım: temel ağ uygulamaları +# URL: http://www.linuxfoundation.org/collaborate/workgroups/networking/iputils +# Paketçi: milisarge +# Gerekler: libcap libidn + +isim=iputils +surum=s20161105 +devir=1 +kaynak=(https://github.com/$isim/$isim/archive/$surum.tar.gz) + +derle() { + cd $isim-$surum + make USE_NETTLE=no USE_GNUTLS=no CCOPTOPT="$CFLAGS" + install -dm755 "${PKG}"/usr/bin + install -m755 arping clockdiff ping rarpd rdisc tftpd tracepath "${PKG}"/usr/bin/ +} diff --git a/talimatname/genel/i/ipw2100-fw/talimat b/talimatname/genel/i/ipw2100-fw/talimat new file mode 100644 index 000000000..6d9c85f77 --- /dev/null +++ b/talimatname/genel/i/ipw2100-fw/talimat @@ -0,0 +1,18 @@ +# Tanım: IPW2100 Intel Centrino wifi için sürücüler +# URL: http://ipw2100.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: + +isim=ipw2100-fw +surum=1.3 +devir=1 +kaynak=(http://downloads.nutyx.org/files/$isim-$surum.tgz) + +derle() { + for i in *.fw + do + install -D -m 644 $i $PKG/lib/firmware/$i + done + # Install firmware licence + install -D -m 644 LICENSE $PKG/usr/share/licenses/$isim/LICENSE +} diff --git a/talimatname/genel/i/ipw2200-fw/talimat b/talimatname/genel/i/ipw2200-fw/talimat new file mode 100644 index 000000000..db3e58a2b --- /dev/null +++ b/talimatname/genel/i/ipw2200-fw/talimat @@ -0,0 +1,19 @@ +# Tanım: IPW2200 Intel Centrino wifi için sürücüler +# URL: http://ipw2200.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: + +isim=ipw2200-fw +surum=3.1 +devir=1 +kaynak=(http://downloads.nutyx.org/files/$isim-$surum.tgz) + +derle() { + cd $isim-$surum + for i in ipw*.fw + do + install -D -m 644 $i $PKG/lib/firmware/$i + done + # Install firmware licence + install -D -m 644 LICENSE.ipw2200-fw $PKG/usr/share/licenses/$isim/LICENSE +} diff --git a/talimatname/genel/i/irssi/talimat b/talimatname/genel/i/irssi/talimat new file mode 100644 index 000000000..c6363106e --- /dev/null +++ b/talimatname/genel/i/irssi/talimat @@ -0,0 +1,26 @@ +# Tanım: UNIX sistemler için terminal temelli IRC uygulaması +# URL: http://irssi.org/ +# Paketçi: milisarge +# Gerekler: glib + +isim=irssi +surum=0.8.20 +devir=1 +kaynak=(https://github.com/irssi-import/irssi/releases/download/$surum/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --enable-ipv6 \ + --with-textui \ + --with-proxy + make + make DESTDIR=$PKG install + +find $PKG \ + -name .packlist -or \ + -name perllocal.pod -or \ + -name '*.bs' -or \ + -name autosplit.ix | xargs rm +} diff --git a/talimatname/genel/i/iso-codes/talimat b/talimatname/genel/i/iso-codes/talimat new file mode 100644 index 000000000..5878abc97 --- /dev/null +++ b/talimatname/genel/i/iso-codes/talimat @@ -0,0 +1,16 @@ +# Tanım: ISO Kodları paketi, ülke, dil ve para birimi adlarının bir listesini içerir +# URL: http://pkg-isocodes.alioth.debian.org/ +# Paketçi: milisarge +# Gerekler: + +isim=iso-codes +surum=3.65 +devir=1 +kaynak=(http://pkg-isocodes.alioth.debian.org/downloads/iso-codes-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/i/isodumper/header.png b/talimatname/genel/i/isodumper/header.png new file mode 100644 index 000000000..e80cb783a Binary files /dev/null and b/talimatname/genel/i/isodumper/header.png differ diff --git a/talimatname/genel/i/isodumper/header.svg b/talimatname/genel/i/isodumper/header.svg new file mode 100644 index 000000000..d229a0f1e --- /dev/null +++ b/talimatname/genel/i/isodumper/header.svg @@ -0,0 +1,435 @@ + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/talimatname/genel/i/isodumper/talimat b/talimatname/genel/i/isodumper/talimat new file mode 100644 index 000000000..cd42f4d26 --- /dev/null +++ b/talimatname/genel/i/isodumper/talimat @@ -0,0 +1,35 @@ +# Tanım: ISO imajlarini USB belleğe yazdırmak için usb-imagewriter temelli bir program +# URL: https://github.com/papoteur-mga/isodumper +# Paketçi: milisarge +# Gerekler: intltool imagemagick coreutils pango polkit procps-ng python-gtk python-cairo python-gobject2 libglade python dbus-python python-parted udisks2 xorg-term + +isim=isodumper +surum=0.48 +devir=1 +kaynak=( http://gitweb.mageia.org/software/isodumper/snapshot/$isim-$surum.tar.gz + header.png + header.svg) + +derle() { +cd $isim-$surum +make +make DESTDIR=$PKG install + +# Başlatıcı +mkdir -pv $PKG/usr/share/applications && +cat > $PKG/usr/share/applications/isodumper.desktop << "EOF" && +[Desktop Entry] +Encoding=UTF-8 +Type=Application +Name=ISO Dumper +Comment=ISO Kalıp Yazma Programı +Icon=isodumper +Exec=isodumper +Categories=Utility; +StartupNotify=true +Terminal=false +EOF + +cp $SRC/header.png $PKG/usr/share/isodumper +cp $SRC/header.svg $PKG/usr/share/isodumper +} diff --git a/talimatname/genel/i/isomaster/talimat b/talimatname/genel/i/isomaster/talimat new file mode 100644 index 000000000..97ac6b640 --- /dev/null +++ b/talimatname/genel/i/isomaster/talimat @@ -0,0 +1,17 @@ +# Tanım: CD/DVD İmaj editörü +# URL: http://www.littlesvr.ca/isomaster/ +# Paketçi: milisarge +# Gerekler: gtk2 desktop-file-utils harfbuzz atk gdk-pixbuf xorg-libx11 xorg-libxext xorg-libxrender xorg-libxdmcp xcb-proto xorg-proto xorg-libxau libxcb libpng freetype xorg-fontconfig xorg-pixman pango cairo pcre glib + +isim=isomaster +surum=1.3.13 +devir=1 +kaynak=(http://littlesvr.ca/isomaster/releases/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + + make PREFIX=/usr + + make PREFIX=/usr DESTDIR=$PKG install +} diff --git a/talimatname/genel/i/isowriter/talimat b/talimatname/genel/i/isowriter/talimat new file mode 100644 index 000000000..1619da309 --- /dev/null +++ b/talimatname/genel/i/isowriter/talimat @@ -0,0 +1,40 @@ +# Tanım: Kalıp dosyalarunu USB belleğe yaz +# URL: https://github.com/KaOSx/isowriter +# Paketçi: Cihan_Alkan +# Gerekler: qt5 +# Grup: sistem + +isim=isowriter +surum=1.1.3 +devir=2 + +kaynak=() + +derle() { + + git_indir https://github.com/KaOSx/isowriter $isim + cd $SRC/$isim + qmake-qt5 ImageWriter.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug + make +mkdir -p $PKG/usr/share/applications +# Başlatıcı +cat > $PKG/usr/share/applications/$isim.desktop << "EOF" && +[Desktop Entry] +Type=Application +Categories=System;Utility;Archiving; +X-KDE-RootOnly=true +Exec=sudo IsoWriter +Icon=/usr/share/icons/usb_blue.png +Name=ISO Writer +Comment=Tool for creating bootable installation USB flash drives +Comment[tr]=Kalıp dosyalarunu USB belleğe yaz +GenericName=USB key writer +Version=1.0 +EOF + + mkdir -p $PKG/usr/bin + cp IsoWriter $PKG/usr/bin/ + mkdir -p $PKG/usr/share/icons + cp res/usb_blue.png $PKG/usr/share/icons/ +} + diff --git a/talimatname/genel/i/itstool/talimat b/talimatname/genel/i/itstool/talimat new file mode 100644 index 000000000..6e68a3ff6 --- /dev/null +++ b/talimatname/genel/i/itstool/talimat @@ -0,0 +1,16 @@ +# Tanım: XML ve PO uzantilari icin dönüştürücü +# URL: http://itstool.org/ +# Paketçi: milisarge +# Gerekler: docbook-xml docbook-xsl python + +isim=itstool +surum=2.0.2 +devir=1 +kaynak=(http://files.itstool.org/itstool/$isim-$surum.tar.bz2 ) + +derle() { +cd $isim-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/i/iucode-tool/talimat b/talimatname/genel/i/iucode-tool/talimat new file mode 100644 index 000000000..7a5a54e7d --- /dev/null +++ b/talimatname/genel/i/iucode-tool/talimat @@ -0,0 +1,17 @@ +# Tanım: Intel® IA-32/X86-64 microcode larını yönetmek için araç +# URL: https://gitlab.com/iucode-tool/iucode-tool/wikis/home +# Paketçi: milisarge +# Gerekler: +# Grup: sistem + +isim=iucode-tool +surum=2.2 +devir=1 +kaynak=(https://gitlab.com/iucode-tool/releases/raw/master/iucode-tool_$surum.tar.xz) + +derle() { + cd "$SRC/${isim}-$surum" + ./configure --prefix=/usr --sbindir=/usr/bin + make + make DESTDIR="$PKG/" install +} diff --git a/talimatname/genel/i/iw/talimat b/talimatname/genel/i/iw/talimat new file mode 100644 index 000000000..8ac7ce0f0 --- /dev/null +++ b/talimatname/genel/i/iw/talimat @@ -0,0 +1,17 @@ +# Tanım: Kablosuz aygıtlar için nl80211 tabanlı CLI ayarlama aracı +# URL: http://wireless.kernel.org/en/users/Documentation/iw +# Paketçi: yakar (aydin@komutan.org) +# Gerekler: libnl + +isim=iw +surum=4.9 +devir=1 +kaynak=(https://www.kernel.org/pub/software/network/$isim/$isim-$surum.tar.xz) + +derle() { + cd "$SRC"/$isim-$surum + make + + cd "$SRC"/$isim-$surum + make DESTDIR="$PKG" SBINDIR="/usr/bin" install +} diff --git a/talimatname/genel/j/jack/jack-40-hpet-permissions.rules b/talimatname/genel/j/jack/jack-40-hpet-permissions.rules new file mode 100644 index 000000000..7af3780f9 --- /dev/null +++ b/talimatname/genel/j/jack/jack-40-hpet-permissions.rules @@ -0,0 +1,2 @@ +KERNEL=="rtc0", GROUP="audio" +KERNEL=="hpet", GROUP="audio" diff --git a/talimatname/genel/j/jack/jack-99-audio.conf b/talimatname/genel/j/jack/jack-99-audio.conf new file mode 100644 index 000000000..eb76ef920 --- /dev/null +++ b/talimatname/genel/j/jack/jack-99-audio.conf @@ -0,0 +1,2 @@ +@audio - rtprio 99 +@audio - memlock unlimited diff --git a/talimatname/genel/j/jack/talimat b/talimatname/genel/j/jack/talimat new file mode 100644 index 000000000..fd07fefaf --- /dev/null +++ b/talimatname/genel/j/jack/talimat @@ -0,0 +1,25 @@ +# Tanım: Düşük gecikmeli bir ses sunucusu +# URL: http://jackaudio.org +# Paketçi: milisarge +# Gerekler: db libsamplerate readline doxygen celt + +_longisim=jack-audio-connection-kit +isim=jack +surum=0.124.1 +devir=1 +kaynak=(http://jackaudio.org/downloads/${_longname}-$surum.tar.gz + jack-99-audio.conf + jack-40-hpet-permissions.rules) + +derle() { +cd ${_longname}-$surum +./configure --prefix=/usr --libdir=/usr/lib +make +make DESTDIR=$PKG install + +install -Dm644 $SRC/jack-99-audio.conf \ + $PKG/etc/security/limits.d/99-audio.conf + +install -Dm644 $SRC/jack-40-hpet-permissions.rules \ + $PKG/etc/udev/rules.d/40-hpet-permissions.rules +} diff --git a/talimatname/genel/j/jam/talimat b/talimatname/genel/j/jam/talimat new file mode 100644 index 000000000..7b7d9dfaf --- /dev/null +++ b/talimatname/genel/j/jam/talimat @@ -0,0 +1,17 @@ +# Tanım: Jam bir yazılım oluşturma aracıdır. +# URL: http://www.perforce.com/documentation/jam +# Paketçi: milisarge +# Gerekler: + +isim=jam +surum=2.5 +devir=1 +kaynak=(http://downloads.sourceforge.net/project/ede/jam/2.5-haiku-20080327/jam-2.5-haiku-20080327.tar.gz) + +derle() { +cd $isim +make +mkdir -p $PKG/usr/bin +cp bin.linuxx86/jam \ + $PKG/usr/bin/jam +} diff --git a/talimatname/genel/j/jansson/talimat b/talimatname/genel/j/jansson/talimat new file mode 100644 index 000000000..f0a7f9ef4 --- /dev/null +++ b/talimatname/genel/j/jansson/talimat @@ -0,0 +1,22 @@ +# Tanım: JSON verisini encode, decode etmek ve düzenlemek için C kütüphanesi +# URL: http://www.digip.org/jansson/ +# Paketçi: milisarge +# Gerekler: + +isim=jansson +surum=2.7 +devir=1 +kaynak=(http://www.digip.org/$isim/releases/$isim-$surum.tar.bz2) + +derle() { + + cd $isim-$surum + + ./configure \ + --prefix=/usr \ + --mandir=/usr/man + + make + make DESTDIR=$PKG install + +} diff --git a/talimatname/genel/j/jasper/talimat b/talimatname/genel/j/jasper/talimat new file mode 100644 index 000000000..c94fef3aa --- /dev/null +++ b/talimatname/genel/j/jasper/talimat @@ -0,0 +1,22 @@ +# Tanım: Ortaya çıkan JPEG-2000 Bölüm 1'de belirtilen codec bileşeninin yazılım tabanlı bir uygulaması +# URL: http://www.ece.uvic.ca/~mdadams/jasper/ +# Paketçi: milisarge +# Gerekler: libjpeg-turbo + +isim=jasper +surum=1.900.1 +devir=1 +kaynak=(http://www.ece.uvic.ca/~mdadams/$isim/software/$isim-$surum.zip \ + http://www.linuxfromscratch.org/patches/blfs/svn/jasper-1.900.1-security_fixes-2.patch) + +derle() { + cd $isim-$surum + patch -Np1 -i ../$isim-$surum-security_fixes-2.patch + ./configure --prefix=/usr --enable-shared \ + --mandir=/usr/share/man + make + make DESTDIR=$PKG install + + install -v -m755 -d $PKG/usr/share/doc/jasper-$surum + install -v -m644 doc/*.pdf $PKG/usr/share/doc/$isim-$surum +} diff --git a/talimatname/genel/j/java-mysql/talimat b/talimatname/genel/j/java-mysql/talimat new file mode 100644 index 000000000..afafc36f4 --- /dev/null +++ b/talimatname/genel/j/java-mysql/talimat @@ -0,0 +1,17 @@ +# Tanım: java-jdbc mysql bağlayıcısı +# URL: https://dev.mysql.com/downloads/connector/j/ +# Paketçi: milisarge +# Gerekler: openjdk mariadb + +isim=java-mysql +surum=5.1.41 +uzunisim=mysql-connector-java-${surum} +devir=1 +kaynak=(https://cdn.mysql.com/Downloads/Connector-J/${uzunisim}.tar.gz) + +derle() { + cd $uzunisim + jdkyol=`readlink -f /opt/jdk` + install -d "$PKG$jdkyol/jre/lib/ext/" + cp ${uzunisim}-bin.jar $PKG$jdkyol/jre/lib/ext/mysql.jar +} diff --git a/talimatname/genel/j/jbigkit/talimat b/talimatname/genel/j/jbigkit/talimat new file mode 100644 index 000000000..ecabc3cea --- /dev/null +++ b/talimatname/genel/j/jbigkit/talimat @@ -0,0 +1,36 @@ +# Tanım: JBIG1 sıkıştırma standardı uygulaması +# URL: http://www.cl.cam.ac.uk/~mgk25/jbigkit/ +# Paketçi: milisarge +# Gerekler: + +isim=jbigkit +surum=2.1 +devir=1 +kaynak=(http://www.cl.cam.ac.uk/~mgk25/$isim/download/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + + export CFLAGS="$CFLAGS -fPIC" + + make -e + + install -m 755 -d $PKG/usr/lib + install -m 755 -d $PKG/usr/include + install -m 755 -d $PKG/usr/bin + install -m 755 -d $PKG/usr/share/man/man1 + install -m 755 -d $PKG/usr/share/man/man5 + + install -m 644 libjbig/*.a $PKG/usr/lib + install -m 644 libjbig/*.h $PKG/usr/include + + install -m 755 pbmtools/jbgtopbm $PKG/usr/bin + install -m 755 pbmtools/jbgtopbm85 $PKG/usr/bin + install -m 755 pbmtools/pbmtojbg $PKG/usr/bin + install -m 755 pbmtools/pbmtojbg85 $PKG/usr/bin + + install -m 644 pbmtools/jbgtopbm.1 $PKG/usr/share/man/man1 + install -m 644 pbmtools/pbmtojbg.1 $PKG/usr/share/man/man1 + install -m 644 pbmtools/pgm.5 $PKG/usr/share/man/man5 + install -m 644 pbmtools/pbm.5 $PKG/usr/share/man/man5 +} diff --git a/talimatname/genel/j/jd-gui/jd-gui.desktop b/talimatname/genel/j/jd-gui/jd-gui.desktop new file mode 100644 index 000000000..fbb4de485 --- /dev/null +++ b/talimatname/genel/j/jd-gui/jd-gui.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Comment=Java Decompiler JD-GUI +Terminal=false +Name=JD-GUI +Exec=jd-gui +Type=Application +Icon=jd-gui diff --git a/talimatname/genel/j/jd-gui/talimat b/talimatname/genel/j/jd-gui/talimat new file mode 100644 index 000000000..3459d4ccd --- /dev/null +++ b/talimatname/genel/j/jd-gui/talimat @@ -0,0 +1,21 @@ +# Tanım: java .class dosyalarının kaynak kodunu gösteren uygulama +# URL: http://jd.benow.ca/ +# Paketçi: milisarge +# Gerekler: jre + +isim=jd-gui +surum=1.4.0 +devir=1 +kaynak=(https://github.com/java-decompiler/jd-gui/releases/download/v1.4.0/jd-gui-1.4.0.jar + https://github.com/java-decompiler/jd-gui/raw/v1.4.0/src/linux/resources/jd_icon_128.png + jd-gui.desktop) + +derle() { + cd "$SRC" + install -Dm644 "$isim-$surum.jar" "$PKG/usr/share/java/$isim/$isim.jar" + install -d "$PKG/usr/bin" + echo -e "#!/bin/sh\nexec java -jar /usr/share/java/$isim/$isim.jar" '"$@"' > "$PKG/usr/bin/$isim" + chmod 755 "$PKG/usr/bin/$isim" + install -Dm644 jd-gui.desktop "$PKG/usr/share/applications/$isim.desktop" + install -Dm644 jd_icon_128.png "$PKG/usr/share/pixmaps/$isim.png" +} diff --git a/talimatname/genel/j/jemalloc/talimat b/talimatname/genel/j/jemalloc/talimat new file mode 100644 index 000000000..55fd5d227 --- /dev/null +++ b/talimatname/genel/j/jemalloc/talimat @@ -0,0 +1,17 @@ +# Tanım: Genel amaçlı ölçeklenebilir eşzamanlı malloc uygulaması. +# URL: http://www.canonware.com/jemalloc/ +# Paketçi: milisarge +# Gerekler: + +isim=jemalloc +surum=4.2.1 +devir=1 +kaynak=(https://github.com/jemalloc/jemalloc/releases/download/${surum}/${isim}-${surum}.tar.bz2) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install + find "$PKG" -name \*.a -type f -exec chmod 644 '{}' \; +} diff --git a/talimatname/genel/j/jfsutils/talimat b/talimatname/genel/j/jfsutils/talimat new file mode 100644 index 000000000..84686c2d1 --- /dev/null +++ b/talimatname/genel/j/jfsutils/talimat @@ -0,0 +1,19 @@ +# Tanım: Administration and debugging tools for the jfs file system. +# URL: http://jfs.sourgeforge.net +# Paketçi: milisarge +# Gerekler: + +isim=jfsutils +surum=1.1.15 +devir=1 + +kaynak=(http://jfs.sourceforge.net/project/pub/$isim-$surum.tar.gz) + +derle() { + +cd $isim-$surum +sed "s@@&\n#include @g" -i fscklog/extract.c +./configure +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/j/joe/talimat b/talimatname/genel/j/joe/talimat new file mode 100644 index 000000000..846bbb739 --- /dev/null +++ b/talimatname/genel/j/joe/talimat @@ -0,0 +1,24 @@ +# Tanım: Joe'nun kendi editörü, WordStar, Pico ve Emacs'ı taklit edebilen küçük bir metin editörüdür. +# URL: http://downloads.sourceforge.net/joe-editor +# Paketçi: milisarge +# Gerekler: + +isim=joe +surum=4.1 +devir=1 +kaynak=(http://downloads.sourceforge.net/joe-editor/$isim-$surum.tar.gz) + +derle() { + + cd $isim-$surum + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --docdir=/usr/share/doc/joe-4.1 + make + make DESTDIR=$PKG install + install -vm 755 joe/util/{stringify,termidx,uniproc} $PKG/usr/bin + install -vdm755 $PKG/usr/share/joe/util + install -vm 644 joe/util/{*.txt,README} $PKG/usr/share/joe/util + +} diff --git a/talimatname/genel/j/john/talimat b/talimatname/genel/j/john/talimat new file mode 100644 index 000000000..9864e7bff --- /dev/null +++ b/talimatname/genel/j/john/talimat @@ -0,0 +1,28 @@ +# Tanım: John the Ripper hızlı bir şifre kırma yazılımıdır +# URL: http://www.openwall.com/john/ +# Paketçi: milisarge +# Gerekler: + +isim=john +_surum=1.8.0-jumbo-1 +surum=1.8.0 +devir=1 +kaynak=(http://www.openwall.com/$isim/j/$isim-$_version.tar.xz) + +derle() { + + sed -i 's|/usr/libexec|/usr/lib|g' $isim-$_version/src/params.h + + cd $isim-$_version/src + + # fix compilation with gcc 5.x + ./configure CFLAGS=-std=gnu89 + + make + + install -d $PKG/usr/bin + install -d $PKG/usr/lib/$isim + install -m 755 ../run/* $PKG/usr/lib/$isim + echo -e '#!/bin/sh\n/usr/lib/john/john "$@"\n' > $PKG/usr/bin/john + chmod 755 $PKG/usr/bin/john +} diff --git a/talimatname/genel/j/jq/talimat b/talimatname/genel/j/jq/talimat new file mode 100644 index 000000000..e0e30b334 --- /dev/null +++ b/talimatname/genel/j/jq/talimat @@ -0,0 +1,17 @@ +# Tanım: komut satirinda json parcalayici +# URL: https://stedolan.github.io/jq/ +# Paketçi: milisarge +# Gerekler: + +isim=jq +surum=1.5 +devir=1 +kaynak=(https://github.com/stedolan/$isim/releases/download/$isim-$surum/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/j/jre/jre.kos-kur b/talimatname/genel/j/jre/jre.kos-kur new file mode 100644 index 000000000..e5eb0aa03 --- /dev/null +++ b/talimatname/genel/j/jre/jre.kos-kur @@ -0,0 +1,3 @@ +mps sil icedtea-web +install -d /usr/lib/mozilla/plugins + diff --git a/talimatname/genel/j/jre/talimat b/talimatname/genel/j/jre/talimat new file mode 100644 index 000000000..c9bbe9cbe --- /dev/null +++ b/talimatname/genel/j/jre/talimat @@ -0,0 +1,31 @@ +# Tanım: Java Runtime Environment +# URL: http://www.oracle.com/technetwork/java/javase/overview/index.html +# Paketçi: milisarge +# Gerekler: + +isim=jre +surum=1.8.0_152 +devir=1 +kaynak=(http://ftp.osuosl.org/pub/funtoo/distfiles/oracle-java/jre-8u152-linux-x64.tar.gz) + +derle(){ + cd $isim$surum + + install -d $PKG/usr/{bin,share,lib/$isim} + mv bin lib plugin $PKG/usr/lib/$isim + install -d "$PKG"/usr/lib/mozilla/plugins + # several symlinks + ln -s $isim $PKG/usr/lib/java + ln -s ../lib/java/bin/java $PKG/usr/bin/java + ln -s ../lib/java/bin/javaws $PKG/usr/bin/javaws + ln -s ../lib/java/bin/keytool $PKG/usr/bin/keytool + ln -s ../lib/java/bin/jcontrol $PKG/usr/bin/jcontrol + sed -e "s|Exec=|Exec=/usr/lib/java/bin/|" \ + -e "s|.png|-jre8.png|" \ + -i $PKG/usr/lib/jre/lib/desktop/applications/* + mv $PKG/usr/lib/jre/lib/desktop/applications "$PKG"/usr/share/ + #install -m644 "$SRC"/*.desktop "$PKG"/usr/share/applications/ + ln -s /usr/lib/java/lib/amd64/libnpjp2.so "$PKG"/usr/lib/mozilla/plugins/libnpjp2-jre8.so + # remove broken libraries + rm $PKG/usr/lib/jre/lib/amd64/libavplugin-*.so +} diff --git a/talimatname/genel/j/js1/talimat b/talimatname/genel/j/js1/talimat new file mode 100644 index 000000000..7329a3d0b --- /dev/null +++ b/talimatname/genel/j/js1/talimat @@ -0,0 +1,25 @@ +# Tanım: JavaScript yorumlayıcı ve kitaplıkları +# URL: https://developer.mozilla.org/En/SpiderMonkey/1.8.5 +# Paketçi: milisarge +# Gerekler: libffi nspr zip python + +isim=js1 +surum=17.0.0 +devir=1 +kaynak=( http://ftp.mozilla.org/pub/mozilla.org/js/mozjs$surum.tar.gz ) + +derle() { +cd mozjs$surum/js/src +sed -i 's/(defined\((@TEMPLATE_FILE)\))/\1/' config/milestone.pl +./configure --prefix=/usr \ + --enable-readline \ + --enable-threadsafe \ + --with-system-ffi \ + --with-system-nspr +make +make DESTDIR=$PKG install +find $PKG/usr/include/js-17.0/ \ + $PKG/usr/lib/libmozjs-17.0.a \ + $PKG/usr/lib/pkgconfig/mozjs-17.0.pc \ + -type f -exec chmod -v 644 {} \; +} diff --git a/talimatname/genel/j/js2/talimat b/talimatname/genel/j/js2/talimat new file mode 100644 index 000000000..8e96b279b --- /dev/null +++ b/talimatname/genel/j/js2/talimat @@ -0,0 +1,29 @@ +# Tanım: JavaScript yorumlayıcı ve kitaplığı +# URL: https://developer.mozilla.org/En/SpiderMonkey/1.8.5 +# Paketçi: milisarge +# Gerekler: libffi nspr zip python + +isim=js2 +surum=24.2.0 +devir=1 +kaynak=( http://ftp.mozilla.org/pub/mozilla.org/js/mozjs-$surum.tar.bz2 ) + +derle() { +cd mozjs-$surum/js/src + +sed -i 's/(defined\((@TEMPLATE_FILE)\))/\1/' config/milestone.pl + +SHELL=/bin/bash \ +./configure --prefix=/usr \ + --enable-readline \ + --enable-threadsafe \ + --with-system-ffi \ + --with-system-nspr +make +make DESTDIR=$PKG install + +find $PKG/usr/include/mozjs-24/ \ + $PKG/usr/lib/libmozjs-24.a \ + $PKG/usr/lib/pkgconfig/mozjs-24.pc \ + -type f -exec chmod -v 644 {} \; +} diff --git a/talimatname/genel/j/js38/mozjs38-1269317.patch b/talimatname/genel/j/js38/mozjs38-1269317.patch new file mode 100644 index 000000000..a3a57d544 --- /dev/null +++ b/talimatname/genel/j/js38/mozjs38-1269317.patch @@ -0,0 +1,122 @@ +--- a/js/src/jit/RegisterSets.h 2017-02-10 17:33:06.210702431 -0800 ++++ b/js/src/jit/RegisterSets.h 2017-02-10 17:43:52.877514146 -0800 +@@ -7,7 +7,6 @@ + #ifndef jit_RegisterSets_h + #define jit_RegisterSets_h + +-#include "mozilla/Alignment.h" + #include "mozilla/MathAlgorithms.h" + + #include "jit/JitAllocPolicy.h" +@@ -26,8 +25,8 @@ + Code code_; + + public: +- AnyRegister() +- { } ++ AnyRegister() = default; ++ + explicit AnyRegister(Register gpr) { + code_ = gpr.code(); + } +@@ -156,7 +155,7 @@ + } + #endif + +- ValueOperand() {} ++ ValueOperand() = default; + }; + + // Registers to hold either either a typed or untyped value. +@@ -165,46 +164,25 @@ + // Type of value being stored. + MIRType type_; + +- // Space to hold either an AnyRegister or a ValueOperand. + union U { +- mozilla::AlignedStorage2 typed; +- mozilla::AlignedStorage2 value; ++ AnyRegister typed; ++ ValueOperand value; + } data; + +- AnyRegister& dataTyped() { +- MOZ_ASSERT(hasTyped()); +- return *data.typed.addr(); +- } +- ValueOperand& dataValue() { +- MOZ_ASSERT(hasValue()); +- return *data.value.addr(); +- } +- +- AnyRegister dataTyped() const { +- MOZ_ASSERT(hasTyped()); +- return *data.typed.addr(); +- } +- const ValueOperand& dataValue() const { +- MOZ_ASSERT(hasValue()); +- return *data.value.addr(); +- } +- + public: + +- TypedOrValueRegister() +- : type_(MIRType_None) +- {} ++ TypedOrValueRegister() = default; + + TypedOrValueRegister(MIRType type, AnyRegister reg) + : type_(type) + { +- dataTyped() = reg; ++ data.typed = reg; + } + + MOZ_IMPLICIT TypedOrValueRegister(ValueOperand value) + : type_(MIRType_Value) + { +- dataValue() = value; ++ data.value = value; + } + + MIRType type() const { +@@ -220,11 +198,13 @@ + } + + AnyRegister typedReg() const { +- return dataTyped(); ++ MOZ_ASSERT(hasTyped()); ++ return data.typed; + } + + ValueOperand valueReg() const { +- return dataValue(); ++ MOZ_ASSERT(hasValue()); ++ return data.value; + } + + AnyRegister scratchReg() { +@@ -240,19 +220,18 @@ + // Whether a constant value is being stored. + bool constant_; + +- // Space to hold either a Value or a TypedOrValueRegister. + union U { +- mozilla::AlignedStorage2 constant; +- mozilla::AlignedStorage2 reg; ++ Value constant; ++ TypedOrValueRegister reg; + } data; + + Value& dataValue() { + MOZ_ASSERT(constant()); +- return *data.constant.addr(); ++ return data.constant; + } + TypedOrValueRegister& dataReg() { + MOZ_ASSERT(!constant()); +- return *data.reg.addr(); ++ return data.reg; + } + + public: diff --git a/talimatname/genel/j/js38/mozjs38-copy-headers.patch b/talimatname/genel/j/js38/mozjs38-copy-headers.patch new file mode 100644 index 000000000..8c877b36d --- /dev/null +++ b/talimatname/genel/j/js38/mozjs38-copy-headers.patch @@ -0,0 +1,20 @@ +Tanım: Copy headers on install instead of symlinking +Author: Rico Tzschichholz +Forwarded: no +Last-Update: 2014-10-29 + +--- + +Index: b/python/mozbuild/mozbuild/backend/recursivemake.py +=================================================================== +--- a/python/mozbuild/mozbuild/backend/recursivemake.py ++++ b/python/mozbuild/mozbuild/backend/recursivemake.py +@@ -796,7 +796,7 @@ + return + + for source, dest, _ in self._walk_hierarchy(obj, exports): +- self._install_manifests['dist_include'].add_symlink(source, dest) ++ self._install_manifests['dist_include'].add_copy(source, dest) + + if not os.path.exists(source): + raise Exception('File listed in EXPORTS does not exist: %s' % source) diff --git a/talimatname/genel/j/js38/mozjs38-fix-tracelogger.patch b/talimatname/genel/j/js38/mozjs38-fix-tracelogger.patch new file mode 100644 index 000000000..6798d24a3 --- /dev/null +++ b/talimatname/genel/j/js38/mozjs38-fix-tracelogger.patch @@ -0,0 +1,603 @@ +# === Fix the SM38 tracelogger === +# This patch is a squashed version of several patches that were adapted +# to fix failing hunks. +# +# Applied in the following order, they are: +# * https://bugzilla.mozilla.org/show_bug.cgi?id=1223767 +# Assertion failure: i < size_, at js/src/vm/TraceLoggingTypes.h:210 +# Also fix stop-information to make reduce.py work correctly. +# * https://bugzilla.mozilla.org/show_bug.cgi?id=1227914 +# Limit the memory tracelogger can take. +# This causes tracelogger to flush data to the disk regularly and prevents out of +# memory issues if a lot of data gets logged. +# * https://bugzilla.mozilla.org/show_bug.cgi?id=1155618 +# Fix tracelogger destructor that touches possibly uninitialised hash table. +# * https://bugzilla.mozilla.org/show_bug.cgi?id=1223636 +# Don't treat extraTextId as containing only extra ids. +# This fixes an assertion failure: id == nextTextId at js/src/vm/TraceLoggingGraph.cpp +# * https://bugzilla.mozilla.org/show_bug.cgi?id=1227028 +# Fix when to keep the payload of a TraceLogger event. +# This fixes an assertion failure: textId < uint32_t(1 << 31) at js/src/vm/TraceLoggingGraph.h +# * https://bugzilla.mozilla.org/show_bug.cgi?id=1266649 +# Handle failing to add to pointermap gracefully. +# * https://bugzilla.mozilla.org/show_bug.cgi?id=1280648 +# Don't cache based on pointers to movable GC things. +# * https://bugzilla.mozilla.org/show_bug.cgi?id=1224123 +# Fix the use of LastEntryId in tracelogger.h. +# * https://bugzilla.mozilla.org/show_bug.cgi?id=1231170 +# Use size in debugger instead of the current id to track last logged item. +# * https://bugzilla.mozilla.org/show_bug.cgi?id=1221844 +# Move TraceLogger_Invalidation to LOG_ITEM. +# Add some debug checks to logTimestamp. +# * https://bugzilla.mozilla.org/show_bug.cgi?id=1255766 +# Also mark resizing of memory. +# * https://bugzilla.mozilla.org/show_bug.cgi?id=1259403 +# Only increase capacity by multiples of 2. +# Always make sure there are 3 free slots for events. +# === + +diff --git a/js/src/jit-test/tests/tracelogger/bug1231170.js b/js/src/jit-test/tests/tracelogger/bug1231170.js +new file mode 100644 +index 0000000..023e93e +--- /dev/null ++++ b/js/src/jit-test/tests/tracelogger/bug1231170.js +@@ -0,0 +1,3 @@ ++var du = new Debugger(); ++if (typeof du.drainTraceLogger === "function") ++ du.drainTraceLogger(); +diff --git a/js/src/jit-test/tests/tracelogger/bug1266649.js b/js/src/jit-test/tests/tracelogger/bug1266649.js +new file mode 100644 +index 0000000..81ae7ad +--- /dev/null ++++ b/js/src/jit-test/tests/tracelogger/bug1266649.js +@@ -0,0 +1,10 @@ ++ ++var du = new Debugger(); ++if (typeof du.setupTraceLogger === "function" && ++ typeof oomTest === 'function') ++{ ++ du.setupTraceLogger({ ++ Scripts: true ++ }) ++ oomTest(() => function(){}); ++} +diff --git a/js/src/jit/Ion.cpp b/js/src/jit/Ion.cpp +index 93e2fda..09049d6 100644 +--- a/js/src/jit/Ion.cpp ++++ b/js/src/jit/Ion.cpp +@@ -1055,6 +1055,8 @@ IonScript::Destroy(FreeOp* fop, IonScript* script) + + script->destroyCaches(); + script->unlinkFromRuntime(fop); ++ // Frees the potential event we have set. ++ script->traceLoggerScriptEvent_ = TraceLoggerEvent(); + fop->free_(script); + } + +diff --git a/js/src/vm/Debugger.cpp b/js/src/vm/Debugger.cpp +index 26262fd..af7f313 100644 +--- a/js/src/vm/Debugger.cpp ++++ b/js/src/vm/Debugger.cpp +@@ -369,10 +369,10 @@ Debugger::Debugger(JSContext* cx, NativeObject* dbg) + objects(cx), + environments(cx), + #ifdef NIGHTLY_BUILD +- traceLoggerLastDrainedId(0), ++ traceLoggerLastDrainedSize(0), + traceLoggerLastDrainedIteration(0), + #endif +- traceLoggerScriptedCallsLastDrainedId(0), ++ traceLoggerScriptedCallsLastDrainedSize(0), + traceLoggerScriptedCallsLastDrainedIteration(0) + { + assertSameCompartment(cx, dbg); +@@ -3907,9 +3907,9 @@ Debugger::drainTraceLogger(JSContext* cx, unsigned argc, Value* vp) + size_t num; + TraceLoggerThread* logger = TraceLoggerForMainThread(cx->runtime()); + bool lostEvents = logger->lostEvents(dbg->traceLoggerLastDrainedIteration, +- dbg->traceLoggerLastDrainedId); ++ dbg->traceLoggerLastDrainedSize); + EventEntry* events = logger->getEventsStartingAt(&dbg->traceLoggerLastDrainedIteration, +- &dbg->traceLoggerLastDrainedId, ++ &dbg->traceLoggerLastDrainedSize, + &num); + + RootedObject array(cx, NewDenseEmptyArray(cx)); +@@ -4002,10 +4002,10 @@ Debugger::drainTraceLoggerScriptCalls(JSContext* cx, unsigned argc, Value* vp) + size_t num; + TraceLoggerThread* logger = TraceLoggerForMainThread(cx->runtime()); + bool lostEvents = logger->lostEvents(dbg->traceLoggerScriptedCallsLastDrainedIteration, +- dbg->traceLoggerScriptedCallsLastDrainedId); ++ dbg->traceLoggerScriptedCallsLastDrainedSize); + EventEntry* events = logger->getEventsStartingAt( + &dbg->traceLoggerScriptedCallsLastDrainedIteration, +- &dbg->traceLoggerScriptedCallsLastDrainedId, ++ &dbg->traceLoggerScriptedCallsLastDrainedSize, + &num); + + RootedObject array(cx, NewDenseEmptyArray(cx)); +diff --git a/js/src/vm/Debugger.h b/js/src/vm/Debugger.h +index 8cac36a..c92d685 100644 +--- a/js/src/vm/Debugger.h ++++ b/js/src/vm/Debugger.h +@@ -314,10 +314,10 @@ class Debugger : private mozilla::LinkedListElement + * lost events. + */ + #ifdef NIGHTLY_BUILD +- uint32_t traceLoggerLastDrainedId; ++ uint32_t traceLoggerLastDrainedSize; + uint32_t traceLoggerLastDrainedIteration; + #endif +- uint32_t traceLoggerScriptedCallsLastDrainedId; ++ uint32_t traceLoggerScriptedCallsLastDrainedSize; + uint32_t traceLoggerScriptedCallsLastDrainedIteration; + + class FrameRange; +diff --git a/js/src/vm/TraceLogging.cpp b/js/src/vm/TraceLogging.cpp +index 6715b36..9766a6f 100644 +--- a/js/src/vm/TraceLogging.cpp ++++ b/js/src/vm/TraceLogging.cpp +@@ -131,7 +131,7 @@ TraceLoggerThread::init() + { + if (!pointerMap.init()) + return false; +- if (!extraTextId.init()) ++ if (!textIdPayloads.init()) + return false; + if (!events.init()) + return false; +@@ -185,10 +185,10 @@ TraceLoggerThread::~TraceLoggerThread() + graph = nullptr; + } + +- for (TextIdHashMap::Range r = extraTextId.all(); !r.empty(); r.popFront()) +- js_delete(r.front().value()); +- extraTextId.finish(); +- pointerMap.finish(); ++ if (textIdPayloads.initialized()) { ++ for (TextIdHashMap::Range r = textIdPayloads.all(); !r.empty(); r.popFront()) ++ js_delete(r.front().value()); ++ } + } + + bool +@@ -287,7 +287,7 @@ TraceLoggerThread::eventText(uint32_t id) + if (id < TraceLogger_Last) + return TLTextIdString(static_cast(id)); + +- TextIdHashMap::Ptr p = extraTextId.lookup(id); ++ TextIdHashMap::Ptr p = textIdPayloads.lookup(id); + MOZ_ASSERT(p); + + return p->value()->string(); +@@ -341,13 +341,15 @@ TraceLoggerThread::extractScriptDetails(uint32_t textId, const char** filename, + TraceLoggerEventPayload* + TraceLoggerThread::getOrCreateEventPayload(TraceLoggerTextId textId) + { +- TextIdHashMap::AddPtr p = extraTextId.lookupForAdd(textId); +- if (p) ++ TextIdHashMap::AddPtr p = textIdPayloads.lookupForAdd(textId); ++ if (p) { ++ MOZ_ASSERT(p->value()->textId() == textId); // Sanity check. + return p->value(); ++ } + + TraceLoggerEventPayload* payload = js_new(textId, (char*)nullptr); + +- if (!extraTextId.add(p, textId, payload)) ++ if (!textIdPayloads.add(p, textId, payload)) + return nullptr; + + return payload; +@@ -357,8 +359,10 @@ TraceLoggerEventPayload* + TraceLoggerThread::getOrCreateEventPayload(const char* text) + { + PointerHashMap::AddPtr p = pointerMap.lookupForAdd((const void*)text); +- if (p) ++ if (p) { ++ MOZ_ASSERT(p->value()->textId() < nextTextId); // Sanity check. + return p->value(); ++ } + + size_t len = strlen(text); + char* str = js_pod_malloc(len + 1); +@@ -369,7 +373,7 @@ TraceLoggerThread::getOrCreateEventPayload(const char* text) + MOZ_ASSERT(ret == len); + MOZ_ASSERT(strlen(str) == len); + +- uint32_t textId = extraTextId.count() + TraceLogger_Last; ++ uint32_t textId = nextTextId; + + TraceLoggerEventPayload* payload = js_new(textId, str); + if (!payload) { +@@ -377,17 +381,19 @@ TraceLoggerThread::getOrCreateEventPayload(const char* text) + return nullptr; + } + +- if (!extraTextId.putNew(textId, payload)) { ++ if (!textIdPayloads.putNew(textId, payload)) { + js_delete(payload); + return nullptr; + } + +- if (!pointerMap.add(p, text, payload)) +- return nullptr; +- + if (graph.get()) + graph->addTextId(textId, str); + ++ nextTextId++; ++ ++ if (!pointerMap.add(p, text, payload)) ++ return nullptr; ++ + return payload; + } + +@@ -407,9 +413,14 @@ TraceLoggerThread::getOrCreateEventPayload(TraceLoggerTextId type, const char* f + if (!traceLoggerState->isTextIdEnabled(type)) + return getOrCreateEventPayload(type); + +- PointerHashMap::AddPtr p = pointerMap.lookupForAdd(ptr); +- if (p) +- return p->value(); ++ PointerHashMap::AddPtr p; ++ if (ptr) { ++ p = pointerMap.lookupForAdd(ptr); ++ if (p) { ++ MOZ_ASSERT(p->value()->textId() < nextTextId); // Sanity check. ++ return p->value(); ++ } ++ } + + // Compute the length of the string to create. + size_t lenFilename = strlen(filename); +@@ -428,24 +439,28 @@ TraceLoggerThread::getOrCreateEventPayload(TraceLoggerTextId type, const char* f + MOZ_ASSERT(ret == len); + MOZ_ASSERT(strlen(str) == len); + +- uint32_t textId = extraTextId.count() + TraceLogger_Last; ++ uint32_t textId = nextTextId; + TraceLoggerEventPayload* payload = js_new(textId, str); + if (!payload) { + js_free(str); + return nullptr; + } + +- if (!extraTextId.putNew(textId, payload)) { ++ if (!textIdPayloads.putNew(textId, payload)) { + js_delete(payload); + return nullptr; + } + +- if (!pointerMap.add(p, ptr, payload)) +- return nullptr; +- + if (graph.get()) + graph->addTextId(textId, str); + ++ nextTextId++; ++ ++ if (ptr) { ++ if (!pointerMap.add(p, ptr, payload)) ++ return nullptr; ++ } ++ + return payload; + } + +@@ -453,14 +468,14 @@ TraceLoggerEventPayload* + TraceLoggerThread::getOrCreateEventPayload(TraceLoggerTextId type, JSScript* script) + { + return getOrCreateEventPayload(type, script->filename(), script->lineno(), script->column(), +- script); ++ nullptr); + } + + TraceLoggerEventPayload* + TraceLoggerThread::getOrCreateEventPayload(TraceLoggerTextId type, + const JS::ReadOnlyCompileOptions& script) + { +- return getOrCreateEventPayload(type, script.filename(), script.lineno, script.column, &script); ++ return getOrCreateEventPayload(type, script.filename(), script.lineno, script.column, nullptr); + } + + void +@@ -485,7 +500,7 @@ TraceLoggerThread::startEvent(uint32_t id) + if (!traceLoggerState->isTextIdEnabled(id)) + return; + +- logTimestamp(id); ++ log(id); + } + + void +@@ -510,7 +525,7 @@ TraceLoggerThread::stopEvent(uint32_t id) + if (!traceLoggerState->isTextIdEnabled(id)) + return; + +- logTimestamp(TraceLogger_Stop); ++ log(TraceLogger_Stop); + } + + void +@@ -522,23 +537,57 @@ TraceLoggerThread::logTimestamp(TraceLoggerTextId id) + void + TraceLoggerThread::logTimestamp(uint32_t id) + { ++ MOZ_ASSERT(id > TraceLogger_LastTreeItem && id < TraceLogger_Last); ++ log(id); ++} ++ ++void ++TraceLoggerThread::log(uint32_t id) ++{ + if (enabled == 0) + return; + + MOZ_ASSERT(traceLoggerState); +- if (!events.ensureSpaceBeforeAdd()) { ++ ++ // We request for 3 items to add, since if we don't have enough room ++ // we record the time it took to make more place. To log this information ++ // we need 2 extra free entries. ++ if (!events.hasSpaceForAdd(3)) { + uint64_t start = rdtsc() - traceLoggerState->startupTime; + +- if (graph.get()) +- graph->log(events); ++ if (!events.ensureSpaceBeforeAdd(3)) { ++ if (graph.get()) ++ graph->log(events); ++ ++ iteration_++; ++ events.clear(); ++ ++ // Remove the item in the pointerMap for which the payloads ++ // have no uses anymore ++ for (PointerHashMap::Enum e(pointerMap); !e.empty(); e.popFront()) { ++ if (e.front().value()->uses() != 0) ++ continue; ++ ++ TextIdHashMap::Ptr p = textIdPayloads.lookup(e.front().value()->textId()); ++ MOZ_ASSERT(p); ++ textIdPayloads.remove(p); ++ ++ e.removeFront(); ++ } + +- iteration_++; +- events.clear(); ++ // Free all payloads that have no uses anymore. ++ for (TextIdHashMap::Enum e(textIdPayloads); !e.empty(); e.popFront()) { ++ if (e.front().value()->uses() == 0) { ++ js_delete(e.front().value()); ++ e.removeFront(); ++ } ++ } ++ } + + // Log the time it took to flush the events as being from the + // Tracelogger. + if (graph.get()) { +- MOZ_ASSERT(events.capacity() > 2); ++ MOZ_ASSERT(events.hasSpaceForAdd(2)); + EventEntry& entryStart = events.pushUninitialized(); + entryStart.time = start; + entryStart.textId = TraceLogger_Internal; +@@ -548,13 +597,6 @@ TraceLoggerThread::logTimestamp(uint32_t id) + entryStop.textId = TraceLogger_Stop; + } + +- // Free all TextEvents that have no uses anymore. +- for (TextIdHashMap::Enum e(extraTextId); !e.empty(); e.popFront()) { +- if (e.front().value()->uses() == 0) { +- js_delete(e.front().value()); +- e.removeFront(); +- } +- } + } + + uint64_t time = rdtsc() - traceLoggerState->startupTime; +@@ -956,3 +998,16 @@ TraceLoggerEvent::~TraceLoggerEvent() + if (payload_) + payload_->release(); + } ++ ++TraceLoggerEvent& ++TraceLoggerEvent::operator=(const TraceLoggerEvent& other) ++{ ++ if (hasPayload()) ++ payload()->release(); ++ if (other.hasPayload()) ++ other.payload()->use(); ++ ++ payload_ = other.payload_; ++ ++ return *this; ++} +diff --git a/js/src/vm/TraceLogging.h b/js/src/vm/TraceLogging.h +index a124dcb..91a1eb0 100644 +--- a/js/src/vm/TraceLogging.h ++++ b/js/src/vm/TraceLogging.h +@@ -110,6 +110,9 @@ class TraceLoggerEvent { + bool hasPayload() const { + return !!payload_; + } ++ ++ TraceLoggerEvent& operator=(const TraceLoggerEvent& other); ++ TraceLoggerEvent(const TraceLoggerEvent& event) = delete; + }; + + /** +@@ -130,6 +133,10 @@ class TraceLoggerEventPayload { + uses_(0) + { } + ++ ~TraceLoggerEventPayload() { ++ MOZ_ASSERT(uses_ == 0); ++ } ++ + uint32_t textId() { + return textId_; + } +@@ -166,7 +173,8 @@ class TraceLoggerThread + mozilla::UniquePtr graph; + + PointerHashMap pointerMap; +- TextIdHashMap extraTextId; ++ TextIdHashMap textIdPayloads; ++ uint32_t nextTextId; + + ContinuousSpace events; + +@@ -181,6 +189,7 @@ class TraceLoggerThread + : enabled(0), + failed(false), + graph(), ++ nextTextId(TraceLogger_Last), + iteration_(0), + top(nullptr) + { } +@@ -195,22 +204,22 @@ class TraceLoggerThread + bool enable(JSContext* cx); + bool disable(); + +- // Given the previous iteration and lastEntryId, return an array of events ++ // Given the previous iteration and size, return an array of events + // (there could be lost events). At the same time update the iteration and +- // lastEntry and gives back how many events there are. +- EventEntry* getEventsStartingAt(uint32_t* lastIteration, uint32_t* lastEntryId, size_t* num) { ++ // size and gives back how many events there are. ++ EventEntry* getEventsStartingAt(uint32_t* lastIteration, uint32_t* lastSize, size_t* num) { + EventEntry* start; + if (iteration_ == *lastIteration) { +- MOZ_ASSERT(events.lastEntryId() >= *lastEntryId); +- *num = events.lastEntryId() - *lastEntryId; +- start = events.data() + *lastEntryId + 1; ++ MOZ_ASSERT(*lastSize <= events.size()); ++ *num = events.size() - *lastSize; ++ start = events.data() + *lastSize; + } else { +- *num = events.lastEntryId() + 1; ++ *num = events.size(); + start = events.data(); + } + + *lastIteration = iteration_; +- *lastEntryId = events.lastEntryId(); ++ *lastSize = events.size(); + return start; + } + +@@ -220,16 +229,16 @@ class TraceLoggerThread + const char** lineno, size_t* lineno_len, const char** colno, + size_t* colno_len); + +- bool lostEvents(uint32_t lastIteration, uint32_t lastEntryId) { ++ bool lostEvents(uint32_t lastIteration, uint32_t lastSize) { + // If still logging in the same iteration, there are no lost events. + if (lastIteration == iteration_) { +- MOZ_ASSERT(lastEntryId <= events.lastEntryId()); ++ MOZ_ASSERT(lastSize <= events.size()); + return false; + } + +- // When proceeded to the next iteration and lastEntryId points to +- // the maximum capacity there are no logs that are lost. +- if (lastIteration + 1 == iteration_ && lastEntryId == events.capacity()) ++ // If we are in a consecutive iteration we are only sure we didn't lose any events, ++ // when the lastSize equals the maximum size 'events' can get. ++ if (lastIteration == iteration_ - 1 && lastSize == events.maxSize()) + return false; + + return true; +@@ -268,6 +277,7 @@ class TraceLoggerThread + void stopEvent(uint32_t id); + private: + void stopEvent(); ++ void log(uint32_t id); + + public: + static unsigned offsetOfEnabled() { +diff --git a/js/src/vm/TraceLoggingGraph.cpp b/js/src/vm/TraceLoggingGraph.cpp +index d1b7f2e..a4eb273 100644 +--- a/js/src/vm/TraceLoggingGraph.cpp ++++ b/js/src/vm/TraceLoggingGraph.cpp +@@ -276,7 +276,7 @@ TraceLoggerGraph::flush() + if (bytesWritten < tree.size()) + return false; + +- treeOffset += tree.lastEntryId(); ++ treeOffset += tree.size(); + tree.clear(); + } + +@@ -359,7 +359,7 @@ TraceLoggerGraph::startEventInternal(uint32_t id, uint64_t timestamp) + + if (parent.lastChildId() == 0) { + MOZ_ASSERT(!entry.hasChildren()); +- MOZ_ASSERT(parent.treeId() == tree.lastEntryId() + treeOffset); ++ MOZ_ASSERT(parent.treeId() == treeOffset + tree.size() - 1); + + if (!updateHasChildren(parent.treeId())) + return false; +diff --git a/js/src/vm/TraceLoggingTypes.h b/js/src/vm/TraceLoggingTypes.h +index f1c9d0c..10b76d6 100644 +--- a/js/src/vm/TraceLoggingTypes.h ++++ b/js/src/vm/TraceLoggingTypes.h +@@ -21,7 +21,6 @@ + _(Internal) \ + _(Interpreter) \ + _(InlinedScripts) \ +- _(Invalidation) \ + _(IonCompilation) \ + _(IonCompilationPaused) \ + _(IonLinking) \ +@@ -60,6 +59,7 @@ + + #define TRACELOGGER_LOG_ITEMS(_) \ + _(Bailout) \ ++ _(Invalidation) \ + _(Disable) \ + _(Enable) \ + _(Stop) +@@ -130,6 +130,9 @@ class ContinuousSpace { + uint32_t size_; + uint32_t capacity_; + ++ // The maximum amount of ram memory a continuous space structure can take (in bytes). ++ static const uint32_t LIMIT = 200 * 1024 * 1024; ++ + public: + ContinuousSpace () + : data_(nullptr) +@@ -151,6 +154,10 @@ class ContinuousSpace { + data_ = nullptr; + } + ++ static uint32_t maxSize() { ++ return LIMIT / sizeof(T); ++ } ++ + T* data() { + return data_; + } +@@ -187,11 +194,14 @@ class ContinuousSpace { + if (hasSpaceForAdd(count)) + return true; + ++ // Limit the size of a continuous buffer. ++ if (size_ + count > maxSize()) ++ return false; ++ + uint32_t nCapacity = capacity_ * 2; +- if (size_ + count > nCapacity) +- nCapacity = size_ + count; +- T* entries = (T*) js_realloc(data_, nCapacity * sizeof(T)); ++ nCapacity = (nCapacity < maxSize()) ? nCapacity : maxSize(); + ++ T* entries = (T*) js_realloc(data_, nCapacity * sizeof(T)); + if (!entries) + return false; + diff --git a/talimatname/genel/j/js38/mozjs38-install-name.patch b/talimatname/genel/j/js38/mozjs38-install-name.patch new file mode 100644 index 000000000..b6f25b266 --- /dev/null +++ b/talimatname/genel/j/js38/mozjs38-install-name.patch @@ -0,0 +1,11 @@ +--- a/config/rules.mk 2016-11-09 23:51:17.000000000 -0800 ++++ b/config/rules.mk 2016-11-09 23:54:23.000000000 -0800 +@@ -393,7 +393,7 @@ + ifdef IS_COMPONENT + EXTRA_DSO_LDOPTS += -bundle + else +-EXTRA_DSO_LDOPTS += -dynamiclib -install_name @executable_path/$(SHARED_LIBRARY) -compatibility_version 1 -current_version 1 -single_module ++EXTRA_DSO_LDOPTS += -dynamiclib -install_name $(abspath $(prefix))/lib/$(SHARED_LIBRARY) -compatibility_version 1 -current_version 1 -single_module + endif + endif + endif diff --git a/talimatname/genel/j/js38/talimat b/talimatname/genel/j/js38/talimat new file mode 100644 index 000000000..7312e9fcd --- /dev/null +++ b/talimatname/genel/j/js38/talimat @@ -0,0 +1,37 @@ +# Tanım: JavaScript tercüman ve kütüphaneleri - Sürüm 38 +# URL: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/38 +# Paketçi: milisarge +# Gerekler: nspr icu libffi python zip + +isim=js38 +surum=38.8.0 +devir=2 +kaynak=(https://ftp.mozilla.org/pub/firefox/releases/38.8.0esr/source/firefox-38.8.0esr.source.tar.bz2 + mozjs38-fix-tracelogger.patch + mozjs38-install-name.patch + mozjs38-copy-headers.patch + mozjs38-1269317.patch) + +derle() { + cd mozilla-esr38 + patch -Np1 -i $SRC/mozjs38-fix-tracelogger.patch + patch -Np1 -i $SRC/mozjs38-install-name.patch + patch -Np1 -i $SRC/mozjs38-copy-headers.patch + patch -Np1 -i $SRC/mozjs38-1269317.patch + unset CPPFLAGS + CXXFLAGS+=' -fno-delete-null-pointer-checks -fpermissive -fno-tree-vrp -fno-strict-aliasing' + CFLAGS+=' -fno-delete-null-pointer-checks -fpermissive -fno-tree-vrp -fno-strict-aliasing' + export PYTHON=/usr/bin/python2 + export SHELL=/bin/sh + + cd $SRC/mozilla-esr38/js/src + ./configure --prefix=/usr --with-system-nspr --enable-system-ffi \ + --with-system-zlib --with-system-icu --with-intl-api --enable-ctypes \ + --enable-threadsafe --enable-system-ffi --enable-shared-js --enable-gcgenerational --disable-optimize --enable-pie + + SHELL=/bin/sh make || SHELL=/bin/sh make + SHELL=/bin/sh make DESTDIR="$PKG" install + rm -f "$PKG"/usr/lib/*.ajs + find "$PKG"/usr/{lib/pkgconfig,include} -type f -exec chmod -x {} + + mv $PKG/usr/lib/pkgconfig/js.pc $PKG/usr/lib/pkgconfig/mozjs-38.pc +} diff --git a/talimatname/genel/j/js52/mozjs52-disable-mozglue.patch b/talimatname/genel/j/js52/mozjs52-disable-mozglue.patch new file mode 100644 index 000000000..8355cf4b0 --- /dev/null +++ b/talimatname/genel/j/js52/mozjs52-disable-mozglue.patch @@ -0,0 +1,66 @@ +From 7e6d628456af3e99ebcb9a01a27e1461585082a4 Mon Sep 17 00:00:00 2001 +From: Till Schneidereit +Date: Thu, 1 Oct 2015 12:59:09 +0200 +Subject: [PATCH] Disable MOZ_GLUE_IN_PROGRAM in stand-alone builds on all + platforms + +Otherwise, build fails not being able to find HashBytes. + +Patch ported forward to mozjs52 by Philip Chimento +. + +https://bugzilla.mozilla.org/show_bug.cgi?id=1176787 +--- + js/src/old-configure.in | 23 ++++++++++++++--------- + mozglue/build/moz.build | 2 +- + 2 files changed, 15 insertions(+), 10 deletions(-) + +diff --git a/js/src/old-configure.in b/js/src/old-configure.in +index 1c5c9e21..ff0617e3 100644 +--- a/js/src/old-configure.in ++++ b/js/src/old-configure.in +@@ -1623,16 +1623,21 @@ dnl ======================================================== + dnl = Enable jemalloc + dnl ======================================================== + +-case "${OS_TARGET}" in +-Android|WINNT|Darwin) ++dnl In stand-alone builds we always only want to link executables against mozglue. ++if test "$JS_STANDALONE"; then + MOZ_GLUE_IN_PROGRAM= +- ;; +-*) +- dnl On !Android !Windows !OSX, we only want to link executables against mozglue +- MOZ_GLUE_IN_PROGRAM=1 +- AC_DEFINE(MOZ_GLUE_IN_PROGRAM) +- ;; +-esac ++else ++ case "${OS_TARGET}" in ++ Android|WINNT|Darwin) ++ MOZ_GLUE_IN_PROGRAM= ++ ;; ++ *) ++ dnl On !Android !Windows !OSX, we only want to link executables against mozglue ++ MOZ_GLUE_IN_PROGRAM=1 ++ AC_DEFINE(MOZ_GLUE_IN_PROGRAM) ++ ;; ++ esac ++fi + + if test "$MOZ_MEMORY"; then + if test "x$MOZ_DEBUG" = "x1"; then +diff --git a/mozglue/build/moz.build b/mozglue/build/moz.build +index d2897477..e3be5a2b 100644 +--- a/mozglue/build/moz.build ++++ b/mozglue/build/moz.build +@@ -6,7 +6,7 @@ + + # Build mozglue as a shared lib on Windows, OSX and Android. + # If this is ever changed, update MOZ_SHARED_MOZGLUE in browser/installer/Makefile.in +-if CONFIG['OS_TARGET'] in ('WINNT', 'Darwin', 'Android'): ++if CONFIG['OS_TARGET'] in ('WINNT', 'Darwin', 'Android') and not CONFIG['JS_STANDALONE']: + SharedLibrary('mozglue') + else: + Library('mozglue') + diff --git a/talimatname/genel/j/js52/talimat b/talimatname/genel/j/js52/talimat new file mode 100644 index 000000000..8a5ab02ac --- /dev/null +++ b/talimatname/genel/j/js52/talimat @@ -0,0 +1,37 @@ +# Tanım: JavaScript interpreter and libraries +# URL: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey +# Paketçi: milisarge +# Gerekler: python zip autoconf2 nspr +# Grup: + +isim=js52 +surum=52.3.0esr +devir=1 +kaynak=(https://ftp.mozilla.org/pub/firefox/releases/52.3.0esr/source/firefox-52.3.0esr.source.tar.xz + mozjs52-disable-mozglue.patch) + +derle() { + cd firefox-$surum + # Workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=1236085 + patch -p1 -i ../mozjs52-disable-mozglue.patch + cd js/src + export SHELL=/bin/sh + rm configure + autoconf-2.13 + rm -r editline + rm -r ctypes/libffi + [[ -z "$MOZJS_DEBUG" ]] || DBG_OPTIONS='--enable-debug --disable-optimize' + cd ${SRC}/firefox-$surum/js/src + # spidermonkey is broken with ICU 59 and it won't be fix on FF52 + # https://bugzilla.mozilla.org/show_bug.cgi?id=1353650 + ./configure --prefix=/usr --with-system-nspr \ + --enable-readline $DBG_OPTIONS + + SHELL=/bin/sh make -j1 + #cd "$SRC/firefox-$surum/js/src/tests" + #python2 jstests.py ../js/src/js + #cd "$SRC/firefox-$surum/js/src/jit-test" + #python2 jit_test.py ../js/src/js + SHELL=/bin/sh make -j1 DESTDIR="$PKG" install + install -Dm644 mozglue/build/libmozglue.a "$PKG"/usr/lib/libmozglue.a +} diff --git a/talimatname/genel/j/json-c/talimat b/talimatname/genel/j/json-c/talimat new file mode 100644 index 000000000..66131c265 --- /dev/null +++ b/talimatname/genel/j/json-c/talimat @@ -0,0 +1,18 @@ +# Tanım: C'de bir JSON uygulaması +# URL: https://github.com/json-c/json-c/wiki +# Paketçi: milisarge +# Gerekler: + +isim=json-c +surum=0.12 +devir=1 +kaynak=(https://s3.amazonaws.com/${isim}_releases/releases/$isim-$surum.tar.gz) + +derle(){ + cd $isim-$surum + CFLAGS="$CFLAGS -Wno-error" + ./configure --prefix=/usr \ + --disable-static + make check + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/j/json-glib/talimat b/talimatname/genel/j/json-glib/talimat new file mode 100644 index 000000000..7fd6a77b5 --- /dev/null +++ b/talimatname/genel/j/json-glib/talimat @@ -0,0 +1,16 @@ +# Tanım: JavaScript Object Notation (JSON) için serileştirme ve serileştirmeden çıkarma desteği sağlayan bir kütüphanedir. +# URL: http://live.gnome.org/JsonGlib +# Paketçi: milisarge +# Gerekler: gobject-introspection + +isim=json-glib +surum=1.2.8 +devir=1 +kaynak=( http://ftp.gnome.org/pub/gnome/sources/$isim/${surum%.*}/$isim-$surum.tar.xz ) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/j/jsoncpp/talimat b/talimatname/genel/j/jsoncpp/talimat new file mode 100644 index 000000000..887db1567 --- /dev/null +++ b/talimatname/genel/j/jsoncpp/talimat @@ -0,0 +1,28 @@ +# Tanım: JSON C++ kütüphanesi +# URL: http://jsoncpp.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: cmake + +isim=jsoncpp +surum=1.8.4 +devir=1 +kaynak=(https://github.com/open-source-parsers/$isim/archive/$surum.tar.gz::${isim}-${surum}.tar.gz) + +derle() { + cd ${isim}-${surum} + mkdir -p build + #python3 doxybuild.py --with-dot + cd build + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_SHARED_LIBS=ON \ + -DBUILD_STATIC_LIBS=ON \ + .. + make + cd .. + make -C build DESTDIR="${PKG}" install + install -Dm 644 LICENSE -t "${PKG}/usr/share/licenses/${isim}" +} diff --git a/talimatname/genel/j/jumpnbump/desktop.patch b/talimatname/genel/j/jumpnbump/desktop.patch new file mode 100644 index 000000000..7de78a86b --- /dev/null +++ b/talimatname/genel/j/jumpnbump/desktop.patch @@ -0,0 +1,14 @@ +--- jumpnbump-menu.desktop.orig 2017-05-21 20:14:40.172306054 +0200 ++++ jumpnbump-menu.desktop 2017-05-21 20:15:00.565445873 +0200 +@@ -1,10 +1,10 @@ + [Desktop Entry] +-Name=Jump 'n Bump Menu ++Name=Jump 'n Bump +-Comment=Level selection and config menu for the Jump 'n Bump game ++Comment=Jump on your opponents to make them explode + GenericName=Launcher for Jump 'n Bump + Exec=jumpnbump-menu + Icon=jumpnbump + Terminal=false + Type=Application + Categories=Game;ArcadeGame; diff --git a/talimatname/genel/j/jumpnbump/menu.patch b/talimatname/genel/j/jumpnbump/menu.patch new file mode 100644 index 000000000..0fa3ab4e1 --- /dev/null +++ b/talimatname/genel/j/jumpnbump/menu.patch @@ -0,0 +1,31 @@ +--- jumpnbump_menu.py.pre.orig 2017-05-21 20:06:53.393232483 +0200 ++++ jumpnbump_menu.py.pre 2017-05-21 20:10:36.387911904 +0200 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python2 + + # Author: Martin Willemoes Hansen + # License: Gnu GPL +@@ -147,11 +147,8 @@ + + def get_level(): + level = [] +- if (mirror.get_active()): +- level.append('-mirror') +- else: +- level.append('-dat') +- level.append(choosen_level) ++ level.append('-dat') ++ level.append(choosen_level) + + return level + +@@ -224,6 +221,8 @@ + noflies = gui.get_widget('noflies') + withmusic = gui.get_widget('withmusic') + image = gui.get_widget('image') ++ mainwindow = gui.get_widget('main') ++ mainwindow.set_icon_from_file('/usr/share/icons/jumpnbump.png') + + gui.signal_autoconnect({'standalone_mode': standalone_mode, + 'client_mode': client_mode, diff --git a/talimatname/genel/j/jumpnbump/talimat b/talimatname/genel/j/jumpnbump/talimat new file mode 100644 index 000000000..b94f925da --- /dev/null +++ b/talimatname/genel/j/jumpnbump/talimat @@ -0,0 +1,22 @@ +# Tanım: Çok oyunculu tavşan oyunu +# URL: https://github.com/MCMic/jumpnbump +# Paketçi: milisarge +# Gerekler: sdl2 sdl2-mixer sdl2_net python-gtk + +isim=jumpnbump +surum=1.60 +devir=1 +kaynak=(https://gitlab.com/LibreGames/jumpnbump/uploads/9f3a356c52f433e3af10f1ef800fce5d/jumpnbump-$surum.tar.xz + menu.patch + desktop.patch) + +derle() { + cd $SRC/${isim}-${surum}/menu + patch -p0 < $SRC/menu.patch || return 1 + cd "${SRC}/${isim}-${surum}/" + make -j1 PREFIX=/usr + make PREFIX="${PKG}/usr/" install + cd ${PKG}/usr/share/applications/ + rm "jumpnbump.desktop" + patch -p0 < ${SRC}/desktop.patch || return 1 +} diff --git a/talimatname/genel/j/junit/talimat b/talimatname/genel/j/junit/talimat new file mode 100644 index 000000000..abd0c2220 --- /dev/null +++ b/talimatname/genel/j/junit/talimat @@ -0,0 +1,24 @@ +# Tanım: JUnit paketi, tekrarlanabilir testler yazmak ve çalıştırmak için basit, açık kaynaklı bir çerçeve içerir. Birim sınama çerçeveleri için xUnit mimarisinin bir örneğidir. JUnit özellikleri beklenen sonuçları test etmek için iddialar, ortak test verilerini paylaşmak için test fikstürleri ve testler çalıştırmak için test koşucuları içerir. +# URL: http://junit.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: apache-ant unzip + +isim=junit +surum=4.12 +devir=1 +kaynak=(https://github.com/junit-team/junit4/releases/download/r4.12/junit-4.12.jar + https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/hamcrest/hamcrest-1.3.tgz) + +derle() { + cd hamcrest-1.3 + install -dm755 $PKG/usr/share/java/hamcrest + for j in core library generator integration; do + cp hamcrest-${j}-1.3.jar $PKG/usr/share/java/hamcrest/${j}-1.3.jar + ln -s ${j}-1.3.jar $PKG/usr/share/java/hamcrest/${j}.jar + ln -s hamcrest/${j}-1.3.jar $PKG/usr/share/java/hamcrest-${j}.jar + done + cd .. + + install -D -m 644 $SRC/$isim-$surum.jar $PKG/usr/share/java/$isim-$surum.jar + ln -s $isim-$surum.jar $PKG/usr/share/java/$isim.jar +} diff --git a/talimatname/genel/j/jwm/jwm-tr.po b/talimatname/genel/j/jwm/jwm-tr.po new file mode 100644 index 000000000..b47551592 --- /dev/null +++ b/talimatname/genel/j/jwm/jwm-tr.po @@ -0,0 +1,449 @@ +msgid "" +msgstr "" +"Project-Id-Version: jwm 2.3.7\n" +"Report-Msgid-Bugs-To: cihanalk@gmail.com\n" +"POT-Creation-Date: 2017-07-22 00:02+0000\n" +"PO-Revision-Date: 2013-03-11 14:25+0100\n" +"Last-Translator: Cihan Alkan \n" +"Language-Team: Turkish\n" +"Language: tr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: src/action.c:44 +#, c-format +msgid "invalid action: \"%s\"" +msgstr "geçersiz eylem: \"%s\"" + +#: src/action.c:211 +#, c-format +msgid "action: root menu \"%s\" not defined" +msgstr "" + +#: src/background.c:137 +msgid "no value specified for background" +msgstr "arka plan için herhangi bir değer belirtilmemiş" + +#: src/background.c:149 +#, c-format +msgid "invalid background type: \"%s\"" +msgstr "geçersiz arkaplan türü: \"%s\"" + +#: src/background.c:294 +#, c-format +msgid "background image not found: \"%s\"" +msgstr "" + +#: src/client.c:905 +msgid "Kill this window?" +msgstr "" + +#: src/client.c:906 +msgid "This may cause data to be lost!" +msgstr "Bu verilerin kaybolmasına neden olabilir!" + +#: src/command.c:138 src/main.c:221 +#, c-format +msgid "exec failed: (%s) %s" +msgstr "" + +#: src/confirm.c:69 +msgid "OK" +msgstr "Tamam" + +#: src/confirm.c:74 +msgid "Cancel" +msgstr "İptal" + +#: src/confirm.c:308 +msgid "Confirm" +msgstr "Onayla" + +#: src/desktop.c:336 +msgid "empty Desktops Name tag" +msgstr "" + +#: src/dock.c:151 +msgid "only one Dock allowed" +msgstr "sadece bir Dock'a izin verilir" + +#: src/dock.c:232 +msgid "could not acquire system tray selection" +msgstr "sistem tepsisi seçimini alamadı" + +#: src/error.c:22 +#, c-format +msgid "JWM: error: " +msgstr "JWM: hata: " + +#: src/error.c:51 +#, c-format +msgid "JWM: warning: " +msgstr "JWM: uyarı: " + +#: src/error.c:77 +msgid "display is already managed" +msgstr "ekran zaten yönetiliyor" + +#: src/font.c:109 src/font.c:126 +#, c-format +msgid "could not load font: %s" +msgstr "" + +#: src/font.c:116 src/font.c:133 +#, c-format +msgid "could not load the default font: %s" +msgstr "" + +#: src/font.c:315 +msgid "empty Font tag" +msgstr "" + +#: src/group.c:115 +msgid "invalid group class" +msgstr "geçersiz grup sınıfı" + +#: src/group.c:126 +msgid "invalid group name" +msgstr "geçersiz grup adı" + +#: src/group.c:287 +#, c-format +msgid "invalid group desktop: %d" +msgstr "" + +#: src/image.c:220 +#, c-format +msgid "could not create read struct for PNG image: %s" +msgstr "" + +#: src/image.c:233 +#, c-format +msgid "error reading PNG image: %s" +msgstr "" + +#: src/image.c:241 +#, c-format +msgid "could not create info struct for PNG image: %s" +msgstr "" + +#: src/key.c:318 +msgid "Specified KeySym is not defined for any KeyCode" +msgstr "" + +#: src/key.c:326 +#, c-format +msgid "modifier not found for keysym 0x%0x" +msgstr "" + +#: src/key.c:356 +#, c-format +msgid "invalid modifier: \"%c\"" +msgstr "" + +#: src/key.c:371 +#, c-format +msgid "invalid key symbol: \"%s\"" +msgstr "" + +#: src/key.c:452 +msgid "neither key nor keycode specified for Key" +msgstr "" + +#: src/key.c:467 +#, c-format +msgid "key binding: root menu \"%s\" not defined" +msgstr "" + +#: src/lex.c:201 +#, c-format +msgid "%s[%u]: close tag \"%s\" does not match open tag \"%s\"" +msgstr "" + +#: src/lex.c:207 +#, c-format +msgid "%s[%u]: unexpected and invalid close tag" +msgstr "" + +#: src/lex.c:213 +#, c-format +msgid "%s[%u]: close tag \"%s\" without open tag" +msgstr "" + +#: src/lex.c:216 +#, c-format +msgid "%s[%u]: invalid close tag" +msgstr "" + +#: src/lex.c:234 +#, c-format +msgid "%s[%u]: invalid open tag" +msgstr "" + +#: src/lex.c:250 +#, c-format +msgid "%s[%u]: invalid tag" +msgstr "" + +#: src/lex.c:308 +#, c-format +msgid "%s[%u]: unexpected text: \"%s\"" +msgstr "" + +#: src/lex.c:367 +#, c-format +msgid "%s[%d]: invalid entity: \"%.8s\"" +msgstr "" + +#: src/lex.c:473 src/parse.c:1893 +msgid "out of memory" +msgstr "bellek taştı" + +#: src/parse.c:228 +#, c-format +msgid "could not open %s or %s" +msgstr "" + +#: src/parse.c:246 +#, c-format +msgid "include depth (%d) exceeded" +msgstr "" + +#: src/parse.c:384 +#, c-format +msgid "invalid start tag: %s" +msgstr "" + +#: src/parse.c:774 +#, c-format +msgid "invalid include: %s" +msgstr "" + +#: src/parse.c:824 +msgid "no action specified for Key" +msgstr "" + +#: src/parse.c:847 +#, c-format +msgid "invalid Key action: \"%s\"" +msgstr "" + +#: src/parse.c:871 +#, c-format +msgid "invalid text alignment: \"%s\"" +msgstr "" + +#: src/parse.c:957 +msgid "no include file specified" +msgstr "" + +#: src/parse.c:967 +#, c-format +msgid "could not process include: %s" +msgstr "" + +#: src/parse.c:971 +#, c-format +msgid "could not open included file: %s" +msgstr "" + +#: src/parse.c:1611 +#, c-format +msgid "invalid value for 'enabled': \"%s\"" +msgstr "" + +#: src/parse.c:1752 +#, c-format +msgid "invalid Group Option: %s" +msgstr "" + +#: src/parse.c:1767 +#, c-format +msgid "invalid decorations: %s" +msgstr "" + +#: src/parse.c:1829 +#, c-format +msgid "%s is empty" +msgstr "%s boş" + +#: src/parse.c:1836 +#, c-format +msgid "invalid %s: \"%s\"" +msgstr "geçersiz %s: \"%s\"" + +#: src/parse.c:1854 +#, c-format +msgid "invalid value for %s: \"%s\"" +msgstr "" + +#: src/parse.c:1880 +#, c-format +msgid "could not read file: %s" +msgstr "" + +#: src/parse.c:1967 src/parse.c:1984 +msgid "no value specified" +msgstr "" + +#: src/parse.c:1972 +#, c-format +msgid "invalid setting: %s" +msgstr "" + +#: src/parse.c:1989 +#, c-format +msgid "invalid opacity: %s" +msgstr "" + +#: src/parse.c:2010 +#, c-format +msgid "invalid layer: %s" +msgstr "" + +#: src/parse.c:2031 +#, c-format +msgid "invalid tag in %s: %s" +msgstr "" + +#: src/parse.c:2052 +msgid "configuration error" +msgstr "Yapılandırma hatası" + +#: src/root.c:131 +#, c-format +msgid "invalid root menu specified: \"%c\"" +msgstr "" + +#: src/root.c:223 +msgid "Exit JWM" +msgstr "JWM Çıkış" + +#: src/root.c:224 +msgid "Are you sure?" +msgstr "Emin misiniz?" + +#: src/swallow.c:85 +msgid "cannot swallow a client with no name" +msgstr "" + +#: src/taskbar.c:444 src/winmenu.c:48 +msgid "Close" +msgstr "Kapat" + +#: src/taskbar.c:451 src/winmenu.c:66 +msgid "Minimize" +msgstr "" + +#: src/taskbar.c:458 src/winmenu.c:95 src/winmenu.c:97 src/winmenu.c:99 +#: src/winmenu.c:106 +msgid "Restore" +msgstr "" + +#: src/taskbar.c:465 src/winmenu.c:179 +msgid "Send To" +msgstr "Gönder" + +#: src/taskbar.c:961 +#, c-format +msgid "invalid maxwidth for TaskList: %s" +msgstr "" + +#: src/taskbar.c:975 +#, c-format +msgid "invalid height for TaskList: %s" +msgstr "" + +#: src/traybutton.c:89 +#, c-format +msgid "could not load tray icon: \"%s\"" +msgstr "" + +#: src/traybutton.c:130 +msgid "no icon or label for TrayButton" +msgstr "" + +#: src/tray.c:1064 +#, c-format +msgid "invalid tray layout: \"%s\"" +msgstr "" + +#: src/tray.c:1102 +#, c-format +msgid "invalid tray horizontal alignment: \"%s\"" +msgstr "" + +#: src/tray.c:1125 +#, c-format +msgid "invalid tray vertical alignment: \"%s\"" +msgstr "" + +#: src/winmenu.c:49 +msgid "Kill" +msgstr "" + +#: src/winmenu.c:57 +msgid "Resize" +msgstr "Yeniden boyutlandır" + +#: src/winmenu.c:60 +msgid "Move" +msgstr "" + +#: src/winmenu.c:72 +msgid "Unshade" +msgstr "" + +#: src/winmenu.c:74 +msgid "Shade" +msgstr "" + +#: src/winmenu.c:81 +msgid "Maximize-y" +msgstr "" + +#: src/winmenu.c:86 +msgid "Maximize-x" +msgstr "" + +#: src/winmenu.c:90 +msgid "Maximize" +msgstr "" + +#: src/winmenu.c:112 +msgid "Unstick" +msgstr "" + +#: src/winmenu.c:114 +msgid "Stick" +msgstr "" + +#: src/winmenu.c:139 +msgid "Layer" +msgstr "" + +#: src/winmenu.c:148 +msgid "[Above]" +msgstr "" + +#: src/winmenu.c:150 +msgid "Above" +msgstr "" + +#: src/winmenu.c:153 +msgid "[Normal]" +msgstr "" + +#: src/winmenu.c:155 +msgid "Normal" +msgstr "" + +#: src/winmenu.c:158 +msgid "[Below]" +msgstr "" + +#: src/winmenu.c:160 +msgid "Below" +msgstr "" diff --git a/talimatname/genel/j/jwm/jwm.desktop b/talimatname/genel/j/jwm/jwm.desktop new file mode 100644 index 000000000..c328fe34c --- /dev/null +++ b/talimatname/genel/j/jwm/jwm.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=jwm +Comment=Launch a jwm session +Exec=jwm +Type=XSession diff --git a/talimatname/genel/j/jwm/jwm.readme b/talimatname/genel/j/jwm/jwm.readme new file mode 100644 index 000000000..4f3d392be --- /dev/null +++ b/talimatname/genel/j/jwm/jwm.readme @@ -0,0 +1,8 @@ +JWM is configured via an XML configuration file. +By default, this file is located in "/etc/system.jwmrc". +To customize JWM, copy this file to "$HOME/.jwmrc" and then modify it using your favorite text editor. +Although somewhat verbose, XML (which looks much like HTML) provides a convenient way +to represent hierarchical configuration, such as menus. +In addition, XML fairly easy to edit either by hand or programmatically. + +Be aware if no "$HOME/.jwmrc" file exist it will parse the "/etc/system.jwmrc" file. diff --git a/talimatname/genel/j/jwm/system.jwmrc b/talimatname/genel/j/jwm/system.jwmrc new file mode 100644 index 000000000..9929f9bd9 --- /dev/null +++ b/talimatname/genel/j/jwm/system.jwmrc @@ -0,0 +1,191 @@ + + + + + + xfce4-terminal + + vlc + xcalc + gimp + thunar + firefox + leafpad + + + xfontsel + + xprop | xmessage -file - + + + xwininfo | xmessage -file - + + + + + xlock -mode blank + + + + + + + + + + + + + Pidgin + + + + xterm + + + + xclock + + + + + + + + root:1 + + showdesktop + + + + + + + + + + + + + + Sans-9:bold + 4 + 21 + 3 + #FFFFFF + #555555 + #000000 + 0.5 + + #FFFFFF + #0077CC + #000000 + 1.0 + + + + Sans-9 + #333333 + #FFFFFF + #000000 + 0.75 + + + Sans-9 + + #FFFFFF + #555555 + + #FFFFFF + #333333 + + + #000000 + #555555 + #333333 + #FFFFFF + + #0077CC + #004488 + + + + Sans-9 + #FFFFFF + #333333 + #000000 + + #FFFFFF + #0077CC + + 0.85 + + + Sans-9 + #000000 + #999999 + + + + + /usr/share/icons/wm-icons/32x32-aquafusion + + + /usr/local/share/jwm + + + + + + + #111111 + + + + 400 + + + 2 + + + sloppy + + + border + + + opaque + + + opaque + + + up + down + right + left + left + down + up + right + select + escape + + nextstacked + close + desktop# + root:1 + window + maximize + rdesktop + ldesktop + udesktop + ddesktop + + diff --git a/talimatname/genel/j/jwm/talimat b/talimatname/genel/j/jwm/talimat new file mode 100644 index 000000000..f7b01445d --- /dev/null +++ b/talimatname/genel/j/jwm/talimat @@ -0,0 +1,27 @@ +# Tanım: Joe'nun pencere yöneticisi yalnızca Xlib'yi en az kullanır. +# URL: http://joewing.net/programs/jwm/ +# Paketçi: milisarge +# Gerekler: xorg xorg-libxt xorg-libxft xorg-libxmu xorg-mesa libpng libjpeg-turbo +# Gruplar: + +isim=jwm +surum=2.3.7 +devir=1 +kaynak=(http://joewing.net/projects/jwm/releases/$isim-$surum.tar.xz $isim.desktop $isim.readme jwm-tr.po system.jwmrc) + +derle() { +cd $isim-$surum +mv $SRC/$isim-tr.po po/tr.po +./configure --prefix=/usr \ +--disable-confirm \ +--disable-fribidi \ +--with-x \ +--sysconf=/etc +make || return 1 +mkdir -p $PKG/usr/share/xsessions +cp $SRC/$isim.desktop $PKG/usr/share/xsessions/ +sed -i "s|/usr/bin|$PKG/usr/bin|g" src/Makefile +make SYSCONF=$PKG/etc MANDIR=$PKG/usr/share/man install +rm $PKG/etc/system.jwmrc +mv $SRC/system.jwmrc $PKG/etc/ +} diff --git a/talimatname/genel/k/k3b/talimat b/talimatname/genel/k/k3b/talimat new file mode 100644 index 000000000..62f956c47 --- /dev/null +++ b/talimatname/genel/k/k3b/talimat @@ -0,0 +1,26 @@ +# Tanım: Özellik açısından zengin ve kullanımı kolay CD yazma uygulaması +# Url: https://userbase.kde.org/K3b +# Paketçi: alihan-ozturk28@hotmail.com oltulu +# Gerekler: git qt5 kf5-extra-cmake-modules qt5-webkit kf5-karchive kf5-kconfig kf5-kcoreaddons kf5-kdoctools kf5-kfilemetadata kf5-ki18n kf5-kiconthemes kf5-kjobwidgets kf5-kcmutils kf5-kio kf5-knotifications kf5-knewstuff kf5-knotifyconfig kf5-kservice kf5-solid kf5-kwidgetsaddons kf5-kxmlgui libkcddb libsamplerate libmad ffmpeg taglib libmpcdec libdvdread cdrkit xorg-libxft cdparanoia cdrdao dvd+rw-tools + +isim=k3b +surum=17.12.0 +devir=1 +grup=kde + +kaynak="https://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz" + +derle() { + mkdir -p build + + cd build + cmake ../$isim-$surum \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_INSTALL_LIBEXECDIR=lib \ + -DBUILD_TESTING=OFF \ + -DK3B_ENABLE_PERMISSION_HELPER=ON + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kaccounts-integration/talimat b/talimatname/genel/k/kaccounts-integration/talimat new file mode 100644 index 000000000..df99d1f49 --- /dev/null +++ b/talimatname/genel/k/kaccounts-integration/talimat @@ -0,0 +1,21 @@ +# Tanım: Google, Facebook, Owncloud, IMAP, Jabber vb. siteler ve hizmetleri için web hesaplarını yönetme sistemi +# URL: https://www.kde.org/applications/internet +# Paketçi: cihanAlkan +# Gerekler: kf5-extra-cmake-modules kf5-kdoctools kf5-kcmutils kf5-kio kf5-ki18n kf5-kwidgetsaddons kf5-kcoreaddons kf5-kcoreaddons kf5-kconfig kf5-kwallet kf5-kdbusaddons akonadi signon-kwallet-extension signon-plugin-oauth2 signon-ui kde5-l10n + +isim=kaccounts-integration +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kaccounts-providers/talimat b/talimatname/genel/k/kaccounts-providers/talimat new file mode 100644 index 000000000..c34a5bde5 --- /dev/null +++ b/talimatname/genel/k/kaccounts-providers/talimat @@ -0,0 +1,21 @@ +# Tanım: Google, Facebook, Owncloud, IMAP, Jabber vb. siteler ve hizmetleri için web hesaplarını yönetme sistemi +# URL: https://www.kde.org/applications/internet +# Paketçi: CihanAlkan +# Gerekler: kf5-extra-cmake-modules kf5-kdoctools kaccounts-integration intltool + +isim=kaccounts-providers +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kaffeine/talimat b/talimatname/genel/k/kaffeine/talimat new file mode 100644 index 000000000..0efc54101 --- /dev/null +++ b/talimatname/genel/k/kaffeine/talimat @@ -0,0 +1,24 @@ +# Tanım: KDE media player +# URL: https://kaffeine.kde.org +# Paketçi: Cihan_Alkan +# Gerekler: kf5-extra-cmake-modules kf5-kparts kf5-kdoctools kf5-kio kf5-kidletime vlc +# Grup: kde + +isim=kaffeine +surum=2.0.14 +devir=1 + +kaynak=(https://download.kde.org/stable/$isim/$isim-$surum.tar.xz) + +derle() { + mkdir -p build + rm -r $isim-$surum/po/pt_BR/docs # derlenmiyor + + cd build + cmake ../$isim-$surum \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_TESTING=OFF + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kakoune/talimat b/talimatname/genel/k/kakoune/talimat new file mode 100644 index 000000000..c4a6025d3 --- /dev/null +++ b/talimatname/genel/k/kakoune/talimat @@ -0,0 +1,21 @@ +# Tanım: Kod editörü yoğun bir şekilde Vim'den ilham aldı +# URL: https://github.com/mawww/kakoune +# Paketçi: Cihan Alkan +# Gerekler: asciidoc +# Grup: ofis_düzenleyiciler + +isim=kakoune +surum=git +devir=1 +kaynak=() + +derle() { + git_indir https://github.com/mawww/kakoune.git $isim + cd "${SRC}/${isim}" + cd src + debug=no make + debug=no make install-strip DESTDIR="${PKG}" PREFIX=/usr + install -D ../UNLICENSE "${PKG}"/usr/share/licenses/${isim}/LICENSE + rm -rf $PKG/usr/share/doc + rm -rf $PKG/usr/share/man +} diff --git a/talimatname/genel/k/kalarmcal/talimat b/talimatname/genel/k/kalarmcal/talimat new file mode 100644 index 000000000..406ee820f --- /dev/null +++ b/talimatname/genel/k/kalarmcal/talimat @@ -0,0 +1,21 @@ +# Tanım: KAlarm takvim verilerine erişebilmenizi ve kullanabilmenizi sağlayan kütüphane +# URL : https://projects.kde.org/kalarcal +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules boost kf5-kdoctools kf5-kdelibs4support akonadi kcalcore kholidays kidentitymanagement + +isim=kalarmcal +surum=16.08.2 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kashmir/talimat b/talimatname/genel/k/kashmir/talimat new file mode 100644 index 000000000..c907cc0d5 --- /dev/null +++ b/talimatname/genel/k/kashmir/talimat @@ -0,0 +1,16 @@ +# Tanım: Birçok yazılım projesinde gerekli olan, ancak C ++ standart kitaplığında bulunmayan işlevsellik sağlamayı amaçlayan salt başlık kütüphanesi +# URL: https://github.com/Corvusoft/kashmir-dependency +# Paketçi: milisarge +# Gerekler: + +isim=kashmir +surum=20150805 +devir=1 +kaynak=(https://github.com/Corvusoft/kashmir-dependency/archive/master.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd kashmir-dependency-master + install -D -m644 LICENSE_1_0.txt "${PKG}/usr/share/licenses/${isim}/LICENSE_1_0.txt" + install -d -m755 "${PKG}/usr/include/${isim}/" + cp -r "kashmir" "${PKG}/usr/include/" +} diff --git a/talimatname/genel/k/kate/talimat b/talimatname/genel/k/kate/talimat new file mode 100644 index 000000000..5b92d961b --- /dev/null +++ b/talimatname/genel/k/kate/talimat @@ -0,0 +1,23 @@ +# Tanım: Kate, sürüm 2.2'den bu yana KDE'nin bir parçası olan çoklu belge editörüdür. +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules kf5-kconfig kf5-kcrash kf5-ki18n kf5-kjobwidgets kf5-kio kf5-kparts kf5-ktexteditor kf5-kwindowsystem kf5-kxmlgui kf5-kiconthemes kf5-kactivities kf5-kdoctools kf5-plasma-framework kf5-knewstuff kf5-threadweaver kf5-kitemmodels + +isim=kate +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kblog/talimat b/talimatname/genel/k/kblog/talimat new file mode 100644 index 000000000..da7472cb6 --- /dev/null +++ b/talimatname/genel/k/kblog/talimat @@ -0,0 +1,22 @@ +# Tanım: KDE için bir blog yazısı kütüphanesi +# URL : https://projects.kde.org/kblog +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules boost kf5-kdoctools kf5-kxmlrpcclient syndication kcalcore +# Grup: kde + +isim=kblog +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kcalc/talimat b/talimatname/genel/k/kcalc/talimat new file mode 100644 index 000000000..ad6f180ba --- /dev/null +++ b/talimatname/genel/k/kcalc/talimat @@ -0,0 +1,23 @@ +# Tanım: Bilimsel hesap makinesi +# URL: http://gmplib.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules kf5-kconfig kf5-kconfigwidgets kf5-kdoctools kf5-kguiaddons kf5-ki18n kf5-kinit kf5-knotifications kf5-kxmlgui gmp + +isim=kcalc +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kcalcore/talimat b/talimatname/genel/k/kcalcore/talimat new file mode 100644 index 000000000..a2cfe0982 --- /dev/null +++ b/talimatname/genel/k/kcalcore/talimat @@ -0,0 +1,21 @@ +# Tanım: KDE takvim erişim kitaplığı +# URL : https://projects.kde.org/kcalcore +# Paketçi: cihanAlkan +# Gerekler: kf5-extra-cmake-modules python kf5-kdoctools libical kf5-kdelibs4support + +isim=kcalcore +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kcalutils/talimat b/talimatname/genel/k/kcalutils/talimat new file mode 100644 index 000000000..3ee5ae488 --- /dev/null +++ b/talimatname/genel/k/kcalutils/talimat @@ -0,0 +1,21 @@ +# Tanım: KDE takvim yardımcı program kütüphanesi +# URL : https://projects.kde.org/projects/kde/ +# Paketçi: alihan-oztuk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules python kf5-kdoctools kcalcore kidentitymanagement + +isim=kcalutils +surum=17.12.0 +devir=1 + +kaynak=( http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kcontacts/talimat b/talimatname/genel/k/kcontacts/talimat new file mode 100644 index 000000000..35012e1e4 --- /dev/null +++ b/talimatname/genel/k/kcontacts/talimat @@ -0,0 +1,21 @@ +# Tanım: Libkcontacts - KDE için yeni adres defteri API'sı +# URL : https://projects.kde.org/kcontacts +# Paketçi: cihanAlkan +# Gerekler: kf5-extra-cmake-modules kf5-kconfig kf5-kcoreaddons kf5-ki18n kf5-kio kf5-kcodecs + +isim=kcontacts +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kcptun/talimat b/talimatname/genel/k/kcptun/talimat new file mode 100644 index 000000000..584cb9e4f --- /dev/null +++ b/talimatname/genel/k/kcptun/talimat @@ -0,0 +1,27 @@ +# Tanım: KCP'ye dayanan son derece basit bir udp tüneli +# URL: https://github.com/xtaci/kcptun +# Paketçi: Cihan_Alkan +# Gerekler: go18 +# Grup: ağ + +isim=kcptun +surum=20171201 +devir=1 +kaynak=(https://github.com/xtaci/kcptun/archive/v20171201.tar.gz::$isim-$surum.tar.gz) + +derle() { + mv kcptun-20171201 kcptun + mkdir -p "$SRC/${isim}/go_path" + cd "$SRC/${isim}/server" + GOPATH="$SRC/go_path" go get -d -v + GOPATH="$SRC/go_path" go build -v + + cd "$SRC/${isim}/client" + GOPATH="$SRC/go_path" go get -d -v + GOPATH="$SRC/go_path" go build -v + + install -Dm755 "$SRC/${isim}/client/client" \ + "$PKG/usr/bin/kcptun-client" + install -Dm755 "$SRC/${isim}/server/server" \ + "$PKG/usr/bin/kcptun-server" +} diff --git a/talimatname/genel/k/kde-app/talimat b/talimatname/genel/k/kde-app/talimat new file mode 100644 index 000000000..69a97582d --- /dev/null +++ b/talimatname/genel/k/kde-app/talimat @@ -0,0 +1,14 @@ +# Tanım: Bu paket KDE5 Uygulamalarını yükleyecek +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: ark baloo-widgets dolphin dolphin-plugins gwenview k3b kate kcalc kde5-l10n kdeconnect kdepim kdepim-addons kdepim-apps-libs kdepim-runtime kirigami kio-extras kolourpaint konsole konversation okular partitionmanager print-manager spectacle yakuake + +isim=kde-app +devir=1 +surum=20160924 + +kaynak=(talimat) + +derle() { +echo "KDE Applications 5" +} diff --git a/talimatname/genel/k/kde-extra/talimat b/talimatname/genel/k/kde-extra/talimat new file mode 100644 index 000000000..3b5f442c1 --- /dev/null +++ b/talimatname/genel/k/kde-extra/talimat @@ -0,0 +1,14 @@ +# Tanım: Bu paket KDE5 Uygulamalarını yükleyecek +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: akonadi akonadi-calendar akonadi-search akonadi-contacts akonadi-mime akonadi-notes calendarsupport eventviews ffmpegthumbs grantleetheme incidenceeditor kaccounts-integration kaccounts-providers kalarmcal kblog kcalcore kcalutils kcontacts kdegraphics-thumbnailers kdenlive kdgantt2 kdiamond khelpcenter kholidays kidentitymanagement kimap kldap kmahjongg kmailtransport kmbox kmime kmix kontactinterface kpat kpimtextedit ktnef libgravatar libkdcraw libkdegames libkdepim libkexiv2 libkgapi libkipi libkleo libkmahjongg libksane libksieve mailcommon mailimporter marble messagelib pimcommon signon-kwallet-extension syndication telepathy trojita + +isim=kde-extra +devir=1 +surum=20160924 + +kaynak=(talimat) + +derle() { +echo "KDE Applications 5 Extra" +} diff --git a/talimatname/genel/k/kde5-l10n/talimat b/talimatname/genel/k/kde5-l10n/talimat new file mode 100644 index 000000000..d45d99733 --- /dev/null +++ b/talimatname/genel/k/kde5-l10n/talimat @@ -0,0 +1,28 @@ +# Tanım: KDE5 için Birçok Yerelleştirme +# URL : http:/$langwww.kde.org +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules kf5-ki18n kf5-kdoctools phonon-qt5 + +isim=kde5-l10n +surum=16.08.2 +devir=1 + +kaynak=() + +derle() { + +for lang in de es fr it sv tr +do + cd $SRC + wget http://download.kde.org/stable/applications/$surum/src/kde-l10n/kde-l10n-$lang-$surum.tar.xz + tar xf kde-l10n-$lang-$surum.tar.xz + + cd kde-l10n-$lang-$surum/5/$lang + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release + make + make DESTDIR=$PKG install + + rm $PKG/usr/share/locale/$lang/LC_MESSAGES/khelpcenter.mo +done +} diff --git a/talimatname/genel/k/kde5/talimat b/talimatname/genel/k/kde5/talimat new file mode 100644 index 000000000..9978cb2b6 --- /dev/null +++ b/talimatname/genel/k/kde5/talimat @@ -0,0 +1,29 @@ +# Tanım: Bu paket KDE5'i ve bağımlılıklarını yükleyecek +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5 plasma kde-app telepathy xorg phonon-backend-gstreamer-qt5 phonon-backend-vlc-qt5 oxygen-gtk2 oxygen-gtk3 gnupg alsa-plugins noto-fonts sddm + +isim=kde5 +devir=1 +surum=20161011 + +kaynak=(talimat) + +derle() { + +unset makeflags + +mkdir -pv $PKG/etc/profile.d/ + +cat > $PKG/etc/profile.d/kde5.sh << "EOF" +### Begin /etc/profile.d/kf5.sh +# +source /etc/profile.d/qt5.sh +# +export KF5_PREFIX=/usr +# +pathappend /usr/lib/qt5/plugins QT_PLUGIN_PATH +# +### End /etc/profile.d/kde5.sh +EOF +} diff --git a/talimatname/genel/k/kdeconnect/talimat b/talimatname/genel/k/kdeconnect/talimat new file mode 100644 index 000000000..2c1d852e7 --- /dev/null +++ b/talimatname/genel/k/kdeconnect/talimat @@ -0,0 +1,26 @@ +# Tanım: KDE ve akıllı telefonunuz arasında iletişim kurar +# URL : https://projects.kde.org/projects/playground/base/kdeconnect-kde +# Packdeconnectkager : alihan-ozturk28@hotmail.com +# Gerekler: git kf5-extra-cmake-modules kf5-kio kf5-kcmutils qca-qt5 libfakekey qjson sshfs-fuse hicolor-icon-theme kf5-kwayland + +isim=kdeconnect +surum=0.9g +devir=1 + +kaynak=() + +derle() { + +git clone git://anongit.kde.org/kdeconnect-kde.git + +mkdir -p build +cd build +cmake ../kdeconnect-kde \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib\ + -DLIBEXEC_INSTALL_DIR=/usr/lib \ + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kdegraphics-thumbnailers/talimat b/talimatname/genel/k/kdegraphics-thumbnailers/talimat new file mode 100644 index 000000000..bbb8433af --- /dev/null +++ b/talimatname/genel/k/kdegraphics-thumbnailers/talimat @@ -0,0 +1,22 @@ +# Tanım: Çeşitli grafik dosyası formatları için küçük resim oluşturucular +# URL : https://projects.kde.org/projects/kde/kdegraphics/kdegraphics-thumbnailers +# Paketçi: Cihan_Alkan +# Gerekler: kf5-extra-cmake-modules kf5-kio libkdcraw libkexiv2 + +isim=kdegraphics-thumbnailers +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kdenlive/talimat b/talimatname/genel/k/kdenlive/talimat new file mode 100644 index 000000000..02fc0bb75 --- /dev/null +++ b/talimatname/genel/k/kdenlive/talimat @@ -0,0 +1,23 @@ +# Tanım: Linux için MLT video çerçevesini kullanan doğrusal olmayan bir video düzenleyicisi +# URL: http://www.kdenlive.org/ +# Paketçi: milisarge +# Gerekler: kf5-knewstuff kf5-kplotting kf5-knotifyconfig kf5-kded kf5-kfilemetadata qt5-webkit mlt xorg-glu sdl-image hicolor-icon-theme qt5 kf5-extra-cmake-modules kf5-kdoctools v4l-utils ffmpeg cdrkit libdv recordmydesktop xine-ui dvdauthor plasma-desktop + +isim=kdenlive +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + mkdir -p build + cd build + cmake ../$isim-$surum \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DKDE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kdepim-addons/talimat b/talimatname/genel/k/kdepim-addons/talimat new file mode 100644 index 000000000..c5ba0bf20 --- /dev/null +++ b/talimatname/genel/k/kdepim-addons/talimat @@ -0,0 +1,21 @@ +# Tanım: KDE PIM uygulamaları için eklentiler +# URL : https://community.kde.org/KDE_PIM +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-khtml mailcommon incidenceeditor ktnef libkgapi kf5-extra-cmake-modules kf5-kdoctools boost + +isim=kdepim-addons +surum=16.08.2 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kdepim-apps-libs/talimat b/talimatname/genel/k/kdepim-apps-libs/talimat new file mode 100644 index 000000000..9ad0f406c --- /dev/null +++ b/talimatname/genel/k/kdepim-apps-libs/talimat @@ -0,0 +1,21 @@ +# Tanım: KDE PIM posta ile ilgili kütüphaneler +# URL : https://community.kde.org/KDE_PIM +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: libkleo pimcommon grantleetheme kf5-extra-cmake-modules kf5-kdoctools boost qt5 + +isim=kdepim-apps-libs +surum=16.08.2 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kdepim-runtime/talimat b/talimatname/genel/k/kdepim-runtime/talimat new file mode 100644 index 000000000..cec9990cb --- /dev/null +++ b/talimatname/genel/k/kdepim-runtime/talimat @@ -0,0 +1,21 @@ +# Tanım: Kişisel bilgi yönetimi ile ilgili her şeyi bir araya getirmeyi amaçlayan proje. +# URL: https://projects.kde.org/kdepim +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: grantlee-qt5 gpgme kf5-kcmutils kf5-extra-cmake-modules boost kf5-kdoctools kf5-kcodecs akonadi kf5-kdelibs4support kf5-kio kf5-kcompletion kf5-kcodecs phonon-qt5 kcontacts kcalcore kmime kf5-ki18n kf5-kitemviews kf5-kconfig kf5-solid qt5 kldap kmbox kf5-kwallet kf5-knewstuff kf5-kdewebkit kf5-karchive kf5-knotifyconfig kf5-kconfig kf5-khtml kf5-kservice kf5-kdbusaddons kf5-kauth kf5-ktexteditor kf5-kdnssd kf5-kglobalaccel kf5-sonnet kf5-kross kpimtextedit kidentitymanagement kmailtransport kcalutils kholidays ktnef kimap akonadi-calendar akonadi-search syndication gpgmepp kontactinterface kalarmcal kf5-kxmlrpcclient kblog akonadi-notes + +isim=kdepim-runtime +surum=16.08.2 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kdepim/talimat b/talimatname/genel/k/kdepim/talimat new file mode 100644 index 000000000..eb08b7c07 --- /dev/null +++ b/talimatname/genel/k/kdepim/talimat @@ -0,0 +1,22 @@ +# Tanım: Kişisel bilgi yönetimi ile ilgili her şeyi bir araya getirmeyi amaçlayan proje. +# URL: https://projects.kde.org/kdepim +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: grantlee-qt5 gpgme kf5-kcmutils kf5-extra-cmake-modules boost kf5-kdoctools kf5-kcodecs akonadi kf5-kdelibs4support kf5-kio kf5-kcompletion kf5-kcodecs phonon-qt5 kcontacts kcalcore kmime kf5-ki18n kf5-kitemviews kf5-kconfig kf5-solid qt5 kldap kmbox kf5-kwallet kf5-knewstuff kf5-kcmutils kf5-kdewebkit kf5-karchive kf5-knotifyconfig kf5-kconfig kf5-khtml kf5-kservice kf5-kdbusaddons kf5-kauth kf5-ktexteditor kf5-kdnssd kf5-kglobalaccel kf5-sonnet kf5-kross kpimtextedit kidentitymanagement kmailtransport kcalutils kholidays ktnef kimap akonadi-calendar akonadi-search syndication gpgmepp kontactinterface kalarmcal kf5-kxmlrpcclient kblog zip unzip libgravatar calendarsupport libkgapi mailimporter mailcommon incidenceeditor libksieve + +isim=kdepim +surum=16.08.2 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kdgantt2/talimat b/talimatname/genel/k/kdgantt2/talimat new file mode 100644 index 000000000..c910fe538 --- /dev/null +++ b/talimatname/genel/k/kdgantt2/talimat @@ -0,0 +1,22 @@ +# Tanım: Gantt desteği sağlayan kütüphane +# URL: https://community.kde.org/KDE_PIM +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules kf5-ki18n qt5 +# Grup: kde + +isim=kdgantt2 +surum=17.12.1 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kdiagram/talimat b/talimatname/genel/k/kdiagram/talimat new file mode 100644 index 000000000..de29a891c --- /dev/null +++ b/talimatname/genel/k/kdiagram/talimat @@ -0,0 +1,24 @@ +# Tanım: İş diyagramları oluşturmak için güçlü kütüphaneler +# URL: http://www.kde.org/ +# Paketçi: Cihan_Alkan +# Gerekler: kf5-extra-cmake-modules qt5 +# Grup: kde + +isim=kdiagram +surum=2.6.0 +devir=1 + +kaynak=(http://download.kde.org/stable/$isim/$surum/src/$isim-$surum.tar.xz) + +derle() { + mkdir -p build + cd build + cmake ../$isim-$surum \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kdialog/talimat b/talimatname/genel/k/kdialog/talimat new file mode 100644 index 000000000..4c37a9bce --- /dev/null +++ b/talimatname/genel/k/kdialog/talimat @@ -0,0 +1,20 @@ +# Tanım: Kabuk komut dosyalarından diyalog kutuları görüntülemek için bir yardımcı program +# URL: https://www.kde.org/ +# Paketçi: Cihan Alkan +# Gerekler: python kf5-kdelibs4support + +isim=kdialog +surum=17.04.2 +devir=1 +kaynak=(https://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + mkdir -p build +cd build + cmake ../$isim-$surum \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_TESTING=OFF + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kdiamond/kdiamond.kur-kos b/talimatname/genel/k/kdiamond/kdiamond.kur-kos new file mode 100644 index 000000000..b74f6d479 --- /dev/null +++ b/talimatname/genel/k/kdiamond/kdiamond.kur-kos @@ -0,0 +1 @@ +xdg-icon-resource forceupdate --theme hicolor &> /dev/null diff --git a/talimatname/genel/k/kdiamond/talimat b/talimatname/genel/k/kdiamond/talimat new file mode 100644 index 000000000..eb8b98448 --- /dev/null +++ b/talimatname/genel/k/kdiamond/talimat @@ -0,0 +1,22 @@ +# Tanım: Solitaire kart oyunları seçenekleri sunuyor +# URL: http://kde.org/applications/games/kpatience/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules kf5-kdoctools libkdegames kf5-knotifyconfig hicolor-icon-theme xdg-utils +# Grup: kde + +isim=kdiamond +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/${surum}/src/${isim}-${surum}.tar.xz) + +derle() { +cd ${isim}-${surum} +cmake -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_TESTING=OFF \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/keepassx2/talimat b/talimatname/genel/k/keepassx2/talimat new file mode 100644 index 000000000..bf2f8d220 --- /dev/null +++ b/talimatname/genel/k/keepassx2/talimat @@ -0,0 +1,33 @@ +# Tanım: Şifre yöneticisi +# URL: http://www.keepassx.org/ +# Paketçi: milisarge +# Gerekler: qt4 libgcrypt + +isim=keepassx2 +surum=2.0.3 +devir=1 +kaynak=(https://github.com/keepassx/keepassx/archive/$surum.tar.gz) + +derle() { + + pushd */ + sed -r 's|(keepassx)|\12|g' -i CMakeLists.txt share/linux/keepassx.desktop + sed -r 's|(keepassx)(\.desktop\|\.xml)|\12\2|g' -i share/CMakeLists.txt + sed -r 's|(KeePassX)|\1 2|g' -i share/linux/keepassx.desktop + rename 'keepassx' 'keepassx2' share/linux/keepassx.{desktop,xml} + popd + + mkdir build + cd build + cmake ../*-$surum/ \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_BINDIR=/usr/bin \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib \ + -DCMAKE_VERBOSE_MAKEFILE=OFF \ + -DWITH_TESTS=OFF + make + make DESTDIR=$PKG install + + rename keepassx keepassx2 $PKG/usr/share/icons/hicolor/*/*/keepassx.png +} diff --git a/talimatname/genel/k/kerberos/kerberos.kur-kos b/talimatname/genel/k/kerberos/kerberos.kur-kos new file mode 100644 index 000000000..6e38883fe --- /dev/null +++ b/talimatname/genel/k/kerberos/kerberos.kur-kos @@ -0,0 +1,7 @@ +for INFOFILE in admin install user +do + if [ -f /usr/share/info/krb5-$INFOFILE.info ]; then + install-info --info-dir=/usr/share/info \ + /usr/share/info/krb5-$INFOFILE.info + fi +done diff --git a/talimatname/genel/k/kerberos/kerberos.okubeni b/talimatname/genel/k/kerberos/kerberos.okubeni new file mode 100644 index 000000000..f36937108 --- /dev/null +++ b/talimatname/genel/k/kerberos/kerberos.okubeni @@ -0,0 +1,37 @@ +Configuration: + /etc/krb5.conf + /var/lib/krb5kdc/kdc.conf + +Création d'un fichier de configuration: + +cat > /etc/krb5.conf << "EOF" +# Begin /etc/krb5.conf + +[libdefaults] + default_realm = + encrypt = true + +[realms] + = { + kdc = + admin_server = + dict_file = /usr/share/dict/words + } + +[domain_realm] + . = + +[logging] + kdc = SYSLOG[:INFO[:AUTH]] + admin_server = SYSLOG[INFO[:AUTH]] + default = SYSLOG[[:SYS]] + +# End /etc/krb5.conf +EOF + +Remplacez , et avec votre domaine + +Pour plus d'information, consultez la page de BLFS + +http://www.fr.linuxfromscratch.org/view/blfs-svn/postlfs/mitkrb.html + diff --git a/talimatname/genel/k/kerberos/talimat b/talimatname/genel/k/kerberos/talimat new file mode 100644 index 000000000..af28189d8 --- /dev/null +++ b/talimatname/genel/k/kerberos/talimat @@ -0,0 +1,55 @@ +# Tanım: Kerberos ağ kimlik doğrulama sistemi +# URL: http://web.mit.edu/kerberos/ +# Paketçi: milisarge +# Gerekler: + +isim=kerberos +surum=1.14 +devir=1 + +kaynak=(http://web.mit.edu/$isim/dist/krb5/1.14/krb5-$surum.tar.gz) + +derle() { + cd krb5-$surum + cd src + sed -e "s@python2.5/Python.h@& python2.7/Python.h@g" \ + -e "s@-lpython2.5]@&,\n AC_CHECK_LIB(python2.7,main,[PYTHON_LIB=-lpython2.7])@g" \ + -i configure.in + + sed -e 's@\^u}@^u cols 300}@' \ + -i tests/dejagnu/config/default.exp + +autoconf + +./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var/lib \ + --with-system-et \ + --with-system-ss \ + --with-system-verto=no \ + --enable-dns-for-realm +make +make DESTDIR=$PKG install + +for LIBRARY in gssapi_krb5 gssrpc k5crypto kadm5clnt_mit kadm5srv_mit kdb5 krb5 krb5support verto; do + chmod -v 755 $PKG/usr/lib/lib$LIBRARY.so.*.* +done + +unset LIBRARY + +mkdir -p $PKG/{bin,lib} +mv -v $PKG/usr/lib/libkrb5.so.3* $PKG/lib +mv -v $PKG/usr/lib/libk5crypto.so.3* $PKG/lib +mv -v $PKG/usr/lib/libkrb5support.so.0* $PKG/lib + +ln -v -sf ../../lib/libkrb5.so.3.3 $PKG/usr/lib/libkrb5.so +ln -v -sf ../../lib/libk5crypto.so.3.1 $PKG/usr/lib/libk5crypto.so +ln -v -sf ../../lib/libkrb5support.so.0.1 $PKG/usr/lib/libkrb5support.so + +mv -v $PKG/usr/bin/ksu $PKG/bin +chmod -v 755 $PKG/bin/ksu + +install -v -dm755 $PKG/usr/share/doc/krb5-$surum +cp -vfr ../doc/* $PKG/usr/share/doc/krb5-$surum + +} diff --git a/talimatname/genel/k/kernel/aufs4-base.patch b/talimatname/genel/k/kernel/aufs4-base.patch new file mode 100644 index 000000000..4de0c0749 --- /dev/null +++ b/talimatname/genel/k/kernel/aufs4-base.patch @@ -0,0 +1,332 @@ +SPDX-License-Identifier: GPL-2.0 +aufs4.15 base patch + +diff --git a/MAINTAINERS b/MAINTAINERS +index 845fc25..7dc2813 100644 +--- a/MAINTAINERS ++++ b/MAINTAINERS +@@ -2486,6 +2486,19 @@ F: include/linux/audit.h + F: include/uapi/linux/audit.h + F: kernel/audit* + ++AUFS (advanced multi layered unification filesystem) FILESYSTEM ++M: "J. R. Okajima" ++L: linux-unionfs@vger.kernel.org ++L: aufs-users@lists.sourceforge.net (members only) ++W: http://aufs.sourceforge.net ++T: git://github.com/sfjro/aufs4-linux.git ++S: Supported ++F: Documentation/filesystems/aufs/ ++F: Documentation/ABI/testing/debugfs-aufs ++F: Documentation/ABI/testing/sysfs-aufs ++F: fs/aufs/ ++F: include/uapi/linux/aufs_type.h ++ + AUXILIARY DISPLAY DRIVERS + M: Miguel Ojeda Sandonis + W: http://miguelojeda.es/auxdisplay.htm +diff --git a/drivers/block/loop.c b/drivers/block/loop.c +index d5fe720..c292afa 100644 +--- a/drivers/block/loop.c ++++ b/drivers/block/loop.c +@@ -691,6 +691,24 @@ static inline int is_loop_device(struct file *file) + return i && S_ISBLK(i->i_mode) && MAJOR(i->i_rdev) == LOOP_MAJOR; + } + ++/* ++ * for AUFS ++ * no get/put for file. ++ */ ++struct file *loop_backing_file(struct super_block *sb) ++{ ++ struct file *ret; ++ struct loop_device *l; ++ ++ ret = NULL; ++ if (MAJOR(sb->s_dev) == LOOP_MAJOR) { ++ l = sb->s_bdev->bd_disk->private_data; ++ ret = l->lo_backing_file; ++ } ++ return ret; ++} ++EXPORT_SYMBOL_GPL(loop_backing_file); ++ + /* loop sysfs attributes */ + + static ssize_t loop_attr_show(struct device *dev, char *page, +diff --git a/fs/dcache.c b/fs/dcache.c +index 5c7df1d..019f14b 100644 +--- a/fs/dcache.c ++++ b/fs/dcache.c +@@ -1197,7 +1197,7 @@ enum d_walk_ret { + * + * The @enter() and @finish() callbacks are called with d_lock held. + */ +-static void d_walk(struct dentry *parent, void *data, ++void d_walk(struct dentry *parent, void *data, + enum d_walk_ret (*enter)(void *, struct dentry *), + void (*finish)(void *)) + { +diff --git a/fs/fcntl.c b/fs/fcntl.c +index 0522e28..74c255d 100644 +--- a/fs/fcntl.c ++++ b/fs/fcntl.c +@@ -32,7 +32,7 @@ + + #define SETFL_MASK (O_APPEND | O_NONBLOCK | O_NDELAY | O_DIRECT | O_NOATIME) + +-static int setfl(int fd, struct file * filp, unsigned long arg) ++int setfl(int fd, struct file * filp, unsigned long arg) + { + struct inode * inode = file_inode(filp); + int error = 0; +@@ -63,6 +63,8 @@ static int setfl(int fd, struct file * filp, unsigned long arg) + + if (filp->f_op->check_flags) + error = filp->f_op->check_flags(arg); ++ if (!error && filp->f_op->setfl) ++ error = filp->f_op->setfl(filp, arg); + if (error) + return error; + +diff --git a/fs/inode.c b/fs/inode.c +index 03102d6..517883c 100644 +--- a/fs/inode.c ++++ b/fs/inode.c +@@ -1655,7 +1655,7 @@ EXPORT_SYMBOL(generic_update_time); + * This does the actual work of updating an inodes time or version. Must have + * had called mnt_want_write() before calling this. + */ +-static int update_time(struct inode *inode, struct timespec *time, int flags) ++int update_time(struct inode *inode, struct timespec *time, int flags) + { + int (*update_time)(struct inode *, struct timespec *, int); + +diff --git a/fs/namespace.c b/fs/namespace.c +index 9d1374a..26ef600 100644 +--- a/fs/namespace.c ++++ b/fs/namespace.c +@@ -846,6 +846,12 @@ static inline int check_mnt(struct mount *mnt) + return mnt->mnt_ns == current->nsproxy->mnt_ns; + } + ++/* for aufs, CONFIG_AUFS_BR_FUSE */ ++int is_current_mnt_ns(struct vfsmount *mnt) ++{ ++ return check_mnt(real_mount(mnt)); ++} ++ + /* + * vfsmount lock must be held for write + */ +diff --git a/fs/read_write.c b/fs/read_write.c +index f8547b8..0a5c47b 100644 +--- a/fs/read_write.c ++++ b/fs/read_write.c +@@ -484,6 +484,28 @@ ssize_t __vfs_write(struct file *file, const char __user *p, size_t count, + return -EINVAL; + } + ++vfs_readf_t vfs_readf(struct file *file) ++{ ++ const struct file_operations *fop = file->f_op; ++ ++ if (fop->read) ++ return fop->read; ++ if (fop->read_iter) ++ return new_sync_read; ++ return ERR_PTR(-ENOSYS); ++} ++ ++vfs_writef_t vfs_writef(struct file *file) ++{ ++ const struct file_operations *fop = file->f_op; ++ ++ if (fop->write) ++ return fop->write; ++ if (fop->write_iter) ++ return new_sync_write; ++ return ERR_PTR(-ENOSYS); ++} ++ + ssize_t __kernel_write(struct file *file, const void *buf, size_t count, loff_t *pos) + { + mm_segment_t old_fs; +diff --git a/fs/splice.c b/fs/splice.c +index 39e2dc0..c5fb195 100644 +--- a/fs/splice.c ++++ b/fs/splice.c +@@ -837,8 +837,8 @@ EXPORT_SYMBOL(generic_splice_sendpage); + /* + * Attempt to initiate a splice from pipe to file. + */ +-static long do_splice_from(struct pipe_inode_info *pipe, struct file *out, +- loff_t *ppos, size_t len, unsigned int flags) ++long do_splice_from(struct pipe_inode_info *pipe, struct file *out, ++ loff_t *ppos, size_t len, unsigned int flags) + { + ssize_t (*splice_write)(struct pipe_inode_info *, struct file *, + loff_t *, size_t, unsigned int); +@@ -854,9 +854,9 @@ static long do_splice_from(struct pipe_inode_info *pipe, struct file *out, + /* + * Attempt to initiate a splice from a file to a pipe. + */ +-static long do_splice_to(struct file *in, loff_t *ppos, +- struct pipe_inode_info *pipe, size_t len, +- unsigned int flags) ++long do_splice_to(struct file *in, loff_t *ppos, ++ struct pipe_inode_info *pipe, size_t len, ++ unsigned int flags) + { + ssize_t (*splice_read)(struct file *, loff_t *, + struct pipe_inode_info *, size_t, unsigned int); +diff --git a/fs/sync.c b/fs/sync.c +index 6e0a2cb..a6891ee 100644 +--- a/fs/sync.c ++++ b/fs/sync.c +@@ -28,7 +28,7 @@ + * wait == 1 case since in that case write_inode() functions do + * sync_dirty_buffer() and thus effectively write one block at a time. + */ +-static int __sync_filesystem(struct super_block *sb, int wait) ++int __sync_filesystem(struct super_block *sb, int wait) + { + if (wait) + sync_inodes_sb(sb); +diff --git a/include/linux/file.h b/include/linux/file.h +index 279720d..76e38ea 100644 +--- a/include/linux/file.h ++++ b/include/linux/file.h +@@ -20,6 +20,7 @@ struct dentry; + struct path; + extern struct file *alloc_file(const struct path *, fmode_t mode, + const struct file_operations *fop); ++extern struct file *get_empty_filp(void); + + static inline void fput_light(struct file *file, int fput_needed) + { +diff --git a/include/linux/fs.h b/include/linux/fs.h +index 511fbaa..96e05b3 100644 +--- a/include/linux/fs.h ++++ b/include/linux/fs.h +@@ -1265,6 +1265,7 @@ extern void fasync_free(struct fasync_struct *); + /* can be called from interrupts */ + extern void kill_fasync(struct fasync_struct **, int, int); + ++extern int setfl(int fd, struct file * filp, unsigned long arg); + extern void __f_setown(struct file *filp, struct pid *, enum pid_type, int force); + extern int f_setown(struct file *filp, unsigned long arg, int force); + extern void f_delown(struct file *filp); +@@ -1712,6 +1713,7 @@ struct file_operations { + ssize_t (*sendpage) (struct file *, struct page *, int, size_t, loff_t *, int); + unsigned long (*get_unmapped_area)(struct file *, unsigned long, unsigned long, unsigned long, unsigned long); + int (*check_flags)(int); ++ int (*setfl)(struct file *, unsigned long); + int (*flock) (struct file *, int, struct file_lock *); + ssize_t (*splice_write)(struct pipe_inode_info *, struct file *, loff_t *, size_t, unsigned int); + ssize_t (*splice_read)(struct file *, loff_t *, struct pipe_inode_info *, size_t, unsigned int); +@@ -1782,6 +1784,12 @@ ssize_t rw_copy_check_uvector(int type, const struct iovec __user * uvector, + struct iovec *fast_pointer, + struct iovec **ret_pointer); + ++typedef ssize_t (*vfs_readf_t)(struct file *, char __user *, size_t, loff_t *); ++typedef ssize_t (*vfs_writef_t)(struct file *, const char __user *, size_t, ++ loff_t *); ++vfs_readf_t vfs_readf(struct file *file); ++vfs_writef_t vfs_writef(struct file *file); ++ + extern ssize_t __vfs_read(struct file *, char __user *, size_t, loff_t *); + extern ssize_t vfs_read(struct file *, char __user *, size_t, loff_t *); + extern ssize_t vfs_write(struct file *, const char __user *, size_t, loff_t *); +@@ -2201,6 +2209,7 @@ extern int current_umask(void); + extern void ihold(struct inode * inode); + extern void iput(struct inode *); + extern int generic_update_time(struct inode *, struct timespec *, int); ++extern int update_time(struct inode *, struct timespec *, int); + + /* /sys/fs */ + extern struct kobject *fs_kobj; +@@ -2481,6 +2490,7 @@ static inline bool sb_is_blkdev_sb(struct super_block *sb) + return false; + } + #endif ++extern int __sync_filesystem(struct super_block *, int); + extern int sync_filesystem(struct super_block *); + extern const struct file_operations def_blk_fops; + extern const struct file_operations def_chr_fops; +diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h +index 3251d9c..0360952 100644 +--- a/include/linux/lockdep.h ++++ b/include/linux/lockdep.h +@@ -313,6 +313,8 @@ static inline int lockdep_match_key(struct lockdep_map *lock, + return lock->key == key; + } + ++struct lock_class *lockdep_hlock_class(struct held_lock *hlock); ++ + /* + * Acquire a lock. + * +@@ -442,6 +444,7 @@ struct lockdep_map { }; + + #define lockdep_depth(tsk) (0) + ++#define lockdep_is_held(lock) (1) + #define lockdep_is_held_type(l, r) (1) + + #define lockdep_assert_held(l) do { (void)(l); } while (0) +diff --git a/include/linux/mnt_namespace.h b/include/linux/mnt_namespace.h +index 3594208..24f5fd1 100644 +--- a/include/linux/mnt_namespace.h ++++ b/include/linux/mnt_namespace.h +@@ -6,11 +6,14 @@ + struct mnt_namespace; + struct fs_struct; + struct user_namespace; ++struct vfsmount; + + extern struct mnt_namespace *copy_mnt_ns(unsigned long, struct mnt_namespace *, + struct user_namespace *, struct fs_struct *); + extern void put_mnt_ns(struct mnt_namespace *ns); + ++extern int is_current_mnt_ns(struct vfsmount *mnt); ++ + extern const struct file_operations proc_mounts_operations; + extern const struct file_operations proc_mountinfo_operations; + extern const struct file_operations proc_mountstats_operations; +diff --git a/include/linux/splice.h b/include/linux/splice.h +index 74b4911..19789fb 100644 +--- a/include/linux/splice.h ++++ b/include/linux/splice.h +@@ -87,4 +87,10 @@ extern void splice_shrink_spd(struct splice_pipe_desc *); + + extern const struct pipe_buf_operations page_cache_pipe_buf_ops; + extern const struct pipe_buf_operations default_pipe_buf_ops; ++ ++extern long do_splice_from(struct pipe_inode_info *pipe, struct file *out, ++ loff_t *ppos, size_t len, unsigned int flags); ++extern long do_splice_to(struct file *in, loff_t *ppos, ++ struct pipe_inode_info *pipe, size_t len, ++ unsigned int flags); + #endif +diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c +index 5216590..8b5f44d 100644 +--- a/kernel/locking/lockdep.c ++++ b/kernel/locking/lockdep.c +@@ -140,7 +140,7 @@ static struct lock_list list_entries[MAX_LOCKDEP_ENTRIES]; + unsigned long nr_lock_classes; + static struct lock_class lock_classes[MAX_LOCKDEP_KEYS]; + +-static inline struct lock_class *hlock_class(struct held_lock *hlock) ++inline struct lock_class *lockdep_hlock_class(struct held_lock *hlock) + { + if (!hlock->class_idx) { + /* +@@ -151,6 +151,7 @@ static inline struct lock_class *hlock_class(struct held_lock *hlock) + } + return lock_classes + hlock->class_idx - 1; + } ++#define hlock_class(hlock) lockdep_hlock_class(hlock) + + #ifdef CONFIG_LOCK_STAT + static DEFINE_PER_CPU(struct lock_class_stats[MAX_LOCKDEP_KEYS], cpu_lock_stats); diff --git a/talimatname/genel/k/kernel/aufs4-kbuild.patch b/talimatname/genel/k/kernel/aufs4-kbuild.patch new file mode 100644 index 000000000..51946ada9 --- /dev/null +++ b/talimatname/genel/k/kernel/aufs4-kbuild.patch @@ -0,0 +1,24 @@ +SPDX-License-Identifier: GPL-2.0 +aufs4.15 kbuild patch + +diff --git a/fs/Kconfig b/fs/Kconfig +index 7aee6d6..ec92031 100644 +--- a/fs/Kconfig ++++ b/fs/Kconfig +@@ -248,6 +248,7 @@ source "fs/pstore/Kconfig" + source "fs/sysv/Kconfig" + source "fs/ufs/Kconfig" + source "fs/exofs/Kconfig" ++source "fs/aufs/Kconfig" + + endif # MISC_FILESYSTEMS + +diff --git a/fs/Makefile b/fs/Makefile +index ef772f1..51779e68c 100644 +--- a/fs/Makefile ++++ b/fs/Makefile +@@ -129,3 +129,4 @@ obj-y += exofs/ # Multiple modules + obj-$(CONFIG_CEPH_FS) += ceph/ + obj-$(CONFIG_PSTORE) += pstore/ + obj-$(CONFIG_EFIVAR_FS) += efivarfs/ ++obj-$(CONFIG_AUFS_FS) += aufs/ diff --git a/talimatname/genel/k/kernel/aufs4-loopback.patch b/talimatname/genel/k/kernel/aufs4-loopback.patch new file mode 100644 index 000000000..2dda88e30 --- /dev/null +++ b/talimatname/genel/k/kernel/aufs4-loopback.patch @@ -0,0 +1,243 @@ +SPDX-License-Identifier: GPL-2.0 +aufs4.15 loopback patch + +diff --git a/drivers/block/loop.c b/drivers/block/loop.c +index c292afa..a93038c 100644 +--- a/drivers/block/loop.c ++++ b/drivers/block/loop.c +@@ -600,6 +600,15 @@ static inline void loop_update_dio(struct loop_device *lo) + lo->use_dio); + } + ++static struct file *loop_real_file(struct file *file) ++{ ++ struct file *f = NULL; ++ ++ if (file->f_path.dentry->d_sb->s_op->real_loop) ++ f = file->f_path.dentry->d_sb->s_op->real_loop(file); ++ return f; ++} ++ + static void loop_reread_partitions(struct loop_device *lo, + struct block_device *bdev) + { +@@ -634,6 +643,7 @@ static int loop_change_fd(struct loop_device *lo, struct block_device *bdev, + unsigned int arg) + { + struct file *file, *old_file; ++ struct file *f, *virt_file = NULL, *old_virt_file; + struct inode *inode; + int error; + +@@ -650,9 +660,16 @@ static int loop_change_fd(struct loop_device *lo, struct block_device *bdev, + file = fget(arg); + if (!file) + goto out; ++ f = loop_real_file(file); ++ if (f) { ++ virt_file = file; ++ file = f; ++ get_file(file); ++ } + + inode = file->f_mapping->host; + old_file = lo->lo_backing_file; ++ old_virt_file = lo->lo_backing_virt_file; + + error = -EINVAL; + +@@ -667,6 +684,7 @@ static int loop_change_fd(struct loop_device *lo, struct block_device *bdev, + blk_mq_freeze_queue(lo->lo_queue); + mapping_set_gfp_mask(old_file->f_mapping, lo->old_gfp_mask); + lo->lo_backing_file = file; ++ lo->lo_backing_virt_file = virt_file; + lo->old_gfp_mask = mapping_gfp_mask(file->f_mapping); + mapping_set_gfp_mask(file->f_mapping, + lo->old_gfp_mask & ~(__GFP_IO|__GFP_FS)); +@@ -674,12 +692,16 @@ static int loop_change_fd(struct loop_device *lo, struct block_device *bdev, + blk_mq_unfreeze_queue(lo->lo_queue); + + fput(old_file); ++ if (old_virt_file) ++ fput(old_virt_file); + if (lo->lo_flags & LO_FLAGS_PARTSCAN) + loop_reread_partitions(lo, bdev); + return 0; + + out_putf: + fput(file); ++ if (virt_file) ++ fput(virt_file); + out: + return error; + } +@@ -873,7 +895,7 @@ static int loop_prepare_queue(struct loop_device *lo) + static int loop_set_fd(struct loop_device *lo, fmode_t mode, + struct block_device *bdev, unsigned int arg) + { +- struct file *file, *f; ++ struct file *file, *f, *virt_file = NULL; + struct inode *inode; + struct address_space *mapping; + int lo_flags = 0; +@@ -887,6 +909,12 @@ static int loop_set_fd(struct loop_device *lo, fmode_t mode, + file = fget(arg); + if (!file) + goto out; ++ f = loop_real_file(file); ++ if (f) { ++ virt_file = file; ++ file = f; ++ get_file(file); ++ } + + error = -EBUSY; + if (lo->lo_state != Lo_unbound) +@@ -935,6 +963,7 @@ static int loop_set_fd(struct loop_device *lo, fmode_t mode, + lo->lo_device = bdev; + lo->lo_flags = lo_flags; + lo->lo_backing_file = file; ++ lo->lo_backing_virt_file = virt_file; + lo->transfer = NULL; + lo->ioctl = NULL; + lo->lo_sizelimit = 0; +@@ -968,6 +997,8 @@ static int loop_set_fd(struct loop_device *lo, fmode_t mode, + + out_putf: + fput(file); ++ if (virt_file) ++ fput(virt_file); + out: + /* This is safe: open() is still holding a reference. */ + module_put(THIS_MODULE); +@@ -1014,6 +1045,7 @@ loop_init_xfer(struct loop_device *lo, struct loop_func_table *xfer, + static int loop_clr_fd(struct loop_device *lo) + { + struct file *filp = lo->lo_backing_file; ++ struct file *virt_filp = lo->lo_backing_virt_file; + gfp_t gfp = lo->old_gfp_mask; + struct block_device *bdev = lo->lo_device; + +@@ -1045,6 +1077,7 @@ static int loop_clr_fd(struct loop_device *lo) + spin_lock_irq(&lo->lo_lock); + lo->lo_state = Lo_rundown; + lo->lo_backing_file = NULL; ++ lo->lo_backing_virt_file = NULL; + spin_unlock_irq(&lo->lo_lock); + + loop_release_xfer(lo); +@@ -1092,6 +1125,8 @@ static int loop_clr_fd(struct loop_device *lo) + * bd_mutex which is usually taken before lo_ctl_mutex. + */ + fput(filp); ++ if (virt_filp) ++ fput(virt_filp); + return 0; + } + +diff --git a/drivers/block/loop.h b/drivers/block/loop.h +index 0f45416..101f193 100644 +--- a/drivers/block/loop.h ++++ b/drivers/block/loop.h +@@ -46,7 +46,7 @@ struct loop_device { + int (*ioctl)(struct loop_device *, int cmd, + unsigned long arg); + +- struct file * lo_backing_file; ++ struct file * lo_backing_file, *lo_backing_virt_file; + struct block_device *lo_device; + void *key_data; + +diff --git a/fs/aufs/f_op.c b/fs/aufs/f_op.c +index 0d4ea929..af293c2 100644 +--- a/fs/aufs/f_op.c ++++ b/fs/aufs/f_op.c +@@ -358,7 +358,7 @@ static ssize_t aufs_read_iter(struct kiocb *kio, struct iov_iter *iov_iter) + if (IS_ERR(h_file)) + goto out; + +- if (au_test_loopback_kthread()) { ++ if (0 && au_test_loopback_kthread()) { + au_warn_loopback(h_file->f_path.dentry->d_sb); + if (file->f_mapping != h_file->f_mapping) { + file->f_mapping = h_file->f_mapping; +diff --git a/fs/aufs/loop.c b/fs/aufs/loop.c +index 3b217c2..0f5ab22 100644 +--- a/fs/aufs/loop.c ++++ b/fs/aufs/loop.c +@@ -133,3 +133,19 @@ void au_loopback_fin(void) + symbol_put(loop_backing_file); + kfree(au_warn_loopback_array); + } ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* support the loopback block device insude aufs */ ++ ++struct file *aufs_real_loop(struct file *file) ++{ ++ struct file *f; ++ ++ BUG_ON(!au_test_aufs(file->f_path.dentry->d_sb)); ++ fi_read_lock(file); ++ f = au_hf_top(file); ++ fi_read_unlock(file); ++ AuDebugOn(!f); ++ return f; ++} +diff --git a/fs/aufs/loop.h b/fs/aufs/loop.h +index 7d7bf34..ba7c188 100644 +--- a/fs/aufs/loop.h ++++ b/fs/aufs/loop.h +@@ -26,7 +26,11 @@ void au_warn_loopback(struct super_block *h_sb); + + int au_loopback_init(void); + void au_loopback_fin(void); ++ ++struct file *aufs_real_loop(struct file *file); + #else ++AuStub(struct file *, loop_backing_file, return NULL) ++ + AuStubInt0(au_test_loopback_overlap, struct super_block *sb, + struct dentry *h_adding) + AuStubInt0(au_test_loopback_kthread, void) +@@ -34,6 +38,8 @@ AuStubVoid(au_warn_loopback, struct super_block *h_sb) + + AuStubInt0(au_loopback_init, void) + AuStubVoid(au_loopback_fin, void) ++ ++AuStub(struct file *, aufs_real_loop, return NULL, struct file *file) + #endif /* BLK_DEV_LOOP */ + + #endif /* __KERNEL__ */ +diff --git a/fs/aufs/super.c b/fs/aufs/super.c +index 357bf04..c6614df 100644 +--- a/fs/aufs/super.c ++++ b/fs/aufs/super.c +@@ -839,7 +839,10 @@ static const struct super_operations aufs_sop = { + .statfs = aufs_statfs, + .put_super = aufs_put_super, + .sync_fs = aufs_sync_fs, +- .remount_fs = aufs_remount_fs ++ .remount_fs = aufs_remount_fs, ++#ifdef CONFIG_AUFS_BDEV_LOOP ++ .real_loop = aufs_real_loop ++#endif + }; + + /* ---------------------------------------------------------------------- */ +diff --git a/include/linux/fs.h b/include/linux/fs.h +index 96e05b3..ba5e627 100644 +--- a/include/linux/fs.h ++++ b/include/linux/fs.h +@@ -1840,6 +1840,10 @@ struct super_operations { + struct shrink_control *); + long (*free_cached_objects)(struct super_block *, + struct shrink_control *); ++#if defined(CONFIG_BLK_DEV_LOOP) || defined(CONFIG_BLK_DEV_LOOP_MODULE) ++ /* and aufs */ ++ struct file *(*real_loop)(struct file *); ++#endif + }; + + /* diff --git a/talimatname/genel/k/kernel/aufs4-mmap.patch b/talimatname/genel/k/kernel/aufs4-mmap.patch new file mode 100644 index 000000000..cc0d69fe1 --- /dev/null +++ b/talimatname/genel/k/kernel/aufs4-mmap.patch @@ -0,0 +1,398 @@ +SPDX-License-Identifier: GPL-2.0 +aufs4.15 mmap patch + +diff --git a/fs/proc/base.c b/fs/proc/base.c +index 60316b5..ce5314e 100644 +--- a/fs/proc/base.c ++++ b/fs/proc/base.c +@@ -1987,7 +1987,7 @@ static int map_files_get_link(struct dentry *dentry, struct path *path) + down_read(&mm->mmap_sem); + vma = find_exact_vma(mm, vm_start, vm_end); + if (vma && vma->vm_file) { +- *path = vma->vm_file->f_path; ++ *path = vma_pr_or_file(vma)->f_path; + path_get(path); + rc = 0; + } +diff --git a/fs/proc/nommu.c b/fs/proc/nommu.c +index 7563437..7c0dc0f 100644 +--- a/fs/proc/nommu.c ++++ b/fs/proc/nommu.c +@@ -45,7 +45,10 @@ static int nommu_region_show(struct seq_file *m, struct vm_region *region) + file = region->vm_file; + + if (file) { +- struct inode *inode = file_inode(region->vm_file); ++ struct inode *inode; ++ ++ file = vmr_pr_or_file(region); ++ inode = file_inode(file); + dev = inode->i_sb->s_dev; + ino = inode->i_ino; + } +diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c +index 339e4c1..1138098 100644 +--- a/fs/proc/task_mmu.c ++++ b/fs/proc/task_mmu.c +@@ -306,7 +306,10 @@ show_map_vma(struct seq_file *m, struct vm_area_struct *vma, int is_pid) + const char *name = NULL; + + if (file) { +- struct inode *inode = file_inode(vma->vm_file); ++ struct inode *inode; ++ ++ file = vma_pr_or_file(vma); ++ inode = file_inode(file); + dev = inode->i_sb->s_dev; + ino = inode->i_ino; + pgoff = ((loff_t)vma->vm_pgoff) << PAGE_SHIFT; +@@ -1736,7 +1739,7 @@ static int show_numa_map(struct seq_file *m, void *v, int is_pid) + struct proc_maps_private *proc_priv = &numa_priv->proc_maps; + struct vm_area_struct *vma = v; + struct numa_maps *md = &numa_priv->md; +- struct file *file = vma->vm_file; ++ struct file *file = vma_pr_or_file(vma); + struct mm_struct *mm = vma->vm_mm; + struct mm_walk walk = { + .hugetlb_entry = gather_hugetlb_stats, +diff --git a/fs/proc/task_nommu.c b/fs/proc/task_nommu.c +index 5b62f57..dfb4a3b 100644 +--- a/fs/proc/task_nommu.c ++++ b/fs/proc/task_nommu.c +@@ -156,7 +156,10 @@ static int nommu_vma_show(struct seq_file *m, struct vm_area_struct *vma, + file = vma->vm_file; + + if (file) { +- struct inode *inode = file_inode(vma->vm_file); ++ struct inode *inode; ++ ++ file = vma_pr_or_file(vma); ++ inode = file_inode(file); + dev = inode->i_sb->s_dev; + ino = inode->i_ino; + pgoff = (loff_t)vma->vm_pgoff << PAGE_SHIFT; +diff --git a/include/linux/mm.h b/include/linux/mm.h +index ea818ff..fbd4799 100644 +--- a/include/linux/mm.h ++++ b/include/linux/mm.h +@@ -1362,6 +1362,28 @@ static inline int fixup_user_fault(struct task_struct *tsk, + } + #endif + ++extern void vma_do_file_update_time(struct vm_area_struct *, const char[], int); ++extern struct file *vma_do_pr_or_file(struct vm_area_struct *, const char[], ++ int); ++extern void vma_do_get_file(struct vm_area_struct *, const char[], int); ++extern void vma_do_fput(struct vm_area_struct *, const char[], int); ++ ++#define vma_file_update_time(vma) vma_do_file_update_time(vma, __func__, \ ++ __LINE__) ++#define vma_pr_or_file(vma) vma_do_pr_or_file(vma, __func__, \ ++ __LINE__) ++#define vma_get_file(vma) vma_do_get_file(vma, __func__, __LINE__) ++#define vma_fput(vma) vma_do_fput(vma, __func__, __LINE__) ++ ++#ifndef CONFIG_MMU ++extern struct file *vmr_do_pr_or_file(struct vm_region *, const char[], int); ++extern void vmr_do_fput(struct vm_region *, const char[], int); ++ ++#define vmr_pr_or_file(region) vmr_do_pr_or_file(region, __func__, \ ++ __LINE__) ++#define vmr_fput(region) vmr_do_fput(region, __func__, __LINE__) ++#endif /* !CONFIG_MMU */ ++ + extern int access_process_vm(struct task_struct *tsk, unsigned long addr, void *buf, int len, + unsigned int gup_flags); + extern int access_remote_vm(struct mm_struct *mm, unsigned long addr, +diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h +index cfd0ac4..135e11c 100644 +--- a/include/linux/mm_types.h ++++ b/include/linux/mm_types.h +@@ -255,6 +255,7 @@ struct vm_region { + unsigned long vm_top; /* region allocated to here */ + unsigned long vm_pgoff; /* the offset in vm_file corresponding to vm_start */ + struct file *vm_file; /* the backing file or NULL */ ++ struct file *vm_prfile; /* the virtual backing file or NULL */ + + int vm_usage; /* region usage count (access under nommu_region_sem) */ + bool vm_icache_flushed : 1; /* true if the icache has been flushed for +@@ -329,6 +330,7 @@ struct vm_area_struct { + unsigned long vm_pgoff; /* Offset (within vm_file) in PAGE_SIZE + units */ + struct file * vm_file; /* File we map to (can be NULL). */ ++ struct file *vm_prfile; /* shadow of vm_file */ + void * vm_private_data; /* was vm_pte (shared mem) */ + + atomic_long_t swap_readahead_info; +diff --git a/kernel/fork.c b/kernel/fork.c +index 2295fc6..80e1fee 100644 +--- a/kernel/fork.c ++++ b/kernel/fork.c +@@ -676,7 +676,7 @@ static __latent_entropy int dup_mmap(struct mm_struct *mm, + struct inode *inode = file_inode(file); + struct address_space *mapping = file->f_mapping; + +- get_file(file); ++ vma_get_file(tmp); + if (tmp->vm_flags & VM_DENYWRITE) + atomic_dec(&inode->i_writecount); + i_mmap_lock_write(mapping); +diff --git a/mm/Makefile b/mm/Makefile +index e669f02..9c36567 100644 +--- a/mm/Makefile ++++ b/mm/Makefile +@@ -39,7 +39,7 @@ obj-y := filemap.o mempool.o oom_kill.o \ + mm_init.o mmu_context.o percpu.o slab_common.o \ + compaction.o vmacache.o swap_slots.o \ + interval_tree.o list_lru.o workingset.o \ +- debug.o $(mmu-y) ++ prfile.o debug.o $(mmu-y) + + obj-y += init-mm.o + +diff --git a/mm/filemap.c b/mm/filemap.c +index ee83baa..7677d13 100644 +--- a/mm/filemap.c ++++ b/mm/filemap.c +@@ -2704,7 +2704,7 @@ int filemap_page_mkwrite(struct vm_fault *vmf) + int ret = VM_FAULT_LOCKED; + + sb_start_pagefault(inode->i_sb); +- file_update_time(vmf->vma->vm_file); ++ vma_file_update_time(vmf->vma); + lock_page(page); + if (page->mapping != inode->i_mapping) { + unlock_page(page); +diff --git a/mm/mmap.c b/mm/mmap.c +index 9efdc021..d77f01f 100644 +--- a/mm/mmap.c ++++ b/mm/mmap.c +@@ -171,7 +171,7 @@ static struct vm_area_struct *remove_vma(struct vm_area_struct *vma) + if (vma->vm_ops && vma->vm_ops->close) + vma->vm_ops->close(vma); + if (vma->vm_file) +- fput(vma->vm_file); ++ vma_fput(vma); + mpol_put(vma_policy(vma)); + kmem_cache_free(vm_area_cachep, vma); + return next; +@@ -896,7 +896,7 @@ int __vma_adjust(struct vm_area_struct *vma, unsigned long start, + if (remove_next) { + if (file) { + uprobe_munmap(next, next->vm_start, next->vm_end); +- fput(file); ++ vma_fput(vma); + } + if (next->anon_vma) + anon_vma_merge(vma, next); +@@ -1761,8 +1761,8 @@ unsigned long mmap_region(struct file *file, unsigned long addr, + return addr; + + unmap_and_free_vma: ++ vma_fput(vma); + vma->vm_file = NULL; +- fput(file); + + /* Undo any partial mapping done by a device driver. */ + unmap_region(mm, vma, prev, vma->vm_start, vma->vm_end); +@@ -2586,7 +2586,7 @@ int __split_vma(struct mm_struct *mm, struct vm_area_struct *vma, + goto out_free_mpol; + + if (new->vm_file) +- get_file(new->vm_file); ++ vma_get_file(new); + + if (new->vm_ops && new->vm_ops->open) + new->vm_ops->open(new); +@@ -2605,7 +2605,7 @@ int __split_vma(struct mm_struct *mm, struct vm_area_struct *vma, + if (new->vm_ops && new->vm_ops->close) + new->vm_ops->close(new); + if (new->vm_file) +- fput(new->vm_file); ++ vma_fput(new); + unlink_anon_vmas(new); + out_free_mpol: + mpol_put(vma_policy(new)); +@@ -2767,7 +2767,7 @@ SYSCALL_DEFINE5(remap_file_pages, unsigned long, start, unsigned long, size, + struct vm_area_struct *vma; + unsigned long populate = 0; + unsigned long ret = -EINVAL; +- struct file *file; ++ struct file *file, *prfile; + + pr_warn_once("%s (%d) uses deprecated remap_file_pages() syscall. See Documentation/vm/remap_file_pages.txt.\n", + current->comm, current->pid); +@@ -2842,10 +2842,27 @@ SYSCALL_DEFINE5(remap_file_pages, unsigned long, start, unsigned long, size, + } + } + +- file = get_file(vma->vm_file); ++ vma_get_file(vma); ++ file = vma->vm_file; ++ prfile = vma->vm_prfile; + ret = do_mmap_pgoff(vma->vm_file, start, size, + prot, flags, pgoff, &populate, NULL); ++ if (!IS_ERR_VALUE(ret) && file && prfile) { ++ struct vm_area_struct *new_vma; ++ ++ new_vma = find_vma(mm, ret); ++ if (!new_vma->vm_prfile) ++ new_vma->vm_prfile = prfile; ++ if (new_vma != vma) ++ get_file(prfile); ++ } ++ /* ++ * two fput()s instead of vma_fput(vma), ++ * coz vma may not be available anymore. ++ */ + fput(file); ++ if (prfile) ++ fput(prfile); + out: + up_write(&mm->mmap_sem); + if (populate) +@@ -3153,7 +3170,7 @@ struct vm_area_struct *copy_vma(struct vm_area_struct **vmap, + if (anon_vma_clone(new_vma, vma)) + goto out_free_mempol; + if (new_vma->vm_file) +- get_file(new_vma->vm_file); ++ vma_get_file(new_vma); + if (new_vma->vm_ops && new_vma->vm_ops->open) + new_vma->vm_ops->open(new_vma); + vma_link(mm, new_vma, prev, rb_link, rb_parent); +diff --git a/mm/nommu.c b/mm/nommu.c +index 17c00d9..4bcdf94 100644 +--- a/mm/nommu.c ++++ b/mm/nommu.c +@@ -641,7 +641,7 @@ static void __put_nommu_region(struct vm_region *region) + up_write(&nommu_region_sem); + + if (region->vm_file) +- fput(region->vm_file); ++ vmr_fput(region); + + /* IO memory and memory shared directly out of the pagecache + * from ramfs/tmpfs mustn't be released here */ +@@ -799,7 +799,7 @@ static void delete_vma(struct mm_struct *mm, struct vm_area_struct *vma) + if (vma->vm_ops && vma->vm_ops->close) + vma->vm_ops->close(vma); + if (vma->vm_file) +- fput(vma->vm_file); ++ vma_fput(vma); + put_nommu_region(vma->vm_region); + kmem_cache_free(vm_area_cachep, vma); + } +@@ -1321,7 +1321,7 @@ unsigned long do_mmap(struct file *file, + goto error_just_free; + } + } +- fput(region->vm_file); ++ vmr_fput(region); + kmem_cache_free(vm_region_jar, region); + region = pregion; + result = start; +@@ -1396,10 +1396,10 @@ unsigned long do_mmap(struct file *file, + up_write(&nommu_region_sem); + error: + if (region->vm_file) +- fput(region->vm_file); ++ vmr_fput(region); + kmem_cache_free(vm_region_jar, region); + if (vma->vm_file) +- fput(vma->vm_file); ++ vma_fput(vma); + kmem_cache_free(vm_area_cachep, vma); + return ret; + +diff --git a/mm/prfile.c b/mm/prfile.c +new file mode 100644 +index 0000000..3f56669 +--- /dev/null ++++ b/mm/prfile.c +@@ -0,0 +1,86 @@ ++/* ++ * SPDX-License-Identifier: GPL-2.0 ++ * Mainly for aufs which mmap(2) different file and wants to print different ++ * path in /proc/PID/maps. ++ * Call these functions via macros defined in linux/mm.h. ++ * ++ * See Documentation/filesystems/aufs/design/06mmap.txt ++ * ++ * Copyright (c) 2014-2017 Junjro R. Okajima ++ * Copyright (c) 2014 Ian Campbell ++ */ ++ ++#include ++#include ++#include ++ ++/* #define PRFILE_TRACE */ ++static inline void prfile_trace(struct file *f, struct file *pr, ++ const char func[], int line, const char func2[]) ++{ ++#ifdef PRFILE_TRACE ++ if (pr) ++ pr_info("%s:%d: %s, %pD2\n", func, line, func2, f); ++#endif ++} ++ ++void vma_do_file_update_time(struct vm_area_struct *vma, const char func[], ++ int line) ++{ ++ struct file *f = vma->vm_file, *pr = vma->vm_prfile; ++ ++ prfile_trace(f, pr, func, line, __func__); ++ file_update_time(f); ++ if (f && pr) ++ file_update_time(pr); ++} ++ ++struct file *vma_do_pr_or_file(struct vm_area_struct *vma, const char func[], ++ int line) ++{ ++ struct file *f = vma->vm_file, *pr = vma->vm_prfile; ++ ++ prfile_trace(f, pr, func, line, __func__); ++ return (f && pr) ? pr : f; ++} ++ ++void vma_do_get_file(struct vm_area_struct *vma, const char func[], int line) ++{ ++ struct file *f = vma->vm_file, *pr = vma->vm_prfile; ++ ++ prfile_trace(f, pr, func, line, __func__); ++ get_file(f); ++ if (f && pr) ++ get_file(pr); ++} ++ ++void vma_do_fput(struct vm_area_struct *vma, const char func[], int line) ++{ ++ struct file *f = vma->vm_file, *pr = vma->vm_prfile; ++ ++ prfile_trace(f, pr, func, line, __func__); ++ fput(f); ++ if (f && pr) ++ fput(pr); ++} ++ ++#ifndef CONFIG_MMU ++struct file *vmr_do_pr_or_file(struct vm_region *region, const char func[], ++ int line) ++{ ++ struct file *f = region->vm_file, *pr = region->vm_prfile; ++ ++ prfile_trace(f, pr, func, line, __func__); ++ return (f && pr) ? pr : f; ++} ++ ++void vmr_do_fput(struct vm_region *region, const char func[], int line) ++{ ++ struct file *f = region->vm_file, *pr = region->vm_prfile; ++ ++ prfile_trace(f, pr, func, line, __func__); ++ fput(f); ++ if (f && pr) ++ fput(pr); ++} ++#endif /* !CONFIG_MMU */ diff --git a/talimatname/genel/k/kernel/aufs4-standalone.patch b/talimatname/genel/k/kernel/aufs4-standalone.patch new file mode 100644 index 000000000..12986ee20 --- /dev/null +++ b/talimatname/genel/k/kernel/aufs4-standalone.patch @@ -0,0 +1,436 @@ +SPDX-License-Identifier: GPL-2.0 +aufs4.15 standalone patch + +diff --git a/fs/dcache.c b/fs/dcache.c +index 019f14b..10c1a6d 100644 +--- a/fs/dcache.c ++++ b/fs/dcache.c +@@ -1305,6 +1305,7 @@ void d_walk(struct dentry *parent, void *data, + seq = 1; + goto again; + } ++EXPORT_SYMBOL_GPL(d_walk); + + struct check_mount { + struct vfsmount *mnt; +@@ -2892,6 +2893,7 @@ void d_exchange(struct dentry *dentry1, struct dentry *dentry2) + + write_sequnlock(&rename_lock); + } ++EXPORT_SYMBOL_GPL(d_exchange); + + /** + * d_ancestor - search for an ancestor +diff --git a/fs/exec.c b/fs/exec.c +index 7eb8d21..56d7985 100644 +--- a/fs/exec.c ++++ b/fs/exec.c +@@ -109,6 +109,7 @@ bool path_noexec(const struct path *path) + return (path->mnt->mnt_flags & MNT_NOEXEC) || + (path->mnt->mnt_sb->s_iflags & SB_I_NOEXEC); + } ++EXPORT_SYMBOL_GPL(path_noexec); + + #ifdef CONFIG_USELIB + /* +diff --git a/fs/fcntl.c b/fs/fcntl.c +index 74c255d..ec53ee1 100644 +--- a/fs/fcntl.c ++++ b/fs/fcntl.c +@@ -85,6 +85,7 @@ int setfl(int fd, struct file * filp, unsigned long arg) + out: + return error; + } ++EXPORT_SYMBOL_GPL(setfl); + + static void f_modown(struct file *filp, struct pid *pid, enum pid_type type, + int force) +diff --git a/fs/file_table.c b/fs/file_table.c +index 2dc9f38..7bf57df 100644 +--- a/fs/file_table.c ++++ b/fs/file_table.c +@@ -148,6 +148,7 @@ struct file *get_empty_filp(void) + } + return ERR_PTR(-ENFILE); + } ++EXPORT_SYMBOL_GPL(get_empty_filp); + + /** + * alloc_file - allocate and initialize a 'struct file' +@@ -258,6 +259,7 @@ void flush_delayed_fput(void) + { + delayed_fput(NULL); + } ++EXPORT_SYMBOL_GPL(flush_delayed_fput); + + static DECLARE_DELAYED_WORK(delayed_fput_work, delayed_fput); + +@@ -300,6 +302,7 @@ void __fput_sync(struct file *file) + } + + EXPORT_SYMBOL(fput); ++EXPORT_SYMBOL_GPL(__fput_sync); + + void put_filp(struct file *file) + { +@@ -308,6 +311,7 @@ void put_filp(struct file *file) + file_free(file); + } + } ++EXPORT_SYMBOL_GPL(put_filp); + + void __init files_init(void) + { +diff --git a/fs/inode.c b/fs/inode.c +index 517883c..5cece5e 100644 +--- a/fs/inode.c ++++ b/fs/inode.c +@@ -1664,6 +1664,7 @@ int update_time(struct inode *inode, struct timespec *time, int flags) + + return update_time(inode, time, flags); + } ++EXPORT_SYMBOL_GPL(update_time); + + /** + * touch_atime - update the access time +diff --git a/fs/namespace.c b/fs/namespace.c +index 26ef600..a4b9707 100644 +--- a/fs/namespace.c ++++ b/fs/namespace.c +@@ -517,6 +517,7 @@ void __mnt_drop_write(struct vfsmount *mnt) + mnt_dec_writers(real_mount(mnt)); + preempt_enable(); + } ++EXPORT_SYMBOL_GPL(__mnt_drop_write); + + /** + * mnt_drop_write - give up write access to a mount +@@ -851,6 +852,7 @@ int is_current_mnt_ns(struct vfsmount *mnt) + { + return check_mnt(real_mount(mnt)); + } ++EXPORT_SYMBOL_GPL(is_current_mnt_ns); + + /* + * vfsmount lock must be held for write +@@ -1887,6 +1889,7 @@ int iterate_mounts(int (*f)(struct vfsmount *, void *), void *arg, + } + return 0; + } ++EXPORT_SYMBOL_GPL(iterate_mounts); + + static void cleanup_group_ids(struct mount *mnt, struct mount *end) + { +diff --git a/fs/notify/group.c b/fs/notify/group.c +index b7a4b6a..5a69d60 100644 +--- a/fs/notify/group.c ++++ b/fs/notify/group.c +@@ -22,6 +22,7 @@ + #include + #include + #include ++#include + + #include + #include "fsnotify.h" +@@ -109,6 +110,7 @@ void fsnotify_get_group(struct fsnotify_group *group) + { + refcount_inc(&group->refcnt); + } ++EXPORT_SYMBOL_GPL(fsnotify_get_group); + + /* + * Drop a reference to a group. Free it if it's through. +@@ -118,6 +120,7 @@ void fsnotify_put_group(struct fsnotify_group *group) + if (refcount_dec_and_test(&group->refcnt)) + fsnotify_final_destroy_group(group); + } ++EXPORT_SYMBOL_GPL(fsnotify_put_group); + + /* + * Create a new fsnotify_group and hold a reference for the group returned. +@@ -147,6 +150,7 @@ struct fsnotify_group *fsnotify_alloc_group(const struct fsnotify_ops *ops) + + return group; + } ++EXPORT_SYMBOL_GPL(fsnotify_alloc_group); + + int fsnotify_fasync(int fd, struct file *file, int on) + { +diff --git a/fs/notify/mark.c b/fs/notify/mark.c +index e9191b4..1f8ccfa 100644 +--- a/fs/notify/mark.c ++++ b/fs/notify/mark.c +@@ -108,6 +108,7 @@ void fsnotify_get_mark(struct fsnotify_mark *mark) + WARN_ON_ONCE(!refcount_read(&mark->refcnt)); + refcount_inc(&mark->refcnt); + } ++EXPORT_SYMBOL_GPL(fsnotify_put_mark); + + static void __fsnotify_recalc_mask(struct fsnotify_mark_connector *conn) + { +@@ -392,6 +393,7 @@ void fsnotify_destroy_mark(struct fsnotify_mark *mark, + mutex_unlock(&group->mark_mutex); + fsnotify_free_mark(mark); + } ++EXPORT_SYMBOL_GPL(fsnotify_destroy_mark); + + /* + * Sorting function for lists of fsnotify marks. +@@ -606,6 +608,7 @@ int fsnotify_add_mark_locked(struct fsnotify_mark *mark, struct inode *inode, + fsnotify_put_mark(mark); + return ret; + } ++EXPORT_SYMBOL_GPL(fsnotify_add_mark); + + int fsnotify_add_mark(struct fsnotify_mark *mark, struct inode *inode, + struct vfsmount *mnt, int allow_dups) +@@ -741,6 +744,7 @@ void fsnotify_init_mark(struct fsnotify_mark *mark, + fsnotify_get_group(group); + mark->group = group; + } ++EXPORT_SYMBOL_GPL(fsnotify_init_mark); + + /* + * Destroy all marks in destroy_list, waits for SRCU period to finish before +diff --git a/fs/open.c b/fs/open.c +index 7ea1184..6e2e241 100644 +--- a/fs/open.c ++++ b/fs/open.c +@@ -64,6 +64,7 @@ int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs, + inode_unlock(dentry->d_inode); + return ret; + } ++EXPORT_SYMBOL_GPL(do_truncate); + + long vfs_truncate(const struct path *path, loff_t length) + { +@@ -691,6 +692,7 @@ int open_check_o_direct(struct file *f) + } + return 0; + } ++EXPORT_SYMBOL_GPL(open_check_o_direct); + + static int do_dentry_open(struct file *f, + struct inode *inode, +diff --git a/fs/read_write.c b/fs/read_write.c +index 0a5c47b..d423a5f 100644 +--- a/fs/read_write.c ++++ b/fs/read_write.c +@@ -454,6 +454,7 @@ ssize_t vfs_read(struct file *file, char __user *buf, size_t count, loff_t *pos) + + return ret; + } ++EXPORT_SYMBOL_GPL(vfs_read); + + static ssize_t new_sync_write(struct file *filp, const char __user *buf, size_t len, loff_t *ppos) + { +@@ -494,6 +495,7 @@ vfs_readf_t vfs_readf(struct file *file) + return new_sync_read; + return ERR_PTR(-ENOSYS); + } ++EXPORT_SYMBOL_GPL(vfs_readf); + + vfs_writef_t vfs_writef(struct file *file) + { +@@ -505,6 +507,7 @@ vfs_writef_t vfs_writef(struct file *file) + return new_sync_write; + return ERR_PTR(-ENOSYS); + } ++EXPORT_SYMBOL_GPL(vfs_writef); + + ssize_t __kernel_write(struct file *file, const void *buf, size_t count, loff_t *pos) + { +@@ -574,6 +577,7 @@ ssize_t vfs_write(struct file *file, const char __user *buf, size_t count, loff_ + + return ret; + } ++EXPORT_SYMBOL_GPL(vfs_write); + + static inline loff_t file_pos_read(struct file *file) + { +diff --git a/fs/splice.c b/fs/splice.c +index c5fb195..ce01a74 100644 +--- a/fs/splice.c ++++ b/fs/splice.c +@@ -850,6 +850,7 @@ long do_splice_from(struct pipe_inode_info *pipe, struct file *out, + + return splice_write(pipe, out, ppos, len, flags); + } ++EXPORT_SYMBOL_GPL(do_splice_from); + + /* + * Attempt to initiate a splice from a file to a pipe. +@@ -879,6 +880,7 @@ long do_splice_to(struct file *in, loff_t *ppos, + + return splice_read(in, ppos, pipe, len, flags); + } ++EXPORT_SYMBOL_GPL(do_splice_to); + + /** + * splice_direct_to_actor - splices data directly between two non-pipes +diff --git a/fs/sync.c b/fs/sync.c +index a6891ee..47a78bd 100644 +--- a/fs/sync.c ++++ b/fs/sync.c +@@ -39,6 +39,7 @@ int __sync_filesystem(struct super_block *sb, int wait) + sb->s_op->sync_fs(sb, wait); + return __sync_blockdev(sb->s_bdev, wait); + } ++EXPORT_SYMBOL_GPL(__sync_filesystem); + + /* + * Write out and wait upon all dirty data associated with this +diff --git a/fs/xattr.c b/fs/xattr.c +index 61cd28b..35570cd 100644 +--- a/fs/xattr.c ++++ b/fs/xattr.c +@@ -297,6 +297,7 @@ vfs_getxattr_alloc(struct dentry *dentry, const char *name, char **xattr_value, + *xattr_value = value; + return error; + } ++EXPORT_SYMBOL_GPL(vfs_getxattr_alloc); + + ssize_t + __vfs_getxattr(struct dentry *dentry, struct inode *inode, const char *name, +diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c +index 8b5f44d..979db63 100644 +--- a/kernel/locking/lockdep.c ++++ b/kernel/locking/lockdep.c +@@ -151,6 +151,7 @@ inline struct lock_class *lockdep_hlock_class(struct held_lock *hlock) + } + return lock_classes + hlock->class_idx - 1; + } ++EXPORT_SYMBOL_GPL(lockdep_hlock_class); + #define hlock_class(hlock) lockdep_hlock_class(hlock) + + #ifdef CONFIG_LOCK_STAT +diff --git a/kernel/task_work.c b/kernel/task_work.c +index 0fef395..83fb1ec 100644 +--- a/kernel/task_work.c ++++ b/kernel/task_work.c +@@ -116,3 +116,4 @@ void task_work_run(void) + } while (work); + } + } ++EXPORT_SYMBOL_GPL(task_work_run); +diff --git a/security/commoncap.c b/security/commoncap.c +index 48620c9..4981104 100644 +--- a/security/commoncap.c ++++ b/security/commoncap.c +@@ -1330,12 +1330,14 @@ int cap_mmap_addr(unsigned long addr) + } + return ret; + } ++EXPORT_SYMBOL_GPL(cap_mmap_addr); + + int cap_mmap_file(struct file *file, unsigned long reqprot, + unsigned long prot, unsigned long flags) + { + return 0; + } ++EXPORT_SYMBOL_GPL(cap_mmap_file); + + #ifdef CONFIG_SECURITY + +diff --git a/security/device_cgroup.c b/security/device_cgroup.c +index c65b39b..e363d22 100644 +--- a/security/device_cgroup.c ++++ b/security/device_cgroup.c +@@ -8,6 +8,7 @@ + #include + #include + #include ++#include + #include + #include + #include +@@ -824,3 +825,4 @@ int __devcgroup_check_permission(short type, u32 major, u32 minor, + + return 0; + } ++EXPORT_SYMBOL_GPL(__devcgroup_check_permission); +diff --git a/security/security.c b/security/security.c +index 1cd8526..f2e4736 100644 +--- a/security/security.c ++++ b/security/security.c +@@ -531,6 +531,7 @@ int security_path_rmdir(const struct path *dir, struct dentry *dentry) + return 0; + return call_int_hook(path_rmdir, 0, dir, dentry); + } ++EXPORT_SYMBOL_GPL(security_path_rmdir); + + int security_path_unlink(const struct path *dir, struct dentry *dentry) + { +@@ -547,6 +548,7 @@ int security_path_symlink(const struct path *dir, struct dentry *dentry, + return 0; + return call_int_hook(path_symlink, 0, dir, dentry, old_name); + } ++EXPORT_SYMBOL_GPL(security_path_symlink); + + int security_path_link(struct dentry *old_dentry, const struct path *new_dir, + struct dentry *new_dentry) +@@ -555,6 +557,7 @@ int security_path_link(struct dentry *old_dentry, const struct path *new_dir, + return 0; + return call_int_hook(path_link, 0, old_dentry, new_dir, new_dentry); + } ++EXPORT_SYMBOL_GPL(security_path_link); + + int security_path_rename(const struct path *old_dir, struct dentry *old_dentry, + const struct path *new_dir, struct dentry *new_dentry, +@@ -582,6 +585,7 @@ int security_path_truncate(const struct path *path) + return 0; + return call_int_hook(path_truncate, 0, path); + } ++EXPORT_SYMBOL_GPL(security_path_truncate); + + int security_path_chmod(const struct path *path, umode_t mode) + { +@@ -589,6 +593,7 @@ int security_path_chmod(const struct path *path, umode_t mode) + return 0; + return call_int_hook(path_chmod, 0, path, mode); + } ++EXPORT_SYMBOL_GPL(security_path_chmod); + + int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid) + { +@@ -596,6 +601,7 @@ int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid) + return 0; + return call_int_hook(path_chown, 0, path, uid, gid); + } ++EXPORT_SYMBOL_GPL(security_path_chown); + + int security_path_chroot(const struct path *path) + { +@@ -681,6 +687,7 @@ int security_inode_readlink(struct dentry *dentry) + return 0; + return call_int_hook(inode_readlink, 0, dentry); + } ++EXPORT_SYMBOL_GPL(security_inode_readlink); + + int security_inode_follow_link(struct dentry *dentry, struct inode *inode, + bool rcu) +@@ -696,6 +703,7 @@ int security_inode_permission(struct inode *inode, int mask) + return 0; + return call_int_hook(inode_permission, 0, inode, mask); + } ++EXPORT_SYMBOL_GPL(security_inode_permission); + + int security_inode_setattr(struct dentry *dentry, struct iattr *attr) + { +@@ -867,6 +875,7 @@ int security_file_permission(struct file *file, int mask) + + return fsnotify_perm(file, mask); + } ++EXPORT_SYMBOL_GPL(security_file_permission); + + int security_file_alloc(struct file *file) + { +@@ -926,6 +935,7 @@ int security_mmap_file(struct file *file, unsigned long prot, + return ret; + return ima_file_mmap(file, prot); + } ++EXPORT_SYMBOL_GPL(security_mmap_file); + + int security_mmap_addr(unsigned long addr) + { diff --git a/talimatname/genel/k/kernel/aufs4.patch b/talimatname/genel/k/kernel/aufs4.patch new file mode 100644 index 000000000..a13fd1031 --- /dev/null +++ b/talimatname/genel/k/kernel/aufs4.patch @@ -0,0 +1,37214 @@ +diff -Naur null/Documentation/ABI/testing/debugfs-aufs linux-4.15/Documentation/ABI/testing/debugfs-aufs +--- /dev/null ++++ linux-4.15/Documentation/ABI/testing/debugfs-aufs 2018-02-25 02:38:09.195737146 +0100 +@@ -0,0 +1,50 @@ ++What: /debug/aufs/si_/ ++Date: March 2009 ++Contact: J. R. Okajima ++Description: ++ Under /debug/aufs, a directory named si_ is created ++ per aufs mount, where is a unique id generated ++ internally. ++ ++What: /debug/aufs/si_/plink ++Date: Apr 2013 ++Contact: J. R. Okajima ++Description: ++ It has three lines and shows the information about the ++ pseudo-link. The first line is a single number ++ representing a number of buckets. The second line is a ++ number of pseudo-links per buckets (separated by a ++ blank). The last line is a single number representing a ++ total number of psedo-links. ++ When the aufs mount option 'noplink' is specified, it ++ will show "1\n0\n0\n". ++ ++What: /debug/aufs/si_/xib ++Date: March 2009 ++Contact: J. R. Okajima ++Description: ++ It shows the consumed blocks by xib (External Inode Number ++ Bitmap), its block size and file size. ++ When the aufs mount option 'noxino' is specified, it ++ will be empty. About XINO files, see the aufs manual. ++ ++What: /debug/aufs/si_/xino0, xino1 ... xinoN ++Date: March 2009 ++Contact: J. R. Okajima ++Description: ++ It shows the consumed blocks by xino (External Inode Number ++ Translation Table), its link count, block size and file ++ size. ++ When the aufs mount option 'noxino' is specified, it ++ will be empty. About XINO files, see the aufs manual. ++ ++What: /debug/aufs/si_/xigen ++Date: March 2009 ++Contact: J. R. Okajima ++Description: ++ It shows the consumed blocks by xigen (External Inode ++ Generation Table), its block size and file size. ++ If CONFIG_AUFS_EXPORT is disabled, this entry will not ++ be created. ++ When the aufs mount option 'noxino' is specified, it ++ will be empty. About XINO files, see the aufs manual. +diff -Naur null/Documentation/ABI/testing/sysfs-aufs linux-4.15/Documentation/ABI/testing/sysfs-aufs +--- /dev/null ++++ linux-4.15/Documentation/ABI/testing/sysfs-aufs 2018-02-25 02:38:09.195737146 +0100 +@@ -0,0 +1,31 @@ ++What: /sys/fs/aufs/si_/ ++Date: March 2009 ++Contact: J. R. Okajima ++Description: ++ Under /sys/fs/aufs, a directory named si_ is created ++ per aufs mount, where is a unique id generated ++ internally. ++ ++What: /sys/fs/aufs/si_/br0, br1 ... brN ++Date: March 2009 ++Contact: J. R. Okajima ++Description: ++ It shows the abolute path of a member directory (which ++ is called branch) in aufs, and its permission. ++ ++What: /sys/fs/aufs/si_/brid0, brid1 ... bridN ++Date: July 2013 ++Contact: J. R. Okajima ++Description: ++ It shows the id of a member directory (which is called ++ branch) in aufs. ++ ++What: /sys/fs/aufs/si_/xi_path ++Date: March 2009 ++Contact: J. R. Okajima ++Description: ++ It shows the abolute path of XINO (External Inode Number ++ Bitmap, Translation Table and Generation Table) file ++ even if it is the default path. ++ When the aufs mount option 'noxino' is specified, it ++ will be empty. About XINO files, see the aufs manual. +diff -Naur null/Documentation/filesystems/aufs/design/01intro.txt linux-4.15/Documentation/filesystems/aufs/design/01intro.txt +--- /dev/null ++++ linux-4.15/Documentation/filesystems/aufs/design/01intro.txt 2018-02-25 02:38:09.195737146 +0100 +@@ -0,0 +1,171 @@ ++ ++# Copyright (C) 2005-2017 Junjiro R. Okajima ++# ++# This program is free software; you can redistribute it and/or modify ++# it under the terms of the GNU General Public License as published by ++# the Free Software Foundation; either version 2 of the License, or ++# (at your option) any later version. ++# ++# This program is distributed in the hope that it will be useful, ++# but WITHOUT ANY WARRANTY; without even the implied warranty of ++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++# GNU General Public License for more details. ++# ++# You should have received a copy of the GNU General Public License ++# along with this program. If not, see . ++ ++Introduction ++---------------------------------------- ++ ++aufs [ei ju: ef es] | /ey-yoo-ef-es/ | [a u f s] ++1. abbrev. for "advanced multi-layered unification filesystem". ++2. abbrev. for "another unionfs". ++3. abbrev. for "auf das" in German which means "on the" in English. ++ Ex. "Butter aufs Brot"(G) means "butter onto bread"(E). ++ But "Filesystem aufs Filesystem" is hard to understand. ++4. abbrev. for "African Urban Fashion Show". ++ ++AUFS is a filesystem with features: ++- multi layered stackable unification filesystem, the member directory ++ is called as a branch. ++- branch permission and attribute, 'readonly', 'real-readonly', ++ 'readwrite', 'whiteout-able', 'link-able whiteout', etc. and their ++ combination. ++- internal "file copy-on-write". ++- logical deletion, whiteout. ++- dynamic branch manipulation, adding, deleting and changing permission. ++- allow bypassing aufs, user's direct branch access. ++- external inode number translation table and bitmap which maintains the ++ persistent aufs inode number. ++- seekable directory, including NFS readdir. ++- file mapping, mmap and sharing pages. ++- pseudo-link, hardlink over branches. ++- loopback mounted filesystem as a branch. ++- several policies to select one among multiple writable branches. ++- revert a single systemcall when an error occurs in aufs. ++- and more... ++ ++ ++Multi Layered Stackable Unification Filesystem ++---------------------------------------------------------------------- ++Most people already knows what it is. ++It is a filesystem which unifies several directories and provides a ++merged single directory. When users access a file, the access will be ++passed/re-directed/converted (sorry, I am not sure which English word is ++correct) to the real file on the member filesystem. The member ++filesystem is called 'lower filesystem' or 'branch' and has a mode ++'readonly' and 'readwrite.' And the deletion for a file on the lower ++readonly branch is handled by creating 'whiteout' on the upper writable ++branch. ++ ++On LKML, there have been discussions about UnionMount (Jan Blunck, ++Bharata B Rao and Valerie Aurora) and Unionfs (Erez Zadok). They took ++different approaches to implement the merged-view. ++The former tries putting it into VFS, and the latter implements as a ++separate filesystem. ++(If I misunderstand about these implementations, please let me know and ++I shall correct it. Because it is a long time ago when I read their ++source files last time). ++ ++UnionMount's approach will be able to small, but may be hard to share ++branches between several UnionMount since the whiteout in it is ++implemented in the inode on branch filesystem and always ++shared. According to Bharata's post, readdir does not seems to be ++finished yet. ++There are several missing features known in this implementations such as ++- for users, the inode number may change silently. eg. copy-up. ++- link(2) may break by copy-up. ++- read(2) may get an obsoleted filedata (fstat(2) too). ++- fcntl(F_SETLK) may be broken by copy-up. ++- unnecessary copy-up may happen, for example mmap(MAP_PRIVATE) after ++ open(O_RDWR). ++ ++In linux-3.18, "overlay" filesystem (formerly known as "overlayfs") was ++merged into mainline. This is another implementation of UnionMount as a ++separated filesystem. All the limitations and known problems which ++UnionMount are equally inherited to "overlay" filesystem. ++ ++Unionfs has a longer history. When I started implementing a stackable ++filesystem (Aug 2005), it already existed. It has virtual super_block, ++inode, dentry and file objects and they have an array pointing lower ++same kind objects. After contributing many patches for Unionfs, I ++re-started my project AUFS (Jun 2006). ++ ++In AUFS, the structure of filesystem resembles to Unionfs, but I ++implemented my own ideas, approaches and enhancements and it became ++totally different one. ++ ++Comparing DM snapshot and fs based implementation ++- the number of bytes to be copied between devices is much smaller. ++- the type of filesystem must be one and only. ++- the fs must be writable, no readonly fs, even for the lower original ++ device. so the compression fs will not be usable. but if we use ++ loopback mount, we may address this issue. ++ for instance, ++ mount /cdrom/squashfs.img /sq ++ losetup /sq/ext2.img ++ losetup /somewhere/cow ++ dmsetup "snapshot /dev/loop0 /dev/loop1 ..." ++- it will be difficult (or needs more operations) to extract the ++ difference between the original device and COW. ++- DM snapshot-merge may help a lot when users try merging. in the ++ fs-layer union, users will use rsync(1). ++ ++You may want to read my old paper "Filesystems in LiveCD" ++(http://aufs.sourceforge.net/aufs2/report/sq/sq.pdf). ++ ++ ++Several characters/aspects/persona of aufs ++---------------------------------------------------------------------- ++ ++Aufs has several characters, aspects or persona. ++1. a filesystem, callee of VFS helper ++2. sub-VFS, caller of VFS helper for branches ++3. a virtual filesystem which maintains persistent inode number ++4. reader/writer of files on branches such like an application ++ ++1. Callee of VFS Helper ++As an ordinary linux filesystem, aufs is a callee of VFS. For instance, ++unlink(2) from an application reaches sys_unlink() kernel function and ++then vfs_unlink() is called. vfs_unlink() is one of VFS helper and it ++calls filesystem specific unlink operation. Actually aufs implements the ++unlink operation but it behaves like a redirector. ++ ++2. Caller of VFS Helper for Branches ++aufs_unlink() passes the unlink request to the branch filesystem as if ++it were called from VFS. So the called unlink operation of the branch ++filesystem acts as usual. As a caller of VFS helper, aufs should handle ++every necessary pre/post operation for the branch filesystem. ++- acquire the lock for the parent dir on a branch ++- lookup in a branch ++- revalidate dentry on a branch ++- mnt_want_write() for a branch ++- vfs_unlink() for a branch ++- mnt_drop_write() for a branch ++- release the lock on a branch ++ ++3. Persistent Inode Number ++One of the most important issue for a filesystem is to maintain inode ++numbers. This is particularly important to support exporting a ++filesystem via NFS. Aufs is a virtual filesystem which doesn't have a ++backend block device for its own. But some storage is necessary to ++keep and maintain the inode numbers. It may be a large space and may not ++suit to keep in memory. Aufs rents some space from its first writable ++branch filesystem (by default) and creates file(s) on it. These files ++are created by aufs internally and removed soon (currently) keeping ++opened. ++Note: Because these files are removed, they are totally gone after ++ unmounting aufs. It means the inode numbers are not persistent ++ across unmount or reboot. I have a plan to make them really ++ persistent which will be important for aufs on NFS server. ++ ++4. Read/Write Files Internally (copy-on-write) ++Because a branch can be readonly, when you write a file on it, aufs will ++"copy-up" it to the upper writable branch internally. And then write the ++originally requested thing to the file. Generally kernel doesn't ++open/read/write file actively. In aufs, even a single write may cause a ++internal "file copy". This behaviour is very similar to cp(1) command. ++ ++Some people may think it is better to pass such work to user space ++helper, instead of doing in kernel space. Actually I am still thinking ++about it. But currently I have implemented it in kernel space. +diff -Naur null/Documentation/filesystems/aufs/design/02struct.txt linux-4.15/Documentation/filesystems/aufs/design/02struct.txt +--- /dev/null ++++ linux-4.15/Documentation/filesystems/aufs/design/02struct.txt 2018-02-25 02:38:09.195737146 +0100 +@@ -0,0 +1,258 @@ ++ ++# Copyright (C) 2005-2017 Junjiro R. Okajima ++# ++# This program is free software; you can redistribute it and/or modify ++# it under the terms of the GNU General Public License as published by ++# the Free Software Foundation; either version 2 of the License, or ++# (at your option) any later version. ++# ++# This program is distributed in the hope that it will be useful, ++# but WITHOUT ANY WARRANTY; without even the implied warranty of ++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++# GNU General Public License for more details. ++# ++# You should have received a copy of the GNU General Public License ++# along with this program. If not, see . ++ ++Basic Aufs Internal Structure ++ ++Superblock/Inode/Dentry/File Objects ++---------------------------------------------------------------------- ++As like an ordinary filesystem, aufs has its own ++superblock/inode/dentry/file objects. All these objects have a ++dynamically allocated array and store the same kind of pointers to the ++lower filesystem, branch. ++For example, when you build a union with one readwrite branch and one ++readonly, mounted /au, /rw and /ro respectively. ++- /au = /rw + /ro ++- /ro/fileA exists but /rw/fileA ++ ++Aufs lookup operation finds /ro/fileA and gets dentry for that. These ++pointers are stored in a aufs dentry. The array in aufs dentry will be, ++- [0] = NULL (because /rw/fileA doesn't exist) ++- [1] = /ro/fileA ++ ++This style of an array is essentially same to the aufs ++superblock/inode/dentry/file objects. ++ ++Because aufs supports manipulating branches, ie. add/delete/change ++branches dynamically, these objects has its own generation. When ++branches are changed, the generation in aufs superblock is ++incremented. And a generation in other object are compared when it is ++accessed. When a generation in other objects are obsoleted, aufs ++refreshes the internal array. ++ ++ ++Superblock ++---------------------------------------------------------------------- ++Additionally aufs superblock has some data for policies to select one ++among multiple writable branches, XIB files, pseudo-links and kobject. ++See below in detail. ++About the policies which supports copy-down a directory, see ++wbr_policy.txt too. ++ ++ ++Branch and XINO(External Inode Number Translation Table) ++---------------------------------------------------------------------- ++Every branch has its own xino (external inode number translation table) ++file. The xino file is created and unlinked by aufs internally. When two ++members of a union exist on the same filesystem, they share the single ++xino file. ++The struct of a xino file is simple, just a sequence of aufs inode ++numbers which is indexed by the lower inode number. ++In the above sample, assume the inode number of /ro/fileA is i111 and ++aufs assigns the inode number i999 for fileA. Then aufs writes 999 as ++4(8) bytes at 111 * 4(8) bytes offset in the xino file. ++ ++When the inode numbers are not contiguous, the xino file will be sparse ++which has a hole in it and doesn't consume as much disk space as it ++might appear. If your branch filesystem consumes disk space for such ++holes, then you should specify 'xino=' option at mounting aufs. ++ ++Aufs has a mount option to free the disk blocks for such holes in XINO ++files on tmpfs or ramdisk. But it is not so effective actually. If you ++meet a problem of disk shortage due to XINO files, then you should try ++"tmpfs-ino.patch" (and "vfs-ino.patch" too) in aufs4-standalone.git. ++The patch localizes the assignment inumbers per tmpfs-mount and avoid ++the holes in XINO files. ++ ++Also a writable branch has three kinds of "whiteout bases". All these ++are existed when the branch is joined to aufs, and their names are ++whiteout-ed doubly, so that users will never see their names in aufs ++hierarchy. ++1. a regular file which will be hardlinked to all whiteouts. ++2. a directory to store a pseudo-link. ++3. a directory to store an "orphan"-ed file temporary. ++ ++1. Whiteout Base ++ When you remove a file on a readonly branch, aufs handles it as a ++ logical deletion and creates a whiteout on the upper writable branch ++ as a hardlink of this file in order not to consume inode on the ++ writable branch. ++2. Pseudo-link Dir ++ See below, Pseudo-link. ++3. Step-Parent Dir ++ When "fileC" exists on the lower readonly branch only and it is ++ opened and removed with its parent dir, and then user writes ++ something into it, then aufs copies-up fileC to this ++ directory. Because there is no other dir to store fileC. After ++ creating a file under this dir, the file is unlinked. ++ ++Because aufs supports manipulating branches, ie. add/delete/change ++dynamically, a branch has its own id. When the branch order changes, ++aufs finds the new index by searching the branch id. ++ ++ ++Pseudo-link ++---------------------------------------------------------------------- ++Assume "fileA" exists on the lower readonly branch only and it is ++hardlinked to "fileB" on the branch. When you write something to fileA, ++aufs copies-up it to the upper writable branch. Additionally aufs ++creates a hardlink under the Pseudo-link Directory of the writable ++branch. The inode of a pseudo-link is kept in aufs super_block as a ++simple list. If fileB is read after unlinking fileA, aufs returns ++filedata from the pseudo-link instead of the lower readonly ++branch. Because the pseudo-link is based upon the inode, to keep the ++inode number by xino (see above) is essentially necessary. ++ ++All the hardlinks under the Pseudo-link Directory of the writable branch ++should be restored in a proper location later. Aufs provides a utility ++to do this. The userspace helpers executed at remounting and unmounting ++aufs by default. ++During this utility is running, it puts aufs into the pseudo-link ++maintenance mode. In this mode, only the process which began the ++maintenance mode (and its child processes) is allowed to operate in ++aufs. Some other processes which are not related to the pseudo-link will ++be allowed to run too, but the rest have to return an error or wait ++until the maintenance mode ends. If a process already acquires an inode ++mutex (in VFS), it has to return an error. ++ ++ ++XIB(external inode number bitmap) ++---------------------------------------------------------------------- ++Addition to the xino file per a branch, aufs has an external inode number ++bitmap in a superblock object. It is also an internal file such like a ++xino file. ++It is a simple bitmap to mark whether the aufs inode number is in-use or ++not. ++To reduce the file I/O, aufs prepares a single memory page to cache xib. ++ ++As well as XINO files, aufs has a feature to truncate/refresh XIB to ++reduce the number of consumed disk blocks for these files. ++ ++ ++Virtual or Vertical Dir, and Readdir in Userspace ++---------------------------------------------------------------------- ++In order to support multiple layers (branches), aufs readdir operation ++constructs a virtual dir block on memory. For readdir, aufs calls ++vfs_readdir() internally for each dir on branches, merges their entries ++with eliminating the whiteout-ed ones, and sets it to file (dir) ++object. So the file object has its entry list until it is closed. The ++entry list will be updated when the file position is zero and becomes ++obsoleted. This decision is made in aufs automatically. ++ ++The dynamically allocated memory block for the name of entries has a ++unit of 512 bytes (by default) and stores the names contiguously (no ++padding). Another block for each entry is handled by kmem_cache too. ++During building dir blocks, aufs creates hash list and judging whether ++the entry is whiteouted by its upper branch or already listed. ++The merged result is cached in the corresponding inode object and ++maintained by a customizable life-time option. ++ ++Some people may call it can be a security hole or invite DoS attack ++since the opened and once readdir-ed dir (file object) holds its entry ++list and becomes a pressure for system memory. But I'd say it is similar ++to files under /proc or /sys. The virtual files in them also holds a ++memory page (generally) while they are opened. When an idea to reduce ++memory for them is introduced, it will be applied to aufs too. ++For those who really hate this situation, I've developed readdir(3) ++library which operates this merging in userspace. You just need to set ++LD_PRELOAD environment variable, and aufs will not consume no memory in ++kernel space for readdir(3). ++ ++ ++Workqueue ++---------------------------------------------------------------------- ++Aufs sometimes requires privilege access to a branch. For instance, ++in copy-up/down operation. When a user process is going to make changes ++to a file which exists in the lower readonly branch only, and the mode ++of one of ancestor directories may not be writable by a user ++process. Here aufs copy-up the file with its ancestors and they may ++require privilege to set its owner/group/mode/etc. ++This is a typical case of a application character of aufs (see ++Introduction). ++ ++Aufs uses workqueue synchronously for this case. It creates its own ++workqueue. The workqueue is a kernel thread and has privilege. Aufs ++passes the request to call mkdir or write (for example), and wait for ++its completion. This approach solves a problem of a signal handler ++simply. ++If aufs didn't adopt the workqueue and changed the privilege of the ++process, then the process may receive the unexpected SIGXFSZ or other ++signals. ++ ++Also aufs uses the system global workqueue ("events" kernel thread) too ++for asynchronous tasks, such like handling inotify/fsnotify, re-creating a ++whiteout base and etc. This is unrelated to a privilege. ++Most of aufs operation tries acquiring a rw_semaphore for aufs ++superblock at the beginning, at the same time waits for the completion ++of all queued asynchronous tasks. ++ ++ ++Whiteout ++---------------------------------------------------------------------- ++The whiteout in aufs is very similar to Unionfs's. That is represented ++by its filename. UnionMount takes an approach of a file mode, but I am ++afraid several utilities (find(1) or something) will have to support it. ++ ++Basically the whiteout represents "logical deletion" which stops aufs to ++lookup further, but also it represents "dir is opaque" which also stop ++further lookup. ++ ++In aufs, rmdir(2) and rename(2) for dir uses whiteout alternatively. ++In order to make several functions in a single systemcall to be ++revertible, aufs adopts an approach to rename a directory to a temporary ++unique whiteouted name. ++For example, in rename(2) dir where the target dir already existed, aufs ++renames the target dir to a temporary unique whiteouted name before the ++actual rename on a branch, and then handles other actions (make it opaque, ++update the attributes, etc). If an error happens in these actions, aufs ++simply renames the whiteouted name back and returns an error. If all are ++succeeded, aufs registers a function to remove the whiteouted unique ++temporary name completely and asynchronously to the system global ++workqueue. ++ ++ ++Copy-up ++---------------------------------------------------------------------- ++It is a well-known feature or concept. ++When user modifies a file on a readonly branch, aufs operate "copy-up" ++internally and makes change to the new file on the upper writable branch. ++When the trigger systemcall does not update the timestamps of the parent ++dir, aufs reverts it after copy-up. ++ ++ ++Move-down (aufs3.9 and later) ++---------------------------------------------------------------------- ++"Copy-up" is one of the essential feature in aufs. It copies a file from ++the lower readonly branch to the upper writable branch when a user ++changes something about the file. ++"Move-down" is an opposite action of copy-up. Basically this action is ++ran manually instead of automatically and internally. ++For desgin and implementation, aufs has to consider these issues. ++- whiteout for the file may exist on the lower branch. ++- ancestor directories may not exist on the lower branch. ++- diropq for the ancestor directories may exist on the upper branch. ++- free space on the lower branch will reduce. ++- another access to the file may happen during moving-down, including ++ UDBA (see "Revalidate Dentry and UDBA"). ++- the file should not be hard-linked nor pseudo-linked. they should be ++ handled by auplink utility later. ++ ++Sometimes users want to move-down a file from the upper writable branch ++to the lower readonly or writable branch. For instance, ++- the free space of the upper writable branch is going to run out. ++- create a new intermediate branch between the upper and lower branch. ++- etc. ++ ++For this purpose, use "aumvdown" command in aufs-util.git. +diff -Naur null/Documentation/filesystems/aufs/design/03atomic_open.txt linux-4.15/Documentation/filesystems/aufs/design/03atomic_open.txt +--- /dev/null ++++ linux-4.15/Documentation/filesystems/aufs/design/03atomic_open.txt 2018-02-25 02:38:09.196737254 +0100 +@@ -0,0 +1,85 @@ ++ ++# Copyright (C) 2015-2017 Junjiro R. Okajima ++# ++# This program is free software; you can redistribute it and/or modify ++# it under the terms of the GNU General Public License as published by ++# the Free Software Foundation; either version 2 of the License, or ++# (at your option) any later version. ++# ++# This program is distributed in the hope that it will be useful, ++# but WITHOUT ANY WARRANTY; without even the implied warranty of ++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++# GNU General Public License for more details. ++# ++# You should have received a copy of the GNU General Public License ++# along with this program. If not, see . ++ ++Support for a branch who has its ->atomic_open() ++---------------------------------------------------------------------- ++The filesystems who implement its ->atomic_open() are not majority. For ++example NFSv4 does, and aufs should call NFSv4 ->atomic_open, ++particularly for open(O_CREAT|O_EXCL, 0400) case. Other than ++->atomic_open(), NFSv4 returns an error for this open(2). While I am not ++sure whether all filesystems who have ->atomic_open() behave like this, ++but NFSv4 surely returns the error. ++ ++In order to support ->atomic_open() for aufs, there are a few ++approaches. ++ ++A. Introduce aufs_atomic_open() ++ - calls one of VFS:do_last(), lookup_open() or atomic_open() for ++ branch fs. ++B. Introduce aufs_atomic_open() calling create, open and chmod. this is ++ an aufs user Pip Cet's approach ++ - calls aufs_create(), VFS finish_open() and notify_change(). ++ - pass fake-mode to finish_open(), and then correct the mode by ++ notify_change(). ++C. Extend aufs_open() to call branch fs's ->atomic_open() ++ - no aufs_atomic_open(). ++ - aufs_lookup() registers the TID to an aufs internal object. ++ - aufs_create() does nothing when the matching TID is registered, but ++ registers the mode. ++ - aufs_open() calls branch fs's ->atomic_open() when the matching ++ TID is registered. ++D. Extend aufs_open() to re-try branch fs's ->open() with superuser's ++ credential ++ - no aufs_atomic_open(). ++ - aufs_create() registers the TID to an internal object. this info ++ represents "this process created this file just now." ++ - when aufs gets EACCES from branch fs's ->open(), then confirm the ++ registered TID and re-try open() with superuser's credential. ++ ++Pros and cons for each approach. ++ ++A. ++ - straightforward but highly depends upon VFS internal. ++ - the atomic behavaiour is kept. ++ - some of parameters such as nameidata are hard to reproduce for ++ branch fs. ++ - large overhead. ++B. ++ - easy to implement. ++ - the atomic behavaiour is lost. ++C. ++ - the atomic behavaiour is kept. ++ - dirty and tricky. ++ - VFS checks whether the file is created correctly after calling ++ ->create(), which means this approach doesn't work. ++D. ++ - easy to implement. ++ - the atomic behavaiour is lost. ++ - to open a file with superuser's credential and give it to a user ++ process is a bad idea, since the file object keeps the credential ++ in it. It may affect LSM or something. This approach doesn't work ++ either. ++ ++The approach A is ideal, but it hard to implement. So here is a ++variation of A, which is to be implemented. ++ ++A-1. Introduce aufs_atomic_open() ++ - calls branch fs ->atomic_open() if exists. otherwise calls ++ vfs_create() and finish_open(). ++ - the demerit is that the several checks after branch fs ++ ->atomic_open() are lost. in the ordinary case, the checks are ++ done by VFS:do_last(), lookup_open() and atomic_open(). some can ++ be implemented in aufs, but not all I am afraid. +diff -Naur null/Documentation/filesystems/aufs/design/03lookup.txt linux-4.15/Documentation/filesystems/aufs/design/03lookup.txt +--- /dev/null ++++ linux-4.15/Documentation/filesystems/aufs/design/03lookup.txt 2018-02-25 02:38:09.196737254 +0100 +@@ -0,0 +1,113 @@ ++ ++# Copyright (C) 2005-2017 Junjiro R. Okajima ++# ++# This program is free software; you can redistribute it and/or modify ++# it under the terms of the GNU General Public License as published by ++# the Free Software Foundation; either version 2 of the License, or ++# (at your option) any later version. ++# ++# This program is distributed in the hope that it will be useful, ++# but WITHOUT ANY WARRANTY; without even the implied warranty of ++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++# GNU General Public License for more details. ++# ++# You should have received a copy of the GNU General Public License ++# along with this program. If not, see . ++ ++Lookup in a Branch ++---------------------------------------------------------------------- ++Since aufs has a character of sub-VFS (see Introduction), it operates ++lookup for branches as VFS does. It may be a heavy work. But almost all ++lookup operation in aufs is the simplest case, ie. lookup only an entry ++directly connected to its parent. Digging down the directory hierarchy ++is unnecessary. VFS has a function lookup_one_len() for that use, and ++aufs calls it. ++ ++When a branch is a remote filesystem, aufs basically relies upon its ++->d_revalidate(), also aufs forces the hardest revalidate tests for ++them. ++For d_revalidate, aufs implements three levels of revalidate tests. See ++"Revalidate Dentry and UDBA" in detail. ++ ++ ++Test Only the Highest One for the Directory Permission (dirperm1 option) ++---------------------------------------------------------------------- ++Let's try case study. ++- aufs has two branches, upper readwrite and lower readonly. ++ /au = /rw + /ro ++- "dirA" exists under /ro, but /rw. and its mode is 0700. ++- user invoked "chmod a+rx /au/dirA" ++- the internal copy-up is activated and "/rw/dirA" is created and its ++ permission bits are set to world readable. ++- then "/au/dirA" becomes world readable? ++ ++In this case, /ro/dirA is still 0700 since it exists in readonly branch, ++or it may be a natively readonly filesystem. If aufs respects the lower ++branch, it should not respond readdir request from other users. But user ++allowed it by chmod. Should really aufs rejects showing the entries ++under /ro/dirA? ++ ++To be honest, I don't have a good solution for this case. So aufs ++implements 'dirperm1' and 'nodirperm1' mount options, and leave it to ++users. ++When dirperm1 is specified, aufs checks only the highest one for the ++directory permission, and shows the entries. Otherwise, as usual, checks ++every dir existing on all branches and rejects the request. ++ ++As a side effect, dirperm1 option improves the performance of aufs ++because the number of permission check is reduced when the number of ++branch is many. ++ ++ ++Revalidate Dentry and UDBA (User's Direct Branch Access) ++---------------------------------------------------------------------- ++Generally VFS helpers re-validate a dentry as a part of lookup. ++0. digging down the directory hierarchy. ++1. lock the parent dir by its i_mutex. ++2. lookup the final (child) entry. ++3. revalidate it. ++4. call the actual operation (create, unlink, etc.) ++5. unlock the parent dir ++ ++If the filesystem implements its ->d_revalidate() (step 3), then it is ++called. Actually aufs implements it and checks the dentry on a branch is ++still valid. ++But it is not enough. Because aufs has to release the lock for the ++parent dir on a branch at the end of ->lookup() (step 2) and ++->d_revalidate() (step 3) while the i_mutex of the aufs dir is still ++held by VFS. ++If the file on a branch is changed directly, eg. bypassing aufs, after ++aufs released the lock, then the subsequent operation may cause ++something unpleasant result. ++ ++This situation is a result of VFS architecture, ->lookup() and ++->d_revalidate() is separated. But I never say it is wrong. It is a good ++design from VFS's point of view. It is just not suitable for sub-VFS ++character in aufs. ++ ++Aufs supports such case by three level of revalidation which is ++selectable by user. ++1. Simple Revalidate ++ Addition to the native flow in VFS's, confirm the child-parent ++ relationship on the branch just after locking the parent dir on the ++ branch in the "actual operation" (step 4). When this validation ++ fails, aufs returns EBUSY. ->d_revalidate() (step 3) in aufs still ++ checks the validation of the dentry on branches. ++2. Monitor Changes Internally by Inotify/Fsnotify ++ Addition to above, in the "actual operation" (step 4) aufs re-lookup ++ the dentry on the branch, and returns EBUSY if it finds different ++ dentry. ++ Additionally, aufs sets the inotify/fsnotify watch for every dir on branches ++ during it is in cache. When the event is notified, aufs registers a ++ function to kernel 'events' thread by schedule_work(). And the ++ function sets some special status to the cached aufs dentry and inode ++ private data. If they are not cached, then aufs has nothing to ++ do. When the same file is accessed through aufs (step 0-3) later, ++ aufs will detect the status and refresh all necessary data. ++ In this mode, aufs has to ignore the event which is fired by aufs ++ itself. ++3. No Extra Validation ++ This is the simplest test and doesn't add any additional revalidation ++ test, and skip the revalidation in step 4. It is useful and improves ++ aufs performance when system surely hide the aufs branches from user, ++ by over-mounting something (or another method). +diff -Naur null/Documentation/filesystems/aufs/design/04branch.txt linux-4.15/Documentation/filesystems/aufs/design/04branch.txt +--- /dev/null ++++ linux-4.15/Documentation/filesystems/aufs/design/04branch.txt 2018-02-25 02:38:09.196737254 +0100 +@@ -0,0 +1,74 @@ ++ ++# Copyright (C) 2005-2017 Junjiro R. Okajima ++# ++# This program is free software; you can redistribute it and/or modify ++# it under the terms of the GNU General Public License as published by ++# the Free Software Foundation; either version 2 of the License, or ++# (at your option) any later version. ++# ++# This program is distributed in the hope that it will be useful, ++# but WITHOUT ANY WARRANTY; without even the implied warranty of ++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++# GNU General Public License for more details. ++# ++# You should have received a copy of the GNU General Public License ++# along with this program. If not, see . ++ ++Branch Manipulation ++ ++Since aufs supports dynamic branch manipulation, ie. add/remove a branch ++and changing its permission/attribute, there are a lot of works to do. ++ ++ ++Add a Branch ++---------------------------------------------------------------------- ++o Confirm the adding dir exists outside of aufs, including loopback ++ mount, and its various attributes. ++o Initialize the xino file and whiteout bases if necessary. ++ See struct.txt. ++ ++o Check the owner/group/mode of the directory ++ When the owner/group/mode of the adding directory differs from the ++ existing branch, aufs issues a warning because it may impose a ++ security risk. ++ For example, when a upper writable branch has a world writable empty ++ top directory, a malicious user can create any files on the writable ++ branch directly, like copy-up and modify manually. If something like ++ /etc/{passwd,shadow} exists on the lower readonly branch but the upper ++ writable branch, and the writable branch is world-writable, then a ++ malicious guy may create /etc/passwd on the writable branch directly ++ and the infected file will be valid in aufs. ++ I am afraid it can be a security issue, but aufs can do nothing except ++ producing a warning. ++ ++ ++Delete a Branch ++---------------------------------------------------------------------- ++o Confirm the deleting branch is not busy ++ To be general, there is one merit to adopt "remount" interface to ++ manipulate branches. It is to discard caches. At deleting a branch, ++ aufs checks the still cached (and connected) dentries and inodes. If ++ there are any, then they are all in-use. An inode without its ++ corresponding dentry can be alive alone (for example, inotify/fsnotify case). ++ ++ For the cached one, aufs checks whether the same named entry exists on ++ other branches. ++ If the cached one is a directory, because aufs provides a merged view ++ to users, as long as one dir is left on any branch aufs can show the ++ dir to users. In this case, the branch can be removed from aufs. ++ Otherwise aufs rejects deleting the branch. ++ ++ If any file on the deleting branch is opened by aufs, then aufs ++ rejects deleting. ++ ++ ++Modify the Permission of a Branch ++---------------------------------------------------------------------- ++o Re-initialize or remove the xino file and whiteout bases if necessary. ++ See struct.txt. ++ ++o rw --> ro: Confirm the modifying branch is not busy ++ Aufs rejects the request if any of these conditions are true. ++ - a file on the branch is mmap-ed. ++ - a regular file on the branch is opened for write and there is no ++ same named entry on the upper branch. +diff -Naur null/Documentation/filesystems/aufs/design/05wbr_policy.txt linux-4.15/Documentation/filesystems/aufs/design/05wbr_policy.txt +--- /dev/null ++++ linux-4.15/Documentation/filesystems/aufs/design/05wbr_policy.txt 2018-02-25 02:38:09.196737254 +0100 +@@ -0,0 +1,64 @@ ++ ++# Copyright (C) 2005-2017 Junjiro R. Okajima ++# ++# This program is free software; you can redistribute it and/or modify ++# it under the terms of the GNU General Public License as published by ++# the Free Software Foundation; either version 2 of the License, or ++# (at your option) any later version. ++# ++# This program is distributed in the hope that it will be useful, ++# but WITHOUT ANY WARRANTY; without even the implied warranty of ++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++# GNU General Public License for more details. ++# ++# You should have received a copy of the GNU General Public License ++# along with this program. If not, see . ++ ++Policies to Select One among Multiple Writable Branches ++---------------------------------------------------------------------- ++When the number of writable branch is more than one, aufs has to decide ++the target branch for file creation or copy-up. By default, the highest ++writable branch which has the parent (or ancestor) dir of the target ++file is chosen (top-down-parent policy). ++By user's request, aufs implements some other policies to select the ++writable branch, for file creation several policies, round-robin, ++most-free-space, and other policies. For copy-up, top-down-parent, ++bottom-up-parent, bottom-up and others. ++ ++As expected, the round-robin policy selects the branch in circular. When ++you have two writable branches and creates 10 new files, 5 files will be ++created for each branch. mkdir(2) systemcall is an exception. When you ++create 10 new directories, all will be created on the same branch. ++And the most-free-space policy selects the one which has most free ++space among the writable branches. The amount of free space will be ++checked by aufs internally, and users can specify its time interval. ++ ++The policies for copy-up is more simple, ++top-down-parent is equivalent to the same named on in create policy, ++bottom-up-parent selects the writable branch where the parent dir ++exists and the nearest upper one from the copyup-source, ++bottom-up selects the nearest upper writable branch from the ++copyup-source, regardless the existence of the parent dir. ++ ++There are some rules or exceptions to apply these policies. ++- If there is a readonly branch above the policy-selected branch and ++ the parent dir is marked as opaque (a variation of whiteout), or the ++ target (creating) file is whiteout-ed on the upper readonly branch, ++ then the result of the policy is ignored and the target file will be ++ created on the nearest upper writable branch than the readonly branch. ++- If there is a writable branch above the policy-selected branch and ++ the parent dir is marked as opaque or the target file is whiteouted ++ on the branch, then the result of the policy is ignored and the target ++ file will be created on the highest one among the upper writable ++ branches who has diropq or whiteout. In case of whiteout, aufs removes ++ it as usual. ++- link(2) and rename(2) systemcalls are exceptions in every policy. ++ They try selecting the branch where the source exists as possible ++ since copyup a large file will take long time. If it can't be, ++ ie. the branch where the source exists is readonly, then they will ++ follow the copyup policy. ++- There is an exception for rename(2) when the target exists. ++ If the rename target exists, aufs compares the index of the branches ++ where the source and the target exists and selects the higher ++ one. If the selected branch is readonly, then aufs follows the ++ copyup policy. +diff -Naur null/Documentation/filesystems/aufs/design/06dirren.dot linux-4.15/Documentation/filesystems/aufs/design/06dirren.dot +--- /dev/null ++++ linux-4.15/Documentation/filesystems/aufs/design/06dirren.dot 2018-02-25 02:38:09.196737254 +0100 +@@ -0,0 +1,31 @@ ++ ++// to view this graph, run dot(1) command in GRAPHVIZ. ++ ++digraph G { ++node [shape=box]; ++whinfo [label="detailed info file\n(lower_brid_root-hinum, h_inum, namelen, old name)"]; ++ ++node [shape=oval]; ++ ++aufs_rename -> whinfo [label="store/remove"]; ++ ++node [shape=oval]; ++inode_list [label="h_inum list in branch\ncache"]; ++ ++node [shape=box]; ++whinode [label="h_inum list file"]; ++ ++node [shape=oval]; ++brmgmt [label="br_add/del/mod/umount"]; ++ ++brmgmt -> inode_list [label="create/remove"]; ++brmgmt -> whinode [label="load/store"]; ++ ++inode_list -> whinode [style=dashed,dir=both]; ++ ++aufs_rename -> inode_list [label="add/del"]; ++ ++aufs_lookup -> inode_list [label="search"]; ++ ++aufs_lookup -> whinfo [label="load/remove"]; ++} +diff -Naur null/Documentation/filesystems/aufs/design/06dirren.txt linux-4.15/Documentation/filesystems/aufs/design/06dirren.txt +--- /dev/null ++++ linux-4.15/Documentation/filesystems/aufs/design/06dirren.txt 2018-02-25 02:38:09.196737254 +0100 +@@ -0,0 +1,102 @@ ++ ++# Copyright (C) 2017 Junjiro R. Okajima ++# ++# This program is free software; you can redistribute it and/or modify ++# it under the terms of the GNU General Public License as published by ++# the Free Software Foundation; either version 2 of the License, or ++# (at your option) any later version. ++# ++# This program is distributed in the hope that it will be useful, ++# but WITHOUT ANY WARRANTY; without even the implied warranty of ++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++# GNU General Public License for more details. ++# ++# You should have received a copy of the GNU General Public License ++# along with this program. If not, see . ++ ++Special handling for renaming a directory (DIRREN) ++---------------------------------------------------------------------- ++First, let's assume we have a simple usecase. ++ ++- /u = /rw + /ro ++- /rw/dirA exists ++- /ro/dirA and /ro/dirA/file exist too ++- there is no dirB on both branches ++- a user issues rename("dirA", "dirB") ++ ++Now, what should aufs behave against this rename(2)? ++There are a few possible cases. ++ ++A. returns EROFS. ++ since dirA exists on a readonly branch which cannot be renamed. ++B. returns EXDEV. ++ it is possible to copy-up dirA (only the dir itself), but the child ++ entries ("file" in this case) should not be. it must be a bad ++ approach to copy-up recursively. ++C. returns a success. ++ even the branch /ro is readonly, aufs tries renaming it. Obviously it ++ is a violation of aufs' policy. ++D. construct an extra information which indicates that /ro/dirA should ++ be handled as the name of dirB. ++ overlayfs has a similar feature called REDIRECT. ++ ++Until now, aufs implements the case B only which returns EXDEV, and ++expects the userspace application behaves like mv(1) which tries ++issueing rename(2) recursively. ++ ++A new aufs feature called DIRREN is introduced which implements the case ++D. There are several "extra information" added. ++ ++1. detailed info per renamed directory ++ path: /rw/dirB/$AUFS_WH_DR_INFO_PFX. ++2. the inode-number list of directories on a branch ++ path: /rw/dirB/$AUFS_WH_DR_BRHINO ++ ++The filename of "detailed info per directory" represents the lower ++branch, and its format is ++- a type of the branch id ++ one of these. ++ + uuid (not implemented yet) ++ + fsid ++ + dev ++- the inode-number of the branch root dir ++ ++And it contains these info in a single regular file. ++- magic number ++- branch's inode-number of the logically renamed dir ++- the name of the before-renamed dir ++ ++The "detailed info per directory" file is created in aufs rename(2), and ++loaded in any lookup. ++The info is considered in lookup for the matching case only. Here ++"matching" means that the root of branch (in the info filename) is same ++to the current looking-up branch. After looking-up the before-renamed ++name, the inode-number is compared. And the matched dentry is used. ++ ++The "inode-number list of directories" is a regular file which contains ++simply the inode-numbers on the branch. The file is created or updated ++in removing the branch, and loaded in adding the branch. Its lifetime is ++equal to the branch. ++The list is refered in lookup, and when the current target inode is ++found in the list, the aufs tries loading the "detailed info per ++directory" and get the changed and valid name of the dir. ++ ++Theoretically these "extra informaiton" may be able to be put into XATTR ++in the dir inode. But aufs doesn't choose this way because ++1. XATTR may not be supported by the branch (or its configuration) ++2. XATTR may have its size limit. ++3. XATTR may be less easy to convert than a regular file, when the ++ format of the info is changed in the future. ++At the same time, I agree that the regular file approach is much slower ++than XATTR approach. So, in the future, aufs may take the XATTR or other ++better approach. ++ ++This DIRREN feature is enabled by aufs configuration, and is activated ++by a new mount option. ++ ++For the more complicated case, there is a work with UDBA option, which ++is to dected the direct access to the branches (by-passing aufs) and to ++maintain the cashes in aufs. Since a single cached aufs dentry may ++contains two names, before- and after-rename, the name comparision in ++UDBA handler may not work correctly. In this case, the behaviour will be ++equivalen to udba=reval case. +diff -Naur null/Documentation/filesystems/aufs/design/06fhsm.txt linux-4.15/Documentation/filesystems/aufs/design/06fhsm.txt +--- /dev/null ++++ linux-4.15/Documentation/filesystems/aufs/design/06fhsm.txt 2018-02-25 02:38:09.196737254 +0100 +@@ -0,0 +1,120 @@ ++ ++# Copyright (C) 2011-2017 Junjiro R. Okajima ++# ++# This program is free software; you can redistribute it and/or modify ++# it under the terms of the GNU General Public License as published by ++# the Free Software Foundation; either version 2 of the License, or ++# (at your option) any later version. ++# ++# This program is distributed in the hope that it will be useful, ++# but WITHOUT ANY WARRANTY; without even the implied warranty of ++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++# GNU General Public License for more details. ++# ++# You should have received a copy of the GNU General Public License ++# along with this program; if not, write to the Free Software ++# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ++ ++ ++File-based Hierarchical Storage Management (FHSM) ++---------------------------------------------------------------------- ++Hierarchical Storage Management (or HSM) is a well-known feature in the ++storage world. Aufs provides this feature as file-based with multiple ++writable branches, based upon the principle of "Colder, the Lower". ++Here the word "colder" means that the less used files, and "lower" means ++that the position in the order of the stacked branches vertically. ++These multiple writable branches are prioritized, ie. the topmost one ++should be the fastest drive and be used heavily. ++ ++o Characters in aufs FHSM story ++- aufs itself and a new branch attribute. ++- a new ioctl interface to move-down and to establish a connection with ++ the daemon ("move-down" is a converse of "copy-up"). ++- userspace tool and daemon. ++ ++The userspace daemon establishes a connection with aufs and waits for ++the notification. The notified information is very similar to struct ++statfs containing the number of consumed blocks and inodes. ++When the consumed blocks/inodes of a branch exceeds the user-specified ++upper watermark, the daemon activates its move-down process until the ++consumed blocks/inodes reaches the user-specified lower watermark. ++ ++The actual move-down is done by aufs based upon the request from ++user-space since we need to maintain the inode number and the internal ++pointer arrays in aufs. ++ ++Currently aufs FHSM handles the regular files only. Additionally they ++must not be hard-linked nor pseudo-linked. ++ ++ ++o Cowork of aufs and the user-space daemon ++ During the userspace daemon established the connection, aufs sends a ++ small notification to it whenever aufs writes something into the ++ writable branch. But it may cost high since aufs issues statfs(2) ++ internally. So user can specify a new option to cache the ++ info. Actually the notification is controlled by these factors. ++ + the specified cache time. ++ + classified as "force" by aufs internally. ++ Until the specified time expires, aufs doesn't send the info ++ except the forced cases. When aufs decide forcing, the info is always ++ notified to userspace. ++ For example, the number of free inodes is generally large enough and ++ the shortage of it happens rarely. So aufs doesn't force the ++ notification when creating a new file, directory and others. This is ++ the typical case which aufs doesn't force. ++ When aufs writes the actual filedata and the files consumes any of new ++ blocks, the aufs forces notifying. ++ ++ ++o Interfaces in aufs ++- New branch attribute. ++ + fhsm ++ Specifies that the branch is managed by FHSM feature. In other word, ++ participant in the FHSM. ++ When nofhsm is set to the branch, it will not be the source/target ++ branch of the move-down operation. This attribute is set ++ independently from coo and moo attributes, and if you want full ++ FHSM, you should specify them as well. ++- New mount option. ++ + fhsm_sec ++ Specifies a second to suppress many less important info to be ++ notified. ++- New ioctl. ++ + AUFS_CTL_FHSM_FD ++ create a new file descriptor which userspace can read the notification ++ (a subset of struct statfs) from aufs. ++- Module parameter 'brs' ++ It has to be set to 1. Otherwise the new mount option 'fhsm' will not ++ be set. ++- mount helpers /sbin/mount.aufs and /sbin/umount.aufs ++ When there are two or more branches with fhsm attributes, ++ /sbin/mount.aufs invokes the user-space daemon and /sbin/umount.aufs ++ terminates it. As a result of remounting and branch-manipulation, the ++ number of branches with fhsm attribute can be one. In this case, ++ /sbin/mount.aufs will terminate the user-space daemon. ++ ++ ++Finally the operation is done as these steps in kernel-space. ++- make sure that, ++ + no one else is using the file. ++ + the file is not hard-linked. ++ + the file is not pseudo-linked. ++ + the file is a regular file. ++ + the parent dir is not opaqued. ++- find the target writable branch. ++- make sure the file is not whiteout-ed by the upper (than the target) ++ branch. ++- make the parent dir on the target branch. ++- mutex lock the inode on the branch. ++- unlink the whiteout on the target branch (if exists). ++- lookup and create the whiteout-ed temporary name on the target branch. ++- copy the file as the whiteout-ed temporary name on the target branch. ++- rename the whiteout-ed temporary name to the original name. ++- unlink the file on the source branch. ++- maintain the internal pointer array and the external inode number ++ table (XINO). ++- maintain the timestamps and other attributes of the parent dir and the ++ file. ++ ++And of course, in every step, an error may happen. So the operation ++should restore the original file state after an error happens. +diff -Naur null/Documentation/filesystems/aufs/design/06mmap.txt linux-4.15/Documentation/filesystems/aufs/design/06mmap.txt +--- /dev/null ++++ linux-4.15/Documentation/filesystems/aufs/design/06mmap.txt 2018-02-25 02:38:09.196737254 +0100 +@@ -0,0 +1,72 @@ ++ ++# Copyright (C) 2005-2017 Junjiro R. Okajima ++# ++# This program is free software; you can redistribute it and/or modify ++# it under the terms of the GNU General Public License as published by ++# the Free Software Foundation; either version 2 of the License, or ++# (at your option) any later version. ++# ++# This program is distributed in the hope that it will be useful, ++# but WITHOUT ANY WARRANTY; without even the implied warranty of ++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++# GNU General Public License for more details. ++# ++# You should have received a copy of the GNU General Public License ++# along with this program. If not, see . ++ ++mmap(2) -- File Memory Mapping ++---------------------------------------------------------------------- ++In aufs, the file-mapped pages are handled by a branch fs directly, no ++interaction with aufs. It means aufs_mmap() calls the branch fs's ++->mmap(). ++This approach is simple and good, but there is one problem. ++Under /proc, several entries show the mmapped files by its path (with ++device and inode number), and the printed path will be the path on the ++branch fs's instead of virtual aufs's. ++This is not a problem in most cases, but some utilities lsof(1) (and its ++user) may expect the path on aufs. ++ ++To address this issue, aufs adds a new member called vm_prfile in struct ++vm_area_struct (and struct vm_region). The original vm_file points to ++the file on the branch fs in order to handle everything correctly as ++usual. The new vm_prfile points to a virtual file in aufs, and the ++show-functions in procfs refers to vm_prfile if it is set. ++Also we need to maintain several other places where touching vm_file ++such like ++- fork()/clone() copies vma and the reference count of vm_file is ++ incremented. ++- merging vma maintains the ref count too. ++ ++This is not a good approach. It just fakes the printed path. But it ++leaves all behaviour around f_mapping unchanged. This is surely an ++advantage. ++Actually aufs had adopted another complicated approach which calls ++generic_file_mmap() and handles struct vm_operations_struct. In this ++approach, aufs met a hard problem and I could not solve it without ++switching the approach. ++ ++There may be one more another approach which is ++- bind-mount the branch-root onto the aufs-root internally ++- grab the new vfsmount (ie. struct mount) ++- lazy-umount the branch-root internally ++- in open(2) the aufs-file, open the branch-file with the hidden ++ vfsmount (instead of the original branch's vfsmount) ++- ideally this "bind-mount and lazy-umount" should be done atomically, ++ but it may be possible from userspace by the mount helper. ++ ++Adding the internal hidden vfsmount and using it in opening a file, the ++file path under /proc will be printed correctly. This approach looks ++smarter, but is not possible I am afraid. ++- aufs-root may be bind-mount later. when it happens, another hidden ++ vfsmount will be required. ++- it is hard to get the chance to bind-mount and lazy-umount ++ + in kernel-space, FS can have vfsmount in open(2) via ++ file->f_path, and aufs can know its vfsmount. But several locks are ++ already acquired, and if aufs tries to bind-mount and lazy-umount ++ here, then it may cause a deadlock. ++ + in user-space, bind-mount doesn't invoke the mount helper. ++- since /proc shows dev and ino, aufs has to give vma these info. it ++ means a new member vm_prinode will be necessary. this is essentially ++ equivalent to vm_prfile described above. ++ ++I have to give up this "looks-smater" approach. +diff -Naur null/Documentation/filesystems/aufs/design/06xattr.txt linux-4.15/Documentation/filesystems/aufs/design/06xattr.txt +--- /dev/null ++++ linux-4.15/Documentation/filesystems/aufs/design/06xattr.txt 2018-02-25 02:38:09.196737254 +0100 +@@ -0,0 +1,96 @@ ++ ++# Copyright (C) 2014-2017 Junjiro R. Okajima ++# ++# This program is free software; you can redistribute it and/or modify ++# it under the terms of the GNU General Public License as published by ++# the Free Software Foundation; either version 2 of the License, or ++# (at your option) any later version. ++# ++# This program is distributed in the hope that it will be useful, ++# but WITHOUT ANY WARRANTY; without even the implied warranty of ++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++# GNU General Public License for more details. ++# ++# You should have received a copy of the GNU General Public License ++# along with this program; if not, write to the Free Software ++# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ++ ++ ++Listing XATTR/EA and getting the value ++---------------------------------------------------------------------- ++For the inode standard attributes (owner, group, timestamps, etc.), aufs ++shows the values from the topmost existing file. This behaviour is good ++for the non-dir entries since the bahaviour exactly matches the shown ++information. But for the directories, aufs considers all the same named ++entries on the lower branches. Which means, if one of the lower entry ++rejects readdir call, then aufs returns an error even if the topmost ++entry allows it. This behaviour is necessary to respect the branch fs's ++security, but can make users confused since the user-visible standard ++attributes don't match the behaviour. ++To address this issue, aufs has a mount option called dirperm1 which ++checks the permission for the topmost entry only, and ignores the lower ++entry's permission. ++ ++A similar issue can happen around XATTR. ++getxattr(2) and listxattr(2) families behave as if dirperm1 option is ++always set. Otherwise these very unpleasant situation would happen. ++- listxattr(2) may return the duplicated entries. ++- users may not be able to remove or reset the XATTR forever, ++ ++ ++XATTR/EA support in the internal (copy,move)-(up,down) ++---------------------------------------------------------------------- ++Generally the extended attributes of inode are categorized as these. ++- "security" for LSM and capability. ++- "system" for posix ACL, 'acl' mount option is required for the branch ++ fs generally. ++- "trusted" for userspace, CAP_SYS_ADMIN is required. ++- "user" for userspace, 'user_xattr' mount option is required for the ++ branch fs generally. ++ ++Moreover there are some other categories. Aufs handles these rather ++unpopular categories as the ordinary ones, ie. there is no special ++condition nor exception. ++ ++In copy-up, the support for XATTR on the dst branch may differ from the ++src branch. In this case, the copy-up operation will get an error and ++the original user operation which triggered the copy-up will fail. It ++can happen that even all copy-up will fail. ++When both of src and dst branches support XATTR and if an error occurs ++during copying XATTR, then the copy-up should fail obviously. That is a ++good reason and aufs should return an error to userspace. But when only ++the src branch support that XATTR, aufs should not return an error. ++For example, the src branch supports ACL but the dst branch doesn't ++because the dst branch may natively un-support it or temporary ++un-support it due to "noacl" mount option. Of course, the dst branch fs ++may NOT return an error even if the XATTR is not supported. It is ++totally up to the branch fs. ++ ++Anyway when the aufs internal copy-up gets an error from the dst branch ++fs, then aufs tries removing the just copied entry and returns the error ++to the userspace. The worst case of this situation will be all copy-up ++will fail. ++ ++For the copy-up operation, there two basic approaches. ++- copy the specified XATTR only (by category above), and return the ++ error unconditionally if it happens. ++- copy all XATTR, and ignore the error on the specified category only. ++ ++In order to support XATTR and to implement the correct behaviour, aufs ++chooses the latter approach and introduces some new branch attributes, ++"icexsec", "icexsys", "icextr", "icexusr", and "icexoth". ++They correspond to the XATTR namespaces (see above). Additionally, to be ++convenient, "icex" is also provided which means all "icex*" attributes ++are set (here the word "icex" stands for "ignore copy-error on XATTR"). ++ ++The meaning of these attributes is to ignore the error from setting ++XATTR on that branch. ++Note that aufs tries copying all XATTR unconditionally, and ignores the ++error from the dst branch according to the specified attributes. ++ ++Some XATTR may have its default value. The default value may come from ++the parent dir or the environment. If the default value is set at the ++file creating-time, it will be overwritten by copy-up. ++Some contradiction may happen I am afraid. ++Do we need another attribute to stop copying XATTR? I am unsure. For ++now, aufs implements the branch attributes to ignore the error. +diff -Naur null/Documentation/filesystems/aufs/design/07export.txt linux-4.15/Documentation/filesystems/aufs/design/07export.txt +--- /dev/null ++++ linux-4.15/Documentation/filesystems/aufs/design/07export.txt 2018-02-25 02:38:09.196737254 +0100 +@@ -0,0 +1,58 @@ ++ ++# Copyright (C) 2005-2017 Junjiro R. Okajima ++# ++# This program is free software; you can redistribute it and/or modify ++# it under the terms of the GNU General Public License as published by ++# the Free Software Foundation; either version 2 of the License, or ++# (at your option) any later version. ++# ++# This program is distributed in the hope that it will be useful, ++# but WITHOUT ANY WARRANTY; without even the implied warranty of ++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++# GNU General Public License for more details. ++# ++# You should have received a copy of the GNU General Public License ++# along with this program. If not, see . ++ ++Export Aufs via NFS ++---------------------------------------------------------------------- ++Here is an approach. ++- like xino/xib, add a new file 'xigen' which stores aufs inode ++ generation. ++- iget_locked(): initialize aufs inode generation for a new inode, and ++ store it in xigen file. ++- destroy_inode(): increment aufs inode generation and store it in xigen ++ file. it is necessary even if it is not unlinked, because any data of ++ inode may be changed by UDBA. ++- encode_fh(): for a root dir, simply return FILEID_ROOT. otherwise ++ build file handle by ++ + branch id (4 bytes) ++ + superblock generation (4 bytes) ++ + inode number (4 or 8 bytes) ++ + parent dir inode number (4 or 8 bytes) ++ + inode generation (4 bytes)) ++ + return value of exportfs_encode_fh() for the parent on a branch (4 ++ bytes) ++ + file handle for a branch (by exportfs_encode_fh()) ++- fh_to_dentry(): ++ + find the index of a branch from its id in handle, and check it is ++ still exist in aufs. ++ + 1st level: get the inode number from handle and search it in cache. ++ + 2nd level: if not found in cache, get the parent inode number from ++ the handle and search it in cache. and then open the found parent ++ dir, find the matching inode number by vfs_readdir() and get its ++ name, and call lookup_one_len() for the target dentry. ++ + 3rd level: if the parent dir is not cached, call ++ exportfs_decode_fh() for a branch and get the parent on a branch, ++ build a pathname of it, convert it a pathname in aufs, call ++ path_lookup(). now aufs gets a parent dir dentry, then handle it as ++ the 2nd level. ++ + to open the dir, aufs needs struct vfsmount. aufs keeps vfsmount ++ for every branch, but not itself. to get this, (currently) aufs ++ searches in current->nsproxy->mnt_ns list. it may not be a good ++ idea, but I didn't get other approach. ++ + test the generation of the gotten inode. ++- every inode operation: they may get EBUSY due to UDBA. in this case, ++ convert it into ESTALE for NFSD. ++- readdir(): call lockdep_on/off() because filldir in NFSD calls ++ lookup_one_len(), vfs_getattr(), encode_fh() and others. +diff -Naur null/Documentation/filesystems/aufs/design/08shwh.txt linux-4.15/Documentation/filesystems/aufs/design/08shwh.txt +--- /dev/null ++++ linux-4.15/Documentation/filesystems/aufs/design/08shwh.txt 2018-02-25 02:38:09.196737254 +0100 +@@ -0,0 +1,52 @@ ++ ++# Copyright (C) 2005-2017 Junjiro R. Okajima ++# ++# This program is free software; you can redistribute it and/or modify ++# it under the terms of the GNU General Public License as published by ++# the Free Software Foundation; either version 2 of the License, or ++# (at your option) any later version. ++# ++# This program is distributed in the hope that it will be useful, ++# but WITHOUT ANY WARRANTY; without even the implied warranty of ++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++# GNU General Public License for more details. ++# ++# You should have received a copy of the GNU General Public License ++# along with this program. If not, see . ++ ++Show Whiteout Mode (shwh) ++---------------------------------------------------------------------- ++Generally aufs hides the name of whiteouts. But in some cases, to show ++them is very useful for users. For instance, creating a new middle layer ++(branch) by merging existing layers. ++ ++(borrowing aufs1 HOW-TO from a user, Michael Towers) ++When you have three branches, ++- Bottom: 'system', squashfs (underlying base system), read-only ++- Middle: 'mods', squashfs, read-only ++- Top: 'overlay', ram (tmpfs), read-write ++ ++The top layer is loaded at boot time and saved at shutdown, to preserve ++the changes made to the system during the session. ++When larger changes have been made, or smaller changes have accumulated, ++the size of the saved top layer data grows. At this point, it would be ++nice to be able to merge the two overlay branches ('mods' and 'overlay') ++and rewrite the 'mods' squashfs, clearing the top layer and thus ++restoring save and load speed. ++ ++This merging is simplified by the use of another aufs mount, of just the ++two overlay branches using the 'shwh' option. ++# mount -t aufs -o ro,shwh,br:/livesys/overlay=ro+wh:/livesys/mods=rr+wh \ ++ aufs /livesys/merge_union ++ ++A merged view of these two branches is then available at ++/livesys/merge_union, and the new feature is that the whiteouts are ++visible! ++Note that in 'shwh' mode the aufs mount must be 'ro', which will disable ++writing to all branches. Also the default mode for all branches is 'ro'. ++It is now possible to save the combined contents of the two overlay ++branches to a new squashfs, e.g.: ++# mksquashfs /livesys/merge_union /path/to/newmods.squash ++ ++This new squashfs archive can be stored on the boot device and the ++initramfs will use it to replace the old one at the next boot. +diff -Naur null/Documentation/filesystems/aufs/design/10dynop.txt linux-4.15/Documentation/filesystems/aufs/design/10dynop.txt +--- /dev/null ++++ linux-4.15/Documentation/filesystems/aufs/design/10dynop.txt 2018-02-25 02:38:09.196737254 +0100 +@@ -0,0 +1,47 @@ ++ ++# Copyright (C) 2010-2017 Junjiro R. Okajima ++# ++# This program is free software; you can redistribute it and/or modify ++# it under the terms of the GNU General Public License as published by ++# the Free Software Foundation; either version 2 of the License, or ++# (at your option) any later version. ++# ++# This program is distributed in the hope that it will be useful, ++# but WITHOUT ANY WARRANTY; without even the implied warranty of ++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++# GNU General Public License for more details. ++# ++# You should have received a copy of the GNU General Public License ++# along with this program. If not, see . ++ ++Dynamically customizable FS operations ++---------------------------------------------------------------------- ++Generally FS operations (struct inode_operations, struct ++address_space_operations, struct file_operations, etc.) are defined as ++"static const", but it never means that FS have only one set of ++operation. Some FS have multiple sets of them. For instance, ext2 has ++three sets, one for XIP, for NOBH, and for normal. ++Since aufs overrides and redirects these operations, sometimes aufs has ++to change its behaviour according to the branch FS type. More importantly ++VFS acts differently if a function (member in the struct) is set or ++not. It means aufs should have several sets of operations and select one ++among them according to the branch FS definition. ++ ++In order to solve this problem and not to affect the behaviour of VFS, ++aufs defines these operations dynamically. For instance, aufs defines ++dummy direct_IO function for struct address_space_operations, but it may ++not be set to the address_space_operations actually. When the branch FS ++doesn't have it, aufs doesn't set it to its address_space_operations ++while the function definition itself is still alive. So the behaviour ++itself will not change, and it will return an error when direct_IO is ++not set. ++ ++The lifetime of these dynamically generated operation object is ++maintained by aufs branch object. When the branch is removed from aufs, ++the reference counter of the object is decremented. When it reaches ++zero, the dynamically generated operation object will be freed. ++ ++This approach is designed to support AIO (io_submit), Direct I/O and ++XIP (DAX) mainly. ++Currently this approach is applied to address_space_operations for ++regular files only. +diff -Naur null/Documentation/filesystems/aufs/README linux-4.15/Documentation/filesystems/aufs/README +--- /dev/null ++++ linux-4.15/Documentation/filesystems/aufs/README 2018-02-25 02:38:09.195737146 +0100 +@@ -0,0 +1,393 @@ ++ ++Aufs4 -- advanced multi layered unification filesystem version 4.x ++http://aufs.sf.net ++Junjiro R. Okajima ++ ++ ++0. Introduction ++---------------------------------------- ++In the early days, aufs was entirely re-designed and re-implemented ++Unionfs Version 1.x series. Adding many original ideas, approaches, ++improvements and implementations, it becomes totally different from ++Unionfs while keeping the basic features. ++Recently, Unionfs Version 2.x series begin taking some of the same ++approaches to aufs1's. ++Unionfs is being developed by Professor Erez Zadok at Stony Brook ++University and his team. ++ ++Aufs4 supports linux-4.0 and later, and for linux-3.x series try aufs3. ++If you want older kernel version support, try aufs2-2.6.git or ++aufs2-standalone.git repository, aufs1 from CVS on SourceForge. ++ ++Note: it becomes clear that "Aufs was rejected. Let's give it up." ++ According to Christoph Hellwig, linux rejects all union-type ++ filesystems but UnionMount. ++ ++ ++PS. Al Viro seems have a plan to merge aufs as well as overlayfs and ++ UnionMount, and he pointed out an issue around a directory mutex ++ lock and aufs addressed it. But it is still unsure whether aufs will ++ be merged (or any other union solution). ++ ++ ++ ++1. Features ++---------------------------------------- ++- unite several directories into a single virtual filesystem. The member ++ directory is called as a branch. ++- you can specify the permission flags to the branch, which are 'readonly', ++ 'readwrite' and 'whiteout-able.' ++- by upper writable branch, internal copyup and whiteout, files/dirs on ++ readonly branch are modifiable logically. ++- dynamic branch manipulation, add, del. ++- etc... ++ ++Also there are many enhancements in aufs, such as: ++- test only the highest one for the directory permission (dirperm1) ++- copyup on open (coo=) ++- 'move' policy for copy-up between two writable branches, after ++ checking free space. ++- xattr, acl ++- readdir(3) in userspace. ++- keep inode number by external inode number table ++- keep the timestamps of file/dir in internal copyup operation ++- seekable directory, supporting NFS readdir. ++- whiteout is hardlinked in order to reduce the consumption of inodes ++ on branch ++- do not copyup, nor create a whiteout when it is unnecessary ++- revert a single systemcall when an error occurs in aufs ++- remount interface instead of ioctl ++- maintain /etc/mtab by an external command, /sbin/mount.aufs. ++- loopback mounted filesystem as a branch ++- kernel thread for removing the dir who has a plenty of whiteouts ++- support copyup sparse file (a file which has a 'hole' in it) ++- default permission flags for branches ++- selectable permission flags for ro branch, whether whiteout can ++ exist or not ++- export via NFS. ++- support /fs/aufs and /aufs. ++- support multiple writable branches, some policies to select one ++ among multiple writable branches. ++- a new semantics for link(2) and rename(2) to support multiple ++ writable branches. ++- no glibc changes are required. ++- pseudo hardlink (hardlink over branches) ++- allow a direct access manually to a file on branch, e.g. bypassing aufs. ++ including NFS or remote filesystem branch. ++- userspace wrapper for pathconf(3)/fpathconf(3) with _PC_LINK_MAX. ++- and more... ++ ++Currently these features are dropped temporary from aufs4. ++See design/08plan.txt in detail. ++- nested mount, i.e. aufs as readonly no-whiteout branch of another aufs ++ (robr) ++- statistics of aufs thread (/sys/fs/aufs/stat) ++ ++Features or just an idea in the future (see also design/*.txt), ++- reorder the branch index without del/re-add. ++- permanent xino files for NFSD ++- an option for refreshing the opened files after add/del branches ++- light version, without branch manipulation. (unnecessary?) ++- copyup in userspace ++- inotify in userspace ++- readv/writev ++ ++ ++2. Download ++---------------------------------------- ++There are three GIT trees for aufs4, aufs4-linux.git, ++aufs4-standalone.git, and aufs-util.git. Note that there is no "4" in ++"aufs-util.git." ++While the aufs-util is always necessary, you need either of aufs4-linux ++or aufs4-standalone. ++ ++The aufs4-linux tree includes the whole linux mainline GIT tree, ++git://git.kernel.org/.../torvalds/linux.git. ++And you cannot select CONFIG_AUFS_FS=m for this version, eg. you cannot ++build aufs4 as an external kernel module. ++Several extra patches are not included in this tree. Only ++aufs4-standalone tree contains them. They are described in the later ++section "Configuration and Compilation." ++ ++On the other hand, the aufs4-standalone tree has only aufs source files ++and necessary patches, and you can select CONFIG_AUFS_FS=m. ++But you need to apply all aufs patches manually. ++ ++You will find GIT branches whose name is in form of "aufs4.x" where "x" ++represents the linux kernel version, "linux-4.x". For instance, ++"aufs4.0" is for linux-4.0. For latest "linux-4.x-rcN", use ++"aufs4.x-rcN" branch. ++ ++o aufs4-linux tree ++$ git clone --reference /your/linux/git/tree \ ++ git://github.com/sfjro/aufs4-linux.git aufs4-linux.git ++- if you don't have linux GIT tree, then remove "--reference ..." ++$ cd aufs4-linux.git ++$ git checkout origin/aufs4.0 ++ ++Or You may want to directly git-pull aufs into your linux GIT tree, and ++leave the patch-work to GIT. ++$ cd /your/linux/git/tree ++$ git remote add aufs4 git://github.com/sfjro/aufs4-linux.git ++$ git fetch aufs4 ++$ git checkout -b my4.0 v4.0 ++$ (add your local change...) ++$ git pull aufs4 aufs4.0 ++- now you have v4.0 + your_changes + aufs4.0 in you my4.0 branch. ++- you may need to solve some conflicts between your_changes and ++ aufs4.0. in this case, git-rerere is recommended so that you can ++ solve the similar conflicts automatically when you upgrade to 4.1 or ++ later in the future. ++ ++o aufs4-standalone tree ++$ git clone git://github.com/sfjro/aufs4-standalone.git aufs4-standalone.git ++$ cd aufs4-standalone.git ++$ git checkout origin/aufs4.0 ++ ++o aufs-util tree ++$ git clone git://git.code.sf.net/p/aufs/aufs-util aufs-util.git ++- note that the public aufs-util.git is on SourceForge instead of ++ GitHUB. ++$ cd aufs-util.git ++$ git checkout origin/aufs4.0 ++ ++Note: The 4.x-rcN branch is to be used with `rc' kernel versions ONLY. ++The minor version number, 'x' in '4.x', of aufs may not always ++follow the minor version number of the kernel. ++Because changes in the kernel that cause the use of a new ++minor version number do not always require changes to aufs-util. ++ ++Since aufs-util has its own minor version number, you may not be ++able to find a GIT branch in aufs-util for your kernel's ++exact minor version number. ++In this case, you should git-checkout the branch for the ++nearest lower number. ++ ++For (an unreleased) example: ++If you are using "linux-4.10" and the "aufs4.10" branch ++does not exist in aufs-util repository, then "aufs4.9", "aufs4.8" ++or something numerically smaller is the branch for your kernel. ++ ++Also you can view all branches by ++ $ git branch -a ++ ++ ++3. Configuration and Compilation ++---------------------------------------- ++Make sure you have git-checkout'ed the correct branch. ++ ++For aufs4-linux tree, ++- enable CONFIG_AUFS_FS. ++- set other aufs configurations if necessary. ++ ++For aufs4-standalone tree, ++There are several ways to build. ++ ++1. ++- apply ./aufs4-kbuild.patch to your kernel source files. ++- apply ./aufs4-base.patch too. ++- apply ./aufs4-mmap.patch too. ++- apply ./aufs4-standalone.patch too, if you have a plan to set ++ CONFIG_AUFS_FS=m. otherwise you don't need ./aufs4-standalone.patch. ++- copy ./{Documentation,fs,include/uapi/linux/aufs_type.h} files to your ++ kernel source tree. Never copy $PWD/include/uapi/linux/Kbuild. ++- enable CONFIG_AUFS_FS, you can select either ++ =m or =y. ++- and build your kernel as usual. ++- install the built kernel. ++ Note: Since linux-3.9, every filesystem module requires an alias ++ "fs-". You should make sure that "fs-aufs" is listed in your ++ modules.aliases file if you set CONFIG_AUFS_FS=m. ++- install the header files too by "make headers_install" to the ++ directory where you specify. By default, it is $PWD/usr. ++ "make help" shows a brief note for headers_install. ++- and reboot your system. ++ ++2. ++- module only (CONFIG_AUFS_FS=m). ++- apply ./aufs4-base.patch to your kernel source files. ++- apply ./aufs4-mmap.patch too. ++- apply ./aufs4-standalone.patch too. ++- build your kernel, don't forget "make headers_install", and reboot. ++- edit ./config.mk and set other aufs configurations if necessary. ++ Note: You should read $PWD/fs/aufs/Kconfig carefully which describes ++ every aufs configurations. ++- build the module by simple "make". ++ Note: Since linux-3.9, every filesystem module requires an alias ++ "fs-". You should make sure that "fs-aufs" is listed in your ++ modules.aliases file. ++- you can specify ${KDIR} make variable which points to your kernel ++ source tree. ++- install the files ++ + run "make install" to install the aufs module, or copy the built ++ $PWD/aufs.ko to /lib/modules/... and run depmod -a (or reboot simply). ++ + run "make install_headers" (instead of headers_install) to install ++ the modified aufs header file (you can specify DESTDIR which is ++ available in aufs standalone version's Makefile only), or copy ++ $PWD/usr/include/linux/aufs_type.h to /usr/include/linux or wherever ++ you like manually. By default, the target directory is $PWD/usr. ++- no need to apply aufs4-kbuild.patch, nor copying source files to your ++ kernel source tree. ++ ++Note: The header file aufs_type.h is necessary to build aufs-util ++ as well as "make headers_install" in the kernel source tree. ++ headers_install is subject to be forgotten, but it is essentially ++ necessary, not only for building aufs-util. ++ You may not meet problems without headers_install in some older ++ version though. ++ ++And then, ++- read README in aufs-util, build and install it ++- note that your distribution may contain an obsoleted version of ++ aufs_type.h in /usr/include/linux or something. When you build aufs ++ utilities, make sure that your compiler refers the correct aufs header ++ file which is built by "make headers_install." ++- if you want to use readdir(3) in userspace or pathconf(3) wrapper, ++ then run "make install_ulib" too. And refer to the aufs manual in ++ detail. ++ ++There several other patches in aufs4-standalone.git. They are all ++optional. When you meet some problems, they will help you. ++- aufs4-loopback.patch ++ Supports a nested loopback mount in a branch-fs. This patch is ++ unnecessary until aufs produces a message like "you may want to try ++ another patch for loopback file". ++- vfs-ino.patch ++ Modifies a system global kernel internal function get_next_ino() in ++ order to stop assigning 0 for an inode-number. Not directly related to ++ aufs, but recommended generally. ++- tmpfs-idr.patch ++ Keeps the tmpfs inode number as the lowest value. Effective to reduce ++ the size of aufs XINO files for tmpfs branch. Also it prevents the ++ duplication of inode number, which is important for backup tools and ++ other utilities. When you find aufs XINO files for tmpfs branch ++ growing too much, try this patch. ++- lockdep-debug.patch ++ Because aufs is not only an ordinary filesystem (callee of VFS), but ++ also a caller of VFS functions for branch filesystems, subclassing of ++ the internal locks for LOCKDEP is necessary. LOCKDEP is a debugging ++ feature of linux kernel. If you enable CONFIG_LOCKDEP, then you will ++ need to apply this debug patch to expand several constant values. ++ If don't know what LOCKDEP, then you don't have apply this patch. ++ ++ ++4. Usage ++---------------------------------------- ++At first, make sure aufs-util are installed, and please read the aufs ++manual, aufs.5 in aufs-util.git tree. ++$ man -l aufs.5 ++ ++And then, ++$ mkdir /tmp/rw /tmp/aufs ++# mount -t aufs -o br=/tmp/rw:${HOME} none /tmp/aufs ++ ++Here is another example. The result is equivalent. ++# mount -t aufs -o br=/tmp/rw=rw:${HOME}=ro none /tmp/aufs ++ Or ++# mount -t aufs -o br:/tmp/rw none /tmp/aufs ++# mount -o remount,append:${HOME} /tmp/aufs ++ ++Then, you can see whole tree of your home dir through /tmp/aufs. If ++you modify a file under /tmp/aufs, the one on your home directory is ++not affected, instead the same named file will be newly created under ++/tmp/rw. And all of your modification to a file will be applied to ++the one under /tmp/rw. This is called the file based Copy on Write ++(COW) method. ++Aufs mount options are described in aufs.5. ++If you run chroot or something and make your aufs as a root directory, ++then you need to customize the shutdown script. See the aufs manual in ++detail. ++ ++Additionally, there are some sample usages of aufs which are a ++diskless system with network booting, and LiveCD over NFS. ++See sample dir in CVS tree on SourceForge. ++ ++ ++5. Contact ++---------------------------------------- ++When you have any problems or strange behaviour in aufs, please let me ++know with: ++- /proc/mounts (instead of the output of mount(8)) ++- /sys/module/aufs/* ++- /sys/fs/aufs/* (if you have them) ++- /debug/aufs/* (if you have them) ++- linux kernel version ++ if your kernel is not plain, for example modified by distributor, ++ the url where i can download its source is necessary too. ++- aufs version which was printed at loading the module or booting the ++ system, instead of the date you downloaded. ++- configuration (define/undefine CONFIG_AUFS_xxx) ++- kernel configuration or /proc/config.gz (if you have it) ++- behaviour which you think to be incorrect ++- actual operation, reproducible one is better ++- mailto: aufs-users at lists.sourceforge.net ++ ++Usually, I don't watch the Public Areas(Bugs, Support Requests, Patches, ++and Feature Requests) on SourceForge. Please join and write to ++aufs-users ML. ++ ++ ++6. Acknowledgements ++---------------------------------------- ++Thanks to everyone who have tried and are using aufs, whoever ++have reported a bug or any feedback. ++ ++Especially donators: ++Tomas Matejicek(slax.org) made a donation (much more than once). ++ Since Apr 2010, Tomas M (the author of Slax and Linux Live ++ scripts) is making "doubling" donations. ++ Unfortunately I cannot list all of the donators, but I really ++ appreciate. ++ It ends Aug 2010, but the ordinary donation URL is still available. ++ ++Dai Itasaka made a donation (2007/8). ++Chuck Smith made a donation (2008/4, 10 and 12). ++Henk Schoneveld made a donation (2008/9). ++Chih-Wei Huang, ASUS, CTC donated Eee PC 4G (2008/10). ++Francois Dupoux made a donation (2008/11). ++Bruno Cesar Ribas and Luis Carlos Erpen de Bona, C3SL serves public ++ aufs2 GIT tree (2009/2). ++William Grant made a donation (2009/3). ++Patrick Lane made a donation (2009/4). ++The Mail Archive (mail-archive.com) made donations (2009/5). ++Nippy Networks (Ed Wildgoose) made a donation (2009/7). ++New Dream Network, LLC (www.dreamhost.com) made a donation (2009/11). ++Pavel Pronskiy made a donation (2011/2). ++Iridium and Inmarsat satellite phone retailer (www.mailasail.com), Nippy ++ Networks (Ed Wildgoose) made a donation for hardware (2011/3). ++Max Lekomcev (DOM-TV project) made a donation (2011/7, 12, 2012/3, 6 and ++11). ++Sam Liddicott made a donation (2011/9). ++Era Scarecrow made a donation (2013/4). ++Bor Ratajc made a donation (2013/4). ++Alessandro Gorreta made a donation (2013/4). ++POIRETTE Marc made a donation (2013/4). ++Alessandro Gorreta made a donation (2013/4). ++lauri kasvandik made a donation (2013/5). ++"pemasu from Finland" made a donation (2013/7). ++The Parted Magic Project made a donation (2013/9 and 11). ++Pavel Barta made a donation (2013/10). ++Nikolay Pertsev made a donation (2014/5). ++James B made a donation (2014/7 and 2015/7). ++Stefano Di Biase made a donation (2014/8). ++Daniel Epellei made a donation (2015/1). ++OmegaPhil made a donation (2016/1). ++Tomasz Szewczyk made a donation (2016/4). ++James Burry made a donation (2016/12). ++ ++Thank you very much. ++Donations are always, including future donations, very important and ++helpful for me to keep on developing aufs. ++ ++ ++7. ++---------------------------------------- ++If you are an experienced user, no explanation is needed. Aufs is ++just a linux filesystem. ++ ++ ++Enjoy! ++ ++# Local variables: ; ++# mode: text; ++# End: ; +diff -Naur null/fs/aufs/aufs.h linux-4.15/fs/aufs/aufs.h +--- /dev/null ++++ linux-4.15/fs/aufs/aufs.h 2018-02-25 02:38:09.197737361 +0100 +@@ -0,0 +1,60 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * all header files ++ */ ++ ++#ifndef __AUFS_H__ ++#define __AUFS_H__ ++ ++#ifdef __KERNEL__ ++ ++#define AuStub(type, name, body, ...) \ ++ static inline type name(__VA_ARGS__) { body; } ++ ++#define AuStubVoid(name, ...) \ ++ AuStub(void, name, , __VA_ARGS__) ++#define AuStubInt0(name, ...) \ ++ AuStub(int, name, return 0, __VA_ARGS__) ++ ++#include "debug.h" ++ ++#include "branch.h" ++#include "cpup.h" ++#include "dcsub.h" ++#include "dbgaufs.h" ++#include "dentry.h" ++#include "dir.h" ++#include "dirren.h" ++#include "dynop.h" ++#include "file.h" ++#include "fstype.h" ++#include "hbl.h" ++#include "inode.h" ++#include "loop.h" ++#include "module.h" ++#include "opts.h" ++#include "rwsem.h" ++#include "super.h" ++#include "sysaufs.h" ++#include "vfsub.h" ++#include "whout.h" ++#include "wkq.h" ++ ++#endif /* __KERNEL__ */ ++#endif /* __AUFS_H__ */ +diff -Naur null/fs/aufs/branch.c linux-4.15/fs/aufs/branch.c +--- /dev/null ++++ linux-4.15/fs/aufs/branch.c 2018-02-25 02:38:09.197737361 +0100 +@@ -0,0 +1,1432 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * branch management ++ */ ++ ++#include ++#include ++#include "aufs.h" ++ ++/* ++ * free a single branch ++ */ ++static void au_br_do_free(struct au_branch *br) ++{ ++ int i; ++ struct au_wbr *wbr; ++ struct au_dykey **key; ++ ++ au_hnotify_fin_br(br); ++ /* always, regardless the mount option */ ++ au_dr_hino_free(&br->br_dirren); ++ ++ if (br->br_xino.xi_file) ++ fput(br->br_xino.xi_file); ++ for (i = br->br_xino.xi_nondir.total - 1; i >= 0; i--) ++ AuDebugOn(br->br_xino.xi_nondir.array[i]); ++ kfree(br->br_xino.xi_nondir.array); ++ ++ AuDebugOn(au_br_count(br)); ++ au_br_count_fin(br); ++ ++ wbr = br->br_wbr; ++ if (wbr) { ++ for (i = 0; i < AuBrWh_Last; i++) ++ dput(wbr->wbr_wh[i]); ++ AuDebugOn(atomic_read(&wbr->wbr_wh_running)); ++ AuRwDestroy(&wbr->wbr_wh_rwsem); ++ } ++ ++ if (br->br_fhsm) { ++ au_br_fhsm_fin(br->br_fhsm); ++ kfree(br->br_fhsm); ++ } ++ ++ key = br->br_dykey; ++ for (i = 0; i < AuBrDynOp; i++, key++) ++ if (*key) ++ au_dy_put(*key); ++ else ++ break; ++ ++ /* recursive lock, s_umount of branch's */ ++ lockdep_off(); ++ path_put(&br->br_path); ++ lockdep_on(); ++ kfree(wbr); ++ kfree(br); ++} ++ ++/* ++ * frees all branches ++ */ ++void au_br_free(struct au_sbinfo *sbinfo) ++{ ++ aufs_bindex_t bmax; ++ struct au_branch **br; ++ ++ AuRwMustWriteLock(&sbinfo->si_rwsem); ++ ++ bmax = sbinfo->si_bbot + 1; ++ br = sbinfo->si_branch; ++ while (bmax--) ++ au_br_do_free(*br++); ++} ++ ++/* ++ * find the index of a branch which is specified by @br_id. ++ */ ++int au_br_index(struct super_block *sb, aufs_bindex_t br_id) ++{ ++ aufs_bindex_t bindex, bbot; ++ ++ bbot = au_sbbot(sb); ++ for (bindex = 0; bindex <= bbot; bindex++) ++ if (au_sbr_id(sb, bindex) == br_id) ++ return bindex; ++ return -1; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* ++ * add a branch ++ */ ++ ++static int test_overlap(struct super_block *sb, struct dentry *h_adding, ++ struct dentry *h_root) ++{ ++ if (unlikely(h_adding == h_root ++ || au_test_loopback_overlap(sb, h_adding))) ++ return 1; ++ if (h_adding->d_sb != h_root->d_sb) ++ return 0; ++ return au_test_subdir(h_adding, h_root) ++ || au_test_subdir(h_root, h_adding); ++} ++ ++/* ++ * returns a newly allocated branch. @new_nbranch is a number of branches ++ * after adding a branch. ++ */ ++static struct au_branch *au_br_alloc(struct super_block *sb, int new_nbranch, ++ int perm) ++{ ++ struct au_branch *add_branch; ++ struct dentry *root; ++ struct inode *inode; ++ int err; ++ ++ err = -ENOMEM; ++ add_branch = kzalloc(sizeof(*add_branch), GFP_NOFS); ++ if (unlikely(!add_branch)) ++ goto out; ++ add_branch->br_xino.xi_nondir.total = 8; /* initial size */ ++ add_branch->br_xino.xi_nondir.array ++ = kcalloc(add_branch->br_xino.xi_nondir.total, sizeof(ino_t), ++ GFP_NOFS); ++ if (unlikely(!add_branch->br_xino.xi_nondir.array)) ++ goto out_br; ++ ++ err = au_hnotify_init_br(add_branch, perm); ++ if (unlikely(err)) ++ goto out_xinondir; ++ ++ if (au_br_writable(perm)) { ++ /* may be freed separately at changing the branch permission */ ++ add_branch->br_wbr = kzalloc(sizeof(*add_branch->br_wbr), ++ GFP_NOFS); ++ if (unlikely(!add_branch->br_wbr)) ++ goto out_hnotify; ++ } ++ ++ if (au_br_fhsm(perm)) { ++ err = au_fhsm_br_alloc(add_branch); ++ if (unlikely(err)) ++ goto out_wbr; ++ } ++ ++ root = sb->s_root; ++ err = au_sbr_realloc(au_sbi(sb), new_nbranch, /*may_shrink*/0); ++ if (!err) ++ err = au_di_realloc(au_di(root), new_nbranch, /*may_shrink*/0); ++ if (!err) { ++ inode = d_inode(root); ++ err = au_hinode_realloc(au_ii(inode), new_nbranch, ++ /*may_shrink*/0); ++ } ++ if (!err) ++ return add_branch; /* success */ ++ ++out_wbr: ++ kfree(add_branch->br_wbr); ++out_hnotify: ++ au_hnotify_fin_br(add_branch); ++out_xinondir: ++ kfree(add_branch->br_xino.xi_nondir.array); ++out_br: ++ kfree(add_branch); ++out: ++ return ERR_PTR(err); ++} ++ ++/* ++ * test if the branch permission is legal or not. ++ */ ++static int test_br(struct inode *inode, int brperm, char *path) ++{ ++ int err; ++ ++ err = (au_br_writable(brperm) && IS_RDONLY(inode)); ++ if (!err) ++ goto out; ++ ++ err = -EINVAL; ++ pr_err("write permission for readonly mount or inode, %s\n", path); ++ ++out: ++ return err; ++} ++ ++/* ++ * returns: ++ * 0: success, the caller will add it ++ * plus: success, it is already unified, the caller should ignore it ++ * minus: error ++ */ ++static int test_add(struct super_block *sb, struct au_opt_add *add, int remount) ++{ ++ int err; ++ aufs_bindex_t bbot, bindex; ++ struct dentry *root, *h_dentry; ++ struct inode *inode, *h_inode; ++ ++ root = sb->s_root; ++ bbot = au_sbbot(sb); ++ if (unlikely(bbot >= 0 ++ && au_find_dbindex(root, add->path.dentry) >= 0)) { ++ err = 1; ++ if (!remount) { ++ err = -EINVAL; ++ pr_err("%s duplicated\n", add->pathname); ++ } ++ goto out; ++ } ++ ++ err = -ENOSPC; /* -E2BIG; */ ++ if (unlikely(AUFS_BRANCH_MAX <= add->bindex ++ || AUFS_BRANCH_MAX - 1 <= bbot)) { ++ pr_err("number of branches exceeded %s\n", add->pathname); ++ goto out; ++ } ++ ++ err = -EDOM; ++ if (unlikely(add->bindex < 0 || bbot + 1 < add->bindex)) { ++ pr_err("bad index %d\n", add->bindex); ++ goto out; ++ } ++ ++ inode = d_inode(add->path.dentry); ++ err = -ENOENT; ++ if (unlikely(!inode->i_nlink)) { ++ pr_err("no existence %s\n", add->pathname); ++ goto out; ++ } ++ ++ err = -EINVAL; ++ if (unlikely(inode->i_sb == sb)) { ++ pr_err("%s must be outside\n", add->pathname); ++ goto out; ++ } ++ ++ if (unlikely(au_test_fs_unsuppoted(inode->i_sb))) { ++ pr_err("unsupported filesystem, %s (%s)\n", ++ add->pathname, au_sbtype(inode->i_sb)); ++ goto out; ++ } ++ ++ if (unlikely(inode->i_sb->s_stack_depth)) { ++ pr_err("already stacked, %s (%s)\n", ++ add->pathname, au_sbtype(inode->i_sb)); ++ goto out; ++ } ++ ++ err = test_br(d_inode(add->path.dentry), add->perm, add->pathname); ++ if (unlikely(err)) ++ goto out; ++ ++ if (bbot < 0) ++ return 0; /* success */ ++ ++ err = -EINVAL; ++ for (bindex = 0; bindex <= bbot; bindex++) ++ if (unlikely(test_overlap(sb, add->path.dentry, ++ au_h_dptr(root, bindex)))) { ++ pr_err("%s is overlapped\n", add->pathname); ++ goto out; ++ } ++ ++ err = 0; ++ if (au_opt_test(au_mntflags(sb), WARN_PERM)) { ++ h_dentry = au_h_dptr(root, 0); ++ h_inode = d_inode(h_dentry); ++ if ((h_inode->i_mode & S_IALLUGO) != (inode->i_mode & S_IALLUGO) ++ || !uid_eq(h_inode->i_uid, inode->i_uid) ++ || !gid_eq(h_inode->i_gid, inode->i_gid)) ++ pr_warn("uid/gid/perm %s %u/%u/0%o, %u/%u/0%o\n", ++ add->pathname, ++ i_uid_read(inode), i_gid_read(inode), ++ (inode->i_mode & S_IALLUGO), ++ i_uid_read(h_inode), i_gid_read(h_inode), ++ (h_inode->i_mode & S_IALLUGO)); ++ } ++ ++out: ++ return err; ++} ++ ++/* ++ * initialize or clean the whiteouts for an adding branch ++ */ ++static int au_br_init_wh(struct super_block *sb, struct au_branch *br, ++ int new_perm) ++{ ++ int err, old_perm; ++ aufs_bindex_t bindex; ++ struct inode *h_inode; ++ struct au_wbr *wbr; ++ struct au_hinode *hdir; ++ struct dentry *h_dentry; ++ ++ err = vfsub_mnt_want_write(au_br_mnt(br)); ++ if (unlikely(err)) ++ goto out; ++ ++ wbr = br->br_wbr; ++ old_perm = br->br_perm; ++ br->br_perm = new_perm; ++ hdir = NULL; ++ h_inode = NULL; ++ bindex = au_br_index(sb, br->br_id); ++ if (0 <= bindex) { ++ hdir = au_hi(d_inode(sb->s_root), bindex); ++ au_hn_inode_lock_nested(hdir, AuLsc_I_PARENT); ++ } else { ++ h_dentry = au_br_dentry(br); ++ h_inode = d_inode(h_dentry); ++ inode_lock_nested(h_inode, AuLsc_I_PARENT); ++ } ++ if (!wbr) ++ err = au_wh_init(br, sb); ++ else { ++ wbr_wh_write_lock(wbr); ++ err = au_wh_init(br, sb); ++ wbr_wh_write_unlock(wbr); ++ } ++ if (hdir) ++ au_hn_inode_unlock(hdir); ++ else ++ inode_unlock(h_inode); ++ vfsub_mnt_drop_write(au_br_mnt(br)); ++ br->br_perm = old_perm; ++ ++ if (!err && wbr && !au_br_writable(new_perm)) { ++ kfree(wbr); ++ br->br_wbr = NULL; ++ } ++ ++out: ++ return err; ++} ++ ++static int au_wbr_init(struct au_branch *br, struct super_block *sb, ++ int perm) ++{ ++ int err; ++ struct kstatfs kst; ++ struct au_wbr *wbr; ++ ++ wbr = br->br_wbr; ++ au_rw_init(&wbr->wbr_wh_rwsem); ++ atomic_set(&wbr->wbr_wh_running, 0); ++ ++ /* ++ * a limit for rmdir/rename a dir ++ * cf. AUFS_MAX_NAMELEN in include/uapi/linux/aufs_type.h ++ */ ++ err = vfs_statfs(&br->br_path, &kst); ++ if (unlikely(err)) ++ goto out; ++ err = -EINVAL; ++ if (kst.f_namelen >= NAME_MAX) ++ err = au_br_init_wh(sb, br, perm); ++ else ++ pr_err("%pd(%s), unsupported namelen %ld\n", ++ au_br_dentry(br), ++ au_sbtype(au_br_dentry(br)->d_sb), kst.f_namelen); ++ ++out: ++ return err; ++} ++ ++/* initialize a new branch */ ++static int au_br_init(struct au_branch *br, struct super_block *sb, ++ struct au_opt_add *add) ++{ ++ int err; ++ struct inode *h_inode; ++ ++ err = 0; ++ spin_lock_init(&br->br_xino.xi_nondir.spin); ++ init_waitqueue_head(&br->br_xino.xi_nondir.wqh); ++ br->br_perm = add->perm; ++ br->br_path = add->path; /* set first, path_get() later */ ++ spin_lock_init(&br->br_dykey_lock); ++ au_br_count_init(br); ++ atomic_set(&br->br_xino_running, 0); ++ br->br_id = au_new_br_id(sb); ++ AuDebugOn(br->br_id < 0); ++ ++ /* always, regardless the given option */ ++ err = au_dr_br_init(sb, br, &add->path); ++ if (unlikely(err)) ++ goto out_err; ++ ++ if (au_br_writable(add->perm)) { ++ err = au_wbr_init(br, sb, add->perm); ++ if (unlikely(err)) ++ goto out_err; ++ } ++ ++ if (au_opt_test(au_mntflags(sb), XINO)) { ++ h_inode = d_inode(add->path.dentry); ++ err = au_xino_br(sb, br, h_inode->i_ino, ++ au_sbr(sb, 0)->br_xino.xi_file, /*do_test*/1); ++ if (unlikely(err)) { ++ AuDebugOn(br->br_xino.xi_file); ++ goto out_err; ++ } ++ } ++ ++ sysaufs_br_init(br); ++ path_get(&br->br_path); ++ goto out; /* success */ ++ ++out_err: ++ memset(&br->br_path, 0, sizeof(br->br_path)); ++out: ++ return err; ++} ++ ++static void au_br_do_add_brp(struct au_sbinfo *sbinfo, aufs_bindex_t bindex, ++ struct au_branch *br, aufs_bindex_t bbot, ++ aufs_bindex_t amount) ++{ ++ struct au_branch **brp; ++ ++ AuRwMustWriteLock(&sbinfo->si_rwsem); ++ ++ brp = sbinfo->si_branch + bindex; ++ memmove(brp + 1, brp, sizeof(*brp) * amount); ++ *brp = br; ++ sbinfo->si_bbot++; ++ if (unlikely(bbot < 0)) ++ sbinfo->si_bbot = 0; ++} ++ ++static void au_br_do_add_hdp(struct au_dinfo *dinfo, aufs_bindex_t bindex, ++ aufs_bindex_t bbot, aufs_bindex_t amount) ++{ ++ struct au_hdentry *hdp; ++ ++ AuRwMustWriteLock(&dinfo->di_rwsem); ++ ++ hdp = au_hdentry(dinfo, bindex); ++ memmove(hdp + 1, hdp, sizeof(*hdp) * amount); ++ au_h_dentry_init(hdp); ++ dinfo->di_bbot++; ++ if (unlikely(bbot < 0)) ++ dinfo->di_btop = 0; ++} ++ ++static void au_br_do_add_hip(struct au_iinfo *iinfo, aufs_bindex_t bindex, ++ aufs_bindex_t bbot, aufs_bindex_t amount) ++{ ++ struct au_hinode *hip; ++ ++ AuRwMustWriteLock(&iinfo->ii_rwsem); ++ ++ hip = au_hinode(iinfo, bindex); ++ memmove(hip + 1, hip, sizeof(*hip) * amount); ++ au_hinode_init(hip); ++ iinfo->ii_bbot++; ++ if (unlikely(bbot < 0)) ++ iinfo->ii_btop = 0; ++} ++ ++static void au_br_do_add(struct super_block *sb, struct au_branch *br, ++ aufs_bindex_t bindex) ++{ ++ struct dentry *root, *h_dentry; ++ struct inode *root_inode, *h_inode; ++ aufs_bindex_t bbot, amount; ++ ++ root = sb->s_root; ++ root_inode = d_inode(root); ++ bbot = au_sbbot(sb); ++ amount = bbot + 1 - bindex; ++ h_dentry = au_br_dentry(br); ++ au_sbilist_lock(); ++ au_br_do_add_brp(au_sbi(sb), bindex, br, bbot, amount); ++ au_br_do_add_hdp(au_di(root), bindex, bbot, amount); ++ au_br_do_add_hip(au_ii(root_inode), bindex, bbot, amount); ++ au_set_h_dptr(root, bindex, dget(h_dentry)); ++ h_inode = d_inode(h_dentry); ++ au_set_h_iptr(root_inode, bindex, au_igrab(h_inode), /*flags*/0); ++ au_sbilist_unlock(); ++} ++ ++int au_br_add(struct super_block *sb, struct au_opt_add *add, int remount) ++{ ++ int err; ++ aufs_bindex_t bbot, add_bindex; ++ struct dentry *root, *h_dentry; ++ struct inode *root_inode; ++ struct au_branch *add_branch; ++ ++ root = sb->s_root; ++ root_inode = d_inode(root); ++ IMustLock(root_inode); ++ IiMustWriteLock(root_inode); ++ err = test_add(sb, add, remount); ++ if (unlikely(err < 0)) ++ goto out; ++ if (err) { ++ err = 0; ++ goto out; /* success */ ++ } ++ ++ bbot = au_sbbot(sb); ++ add_branch = au_br_alloc(sb, bbot + 2, add->perm); ++ err = PTR_ERR(add_branch); ++ if (IS_ERR(add_branch)) ++ goto out; ++ ++ err = au_br_init(add_branch, sb, add); ++ if (unlikely(err)) { ++ au_br_do_free(add_branch); ++ goto out; ++ } ++ ++ add_bindex = add->bindex; ++ if (!remount) ++ au_br_do_add(sb, add_branch, add_bindex); ++ else { ++ sysaufs_brs_del(sb, add_bindex); ++ au_br_do_add(sb, add_branch, add_bindex); ++ sysaufs_brs_add(sb, add_bindex); ++ } ++ ++ h_dentry = add->path.dentry; ++ if (!add_bindex) { ++ au_cpup_attr_all(root_inode, /*force*/1); ++ sb->s_maxbytes = h_dentry->d_sb->s_maxbytes; ++ } else ++ au_add_nlink(root_inode, d_inode(h_dentry)); ++ ++ /* ++ * this test/set prevents aufs from handling unnecesary notify events ++ * of xino files, in case of re-adding a writable branch which was ++ * once detached from aufs. ++ */ ++ if (au_xino_brid(sb) < 0 ++ && au_br_writable(add_branch->br_perm) ++ && !au_test_fs_bad_xino(h_dentry->d_sb) ++ && add_branch->br_xino.xi_file ++ && add_branch->br_xino.xi_file->f_path.dentry->d_parent == h_dentry) ++ au_xino_brid_set(sb, add_branch->br_id); ++ ++out: ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static unsigned long long au_farray_cb(struct super_block *sb, void *a, ++ unsigned long long max __maybe_unused, ++ void *arg) ++{ ++ unsigned long long n; ++ struct file **p, *f; ++ struct hlist_bl_head *files; ++ struct hlist_bl_node *pos; ++ struct au_finfo *finfo; ++ ++ n = 0; ++ p = a; ++ files = &au_sbi(sb)->si_files; ++ hlist_bl_lock(files); ++ hlist_bl_for_each_entry(finfo, pos, files, fi_hlist) { ++ f = finfo->fi_file; ++ if (file_count(f) ++ && !special_file(file_inode(f)->i_mode)) { ++ get_file(f); ++ *p++ = f; ++ n++; ++ AuDebugOn(n > max); ++ } ++ } ++ hlist_bl_unlock(files); ++ ++ return n; ++} ++ ++static struct file **au_farray_alloc(struct super_block *sb, ++ unsigned long long *max) ++{ ++ *max = au_nfiles(sb); ++ return au_array_alloc(max, au_farray_cb, sb, /*arg*/NULL); ++} ++ ++static void au_farray_free(struct file **a, unsigned long long max) ++{ ++ unsigned long long ull; ++ ++ for (ull = 0; ull < max; ull++) ++ if (a[ull]) ++ fput(a[ull]); ++ kvfree(a); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* ++ * delete a branch ++ */ ++ ++/* to show the line number, do not make it inlined function */ ++#define AuVerbose(do_info, fmt, ...) do { \ ++ if (do_info) \ ++ pr_info(fmt, ##__VA_ARGS__); \ ++} while (0) ++ ++static int au_test_ibusy(struct inode *inode, aufs_bindex_t btop, ++ aufs_bindex_t bbot) ++{ ++ return (inode && !S_ISDIR(inode->i_mode)) || btop == bbot; ++} ++ ++static int au_test_dbusy(struct dentry *dentry, aufs_bindex_t btop, ++ aufs_bindex_t bbot) ++{ ++ return au_test_ibusy(d_inode(dentry), btop, bbot); ++} ++ ++/* ++ * test if the branch is deletable or not. ++ */ ++static int test_dentry_busy(struct dentry *root, aufs_bindex_t bindex, ++ unsigned int sigen, const unsigned int verbose) ++{ ++ int err, i, j, ndentry; ++ aufs_bindex_t btop, bbot; ++ struct au_dcsub_pages dpages; ++ struct au_dpage *dpage; ++ struct dentry *d; ++ ++ err = au_dpages_init(&dpages, GFP_NOFS); ++ if (unlikely(err)) ++ goto out; ++ err = au_dcsub_pages(&dpages, root, NULL, NULL); ++ if (unlikely(err)) ++ goto out_dpages; ++ ++ for (i = 0; !err && i < dpages.ndpage; i++) { ++ dpage = dpages.dpages + i; ++ ndentry = dpage->ndentry; ++ for (j = 0; !err && j < ndentry; j++) { ++ d = dpage->dentries[j]; ++ AuDebugOn(au_dcount(d) <= 0); ++ if (!au_digen_test(d, sigen)) { ++ di_read_lock_child(d, AuLock_IR); ++ if (unlikely(au_dbrange_test(d))) { ++ di_read_unlock(d, AuLock_IR); ++ continue; ++ } ++ } else { ++ di_write_lock_child(d); ++ if (unlikely(au_dbrange_test(d))) { ++ di_write_unlock(d); ++ continue; ++ } ++ err = au_reval_dpath(d, sigen); ++ if (!err) ++ di_downgrade_lock(d, AuLock_IR); ++ else { ++ di_write_unlock(d); ++ break; ++ } ++ } ++ ++ /* AuDbgDentry(d); */ ++ btop = au_dbtop(d); ++ bbot = au_dbbot(d); ++ if (btop <= bindex ++ && bindex <= bbot ++ && au_h_dptr(d, bindex) ++ && au_test_dbusy(d, btop, bbot)) { ++ err = -EBUSY; ++ AuVerbose(verbose, "busy %pd\n", d); ++ AuDbgDentry(d); ++ } ++ di_read_unlock(d, AuLock_IR); ++ } ++ } ++ ++out_dpages: ++ au_dpages_free(&dpages); ++out: ++ return err; ++} ++ ++static int test_inode_busy(struct super_block *sb, aufs_bindex_t bindex, ++ unsigned int sigen, const unsigned int verbose) ++{ ++ int err; ++ unsigned long long max, ull; ++ struct inode *i, **array; ++ aufs_bindex_t btop, bbot; ++ ++ array = au_iarray_alloc(sb, &max); ++ err = PTR_ERR(array); ++ if (IS_ERR(array)) ++ goto out; ++ ++ err = 0; ++ AuDbg("b%d\n", bindex); ++ for (ull = 0; !err && ull < max; ull++) { ++ i = array[ull]; ++ if (unlikely(!i)) ++ break; ++ if (i->i_ino == AUFS_ROOT_INO) ++ continue; ++ ++ /* AuDbgInode(i); */ ++ if (au_iigen(i, NULL) == sigen) ++ ii_read_lock_child(i); ++ else { ++ ii_write_lock_child(i); ++ err = au_refresh_hinode_self(i); ++ au_iigen_dec(i); ++ if (!err) ++ ii_downgrade_lock(i); ++ else { ++ ii_write_unlock(i); ++ break; ++ } ++ } ++ ++ btop = au_ibtop(i); ++ bbot = au_ibbot(i); ++ if (btop <= bindex ++ && bindex <= bbot ++ && au_h_iptr(i, bindex) ++ && au_test_ibusy(i, btop, bbot)) { ++ err = -EBUSY; ++ AuVerbose(verbose, "busy i%lu\n", i->i_ino); ++ AuDbgInode(i); ++ } ++ ii_read_unlock(i); ++ } ++ au_iarray_free(array, max); ++ ++out: ++ return err; ++} ++ ++static int test_children_busy(struct dentry *root, aufs_bindex_t bindex, ++ const unsigned int verbose) ++{ ++ int err; ++ unsigned int sigen; ++ ++ sigen = au_sigen(root->d_sb); ++ DiMustNoWaiters(root); ++ IiMustNoWaiters(d_inode(root)); ++ di_write_unlock(root); ++ err = test_dentry_busy(root, bindex, sigen, verbose); ++ if (!err) ++ err = test_inode_busy(root->d_sb, bindex, sigen, verbose); ++ di_write_lock_child(root); /* aufs_write_lock() calls ..._child() */ ++ ++ return err; ++} ++ ++static int test_dir_busy(struct file *file, aufs_bindex_t br_id, ++ struct file **to_free, int *idx) ++{ ++ int err; ++ unsigned char matched, root; ++ aufs_bindex_t bindex, bbot; ++ struct au_fidir *fidir; ++ struct au_hfile *hfile; ++ ++ err = 0; ++ root = IS_ROOT(file->f_path.dentry); ++ if (root) { ++ get_file(file); ++ to_free[*idx] = file; ++ (*idx)++; ++ goto out; ++ } ++ ++ matched = 0; ++ fidir = au_fi(file)->fi_hdir; ++ AuDebugOn(!fidir); ++ bbot = au_fbbot_dir(file); ++ for (bindex = au_fbtop(file); bindex <= bbot; bindex++) { ++ hfile = fidir->fd_hfile + bindex; ++ if (!hfile->hf_file) ++ continue; ++ ++ if (hfile->hf_br->br_id == br_id) { ++ matched = 1; ++ break; ++ } ++ } ++ if (matched) ++ err = -EBUSY; ++ ++out: ++ return err; ++} ++ ++static int test_file_busy(struct super_block *sb, aufs_bindex_t br_id, ++ struct file **to_free, int opened) ++{ ++ int err, idx; ++ unsigned long long ull, max; ++ aufs_bindex_t btop; ++ struct file *file, **array; ++ struct dentry *root; ++ struct au_hfile *hfile; ++ ++ array = au_farray_alloc(sb, &max); ++ err = PTR_ERR(array); ++ if (IS_ERR(array)) ++ goto out; ++ ++ err = 0; ++ idx = 0; ++ root = sb->s_root; ++ di_write_unlock(root); ++ for (ull = 0; ull < max; ull++) { ++ file = array[ull]; ++ if (unlikely(!file)) ++ break; ++ ++ /* AuDbg("%pD\n", file); */ ++ fi_read_lock(file); ++ btop = au_fbtop(file); ++ if (!d_is_dir(file->f_path.dentry)) { ++ hfile = &au_fi(file)->fi_htop; ++ if (hfile->hf_br->br_id == br_id) ++ err = -EBUSY; ++ } else ++ err = test_dir_busy(file, br_id, to_free, &idx); ++ fi_read_unlock(file); ++ if (unlikely(err)) ++ break; ++ } ++ di_write_lock_child(root); ++ au_farray_free(array, max); ++ AuDebugOn(idx > opened); ++ ++out: ++ return err; ++} ++ ++static void br_del_file(struct file **to_free, unsigned long long opened, ++ aufs_bindex_t br_id) ++{ ++ unsigned long long ull; ++ aufs_bindex_t bindex, btop, bbot, bfound; ++ struct file *file; ++ struct au_fidir *fidir; ++ struct au_hfile *hfile; ++ ++ for (ull = 0; ull < opened; ull++) { ++ file = to_free[ull]; ++ if (unlikely(!file)) ++ break; ++ ++ /* AuDbg("%pD\n", file); */ ++ AuDebugOn(!d_is_dir(file->f_path.dentry)); ++ bfound = -1; ++ fidir = au_fi(file)->fi_hdir; ++ AuDebugOn(!fidir); ++ fi_write_lock(file); ++ btop = au_fbtop(file); ++ bbot = au_fbbot_dir(file); ++ for (bindex = btop; bindex <= bbot; bindex++) { ++ hfile = fidir->fd_hfile + bindex; ++ if (!hfile->hf_file) ++ continue; ++ ++ if (hfile->hf_br->br_id == br_id) { ++ bfound = bindex; ++ break; ++ } ++ } ++ AuDebugOn(bfound < 0); ++ au_set_h_fptr(file, bfound, NULL); ++ if (bfound == btop) { ++ for (btop++; btop <= bbot; btop++) ++ if (au_hf_dir(file, btop)) { ++ au_set_fbtop(file, btop); ++ break; ++ } ++ } ++ fi_write_unlock(file); ++ } ++} ++ ++static void au_br_do_del_brp(struct au_sbinfo *sbinfo, ++ const aufs_bindex_t bindex, ++ const aufs_bindex_t bbot) ++{ ++ struct au_branch **brp, **p; ++ ++ AuRwMustWriteLock(&sbinfo->si_rwsem); ++ ++ brp = sbinfo->si_branch + bindex; ++ if (bindex < bbot) ++ memmove(brp, brp + 1, sizeof(*brp) * (bbot - bindex)); ++ sbinfo->si_branch[0 + bbot] = NULL; ++ sbinfo->si_bbot--; ++ ++ p = au_krealloc(sbinfo->si_branch, sizeof(*p) * bbot, AuGFP_SBILIST, ++ /*may_shrink*/1); ++ if (p) ++ sbinfo->si_branch = p; ++ /* harmless error */ ++} ++ ++static void au_br_do_del_hdp(struct au_dinfo *dinfo, const aufs_bindex_t bindex, ++ const aufs_bindex_t bbot) ++{ ++ struct au_hdentry *hdp, *p; ++ ++ AuRwMustWriteLock(&dinfo->di_rwsem); ++ ++ hdp = au_hdentry(dinfo, bindex); ++ if (bindex < bbot) ++ memmove(hdp, hdp + 1, sizeof(*hdp) * (bbot - bindex)); ++ /* au_h_dentry_init(au_hdentry(dinfo, bbot); */ ++ dinfo->di_bbot--; ++ ++ p = au_krealloc(dinfo->di_hdentry, sizeof(*p) * bbot, AuGFP_SBILIST, ++ /*may_shrink*/1); ++ if (p) ++ dinfo->di_hdentry = p; ++ /* harmless error */ ++} ++ ++static void au_br_do_del_hip(struct au_iinfo *iinfo, const aufs_bindex_t bindex, ++ const aufs_bindex_t bbot) ++{ ++ struct au_hinode *hip, *p; ++ ++ AuRwMustWriteLock(&iinfo->ii_rwsem); ++ ++ hip = au_hinode(iinfo, bindex); ++ if (bindex < bbot) ++ memmove(hip, hip + 1, sizeof(*hip) * (bbot - bindex)); ++ /* au_hinode_init(au_hinode(iinfo, bbot)); */ ++ iinfo->ii_bbot--; ++ ++ p = au_krealloc(iinfo->ii_hinode, sizeof(*p) * bbot, AuGFP_SBILIST, ++ /*may_shrink*/1); ++ if (p) ++ iinfo->ii_hinode = p; ++ /* harmless error */ ++} ++ ++static void au_br_do_del(struct super_block *sb, aufs_bindex_t bindex, ++ struct au_branch *br) ++{ ++ aufs_bindex_t bbot; ++ struct au_sbinfo *sbinfo; ++ struct dentry *root, *h_root; ++ struct inode *inode, *h_inode; ++ struct au_hinode *hinode; ++ ++ SiMustWriteLock(sb); ++ ++ root = sb->s_root; ++ inode = d_inode(root); ++ sbinfo = au_sbi(sb); ++ bbot = sbinfo->si_bbot; ++ ++ h_root = au_h_dptr(root, bindex); ++ hinode = au_hi(inode, bindex); ++ h_inode = au_igrab(hinode->hi_inode); ++ au_hiput(hinode); ++ ++ au_sbilist_lock(); ++ au_br_do_del_brp(sbinfo, bindex, bbot); ++ au_br_do_del_hdp(au_di(root), bindex, bbot); ++ au_br_do_del_hip(au_ii(inode), bindex, bbot); ++ au_sbilist_unlock(); ++ ++ /* ignore an error */ ++ au_dr_br_fin(sb, br); /* always, regardless the mount option */ ++ ++ dput(h_root); ++ iput(h_inode); ++ au_br_do_free(br); ++} ++ ++static unsigned long long empty_cb(struct super_block *sb, void *array, ++ unsigned long long max, void *arg) ++{ ++ return max; ++} ++ ++int au_br_del(struct super_block *sb, struct au_opt_del *del, int remount) ++{ ++ int err, rerr, i; ++ unsigned long long opened; ++ unsigned int mnt_flags; ++ aufs_bindex_t bindex, bbot, br_id; ++ unsigned char do_wh, verbose; ++ struct au_branch *br; ++ struct au_wbr *wbr; ++ struct dentry *root; ++ struct file **to_free; ++ ++ err = 0; ++ opened = 0; ++ to_free = NULL; ++ root = sb->s_root; ++ bindex = au_find_dbindex(root, del->h_path.dentry); ++ if (bindex < 0) { ++ if (remount) ++ goto out; /* success */ ++ err = -ENOENT; ++ pr_err("%s no such branch\n", del->pathname); ++ goto out; ++ } ++ AuDbg("bindex b%d\n", bindex); ++ ++ err = -EBUSY; ++ mnt_flags = au_mntflags(sb); ++ verbose = !!au_opt_test(mnt_flags, VERBOSE); ++ bbot = au_sbbot(sb); ++ if (unlikely(!bbot)) { ++ AuVerbose(verbose, "no more branches left\n"); ++ goto out; ++ } ++ br = au_sbr(sb, bindex); ++ AuDebugOn(!path_equal(&br->br_path, &del->h_path)); ++ ++ br_id = br->br_id; ++ opened = au_br_count(br); ++ if (unlikely(opened)) { ++ to_free = au_array_alloc(&opened, empty_cb, sb, NULL); ++ err = PTR_ERR(to_free); ++ if (IS_ERR(to_free)) ++ goto out; ++ ++ err = test_file_busy(sb, br_id, to_free, opened); ++ if (unlikely(err)) { ++ AuVerbose(verbose, "%llu file(s) opened\n", opened); ++ goto out; ++ } ++ } ++ ++ wbr = br->br_wbr; ++ do_wh = wbr && (wbr->wbr_whbase || wbr->wbr_plink || wbr->wbr_orph); ++ if (do_wh) { ++ /* instead of WbrWhMustWriteLock(wbr) */ ++ SiMustWriteLock(sb); ++ for (i = 0; i < AuBrWh_Last; i++) { ++ dput(wbr->wbr_wh[i]); ++ wbr->wbr_wh[i] = NULL; ++ } ++ } ++ ++ err = test_children_busy(root, bindex, verbose); ++ if (unlikely(err)) { ++ if (do_wh) ++ goto out_wh; ++ goto out; ++ } ++ ++ err = 0; ++ if (to_free) { ++ /* ++ * now we confirmed the branch is deletable. ++ * let's free the remaining opened dirs on the branch. ++ */ ++ di_write_unlock(root); ++ br_del_file(to_free, opened, br_id); ++ di_write_lock_child(root); ++ } ++ ++ if (!remount) ++ au_br_do_del(sb, bindex, br); ++ else { ++ sysaufs_brs_del(sb, bindex); ++ au_br_do_del(sb, bindex, br); ++ sysaufs_brs_add(sb, bindex); ++ } ++ ++ if (!bindex) { ++ au_cpup_attr_all(d_inode(root), /*force*/1); ++ sb->s_maxbytes = au_sbr_sb(sb, 0)->s_maxbytes; ++ } else ++ au_sub_nlink(d_inode(root), d_inode(del->h_path.dentry)); ++ if (au_opt_test(mnt_flags, PLINK)) ++ au_plink_half_refresh(sb, br_id); ++ ++ if (au_xino_brid(sb) == br_id) ++ au_xino_brid_set(sb, -1); ++ goto out; /* success */ ++ ++out_wh: ++ /* revert */ ++ rerr = au_br_init_wh(sb, br, br->br_perm); ++ if (rerr) ++ pr_warn("failed re-creating base whiteout, %s. (%d)\n", ++ del->pathname, rerr); ++out: ++ if (to_free) ++ au_farray_free(to_free, opened); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static int au_ibusy(struct super_block *sb, struct aufs_ibusy __user *arg) ++{ ++ int err; ++ aufs_bindex_t btop, bbot; ++ struct aufs_ibusy ibusy; ++ struct inode *inode, *h_inode; ++ ++ err = -EPERM; ++ if (unlikely(!capable(CAP_SYS_ADMIN))) ++ goto out; ++ ++ err = copy_from_user(&ibusy, arg, sizeof(ibusy)); ++ if (!err) ++ err = !access_ok(VERIFY_WRITE, &arg->h_ino, sizeof(arg->h_ino)); ++ if (unlikely(err)) { ++ err = -EFAULT; ++ AuTraceErr(err); ++ goto out; ++ } ++ ++ err = -EINVAL; ++ si_read_lock(sb, AuLock_FLUSH); ++ if (unlikely(ibusy.bindex < 0 || ibusy.bindex > au_sbbot(sb))) ++ goto out_unlock; ++ ++ err = 0; ++ ibusy.h_ino = 0; /* invalid */ ++ inode = ilookup(sb, ibusy.ino); ++ if (!inode ++ || inode->i_ino == AUFS_ROOT_INO ++ || au_is_bad_inode(inode)) ++ goto out_unlock; ++ ++ ii_read_lock_child(inode); ++ btop = au_ibtop(inode); ++ bbot = au_ibbot(inode); ++ if (btop <= ibusy.bindex && ibusy.bindex <= bbot) { ++ h_inode = au_h_iptr(inode, ibusy.bindex); ++ if (h_inode && au_test_ibusy(inode, btop, bbot)) ++ ibusy.h_ino = h_inode->i_ino; ++ } ++ ii_read_unlock(inode); ++ iput(inode); ++ ++out_unlock: ++ si_read_unlock(sb); ++ if (!err) { ++ err = __put_user(ibusy.h_ino, &arg->h_ino); ++ if (unlikely(err)) { ++ err = -EFAULT; ++ AuTraceErr(err); ++ } ++ } ++out: ++ return err; ++} ++ ++long au_ibusy_ioctl(struct file *file, unsigned long arg) ++{ ++ return au_ibusy(file->f_path.dentry->d_sb, (void __user *)arg); ++} ++ ++#ifdef CONFIG_COMPAT ++long au_ibusy_compat_ioctl(struct file *file, unsigned long arg) ++{ ++ return au_ibusy(file->f_path.dentry->d_sb, compat_ptr(arg)); ++} ++#endif ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* ++ * change a branch permission ++ */ ++ ++static void au_warn_ima(void) ++{ ++#ifdef CONFIG_IMA ++ /* since it doesn't support mark_files_ro() */ ++ AuWarn1("RW -> RO makes IMA to produce wrong message\n"); ++#endif ++} ++ ++static int do_need_sigen_inc(int a, int b) ++{ ++ return au_br_whable(a) && !au_br_whable(b); ++} ++ ++static int need_sigen_inc(int old, int new) ++{ ++ return do_need_sigen_inc(old, new) ++ || do_need_sigen_inc(new, old); ++} ++ ++static int au_br_mod_files_ro(struct super_block *sb, aufs_bindex_t bindex) ++{ ++ int err, do_warn; ++ unsigned int mnt_flags; ++ unsigned long long ull, max; ++ aufs_bindex_t br_id; ++ unsigned char verbose, writer; ++ struct file *file, *hf, **array; ++ struct au_hfile *hfile; ++ ++ mnt_flags = au_mntflags(sb); ++ verbose = !!au_opt_test(mnt_flags, VERBOSE); ++ ++ array = au_farray_alloc(sb, &max); ++ err = PTR_ERR(array); ++ if (IS_ERR(array)) ++ goto out; ++ ++ do_warn = 0; ++ br_id = au_sbr_id(sb, bindex); ++ for (ull = 0; ull < max; ull++) { ++ file = array[ull]; ++ if (unlikely(!file)) ++ break; ++ ++ /* AuDbg("%pD\n", file); */ ++ fi_read_lock(file); ++ if (unlikely(au_test_mmapped(file))) { ++ err = -EBUSY; ++ AuVerbose(verbose, "mmapped %pD\n", file); ++ AuDbgFile(file); ++ FiMustNoWaiters(file); ++ fi_read_unlock(file); ++ goto out_array; ++ } ++ ++ hfile = &au_fi(file)->fi_htop; ++ hf = hfile->hf_file; ++ if (!d_is_reg(file->f_path.dentry) ++ || !(file->f_mode & FMODE_WRITE) ++ || hfile->hf_br->br_id != br_id ++ || !(hf->f_mode & FMODE_WRITE)) ++ array[ull] = NULL; ++ else { ++ do_warn = 1; ++ get_file(file); ++ } ++ ++ FiMustNoWaiters(file); ++ fi_read_unlock(file); ++ fput(file); ++ } ++ ++ err = 0; ++ if (do_warn) ++ au_warn_ima(); ++ ++ for (ull = 0; ull < max; ull++) { ++ file = array[ull]; ++ if (!file) ++ continue; ++ ++ /* todo: already flushed? */ ++ /* ++ * fs/super.c:mark_files_ro() is gone, but aufs keeps its ++ * approach which resets f_mode and calls mnt_drop_write() and ++ * file_release_write() for each file, because the branch ++ * attribute in aufs world is totally different from the native ++ * fs rw/ro mode. ++ */ ++ /* fi_read_lock(file); */ ++ hfile = &au_fi(file)->fi_htop; ++ hf = hfile->hf_file; ++ /* fi_read_unlock(file); */ ++ spin_lock(&hf->f_lock); ++ writer = !!(hf->f_mode & FMODE_WRITER); ++ hf->f_mode &= ~(FMODE_WRITE | FMODE_WRITER); ++ spin_unlock(&hf->f_lock); ++ if (writer) { ++ put_write_access(file_inode(hf)); ++ __mnt_drop_write(hf->f_path.mnt); ++ } ++ } ++ ++out_array: ++ au_farray_free(array, max); ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++int au_br_mod(struct super_block *sb, struct au_opt_mod *mod, int remount, ++ int *do_refresh) ++{ ++ int err, rerr; ++ aufs_bindex_t bindex; ++ struct dentry *root; ++ struct au_branch *br; ++ struct au_br_fhsm *bf; ++ ++ root = sb->s_root; ++ bindex = au_find_dbindex(root, mod->h_root); ++ if (bindex < 0) { ++ if (remount) ++ return 0; /* success */ ++ err = -ENOENT; ++ pr_err("%s no such branch\n", mod->path); ++ goto out; ++ } ++ AuDbg("bindex b%d\n", bindex); ++ ++ err = test_br(d_inode(mod->h_root), mod->perm, mod->path); ++ if (unlikely(err)) ++ goto out; ++ ++ br = au_sbr(sb, bindex); ++ AuDebugOn(mod->h_root != au_br_dentry(br)); ++ if (br->br_perm == mod->perm) ++ return 0; /* success */ ++ ++ /* pre-allocate for non-fhsm --> fhsm */ ++ bf = NULL; ++ if (!au_br_fhsm(br->br_perm) && au_br_fhsm(mod->perm)) { ++ err = au_fhsm_br_alloc(br); ++ if (unlikely(err)) ++ goto out; ++ bf = br->br_fhsm; ++ br->br_fhsm = NULL; ++ } ++ ++ if (au_br_writable(br->br_perm)) { ++ /* remove whiteout base */ ++ err = au_br_init_wh(sb, br, mod->perm); ++ if (unlikely(err)) ++ goto out_bf; ++ ++ if (!au_br_writable(mod->perm)) { ++ /* rw --> ro, file might be mmapped */ ++ DiMustNoWaiters(root); ++ IiMustNoWaiters(d_inode(root)); ++ di_write_unlock(root); ++ err = au_br_mod_files_ro(sb, bindex); ++ /* aufs_write_lock() calls ..._child() */ ++ di_write_lock_child(root); ++ ++ if (unlikely(err)) { ++ rerr = -ENOMEM; ++ br->br_wbr = kzalloc(sizeof(*br->br_wbr), ++ GFP_NOFS); ++ if (br->br_wbr) ++ rerr = au_wbr_init(br, sb, br->br_perm); ++ if (unlikely(rerr)) { ++ AuIOErr("nested error %d (%d)\n", ++ rerr, err); ++ br->br_perm = mod->perm; ++ } ++ } ++ } ++ } else if (au_br_writable(mod->perm)) { ++ /* ro --> rw */ ++ err = -ENOMEM; ++ br->br_wbr = kzalloc(sizeof(*br->br_wbr), GFP_NOFS); ++ if (br->br_wbr) { ++ err = au_wbr_init(br, sb, mod->perm); ++ if (unlikely(err)) { ++ kfree(br->br_wbr); ++ br->br_wbr = NULL; ++ } ++ } ++ } ++ if (unlikely(err)) ++ goto out_bf; ++ ++ if (au_br_fhsm(br->br_perm)) { ++ if (!au_br_fhsm(mod->perm)) { ++ /* fhsm --> non-fhsm */ ++ au_br_fhsm_fin(br->br_fhsm); ++ kfree(br->br_fhsm); ++ br->br_fhsm = NULL; ++ } ++ } else if (au_br_fhsm(mod->perm)) ++ /* non-fhsm --> fhsm */ ++ br->br_fhsm = bf; ++ ++ *do_refresh |= need_sigen_inc(br->br_perm, mod->perm); ++ br->br_perm = mod->perm; ++ goto out; /* success */ ++ ++out_bf: ++ kfree(bf); ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++int au_br_stfs(struct au_branch *br, struct aufs_stfs *stfs) ++{ ++ int err; ++ struct kstatfs kstfs; ++ ++ err = vfs_statfs(&br->br_path, &kstfs); ++ if (!err) { ++ stfs->f_blocks = kstfs.f_blocks; ++ stfs->f_bavail = kstfs.f_bavail; ++ stfs->f_files = kstfs.f_files; ++ stfs->f_ffree = kstfs.f_ffree; ++ } ++ ++ return err; ++} +diff -Naur null/fs/aufs/branch.h linux-4.15/fs/aufs/branch.h +--- /dev/null ++++ linux-4.15/fs/aufs/branch.h 2018-02-25 02:38:09.197737361 +0100 +@@ -0,0 +1,333 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * branch filesystems and xino for them ++ */ ++ ++#ifndef __AUFS_BRANCH_H__ ++#define __AUFS_BRANCH_H__ ++ ++#ifdef __KERNEL__ ++ ++#include ++#include "dirren.h" ++#include "dynop.h" ++#include "rwsem.h" ++#include "super.h" ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* a xino file */ ++struct au_xino_file { ++ struct file *xi_file; ++ struct { ++ spinlock_t spin; ++ ino_t *array; ++ int total; ++ /* reserved for future use */ ++ /* unsigned long *bitmap; */ ++ wait_queue_head_t wqh; ++ } xi_nondir; ++ ++ /* todo: make xino files an array to support huge inode number */ ++ ++#ifdef CONFIG_DEBUG_FS ++ struct dentry *xi_dbgaufs; ++#endif ++}; ++ ++/* File-based Hierarchical Storage Management */ ++struct au_br_fhsm { ++#ifdef CONFIG_AUFS_FHSM ++ struct mutex bf_lock; ++ unsigned long bf_jiffy; ++ struct aufs_stfs bf_stfs; ++ int bf_readable; ++#endif ++}; ++ ++/* members for writable branch only */ ++enum {AuBrWh_BASE, AuBrWh_PLINK, AuBrWh_ORPH, AuBrWh_Last}; ++struct au_wbr { ++ struct au_rwsem wbr_wh_rwsem; ++ struct dentry *wbr_wh[AuBrWh_Last]; ++ atomic_t wbr_wh_running; ++#define wbr_whbase wbr_wh[AuBrWh_BASE] /* whiteout base */ ++#define wbr_plink wbr_wh[AuBrWh_PLINK] /* pseudo-link dir */ ++#define wbr_orph wbr_wh[AuBrWh_ORPH] /* dir for orphans */ ++ ++ /* mfs mode */ ++ unsigned long long wbr_bytes; ++}; ++ ++/* ext2 has 3 types of operations at least, ext3 has 4 */ ++#define AuBrDynOp (AuDyLast * 4) ++ ++#ifdef CONFIG_AUFS_HFSNOTIFY ++/* support for asynchronous destruction */ ++struct au_br_hfsnotify { ++ struct fsnotify_group *hfsn_group; ++}; ++#endif ++ ++/* sysfs entries */ ++struct au_brsysfs { ++ char name[16]; ++ struct attribute attr; ++}; ++ ++enum { ++ AuBrSysfs_BR, ++ AuBrSysfs_BRID, ++ AuBrSysfs_Last ++}; ++ ++/* protected by superblock rwsem */ ++struct au_branch { ++ struct au_xino_file br_xino; ++ ++ aufs_bindex_t br_id; ++ ++ int br_perm; ++ struct path br_path; ++ spinlock_t br_dykey_lock; ++ struct au_dykey *br_dykey[AuBrDynOp]; ++ struct percpu_counter br_count; ++ ++ struct au_wbr *br_wbr; ++ struct au_br_fhsm *br_fhsm; ++ ++ /* xino truncation */ ++ atomic_t br_xino_running; ++ ++#ifdef CONFIG_AUFS_HFSNOTIFY ++ struct au_br_hfsnotify *br_hfsn; ++#endif ++ ++#ifdef CONFIG_SYSFS ++ /* entries under sysfs per mount-point */ ++ struct au_brsysfs br_sysfs[AuBrSysfs_Last]; ++#endif ++ ++ struct au_dr_br br_dirren; ++}; ++ ++/* ---------------------------------------------------------------------- */ ++ ++static inline struct vfsmount *au_br_mnt(struct au_branch *br) ++{ ++ return br->br_path.mnt; ++} ++ ++static inline struct dentry *au_br_dentry(struct au_branch *br) ++{ ++ return br->br_path.dentry; ++} ++ ++static inline struct super_block *au_br_sb(struct au_branch *br) ++{ ++ return au_br_mnt(br)->mnt_sb; ++} ++ ++static inline void au_br_get(struct au_branch *br) ++{ ++ percpu_counter_inc(&br->br_count); ++} ++ ++static inline void au_br_put(struct au_branch *br) ++{ ++ percpu_counter_dec(&br->br_count); ++} ++ ++static inline s64 au_br_count(struct au_branch *br) ++{ ++ return percpu_counter_sum(&br->br_count); ++} ++ ++static inline void au_br_count_init(struct au_branch *br) ++{ ++ percpu_counter_init(&br->br_count, 0, GFP_NOFS); ++} ++ ++static inline void au_br_count_fin(struct au_branch *br) ++{ ++ percpu_counter_destroy(&br->br_count); ++} ++ ++static inline int au_br_rdonly(struct au_branch *br) ++{ ++ return (sb_rdonly(au_br_sb(br)) ++ || !au_br_writable(br->br_perm)) ++ ? -EROFS : 0; ++} ++ ++static inline int au_br_hnotifyable(int brperm __maybe_unused) ++{ ++#ifdef CONFIG_AUFS_HNOTIFY ++ return !(brperm & AuBrPerm_RR); ++#else ++ return 0; ++#endif ++} ++ ++static inline int au_br_test_oflag(int oflag, struct au_branch *br) ++{ ++ int err, exec_flag; ++ ++ err = 0; ++ exec_flag = oflag & __FMODE_EXEC; ++ if (unlikely(exec_flag && path_noexec(&br->br_path))) ++ err = -EACCES; ++ ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* branch.c */ ++struct au_sbinfo; ++void au_br_free(struct au_sbinfo *sinfo); ++int au_br_index(struct super_block *sb, aufs_bindex_t br_id); ++struct au_opt_add; ++int au_br_add(struct super_block *sb, struct au_opt_add *add, int remount); ++struct au_opt_del; ++int au_br_del(struct super_block *sb, struct au_opt_del *del, int remount); ++long au_ibusy_ioctl(struct file *file, unsigned long arg); ++#ifdef CONFIG_COMPAT ++long au_ibusy_compat_ioctl(struct file *file, unsigned long arg); ++#endif ++struct au_opt_mod; ++int au_br_mod(struct super_block *sb, struct au_opt_mod *mod, int remount, ++ int *do_refresh); ++struct aufs_stfs; ++int au_br_stfs(struct au_branch *br, struct aufs_stfs *stfs); ++ ++/* xino.c */ ++static const loff_t au_loff_max = LLONG_MAX; ++ ++int au_xib_trunc(struct super_block *sb); ++ssize_t xino_fread(vfs_readf_t func, struct file *file, void *buf, size_t size, ++ loff_t *pos); ++ssize_t xino_fwrite(vfs_writef_t func, struct file *file, void *buf, ++ size_t size, loff_t *pos); ++struct file *au_xino_create2(struct file *base_file, struct file *copy_src); ++struct file *au_xino_create(struct super_block *sb, char *fname, int silent); ++ino_t au_xino_new_ino(struct super_block *sb); ++void au_xino_delete_inode(struct inode *inode, const int unlinked); ++int au_xino_write(struct super_block *sb, aufs_bindex_t bindex, ino_t h_ino, ++ ino_t ino); ++int au_xino_read(struct super_block *sb, aufs_bindex_t bindex, ino_t h_ino, ++ ino_t *ino); ++int au_xino_br(struct super_block *sb, struct au_branch *br, ino_t hino, ++ struct file *base_file, int do_test); ++int au_xino_trunc(struct super_block *sb, aufs_bindex_t bindex); ++ ++struct au_opt_xino; ++int au_xino_set(struct super_block *sb, struct au_opt_xino *xino, int remount); ++void au_xino_clr(struct super_block *sb); ++struct file *au_xino_def(struct super_block *sb); ++int au_xino_path(struct seq_file *seq, struct file *file); ++ ++void au_xinondir_leave(struct super_block *sb, aufs_bindex_t bindex, ++ ino_t h_ino, int idx); ++int au_xinondir_enter(struct super_block *sb, aufs_bindex_t bindex, ino_t h_ino, ++ int *idx); ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* Superblock to branch */ ++static inline ++aufs_bindex_t au_sbr_id(struct super_block *sb, aufs_bindex_t bindex) ++{ ++ return au_sbr(sb, bindex)->br_id; ++} ++ ++static inline ++struct vfsmount *au_sbr_mnt(struct super_block *sb, aufs_bindex_t bindex) ++{ ++ return au_br_mnt(au_sbr(sb, bindex)); ++} ++ ++static inline ++struct super_block *au_sbr_sb(struct super_block *sb, aufs_bindex_t bindex) ++{ ++ return au_br_sb(au_sbr(sb, bindex)); ++} ++ ++static inline void au_sbr_get(struct super_block *sb, aufs_bindex_t bindex) ++{ ++ au_br_get(au_sbr(sb, bindex)); ++} ++ ++static inline void au_sbr_put(struct super_block *sb, aufs_bindex_t bindex) ++{ ++ au_br_put(au_sbr(sb, bindex)); ++} ++ ++static inline int au_sbr_perm(struct super_block *sb, aufs_bindex_t bindex) ++{ ++ return au_sbr(sb, bindex)->br_perm; ++} ++ ++static inline int au_sbr_whable(struct super_block *sb, aufs_bindex_t bindex) ++{ ++ return au_br_whable(au_sbr_perm(sb, bindex)); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++#define wbr_wh_read_lock(wbr) au_rw_read_lock(&(wbr)->wbr_wh_rwsem) ++#define wbr_wh_write_lock(wbr) au_rw_write_lock(&(wbr)->wbr_wh_rwsem) ++#define wbr_wh_read_trylock(wbr) au_rw_read_trylock(&(wbr)->wbr_wh_rwsem) ++#define wbr_wh_write_trylock(wbr) au_rw_write_trylock(&(wbr)->wbr_wh_rwsem) ++/* ++#define wbr_wh_read_trylock_nested(wbr) \ ++ au_rw_read_trylock_nested(&(wbr)->wbr_wh_rwsem) ++#define wbr_wh_write_trylock_nested(wbr) \ ++ au_rw_write_trylock_nested(&(wbr)->wbr_wh_rwsem) ++*/ ++ ++#define wbr_wh_read_unlock(wbr) au_rw_read_unlock(&(wbr)->wbr_wh_rwsem) ++#define wbr_wh_write_unlock(wbr) au_rw_write_unlock(&(wbr)->wbr_wh_rwsem) ++#define wbr_wh_downgrade_lock(wbr) au_rw_dgrade_lock(&(wbr)->wbr_wh_rwsem) ++ ++#define WbrWhMustNoWaiters(wbr) AuRwMustNoWaiters(&(wbr)->wbr_wh_rwsem) ++#define WbrWhMustAnyLock(wbr) AuRwMustAnyLock(&(wbr)->wbr_wh_rwsem) ++#define WbrWhMustWriteLock(wbr) AuRwMustWriteLock(&(wbr)->wbr_wh_rwsem) ++ ++/* ---------------------------------------------------------------------- */ ++ ++#ifdef CONFIG_AUFS_FHSM ++static inline void au_br_fhsm_init(struct au_br_fhsm *brfhsm) ++{ ++ mutex_init(&brfhsm->bf_lock); ++ brfhsm->bf_jiffy = 0; ++ brfhsm->bf_readable = 0; ++} ++ ++static inline void au_br_fhsm_fin(struct au_br_fhsm *brfhsm) ++{ ++ mutex_destroy(&brfhsm->bf_lock); ++} ++#else ++AuStubVoid(au_br_fhsm_init, struct au_br_fhsm *brfhsm) ++AuStubVoid(au_br_fhsm_fin, struct au_br_fhsm *brfhsm) ++#endif ++ ++#endif /* __KERNEL__ */ ++#endif /* __AUFS_BRANCH_H__ */ +diff -Naur null/fs/aufs/conf.mk linux-4.15/fs/aufs/conf.mk +--- /dev/null ++++ linux-4.15/fs/aufs/conf.mk 2018-02-25 02:38:09.197737361 +0100 +@@ -0,0 +1,40 @@ ++# SPDX-License-Identifier: GPL-2.0 ++ ++AuConfStr = CONFIG_AUFS_FS=${CONFIG_AUFS_FS} ++ ++define AuConf ++ifdef ${1} ++AuConfStr += ${1}=${${1}} ++endif ++endef ++ ++AuConfAll = BRANCH_MAX_127 BRANCH_MAX_511 BRANCH_MAX_1023 BRANCH_MAX_32767 \ ++ SBILIST \ ++ HNOTIFY HFSNOTIFY \ ++ EXPORT INO_T_64 \ ++ XATTR \ ++ FHSM \ ++ RDU \ ++ DIRREN \ ++ SHWH \ ++ BR_RAMFS \ ++ BR_FUSE POLL \ ++ BR_HFSPLUS \ ++ BDEV_LOOP \ ++ DEBUG MAGIC_SYSRQ ++$(foreach i, ${AuConfAll}, \ ++ $(eval $(call AuConf,CONFIG_AUFS_${i}))) ++ ++AuConfName = ${obj}/conf.str ++${AuConfName}.tmp: FORCE ++ @echo ${AuConfStr} | tr ' ' '\n' | sed -e 's/^/"/' -e 's/$$/\\n"/' > $@ ++${AuConfName}: ${AuConfName}.tmp ++ @diff -q $< $@ > /dev/null 2>&1 || { \ ++ echo ' GEN ' $@; \ ++ cp -p $< $@; \ ++ } ++FORCE: ++clean-files += ${AuConfName} ${AuConfName}.tmp ++${obj}/sysfs.o: ${AuConfName} ++ ++-include ${srctree}/${src}/conf_priv.mk +diff -Naur null/fs/aufs/cpup.c linux-4.15/fs/aufs/cpup.c +--- /dev/null ++++ linux-4.15/fs/aufs/cpup.c 2018-02-25 02:38:09.198737468 +0100 +@@ -0,0 +1,1442 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * copy-up functions, see wbr_policy.c for copy-down ++ */ ++ ++#include ++#include ++#include ++#include "aufs.h" ++ ++void au_cpup_attr_flags(struct inode *dst, unsigned int iflags) ++{ ++ const unsigned int mask = S_DEAD | S_SWAPFILE | S_PRIVATE ++ | S_NOATIME | S_NOCMTIME | S_AUTOMOUNT; ++ ++ BUILD_BUG_ON(sizeof(iflags) != sizeof(dst->i_flags)); ++ ++ dst->i_flags |= iflags & ~mask; ++ if (au_test_fs_notime(dst->i_sb)) ++ dst->i_flags |= S_NOATIME | S_NOCMTIME; ++} ++ ++void au_cpup_attr_timesizes(struct inode *inode) ++{ ++ struct inode *h_inode; ++ ++ h_inode = au_h_iptr(inode, au_ibtop(inode)); ++ fsstack_copy_attr_times(inode, h_inode); ++ fsstack_copy_inode_size(inode, h_inode); ++} ++ ++void au_cpup_attr_nlink(struct inode *inode, int force) ++{ ++ struct inode *h_inode; ++ struct super_block *sb; ++ aufs_bindex_t bindex, bbot; ++ ++ sb = inode->i_sb; ++ bindex = au_ibtop(inode); ++ h_inode = au_h_iptr(inode, bindex); ++ if (!force ++ && !S_ISDIR(h_inode->i_mode) ++ && au_opt_test(au_mntflags(sb), PLINK) ++ && au_plink_test(inode)) ++ return; ++ ++ /* ++ * 0 can happen in revalidating. ++ * h_inode->i_mutex may not be held here, but it is harmless since once ++ * i_nlink reaches 0, it will never become positive except O_TMPFILE ++ * case. ++ * todo: O_TMPFILE+linkat(AT_SYMLINK_FOLLOW) bypassing aufs may cause ++ * the incorrect link count. ++ */ ++ set_nlink(inode, h_inode->i_nlink); ++ ++ /* ++ * fewer nlink makes find(1) noisy, but larger nlink doesn't. ++ * it may includes whplink directory. ++ */ ++ if (S_ISDIR(h_inode->i_mode)) { ++ bbot = au_ibbot(inode); ++ for (bindex++; bindex <= bbot; bindex++) { ++ h_inode = au_h_iptr(inode, bindex); ++ if (h_inode) ++ au_add_nlink(inode, h_inode); ++ } ++ } ++} ++ ++void au_cpup_attr_changeable(struct inode *inode) ++{ ++ struct inode *h_inode; ++ ++ h_inode = au_h_iptr(inode, au_ibtop(inode)); ++ inode->i_mode = h_inode->i_mode; ++ inode->i_uid = h_inode->i_uid; ++ inode->i_gid = h_inode->i_gid; ++ au_cpup_attr_timesizes(inode); ++ au_cpup_attr_flags(inode, h_inode->i_flags); ++} ++ ++void au_cpup_igen(struct inode *inode, struct inode *h_inode) ++{ ++ struct au_iinfo *iinfo = au_ii(inode); ++ ++ IiMustWriteLock(inode); ++ ++ iinfo->ii_higen = h_inode->i_generation; ++ iinfo->ii_hsb1 = h_inode->i_sb; ++} ++ ++void au_cpup_attr_all(struct inode *inode, int force) ++{ ++ struct inode *h_inode; ++ ++ h_inode = au_h_iptr(inode, au_ibtop(inode)); ++ au_cpup_attr_changeable(inode); ++ if (inode->i_nlink > 0) ++ au_cpup_attr_nlink(inode, force); ++ inode->i_rdev = h_inode->i_rdev; ++ inode->i_blkbits = h_inode->i_blkbits; ++ au_cpup_igen(inode, h_inode); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* Note: dt_dentry and dt_h_dentry are not dget/dput-ed */ ++ ++/* keep the timestamps of the parent dir when cpup */ ++void au_dtime_store(struct au_dtime *dt, struct dentry *dentry, ++ struct path *h_path) ++{ ++ struct inode *h_inode; ++ ++ dt->dt_dentry = dentry; ++ dt->dt_h_path = *h_path; ++ h_inode = d_inode(h_path->dentry); ++ dt->dt_atime = h_inode->i_atime; ++ dt->dt_mtime = h_inode->i_mtime; ++ /* smp_mb(); */ ++} ++ ++void au_dtime_revert(struct au_dtime *dt) ++{ ++ struct iattr attr; ++ int err; ++ ++ attr.ia_atime = dt->dt_atime; ++ attr.ia_mtime = dt->dt_mtime; ++ attr.ia_valid = ATTR_FORCE | ATTR_MTIME | ATTR_MTIME_SET ++ | ATTR_ATIME | ATTR_ATIME_SET; ++ ++ /* no delegation since this is a directory */ ++ err = vfsub_notify_change(&dt->dt_h_path, &attr, /*delegated*/NULL); ++ if (unlikely(err)) ++ pr_warn("restoring timestamps failed(%d). ignored\n", err); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* internal use only */ ++struct au_cpup_reg_attr { ++ int valid; ++ struct kstat st; ++ unsigned int iflags; /* inode->i_flags */ ++}; ++ ++static noinline_for_stack ++int cpup_iattr(struct dentry *dst, aufs_bindex_t bindex, struct dentry *h_src, ++ struct au_cpup_reg_attr *h_src_attr) ++{ ++ int err, sbits, icex; ++ unsigned int mnt_flags; ++ unsigned char verbose; ++ struct iattr ia; ++ struct path h_path; ++ struct inode *h_isrc, *h_idst; ++ struct kstat *h_st; ++ struct au_branch *br; ++ ++ h_path.dentry = au_h_dptr(dst, bindex); ++ h_idst = d_inode(h_path.dentry); ++ br = au_sbr(dst->d_sb, bindex); ++ h_path.mnt = au_br_mnt(br); ++ h_isrc = d_inode(h_src); ++ ia.ia_valid = ATTR_FORCE | ATTR_UID | ATTR_GID ++ | ATTR_ATIME | ATTR_MTIME ++ | ATTR_ATIME_SET | ATTR_MTIME_SET; ++ if (h_src_attr && h_src_attr->valid) { ++ h_st = &h_src_attr->st; ++ ia.ia_uid = h_st->uid; ++ ia.ia_gid = h_st->gid; ++ ia.ia_atime = h_st->atime; ++ ia.ia_mtime = h_st->mtime; ++ if (h_idst->i_mode != h_st->mode ++ && !S_ISLNK(h_idst->i_mode)) { ++ ia.ia_valid |= ATTR_MODE; ++ ia.ia_mode = h_st->mode; ++ } ++ sbits = !!(h_st->mode & (S_ISUID | S_ISGID)); ++ au_cpup_attr_flags(h_idst, h_src_attr->iflags); ++ } else { ++ ia.ia_uid = h_isrc->i_uid; ++ ia.ia_gid = h_isrc->i_gid; ++ ia.ia_atime = h_isrc->i_atime; ++ ia.ia_mtime = h_isrc->i_mtime; ++ if (h_idst->i_mode != h_isrc->i_mode ++ && !S_ISLNK(h_idst->i_mode)) { ++ ia.ia_valid |= ATTR_MODE; ++ ia.ia_mode = h_isrc->i_mode; ++ } ++ sbits = !!(h_isrc->i_mode & (S_ISUID | S_ISGID)); ++ au_cpup_attr_flags(h_idst, h_isrc->i_flags); ++ } ++ /* no delegation since it is just created */ ++ err = vfsub_notify_change(&h_path, &ia, /*delegated*/NULL); ++ ++ /* is this nfs only? */ ++ if (!err && sbits && au_test_nfs(h_path.dentry->d_sb)) { ++ ia.ia_valid = ATTR_FORCE | ATTR_MODE; ++ ia.ia_mode = h_isrc->i_mode; ++ err = vfsub_notify_change(&h_path, &ia, /*delegated*/NULL); ++ } ++ ++ icex = br->br_perm & AuBrAttr_ICEX; ++ if (!err) { ++ mnt_flags = au_mntflags(dst->d_sb); ++ verbose = !!au_opt_test(mnt_flags, VERBOSE); ++ err = au_cpup_xattr(h_path.dentry, h_src, icex, verbose); ++ } ++ ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static int au_do_copy_file(struct file *dst, struct file *src, loff_t len, ++ char *buf, unsigned long blksize) ++{ ++ int err; ++ size_t sz, rbytes, wbytes; ++ unsigned char all_zero; ++ char *p, *zp; ++ struct inode *h_inode; ++ /* reduce stack usage */ ++ struct iattr *ia; ++ ++ zp = page_address(ZERO_PAGE(0)); ++ if (unlikely(!zp)) ++ return -ENOMEM; /* possible? */ ++ ++ err = 0; ++ all_zero = 0; ++ while (len) { ++ AuDbg("len %lld\n", len); ++ sz = blksize; ++ if (len < blksize) ++ sz = len; ++ ++ rbytes = 0; ++ /* todo: signal_pending? */ ++ while (!rbytes || err == -EAGAIN || err == -EINTR) { ++ rbytes = vfsub_read_k(src, buf, sz, &src->f_pos); ++ err = rbytes; ++ } ++ if (unlikely(err < 0)) ++ break; ++ ++ all_zero = 0; ++ if (len >= rbytes && rbytes == blksize) ++ all_zero = !memcmp(buf, zp, rbytes); ++ if (!all_zero) { ++ wbytes = rbytes; ++ p = buf; ++ while (wbytes) { ++ size_t b; ++ ++ b = vfsub_write_k(dst, p, wbytes, &dst->f_pos); ++ err = b; ++ /* todo: signal_pending? */ ++ if (unlikely(err == -EAGAIN || err == -EINTR)) ++ continue; ++ if (unlikely(err < 0)) ++ break; ++ wbytes -= b; ++ p += b; ++ } ++ if (unlikely(err < 0)) ++ break; ++ } else { ++ loff_t res; ++ ++ AuLabel(hole); ++ res = vfsub_llseek(dst, rbytes, SEEK_CUR); ++ err = res; ++ if (unlikely(res < 0)) ++ break; ++ } ++ len -= rbytes; ++ err = 0; ++ } ++ ++ /* the last block may be a hole */ ++ if (!err && all_zero) { ++ AuLabel(last hole); ++ ++ err = 1; ++ if (au_test_nfs(dst->f_path.dentry->d_sb)) { ++ /* nfs requires this step to make last hole */ ++ /* is this only nfs? */ ++ do { ++ /* todo: signal_pending? */ ++ err = vfsub_write_k(dst, "\0", 1, &dst->f_pos); ++ } while (err == -EAGAIN || err == -EINTR); ++ if (err == 1) ++ dst->f_pos--; ++ } ++ ++ if (err == 1) { ++ ia = (void *)buf; ++ ia->ia_size = dst->f_pos; ++ ia->ia_valid = ATTR_SIZE | ATTR_FILE; ++ ia->ia_file = dst; ++ h_inode = file_inode(dst); ++ inode_lock_nested(h_inode, AuLsc_I_CHILD2); ++ /* no delegation since it is just created */ ++ err = vfsub_notify_change(&dst->f_path, ia, ++ /*delegated*/NULL); ++ inode_unlock(h_inode); ++ } ++ } ++ ++ return err; ++} ++ ++int au_copy_file(struct file *dst, struct file *src, loff_t len) ++{ ++ int err; ++ unsigned long blksize; ++ unsigned char do_kfree; ++ char *buf; ++ ++ err = -ENOMEM; ++ blksize = dst->f_path.dentry->d_sb->s_blocksize; ++ if (!blksize || PAGE_SIZE < blksize) ++ blksize = PAGE_SIZE; ++ AuDbg("blksize %lu\n", blksize); ++ do_kfree = (blksize != PAGE_SIZE && blksize >= sizeof(struct iattr *)); ++ if (do_kfree) ++ buf = kmalloc(blksize, GFP_NOFS); ++ else ++ buf = (void *)__get_free_page(GFP_NOFS); ++ if (unlikely(!buf)) ++ goto out; ++ ++ if (len > (1 << 22)) ++ AuDbg("copying a large file %lld\n", (long long)len); ++ ++ src->f_pos = 0; ++ dst->f_pos = 0; ++ err = au_do_copy_file(dst, src, len, buf, blksize); ++ if (do_kfree) ++ kfree(buf); ++ else ++ free_page((unsigned long)buf); ++ ++out: ++ return err; ++} ++ ++static int au_do_copy(struct file *dst, struct file *src, loff_t len) ++{ ++ int err; ++ struct super_block *h_src_sb; ++ struct inode *h_src_inode; ++ ++ h_src_inode = file_inode(src); ++ h_src_sb = h_src_inode->i_sb; ++ ++ /* XFS acquires inode_lock */ ++ if (!au_test_xfs(h_src_sb)) ++ err = au_copy_file(dst, src, len); ++ else { ++ inode_unlock_shared(h_src_inode); ++ err = au_copy_file(dst, src, len); ++ vfsub_inode_lock_shared_nested(h_src_inode, AuLsc_I_CHILD); ++ } ++ ++ return err; ++} ++ ++static int au_clone_or_copy(struct file *dst, struct file *src, loff_t len) ++{ ++ int err; ++ struct super_block *h_src_sb; ++ struct inode *h_src_inode; ++ ++ h_src_inode = file_inode(src); ++ h_src_sb = h_src_inode->i_sb; ++ if (h_src_sb != file_inode(dst)->i_sb ++ || !dst->f_op->clone_file_range) { ++ err = au_do_copy(dst, src, len); ++ goto out; ++ } ++ ++ if (!au_test_nfs(h_src_sb)) { ++ inode_unlock_shared(h_src_inode); ++ err = vfsub_clone_file_range(src, dst, len); ++ vfsub_inode_lock_shared_nested(h_src_inode, AuLsc_I_CHILD); ++ } else ++ err = vfsub_clone_file_range(src, dst, len); ++ /* older XFS has a condition in cloning */ ++ if (unlikely(err != -EOPNOTSUPP)) ++ goto out; ++ ++ /* the backend fs on NFS may not support cloning */ ++ err = au_do_copy(dst, src, len); ++ ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++/* ++ * to support a sparse file which is opened with O_APPEND, ++ * we need to close the file. ++ */ ++static int au_cp_regular(struct au_cp_generic *cpg) ++{ ++ int err, i; ++ enum { SRC, DST }; ++ struct { ++ aufs_bindex_t bindex; ++ unsigned int flags; ++ struct dentry *dentry; ++ int force_wr; ++ struct file *file; ++ void *label; ++ } *f, file[] = { ++ { ++ .bindex = cpg->bsrc, ++ .flags = O_RDONLY | O_NOATIME | O_LARGEFILE, ++ .label = &&out ++ }, ++ { ++ .bindex = cpg->bdst, ++ .flags = O_WRONLY | O_NOATIME | O_LARGEFILE, ++ .force_wr = !!au_ftest_cpup(cpg->flags, RWDST), ++ .label = &&out_src ++ } ++ }; ++ struct super_block *sb, *h_src_sb; ++ struct inode *h_src_inode; ++ struct task_struct *tsk = current; ++ ++ /* bsrc branch can be ro/rw. */ ++ sb = cpg->dentry->d_sb; ++ f = file; ++ for (i = 0; i < 2; i++, f++) { ++ f->dentry = au_h_dptr(cpg->dentry, f->bindex); ++ f->file = au_h_open(cpg->dentry, f->bindex, f->flags, ++ /*file*/NULL, f->force_wr); ++ err = PTR_ERR(f->file); ++ if (IS_ERR(f->file)) ++ goto *f->label; ++ } ++ ++ /* try stopping to update while we copyup */ ++ h_src_inode = d_inode(file[SRC].dentry); ++ h_src_sb = h_src_inode->i_sb; ++ if (!au_test_nfs(h_src_sb)) ++ IMustLock(h_src_inode); ++ err = au_clone_or_copy(file[DST].file, file[SRC].file, cpg->len); ++ ++ /* i wonder if we had O_NO_DELAY_FPUT flag */ ++ if (tsk->flags & PF_KTHREAD) ++ __fput_sync(file[DST].file); ++ else { ++ /* it happend actually */ ++ fput(file[DST].file); ++ /* ++ * too bad. ++ * we have to call both since we don't know which place the file ++ * was added to. ++ */ ++ task_work_run(); ++ flush_delayed_fput(); ++ } ++ au_sbr_put(sb, file[DST].bindex); ++ ++out_src: ++ fput(file[SRC].file); ++ au_sbr_put(sb, file[SRC].bindex); ++out: ++ return err; ++} ++ ++static int au_do_cpup_regular(struct au_cp_generic *cpg, ++ struct au_cpup_reg_attr *h_src_attr) ++{ ++ int err, rerr; ++ loff_t l; ++ struct path h_path; ++ struct inode *h_src_inode, *h_dst_inode; ++ ++ err = 0; ++ h_src_inode = au_h_iptr(d_inode(cpg->dentry), cpg->bsrc); ++ l = i_size_read(h_src_inode); ++ if (cpg->len == -1 || l < cpg->len) ++ cpg->len = l; ++ if (cpg->len) { ++ /* try stopping to update while we are referencing */ ++ vfsub_inode_lock_shared_nested(h_src_inode, AuLsc_I_CHILD); ++ au_pin_hdir_unlock(cpg->pin); ++ ++ h_path.dentry = au_h_dptr(cpg->dentry, cpg->bsrc); ++ h_path.mnt = au_sbr_mnt(cpg->dentry->d_sb, cpg->bsrc); ++ h_src_attr->iflags = h_src_inode->i_flags; ++ if (!au_test_nfs(h_src_inode->i_sb)) ++ err = vfsub_getattr(&h_path, &h_src_attr->st); ++ else { ++ inode_unlock_shared(h_src_inode); ++ err = vfsub_getattr(&h_path, &h_src_attr->st); ++ vfsub_inode_lock_shared_nested(h_src_inode, ++ AuLsc_I_CHILD); ++ } ++ if (unlikely(err)) { ++ inode_unlock_shared(h_src_inode); ++ goto out; ++ } ++ h_src_attr->valid = 1; ++ if (!au_test_nfs(h_src_inode->i_sb)) { ++ err = au_cp_regular(cpg); ++ inode_unlock_shared(h_src_inode); ++ } else { ++ inode_unlock_shared(h_src_inode); ++ err = au_cp_regular(cpg); ++ } ++ rerr = au_pin_hdir_relock(cpg->pin); ++ if (!err && rerr) ++ err = rerr; ++ } ++ if (!err && (h_src_inode->i_state & I_LINKABLE)) { ++ h_path.dentry = au_h_dptr(cpg->dentry, cpg->bdst); ++ h_dst_inode = d_inode(h_path.dentry); ++ spin_lock(&h_dst_inode->i_lock); ++ h_dst_inode->i_state |= I_LINKABLE; ++ spin_unlock(&h_dst_inode->i_lock); ++ } ++ ++out: ++ return err; ++} ++ ++static int au_do_cpup_symlink(struct path *h_path, struct dentry *h_src, ++ struct inode *h_dir) ++{ ++ int err, symlen; ++ mm_segment_t old_fs; ++ union { ++ char *k; ++ char __user *u; ++ } sym; ++ ++ err = -ENOMEM; ++ sym.k = (void *)__get_free_page(GFP_NOFS); ++ if (unlikely(!sym.k)) ++ goto out; ++ ++ /* unnecessary to support mmap_sem since symlink is not mmap-able */ ++ old_fs = get_fs(); ++ set_fs(KERNEL_DS); ++ symlen = vfs_readlink(h_src, sym.u, PATH_MAX); ++ err = symlen; ++ set_fs(old_fs); ++ ++ if (symlen > 0) { ++ sym.k[symlen] = 0; ++ err = vfsub_symlink(h_dir, h_path, sym.k); ++ } ++ free_page((unsigned long)sym.k); ++ ++out: ++ return err; ++} ++ ++/* ++ * regardless 'acl' option, reset all ACL. ++ * All ACL will be copied up later from the original entry on the lower branch. ++ */ ++static int au_reset_acl(struct inode *h_dir, struct path *h_path, umode_t mode) ++{ ++ int err; ++ struct dentry *h_dentry; ++ struct inode *h_inode; ++ ++ h_dentry = h_path->dentry; ++ h_inode = d_inode(h_dentry); ++ /* forget_all_cached_acls(h_inode)); */ ++ err = vfsub_removexattr(h_dentry, XATTR_NAME_POSIX_ACL_ACCESS); ++ AuTraceErr(err); ++ if (err == -EOPNOTSUPP) ++ err = 0; ++ if (!err) ++ err = vfsub_acl_chmod(h_inode, mode); ++ ++ AuTraceErr(err); ++ return err; ++} ++ ++static int au_do_cpup_dir(struct au_cp_generic *cpg, struct dentry *dst_parent, ++ struct inode *h_dir, struct path *h_path) ++{ ++ int err; ++ struct inode *dir, *inode; ++ ++ err = vfsub_removexattr(h_path->dentry, XATTR_NAME_POSIX_ACL_DEFAULT); ++ AuTraceErr(err); ++ if (err == -EOPNOTSUPP) ++ err = 0; ++ if (unlikely(err)) ++ goto out; ++ ++ /* ++ * strange behaviour from the users view, ++ * particularry setattr case ++ */ ++ dir = d_inode(dst_parent); ++ if (au_ibtop(dir) == cpg->bdst) ++ au_cpup_attr_nlink(dir, /*force*/1); ++ inode = d_inode(cpg->dentry); ++ au_cpup_attr_nlink(inode, /*force*/1); ++ ++out: ++ return err; ++} ++ ++static noinline_for_stack ++int cpup_entry(struct au_cp_generic *cpg, struct dentry *dst_parent, ++ struct au_cpup_reg_attr *h_src_attr) ++{ ++ int err; ++ umode_t mode; ++ unsigned int mnt_flags; ++ unsigned char isdir, isreg, force; ++ const unsigned char do_dt = !!au_ftest_cpup(cpg->flags, DTIME); ++ struct au_dtime dt; ++ struct path h_path; ++ struct dentry *h_src, *h_dst, *h_parent; ++ struct inode *h_inode, *h_dir; ++ struct super_block *sb; ++ ++ /* bsrc branch can be ro/rw. */ ++ h_src = au_h_dptr(cpg->dentry, cpg->bsrc); ++ h_inode = d_inode(h_src); ++ AuDebugOn(h_inode != au_h_iptr(d_inode(cpg->dentry), cpg->bsrc)); ++ ++ /* try stopping to be referenced while we are creating */ ++ h_dst = au_h_dptr(cpg->dentry, cpg->bdst); ++ if (au_ftest_cpup(cpg->flags, RENAME)) ++ AuDebugOn(strncmp(h_dst->d_name.name, AUFS_WH_PFX, ++ AUFS_WH_PFX_LEN)); ++ h_parent = h_dst->d_parent; /* dir inode is locked */ ++ h_dir = d_inode(h_parent); ++ IMustLock(h_dir); ++ AuDebugOn(h_parent != h_dst->d_parent); ++ ++ sb = cpg->dentry->d_sb; ++ h_path.mnt = au_sbr_mnt(sb, cpg->bdst); ++ if (do_dt) { ++ h_path.dentry = h_parent; ++ au_dtime_store(&dt, dst_parent, &h_path); ++ } ++ h_path.dentry = h_dst; ++ ++ isreg = 0; ++ isdir = 0; ++ mode = h_inode->i_mode; ++ switch (mode & S_IFMT) { ++ case S_IFREG: ++ isreg = 1; ++ err = vfsub_create(h_dir, &h_path, S_IRUSR | S_IWUSR, ++ /*want_excl*/true); ++ if (!err) ++ err = au_do_cpup_regular(cpg, h_src_attr); ++ break; ++ case S_IFDIR: ++ isdir = 1; ++ err = vfsub_mkdir(h_dir, &h_path, mode); ++ if (!err) ++ err = au_do_cpup_dir(cpg, dst_parent, h_dir, &h_path); ++ break; ++ case S_IFLNK: ++ err = au_do_cpup_symlink(&h_path, h_src, h_dir); ++ break; ++ case S_IFCHR: ++ case S_IFBLK: ++ AuDebugOn(!capable(CAP_MKNOD)); ++ /*FALLTHROUGH*/ ++ case S_IFIFO: ++ case S_IFSOCK: ++ err = vfsub_mknod(h_dir, &h_path, mode, h_inode->i_rdev); ++ break; ++ default: ++ AuIOErr("Unknown inode type 0%o\n", mode); ++ err = -EIO; ++ } ++ if (!err) ++ err = au_reset_acl(h_dir, &h_path, mode); ++ ++ mnt_flags = au_mntflags(sb); ++ if (!au_opt_test(mnt_flags, UDBA_NONE) ++ && !isdir ++ && au_opt_test(mnt_flags, XINO) ++ && (h_inode->i_nlink == 1 ++ || (h_inode->i_state & I_LINKABLE)) ++ /* todo: unnecessary? */ ++ /* && d_inode(cpg->dentry)->i_nlink == 1 */ ++ && cpg->bdst < cpg->bsrc ++ && !au_ftest_cpup(cpg->flags, KEEPLINO)) ++ au_xino_write(sb, cpg->bsrc, h_inode->i_ino, /*ino*/0); ++ /* ignore this error */ ++ ++ if (!err) { ++ force = 0; ++ if (isreg) { ++ force = !!cpg->len; ++ if (cpg->len == -1) ++ force = !!i_size_read(h_inode); ++ } ++ au_fhsm_wrote(sb, cpg->bdst, force); ++ } ++ ++ if (do_dt) ++ au_dtime_revert(&dt); ++ return err; ++} ++ ++static int au_do_ren_after_cpup(struct au_cp_generic *cpg, struct path *h_path) ++{ ++ int err; ++ struct dentry *dentry, *h_dentry, *h_parent, *parent; ++ struct inode *h_dir; ++ aufs_bindex_t bdst; ++ ++ dentry = cpg->dentry; ++ bdst = cpg->bdst; ++ h_dentry = au_h_dptr(dentry, bdst); ++ if (!au_ftest_cpup(cpg->flags, OVERWRITE)) { ++ dget(h_dentry); ++ au_set_h_dptr(dentry, bdst, NULL); ++ err = au_lkup_neg(dentry, bdst, /*wh*/0); ++ if (!err) ++ h_path->dentry = dget(au_h_dptr(dentry, bdst)); ++ au_set_h_dptr(dentry, bdst, h_dentry); ++ } else { ++ err = 0; ++ parent = dget_parent(dentry); ++ h_parent = au_h_dptr(parent, bdst); ++ dput(parent); ++ h_path->dentry = vfsub_lkup_one(&dentry->d_name, h_parent); ++ if (IS_ERR(h_path->dentry)) ++ err = PTR_ERR(h_path->dentry); ++ } ++ if (unlikely(err)) ++ goto out; ++ ++ h_parent = h_dentry->d_parent; /* dir inode is locked */ ++ h_dir = d_inode(h_parent); ++ IMustLock(h_dir); ++ AuDbg("%pd %pd\n", h_dentry, h_path->dentry); ++ /* no delegation since it is just created */ ++ err = vfsub_rename(h_dir, h_dentry, h_dir, h_path, /*delegated*/NULL, ++ /*flags*/0); ++ dput(h_path->dentry); ++ ++out: ++ return err; ++} ++ ++/* ++ * copyup the @dentry from @bsrc to @bdst. ++ * the caller must set the both of lower dentries. ++ * @len is for truncating when it is -1 copyup the entire file. ++ * in link/rename cases, @dst_parent may be different from the real one. ++ * basic->bsrc can be larger than basic->bdst. ++ * aufs doesn't touch the credential so ++ * security_inode_copy_up{,_xattr}() are unnecrssary. ++ */ ++static int au_cpup_single(struct au_cp_generic *cpg, struct dentry *dst_parent) ++{ ++ int err, rerr; ++ aufs_bindex_t old_ibtop; ++ unsigned char isdir, plink; ++ struct dentry *h_src, *h_dst, *h_parent; ++ struct inode *dst_inode, *h_dir, *inode, *delegated, *src_inode; ++ struct super_block *sb; ++ struct au_branch *br; ++ /* to reuduce stack size */ ++ struct { ++ struct au_dtime dt; ++ struct path h_path; ++ struct au_cpup_reg_attr h_src_attr; ++ } *a; ++ ++ err = -ENOMEM; ++ a = kmalloc(sizeof(*a), GFP_NOFS); ++ if (unlikely(!a)) ++ goto out; ++ a->h_src_attr.valid = 0; ++ ++ sb = cpg->dentry->d_sb; ++ br = au_sbr(sb, cpg->bdst); ++ a->h_path.mnt = au_br_mnt(br); ++ h_dst = au_h_dptr(cpg->dentry, cpg->bdst); ++ h_parent = h_dst->d_parent; /* dir inode is locked */ ++ h_dir = d_inode(h_parent); ++ IMustLock(h_dir); ++ ++ h_src = au_h_dptr(cpg->dentry, cpg->bsrc); ++ inode = d_inode(cpg->dentry); ++ ++ if (!dst_parent) ++ dst_parent = dget_parent(cpg->dentry); ++ else ++ dget(dst_parent); ++ ++ plink = !!au_opt_test(au_mntflags(sb), PLINK); ++ dst_inode = au_h_iptr(inode, cpg->bdst); ++ if (dst_inode) { ++ if (unlikely(!plink)) { ++ err = -EIO; ++ AuIOErr("hi%lu(i%lu) exists on b%d " ++ "but plink is disabled\n", ++ dst_inode->i_ino, inode->i_ino, cpg->bdst); ++ goto out_parent; ++ } ++ ++ if (dst_inode->i_nlink) { ++ const int do_dt = au_ftest_cpup(cpg->flags, DTIME); ++ ++ h_src = au_plink_lkup(inode, cpg->bdst); ++ err = PTR_ERR(h_src); ++ if (IS_ERR(h_src)) ++ goto out_parent; ++ if (unlikely(d_is_negative(h_src))) { ++ err = -EIO; ++ AuIOErr("i%lu exists on b%d " ++ "but not pseudo-linked\n", ++ inode->i_ino, cpg->bdst); ++ dput(h_src); ++ goto out_parent; ++ } ++ ++ if (do_dt) { ++ a->h_path.dentry = h_parent; ++ au_dtime_store(&a->dt, dst_parent, &a->h_path); ++ } ++ ++ a->h_path.dentry = h_dst; ++ delegated = NULL; ++ err = vfsub_link(h_src, h_dir, &a->h_path, &delegated); ++ if (!err && au_ftest_cpup(cpg->flags, RENAME)) ++ err = au_do_ren_after_cpup(cpg, &a->h_path); ++ if (do_dt) ++ au_dtime_revert(&a->dt); ++ if (unlikely(err == -EWOULDBLOCK)) { ++ pr_warn("cannot retry for NFSv4 delegation" ++ " for an internal link\n"); ++ iput(delegated); ++ } ++ dput(h_src); ++ goto out_parent; ++ } else ++ /* todo: cpup_wh_file? */ ++ /* udba work */ ++ au_update_ibrange(inode, /*do_put_zero*/1); ++ } ++ ++ isdir = S_ISDIR(inode->i_mode); ++ old_ibtop = au_ibtop(inode); ++ err = cpup_entry(cpg, dst_parent, &a->h_src_attr); ++ if (unlikely(err)) ++ goto out_rev; ++ dst_inode = d_inode(h_dst); ++ inode_lock_nested(dst_inode, AuLsc_I_CHILD2); ++ /* todo: necessary? */ ++ /* au_pin_hdir_unlock(cpg->pin); */ ++ ++ err = cpup_iattr(cpg->dentry, cpg->bdst, h_src, &a->h_src_attr); ++ if (unlikely(err)) { ++ /* todo: necessary? */ ++ /* au_pin_hdir_relock(cpg->pin); */ /* ignore an error */ ++ inode_unlock(dst_inode); ++ goto out_rev; ++ } ++ ++ if (cpg->bdst < old_ibtop) { ++ if (S_ISREG(inode->i_mode)) { ++ err = au_dy_iaop(inode, cpg->bdst, dst_inode); ++ if (unlikely(err)) { ++ /* ignore an error */ ++ /* au_pin_hdir_relock(cpg->pin); */ ++ inode_unlock(dst_inode); ++ goto out_rev; ++ } ++ } ++ au_set_ibtop(inode, cpg->bdst); ++ } else ++ au_set_ibbot(inode, cpg->bdst); ++ au_set_h_iptr(inode, cpg->bdst, au_igrab(dst_inode), ++ au_hi_flags(inode, isdir)); ++ ++ /* todo: necessary? */ ++ /* err = au_pin_hdir_relock(cpg->pin); */ ++ inode_unlock(dst_inode); ++ if (unlikely(err)) ++ goto out_rev; ++ ++ src_inode = d_inode(h_src); ++ if (!isdir ++ && (src_inode->i_nlink > 1 ++ || src_inode->i_state & I_LINKABLE) ++ && plink) ++ au_plink_append(inode, cpg->bdst, h_dst); ++ ++ if (au_ftest_cpup(cpg->flags, RENAME)) { ++ a->h_path.dentry = h_dst; ++ err = au_do_ren_after_cpup(cpg, &a->h_path); ++ } ++ if (!err) ++ goto out_parent; /* success */ ++ ++ /* revert */ ++out_rev: ++ a->h_path.dentry = h_parent; ++ au_dtime_store(&a->dt, dst_parent, &a->h_path); ++ a->h_path.dentry = h_dst; ++ rerr = 0; ++ if (d_is_positive(h_dst)) { ++ if (!isdir) { ++ /* no delegation since it is just created */ ++ rerr = vfsub_unlink(h_dir, &a->h_path, ++ /*delegated*/NULL, /*force*/0); ++ } else ++ rerr = vfsub_rmdir(h_dir, &a->h_path); ++ } ++ au_dtime_revert(&a->dt); ++ if (rerr) { ++ AuIOErr("failed removing broken entry(%d, %d)\n", err, rerr); ++ err = -EIO; ++ } ++out_parent: ++ dput(dst_parent); ++ kfree(a); ++out: ++ return err; ++} ++ ++#if 0 /* reserved */ ++struct au_cpup_single_args { ++ int *errp; ++ struct au_cp_generic *cpg; ++ struct dentry *dst_parent; ++}; ++ ++static void au_call_cpup_single(void *args) ++{ ++ struct au_cpup_single_args *a = args; ++ ++ au_pin_hdir_acquire_nest(a->cpg->pin); ++ *a->errp = au_cpup_single(a->cpg, a->dst_parent); ++ au_pin_hdir_release(a->cpg->pin); ++} ++#endif ++ ++/* ++ * prevent SIGXFSZ in copy-up. ++ * testing CAP_MKNOD is for generic fs, ++ * but CAP_FSETID is for xfs only, currently. ++ */ ++static int au_cpup_sio_test(struct au_pin *pin, umode_t mode) ++{ ++ int do_sio; ++ struct super_block *sb; ++ struct inode *h_dir; ++ ++ do_sio = 0; ++ sb = au_pinned_parent(pin)->d_sb; ++ if (!au_wkq_test() ++ && (!au_sbi(sb)->si_plink_maint_pid ++ || au_plink_maint(sb, AuLock_NOPLM))) { ++ switch (mode & S_IFMT) { ++ case S_IFREG: ++ /* no condition about RLIMIT_FSIZE and the file size */ ++ do_sio = 1; ++ break; ++ case S_IFCHR: ++ case S_IFBLK: ++ do_sio = !capable(CAP_MKNOD); ++ break; ++ } ++ if (!do_sio) ++ do_sio = ((mode & (S_ISUID | S_ISGID)) ++ && !capable(CAP_FSETID)); ++ /* this workaround may be removed in the future */ ++ if (!do_sio) { ++ h_dir = au_pinned_h_dir(pin); ++ do_sio = h_dir->i_mode & S_ISVTX; ++ } ++ } ++ ++ return do_sio; ++} ++ ++#if 0 /* reserved */ ++int au_sio_cpup_single(struct au_cp_generic *cpg, struct dentry *dst_parent) ++{ ++ int err, wkq_err; ++ struct dentry *h_dentry; ++ ++ h_dentry = au_h_dptr(cpg->dentry, cpg->bsrc); ++ if (!au_cpup_sio_test(pin, d_inode(h_dentry)->i_mode)) ++ err = au_cpup_single(cpg, dst_parent); ++ else { ++ struct au_cpup_single_args args = { ++ .errp = &err, ++ .cpg = cpg, ++ .dst_parent = dst_parent ++ }; ++ wkq_err = au_wkq_wait(au_call_cpup_single, &args); ++ if (unlikely(wkq_err)) ++ err = wkq_err; ++ } ++ ++ return err; ++} ++#endif ++ ++/* ++ * copyup the @dentry from the first active lower branch to @bdst, ++ * using au_cpup_single(). ++ */ ++static int au_cpup_simple(struct au_cp_generic *cpg) ++{ ++ int err; ++ unsigned int flags_orig; ++ struct dentry *dentry; ++ ++ AuDebugOn(cpg->bsrc < 0); ++ ++ dentry = cpg->dentry; ++ DiMustWriteLock(dentry); ++ ++ err = au_lkup_neg(dentry, cpg->bdst, /*wh*/1); ++ if (!err) { ++ flags_orig = cpg->flags; ++ au_fset_cpup(cpg->flags, RENAME); ++ err = au_cpup_single(cpg, NULL); ++ cpg->flags = flags_orig; ++ if (!err) ++ return 0; /* success */ ++ ++ /* revert */ ++ au_set_h_dptr(dentry, cpg->bdst, NULL); ++ au_set_dbtop(dentry, cpg->bsrc); ++ } ++ ++ return err; ++} ++ ++struct au_cpup_simple_args { ++ int *errp; ++ struct au_cp_generic *cpg; ++}; ++ ++static void au_call_cpup_simple(void *args) ++{ ++ struct au_cpup_simple_args *a = args; ++ ++ au_pin_hdir_acquire_nest(a->cpg->pin); ++ *a->errp = au_cpup_simple(a->cpg); ++ au_pin_hdir_release(a->cpg->pin); ++} ++ ++static int au_do_sio_cpup_simple(struct au_cp_generic *cpg) ++{ ++ int err, wkq_err; ++ struct dentry *dentry, *parent; ++ struct file *h_file; ++ struct inode *h_dir; ++ ++ dentry = cpg->dentry; ++ h_file = NULL; ++ if (au_ftest_cpup(cpg->flags, HOPEN)) { ++ AuDebugOn(cpg->bsrc < 0); ++ h_file = au_h_open_pre(dentry, cpg->bsrc, /*force_wr*/0); ++ err = PTR_ERR(h_file); ++ if (IS_ERR(h_file)) ++ goto out; ++ } ++ ++ parent = dget_parent(dentry); ++ h_dir = au_h_iptr(d_inode(parent), cpg->bdst); ++ if (!au_test_h_perm_sio(h_dir, MAY_EXEC | MAY_WRITE) ++ && !au_cpup_sio_test(cpg->pin, d_inode(dentry)->i_mode)) ++ err = au_cpup_simple(cpg); ++ else { ++ struct au_cpup_simple_args args = { ++ .errp = &err, ++ .cpg = cpg ++ }; ++ wkq_err = au_wkq_wait(au_call_cpup_simple, &args); ++ if (unlikely(wkq_err)) ++ err = wkq_err; ++ } ++ ++ dput(parent); ++ if (h_file) ++ au_h_open_post(dentry, cpg->bsrc, h_file); ++ ++out: ++ return err; ++} ++ ++int au_sio_cpup_simple(struct au_cp_generic *cpg) ++{ ++ aufs_bindex_t bsrc, bbot; ++ struct dentry *dentry, *h_dentry; ++ ++ if (cpg->bsrc < 0) { ++ dentry = cpg->dentry; ++ bbot = au_dbbot(dentry); ++ for (bsrc = cpg->bdst + 1; bsrc <= bbot; bsrc++) { ++ h_dentry = au_h_dptr(dentry, bsrc); ++ if (h_dentry) { ++ AuDebugOn(d_is_negative(h_dentry)); ++ break; ++ } ++ } ++ AuDebugOn(bsrc > bbot); ++ cpg->bsrc = bsrc; ++ } ++ AuDebugOn(cpg->bsrc <= cpg->bdst); ++ return au_do_sio_cpup_simple(cpg); ++} ++ ++int au_sio_cpdown_simple(struct au_cp_generic *cpg) ++{ ++ AuDebugOn(cpg->bdst <= cpg->bsrc); ++ return au_do_sio_cpup_simple(cpg); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* ++ * copyup the deleted file for writing. ++ */ ++static int au_do_cpup_wh(struct au_cp_generic *cpg, struct dentry *wh_dentry, ++ struct file *file) ++{ ++ int err; ++ unsigned int flags_orig; ++ aufs_bindex_t bsrc_orig; ++ struct au_dinfo *dinfo; ++ struct { ++ struct au_hdentry *hd; ++ struct dentry *h_dentry; ++ } hdst, hsrc; ++ ++ dinfo = au_di(cpg->dentry); ++ AuRwMustWriteLock(&dinfo->di_rwsem); ++ ++ bsrc_orig = cpg->bsrc; ++ cpg->bsrc = dinfo->di_btop; ++ hdst.hd = au_hdentry(dinfo, cpg->bdst); ++ hdst.h_dentry = hdst.hd->hd_dentry; ++ hdst.hd->hd_dentry = wh_dentry; ++ dinfo->di_btop = cpg->bdst; ++ ++ hsrc.h_dentry = NULL; ++ if (file) { ++ hsrc.hd = au_hdentry(dinfo, cpg->bsrc); ++ hsrc.h_dentry = hsrc.hd->hd_dentry; ++ hsrc.hd->hd_dentry = au_hf_top(file)->f_path.dentry; ++ } ++ flags_orig = cpg->flags; ++ cpg->flags = !AuCpup_DTIME; ++ err = au_cpup_single(cpg, /*h_parent*/NULL); ++ cpg->flags = flags_orig; ++ if (file) { ++ if (!err) ++ err = au_reopen_nondir(file); ++ hsrc.hd->hd_dentry = hsrc.h_dentry; ++ } ++ hdst.hd->hd_dentry = hdst.h_dentry; ++ dinfo->di_btop = cpg->bsrc; ++ cpg->bsrc = bsrc_orig; ++ ++ return err; ++} ++ ++static int au_cpup_wh(struct au_cp_generic *cpg, struct file *file) ++{ ++ int err; ++ aufs_bindex_t bdst; ++ struct au_dtime dt; ++ struct dentry *dentry, *parent, *h_parent, *wh_dentry; ++ struct au_branch *br; ++ struct path h_path; ++ ++ dentry = cpg->dentry; ++ bdst = cpg->bdst; ++ br = au_sbr(dentry->d_sb, bdst); ++ parent = dget_parent(dentry); ++ h_parent = au_h_dptr(parent, bdst); ++ wh_dentry = au_whtmp_lkup(h_parent, br, &dentry->d_name); ++ err = PTR_ERR(wh_dentry); ++ if (IS_ERR(wh_dentry)) ++ goto out; ++ ++ h_path.dentry = h_parent; ++ h_path.mnt = au_br_mnt(br); ++ au_dtime_store(&dt, parent, &h_path); ++ err = au_do_cpup_wh(cpg, wh_dentry, file); ++ if (unlikely(err)) ++ goto out_wh; ++ ++ dget(wh_dentry); ++ h_path.dentry = wh_dentry; ++ if (!d_is_dir(wh_dentry)) { ++ /* no delegation since it is just created */ ++ err = vfsub_unlink(d_inode(h_parent), &h_path, ++ /*delegated*/NULL, /*force*/0); ++ } else ++ err = vfsub_rmdir(d_inode(h_parent), &h_path); ++ if (unlikely(err)) { ++ AuIOErr("failed remove copied-up tmp file %pd(%d)\n", ++ wh_dentry, err); ++ err = -EIO; ++ } ++ au_dtime_revert(&dt); ++ au_set_hi_wh(d_inode(dentry), bdst, wh_dentry); ++ ++out_wh: ++ dput(wh_dentry); ++out: ++ dput(parent); ++ return err; ++} ++ ++struct au_cpup_wh_args { ++ int *errp; ++ struct au_cp_generic *cpg; ++ struct file *file; ++}; ++ ++static void au_call_cpup_wh(void *args) ++{ ++ struct au_cpup_wh_args *a = args; ++ ++ au_pin_hdir_acquire_nest(a->cpg->pin); ++ *a->errp = au_cpup_wh(a->cpg, a->file); ++ au_pin_hdir_release(a->cpg->pin); ++} ++ ++int au_sio_cpup_wh(struct au_cp_generic *cpg, struct file *file) ++{ ++ int err, wkq_err; ++ aufs_bindex_t bdst; ++ struct dentry *dentry, *parent, *h_orph, *h_parent; ++ struct inode *dir, *h_dir, *h_tmpdir; ++ struct au_wbr *wbr; ++ struct au_pin wh_pin, *pin_orig; ++ ++ dentry = cpg->dentry; ++ bdst = cpg->bdst; ++ parent = dget_parent(dentry); ++ dir = d_inode(parent); ++ h_orph = NULL; ++ h_parent = NULL; ++ h_dir = au_igrab(au_h_iptr(dir, bdst)); ++ h_tmpdir = h_dir; ++ pin_orig = NULL; ++ if (!h_dir->i_nlink) { ++ wbr = au_sbr(dentry->d_sb, bdst)->br_wbr; ++ h_orph = wbr->wbr_orph; ++ ++ h_parent = dget(au_h_dptr(parent, bdst)); ++ au_set_h_dptr(parent, bdst, dget(h_orph)); ++ h_tmpdir = d_inode(h_orph); ++ au_set_h_iptr(dir, bdst, au_igrab(h_tmpdir), /*flags*/0); ++ ++ inode_lock_nested(h_tmpdir, AuLsc_I_PARENT3); ++ /* todo: au_h_open_pre()? */ ++ ++ pin_orig = cpg->pin; ++ au_pin_init(&wh_pin, dentry, bdst, AuLsc_DI_PARENT, ++ AuLsc_I_PARENT3, cpg->pin->udba, AuPin_DI_LOCKED); ++ cpg->pin = &wh_pin; ++ } ++ ++ if (!au_test_h_perm_sio(h_tmpdir, MAY_EXEC | MAY_WRITE) ++ && !au_cpup_sio_test(cpg->pin, d_inode(dentry)->i_mode)) ++ err = au_cpup_wh(cpg, file); ++ else { ++ struct au_cpup_wh_args args = { ++ .errp = &err, ++ .cpg = cpg, ++ .file = file ++ }; ++ wkq_err = au_wkq_wait(au_call_cpup_wh, &args); ++ if (unlikely(wkq_err)) ++ err = wkq_err; ++ } ++ ++ if (h_orph) { ++ inode_unlock(h_tmpdir); ++ /* todo: au_h_open_post()? */ ++ au_set_h_iptr(dir, bdst, au_igrab(h_dir), /*flags*/0); ++ au_set_h_dptr(parent, bdst, h_parent); ++ AuDebugOn(!pin_orig); ++ cpg->pin = pin_orig; ++ } ++ iput(h_dir); ++ dput(parent); ++ ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* ++ * generic routine for both of copy-up and copy-down. ++ */ ++/* cf. revalidate function in file.c */ ++int au_cp_dirs(struct dentry *dentry, aufs_bindex_t bdst, ++ int (*cp)(struct dentry *dentry, aufs_bindex_t bdst, ++ struct au_pin *pin, ++ struct dentry *h_parent, void *arg), ++ void *arg) ++{ ++ int err; ++ struct au_pin pin; ++ struct dentry *d, *parent, *h_parent, *real_parent, *h_dentry; ++ ++ err = 0; ++ parent = dget_parent(dentry); ++ if (IS_ROOT(parent)) ++ goto out; ++ ++ au_pin_init(&pin, dentry, bdst, AuLsc_DI_PARENT2, AuLsc_I_PARENT2, ++ au_opt_udba(dentry->d_sb), AuPin_MNT_WRITE); ++ ++ /* do not use au_dpage */ ++ real_parent = parent; ++ while (1) { ++ dput(parent); ++ parent = dget_parent(dentry); ++ h_parent = au_h_dptr(parent, bdst); ++ if (h_parent) ++ goto out; /* success */ ++ ++ /* find top dir which is necessary to cpup */ ++ do { ++ d = parent; ++ dput(parent); ++ parent = dget_parent(d); ++ di_read_lock_parent3(parent, !AuLock_IR); ++ h_parent = au_h_dptr(parent, bdst); ++ di_read_unlock(parent, !AuLock_IR); ++ } while (!h_parent); ++ ++ if (d != real_parent) ++ di_write_lock_child3(d); ++ ++ /* somebody else might create while we were sleeping */ ++ h_dentry = au_h_dptr(d, bdst); ++ if (!h_dentry || d_is_negative(h_dentry)) { ++ if (h_dentry) ++ au_update_dbtop(d); ++ ++ au_pin_set_dentry(&pin, d); ++ err = au_do_pin(&pin); ++ if (!err) { ++ err = cp(d, bdst, &pin, h_parent, arg); ++ au_unpin(&pin); ++ } ++ } ++ ++ if (d != real_parent) ++ di_write_unlock(d); ++ if (unlikely(err)) ++ break; ++ } ++ ++out: ++ dput(parent); ++ return err; ++} ++ ++static int au_cpup_dir(struct dentry *dentry, aufs_bindex_t bdst, ++ struct au_pin *pin, ++ struct dentry *h_parent __maybe_unused, ++ void *arg __maybe_unused) ++{ ++ struct au_cp_generic cpg = { ++ .dentry = dentry, ++ .bdst = bdst, ++ .bsrc = -1, ++ .len = 0, ++ .pin = pin, ++ .flags = AuCpup_DTIME ++ }; ++ return au_sio_cpup_simple(&cpg); ++} ++ ++int au_cpup_dirs(struct dentry *dentry, aufs_bindex_t bdst) ++{ ++ return au_cp_dirs(dentry, bdst, au_cpup_dir, NULL); ++} ++ ++int au_test_and_cpup_dirs(struct dentry *dentry, aufs_bindex_t bdst) ++{ ++ int err; ++ struct dentry *parent; ++ struct inode *dir; ++ ++ parent = dget_parent(dentry); ++ dir = d_inode(parent); ++ err = 0; ++ if (au_h_iptr(dir, bdst)) ++ goto out; ++ ++ di_read_unlock(parent, AuLock_IR); ++ di_write_lock_parent(parent); ++ /* someone else might change our inode while we were sleeping */ ++ if (!au_h_iptr(dir, bdst)) ++ err = au_cpup_dirs(dentry, bdst); ++ di_downgrade_lock(parent, AuLock_IR); ++ ++out: ++ dput(parent); ++ return err; ++} +diff -Naur null/fs/aufs/cpup.h linux-4.15/fs/aufs/cpup.h +--- /dev/null ++++ linux-4.15/fs/aufs/cpup.h 2018-02-25 02:38:09.198737468 +0100 +@@ -0,0 +1,99 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * copy-up/down functions ++ */ ++ ++#ifndef __AUFS_CPUP_H__ ++#define __AUFS_CPUP_H__ ++ ++#ifdef __KERNEL__ ++ ++#include ++ ++struct inode; ++struct file; ++struct au_pin; ++ ++void au_cpup_attr_flags(struct inode *dst, unsigned int iflags); ++void au_cpup_attr_timesizes(struct inode *inode); ++void au_cpup_attr_nlink(struct inode *inode, int force); ++void au_cpup_attr_changeable(struct inode *inode); ++void au_cpup_igen(struct inode *inode, struct inode *h_inode); ++void au_cpup_attr_all(struct inode *inode, int force); ++ ++/* ---------------------------------------------------------------------- */ ++ ++struct au_cp_generic { ++ struct dentry *dentry; ++ aufs_bindex_t bdst, bsrc; ++ loff_t len; ++ struct au_pin *pin; ++ unsigned int flags; ++}; ++ ++/* cpup flags */ ++#define AuCpup_DTIME 1 /* do dtime_store/revert */ ++#define AuCpup_KEEPLINO (1 << 1) /* do not clear the lower xino, ++ for link(2) */ ++#define AuCpup_RENAME (1 << 2) /* rename after cpup */ ++#define AuCpup_HOPEN (1 << 3) /* call h_open_pre/post() in ++ cpup */ ++#define AuCpup_OVERWRITE (1 << 4) /* allow overwriting the ++ existing entry */ ++#define AuCpup_RWDST (1 << 5) /* force write target even if ++ the branch is marked as RO */ ++ ++#ifndef CONFIG_AUFS_BR_HFSPLUS ++#undef AuCpup_HOPEN ++#define AuCpup_HOPEN 0 ++#endif ++ ++#define au_ftest_cpup(flags, name) ((flags) & AuCpup_##name) ++#define au_fset_cpup(flags, name) \ ++ do { (flags) |= AuCpup_##name; } while (0) ++#define au_fclr_cpup(flags, name) \ ++ do { (flags) &= ~AuCpup_##name; } while (0) ++ ++int au_copy_file(struct file *dst, struct file *src, loff_t len); ++int au_sio_cpup_simple(struct au_cp_generic *cpg); ++int au_sio_cpdown_simple(struct au_cp_generic *cpg); ++int au_sio_cpup_wh(struct au_cp_generic *cpg, struct file *file); ++ ++int au_cp_dirs(struct dentry *dentry, aufs_bindex_t bdst, ++ int (*cp)(struct dentry *dentry, aufs_bindex_t bdst, ++ struct au_pin *pin, ++ struct dentry *h_parent, void *arg), ++ void *arg); ++int au_cpup_dirs(struct dentry *dentry, aufs_bindex_t bdst); ++int au_test_and_cpup_dirs(struct dentry *dentry, aufs_bindex_t bdst); ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* keep timestamps when copyup */ ++struct au_dtime { ++ struct dentry *dt_dentry; ++ struct path dt_h_path; ++ struct timespec dt_atime, dt_mtime; ++}; ++void au_dtime_store(struct au_dtime *dt, struct dentry *dentry, ++ struct path *h_path); ++void au_dtime_revert(struct au_dtime *dt); ++ ++#endif /* __KERNEL__ */ ++#endif /* __AUFS_CPUP_H__ */ +diff -Naur null/fs/aufs/dbgaufs.c linux-4.15/fs/aufs/dbgaufs.c +--- /dev/null ++++ linux-4.15/fs/aufs/dbgaufs.c 2018-02-25 02:38:09.198737468 +0100 +@@ -0,0 +1,437 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * debugfs interface ++ */ ++ ++#include ++#include "aufs.h" ++ ++#ifndef CONFIG_SYSFS ++#error DEBUG_FS depends upon SYSFS ++#endif ++ ++static struct dentry *dbgaufs; ++static const mode_t dbgaufs_mode = S_IRUSR | S_IRGRP | S_IROTH; ++ ++/* 20 is max digits length of ulong 64 */ ++struct dbgaufs_arg { ++ int n; ++ char a[20 * 4]; ++}; ++ ++/* ++ * common function for all XINO files ++ */ ++static int dbgaufs_xi_release(struct inode *inode __maybe_unused, ++ struct file *file) ++{ ++ kfree(file->private_data); ++ return 0; ++} ++ ++static int dbgaufs_xi_open(struct file *xf, struct file *file, int do_fcnt) ++{ ++ int err; ++ struct kstat st; ++ struct dbgaufs_arg *p; ++ ++ err = -ENOMEM; ++ p = kmalloc(sizeof(*p), GFP_NOFS); ++ if (unlikely(!p)) ++ goto out; ++ ++ err = 0; ++ p->n = 0; ++ file->private_data = p; ++ if (!xf) ++ goto out; ++ ++ err = vfsub_getattr(&xf->f_path, &st); ++ if (!err) { ++ if (do_fcnt) ++ p->n = snprintf ++ (p->a, sizeof(p->a), "%ld, %llux%u %lld\n", ++ (long)file_count(xf), st.blocks, st.blksize, ++ (long long)st.size); ++ else ++ p->n = snprintf(p->a, sizeof(p->a), "%llux%u %lld\n", ++ st.blocks, st.blksize, ++ (long long)st.size); ++ AuDebugOn(p->n >= sizeof(p->a)); ++ } else { ++ p->n = snprintf(p->a, sizeof(p->a), "err %d\n", err); ++ err = 0; ++ } ++ ++out: ++ return err; ++ ++} ++ ++static ssize_t dbgaufs_xi_read(struct file *file, char __user *buf, ++ size_t count, loff_t *ppos) ++{ ++ struct dbgaufs_arg *p; ++ ++ p = file->private_data; ++ return simple_read_from_buffer(buf, count, ppos, p->a, p->n); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++struct dbgaufs_plink_arg { ++ int n; ++ char a[]; ++}; ++ ++static int dbgaufs_plink_release(struct inode *inode __maybe_unused, ++ struct file *file) ++{ ++ free_page((unsigned long)file->private_data); ++ return 0; ++} ++ ++static int dbgaufs_plink_open(struct inode *inode, struct file *file) ++{ ++ int err, i, limit; ++ unsigned long n, sum; ++ struct dbgaufs_plink_arg *p; ++ struct au_sbinfo *sbinfo; ++ struct super_block *sb; ++ struct hlist_bl_head *hbl; ++ ++ err = -ENOMEM; ++ p = (void *)get_zeroed_page(GFP_NOFS); ++ if (unlikely(!p)) ++ goto out; ++ ++ err = -EFBIG; ++ sbinfo = inode->i_private; ++ sb = sbinfo->si_sb; ++ si_noflush_read_lock(sb); ++ if (au_opt_test(au_mntflags(sb), PLINK)) { ++ limit = PAGE_SIZE - sizeof(p->n); ++ ++ /* the number of buckets */ ++ n = snprintf(p->a + p->n, limit, "%d\n", AuPlink_NHASH); ++ p->n += n; ++ limit -= n; ++ ++ sum = 0; ++ for (i = 0, hbl = sbinfo->si_plink; i < AuPlink_NHASH; ++ i++, hbl++) { ++ n = au_hbl_count(hbl); ++ sum += n; ++ ++ n = snprintf(p->a + p->n, limit, "%lu ", n); ++ p->n += n; ++ limit -= n; ++ if (unlikely(limit <= 0)) ++ goto out_free; ++ } ++ p->a[p->n - 1] = '\n'; ++ ++ /* the sum of plinks */ ++ n = snprintf(p->a + p->n, limit, "%lu\n", sum); ++ p->n += n; ++ limit -= n; ++ if (unlikely(limit <= 0)) ++ goto out_free; ++ } else { ++#define str "1\n0\n0\n" ++ p->n = sizeof(str) - 1; ++ strcpy(p->a, str); ++#undef str ++ } ++ si_read_unlock(sb); ++ ++ err = 0; ++ file->private_data = p; ++ goto out; /* success */ ++ ++out_free: ++ free_page((unsigned long)p); ++out: ++ return err; ++} ++ ++static ssize_t dbgaufs_plink_read(struct file *file, char __user *buf, ++ size_t count, loff_t *ppos) ++{ ++ struct dbgaufs_plink_arg *p; ++ ++ p = file->private_data; ++ return simple_read_from_buffer(buf, count, ppos, p->a, p->n); ++} ++ ++static const struct file_operations dbgaufs_plink_fop = { ++ .owner = THIS_MODULE, ++ .open = dbgaufs_plink_open, ++ .release = dbgaufs_plink_release, ++ .read = dbgaufs_plink_read ++}; ++ ++/* ---------------------------------------------------------------------- */ ++ ++static int dbgaufs_xib_open(struct inode *inode, struct file *file) ++{ ++ int err; ++ struct au_sbinfo *sbinfo; ++ struct super_block *sb; ++ ++ sbinfo = inode->i_private; ++ sb = sbinfo->si_sb; ++ si_noflush_read_lock(sb); ++ err = dbgaufs_xi_open(sbinfo->si_xib, file, /*do_fcnt*/0); ++ si_read_unlock(sb); ++ return err; ++} ++ ++static const struct file_operations dbgaufs_xib_fop = { ++ .owner = THIS_MODULE, ++ .open = dbgaufs_xib_open, ++ .release = dbgaufs_xi_release, ++ .read = dbgaufs_xi_read ++}; ++ ++/* ---------------------------------------------------------------------- */ ++ ++#define DbgaufsXi_PREFIX "xi" ++ ++static int dbgaufs_xino_open(struct inode *inode, struct file *file) ++{ ++ int err; ++ long l; ++ struct au_sbinfo *sbinfo; ++ struct super_block *sb; ++ struct file *xf; ++ struct qstr *name; ++ ++ err = -ENOENT; ++ xf = NULL; ++ name = &file->f_path.dentry->d_name; ++ if (unlikely(name->len < sizeof(DbgaufsXi_PREFIX) ++ || memcmp(name->name, DbgaufsXi_PREFIX, ++ sizeof(DbgaufsXi_PREFIX) - 1))) ++ goto out; ++ err = kstrtol(name->name + sizeof(DbgaufsXi_PREFIX) - 1, 10, &l); ++ if (unlikely(err)) ++ goto out; ++ ++ sbinfo = inode->i_private; ++ sb = sbinfo->si_sb; ++ si_noflush_read_lock(sb); ++ if (l <= au_sbbot(sb)) { ++ xf = au_sbr(sb, (aufs_bindex_t)l)->br_xino.xi_file; ++ err = dbgaufs_xi_open(xf, file, /*do_fcnt*/1); ++ } else ++ err = -ENOENT; ++ si_read_unlock(sb); ++ ++out: ++ return err; ++} ++ ++static const struct file_operations dbgaufs_xino_fop = { ++ .owner = THIS_MODULE, ++ .open = dbgaufs_xino_open, ++ .release = dbgaufs_xi_release, ++ .read = dbgaufs_xi_read ++}; ++ ++void dbgaufs_brs_del(struct super_block *sb, aufs_bindex_t bindex) ++{ ++ aufs_bindex_t bbot; ++ struct au_branch *br; ++ struct au_xino_file *xi; ++ ++ if (!au_sbi(sb)->si_dbgaufs) ++ return; ++ ++ bbot = au_sbbot(sb); ++ for (; bindex <= bbot; bindex++) { ++ br = au_sbr(sb, bindex); ++ xi = &br->br_xino; ++ /* debugfs acquires the parent i_mutex */ ++ lockdep_off(); ++ debugfs_remove(xi->xi_dbgaufs); ++ lockdep_on(); ++ xi->xi_dbgaufs = NULL; ++ } ++} ++ ++void dbgaufs_brs_add(struct super_block *sb, aufs_bindex_t bindex) ++{ ++ struct au_sbinfo *sbinfo; ++ struct dentry *parent; ++ struct au_branch *br; ++ struct au_xino_file *xi; ++ aufs_bindex_t bbot; ++ char name[sizeof(DbgaufsXi_PREFIX) + 5]; /* "xi" bindex NULL */ ++ ++ sbinfo = au_sbi(sb); ++ parent = sbinfo->si_dbgaufs; ++ if (!parent) ++ return; ++ ++ bbot = au_sbbot(sb); ++ for (; bindex <= bbot; bindex++) { ++ snprintf(name, sizeof(name), DbgaufsXi_PREFIX "%d", bindex); ++ br = au_sbr(sb, bindex); ++ xi = &br->br_xino; ++ AuDebugOn(xi->xi_dbgaufs); ++ /* debugfs acquires the parent i_mutex */ ++ lockdep_off(); ++ xi->xi_dbgaufs = debugfs_create_file(name, dbgaufs_mode, parent, ++ sbinfo, &dbgaufs_xino_fop); ++ lockdep_on(); ++ /* ignore an error */ ++ if (unlikely(!xi->xi_dbgaufs)) ++ AuWarn1("failed %s under debugfs\n", name); ++ } ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++#ifdef CONFIG_AUFS_EXPORT ++static int dbgaufs_xigen_open(struct inode *inode, struct file *file) ++{ ++ int err; ++ struct au_sbinfo *sbinfo; ++ struct super_block *sb; ++ ++ sbinfo = inode->i_private; ++ sb = sbinfo->si_sb; ++ si_noflush_read_lock(sb); ++ err = dbgaufs_xi_open(sbinfo->si_xigen, file, /*do_fcnt*/0); ++ si_read_unlock(sb); ++ return err; ++} ++ ++static const struct file_operations dbgaufs_xigen_fop = { ++ .owner = THIS_MODULE, ++ .open = dbgaufs_xigen_open, ++ .release = dbgaufs_xi_release, ++ .read = dbgaufs_xi_read ++}; ++ ++static int dbgaufs_xigen_init(struct au_sbinfo *sbinfo) ++{ ++ int err; ++ ++ /* ++ * This function is a dynamic '__init' function actually, ++ * so the tiny check for si_rwsem is unnecessary. ++ */ ++ /* AuRwMustWriteLock(&sbinfo->si_rwsem); */ ++ ++ err = -EIO; ++ sbinfo->si_dbgaufs_xigen = debugfs_create_file ++ ("xigen", dbgaufs_mode, sbinfo->si_dbgaufs, sbinfo, ++ &dbgaufs_xigen_fop); ++ if (sbinfo->si_dbgaufs_xigen) ++ err = 0; ++ ++ return err; ++} ++#else ++static int dbgaufs_xigen_init(struct au_sbinfo *sbinfo) ++{ ++ return 0; ++} ++#endif /* CONFIG_AUFS_EXPORT */ ++ ++/* ---------------------------------------------------------------------- */ ++ ++void dbgaufs_si_fin(struct au_sbinfo *sbinfo) ++{ ++ /* ++ * This function is a dynamic '__fin' function actually, ++ * so the tiny check for si_rwsem is unnecessary. ++ */ ++ /* AuRwMustWriteLock(&sbinfo->si_rwsem); */ ++ ++ debugfs_remove_recursive(sbinfo->si_dbgaufs); ++ sbinfo->si_dbgaufs = NULL; ++ kobject_put(&sbinfo->si_kobj); ++} ++ ++int dbgaufs_si_init(struct au_sbinfo *sbinfo) ++{ ++ int err; ++ char name[SysaufsSiNameLen]; ++ ++ /* ++ * This function is a dynamic '__init' function actually, ++ * so the tiny check for si_rwsem is unnecessary. ++ */ ++ /* AuRwMustWriteLock(&sbinfo->si_rwsem); */ ++ ++ err = -ENOENT; ++ if (!dbgaufs) { ++ AuErr1("/debug/aufs is uninitialized\n"); ++ goto out; ++ } ++ ++ err = -EIO; ++ sysaufs_name(sbinfo, name); ++ sbinfo->si_dbgaufs = debugfs_create_dir(name, dbgaufs); ++ if (unlikely(!sbinfo->si_dbgaufs)) ++ goto out; ++ kobject_get(&sbinfo->si_kobj); ++ ++ sbinfo->si_dbgaufs_xib = debugfs_create_file ++ ("xib", dbgaufs_mode, sbinfo->si_dbgaufs, sbinfo, ++ &dbgaufs_xib_fop); ++ if (unlikely(!sbinfo->si_dbgaufs_xib)) ++ goto out_dir; ++ ++ sbinfo->si_dbgaufs_plink = debugfs_create_file ++ ("plink", dbgaufs_mode, sbinfo->si_dbgaufs, sbinfo, ++ &dbgaufs_plink_fop); ++ if (unlikely(!sbinfo->si_dbgaufs_plink)) ++ goto out_dir; ++ ++ err = dbgaufs_xigen_init(sbinfo); ++ if (!err) ++ goto out; /* success */ ++ ++out_dir: ++ dbgaufs_si_fin(sbinfo); ++out: ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++void dbgaufs_fin(void) ++{ ++ debugfs_remove(dbgaufs); ++} ++ ++int __init dbgaufs_init(void) ++{ ++ int err; ++ ++ err = -EIO; ++ dbgaufs = debugfs_create_dir(AUFS_NAME, NULL); ++ if (dbgaufs) ++ err = 0; ++ return err; ++} +diff -Naur null/fs/aufs/dbgaufs.h linux-4.15/fs/aufs/dbgaufs.h +--- /dev/null ++++ linux-4.15/fs/aufs/dbgaufs.h 2018-02-25 02:38:09.198737468 +0100 +@@ -0,0 +1,48 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * debugfs interface ++ */ ++ ++#ifndef __DBGAUFS_H__ ++#define __DBGAUFS_H__ ++ ++#ifdef __KERNEL__ ++ ++struct super_block; ++struct au_sbinfo; ++ ++#ifdef CONFIG_DEBUG_FS ++/* dbgaufs.c */ ++void dbgaufs_brs_del(struct super_block *sb, aufs_bindex_t bindex); ++void dbgaufs_brs_add(struct super_block *sb, aufs_bindex_t bindex); ++void dbgaufs_si_fin(struct au_sbinfo *sbinfo); ++int dbgaufs_si_init(struct au_sbinfo *sbinfo); ++void dbgaufs_fin(void); ++int __init dbgaufs_init(void); ++#else ++AuStubVoid(dbgaufs_brs_del, struct super_block *sb, aufs_bindex_t bindex) ++AuStubVoid(dbgaufs_brs_add, struct super_block *sb, aufs_bindex_t bindex) ++AuStubVoid(dbgaufs_si_fin, struct au_sbinfo *sbinfo) ++AuStubInt0(dbgaufs_si_init, struct au_sbinfo *sbinfo) ++AuStubVoid(dbgaufs_fin, void) ++AuStubInt0(__init dbgaufs_init, void) ++#endif /* CONFIG_DEBUG_FS */ ++ ++#endif /* __KERNEL__ */ ++#endif /* __DBGAUFS_H__ */ +diff -Naur null/fs/aufs/dcsub.c linux-4.15/fs/aufs/dcsub.c +--- /dev/null ++++ linux-4.15/fs/aufs/dcsub.c 2018-02-25 02:38:09.198737468 +0100 +@@ -0,0 +1,225 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * sub-routines for dentry cache ++ */ ++ ++#include "aufs.h" ++ ++static void au_dpage_free(struct au_dpage *dpage) ++{ ++ int i; ++ struct dentry **p; ++ ++ p = dpage->dentries; ++ for (i = 0; i < dpage->ndentry; i++) ++ dput(*p++); ++ free_page((unsigned long)dpage->dentries); ++} ++ ++int au_dpages_init(struct au_dcsub_pages *dpages, gfp_t gfp) ++{ ++ int err; ++ void *p; ++ ++ err = -ENOMEM; ++ dpages->dpages = kmalloc(sizeof(*dpages->dpages), gfp); ++ if (unlikely(!dpages->dpages)) ++ goto out; ++ ++ p = (void *)__get_free_page(gfp); ++ if (unlikely(!p)) ++ goto out_dpages; ++ ++ dpages->dpages[0].ndentry = 0; ++ dpages->dpages[0].dentries = p; ++ dpages->ndpage = 1; ++ return 0; /* success */ ++ ++out_dpages: ++ kfree(dpages->dpages); ++out: ++ return err; ++} ++ ++void au_dpages_free(struct au_dcsub_pages *dpages) ++{ ++ int i; ++ struct au_dpage *p; ++ ++ p = dpages->dpages; ++ for (i = 0; i < dpages->ndpage; i++) ++ au_dpage_free(p++); ++ kfree(dpages->dpages); ++} ++ ++static int au_dpages_append(struct au_dcsub_pages *dpages, ++ struct dentry *dentry, gfp_t gfp) ++{ ++ int err, sz; ++ struct au_dpage *dpage; ++ void *p; ++ ++ dpage = dpages->dpages + dpages->ndpage - 1; ++ sz = PAGE_SIZE / sizeof(dentry); ++ if (unlikely(dpage->ndentry >= sz)) { ++ AuLabel(new dpage); ++ err = -ENOMEM; ++ sz = dpages->ndpage * sizeof(*dpages->dpages); ++ p = au_kzrealloc(dpages->dpages, sz, ++ sz + sizeof(*dpages->dpages), gfp, ++ /*may_shrink*/0); ++ if (unlikely(!p)) ++ goto out; ++ ++ dpages->dpages = p; ++ dpage = dpages->dpages + dpages->ndpage; ++ p = (void *)__get_free_page(gfp); ++ if (unlikely(!p)) ++ goto out; ++ ++ dpage->ndentry = 0; ++ dpage->dentries = p; ++ dpages->ndpage++; ++ } ++ ++ AuDebugOn(au_dcount(dentry) <= 0); ++ dpage->dentries[dpage->ndentry++] = dget_dlock(dentry); ++ return 0; /* success */ ++ ++out: ++ return err; ++} ++ ++/* todo: BAD approach */ ++/* copied from linux/fs/dcache.c */ ++enum d_walk_ret { ++ D_WALK_CONTINUE, ++ D_WALK_QUIT, ++ D_WALK_NORETRY, ++ D_WALK_SKIP, ++}; ++ ++extern void d_walk(struct dentry *parent, void *data, ++ enum d_walk_ret (*enter)(void *, struct dentry *), ++ void (*finish)(void *)); ++ ++struct ac_dpages_arg { ++ int err; ++ struct au_dcsub_pages *dpages; ++ struct super_block *sb; ++ au_dpages_test test; ++ void *arg; ++}; ++ ++static enum d_walk_ret au_call_dpages_append(void *_arg, struct dentry *dentry) ++{ ++ enum d_walk_ret ret; ++ struct ac_dpages_arg *arg = _arg; ++ ++ ret = D_WALK_CONTINUE; ++ if (dentry->d_sb == arg->sb ++ && !IS_ROOT(dentry) ++ && au_dcount(dentry) > 0 ++ && au_di(dentry) ++ && (!arg->test || arg->test(dentry, arg->arg))) { ++ arg->err = au_dpages_append(arg->dpages, dentry, GFP_ATOMIC); ++ if (unlikely(arg->err)) ++ ret = D_WALK_QUIT; ++ } ++ ++ return ret; ++} ++ ++int au_dcsub_pages(struct au_dcsub_pages *dpages, struct dentry *root, ++ au_dpages_test test, void *arg) ++{ ++ struct ac_dpages_arg args = { ++ .err = 0, ++ .dpages = dpages, ++ .sb = root->d_sb, ++ .test = test, ++ .arg = arg ++ }; ++ ++ d_walk(root, &args, au_call_dpages_append, NULL); ++ ++ return args.err; ++} ++ ++int au_dcsub_pages_rev(struct au_dcsub_pages *dpages, struct dentry *dentry, ++ int do_include, au_dpages_test test, void *arg) ++{ ++ int err; ++ ++ err = 0; ++ write_seqlock(&rename_lock); ++ spin_lock(&dentry->d_lock); ++ if (do_include ++ && au_dcount(dentry) > 0 ++ && (!test || test(dentry, arg))) ++ err = au_dpages_append(dpages, dentry, GFP_ATOMIC); ++ spin_unlock(&dentry->d_lock); ++ if (unlikely(err)) ++ goto out; ++ ++ /* ++ * RCU for vfsmount is unnecessary since this is a traverse in a single ++ * mount ++ */ ++ while (!IS_ROOT(dentry)) { ++ dentry = dentry->d_parent; /* rename_lock is locked */ ++ spin_lock(&dentry->d_lock); ++ if (au_dcount(dentry) > 0 ++ && (!test || test(dentry, arg))) ++ err = au_dpages_append(dpages, dentry, GFP_ATOMIC); ++ spin_unlock(&dentry->d_lock); ++ if (unlikely(err)) ++ break; ++ } ++ ++out: ++ write_sequnlock(&rename_lock); ++ return err; ++} ++ ++static inline int au_dcsub_dpages_aufs(struct dentry *dentry, void *arg) ++{ ++ return au_di(dentry) && dentry->d_sb == arg; ++} ++ ++int au_dcsub_pages_rev_aufs(struct au_dcsub_pages *dpages, ++ struct dentry *dentry, int do_include) ++{ ++ return au_dcsub_pages_rev(dpages, dentry, do_include, ++ au_dcsub_dpages_aufs, dentry->d_sb); ++} ++ ++int au_test_subdir(struct dentry *d1, struct dentry *d2) ++{ ++ struct path path[2] = { ++ { ++ .dentry = d1 ++ }, ++ { ++ .dentry = d2 ++ } ++ }; ++ ++ return path_is_under(path + 0, path + 1); ++} +diff -Naur null/fs/aufs/dcsub.h linux-4.15/fs/aufs/dcsub.h +--- /dev/null ++++ linux-4.15/fs/aufs/dcsub.h 2018-02-25 02:38:09.198737468 +0100 +@@ -0,0 +1,136 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * sub-routines for dentry cache ++ */ ++ ++#ifndef __AUFS_DCSUB_H__ ++#define __AUFS_DCSUB_H__ ++ ++#ifdef __KERNEL__ ++ ++#include ++#include ++ ++struct au_dpage { ++ int ndentry; ++ struct dentry **dentries; ++}; ++ ++struct au_dcsub_pages { ++ int ndpage; ++ struct au_dpage *dpages; ++}; ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* dcsub.c */ ++int au_dpages_init(struct au_dcsub_pages *dpages, gfp_t gfp); ++void au_dpages_free(struct au_dcsub_pages *dpages); ++typedef int (*au_dpages_test)(struct dentry *dentry, void *arg); ++int au_dcsub_pages(struct au_dcsub_pages *dpages, struct dentry *root, ++ au_dpages_test test, void *arg); ++int au_dcsub_pages_rev(struct au_dcsub_pages *dpages, struct dentry *dentry, ++ int do_include, au_dpages_test test, void *arg); ++int au_dcsub_pages_rev_aufs(struct au_dcsub_pages *dpages, ++ struct dentry *dentry, int do_include); ++int au_test_subdir(struct dentry *d1, struct dentry *d2); ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* ++ * todo: in linux-3.13, several similar (but faster) helpers are added to ++ * include/linux/dcache.h. Try them (in the future). ++ */ ++ ++static inline int au_d_hashed_positive(struct dentry *d) ++{ ++ int err; ++ struct inode *inode = d_inode(d); ++ ++ err = 0; ++ if (unlikely(d_unhashed(d) ++ || d_is_negative(d) ++ || !inode->i_nlink)) ++ err = -ENOENT; ++ return err; ++} ++ ++static inline int au_d_linkable(struct dentry *d) ++{ ++ int err; ++ struct inode *inode = d_inode(d); ++ ++ err = au_d_hashed_positive(d); ++ if (err ++ && d_is_positive(d) ++ && (inode->i_state & I_LINKABLE)) ++ err = 0; ++ return err; ++} ++ ++static inline int au_d_alive(struct dentry *d) ++{ ++ int err; ++ struct inode *inode; ++ ++ err = 0; ++ if (!IS_ROOT(d)) ++ err = au_d_hashed_positive(d); ++ else { ++ inode = d_inode(d); ++ if (unlikely(d_unlinked(d) ++ || d_is_negative(d) ++ || !inode->i_nlink)) ++ err = -ENOENT; ++ } ++ return err; ++} ++ ++static inline int au_alive_dir(struct dentry *d) ++{ ++ int err; ++ ++ err = au_d_alive(d); ++ if (unlikely(err || IS_DEADDIR(d_inode(d)))) ++ err = -ENOENT; ++ return err; ++} ++ ++static inline int au_qstreq(struct qstr *a, struct qstr *b) ++{ ++ return a->len == b->len ++ && !memcmp(a->name, b->name, a->len); ++} ++ ++/* ++ * by the commit ++ * 360f547 2015-01-25 dcache: let the dentry count go down to zero without ++ * taking d_lock ++ * the type of d_lockref.count became int, but the inlined function d_count() ++ * still returns unsigned int. ++ * I don't know why. Maybe it is for every d_count() users? ++ * Anyway au_dcount() lives on. ++ */ ++static inline int au_dcount(struct dentry *d) ++{ ++ return (int)d_count(d); ++} ++ ++#endif /* __KERNEL__ */ ++#endif /* __AUFS_DCSUB_H__ */ +diff -Naur null/fs/aufs/debug.c linux-4.15/fs/aufs/debug.c +--- /dev/null ++++ linux-4.15/fs/aufs/debug.c 2018-02-25 02:38:09.198737468 +0100 +@@ -0,0 +1,440 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * debug print functions ++ */ ++ ++#include "aufs.h" ++ ++/* Returns 0, or -errno. arg is in kp->arg. */ ++static int param_atomic_t_set(const char *val, const struct kernel_param *kp) ++{ ++ int err, n; ++ ++ err = kstrtoint(val, 0, &n); ++ if (!err) { ++ if (n > 0) ++ au_debug_on(); ++ else ++ au_debug_off(); ++ } ++ return err; ++} ++ ++/* Returns length written or -errno. Buffer is 4k (ie. be short!) */ ++static int param_atomic_t_get(char *buffer, const struct kernel_param *kp) ++{ ++ atomic_t *a; ++ ++ a = kp->arg; ++ return sprintf(buffer, "%d", atomic_read(a)); ++} ++ ++static struct kernel_param_ops param_ops_atomic_t = { ++ .set = param_atomic_t_set, ++ .get = param_atomic_t_get ++ /* void (*free)(void *arg) */ ++}; ++ ++atomic_t aufs_debug = ATOMIC_INIT(0); ++MODULE_PARM_DESC(debug, "debug print"); ++module_param_named(debug, aufs_debug, atomic_t, S_IRUGO | S_IWUSR | S_IWGRP); ++ ++DEFINE_MUTEX(au_dbg_mtx); /* just to serialize the dbg msgs */ ++char *au_plevel = KERN_DEBUG; ++#define dpri(fmt, ...) do { \ ++ if ((au_plevel \ ++ && strcmp(au_plevel, KERN_DEBUG)) \ ++ || au_debug_test()) \ ++ printk("%s" fmt, au_plevel, ##__VA_ARGS__); \ ++} while (0) ++ ++/* ---------------------------------------------------------------------- */ ++ ++void au_dpri_whlist(struct au_nhash *whlist) ++{ ++ unsigned long ul, n; ++ struct hlist_head *head; ++ struct au_vdir_wh *pos; ++ ++ n = whlist->nh_num; ++ head = whlist->nh_head; ++ for (ul = 0; ul < n; ul++) { ++ hlist_for_each_entry(pos, head, wh_hash) ++ dpri("b%d, %.*s, %d\n", ++ pos->wh_bindex, ++ pos->wh_str.len, pos->wh_str.name, ++ pos->wh_str.len); ++ head++; ++ } ++} ++ ++void au_dpri_vdir(struct au_vdir *vdir) ++{ ++ unsigned long ul; ++ union au_vdir_deblk_p p; ++ unsigned char *o; ++ ++ if (!vdir || IS_ERR(vdir)) { ++ dpri("err %ld\n", PTR_ERR(vdir)); ++ return; ++ } ++ ++ dpri("deblk %u, nblk %lu, deblk %p, last{%lu, %p}, ver %lu\n", ++ vdir->vd_deblk_sz, vdir->vd_nblk, vdir->vd_deblk, ++ vdir->vd_last.ul, vdir->vd_last.p.deblk, vdir->vd_version); ++ for (ul = 0; ul < vdir->vd_nblk; ul++) { ++ p.deblk = vdir->vd_deblk[ul]; ++ o = p.deblk; ++ dpri("[%lu]: %p\n", ul, o); ++ } ++} ++ ++static int do_pri_inode(aufs_bindex_t bindex, struct inode *inode, int hn, ++ struct dentry *wh) ++{ ++ char *n = NULL; ++ int l = 0; ++ ++ if (!inode || IS_ERR(inode)) { ++ dpri("i%d: err %ld\n", bindex, PTR_ERR(inode)); ++ return -1; ++ } ++ ++ /* the type of i_blocks depends upon CONFIG_LBDAF */ ++ BUILD_BUG_ON(sizeof(inode->i_blocks) != sizeof(unsigned long) ++ && sizeof(inode->i_blocks) != sizeof(u64)); ++ if (wh) { ++ n = (void *)wh->d_name.name; ++ l = wh->d_name.len; ++ } ++ ++ dpri("i%d: %p, i%lu, %s, cnt %d, nl %u, 0%o, sz %llu, blk %llu," ++ " hn %d, ct %lld, np %lu, st 0x%lx, f 0x%x, v %llu, g %x%s%.*s\n", ++ bindex, inode, ++ inode->i_ino, inode->i_sb ? au_sbtype(inode->i_sb) : "??", ++ atomic_read(&inode->i_count), inode->i_nlink, inode->i_mode, ++ i_size_read(inode), (unsigned long long)inode->i_blocks, ++ hn, (long long)timespec_to_ns(&inode->i_ctime) & 0x0ffff, ++ inode->i_mapping ? inode->i_mapping->nrpages : 0, ++ inode->i_state, inode->i_flags, inode->i_version, ++ inode->i_generation, ++ l ? ", wh " : "", l, n); ++ return 0; ++} ++ ++void au_dpri_inode(struct inode *inode) ++{ ++ struct au_iinfo *iinfo; ++ struct au_hinode *hi; ++ aufs_bindex_t bindex; ++ int err, hn; ++ ++ err = do_pri_inode(-1, inode, -1, NULL); ++ if (err || !au_test_aufs(inode->i_sb) || au_is_bad_inode(inode)) ++ return; ++ ++ iinfo = au_ii(inode); ++ dpri("i-1: btop %d, bbot %d, gen %d\n", ++ iinfo->ii_btop, iinfo->ii_bbot, au_iigen(inode, NULL)); ++ if (iinfo->ii_btop < 0) ++ return; ++ hn = 0; ++ for (bindex = iinfo->ii_btop; bindex <= iinfo->ii_bbot; bindex++) { ++ hi = au_hinode(iinfo, bindex); ++ hn = !!au_hn(hi); ++ do_pri_inode(bindex, hi->hi_inode, hn, hi->hi_whdentry); ++ } ++} ++ ++void au_dpri_dalias(struct inode *inode) ++{ ++ struct dentry *d; ++ ++ spin_lock(&inode->i_lock); ++ hlist_for_each_entry(d, &inode->i_dentry, d_u.d_alias) ++ au_dpri_dentry(d); ++ spin_unlock(&inode->i_lock); ++} ++ ++static int do_pri_dentry(aufs_bindex_t bindex, struct dentry *dentry) ++{ ++ struct dentry *wh = NULL; ++ int hn; ++ struct inode *inode; ++ struct au_iinfo *iinfo; ++ struct au_hinode *hi; ++ ++ if (!dentry || IS_ERR(dentry)) { ++ dpri("d%d: err %ld\n", bindex, PTR_ERR(dentry)); ++ return -1; ++ } ++ /* do not call dget_parent() here */ ++ /* note: access d_xxx without d_lock */ ++ dpri("d%d: %p, %pd2?, %s, cnt %d, flags 0x%x, %shashed\n", ++ bindex, dentry, dentry, ++ dentry->d_sb ? au_sbtype(dentry->d_sb) : "??", ++ au_dcount(dentry), dentry->d_flags, ++ d_unhashed(dentry) ? "un" : ""); ++ hn = -1; ++ inode = NULL; ++ if (d_is_positive(dentry)) ++ inode = d_inode(dentry); ++ if (inode ++ && au_test_aufs(dentry->d_sb) ++ && bindex >= 0 ++ && !au_is_bad_inode(inode)) { ++ iinfo = au_ii(inode); ++ hi = au_hinode(iinfo, bindex); ++ hn = !!au_hn(hi); ++ wh = hi->hi_whdentry; ++ } ++ do_pri_inode(bindex, inode, hn, wh); ++ return 0; ++} ++ ++void au_dpri_dentry(struct dentry *dentry) ++{ ++ struct au_dinfo *dinfo; ++ aufs_bindex_t bindex; ++ int err; ++ ++ err = do_pri_dentry(-1, dentry); ++ if (err || !au_test_aufs(dentry->d_sb)) ++ return; ++ ++ dinfo = au_di(dentry); ++ if (!dinfo) ++ return; ++ dpri("d-1: btop %d, bbot %d, bwh %d, bdiropq %d, gen %d, tmp %d\n", ++ dinfo->di_btop, dinfo->di_bbot, ++ dinfo->di_bwh, dinfo->di_bdiropq, au_digen(dentry), ++ dinfo->di_tmpfile); ++ if (dinfo->di_btop < 0) ++ return; ++ for (bindex = dinfo->di_btop; bindex <= dinfo->di_bbot; bindex++) ++ do_pri_dentry(bindex, au_hdentry(dinfo, bindex)->hd_dentry); ++} ++ ++static int do_pri_file(aufs_bindex_t bindex, struct file *file) ++{ ++ char a[32]; ++ ++ if (!file || IS_ERR(file)) { ++ dpri("f%d: err %ld\n", bindex, PTR_ERR(file)); ++ return -1; ++ } ++ a[0] = 0; ++ if (bindex < 0 ++ && !IS_ERR_OR_NULL(file->f_path.dentry) ++ && au_test_aufs(file->f_path.dentry->d_sb) ++ && au_fi(file)) ++ snprintf(a, sizeof(a), ", gen %d, mmapped %d", ++ au_figen(file), atomic_read(&au_fi(file)->fi_mmapped)); ++ dpri("f%d: mode 0x%x, flags 0%o, cnt %ld, v %llu, pos %llu%s\n", ++ bindex, file->f_mode, file->f_flags, (long)file_count(file), ++ file->f_version, file->f_pos, a); ++ if (!IS_ERR_OR_NULL(file->f_path.dentry)) ++ do_pri_dentry(bindex, file->f_path.dentry); ++ return 0; ++} ++ ++void au_dpri_file(struct file *file) ++{ ++ struct au_finfo *finfo; ++ struct au_fidir *fidir; ++ struct au_hfile *hfile; ++ aufs_bindex_t bindex; ++ int err; ++ ++ err = do_pri_file(-1, file); ++ if (err ++ || IS_ERR_OR_NULL(file->f_path.dentry) ++ || !au_test_aufs(file->f_path.dentry->d_sb)) ++ return; ++ ++ finfo = au_fi(file); ++ if (!finfo) ++ return; ++ if (finfo->fi_btop < 0) ++ return; ++ fidir = finfo->fi_hdir; ++ if (!fidir) ++ do_pri_file(finfo->fi_btop, finfo->fi_htop.hf_file); ++ else ++ for (bindex = finfo->fi_btop; ++ bindex >= 0 && bindex <= fidir->fd_bbot; ++ bindex++) { ++ hfile = fidir->fd_hfile + bindex; ++ do_pri_file(bindex, hfile ? hfile->hf_file : NULL); ++ } ++} ++ ++static int do_pri_br(aufs_bindex_t bindex, struct au_branch *br) ++{ ++ struct vfsmount *mnt; ++ struct super_block *sb; ++ ++ if (!br || IS_ERR(br)) ++ goto out; ++ mnt = au_br_mnt(br); ++ if (!mnt || IS_ERR(mnt)) ++ goto out; ++ sb = mnt->mnt_sb; ++ if (!sb || IS_ERR(sb)) ++ goto out; ++ ++ dpri("s%d: {perm 0x%x, id %d, cnt %lld, wbr %p}, " ++ "%s, dev 0x%02x%02x, flags 0x%lx, cnt %d, active %d, " ++ "xino %d\n", ++ bindex, br->br_perm, br->br_id, au_br_count(br), ++ br->br_wbr, au_sbtype(sb), MAJOR(sb->s_dev), MINOR(sb->s_dev), ++ sb->s_flags, sb->s_count, ++ atomic_read(&sb->s_active), !!br->br_xino.xi_file); ++ return 0; ++ ++out: ++ dpri("s%d: err %ld\n", bindex, PTR_ERR(br)); ++ return -1; ++} ++ ++void au_dpri_sb(struct super_block *sb) ++{ ++ struct au_sbinfo *sbinfo; ++ aufs_bindex_t bindex; ++ int err; ++ /* to reuduce stack size */ ++ struct { ++ struct vfsmount mnt; ++ struct au_branch fake; ++ } *a; ++ ++ /* this function can be called from magic sysrq */ ++ a = kzalloc(sizeof(*a), GFP_ATOMIC); ++ if (unlikely(!a)) { ++ dpri("no memory\n"); ++ return; ++ } ++ ++ a->mnt.mnt_sb = sb; ++ a->fake.br_path.mnt = &a->mnt; ++ au_br_count_init(&a->fake); ++ err = do_pri_br(-1, &a->fake); ++ au_br_count_fin(&a->fake); ++ kfree(a); ++ dpri("dev 0x%x\n", sb->s_dev); ++ if (err || !au_test_aufs(sb)) ++ return; ++ ++ sbinfo = au_sbi(sb); ++ if (!sbinfo) ++ return; ++ dpri("nw %d, gen %u, kobj %d\n", ++ atomic_read(&sbinfo->si_nowait.nw_len), sbinfo->si_generation, ++ kref_read(&sbinfo->si_kobj.kref)); ++ for (bindex = 0; bindex <= sbinfo->si_bbot; bindex++) ++ do_pri_br(bindex, sbinfo->si_branch[0 + bindex]); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++void __au_dbg_verify_dinode(struct dentry *dentry, const char *func, int line) ++{ ++ struct inode *h_inode, *inode = d_inode(dentry); ++ struct dentry *h_dentry; ++ aufs_bindex_t bindex, bbot, bi; ++ ++ if (!inode /* || au_di(dentry)->di_lsc == AuLsc_DI_TMP */) ++ return; ++ ++ bbot = au_dbbot(dentry); ++ bi = au_ibbot(inode); ++ if (bi < bbot) ++ bbot = bi; ++ bindex = au_dbtop(dentry); ++ bi = au_ibtop(inode); ++ if (bi > bindex) ++ bindex = bi; ++ ++ for (; bindex <= bbot; bindex++) { ++ h_dentry = au_h_dptr(dentry, bindex); ++ if (!h_dentry) ++ continue; ++ h_inode = au_h_iptr(inode, bindex); ++ if (unlikely(h_inode != d_inode(h_dentry))) { ++ au_debug_on(); ++ AuDbg("b%d, %s:%d\n", bindex, func, line); ++ AuDbgDentry(dentry); ++ AuDbgInode(inode); ++ au_debug_off(); ++ BUG(); ++ } ++ } ++} ++ ++void au_dbg_verify_gen(struct dentry *parent, unsigned int sigen) ++{ ++ int err, i, j; ++ struct au_dcsub_pages dpages; ++ struct au_dpage *dpage; ++ struct dentry **dentries; ++ ++ err = au_dpages_init(&dpages, GFP_NOFS); ++ AuDebugOn(err); ++ err = au_dcsub_pages_rev_aufs(&dpages, parent, /*do_include*/1); ++ AuDebugOn(err); ++ for (i = dpages.ndpage - 1; !err && i >= 0; i--) { ++ dpage = dpages.dpages + i; ++ dentries = dpage->dentries; ++ for (j = dpage->ndentry - 1; !err && j >= 0; j--) ++ AuDebugOn(au_digen_test(dentries[j], sigen)); ++ } ++ au_dpages_free(&dpages); ++} ++ ++void au_dbg_verify_kthread(void) ++{ ++ if (au_wkq_test()) { ++ au_dbg_blocked(); ++ /* ++ * It may be recursive, but udba=notify between two aufs mounts, ++ * where a single ro branch is shared, is not a problem. ++ */ ++ /* WARN_ON(1); */ ++ } ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++int __init au_debug_init(void) ++{ ++ aufs_bindex_t bindex; ++ struct au_vdir_destr destr; ++ ++ bindex = -1; ++ AuDebugOn(bindex >= 0); ++ ++ destr.len = -1; ++ AuDebugOn(destr.len < NAME_MAX); ++ ++#ifdef CONFIG_4KSTACKS ++ pr_warn("CONFIG_4KSTACKS is defined.\n"); ++#endif ++ ++ return 0; ++} +diff -Naur null/fs/aufs/debug.h linux-4.15/fs/aufs/debug.h +--- /dev/null ++++ linux-4.15/fs/aufs/debug.h 2018-02-25 02:38:09.198737468 +0100 +@@ -0,0 +1,225 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * debug print functions ++ */ ++ ++#ifndef __AUFS_DEBUG_H__ ++#define __AUFS_DEBUG_H__ ++ ++#ifdef __KERNEL__ ++ ++#include ++#include ++#include ++#include ++ ++#ifdef CONFIG_AUFS_DEBUG ++#define AuDebugOn(a) BUG_ON(a) ++ ++/* module parameter */ ++extern atomic_t aufs_debug; ++static inline void au_debug_on(void) ++{ ++ atomic_inc(&aufs_debug); ++} ++static inline void au_debug_off(void) ++{ ++ atomic_dec_if_positive(&aufs_debug); ++} ++ ++static inline int au_debug_test(void) ++{ ++ return atomic_read(&aufs_debug) > 0; ++} ++#else ++#define AuDebugOn(a) do {} while (0) ++AuStubVoid(au_debug_on, void) ++AuStubVoid(au_debug_off, void) ++AuStubInt0(au_debug_test, void) ++#endif /* CONFIG_AUFS_DEBUG */ ++ ++#define param_check_atomic_t(name, p) __param_check(name, p, atomic_t) ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* debug print */ ++ ++#define AuDbg(fmt, ...) do { \ ++ if (au_debug_test()) \ ++ pr_debug("DEBUG: " fmt, ##__VA_ARGS__); \ ++} while (0) ++#define AuLabel(l) AuDbg(#l "\n") ++#define AuIOErr(fmt, ...) pr_err("I/O Error, " fmt, ##__VA_ARGS__) ++#define AuWarn1(fmt, ...) do { \ ++ static unsigned char _c; \ ++ if (!_c++) \ ++ pr_warn(fmt, ##__VA_ARGS__); \ ++} while (0) ++ ++#define AuErr1(fmt, ...) do { \ ++ static unsigned char _c; \ ++ if (!_c++) \ ++ pr_err(fmt, ##__VA_ARGS__); \ ++} while (0) ++ ++#define AuIOErr1(fmt, ...) do { \ ++ static unsigned char _c; \ ++ if (!_c++) \ ++ AuIOErr(fmt, ##__VA_ARGS__); \ ++} while (0) ++ ++#define AuUnsupportMsg "This operation is not supported." \ ++ " Please report this application to aufs-users ML." ++#define AuUnsupport(fmt, ...) do { \ ++ pr_err(AuUnsupportMsg "\n" fmt, ##__VA_ARGS__); \ ++ dump_stack(); \ ++} while (0) ++ ++#define AuTraceErr(e) do { \ ++ if (unlikely((e) < 0)) \ ++ AuDbg("err %d\n", (int)(e)); \ ++} while (0) ++ ++#define AuTraceErrPtr(p) do { \ ++ if (IS_ERR(p)) \ ++ AuDbg("err %ld\n", PTR_ERR(p)); \ ++} while (0) ++ ++/* dirty macros for debug print, use with "%.*s" and caution */ ++#define AuLNPair(qstr) (qstr)->len, (qstr)->name ++ ++/* ---------------------------------------------------------------------- */ ++ ++struct dentry; ++#ifdef CONFIG_AUFS_DEBUG ++extern struct mutex au_dbg_mtx; ++extern char *au_plevel; ++struct au_nhash; ++void au_dpri_whlist(struct au_nhash *whlist); ++struct au_vdir; ++void au_dpri_vdir(struct au_vdir *vdir); ++struct inode; ++void au_dpri_inode(struct inode *inode); ++void au_dpri_dalias(struct inode *inode); ++void au_dpri_dentry(struct dentry *dentry); ++struct file; ++void au_dpri_file(struct file *filp); ++struct super_block; ++void au_dpri_sb(struct super_block *sb); ++ ++#define au_dbg_verify_dinode(d) __au_dbg_verify_dinode(d, __func__, __LINE__) ++void __au_dbg_verify_dinode(struct dentry *dentry, const char *func, int line); ++void au_dbg_verify_gen(struct dentry *parent, unsigned int sigen); ++void au_dbg_verify_kthread(void); ++ ++int __init au_debug_init(void); ++ ++#define AuDbgWhlist(w) do { \ ++ mutex_lock(&au_dbg_mtx); \ ++ AuDbg(#w "\n"); \ ++ au_dpri_whlist(w); \ ++ mutex_unlock(&au_dbg_mtx); \ ++} while (0) ++ ++#define AuDbgVdir(v) do { \ ++ mutex_lock(&au_dbg_mtx); \ ++ AuDbg(#v "\n"); \ ++ au_dpri_vdir(v); \ ++ mutex_unlock(&au_dbg_mtx); \ ++} while (0) ++ ++#define AuDbgInode(i) do { \ ++ mutex_lock(&au_dbg_mtx); \ ++ AuDbg(#i "\n"); \ ++ au_dpri_inode(i); \ ++ mutex_unlock(&au_dbg_mtx); \ ++} while (0) ++ ++#define AuDbgDAlias(i) do { \ ++ mutex_lock(&au_dbg_mtx); \ ++ AuDbg(#i "\n"); \ ++ au_dpri_dalias(i); \ ++ mutex_unlock(&au_dbg_mtx); \ ++} while (0) ++ ++#define AuDbgDentry(d) do { \ ++ mutex_lock(&au_dbg_mtx); \ ++ AuDbg(#d "\n"); \ ++ au_dpri_dentry(d); \ ++ mutex_unlock(&au_dbg_mtx); \ ++} while (0) ++ ++#define AuDbgFile(f) do { \ ++ mutex_lock(&au_dbg_mtx); \ ++ AuDbg(#f "\n"); \ ++ au_dpri_file(f); \ ++ mutex_unlock(&au_dbg_mtx); \ ++} while (0) ++ ++#define AuDbgSb(sb) do { \ ++ mutex_lock(&au_dbg_mtx); \ ++ AuDbg(#sb "\n"); \ ++ au_dpri_sb(sb); \ ++ mutex_unlock(&au_dbg_mtx); \ ++} while (0) ++ ++#define AuDbgSym(addr) do { \ ++ char sym[KSYM_SYMBOL_LEN]; \ ++ sprint_symbol(sym, (unsigned long)addr); \ ++ AuDbg("%s\n", sym); \ ++} while (0) ++#else ++AuStubVoid(au_dbg_verify_dinode, struct dentry *dentry) ++AuStubVoid(au_dbg_verify_gen, struct dentry *parent, unsigned int sigen) ++AuStubVoid(au_dbg_verify_kthread, void) ++AuStubInt0(__init au_debug_init, void) ++ ++#define AuDbgWhlist(w) do {} while (0) ++#define AuDbgVdir(v) do {} while (0) ++#define AuDbgInode(i) do {} while (0) ++#define AuDbgDAlias(i) do {} while (0) ++#define AuDbgDentry(d) do {} while (0) ++#define AuDbgFile(f) do {} while (0) ++#define AuDbgSb(sb) do {} while (0) ++#define AuDbgSym(addr) do {} while (0) ++#endif /* CONFIG_AUFS_DEBUG */ ++ ++/* ---------------------------------------------------------------------- */ ++ ++#ifdef CONFIG_AUFS_MAGIC_SYSRQ ++int __init au_sysrq_init(void); ++void au_sysrq_fin(void); ++ ++#ifdef CONFIG_HW_CONSOLE ++#define au_dbg_blocked() do { \ ++ WARN_ON(1); \ ++ handle_sysrq('w'); \ ++} while (0) ++#else ++AuStubVoid(au_dbg_blocked, void) ++#endif ++ ++#else ++AuStubInt0(__init au_sysrq_init, void) ++AuStubVoid(au_sysrq_fin, void) ++AuStubVoid(au_dbg_blocked, void) ++#endif /* CONFIG_AUFS_MAGIC_SYSRQ */ ++ ++#endif /* __KERNEL__ */ ++#endif /* __AUFS_DEBUG_H__ */ +diff -Naur null/fs/aufs/dentry.c linux-4.15/fs/aufs/dentry.c +--- /dev/null ++++ linux-4.15/fs/aufs/dentry.c 2018-02-25 02:38:09.199737576 +0100 +@@ -0,0 +1,1152 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * lookup and dentry operations ++ */ ++ ++#include ++#include "aufs.h" ++ ++/* ++ * returns positive/negative dentry, NULL or an error. ++ * NULL means whiteout-ed or not-found. ++ */ ++static struct dentry* ++au_do_lookup(struct dentry *h_parent, struct dentry *dentry, ++ aufs_bindex_t bindex, struct au_do_lookup_args *args) ++{ ++ struct dentry *h_dentry; ++ struct inode *h_inode; ++ struct au_branch *br; ++ int wh_found, opq; ++ unsigned char wh_able; ++ const unsigned char allow_neg = !!au_ftest_lkup(args->flags, ALLOW_NEG); ++ const unsigned char ignore_perm = !!au_ftest_lkup(args->flags, ++ IGNORE_PERM); ++ ++ wh_found = 0; ++ br = au_sbr(dentry->d_sb, bindex); ++ wh_able = !!au_br_whable(br->br_perm); ++ if (wh_able) ++ wh_found = au_wh_test(h_parent, &args->whname, ignore_perm); ++ h_dentry = ERR_PTR(wh_found); ++ if (!wh_found) ++ goto real_lookup; ++ if (unlikely(wh_found < 0)) ++ goto out; ++ ++ /* We found a whiteout */ ++ /* au_set_dbbot(dentry, bindex); */ ++ au_set_dbwh(dentry, bindex); ++ if (!allow_neg) ++ return NULL; /* success */ ++ ++real_lookup: ++ if (!ignore_perm) ++ h_dentry = vfsub_lkup_one(args->name, h_parent); ++ else ++ h_dentry = au_sio_lkup_one(args->name, h_parent); ++ if (IS_ERR(h_dentry)) { ++ if (PTR_ERR(h_dentry) == -ENAMETOOLONG ++ && !allow_neg) ++ h_dentry = NULL; ++ goto out; ++ } ++ ++ h_inode = d_inode(h_dentry); ++ if (d_is_negative(h_dentry)) { ++ if (!allow_neg) ++ goto out_neg; ++ } else if (wh_found ++ || (args->type && args->type != (h_inode->i_mode & S_IFMT))) ++ goto out_neg; ++ else if (au_ftest_lkup(args->flags, DIRREN) ++ /* && h_inode */ ++ && !au_dr_lkup_h_ino(args, bindex, h_inode->i_ino)) { ++ AuDbg("b%d %pd ignored hi%llu\n", bindex, h_dentry, ++ (unsigned long long)h_inode->i_ino); ++ goto out_neg; ++ } ++ ++ if (au_dbbot(dentry) <= bindex) ++ au_set_dbbot(dentry, bindex); ++ if (au_dbtop(dentry) < 0 || bindex < au_dbtop(dentry)) ++ au_set_dbtop(dentry, bindex); ++ au_set_h_dptr(dentry, bindex, h_dentry); ++ ++ if (!d_is_dir(h_dentry) ++ || !wh_able ++ || (d_really_is_positive(dentry) && !d_is_dir(dentry))) ++ goto out; /* success */ ++ ++ vfsub_inode_lock_shared_nested(h_inode, AuLsc_I_CHILD); ++ opq = au_diropq_test(h_dentry); ++ inode_unlock_shared(h_inode); ++ if (opq > 0) ++ au_set_dbdiropq(dentry, bindex); ++ else if (unlikely(opq < 0)) { ++ au_set_h_dptr(dentry, bindex, NULL); ++ h_dentry = ERR_PTR(opq); ++ } ++ goto out; ++ ++out_neg: ++ dput(h_dentry); ++ h_dentry = NULL; ++out: ++ return h_dentry; ++} ++ ++static int au_test_shwh(struct super_block *sb, const struct qstr *name) ++{ ++ if (unlikely(!au_opt_test(au_mntflags(sb), SHWH) ++ && !strncmp(name->name, AUFS_WH_PFX, AUFS_WH_PFX_LEN))) ++ return -EPERM; ++ return 0; ++} ++ ++/* ++ * returns the number of lower positive dentries, ++ * otherwise an error. ++ * can be called at unlinking with @type is zero. ++ */ ++int au_lkup_dentry(struct dentry *dentry, aufs_bindex_t btop, ++ unsigned int flags) ++{ ++ int npositive, err; ++ aufs_bindex_t bindex, btail, bdiropq; ++ unsigned char isdir, dirperm1, dirren; ++ struct au_do_lookup_args args = { ++ .flags = flags, ++ .name = &dentry->d_name ++ }; ++ struct dentry *parent; ++ struct super_block *sb; ++ ++ sb = dentry->d_sb; ++ err = au_test_shwh(sb, args.name); ++ if (unlikely(err)) ++ goto out; ++ ++ err = au_wh_name_alloc(&args.whname, args.name); ++ if (unlikely(err)) ++ goto out; ++ ++ isdir = !!d_is_dir(dentry); ++ dirperm1 = !!au_opt_test(au_mntflags(sb), DIRPERM1); ++ dirren = !!au_opt_test(au_mntflags(sb), DIRREN); ++ if (dirren) ++ au_fset_lkup(args.flags, DIRREN); ++ ++ npositive = 0; ++ parent = dget_parent(dentry); ++ btail = au_dbtaildir(parent); ++ for (bindex = btop; bindex <= btail; bindex++) { ++ struct dentry *h_parent, *h_dentry; ++ struct inode *h_inode, *h_dir; ++ struct au_branch *br; ++ ++ h_dentry = au_h_dptr(dentry, bindex); ++ if (h_dentry) { ++ if (d_is_positive(h_dentry)) ++ npositive++; ++ break; ++ } ++ h_parent = au_h_dptr(parent, bindex); ++ if (!h_parent || !d_is_dir(h_parent)) ++ continue; ++ ++ if (dirren) { ++ /* if the inum matches, then use the prepared name */ ++ err = au_dr_lkup_name(&args, bindex); ++ if (unlikely(err)) ++ goto out_parent; ++ } ++ ++ h_dir = d_inode(h_parent); ++ vfsub_inode_lock_shared_nested(h_dir, AuLsc_I_PARENT); ++ h_dentry = au_do_lookup(h_parent, dentry, bindex, &args); ++ inode_unlock_shared(h_dir); ++ err = PTR_ERR(h_dentry); ++ if (IS_ERR(h_dentry)) ++ goto out_parent; ++ if (h_dentry) ++ au_fclr_lkup(args.flags, ALLOW_NEG); ++ if (dirperm1) ++ au_fset_lkup(args.flags, IGNORE_PERM); ++ ++ if (au_dbwh(dentry) == bindex) ++ break; ++ if (!h_dentry) ++ continue; ++ if (d_is_negative(h_dentry)) ++ continue; ++ h_inode = d_inode(h_dentry); ++ npositive++; ++ if (!args.type) ++ args.type = h_inode->i_mode & S_IFMT; ++ if (args.type != S_IFDIR) ++ break; ++ else if (isdir) { ++ /* the type of lower may be different */ ++ bdiropq = au_dbdiropq(dentry); ++ if (bdiropq >= 0 && bdiropq <= bindex) ++ break; ++ } ++ br = au_sbr(sb, bindex); ++ if (dirren ++ && au_dr_hino_test_add(&br->br_dirren, h_inode->i_ino, ++ /*add_ent*/NULL)) { ++ /* prepare next name to lookup */ ++ err = au_dr_lkup(&args, dentry, bindex); ++ if (unlikely(err)) ++ goto out_parent; ++ } ++ } ++ ++ if (npositive) { ++ AuLabel(positive); ++ au_update_dbtop(dentry); ++ } ++ err = npositive; ++ if (unlikely(!au_opt_test(au_mntflags(sb), UDBA_NONE) ++ && au_dbtop(dentry) < 0)) { ++ err = -EIO; ++ AuIOErr("both of real entry and whiteout found, %pd, err %d\n", ++ dentry, err); ++ } ++ ++out_parent: ++ dput(parent); ++ kfree(args.whname.name); ++ if (dirren) ++ au_dr_lkup_fin(&args); ++out: ++ return err; ++} ++ ++struct dentry *au_sio_lkup_one(struct qstr *name, struct dentry *parent) ++{ ++ struct dentry *dentry; ++ int wkq_err; ++ ++ if (!au_test_h_perm_sio(d_inode(parent), MAY_EXEC)) ++ dentry = vfsub_lkup_one(name, parent); ++ else { ++ struct vfsub_lkup_one_args args = { ++ .errp = &dentry, ++ .name = name, ++ .parent = parent ++ }; ++ ++ wkq_err = au_wkq_wait(vfsub_call_lkup_one, &args); ++ if (unlikely(wkq_err)) ++ dentry = ERR_PTR(wkq_err); ++ } ++ ++ return dentry; ++} ++ ++/* ++ * lookup @dentry on @bindex which should be negative. ++ */ ++int au_lkup_neg(struct dentry *dentry, aufs_bindex_t bindex, int wh) ++{ ++ int err; ++ struct dentry *parent, *h_parent, *h_dentry; ++ struct au_branch *br; ++ ++ parent = dget_parent(dentry); ++ h_parent = au_h_dptr(parent, bindex); ++ br = au_sbr(dentry->d_sb, bindex); ++ if (wh) ++ h_dentry = au_whtmp_lkup(h_parent, br, &dentry->d_name); ++ else ++ h_dentry = au_sio_lkup_one(&dentry->d_name, h_parent); ++ err = PTR_ERR(h_dentry); ++ if (IS_ERR(h_dentry)) ++ goto out; ++ if (unlikely(d_is_positive(h_dentry))) { ++ err = -EIO; ++ AuIOErr("%pd should be negative on b%d.\n", h_dentry, bindex); ++ dput(h_dentry); ++ goto out; ++ } ++ ++ err = 0; ++ if (bindex < au_dbtop(dentry)) ++ au_set_dbtop(dentry, bindex); ++ if (au_dbbot(dentry) < bindex) ++ au_set_dbbot(dentry, bindex); ++ au_set_h_dptr(dentry, bindex, h_dentry); ++ ++out: ++ dput(parent); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* subset of struct inode */ ++struct au_iattr { ++ unsigned long i_ino; ++ /* unsigned int i_nlink; */ ++ kuid_t i_uid; ++ kgid_t i_gid; ++ u64 i_version; ++/* ++ loff_t i_size; ++ blkcnt_t i_blocks; ++*/ ++ umode_t i_mode; ++}; ++ ++static void au_iattr_save(struct au_iattr *ia, struct inode *h_inode) ++{ ++ ia->i_ino = h_inode->i_ino; ++ /* ia->i_nlink = h_inode->i_nlink; */ ++ ia->i_uid = h_inode->i_uid; ++ ia->i_gid = h_inode->i_gid; ++ ia->i_version = h_inode->i_version; ++/* ++ ia->i_size = h_inode->i_size; ++ ia->i_blocks = h_inode->i_blocks; ++*/ ++ ia->i_mode = (h_inode->i_mode & S_IFMT); ++} ++ ++static int au_iattr_test(struct au_iattr *ia, struct inode *h_inode) ++{ ++ return ia->i_ino != h_inode->i_ino ++ /* || ia->i_nlink != h_inode->i_nlink */ ++ || !uid_eq(ia->i_uid, h_inode->i_uid) ++ || !gid_eq(ia->i_gid, h_inode->i_gid) ++ || ia->i_version != h_inode->i_version ++/* ++ || ia->i_size != h_inode->i_size ++ || ia->i_blocks != h_inode->i_blocks ++*/ ++ || ia->i_mode != (h_inode->i_mode & S_IFMT); ++} ++ ++static int au_h_verify_dentry(struct dentry *h_dentry, struct dentry *h_parent, ++ struct au_branch *br) ++{ ++ int err; ++ struct au_iattr ia; ++ struct inode *h_inode; ++ struct dentry *h_d; ++ struct super_block *h_sb; ++ ++ err = 0; ++ memset(&ia, -1, sizeof(ia)); ++ h_sb = h_dentry->d_sb; ++ h_inode = NULL; ++ if (d_is_positive(h_dentry)) { ++ h_inode = d_inode(h_dentry); ++ au_iattr_save(&ia, h_inode); ++ } else if (au_test_nfs(h_sb) || au_test_fuse(h_sb)) ++ /* nfs d_revalidate may return 0 for negative dentry */ ++ /* fuse d_revalidate always return 0 for negative dentry */ ++ goto out; ++ ++ /* main purpose is namei.c:cached_lookup() and d_revalidate */ ++ h_d = vfsub_lkup_one(&h_dentry->d_name, h_parent); ++ err = PTR_ERR(h_d); ++ if (IS_ERR(h_d)) ++ goto out; ++ ++ err = 0; ++ if (unlikely(h_d != h_dentry ++ || d_inode(h_d) != h_inode ++ || (h_inode && au_iattr_test(&ia, h_inode)))) ++ err = au_busy_or_stale(); ++ dput(h_d); ++ ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++int au_h_verify(struct dentry *h_dentry, unsigned int udba, struct inode *h_dir, ++ struct dentry *h_parent, struct au_branch *br) ++{ ++ int err; ++ ++ err = 0; ++ if (udba == AuOpt_UDBA_REVAL ++ && !au_test_fs_remote(h_dentry->d_sb)) { ++ IMustLock(h_dir); ++ err = (d_inode(h_dentry->d_parent) != h_dir); ++ } else if (udba != AuOpt_UDBA_NONE) ++ err = au_h_verify_dentry(h_dentry, h_parent, br); ++ ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static int au_do_refresh_hdentry(struct dentry *dentry, struct dentry *parent) ++{ ++ int err; ++ aufs_bindex_t new_bindex, bindex, bbot, bwh, bdiropq; ++ struct au_hdentry tmp, *p, *q; ++ struct au_dinfo *dinfo; ++ struct super_block *sb; ++ ++ DiMustWriteLock(dentry); ++ ++ sb = dentry->d_sb; ++ dinfo = au_di(dentry); ++ bbot = dinfo->di_bbot; ++ bwh = dinfo->di_bwh; ++ bdiropq = dinfo->di_bdiropq; ++ bindex = dinfo->di_btop; ++ p = au_hdentry(dinfo, bindex); ++ for (; bindex <= bbot; bindex++, p++) { ++ if (!p->hd_dentry) ++ continue; ++ ++ new_bindex = au_br_index(sb, p->hd_id); ++ if (new_bindex == bindex) ++ continue; ++ ++ if (dinfo->di_bwh == bindex) ++ bwh = new_bindex; ++ if (dinfo->di_bdiropq == bindex) ++ bdiropq = new_bindex; ++ if (new_bindex < 0) { ++ au_hdput(p); ++ p->hd_dentry = NULL; ++ continue; ++ } ++ ++ /* swap two lower dentries, and loop again */ ++ q = au_hdentry(dinfo, new_bindex); ++ tmp = *q; ++ *q = *p; ++ *p = tmp; ++ if (tmp.hd_dentry) { ++ bindex--; ++ p--; ++ } ++ } ++ ++ dinfo->di_bwh = -1; ++ if (bwh >= 0 && bwh <= au_sbbot(sb) && au_sbr_whable(sb, bwh)) ++ dinfo->di_bwh = bwh; ++ ++ dinfo->di_bdiropq = -1; ++ if (bdiropq >= 0 ++ && bdiropq <= au_sbbot(sb) ++ && au_sbr_whable(sb, bdiropq)) ++ dinfo->di_bdiropq = bdiropq; ++ ++ err = -EIO; ++ dinfo->di_btop = -1; ++ dinfo->di_bbot = -1; ++ bbot = au_dbbot(parent); ++ bindex = 0; ++ p = au_hdentry(dinfo, bindex); ++ for (; bindex <= bbot; bindex++, p++) ++ if (p->hd_dentry) { ++ dinfo->di_btop = bindex; ++ break; ++ } ++ ++ if (dinfo->di_btop >= 0) { ++ bindex = bbot; ++ p = au_hdentry(dinfo, bindex); ++ for (; bindex >= 0; bindex--, p--) ++ if (p->hd_dentry) { ++ dinfo->di_bbot = bindex; ++ err = 0; ++ break; ++ } ++ } ++ ++ return err; ++} ++ ++static void au_do_hide(struct dentry *dentry) ++{ ++ struct inode *inode; ++ ++ if (d_really_is_positive(dentry)) { ++ inode = d_inode(dentry); ++ if (!d_is_dir(dentry)) { ++ if (inode->i_nlink && !d_unhashed(dentry)) ++ drop_nlink(inode); ++ } else { ++ clear_nlink(inode); ++ /* stop next lookup */ ++ inode->i_flags |= S_DEAD; ++ } ++ smp_mb(); /* necessary? */ ++ } ++ d_drop(dentry); ++} ++ ++static int au_hide_children(struct dentry *parent) ++{ ++ int err, i, j, ndentry; ++ struct au_dcsub_pages dpages; ++ struct au_dpage *dpage; ++ struct dentry *dentry; ++ ++ err = au_dpages_init(&dpages, GFP_NOFS); ++ if (unlikely(err)) ++ goto out; ++ err = au_dcsub_pages(&dpages, parent, NULL, NULL); ++ if (unlikely(err)) ++ goto out_dpages; ++ ++ /* in reverse order */ ++ for (i = dpages.ndpage - 1; i >= 0; i--) { ++ dpage = dpages.dpages + i; ++ ndentry = dpage->ndentry; ++ for (j = ndentry - 1; j >= 0; j--) { ++ dentry = dpage->dentries[j]; ++ if (dentry != parent) ++ au_do_hide(dentry); ++ } ++ } ++ ++out_dpages: ++ au_dpages_free(&dpages); ++out: ++ return err; ++} ++ ++static void au_hide(struct dentry *dentry) ++{ ++ int err; ++ ++ AuDbgDentry(dentry); ++ if (d_is_dir(dentry)) { ++ /* shrink_dcache_parent(dentry); */ ++ err = au_hide_children(dentry); ++ if (unlikely(err)) ++ AuIOErr("%pd, failed hiding children, ignored %d\n", ++ dentry, err); ++ } ++ au_do_hide(dentry); ++} ++ ++/* ++ * By adding a dirty branch, a cached dentry may be affected in various ways. ++ * ++ * a dirty branch is added ++ * - on the top of layers ++ * - in the middle of layers ++ * - to the bottom of layers ++ * ++ * on the added branch there exists ++ * - a whiteout ++ * - a diropq ++ * - a same named entry ++ * + exist ++ * * negative --> positive ++ * * positive --> positive ++ * - type is unchanged ++ * - type is changed ++ * + doesn't exist ++ * * negative --> negative ++ * * positive --> negative (rejected by au_br_del() for non-dir case) ++ * - none ++ */ ++static int au_refresh_by_dinfo(struct dentry *dentry, struct au_dinfo *dinfo, ++ struct au_dinfo *tmp) ++{ ++ int err; ++ aufs_bindex_t bindex, bbot; ++ struct { ++ struct dentry *dentry; ++ struct inode *inode; ++ mode_t mode; ++ } orig_h, tmp_h = { ++ .dentry = NULL ++ }; ++ struct au_hdentry *hd; ++ struct inode *inode, *h_inode; ++ struct dentry *h_dentry; ++ ++ err = 0; ++ AuDebugOn(dinfo->di_btop < 0); ++ orig_h.mode = 0; ++ orig_h.dentry = au_hdentry(dinfo, dinfo->di_btop)->hd_dentry; ++ orig_h.inode = NULL; ++ if (d_is_positive(orig_h.dentry)) { ++ orig_h.inode = d_inode(orig_h.dentry); ++ orig_h.mode = orig_h.inode->i_mode & S_IFMT; ++ } ++ if (tmp->di_btop >= 0) { ++ tmp_h.dentry = au_hdentry(tmp, tmp->di_btop)->hd_dentry; ++ if (d_is_positive(tmp_h.dentry)) { ++ tmp_h.inode = d_inode(tmp_h.dentry); ++ tmp_h.mode = tmp_h.inode->i_mode & S_IFMT; ++ } ++ } ++ ++ inode = NULL; ++ if (d_really_is_positive(dentry)) ++ inode = d_inode(dentry); ++ if (!orig_h.inode) { ++ AuDbg("nagative originally\n"); ++ if (inode) { ++ au_hide(dentry); ++ goto out; ++ } ++ AuDebugOn(inode); ++ AuDebugOn(dinfo->di_btop != dinfo->di_bbot); ++ AuDebugOn(dinfo->di_bdiropq != -1); ++ ++ if (!tmp_h.inode) { ++ AuDbg("negative --> negative\n"); ++ /* should have only one negative lower */ ++ if (tmp->di_btop >= 0 ++ && tmp->di_btop < dinfo->di_btop) { ++ AuDebugOn(tmp->di_btop != tmp->di_bbot); ++ AuDebugOn(dinfo->di_btop != dinfo->di_bbot); ++ au_set_h_dptr(dentry, dinfo->di_btop, NULL); ++ au_di_cp(dinfo, tmp); ++ hd = au_hdentry(tmp, tmp->di_btop); ++ au_set_h_dptr(dentry, tmp->di_btop, ++ dget(hd->hd_dentry)); ++ } ++ au_dbg_verify_dinode(dentry); ++ } else { ++ AuDbg("negative --> positive\n"); ++ /* ++ * similar to the behaviour of creating with bypassing ++ * aufs. ++ * unhash it in order to force an error in the ++ * succeeding create operation. ++ * we should not set S_DEAD here. ++ */ ++ d_drop(dentry); ++ /* au_di_swap(tmp, dinfo); */ ++ au_dbg_verify_dinode(dentry); ++ } ++ } else { ++ AuDbg("positive originally\n"); ++ /* inode may be NULL */ ++ AuDebugOn(inode && (inode->i_mode & S_IFMT) != orig_h.mode); ++ if (!tmp_h.inode) { ++ AuDbg("positive --> negative\n"); ++ /* or bypassing aufs */ ++ au_hide(dentry); ++ if (tmp->di_bwh >= 0 && tmp->di_bwh <= dinfo->di_btop) ++ dinfo->di_bwh = tmp->di_bwh; ++ if (inode) ++ err = au_refresh_hinode_self(inode); ++ au_dbg_verify_dinode(dentry); ++ } else if (orig_h.mode == tmp_h.mode) { ++ AuDbg("positive --> positive, same type\n"); ++ if (!S_ISDIR(orig_h.mode) ++ && dinfo->di_btop > tmp->di_btop) { ++ /* ++ * similar to the behaviour of removing and ++ * creating. ++ */ ++ au_hide(dentry); ++ if (inode) ++ err = au_refresh_hinode_self(inode); ++ au_dbg_verify_dinode(dentry); ++ } else { ++ /* fill empty slots */ ++ if (dinfo->di_btop > tmp->di_btop) ++ dinfo->di_btop = tmp->di_btop; ++ if (dinfo->di_bbot < tmp->di_bbot) ++ dinfo->di_bbot = tmp->di_bbot; ++ dinfo->di_bwh = tmp->di_bwh; ++ dinfo->di_bdiropq = tmp->di_bdiropq; ++ bbot = dinfo->di_bbot; ++ bindex = tmp->di_btop; ++ hd = au_hdentry(tmp, bindex); ++ for (; bindex <= bbot; bindex++, hd++) { ++ if (au_h_dptr(dentry, bindex)) ++ continue; ++ h_dentry = hd->hd_dentry; ++ if (!h_dentry) ++ continue; ++ AuDebugOn(d_is_negative(h_dentry)); ++ h_inode = d_inode(h_dentry); ++ AuDebugOn(orig_h.mode ++ != (h_inode->i_mode ++ & S_IFMT)); ++ au_set_h_dptr(dentry, bindex, ++ dget(h_dentry)); ++ } ++ if (inode) ++ err = au_refresh_hinode(inode, dentry); ++ au_dbg_verify_dinode(dentry); ++ } ++ } else { ++ AuDbg("positive --> positive, different type\n"); ++ /* similar to the behaviour of removing and creating */ ++ au_hide(dentry); ++ if (inode) ++ err = au_refresh_hinode_self(inode); ++ au_dbg_verify_dinode(dentry); ++ } ++ } ++ ++out: ++ return err; ++} ++ ++void au_refresh_dop(struct dentry *dentry, int force_reval) ++{ ++ const struct dentry_operations *dop ++ = force_reval ? &aufs_dop : dentry->d_sb->s_d_op; ++ static const unsigned int mask ++ = DCACHE_OP_REVALIDATE | DCACHE_OP_WEAK_REVALIDATE; ++ ++ BUILD_BUG_ON(sizeof(mask) != sizeof(dentry->d_flags)); ++ ++ if (dentry->d_op == dop) ++ return; ++ ++ AuDbg("%pd\n", dentry); ++ spin_lock(&dentry->d_lock); ++ if (dop == &aufs_dop) ++ dentry->d_flags |= mask; ++ else ++ dentry->d_flags &= ~mask; ++ dentry->d_op = dop; ++ spin_unlock(&dentry->d_lock); ++} ++ ++int au_refresh_dentry(struct dentry *dentry, struct dentry *parent) ++{ ++ int err, ebrange, nbr; ++ unsigned int sigen; ++ struct au_dinfo *dinfo, *tmp; ++ struct super_block *sb; ++ struct inode *inode; ++ ++ DiMustWriteLock(dentry); ++ AuDebugOn(IS_ROOT(dentry)); ++ AuDebugOn(d_really_is_negative(parent)); ++ ++ sb = dentry->d_sb; ++ sigen = au_sigen(sb); ++ err = au_digen_test(parent, sigen); ++ if (unlikely(err)) ++ goto out; ++ ++ nbr = au_sbbot(sb) + 1; ++ dinfo = au_di(dentry); ++ err = au_di_realloc(dinfo, nbr, /*may_shrink*/0); ++ if (unlikely(err)) ++ goto out; ++ ebrange = au_dbrange_test(dentry); ++ if (!ebrange) ++ ebrange = au_do_refresh_hdentry(dentry, parent); ++ ++ if (d_unhashed(dentry) || ebrange /* || dinfo->di_tmpfile */) { ++ AuDebugOn(au_dbtop(dentry) < 0 && au_dbbot(dentry) >= 0); ++ if (d_really_is_positive(dentry)) { ++ inode = d_inode(dentry); ++ err = au_refresh_hinode_self(inode); ++ } ++ au_dbg_verify_dinode(dentry); ++ if (!err) ++ goto out_dgen; /* success */ ++ goto out; ++ } ++ ++ /* temporary dinfo */ ++ AuDbgDentry(dentry); ++ err = -ENOMEM; ++ tmp = au_di_alloc(sb, AuLsc_DI_TMP); ++ if (unlikely(!tmp)) ++ goto out; ++ au_di_swap(tmp, dinfo); ++ /* returns the number of positive dentries */ ++ /* ++ * if current working dir is removed, it returns an error. ++ * but the dentry is legal. ++ */ ++ err = au_lkup_dentry(dentry, /*btop*/0, AuLkup_ALLOW_NEG); ++ AuDbgDentry(dentry); ++ au_di_swap(tmp, dinfo); ++ if (err == -ENOENT) ++ err = 0; ++ if (err >= 0) { ++ /* compare/refresh by dinfo */ ++ AuDbgDentry(dentry); ++ err = au_refresh_by_dinfo(dentry, dinfo, tmp); ++ au_dbg_verify_dinode(dentry); ++ AuTraceErr(err); ++ } ++ au_di_realloc(dinfo, nbr, /*may_shrink*/1); /* harmless if err */ ++ au_rw_write_unlock(&tmp->di_rwsem); ++ au_di_free(tmp); ++ if (unlikely(err)) ++ goto out; ++ ++out_dgen: ++ au_update_digen(dentry); ++out: ++ if (unlikely(err && !(dentry->d_flags & DCACHE_NFSFS_RENAMED))) { ++ AuIOErr("failed refreshing %pd, %d\n", dentry, err); ++ AuDbgDentry(dentry); ++ } ++ AuTraceErr(err); ++ return err; ++} ++ ++static int au_do_h_d_reval(struct dentry *h_dentry, unsigned int flags, ++ struct dentry *dentry, aufs_bindex_t bindex) ++{ ++ int err, valid; ++ ++ err = 0; ++ if (!(h_dentry->d_flags & DCACHE_OP_REVALIDATE)) ++ goto out; ++ ++ AuDbg("b%d\n", bindex); ++ /* ++ * gave up supporting LOOKUP_CREATE/OPEN for lower fs, ++ * due to whiteout and branch permission. ++ */ ++ flags &= ~(/*LOOKUP_PARENT |*/ LOOKUP_OPEN | LOOKUP_CREATE ++ | LOOKUP_FOLLOW | LOOKUP_EXCL); ++ /* it may return tri-state */ ++ valid = h_dentry->d_op->d_revalidate(h_dentry, flags); ++ ++ if (unlikely(valid < 0)) ++ err = valid; ++ else if (!valid) ++ err = -EINVAL; ++ ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++/* todo: remove this */ ++static int h_d_revalidate(struct dentry *dentry, struct inode *inode, ++ unsigned int flags, int do_udba, int dirren) ++{ ++ int err; ++ umode_t mode, h_mode; ++ aufs_bindex_t bindex, btail, btop, ibs, ibe; ++ unsigned char plus, unhashed, is_root, h_plus, h_nfs, tmpfile; ++ struct inode *h_inode, *h_cached_inode; ++ struct dentry *h_dentry; ++ struct qstr *name, *h_name; ++ ++ err = 0; ++ plus = 0; ++ mode = 0; ++ ibs = -1; ++ ibe = -1; ++ unhashed = !!d_unhashed(dentry); ++ is_root = !!IS_ROOT(dentry); ++ name = &dentry->d_name; ++ tmpfile = au_di(dentry)->di_tmpfile; ++ ++ /* ++ * Theoretically, REVAL test should be unnecessary in case of ++ * {FS,I}NOTIFY. ++ * But {fs,i}notify doesn't fire some necessary events, ++ * IN_ATTRIB for atime/nlink/pageio ++ * Let's do REVAL test too. ++ */ ++ if (do_udba && inode) { ++ mode = (inode->i_mode & S_IFMT); ++ plus = (inode->i_nlink > 0); ++ ibs = au_ibtop(inode); ++ ibe = au_ibbot(inode); ++ } ++ ++ btop = au_dbtop(dentry); ++ btail = btop; ++ if (inode && S_ISDIR(inode->i_mode)) ++ btail = au_dbtaildir(dentry); ++ for (bindex = btop; bindex <= btail; bindex++) { ++ h_dentry = au_h_dptr(dentry, bindex); ++ if (!h_dentry) ++ continue; ++ ++ AuDbg("b%d, %pd\n", bindex, h_dentry); ++ h_nfs = !!au_test_nfs(h_dentry->d_sb); ++ spin_lock(&h_dentry->d_lock); ++ h_name = &h_dentry->d_name; ++ if (unlikely(do_udba ++ && !is_root ++ && ((!h_nfs ++ && (unhashed != !!d_unhashed(h_dentry) ++ || (!tmpfile && !dirren ++ && !au_qstreq(name, h_name)) ++ )) ++ || (h_nfs ++ && !(flags & LOOKUP_OPEN) ++ && (h_dentry->d_flags ++ & DCACHE_NFSFS_RENAMED))) ++ )) { ++ int h_unhashed; ++ ++ h_unhashed = d_unhashed(h_dentry); ++ spin_unlock(&h_dentry->d_lock); ++ AuDbg("unhash 0x%x 0x%x, %pd %pd\n", ++ unhashed, h_unhashed, dentry, h_dentry); ++ goto err; ++ } ++ spin_unlock(&h_dentry->d_lock); ++ ++ err = au_do_h_d_reval(h_dentry, flags, dentry, bindex); ++ if (unlikely(err)) ++ /* do not goto err, to keep the errno */ ++ break; ++ ++ /* todo: plink too? */ ++ if (!do_udba) ++ continue; ++ ++ /* UDBA tests */ ++ if (unlikely(!!inode != d_is_positive(h_dentry))) ++ goto err; ++ ++ h_inode = NULL; ++ if (d_is_positive(h_dentry)) ++ h_inode = d_inode(h_dentry); ++ h_plus = plus; ++ h_mode = mode; ++ h_cached_inode = h_inode; ++ if (h_inode) { ++ h_mode = (h_inode->i_mode & S_IFMT); ++ h_plus = (h_inode->i_nlink > 0); ++ } ++ if (inode && ibs <= bindex && bindex <= ibe) ++ h_cached_inode = au_h_iptr(inode, bindex); ++ ++ if (!h_nfs) { ++ if (unlikely(plus != h_plus && !tmpfile)) ++ goto err; ++ } else { ++ if (unlikely(!(h_dentry->d_flags & DCACHE_NFSFS_RENAMED) ++ && !is_root ++ && !IS_ROOT(h_dentry) ++ && unhashed != d_unhashed(h_dentry))) ++ goto err; ++ } ++ if (unlikely(mode != h_mode ++ || h_cached_inode != h_inode)) ++ goto err; ++ continue; ++ ++err: ++ err = -EINVAL; ++ break; ++ } ++ ++ AuTraceErr(err); ++ return err; ++} ++ ++/* todo: consolidate with do_refresh() and au_reval_for_attr() */ ++static int simple_reval_dpath(struct dentry *dentry, unsigned int sigen) ++{ ++ int err; ++ struct dentry *parent; ++ ++ if (!au_digen_test(dentry, sigen)) ++ return 0; ++ ++ parent = dget_parent(dentry); ++ di_read_lock_parent(parent, AuLock_IR); ++ AuDebugOn(au_digen_test(parent, sigen)); ++ au_dbg_verify_gen(parent, sigen); ++ err = au_refresh_dentry(dentry, parent); ++ di_read_unlock(parent, AuLock_IR); ++ dput(parent); ++ AuTraceErr(err); ++ return err; ++} ++ ++int au_reval_dpath(struct dentry *dentry, unsigned int sigen) ++{ ++ int err; ++ struct dentry *d, *parent; ++ ++ if (!au_ftest_si(au_sbi(dentry->d_sb), FAILED_REFRESH_DIR)) ++ return simple_reval_dpath(dentry, sigen); ++ ++ /* slow loop, keep it simple and stupid */ ++ /* cf: au_cpup_dirs() */ ++ err = 0; ++ parent = NULL; ++ while (au_digen_test(dentry, sigen)) { ++ d = dentry; ++ while (1) { ++ dput(parent); ++ parent = dget_parent(d); ++ if (!au_digen_test(parent, sigen)) ++ break; ++ d = parent; ++ } ++ ++ if (d != dentry) ++ di_write_lock_child2(d); ++ ++ /* someone might update our dentry while we were sleeping */ ++ if (au_digen_test(d, sigen)) { ++ /* ++ * todo: consolidate with simple_reval_dpath(), ++ * do_refresh() and au_reval_for_attr(). ++ */ ++ di_read_lock_parent(parent, AuLock_IR); ++ err = au_refresh_dentry(d, parent); ++ di_read_unlock(parent, AuLock_IR); ++ } ++ ++ if (d != dentry) ++ di_write_unlock(d); ++ dput(parent); ++ if (unlikely(err)) ++ break; ++ } ++ ++ return err; ++} ++ ++/* ++ * if valid returns 1, otherwise 0. ++ */ ++static int aufs_d_revalidate(struct dentry *dentry, unsigned int flags) ++{ ++ int valid, err; ++ unsigned int sigen; ++ unsigned char do_udba, dirren; ++ struct super_block *sb; ++ struct inode *inode; ++ ++ /* todo: support rcu-walk? */ ++ if (flags & LOOKUP_RCU) ++ return -ECHILD; ++ ++ valid = 0; ++ if (unlikely(!au_di(dentry))) ++ goto out; ++ ++ valid = 1; ++ sb = dentry->d_sb; ++ /* ++ * todo: very ugly ++ * i_mutex of parent dir may be held, ++ * but we should not return 'invalid' due to busy. ++ */ ++ err = aufs_read_lock(dentry, AuLock_FLUSH | AuLock_DW | AuLock_NOPLM); ++ if (unlikely(err)) { ++ valid = err; ++ AuTraceErr(err); ++ goto out; ++ } ++ inode = NULL; ++ if (d_really_is_positive(dentry)) ++ inode = d_inode(dentry); ++ if (unlikely(inode && au_is_bad_inode(inode))) { ++ err = -EINVAL; ++ AuTraceErr(err); ++ goto out_dgrade; ++ } ++ if (unlikely(au_dbrange_test(dentry))) { ++ err = -EINVAL; ++ AuTraceErr(err); ++ goto out_dgrade; ++ } ++ ++ sigen = au_sigen(sb); ++ if (au_digen_test(dentry, sigen)) { ++ AuDebugOn(IS_ROOT(dentry)); ++ err = au_reval_dpath(dentry, sigen); ++ if (unlikely(err)) { ++ AuTraceErr(err); ++ goto out_dgrade; ++ } ++ } ++ di_downgrade_lock(dentry, AuLock_IR); ++ ++ err = -EINVAL; ++ if (!(flags & (LOOKUP_OPEN | LOOKUP_EMPTY)) ++ && inode ++ && !(inode->i_state && I_LINKABLE) ++ && (IS_DEADDIR(inode) || !inode->i_nlink)) { ++ AuTraceErr(err); ++ goto out_inval; ++ } ++ ++ do_udba = !au_opt_test(au_mntflags(sb), UDBA_NONE); ++ if (do_udba && inode) { ++ aufs_bindex_t btop = au_ibtop(inode); ++ struct inode *h_inode; ++ ++ if (btop >= 0) { ++ h_inode = au_h_iptr(inode, btop); ++ if (h_inode && au_test_higen(inode, h_inode)) { ++ AuTraceErr(err); ++ goto out_inval; ++ } ++ } ++ } ++ ++ dirren = !!au_opt_test(au_mntflags(sb), DIRREN); ++ err = h_d_revalidate(dentry, inode, flags, do_udba, dirren); ++ if (unlikely(!err && do_udba && au_dbtop(dentry) < 0)) { ++ err = -EIO; ++ AuDbg("both of real entry and whiteout found, %p, err %d\n", ++ dentry, err); ++ } ++ goto out_inval; ++ ++out_dgrade: ++ di_downgrade_lock(dentry, AuLock_IR); ++out_inval: ++ aufs_read_unlock(dentry, AuLock_IR); ++ AuTraceErr(err); ++ valid = !err; ++out: ++ if (!valid) { ++ AuDbg("%pd invalid, %d\n", dentry, valid); ++ d_drop(dentry); ++ } ++ return valid; ++} ++ ++static void aufs_d_release(struct dentry *dentry) ++{ ++ if (au_di(dentry)) { ++ au_di_fin(dentry); ++ au_hn_di_reinit(dentry); ++ } ++} ++ ++const struct dentry_operations aufs_dop = { ++ .d_revalidate = aufs_d_revalidate, ++ .d_weak_revalidate = aufs_d_revalidate, ++ .d_release = aufs_d_release ++}; ++ ++/* aufs_dop without d_revalidate */ ++const struct dentry_operations aufs_dop_noreval = { ++ .d_release = aufs_d_release ++}; +diff -Naur null/fs/aufs/dentry.h linux-4.15/fs/aufs/dentry.h +--- /dev/null ++++ linux-4.15/fs/aufs/dentry.h 2018-02-25 02:38:09.199737576 +0100 +@@ -0,0 +1,266 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * lookup and dentry operations ++ */ ++ ++#ifndef __AUFS_DENTRY_H__ ++#define __AUFS_DENTRY_H__ ++ ++#ifdef __KERNEL__ ++ ++#include ++#include "dirren.h" ++#include "rwsem.h" ++ ++struct au_hdentry { ++ struct dentry *hd_dentry; ++ aufs_bindex_t hd_id; ++}; ++ ++struct au_dinfo { ++ atomic_t di_generation; ++ ++ struct au_rwsem di_rwsem; ++ aufs_bindex_t di_btop, di_bbot, di_bwh, di_bdiropq; ++ unsigned char di_tmpfile; /* to allow the different name */ ++ struct au_hdentry *di_hdentry; ++} ____cacheline_aligned_in_smp; ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* flags for au_lkup_dentry() */ ++#define AuLkup_ALLOW_NEG 1 ++#define AuLkup_IGNORE_PERM (1 << 1) ++#define AuLkup_DIRREN (1 << 2) ++#define au_ftest_lkup(flags, name) ((flags) & AuLkup_##name) ++#define au_fset_lkup(flags, name) \ ++ do { (flags) |= AuLkup_##name; } while (0) ++#define au_fclr_lkup(flags, name) \ ++ do { (flags) &= ~AuLkup_##name; } while (0) ++ ++#ifndef CONFIG_AUFS_DIRREN ++#undef AuLkup_DIRREN ++#define AuLkup_DIRREN 0 ++#endif ++ ++struct au_do_lookup_args { ++ unsigned int flags; ++ mode_t type; ++ struct qstr whname, *name; ++ struct au_dr_lookup dirren; ++}; ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* dentry.c */ ++extern const struct dentry_operations aufs_dop, aufs_dop_noreval; ++struct au_branch; ++struct dentry *au_sio_lkup_one(struct qstr *name, struct dentry *parent); ++int au_h_verify(struct dentry *h_dentry, unsigned int udba, struct inode *h_dir, ++ struct dentry *h_parent, struct au_branch *br); ++ ++int au_lkup_dentry(struct dentry *dentry, aufs_bindex_t btop, ++ unsigned int flags); ++int au_lkup_neg(struct dentry *dentry, aufs_bindex_t bindex, int wh); ++int au_refresh_dentry(struct dentry *dentry, struct dentry *parent); ++int au_reval_dpath(struct dentry *dentry, unsigned int sigen); ++void au_refresh_dop(struct dentry *dentry, int force_reval); ++ ++/* dinfo.c */ ++void au_di_init_once(void *_di); ++struct au_dinfo *au_di_alloc(struct super_block *sb, unsigned int lsc); ++void au_di_free(struct au_dinfo *dinfo); ++void au_di_swap(struct au_dinfo *a, struct au_dinfo *b); ++void au_di_cp(struct au_dinfo *dst, struct au_dinfo *src); ++int au_di_init(struct dentry *dentry); ++void au_di_fin(struct dentry *dentry); ++int au_di_realloc(struct au_dinfo *dinfo, int nbr, int may_shrink); ++ ++void di_read_lock(struct dentry *d, int flags, unsigned int lsc); ++void di_read_unlock(struct dentry *d, int flags); ++void di_downgrade_lock(struct dentry *d, int flags); ++void di_write_lock(struct dentry *d, unsigned int lsc); ++void di_write_unlock(struct dentry *d); ++void di_write_lock2_child(struct dentry *d1, struct dentry *d2, int isdir); ++void di_write_lock2_parent(struct dentry *d1, struct dentry *d2, int isdir); ++void di_write_unlock2(struct dentry *d1, struct dentry *d2); ++ ++struct dentry *au_h_dptr(struct dentry *dentry, aufs_bindex_t bindex); ++struct dentry *au_h_d_alias(struct dentry *dentry, aufs_bindex_t bindex); ++aufs_bindex_t au_dbtail(struct dentry *dentry); ++aufs_bindex_t au_dbtaildir(struct dentry *dentry); ++ ++void au_set_h_dptr(struct dentry *dentry, aufs_bindex_t bindex, ++ struct dentry *h_dentry); ++int au_digen_test(struct dentry *dentry, unsigned int sigen); ++int au_dbrange_test(struct dentry *dentry); ++void au_update_digen(struct dentry *dentry); ++void au_update_dbrange(struct dentry *dentry, int do_put_zero); ++void au_update_dbtop(struct dentry *dentry); ++void au_update_dbbot(struct dentry *dentry); ++int au_find_dbindex(struct dentry *dentry, struct dentry *h_dentry); ++ ++/* ---------------------------------------------------------------------- */ ++ ++static inline struct au_dinfo *au_di(struct dentry *dentry) ++{ ++ return dentry->d_fsdata; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* lock subclass for dinfo */ ++enum { ++ AuLsc_DI_CHILD, /* child first */ ++ AuLsc_DI_CHILD2, /* rename(2), link(2), and cpup at hnotify */ ++ AuLsc_DI_CHILD3, /* copyup dirs */ ++ AuLsc_DI_PARENT, ++ AuLsc_DI_PARENT2, ++ AuLsc_DI_PARENT3, ++ AuLsc_DI_TMP /* temp for replacing dinfo */ ++}; ++ ++/* ++ * di_read_lock_child, di_write_lock_child, ++ * di_read_lock_child2, di_write_lock_child2, ++ * di_read_lock_child3, di_write_lock_child3, ++ * di_read_lock_parent, di_write_lock_parent, ++ * di_read_lock_parent2, di_write_lock_parent2, ++ * di_read_lock_parent3, di_write_lock_parent3, ++ */ ++#define AuReadLockFunc(name, lsc) \ ++static inline void di_read_lock_##name(struct dentry *d, int flags) \ ++{ di_read_lock(d, flags, AuLsc_DI_##lsc); } ++ ++#define AuWriteLockFunc(name, lsc) \ ++static inline void di_write_lock_##name(struct dentry *d) \ ++{ di_write_lock(d, AuLsc_DI_##lsc); } ++ ++#define AuRWLockFuncs(name, lsc) \ ++ AuReadLockFunc(name, lsc) \ ++ AuWriteLockFunc(name, lsc) ++ ++AuRWLockFuncs(child, CHILD); ++AuRWLockFuncs(child2, CHILD2); ++AuRWLockFuncs(child3, CHILD3); ++AuRWLockFuncs(parent, PARENT); ++AuRWLockFuncs(parent2, PARENT2); ++AuRWLockFuncs(parent3, PARENT3); ++ ++#undef AuReadLockFunc ++#undef AuWriteLockFunc ++#undef AuRWLockFuncs ++ ++#define DiMustNoWaiters(d) AuRwMustNoWaiters(&au_di(d)->di_rwsem) ++#define DiMustAnyLock(d) AuRwMustAnyLock(&au_di(d)->di_rwsem) ++#define DiMustWriteLock(d) AuRwMustWriteLock(&au_di(d)->di_rwsem) ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* todo: memory barrier? */ ++static inline unsigned int au_digen(struct dentry *d) ++{ ++ return atomic_read(&au_di(d)->di_generation); ++} ++ ++static inline void au_h_dentry_init(struct au_hdentry *hdentry) ++{ ++ hdentry->hd_dentry = NULL; ++} ++ ++static inline struct au_hdentry *au_hdentry(struct au_dinfo *di, ++ aufs_bindex_t bindex) ++{ ++ return di->di_hdentry + bindex; ++} ++ ++static inline void au_hdput(struct au_hdentry *hd) ++{ ++ if (hd) ++ dput(hd->hd_dentry); ++} ++ ++static inline aufs_bindex_t au_dbtop(struct dentry *dentry) ++{ ++ DiMustAnyLock(dentry); ++ return au_di(dentry)->di_btop; ++} ++ ++static inline aufs_bindex_t au_dbbot(struct dentry *dentry) ++{ ++ DiMustAnyLock(dentry); ++ return au_di(dentry)->di_bbot; ++} ++ ++static inline aufs_bindex_t au_dbwh(struct dentry *dentry) ++{ ++ DiMustAnyLock(dentry); ++ return au_di(dentry)->di_bwh; ++} ++ ++static inline aufs_bindex_t au_dbdiropq(struct dentry *dentry) ++{ ++ DiMustAnyLock(dentry); ++ return au_di(dentry)->di_bdiropq; ++} ++ ++/* todo: hard/soft set? */ ++static inline void au_set_dbtop(struct dentry *dentry, aufs_bindex_t bindex) ++{ ++ DiMustWriteLock(dentry); ++ au_di(dentry)->di_btop = bindex; ++} ++ ++static inline void au_set_dbbot(struct dentry *dentry, aufs_bindex_t bindex) ++{ ++ DiMustWriteLock(dentry); ++ au_di(dentry)->di_bbot = bindex; ++} ++ ++static inline void au_set_dbwh(struct dentry *dentry, aufs_bindex_t bindex) ++{ ++ DiMustWriteLock(dentry); ++ /* dbwh can be outside of btop - bbot range */ ++ au_di(dentry)->di_bwh = bindex; ++} ++ ++static inline void au_set_dbdiropq(struct dentry *dentry, aufs_bindex_t bindex) ++{ ++ DiMustWriteLock(dentry); ++ au_di(dentry)->di_bdiropq = bindex; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++#ifdef CONFIG_AUFS_HNOTIFY ++static inline void au_digen_dec(struct dentry *d) ++{ ++ atomic_dec(&au_di(d)->di_generation); ++} ++ ++static inline void au_hn_di_reinit(struct dentry *dentry) ++{ ++ dentry->d_fsdata = NULL; ++} ++#else ++AuStubVoid(au_hn_di_reinit, struct dentry *dentry __maybe_unused) ++#endif /* CONFIG_AUFS_HNOTIFY */ ++ ++#endif /* __KERNEL__ */ ++#endif /* __AUFS_DENTRY_H__ */ +diff -Naur null/fs/aufs/dinfo.c linux-4.15/fs/aufs/dinfo.c +--- /dev/null ++++ linux-4.15/fs/aufs/dinfo.c 2018-02-25 02:38:09.199737576 +0100 +@@ -0,0 +1,553 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * dentry private data ++ */ ++ ++#include "aufs.h" ++ ++void au_di_init_once(void *_dinfo) ++{ ++ struct au_dinfo *dinfo = _dinfo; ++ ++ au_rw_init(&dinfo->di_rwsem); ++} ++ ++struct au_dinfo *au_di_alloc(struct super_block *sb, unsigned int lsc) ++{ ++ struct au_dinfo *dinfo; ++ int nbr, i; ++ ++ dinfo = au_cache_alloc_dinfo(); ++ if (unlikely(!dinfo)) ++ goto out; ++ ++ nbr = au_sbbot(sb) + 1; ++ if (nbr <= 0) ++ nbr = 1; ++ dinfo->di_hdentry = kcalloc(nbr, sizeof(*dinfo->di_hdentry), GFP_NOFS); ++ if (dinfo->di_hdentry) { ++ au_rw_write_lock_nested(&dinfo->di_rwsem, lsc); ++ dinfo->di_btop = -1; ++ dinfo->di_bbot = -1; ++ dinfo->di_bwh = -1; ++ dinfo->di_bdiropq = -1; ++ dinfo->di_tmpfile = 0; ++ for (i = 0; i < nbr; i++) ++ dinfo->di_hdentry[i].hd_id = -1; ++ goto out; ++ } ++ ++ au_cache_free_dinfo(dinfo); ++ dinfo = NULL; ++ ++out: ++ return dinfo; ++} ++ ++void au_di_free(struct au_dinfo *dinfo) ++{ ++ struct au_hdentry *p; ++ aufs_bindex_t bbot, bindex; ++ ++ /* dentry may not be revalidated */ ++ bindex = dinfo->di_btop; ++ if (bindex >= 0) { ++ bbot = dinfo->di_bbot; ++ p = au_hdentry(dinfo, bindex); ++ while (bindex++ <= bbot) ++ au_hdput(p++); ++ } ++ kfree(dinfo->di_hdentry); ++ au_cache_free_dinfo(dinfo); ++} ++ ++void au_di_swap(struct au_dinfo *a, struct au_dinfo *b) ++{ ++ struct au_hdentry *p; ++ aufs_bindex_t bi; ++ ++ AuRwMustWriteLock(&a->di_rwsem); ++ AuRwMustWriteLock(&b->di_rwsem); ++ ++#define DiSwap(v, name) \ ++ do { \ ++ v = a->di_##name; \ ++ a->di_##name = b->di_##name; \ ++ b->di_##name = v; \ ++ } while (0) ++ ++ DiSwap(p, hdentry); ++ DiSwap(bi, btop); ++ DiSwap(bi, bbot); ++ DiSwap(bi, bwh); ++ DiSwap(bi, bdiropq); ++ /* smp_mb(); */ ++ ++#undef DiSwap ++} ++ ++void au_di_cp(struct au_dinfo *dst, struct au_dinfo *src) ++{ ++ AuRwMustWriteLock(&dst->di_rwsem); ++ AuRwMustWriteLock(&src->di_rwsem); ++ ++ dst->di_btop = src->di_btop; ++ dst->di_bbot = src->di_bbot; ++ dst->di_bwh = src->di_bwh; ++ dst->di_bdiropq = src->di_bdiropq; ++ /* smp_mb(); */ ++} ++ ++int au_di_init(struct dentry *dentry) ++{ ++ int err; ++ struct super_block *sb; ++ struct au_dinfo *dinfo; ++ ++ err = 0; ++ sb = dentry->d_sb; ++ dinfo = au_di_alloc(sb, AuLsc_DI_CHILD); ++ if (dinfo) { ++ atomic_set(&dinfo->di_generation, au_sigen(sb)); ++ /* smp_mb(); */ /* atomic_set */ ++ dentry->d_fsdata = dinfo; ++ } else ++ err = -ENOMEM; ++ ++ return err; ++} ++ ++void au_di_fin(struct dentry *dentry) ++{ ++ struct au_dinfo *dinfo; ++ ++ dinfo = au_di(dentry); ++ AuRwDestroy(&dinfo->di_rwsem); ++ au_di_free(dinfo); ++} ++ ++int au_di_realloc(struct au_dinfo *dinfo, int nbr, int may_shrink) ++{ ++ int err, sz; ++ struct au_hdentry *hdp; ++ ++ AuRwMustWriteLock(&dinfo->di_rwsem); ++ ++ err = -ENOMEM; ++ sz = sizeof(*hdp) * (dinfo->di_bbot + 1); ++ if (!sz) ++ sz = sizeof(*hdp); ++ hdp = au_kzrealloc(dinfo->di_hdentry, sz, sizeof(*hdp) * nbr, GFP_NOFS, ++ may_shrink); ++ if (hdp) { ++ dinfo->di_hdentry = hdp; ++ err = 0; ++ } ++ ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static void do_ii_write_lock(struct inode *inode, unsigned int lsc) ++{ ++ switch (lsc) { ++ case AuLsc_DI_CHILD: ++ ii_write_lock_child(inode); ++ break; ++ case AuLsc_DI_CHILD2: ++ ii_write_lock_child2(inode); ++ break; ++ case AuLsc_DI_CHILD3: ++ ii_write_lock_child3(inode); ++ break; ++ case AuLsc_DI_PARENT: ++ ii_write_lock_parent(inode); ++ break; ++ case AuLsc_DI_PARENT2: ++ ii_write_lock_parent2(inode); ++ break; ++ case AuLsc_DI_PARENT3: ++ ii_write_lock_parent3(inode); ++ break; ++ default: ++ BUG(); ++ } ++} ++ ++static void do_ii_read_lock(struct inode *inode, unsigned int lsc) ++{ ++ switch (lsc) { ++ case AuLsc_DI_CHILD: ++ ii_read_lock_child(inode); ++ break; ++ case AuLsc_DI_CHILD2: ++ ii_read_lock_child2(inode); ++ break; ++ case AuLsc_DI_CHILD3: ++ ii_read_lock_child3(inode); ++ break; ++ case AuLsc_DI_PARENT: ++ ii_read_lock_parent(inode); ++ break; ++ case AuLsc_DI_PARENT2: ++ ii_read_lock_parent2(inode); ++ break; ++ case AuLsc_DI_PARENT3: ++ ii_read_lock_parent3(inode); ++ break; ++ default: ++ BUG(); ++ } ++} ++ ++void di_read_lock(struct dentry *d, int flags, unsigned int lsc) ++{ ++ struct inode *inode; ++ ++ au_rw_read_lock_nested(&au_di(d)->di_rwsem, lsc); ++ if (d_really_is_positive(d)) { ++ inode = d_inode(d); ++ if (au_ftest_lock(flags, IW)) ++ do_ii_write_lock(inode, lsc); ++ else if (au_ftest_lock(flags, IR)) ++ do_ii_read_lock(inode, lsc); ++ } ++} ++ ++void di_read_unlock(struct dentry *d, int flags) ++{ ++ struct inode *inode; ++ ++ if (d_really_is_positive(d)) { ++ inode = d_inode(d); ++ if (au_ftest_lock(flags, IW)) { ++ au_dbg_verify_dinode(d); ++ ii_write_unlock(inode); ++ } else if (au_ftest_lock(flags, IR)) { ++ au_dbg_verify_dinode(d); ++ ii_read_unlock(inode); ++ } ++ } ++ au_rw_read_unlock(&au_di(d)->di_rwsem); ++} ++ ++void di_downgrade_lock(struct dentry *d, int flags) ++{ ++ if (d_really_is_positive(d) && au_ftest_lock(flags, IR)) ++ ii_downgrade_lock(d_inode(d)); ++ au_rw_dgrade_lock(&au_di(d)->di_rwsem); ++} ++ ++void di_write_lock(struct dentry *d, unsigned int lsc) ++{ ++ au_rw_write_lock_nested(&au_di(d)->di_rwsem, lsc); ++ if (d_really_is_positive(d)) ++ do_ii_write_lock(d_inode(d), lsc); ++} ++ ++void di_write_unlock(struct dentry *d) ++{ ++ au_dbg_verify_dinode(d); ++ if (d_really_is_positive(d)) ++ ii_write_unlock(d_inode(d)); ++ au_rw_write_unlock(&au_di(d)->di_rwsem); ++} ++ ++void di_write_lock2_child(struct dentry *d1, struct dentry *d2, int isdir) ++{ ++ AuDebugOn(d1 == d2 ++ || d_inode(d1) == d_inode(d2) ++ || d1->d_sb != d2->d_sb); ++ ++ if ((isdir && au_test_subdir(d1, d2)) ++ || d1 < d2) { ++ di_write_lock_child(d1); ++ di_write_lock_child2(d2); ++ } else { ++ di_write_lock_child(d2); ++ di_write_lock_child2(d1); ++ } ++} ++ ++void di_write_lock2_parent(struct dentry *d1, struct dentry *d2, int isdir) ++{ ++ AuDebugOn(d1 == d2 ++ || d_inode(d1) == d_inode(d2) ++ || d1->d_sb != d2->d_sb); ++ ++ if ((isdir && au_test_subdir(d1, d2)) ++ || d1 < d2) { ++ di_write_lock_parent(d1); ++ di_write_lock_parent2(d2); ++ } else { ++ di_write_lock_parent(d2); ++ di_write_lock_parent2(d1); ++ } ++} ++ ++void di_write_unlock2(struct dentry *d1, struct dentry *d2) ++{ ++ di_write_unlock(d1); ++ if (d_inode(d1) == d_inode(d2)) ++ au_rw_write_unlock(&au_di(d2)->di_rwsem); ++ else ++ di_write_unlock(d2); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++struct dentry *au_h_dptr(struct dentry *dentry, aufs_bindex_t bindex) ++{ ++ struct dentry *d; ++ ++ DiMustAnyLock(dentry); ++ ++ if (au_dbtop(dentry) < 0 || bindex < au_dbtop(dentry)) ++ return NULL; ++ AuDebugOn(bindex < 0); ++ d = au_hdentry(au_di(dentry), bindex)->hd_dentry; ++ AuDebugOn(d && au_dcount(d) <= 0); ++ return d; ++} ++ ++/* ++ * extended version of au_h_dptr(). ++ * returns a hashed and positive (or linkable) h_dentry in bindex, NULL, or ++ * error. ++ */ ++struct dentry *au_h_d_alias(struct dentry *dentry, aufs_bindex_t bindex) ++{ ++ struct dentry *h_dentry; ++ struct inode *inode, *h_inode; ++ ++ AuDebugOn(d_really_is_negative(dentry)); ++ ++ h_dentry = NULL; ++ if (au_dbtop(dentry) <= bindex ++ && bindex <= au_dbbot(dentry)) ++ h_dentry = au_h_dptr(dentry, bindex); ++ if (h_dentry && !au_d_linkable(h_dentry)) { ++ dget(h_dentry); ++ goto out; /* success */ ++ } ++ ++ inode = d_inode(dentry); ++ AuDebugOn(bindex < au_ibtop(inode)); ++ AuDebugOn(au_ibbot(inode) < bindex); ++ h_inode = au_h_iptr(inode, bindex); ++ h_dentry = d_find_alias(h_inode); ++ if (h_dentry) { ++ if (!IS_ERR(h_dentry)) { ++ if (!au_d_linkable(h_dentry)) ++ goto out; /* success */ ++ dput(h_dentry); ++ } else ++ goto out; ++ } ++ ++ if (au_opt_test(au_mntflags(dentry->d_sb), PLINK)) { ++ h_dentry = au_plink_lkup(inode, bindex); ++ AuDebugOn(!h_dentry); ++ if (!IS_ERR(h_dentry)) { ++ if (!au_d_hashed_positive(h_dentry)) ++ goto out; /* success */ ++ dput(h_dentry); ++ h_dentry = NULL; ++ } ++ } ++ ++out: ++ AuDbgDentry(h_dentry); ++ return h_dentry; ++} ++ ++aufs_bindex_t au_dbtail(struct dentry *dentry) ++{ ++ aufs_bindex_t bbot, bwh; ++ ++ bbot = au_dbbot(dentry); ++ if (0 <= bbot) { ++ bwh = au_dbwh(dentry); ++ if (!bwh) ++ return bwh; ++ if (0 < bwh && bwh < bbot) ++ return bwh - 1; ++ } ++ return bbot; ++} ++ ++aufs_bindex_t au_dbtaildir(struct dentry *dentry) ++{ ++ aufs_bindex_t bbot, bopq; ++ ++ bbot = au_dbtail(dentry); ++ if (0 <= bbot) { ++ bopq = au_dbdiropq(dentry); ++ if (0 <= bopq && bopq < bbot) ++ bbot = bopq; ++ } ++ return bbot; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++void au_set_h_dptr(struct dentry *dentry, aufs_bindex_t bindex, ++ struct dentry *h_dentry) ++{ ++ struct au_dinfo *dinfo; ++ struct au_hdentry *hd; ++ struct au_branch *br; ++ ++ DiMustWriteLock(dentry); ++ ++ dinfo = au_di(dentry); ++ hd = au_hdentry(dinfo, bindex); ++ au_hdput(hd); ++ hd->hd_dentry = h_dentry; ++ if (h_dentry) { ++ br = au_sbr(dentry->d_sb, bindex); ++ hd->hd_id = br->br_id; ++ } ++} ++ ++int au_dbrange_test(struct dentry *dentry) ++{ ++ int err; ++ aufs_bindex_t btop, bbot; ++ ++ err = 0; ++ btop = au_dbtop(dentry); ++ bbot = au_dbbot(dentry); ++ if (btop >= 0) ++ AuDebugOn(bbot < 0 && btop > bbot); ++ else { ++ err = -EIO; ++ AuDebugOn(bbot >= 0); ++ } ++ ++ return err; ++} ++ ++int au_digen_test(struct dentry *dentry, unsigned int sigen) ++{ ++ int err; ++ ++ err = 0; ++ if (unlikely(au_digen(dentry) != sigen ++ || au_iigen_test(d_inode(dentry), sigen))) ++ err = -EIO; ++ ++ return err; ++} ++ ++void au_update_digen(struct dentry *dentry) ++{ ++ atomic_set(&au_di(dentry)->di_generation, au_sigen(dentry->d_sb)); ++ /* smp_mb(); */ /* atomic_set */ ++} ++ ++void au_update_dbrange(struct dentry *dentry, int do_put_zero) ++{ ++ struct au_dinfo *dinfo; ++ struct dentry *h_d; ++ struct au_hdentry *hdp; ++ aufs_bindex_t bindex, bbot; ++ ++ DiMustWriteLock(dentry); ++ ++ dinfo = au_di(dentry); ++ if (!dinfo || dinfo->di_btop < 0) ++ return; ++ ++ if (do_put_zero) { ++ bbot = dinfo->di_bbot; ++ bindex = dinfo->di_btop; ++ hdp = au_hdentry(dinfo, bindex); ++ for (; bindex <= bbot; bindex++, hdp++) { ++ h_d = hdp->hd_dentry; ++ if (h_d && d_is_negative(h_d)) ++ au_set_h_dptr(dentry, bindex, NULL); ++ } ++ } ++ ++ dinfo->di_btop = 0; ++ hdp = au_hdentry(dinfo, dinfo->di_btop); ++ for (; dinfo->di_btop <= dinfo->di_bbot; dinfo->di_btop++, hdp++) ++ if (hdp->hd_dentry) ++ break; ++ if (dinfo->di_btop > dinfo->di_bbot) { ++ dinfo->di_btop = -1; ++ dinfo->di_bbot = -1; ++ return; ++ } ++ ++ hdp = au_hdentry(dinfo, dinfo->di_bbot); ++ for (; dinfo->di_bbot >= 0; dinfo->di_bbot--, hdp--) ++ if (hdp->hd_dentry) ++ break; ++ AuDebugOn(dinfo->di_btop > dinfo->di_bbot || dinfo->di_bbot < 0); ++} ++ ++void au_update_dbtop(struct dentry *dentry) ++{ ++ aufs_bindex_t bindex, bbot; ++ struct dentry *h_dentry; ++ ++ bbot = au_dbbot(dentry); ++ for (bindex = au_dbtop(dentry); bindex <= bbot; bindex++) { ++ h_dentry = au_h_dptr(dentry, bindex); ++ if (!h_dentry) ++ continue; ++ if (d_is_positive(h_dentry)) { ++ au_set_dbtop(dentry, bindex); ++ return; ++ } ++ au_set_h_dptr(dentry, bindex, NULL); ++ } ++} ++ ++void au_update_dbbot(struct dentry *dentry) ++{ ++ aufs_bindex_t bindex, btop; ++ struct dentry *h_dentry; ++ ++ btop = au_dbtop(dentry); ++ for (bindex = au_dbbot(dentry); bindex >= btop; bindex--) { ++ h_dentry = au_h_dptr(dentry, bindex); ++ if (!h_dentry) ++ continue; ++ if (d_is_positive(h_dentry)) { ++ au_set_dbbot(dentry, bindex); ++ return; ++ } ++ au_set_h_dptr(dentry, bindex, NULL); ++ } ++} ++ ++int au_find_dbindex(struct dentry *dentry, struct dentry *h_dentry) ++{ ++ aufs_bindex_t bindex, bbot; ++ ++ bbot = au_dbbot(dentry); ++ for (bindex = au_dbtop(dentry); bindex <= bbot; bindex++) ++ if (au_h_dptr(dentry, bindex) == h_dentry) ++ return bindex; ++ return -1; ++} +diff -Naur null/fs/aufs/dir.c linux-4.15/fs/aufs/dir.c +--- /dev/null ++++ linux-4.15/fs/aufs/dir.c 2018-02-25 02:38:09.199737576 +0100 +@@ -0,0 +1,759 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * directory operations ++ */ ++ ++#include ++#include "aufs.h" ++ ++void au_add_nlink(struct inode *dir, struct inode *h_dir) ++{ ++ unsigned int nlink; ++ ++ AuDebugOn(!S_ISDIR(dir->i_mode) || !S_ISDIR(h_dir->i_mode)); ++ ++ nlink = dir->i_nlink; ++ nlink += h_dir->i_nlink - 2; ++ if (h_dir->i_nlink < 2) ++ nlink += 2; ++ smp_mb(); /* for i_nlink */ ++ /* 0 can happen in revaliding */ ++ set_nlink(dir, nlink); ++} ++ ++void au_sub_nlink(struct inode *dir, struct inode *h_dir) ++{ ++ unsigned int nlink; ++ ++ AuDebugOn(!S_ISDIR(dir->i_mode) || !S_ISDIR(h_dir->i_mode)); ++ ++ nlink = dir->i_nlink; ++ nlink -= h_dir->i_nlink - 2; ++ if (h_dir->i_nlink < 2) ++ nlink -= 2; ++ smp_mb(); /* for i_nlink */ ++ /* nlink == 0 means the branch-fs is broken */ ++ set_nlink(dir, nlink); ++} ++ ++loff_t au_dir_size(struct file *file, struct dentry *dentry) ++{ ++ loff_t sz; ++ aufs_bindex_t bindex, bbot; ++ struct file *h_file; ++ struct dentry *h_dentry; ++ ++ sz = 0; ++ if (file) { ++ AuDebugOn(!d_is_dir(file->f_path.dentry)); ++ ++ bbot = au_fbbot_dir(file); ++ for (bindex = au_fbtop(file); ++ bindex <= bbot && sz < KMALLOC_MAX_SIZE; ++ bindex++) { ++ h_file = au_hf_dir(file, bindex); ++ if (h_file && file_inode(h_file)) ++ sz += vfsub_f_size_read(h_file); ++ } ++ } else { ++ AuDebugOn(!dentry); ++ AuDebugOn(!d_is_dir(dentry)); ++ ++ bbot = au_dbtaildir(dentry); ++ for (bindex = au_dbtop(dentry); ++ bindex <= bbot && sz < KMALLOC_MAX_SIZE; ++ bindex++) { ++ h_dentry = au_h_dptr(dentry, bindex); ++ if (h_dentry && d_is_positive(h_dentry)) ++ sz += i_size_read(d_inode(h_dentry)); ++ } ++ } ++ if (sz < KMALLOC_MAX_SIZE) ++ sz = roundup_pow_of_two(sz); ++ if (sz > KMALLOC_MAX_SIZE) ++ sz = KMALLOC_MAX_SIZE; ++ else if (sz < NAME_MAX) { ++ BUILD_BUG_ON(AUFS_RDBLK_DEF < NAME_MAX); ++ sz = AUFS_RDBLK_DEF; ++ } ++ return sz; ++} ++ ++struct au_dir_ts_arg { ++ struct dentry *dentry; ++ aufs_bindex_t brid; ++}; ++ ++static void au_do_dir_ts(void *arg) ++{ ++ struct au_dir_ts_arg *a = arg; ++ struct au_dtime dt; ++ struct path h_path; ++ struct inode *dir, *h_dir; ++ struct super_block *sb; ++ struct au_branch *br; ++ struct au_hinode *hdir; ++ int err; ++ aufs_bindex_t btop, bindex; ++ ++ sb = a->dentry->d_sb; ++ if (d_really_is_negative(a->dentry)) ++ goto out; ++ /* no dir->i_mutex lock */ ++ aufs_read_lock(a->dentry, AuLock_DW); /* noflush */ ++ ++ dir = d_inode(a->dentry); ++ btop = au_ibtop(dir); ++ bindex = au_br_index(sb, a->brid); ++ if (bindex < btop) ++ goto out_unlock; ++ ++ br = au_sbr(sb, bindex); ++ h_path.dentry = au_h_dptr(a->dentry, bindex); ++ if (!h_path.dentry) ++ goto out_unlock; ++ h_path.mnt = au_br_mnt(br); ++ au_dtime_store(&dt, a->dentry, &h_path); ++ ++ br = au_sbr(sb, btop); ++ if (!au_br_writable(br->br_perm)) ++ goto out_unlock; ++ h_path.dentry = au_h_dptr(a->dentry, btop); ++ h_path.mnt = au_br_mnt(br); ++ err = vfsub_mnt_want_write(h_path.mnt); ++ if (err) ++ goto out_unlock; ++ hdir = au_hi(dir, btop); ++ au_hn_inode_lock_nested(hdir, AuLsc_I_PARENT); ++ h_dir = au_h_iptr(dir, btop); ++ if (h_dir->i_nlink ++ && timespec_compare(&h_dir->i_mtime, &dt.dt_mtime) < 0) { ++ dt.dt_h_path = h_path; ++ au_dtime_revert(&dt); ++ } ++ au_hn_inode_unlock(hdir); ++ vfsub_mnt_drop_write(h_path.mnt); ++ au_cpup_attr_timesizes(dir); ++ ++out_unlock: ++ aufs_read_unlock(a->dentry, AuLock_DW); ++out: ++ dput(a->dentry); ++ au_nwt_done(&au_sbi(sb)->si_nowait); ++ kfree(arg); ++} ++ ++void au_dir_ts(struct inode *dir, aufs_bindex_t bindex) ++{ ++ int perm, wkq_err; ++ aufs_bindex_t btop; ++ struct au_dir_ts_arg *arg; ++ struct dentry *dentry; ++ struct super_block *sb; ++ ++ IMustLock(dir); ++ ++ dentry = d_find_any_alias(dir); ++ AuDebugOn(!dentry); ++ sb = dentry->d_sb; ++ btop = au_ibtop(dir); ++ if (btop == bindex) { ++ au_cpup_attr_timesizes(dir); ++ goto out; ++ } ++ ++ perm = au_sbr_perm(sb, btop); ++ if (!au_br_writable(perm)) ++ goto out; ++ ++ arg = kmalloc(sizeof(*arg), GFP_NOFS); ++ if (!arg) ++ goto out; ++ ++ arg->dentry = dget(dentry); /* will be dput-ted by au_do_dir_ts() */ ++ arg->brid = au_sbr_id(sb, bindex); ++ wkq_err = au_wkq_nowait(au_do_dir_ts, arg, sb, /*flags*/0); ++ if (unlikely(wkq_err)) { ++ pr_err("wkq %d\n", wkq_err); ++ dput(dentry); ++ kfree(arg); ++ } ++ ++out: ++ dput(dentry); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static int reopen_dir(struct file *file) ++{ ++ int err; ++ unsigned int flags; ++ aufs_bindex_t bindex, btail, btop; ++ struct dentry *dentry, *h_dentry; ++ struct file *h_file; ++ ++ /* open all lower dirs */ ++ dentry = file->f_path.dentry; ++ btop = au_dbtop(dentry); ++ for (bindex = au_fbtop(file); bindex < btop; bindex++) ++ au_set_h_fptr(file, bindex, NULL); ++ au_set_fbtop(file, btop); ++ ++ btail = au_dbtaildir(dentry); ++ for (bindex = au_fbbot_dir(file); btail < bindex; bindex--) ++ au_set_h_fptr(file, bindex, NULL); ++ au_set_fbbot_dir(file, btail); ++ ++ flags = vfsub_file_flags(file); ++ for (bindex = btop; bindex <= btail; bindex++) { ++ h_dentry = au_h_dptr(dentry, bindex); ++ if (!h_dentry) ++ continue; ++ h_file = au_hf_dir(file, bindex); ++ if (h_file) ++ continue; ++ ++ h_file = au_h_open(dentry, bindex, flags, file, /*force_wr*/0); ++ err = PTR_ERR(h_file); ++ if (IS_ERR(h_file)) ++ goto out; /* close all? */ ++ au_set_h_fptr(file, bindex, h_file); ++ } ++ au_update_figen(file); ++ /* todo: necessary? */ ++ /* file->f_ra = h_file->f_ra; */ ++ err = 0; ++ ++out: ++ return err; ++} ++ ++static int do_open_dir(struct file *file, int flags, struct file *h_file) ++{ ++ int err; ++ aufs_bindex_t bindex, btail; ++ struct dentry *dentry, *h_dentry; ++ struct vfsmount *mnt; ++ ++ FiMustWriteLock(file); ++ AuDebugOn(h_file); ++ ++ err = 0; ++ mnt = file->f_path.mnt; ++ dentry = file->f_path.dentry; ++ file->f_version = d_inode(dentry)->i_version; ++ bindex = au_dbtop(dentry); ++ au_set_fbtop(file, bindex); ++ btail = au_dbtaildir(dentry); ++ au_set_fbbot_dir(file, btail); ++ for (; !err && bindex <= btail; bindex++) { ++ h_dentry = au_h_dptr(dentry, bindex); ++ if (!h_dentry) ++ continue; ++ ++ err = vfsub_test_mntns(mnt, h_dentry->d_sb); ++ if (unlikely(err)) ++ break; ++ h_file = au_h_open(dentry, bindex, flags, file, /*force_wr*/0); ++ if (IS_ERR(h_file)) { ++ err = PTR_ERR(h_file); ++ break; ++ } ++ au_set_h_fptr(file, bindex, h_file); ++ } ++ au_update_figen(file); ++ /* todo: necessary? */ ++ /* file->f_ra = h_file->f_ra; */ ++ if (!err) ++ return 0; /* success */ ++ ++ /* close all */ ++ for (bindex = au_fbtop(file); bindex <= btail; bindex++) ++ au_set_h_fptr(file, bindex, NULL); ++ au_set_fbtop(file, -1); ++ au_set_fbbot_dir(file, -1); ++ ++ return err; ++} ++ ++static int aufs_open_dir(struct inode *inode __maybe_unused, ++ struct file *file) ++{ ++ int err; ++ struct super_block *sb; ++ struct au_fidir *fidir; ++ ++ err = -ENOMEM; ++ sb = file->f_path.dentry->d_sb; ++ si_read_lock(sb, AuLock_FLUSH); ++ fidir = au_fidir_alloc(sb); ++ if (fidir) { ++ struct au_do_open_args args = { ++ .open = do_open_dir, ++ .fidir = fidir ++ }; ++ err = au_do_open(file, &args); ++ if (unlikely(err)) ++ kfree(fidir); ++ } ++ si_read_unlock(sb); ++ return err; ++} ++ ++static int aufs_release_dir(struct inode *inode __maybe_unused, ++ struct file *file) ++{ ++ struct au_vdir *vdir_cache; ++ struct au_finfo *finfo; ++ struct au_fidir *fidir; ++ struct au_hfile *hf; ++ aufs_bindex_t bindex, bbot; ++ ++ finfo = au_fi(file); ++ fidir = finfo->fi_hdir; ++ if (fidir) { ++ au_hbl_del(&finfo->fi_hlist, ++ &au_sbi(file->f_path.dentry->d_sb)->si_files); ++ vdir_cache = fidir->fd_vdir_cache; /* lock-free */ ++ if (vdir_cache) ++ au_vdir_free(vdir_cache); ++ ++ bindex = finfo->fi_btop; ++ if (bindex >= 0) { ++ hf = fidir->fd_hfile + bindex; ++ /* ++ * calls fput() instead of filp_close(), ++ * since no dnotify or lock for the lower file. ++ */ ++ bbot = fidir->fd_bbot; ++ for (; bindex <= bbot; bindex++, hf++) ++ if (hf->hf_file) ++ au_hfput(hf, /*execed*/0); ++ } ++ kfree(fidir); ++ finfo->fi_hdir = NULL; ++ } ++ au_finfo_fin(file); ++ return 0; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static int au_do_flush_dir(struct file *file, fl_owner_t id) ++{ ++ int err; ++ aufs_bindex_t bindex, bbot; ++ struct file *h_file; ++ ++ err = 0; ++ bbot = au_fbbot_dir(file); ++ for (bindex = au_fbtop(file); !err && bindex <= bbot; bindex++) { ++ h_file = au_hf_dir(file, bindex); ++ if (h_file) ++ err = vfsub_flush(h_file, id); ++ } ++ return err; ++} ++ ++static int aufs_flush_dir(struct file *file, fl_owner_t id) ++{ ++ return au_do_flush(file, id, au_do_flush_dir); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static int au_do_fsync_dir_no_file(struct dentry *dentry, int datasync) ++{ ++ int err; ++ aufs_bindex_t bbot, bindex; ++ struct inode *inode; ++ struct super_block *sb; ++ ++ err = 0; ++ sb = dentry->d_sb; ++ inode = d_inode(dentry); ++ IMustLock(inode); ++ bbot = au_dbbot(dentry); ++ for (bindex = au_dbtop(dentry); !err && bindex <= bbot; bindex++) { ++ struct path h_path; ++ ++ if (au_test_ro(sb, bindex, inode)) ++ continue; ++ h_path.dentry = au_h_dptr(dentry, bindex); ++ if (!h_path.dentry) ++ continue; ++ ++ h_path.mnt = au_sbr_mnt(sb, bindex); ++ err = vfsub_fsync(NULL, &h_path, datasync); ++ } ++ ++ return err; ++} ++ ++static int au_do_fsync_dir(struct file *file, int datasync) ++{ ++ int err; ++ aufs_bindex_t bbot, bindex; ++ struct file *h_file; ++ struct super_block *sb; ++ struct inode *inode; ++ ++ err = au_reval_and_lock_fdi(file, reopen_dir, /*wlock*/1, /*fi_lsc*/0); ++ if (unlikely(err)) ++ goto out; ++ ++ inode = file_inode(file); ++ sb = inode->i_sb; ++ bbot = au_fbbot_dir(file); ++ for (bindex = au_fbtop(file); !err && bindex <= bbot; bindex++) { ++ h_file = au_hf_dir(file, bindex); ++ if (!h_file || au_test_ro(sb, bindex, inode)) ++ continue; ++ ++ err = vfsub_fsync(h_file, &h_file->f_path, datasync); ++ } ++ ++out: ++ return err; ++} ++ ++/* ++ * @file may be NULL ++ */ ++static int aufs_fsync_dir(struct file *file, loff_t start, loff_t end, ++ int datasync) ++{ ++ int err; ++ struct dentry *dentry; ++ struct inode *inode; ++ struct super_block *sb; ++ ++ err = 0; ++ dentry = file->f_path.dentry; ++ inode = d_inode(dentry); ++ inode_lock(inode); ++ sb = dentry->d_sb; ++ si_noflush_read_lock(sb); ++ if (file) ++ err = au_do_fsync_dir(file, datasync); ++ else { ++ di_write_lock_child(dentry); ++ err = au_do_fsync_dir_no_file(dentry, datasync); ++ } ++ au_cpup_attr_timesizes(inode); ++ di_write_unlock(dentry); ++ if (file) ++ fi_write_unlock(file); ++ ++ si_read_unlock(sb); ++ inode_unlock(inode); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static int aufs_iterate_shared(struct file *file, struct dir_context *ctx) ++{ ++ int err; ++ struct dentry *dentry; ++ struct inode *inode, *h_inode; ++ struct super_block *sb; ++ ++ AuDbg("%pD, ctx{%pf, %llu}\n", file, ctx->actor, ctx->pos); ++ ++ dentry = file->f_path.dentry; ++ inode = d_inode(dentry); ++ IMustLock(inode); ++ ++ sb = dentry->d_sb; ++ si_read_lock(sb, AuLock_FLUSH); ++ err = au_reval_and_lock_fdi(file, reopen_dir, /*wlock*/1, /*fi_lsc*/0); ++ if (unlikely(err)) ++ goto out; ++ err = au_alive_dir(dentry); ++ if (!err) ++ err = au_vdir_init(file); ++ di_downgrade_lock(dentry, AuLock_IR); ++ if (unlikely(err)) ++ goto out_unlock; ++ ++ h_inode = au_h_iptr(inode, au_ibtop(inode)); ++ if (!au_test_nfsd()) { ++ err = au_vdir_fill_de(file, ctx); ++ fsstack_copy_attr_atime(inode, h_inode); ++ } else { ++ /* ++ * nfsd filldir may call lookup_one_len(), vfs_getattr(), ++ * encode_fh() and others. ++ */ ++ atomic_inc(&h_inode->i_count); ++ di_read_unlock(dentry, AuLock_IR); ++ si_read_unlock(sb); ++ err = au_vdir_fill_de(file, ctx); ++ fsstack_copy_attr_atime(inode, h_inode); ++ fi_write_unlock(file); ++ iput(h_inode); ++ ++ AuTraceErr(err); ++ return err; ++ } ++ ++out_unlock: ++ di_read_unlock(dentry, AuLock_IR); ++ fi_write_unlock(file); ++out: ++ si_read_unlock(sb); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++#define AuTestEmpty_WHONLY 1 ++#define AuTestEmpty_CALLED (1 << 1) ++#define AuTestEmpty_SHWH (1 << 2) ++#define au_ftest_testempty(flags, name) ((flags) & AuTestEmpty_##name) ++#define au_fset_testempty(flags, name) \ ++ do { (flags) |= AuTestEmpty_##name; } while (0) ++#define au_fclr_testempty(flags, name) \ ++ do { (flags) &= ~AuTestEmpty_##name; } while (0) ++ ++#ifndef CONFIG_AUFS_SHWH ++#undef AuTestEmpty_SHWH ++#define AuTestEmpty_SHWH 0 ++#endif ++ ++struct test_empty_arg { ++ struct dir_context ctx; ++ struct au_nhash *whlist; ++ unsigned int flags; ++ int err; ++ aufs_bindex_t bindex; ++}; ++ ++static int test_empty_cb(struct dir_context *ctx, const char *__name, ++ int namelen, loff_t offset __maybe_unused, u64 ino, ++ unsigned int d_type) ++{ ++ struct test_empty_arg *arg = container_of(ctx, struct test_empty_arg, ++ ctx); ++ char *name = (void *)__name; ++ ++ arg->err = 0; ++ au_fset_testempty(arg->flags, CALLED); ++ /* smp_mb(); */ ++ if (name[0] == '.' ++ && (namelen == 1 || (name[1] == '.' && namelen == 2))) ++ goto out; /* success */ ++ ++ if (namelen <= AUFS_WH_PFX_LEN ++ || memcmp(name, AUFS_WH_PFX, AUFS_WH_PFX_LEN)) { ++ if (au_ftest_testempty(arg->flags, WHONLY) ++ && !au_nhash_test_known_wh(arg->whlist, name, namelen)) ++ arg->err = -ENOTEMPTY; ++ goto out; ++ } ++ ++ name += AUFS_WH_PFX_LEN; ++ namelen -= AUFS_WH_PFX_LEN; ++ if (!au_nhash_test_known_wh(arg->whlist, name, namelen)) ++ arg->err = au_nhash_append_wh ++ (arg->whlist, name, namelen, ino, d_type, arg->bindex, ++ au_ftest_testempty(arg->flags, SHWH)); ++ ++out: ++ /* smp_mb(); */ ++ AuTraceErr(arg->err); ++ return arg->err; ++} ++ ++static int do_test_empty(struct dentry *dentry, struct test_empty_arg *arg) ++{ ++ int err; ++ struct file *h_file; ++ ++ h_file = au_h_open(dentry, arg->bindex, ++ O_RDONLY | O_NONBLOCK | O_DIRECTORY | O_LARGEFILE, ++ /*file*/NULL, /*force_wr*/0); ++ err = PTR_ERR(h_file); ++ if (IS_ERR(h_file)) ++ goto out; ++ ++ err = 0; ++ if (!au_opt_test(au_mntflags(dentry->d_sb), UDBA_NONE) ++ && !file_inode(h_file)->i_nlink) ++ goto out_put; ++ ++ do { ++ arg->err = 0; ++ au_fclr_testempty(arg->flags, CALLED); ++ /* smp_mb(); */ ++ err = vfsub_iterate_dir(h_file, &arg->ctx); ++ if (err >= 0) ++ err = arg->err; ++ } while (!err && au_ftest_testempty(arg->flags, CALLED)); ++ ++out_put: ++ fput(h_file); ++ au_sbr_put(dentry->d_sb, arg->bindex); ++out: ++ return err; ++} ++ ++struct do_test_empty_args { ++ int *errp; ++ struct dentry *dentry; ++ struct test_empty_arg *arg; ++}; ++ ++static void call_do_test_empty(void *args) ++{ ++ struct do_test_empty_args *a = args; ++ *a->errp = do_test_empty(a->dentry, a->arg); ++} ++ ++static int sio_test_empty(struct dentry *dentry, struct test_empty_arg *arg) ++{ ++ int err, wkq_err; ++ struct dentry *h_dentry; ++ struct inode *h_inode; ++ ++ h_dentry = au_h_dptr(dentry, arg->bindex); ++ h_inode = d_inode(h_dentry); ++ /* todo: i_mode changes anytime? */ ++ vfsub_inode_lock_shared_nested(h_inode, AuLsc_I_CHILD); ++ err = au_test_h_perm_sio(h_inode, MAY_EXEC | MAY_READ); ++ inode_unlock_shared(h_inode); ++ if (!err) ++ err = do_test_empty(dentry, arg); ++ else { ++ struct do_test_empty_args args = { ++ .errp = &err, ++ .dentry = dentry, ++ .arg = arg ++ }; ++ unsigned int flags = arg->flags; ++ ++ wkq_err = au_wkq_wait(call_do_test_empty, &args); ++ if (unlikely(wkq_err)) ++ err = wkq_err; ++ arg->flags = flags; ++ } ++ ++ return err; ++} ++ ++int au_test_empty_lower(struct dentry *dentry) ++{ ++ int err; ++ unsigned int rdhash; ++ aufs_bindex_t bindex, btop, btail; ++ struct au_nhash whlist; ++ struct test_empty_arg arg = { ++ .ctx = { ++ .actor = test_empty_cb ++ } ++ }; ++ int (*test_empty)(struct dentry *dentry, struct test_empty_arg *arg); ++ ++ SiMustAnyLock(dentry->d_sb); ++ ++ rdhash = au_sbi(dentry->d_sb)->si_rdhash; ++ if (!rdhash) ++ rdhash = au_rdhash_est(au_dir_size(/*file*/NULL, dentry)); ++ err = au_nhash_alloc(&whlist, rdhash, GFP_NOFS); ++ if (unlikely(err)) ++ goto out; ++ ++ arg.flags = 0; ++ arg.whlist = &whlist; ++ btop = au_dbtop(dentry); ++ if (au_opt_test(au_mntflags(dentry->d_sb), SHWH)) ++ au_fset_testempty(arg.flags, SHWH); ++ test_empty = do_test_empty; ++ if (au_opt_test(au_mntflags(dentry->d_sb), DIRPERM1)) ++ test_empty = sio_test_empty; ++ arg.bindex = btop; ++ err = test_empty(dentry, &arg); ++ if (unlikely(err)) ++ goto out_whlist; ++ ++ au_fset_testempty(arg.flags, WHONLY); ++ btail = au_dbtaildir(dentry); ++ for (bindex = btop + 1; !err && bindex <= btail; bindex++) { ++ struct dentry *h_dentry; ++ ++ h_dentry = au_h_dptr(dentry, bindex); ++ if (h_dentry && d_is_positive(h_dentry)) { ++ arg.bindex = bindex; ++ err = test_empty(dentry, &arg); ++ } ++ } ++ ++out_whlist: ++ au_nhash_wh_free(&whlist); ++out: ++ return err; ++} ++ ++int au_test_empty(struct dentry *dentry, struct au_nhash *whlist) ++{ ++ int err; ++ struct test_empty_arg arg = { ++ .ctx = { ++ .actor = test_empty_cb ++ } ++ }; ++ aufs_bindex_t bindex, btail; ++ ++ err = 0; ++ arg.whlist = whlist; ++ arg.flags = AuTestEmpty_WHONLY; ++ if (au_opt_test(au_mntflags(dentry->d_sb), SHWH)) ++ au_fset_testempty(arg.flags, SHWH); ++ btail = au_dbtaildir(dentry); ++ for (bindex = au_dbtop(dentry); !err && bindex <= btail; bindex++) { ++ struct dentry *h_dentry; ++ ++ h_dentry = au_h_dptr(dentry, bindex); ++ if (h_dentry && d_is_positive(h_dentry)) { ++ arg.bindex = bindex; ++ err = sio_test_empty(dentry, &arg); ++ } ++ } ++ ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++const struct file_operations aufs_dir_fop = { ++ .owner = THIS_MODULE, ++ .llseek = default_llseek, ++ .read = generic_read_dir, ++ .iterate_shared = aufs_iterate_shared, ++ .unlocked_ioctl = aufs_ioctl_dir, ++#ifdef CONFIG_COMPAT ++ .compat_ioctl = aufs_compat_ioctl_dir, ++#endif ++ .open = aufs_open_dir, ++ .release = aufs_release_dir, ++ .flush = aufs_flush_dir, ++ .fsync = aufs_fsync_dir ++}; +diff -Naur null/fs/aufs/dir.h linux-4.15/fs/aufs/dir.h +--- /dev/null ++++ linux-4.15/fs/aufs/dir.h 2018-02-25 02:38:09.199737576 +0100 +@@ -0,0 +1,131 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * directory operations ++ */ ++ ++#ifndef __AUFS_DIR_H__ ++#define __AUFS_DIR_H__ ++ ++#ifdef __KERNEL__ ++ ++#include ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* need to be faster and smaller */ ++ ++struct au_nhash { ++ unsigned int nh_num; ++ struct hlist_head *nh_head; ++}; ++ ++struct au_vdir_destr { ++ unsigned char len; ++ unsigned char name[0]; ++} __packed; ++ ++struct au_vdir_dehstr { ++ struct hlist_node hash; ++ struct au_vdir_destr *str; ++} ____cacheline_aligned_in_smp; ++ ++struct au_vdir_de { ++ ino_t de_ino; ++ unsigned char de_type; ++ /* caution: packed */ ++ struct au_vdir_destr de_str; ++} __packed; ++ ++struct au_vdir_wh { ++ struct hlist_node wh_hash; ++#ifdef CONFIG_AUFS_SHWH ++ ino_t wh_ino; ++ aufs_bindex_t wh_bindex; ++ unsigned char wh_type; ++#else ++ aufs_bindex_t wh_bindex; ++#endif ++ /* caution: packed */ ++ struct au_vdir_destr wh_str; ++} __packed; ++ ++union au_vdir_deblk_p { ++ unsigned char *deblk; ++ struct au_vdir_de *de; ++}; ++ ++struct au_vdir { ++ unsigned char **vd_deblk; ++ unsigned long vd_nblk; ++ struct { ++ unsigned long ul; ++ union au_vdir_deblk_p p; ++ } vd_last; ++ ++ unsigned long vd_version; ++ unsigned int vd_deblk_sz; ++ unsigned long vd_jiffy; ++} ____cacheline_aligned_in_smp; ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* dir.c */ ++extern const struct file_operations aufs_dir_fop; ++void au_add_nlink(struct inode *dir, struct inode *h_dir); ++void au_sub_nlink(struct inode *dir, struct inode *h_dir); ++loff_t au_dir_size(struct file *file, struct dentry *dentry); ++void au_dir_ts(struct inode *dir, aufs_bindex_t bsrc); ++int au_test_empty_lower(struct dentry *dentry); ++int au_test_empty(struct dentry *dentry, struct au_nhash *whlist); ++ ++/* vdir.c */ ++unsigned int au_rdhash_est(loff_t sz); ++int au_nhash_alloc(struct au_nhash *nhash, unsigned int num_hash, gfp_t gfp); ++void au_nhash_wh_free(struct au_nhash *whlist); ++int au_nhash_test_longer_wh(struct au_nhash *whlist, aufs_bindex_t btgt, ++ int limit); ++int au_nhash_test_known_wh(struct au_nhash *whlist, char *name, int nlen); ++int au_nhash_append_wh(struct au_nhash *whlist, char *name, int nlen, ino_t ino, ++ unsigned int d_type, aufs_bindex_t bindex, ++ unsigned char shwh); ++void au_vdir_free(struct au_vdir *vdir); ++int au_vdir_init(struct file *file); ++int au_vdir_fill_de(struct file *file, struct dir_context *ctx); ++ ++/* ioctl.c */ ++long aufs_ioctl_dir(struct file *file, unsigned int cmd, unsigned long arg); ++ ++#ifdef CONFIG_AUFS_RDU ++/* rdu.c */ ++long au_rdu_ioctl(struct file *file, unsigned int cmd, unsigned long arg); ++#ifdef CONFIG_COMPAT ++long au_rdu_compat_ioctl(struct file *file, unsigned int cmd, ++ unsigned long arg); ++#endif ++#else ++AuStub(long, au_rdu_ioctl, return -EINVAL, struct file *file, ++ unsigned int cmd, unsigned long arg) ++#ifdef CONFIG_COMPAT ++AuStub(long, au_rdu_compat_ioctl, return -EINVAL, struct file *file, ++ unsigned int cmd, unsigned long arg) ++#endif ++#endif ++ ++#endif /* __KERNEL__ */ ++#endif /* __AUFS_DIR_H__ */ +diff -Naur null/fs/aufs/dirren.c linux-4.15/fs/aufs/dirren.c +--- /dev/null ++++ linux-4.15/fs/aufs/dirren.c 2018-02-25 02:38:09.199737576 +0100 +@@ -0,0 +1,1315 @@ ++/* ++ * Copyright (C) 2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * special handling in renaming a directoy ++ * in order to support looking-up the before-renamed name on the lower readonly ++ * branches ++ */ ++ ++#include ++#include "aufs.h" ++ ++static void au_dr_hino_del(struct au_dr_br *dr, struct au_dr_hino *ent) ++{ ++ int idx; ++ ++ idx = au_dr_ihash(ent->dr_h_ino); ++ au_hbl_del(&ent->dr_hnode, dr->dr_h_ino + idx); ++} ++ ++static int au_dr_hino_test_empty(struct au_dr_br *dr) ++{ ++ int ret, i; ++ struct hlist_bl_head *hbl; ++ ++ ret = 1; ++ for (i = 0; ret && i < AuDirren_NHASH; i++) { ++ hbl = dr->dr_h_ino + i; ++ hlist_bl_lock(hbl); ++ ret &= hlist_bl_empty(hbl); ++ hlist_bl_unlock(hbl); ++ } ++ ++ return ret; ++} ++ ++static struct au_dr_hino *au_dr_hino_find(struct au_dr_br *dr, ino_t ino) ++{ ++ struct au_dr_hino *found, *ent; ++ struct hlist_bl_head *hbl; ++ struct hlist_bl_node *pos; ++ int idx; ++ ++ found = NULL; ++ idx = au_dr_ihash(ino); ++ hbl = dr->dr_h_ino + idx; ++ hlist_bl_lock(hbl); ++ hlist_bl_for_each_entry(ent, pos, hbl, dr_hnode) ++ if (ent->dr_h_ino == ino) { ++ found = ent; ++ break; ++ } ++ hlist_bl_unlock(hbl); ++ ++ return found; ++} ++ ++int au_dr_hino_test_add(struct au_dr_br *dr, ino_t ino, ++ struct au_dr_hino *add_ent) ++{ ++ int found, idx; ++ struct hlist_bl_head *hbl; ++ struct hlist_bl_node *pos; ++ struct au_dr_hino *ent; ++ ++ found = 0; ++ idx = au_dr_ihash(ino); ++ hbl = dr->dr_h_ino + idx; ++#if 0 ++ { ++ struct hlist_bl_node *tmp; ++ ++ hlist_bl_for_each_entry_safe(ent, pos, tmp, hbl, dr_hnode) ++ AuDbg("hi%llu\n", (unsigned long long)ent->dr_h_ino); ++ } ++#endif ++ hlist_bl_lock(hbl); ++ hlist_bl_for_each_entry(ent, pos, hbl, dr_hnode) ++ if (ent->dr_h_ino == ino) { ++ found = 1; ++ break; ++ } ++ if (!found && add_ent) ++ hlist_bl_add_head(&add_ent->dr_hnode, hbl); ++ hlist_bl_unlock(hbl); ++ ++ if (!found && add_ent) ++ AuDbg("i%llu added\n", (unsigned long long)add_ent->dr_h_ino); ++ ++ return found; ++} ++ ++void au_dr_hino_free(struct au_dr_br *dr) ++{ ++ int i; ++ struct hlist_bl_head *hbl; ++ struct hlist_bl_node *pos, *tmp; ++ struct au_dr_hino *ent; ++ ++ /* SiMustWriteLock(sb); */ ++ ++ for (i = 0; i < AuDirren_NHASH; i++) { ++ hbl = dr->dr_h_ino + i; ++ /* no spinlock since sbinfo must be write-locked */ ++ hlist_bl_for_each_entry_safe(ent, pos, tmp, hbl, dr_hnode) ++ kfree(ent); ++ INIT_HLIST_BL_HEAD(hbl); ++ } ++} ++ ++/* returns the number of inodes or an error */ ++static int au_dr_hino_store(struct super_block *sb, struct au_branch *br, ++ struct file *hinofile) ++{ ++ int err, i; ++ ssize_t ssz; ++ loff_t pos, oldsize; ++ __be64 u64; ++ struct inode *hinoinode; ++ struct hlist_bl_head *hbl; ++ struct hlist_bl_node *n1, *n2; ++ struct au_dr_hino *ent; ++ ++ SiMustWriteLock(sb); ++ AuDebugOn(!au_br_writable(br->br_perm)); ++ ++ hinoinode = file_inode(hinofile); ++ oldsize = i_size_read(hinoinode); ++ ++ err = 0; ++ pos = 0; ++ hbl = br->br_dirren.dr_h_ino; ++ for (i = 0; !err && i < AuDirren_NHASH; i++, hbl++) { ++ /* no bit-lock since sbinfo must be write-locked */ ++ hlist_bl_for_each_entry_safe(ent, n1, n2, hbl, dr_hnode) { ++ AuDbg("hi%llu, %pD2\n", ++ (unsigned long long)ent->dr_h_ino, hinofile); ++ u64 = cpu_to_be64(ent->dr_h_ino); ++ ssz = vfsub_write_k(hinofile, &u64, sizeof(u64), &pos); ++ if (ssz == sizeof(u64)) ++ continue; ++ ++ /* write error */ ++ pr_err("ssz %zd, %pD2\n", ssz, hinofile); ++ err = -ENOSPC; ++ if (ssz < 0) ++ err = ssz; ++ break; ++ } ++ } ++ /* regardless the error */ ++ if (pos < oldsize) { ++ err = vfsub_trunc(&hinofile->f_path, pos, /*attr*/0, hinofile); ++ AuTraceErr(err); ++ } ++ ++ AuTraceErr(err); ++ return err; ++} ++ ++static int au_dr_hino_load(struct au_dr_br *dr, struct file *hinofile) ++{ ++ int err, hidx; ++ ssize_t ssz; ++ size_t sz, n; ++ loff_t pos; ++ uint64_t u64; ++ struct au_dr_hino *ent; ++ struct inode *hinoinode; ++ struct hlist_bl_head *hbl; ++ ++ err = 0; ++ pos = 0; ++ hbl = dr->dr_h_ino; ++ hinoinode = file_inode(hinofile); ++ sz = i_size_read(hinoinode); ++ AuDebugOn(sz % sizeof(u64)); ++ n = sz / sizeof(u64); ++ while (n--) { ++ ssz = vfsub_read_k(hinofile, &u64, sizeof(u64), &pos); ++ if (unlikely(ssz != sizeof(u64))) { ++ pr_err("ssz %zd, %pD2\n", ssz, hinofile); ++ err = -EINVAL; ++ if (ssz < 0) ++ err = ssz; ++ goto out_free; ++ } ++ ++ ent = kmalloc(sizeof(*ent), GFP_NOFS); ++ if (!ent) { ++ err = -ENOMEM; ++ AuTraceErr(err); ++ goto out_free; ++ } ++ ent->dr_h_ino = be64_to_cpu((__force __be64)u64); ++ AuDbg("hi%llu, %pD2\n", ++ (unsigned long long)ent->dr_h_ino, hinofile); ++ hidx = au_dr_ihash(ent->dr_h_ino); ++ au_hbl_add(&ent->dr_hnode, hbl + hidx); ++ } ++ goto out; /* success */ ++ ++out_free: ++ au_dr_hino_free(dr); ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++/* ++ * @bindex/@br is a switch to distinguish whether suspending hnotify or not. ++ * @path is a switch to distinguish load and store. ++ */ ++static int au_dr_hino(struct super_block *sb, aufs_bindex_t bindex, ++ struct au_branch *br, const struct path *path) ++{ ++ int err, flags; ++ unsigned char load, suspend; ++ struct file *hinofile; ++ struct au_hinode *hdir; ++ struct inode *dir, *delegated; ++ struct path hinopath; ++ struct qstr hinoname = QSTR_INIT(AUFS_WH_DR_BRHINO, ++ sizeof(AUFS_WH_DR_BRHINO) - 1); ++ ++ AuDebugOn(bindex < 0 && !br); ++ AuDebugOn(bindex >= 0 && br); ++ ++ err = -EINVAL; ++ suspend = !br; ++ if (suspend) ++ br = au_sbr(sb, bindex); ++ load = !!path; ++ if (!load) { ++ path = &br->br_path; ++ AuDebugOn(!au_br_writable(br->br_perm)); ++ if (unlikely(!au_br_writable(br->br_perm))) ++ goto out; ++ } ++ ++ hdir = NULL; ++ if (suspend) { ++ dir = d_inode(sb->s_root); ++ hdir = au_hinode(au_ii(dir), bindex); ++ dir = hdir->hi_inode; ++ au_hn_inode_lock_nested(hdir, AuLsc_I_CHILD); ++ } else { ++ dir = d_inode(path->dentry); ++ inode_lock_nested(dir, AuLsc_I_CHILD); ++ } ++ hinopath.dentry = vfsub_lkup_one(&hinoname, path->dentry); ++ err = PTR_ERR(hinopath.dentry); ++ if (IS_ERR(hinopath.dentry)) ++ goto out_unlock; ++ ++ err = 0; ++ flags = O_RDONLY; ++ if (load) { ++ if (d_is_negative(hinopath.dentry)) ++ goto out_dput; /* success */ ++ } else { ++ if (au_dr_hino_test_empty(&br->br_dirren)) { ++ if (d_is_positive(hinopath.dentry)) { ++ delegated = NULL; ++ err = vfsub_unlink(dir, &hinopath, &delegated, ++ /*force*/0); ++ AuTraceErr(err); ++ if (unlikely(err)) ++ pr_err("ignored err %d, %pd2\n", ++ err, hinopath.dentry); ++ if (unlikely(err == -EWOULDBLOCK)) ++ iput(delegated); ++ err = 0; ++ } ++ goto out_dput; ++ } else if (!d_is_positive(hinopath.dentry)) { ++ err = vfsub_create(dir, &hinopath, 0600, ++ /*want_excl*/false); ++ AuTraceErr(err); ++ if (unlikely(err)) ++ goto out_dput; ++ } ++ flags = O_WRONLY; ++ } ++ hinopath.mnt = path->mnt; ++ hinofile = vfsub_dentry_open(&hinopath, flags); ++ if (suspend) ++ au_hn_inode_unlock(hdir); ++ else ++ inode_unlock(dir); ++ dput(hinopath.dentry); ++ AuTraceErrPtr(hinofile); ++ if (IS_ERR(hinofile)) { ++ err = PTR_ERR(hinofile); ++ goto out; ++ } ++ ++ if (load) ++ err = au_dr_hino_load(&br->br_dirren, hinofile); ++ else ++ err = au_dr_hino_store(sb, br, hinofile); ++ fput(hinofile); ++ goto out; ++ ++out_dput: ++ dput(hinopath.dentry); ++out_unlock: ++ if (suspend) ++ au_hn_inode_unlock(hdir); ++ else ++ inode_unlock(dir); ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static int au_dr_brid_init(struct au_dr_brid *brid, const struct path *path) ++{ ++ int err; ++ struct kstatfs kstfs; ++ dev_t dev; ++ struct dentry *dentry; ++ struct super_block *sb; ++ ++ err = vfs_statfs((void *)path, &kstfs); ++ AuTraceErr(err); ++ if (unlikely(err)) ++ goto out; ++ ++ /* todo: support for UUID */ ++ ++ if (kstfs.f_fsid.val[0] || kstfs.f_fsid.val[1]) { ++ brid->type = AuBrid_FSID; ++ brid->fsid = kstfs.f_fsid; ++ } else { ++ dentry = path->dentry; ++ sb = dentry->d_sb; ++ dev = sb->s_dev; ++ if (dev) { ++ brid->type = AuBrid_DEV; ++ brid->dev = dev; ++ } ++ } ++ ++out: ++ return err; ++} ++ ++int au_dr_br_init(struct super_block *sb, struct au_branch *br, ++ const struct path *path) ++{ ++ int err, i; ++ struct au_dr_br *dr; ++ struct hlist_bl_head *hbl; ++ ++ dr = &br->br_dirren; ++ hbl = dr->dr_h_ino; ++ for (i = 0; i < AuDirren_NHASH; i++, hbl++) ++ INIT_HLIST_BL_HEAD(hbl); ++ ++ err = au_dr_brid_init(&dr->dr_brid, path); ++ if (unlikely(err)) ++ goto out; ++ ++ if (au_opt_test(au_mntflags(sb), DIRREN)) ++ err = au_dr_hino(sb, /*bindex*/-1, br, path); ++ ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++int au_dr_br_fin(struct super_block *sb, struct au_branch *br) ++{ ++ int err; ++ ++ err = 0; ++ if (au_br_writable(br->br_perm)) ++ err = au_dr_hino(sb, /*bindex*/-1, br, /*path*/NULL); ++ if (!err) ++ au_dr_hino_free(&br->br_dirren); ++ ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static int au_brid_str(struct au_dr_brid *brid, struct inode *h_inode, ++ char *buf, size_t sz) ++{ ++ int err; ++ unsigned int major, minor; ++ char *p; ++ ++ p = buf; ++ err = snprintf(p, sz, "%d_", brid->type); ++ AuDebugOn(err > sz); ++ p += err; ++ sz -= err; ++ switch (brid->type) { ++ case AuBrid_Unset: ++ return -EINVAL; ++ case AuBrid_UUID: ++ err = snprintf(p, sz, "%pU", brid->uuid.b); ++ break; ++ case AuBrid_FSID: ++ err = snprintf(p, sz, "%08x-%08x", ++ brid->fsid.val[0], brid->fsid.val[1]); ++ break; ++ case AuBrid_DEV: ++ major = MAJOR(brid->dev); ++ minor = MINOR(brid->dev); ++ if (major <= 0xff && minor <= 0xff) ++ err = snprintf(p, sz, "%02x%02x", major, minor); ++ else ++ err = snprintf(p, sz, "%03x:%05x", major, minor); ++ break; ++ } ++ AuDebugOn(err > sz); ++ p += err; ++ sz -= err; ++ err = snprintf(p, sz, "_%llu", (unsigned long long)h_inode->i_ino); ++ AuDebugOn(err > sz); ++ p += err; ++ sz -= err; ++ ++ return p - buf; ++} ++ ++static int au_drinfo_name(struct au_branch *br, char *name, int len) ++{ ++ int rlen; ++ struct dentry *br_dentry; ++ struct inode *br_inode; ++ ++ br_dentry = au_br_dentry(br); ++ br_inode = d_inode(br_dentry); ++ rlen = au_brid_str(&br->br_dirren.dr_brid, br_inode, name, len); ++ AuDebugOn(rlen >= AUFS_DIRREN_ENV_VAL_SZ); ++ AuDebugOn(rlen > len); ++ ++ return rlen; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* ++ * from the given @h_dentry, construct drinfo at @*fdata. ++ * when the size of @*fdata is not enough, reallocate and return new @fdata and ++ * @allocated. ++ */ ++static int au_drinfo_construct(struct au_drinfo_fdata **fdata, ++ struct dentry *h_dentry, ++ unsigned char *allocated) ++{ ++ int err, v; ++ struct au_drinfo_fdata *f, *p; ++ struct au_drinfo *drinfo; ++ struct inode *h_inode; ++ struct qstr *qname; ++ ++ err = 0; ++ f = *fdata; ++ h_inode = d_inode(h_dentry); ++ qname = &h_dentry->d_name; ++ drinfo = &f->drinfo; ++ drinfo->ino = (__force uint64_t)cpu_to_be64(h_inode->i_ino); ++ drinfo->oldnamelen = qname->len; ++ if (*allocated < sizeof(*f) + qname->len) { ++ v = roundup_pow_of_two(*allocated + qname->len); ++ p = au_krealloc(f, v, GFP_NOFS, /*may_shrink*/0); ++ if (unlikely(!p)) { ++ err = -ENOMEM; ++ AuTraceErr(err); ++ goto out; ++ } ++ f = p; ++ *fdata = f; ++ *allocated = v; ++ drinfo = &f->drinfo; ++ } ++ memcpy(drinfo->oldname, qname->name, qname->len); ++ AuDbg("i%llu, %.*s\n", ++ be64_to_cpu((__force __be64)drinfo->ino), drinfo->oldnamelen, ++ drinfo->oldname); ++ ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++/* callers have to free the return value */ ++static struct au_drinfo *au_drinfo_read_k(struct file *file, ino_t h_ino) ++{ ++ struct au_drinfo *ret, *drinfo; ++ struct au_drinfo_fdata fdata; ++ int len; ++ loff_t pos; ++ ssize_t ssz; ++ ++ ret = ERR_PTR(-EIO); ++ pos = 0; ++ ssz = vfsub_read_k(file, &fdata, sizeof(fdata), &pos); ++ if (unlikely(ssz != sizeof(fdata))) { ++ AuIOErr("ssz %zd, %u, %pD2\n", ++ ssz, (unsigned int)sizeof(fdata), file); ++ goto out; ++ } ++ ++ fdata.magic = ntohl((__force __be32)fdata.magic); ++ switch (fdata.magic) { ++ case AUFS_DRINFO_MAGIC_V1: ++ break; ++ default: ++ AuIOErr("magic-num 0x%x, 0x%x, %pD2\n", ++ fdata.magic, AUFS_DRINFO_MAGIC_V1, file); ++ goto out; ++ } ++ ++ drinfo = &fdata.drinfo; ++ len = drinfo->oldnamelen; ++ if (!len) { ++ AuIOErr("broken drinfo %pD2\n", file); ++ goto out; ++ } ++ ++ ret = NULL; ++ drinfo->ino = be64_to_cpu((__force __be64)drinfo->ino); ++ if (unlikely(h_ino && drinfo->ino != h_ino)) { ++ AuDbg("ignored i%llu, i%llu, %pD2\n", ++ (unsigned long long)drinfo->ino, ++ (unsigned long long)h_ino, file); ++ goto out; /* success */ ++ } ++ ++ ret = kmalloc(sizeof(*ret) + len, GFP_NOFS); ++ if (unlikely(!ret)) { ++ ret = ERR_PTR(-ENOMEM); ++ AuTraceErrPtr(ret); ++ goto out; ++ } ++ ++ *ret = *drinfo; ++ ssz = vfsub_read_k(file, (void *)ret->oldname, len, &pos); ++ if (unlikely(ssz != len)) { ++ kfree(ret); ++ ret = ERR_PTR(-EIO); ++ AuIOErr("ssz %zd, %u, %pD2\n", ssz, len, file); ++ goto out; ++ } ++ ++ AuDbg("oldname %.*s\n", ret->oldnamelen, ret->oldname); ++ ++out: ++ return ret; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* in order to be revertible */ ++struct au_drinfo_rev_elm { ++ int created; ++ struct dentry *info_dentry; ++ struct au_drinfo *info_last; ++}; ++ ++struct au_drinfo_rev { ++ unsigned char already; ++ aufs_bindex_t nelm; ++ struct au_drinfo_rev_elm elm[0]; ++}; ++ ++/* todo: isn't it too large? */ ++struct au_drinfo_store { ++ struct path h_ppath; ++ struct dentry *h_dentry; ++ struct au_drinfo_fdata *fdata; ++ char *infoname; /* inside of whname, just after PFX */ ++ char whname[sizeof(AUFS_WH_DR_INFO_PFX) + AUFS_DIRREN_ENV_VAL_SZ]; ++ aufs_bindex_t btgt, btail; ++ unsigned char no_sio, ++ allocated, /* current size of *fdata */ ++ infonamelen, /* room size for p */ ++ whnamelen, /* length of the genarated name */ ++ renameback; /* renamed back */ ++}; ++ ++/* on rename(2) error, the caller should revert it using @elm */ ++static int au_drinfo_do_store(struct au_drinfo_store *w, ++ struct au_drinfo_rev_elm *elm) ++{ ++ int err, len; ++ ssize_t ssz; ++ loff_t pos; ++ struct path infopath = { ++ .mnt = w->h_ppath.mnt ++ }; ++ struct inode *h_dir, *h_inode, *delegated; ++ struct file *infofile; ++ struct qstr *qname; ++ ++ AuDebugOn(elm ++ && memcmp(elm, page_address(ZERO_PAGE(0)), sizeof(*elm))); ++ ++ infopath.dentry = vfsub_lookup_one_len(w->whname, w->h_ppath.dentry, ++ w->whnamelen); ++ AuTraceErrPtr(infopath.dentry); ++ if (IS_ERR(infopath.dentry)) { ++ err = PTR_ERR(infopath.dentry); ++ goto out; ++ } ++ ++ err = 0; ++ h_dir = d_inode(w->h_ppath.dentry); ++ if (elm && d_is_negative(infopath.dentry)) { ++ err = vfsub_create(h_dir, &infopath, 0600, /*want_excl*/true); ++ AuTraceErr(err); ++ if (unlikely(err)) ++ goto out_dput; ++ elm->created = 1; ++ elm->info_dentry = dget(infopath.dentry); ++ } ++ ++ infofile = vfsub_dentry_open(&infopath, O_RDWR); ++ AuTraceErrPtr(infofile); ++ if (IS_ERR(infofile)) { ++ err = PTR_ERR(infofile); ++ goto out_dput; ++ } ++ ++ h_inode = d_inode(infopath.dentry); ++ if (elm && i_size_read(h_inode)) { ++ h_inode = d_inode(w->h_dentry); ++ elm->info_last = au_drinfo_read_k(infofile, h_inode->i_ino); ++ AuTraceErrPtr(elm->info_last); ++ if (IS_ERR(elm->info_last)) { ++ err = PTR_ERR(elm->info_last); ++ elm->info_last = NULL; ++ AuDebugOn(elm->info_dentry); ++ goto out_fput; ++ } ++ } ++ ++ if (elm && w->renameback) { ++ delegated = NULL; ++ err = vfsub_unlink(h_dir, &infopath, &delegated, /*force*/0); ++ AuTraceErr(err); ++ if (unlikely(err == -EWOULDBLOCK)) ++ iput(delegated); ++ goto out_fput; ++ } ++ ++ pos = 0; ++ qname = &w->h_dentry->d_name; ++ len = sizeof(*w->fdata) + qname->len; ++ if (!elm) ++ len = sizeof(*w->fdata) + w->fdata->drinfo.oldnamelen; ++ ssz = vfsub_write_k(infofile, w->fdata, len, &pos); ++ if (ssz == len) { ++ AuDbg("hi%llu, %.*s\n", w->fdata->drinfo.ino, ++ w->fdata->drinfo.oldnamelen, w->fdata->drinfo.oldname); ++ goto out_fput; /* success */ ++ } else { ++ err = -EIO; ++ if (ssz < 0) ++ err = ssz; ++ /* the caller should revert it using @elm */ ++ } ++ ++out_fput: ++ fput(infofile); ++out_dput: ++ dput(infopath.dentry); ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++struct au_call_drinfo_do_store_args { ++ int *errp; ++ struct au_drinfo_store *w; ++ struct au_drinfo_rev_elm *elm; ++}; ++ ++static void au_call_drinfo_do_store(void *args) ++{ ++ struct au_call_drinfo_do_store_args *a = args; ++ ++ *a->errp = au_drinfo_do_store(a->w, a->elm); ++} ++ ++static int au_drinfo_store_sio(struct au_drinfo_store *w, ++ struct au_drinfo_rev_elm *elm) ++{ ++ int err, wkq_err; ++ ++ if (w->no_sio) ++ err = au_drinfo_do_store(w, elm); ++ else { ++ struct au_call_drinfo_do_store_args a = { ++ .errp = &err, ++ .w = w, ++ .elm = elm ++ }; ++ wkq_err = au_wkq_wait(au_call_drinfo_do_store, &a); ++ if (unlikely(wkq_err)) ++ err = wkq_err; ++ } ++ AuTraceErr(err); ++ ++ return err; ++} ++ ++static int au_drinfo_store_work_init(struct au_drinfo_store *w, ++ aufs_bindex_t btgt) ++{ ++ int err; ++ ++ memset(w, 0, sizeof(*w)); ++ w->allocated = roundup_pow_of_two(sizeof(*w->fdata) + 40); ++ strcpy(w->whname, AUFS_WH_DR_INFO_PFX); ++ w->infoname = w->whname + sizeof(AUFS_WH_DR_INFO_PFX) - 1; ++ w->infonamelen = sizeof(w->whname) - sizeof(AUFS_WH_DR_INFO_PFX); ++ w->btgt = btgt; ++ w->no_sio = !!uid_eq(current_fsuid(), GLOBAL_ROOT_UID); ++ ++ err = -ENOMEM; ++ w->fdata = kcalloc(1, w->allocated, GFP_NOFS); ++ if (unlikely(!w->fdata)) { ++ AuTraceErr(err); ++ goto out; ++ } ++ w->fdata->magic = (__force uint32_t)htonl(AUFS_DRINFO_MAGIC_V1); ++ err = 0; ++ ++out: ++ return err; ++} ++ ++static void au_drinfo_store_work_fin(struct au_drinfo_store *w) ++{ ++ kfree(w->fdata); ++} ++ ++static void au_drinfo_store_rev(struct au_drinfo_rev *rev, ++ struct au_drinfo_store *w) ++{ ++ struct au_drinfo_rev_elm *elm; ++ struct inode *h_dir, *delegated; ++ int err, nelm; ++ struct path infopath = { ++ .mnt = w->h_ppath.mnt ++ }; ++ ++ h_dir = d_inode(w->h_ppath.dentry); ++ IMustLock(h_dir); ++ ++ err = 0; ++ elm = rev->elm; ++ for (nelm = rev->nelm; nelm > 0; nelm--, elm++) { ++ AuDebugOn(elm->created && elm->info_last); ++ if (elm->created) { ++ AuDbg("here\n"); ++ delegated = NULL; ++ infopath.dentry = elm->info_dentry; ++ err = vfsub_unlink(h_dir, &infopath, &delegated, ++ !w->no_sio); ++ AuTraceErr(err); ++ if (unlikely(err == -EWOULDBLOCK)) ++ iput(delegated); ++ dput(elm->info_dentry); ++ } else if (elm->info_last) { ++ AuDbg("here\n"); ++ w->fdata->drinfo = *elm->info_last; ++ memcpy(w->fdata->drinfo.oldname, ++ elm->info_last->oldname, ++ elm->info_last->oldnamelen); ++ err = au_drinfo_store_sio(w, /*elm*/NULL); ++ kfree(elm->info_last); ++ } ++ if (unlikely(err)) ++ AuIOErr("%d, %s\n", err, w->whname); ++ /* go on even if err */ ++ } ++} ++ ++/* caller has to call au_dr_rename_fin() later */ ++static int au_drinfo_store(struct dentry *dentry, aufs_bindex_t btgt, ++ struct qstr *dst_name, void *_rev) ++{ ++ int err, sz, nelm; ++ aufs_bindex_t bindex, btail; ++ struct au_drinfo_store work; ++ struct au_drinfo_rev *rev, **p; ++ struct au_drinfo_rev_elm *elm; ++ struct super_block *sb; ++ struct au_branch *br; ++ struct au_hinode *hdir; ++ ++ err = au_drinfo_store_work_init(&work, btgt); ++ AuTraceErr(err); ++ if (unlikely(err)) ++ goto out; ++ ++ err = -ENOMEM; ++ btail = au_dbtaildir(dentry); ++ nelm = btail - btgt; ++ sz = sizeof(*rev) + sizeof(*elm) * nelm; ++ rev = kcalloc(1, sz, GFP_NOFS); ++ if (unlikely(!rev)) { ++ AuTraceErr(err); ++ goto out_args; ++ } ++ rev->nelm = nelm; ++ elm = rev->elm; ++ p = _rev; ++ *p = rev; ++ ++ err = 0; ++ sb = dentry->d_sb; ++ work.h_ppath.dentry = au_h_dptr(dentry, btgt); ++ work.h_ppath.mnt = au_sbr_mnt(sb, btgt); ++ hdir = au_hi(d_inode(dentry), btgt); ++ au_hn_inode_lock_nested(hdir, AuLsc_I_CHILD); ++ for (bindex = btgt + 1; bindex <= btail; bindex++, elm++) { ++ work.h_dentry = au_h_dptr(dentry, bindex); ++ if (!work.h_dentry) ++ continue; ++ ++ err = au_drinfo_construct(&work.fdata, work.h_dentry, ++ &work.allocated); ++ AuTraceErr(err); ++ if (unlikely(err)) ++ break; ++ ++ work.renameback = au_qstreq(&work.h_dentry->d_name, dst_name); ++ br = au_sbr(sb, bindex); ++ work.whnamelen = sizeof(AUFS_WH_DR_INFO_PFX) - 1; ++ work.whnamelen += au_drinfo_name(br, work.infoname, ++ work.infonamelen); ++ AuDbg("whname %.*s, i%llu, %.*s\n", ++ work.whnamelen, work.whname, ++ be64_to_cpu((__force __be64)work.fdata->drinfo.ino), ++ work.fdata->drinfo.oldnamelen, ++ work.fdata->drinfo.oldname); ++ ++ err = au_drinfo_store_sio(&work, elm); ++ AuTraceErr(err); ++ if (unlikely(err)) ++ break; ++ } ++ if (unlikely(err)) { ++ /* revert all drinfo */ ++ au_drinfo_store_rev(rev, &work); ++ kfree(rev); ++ *p = NULL; ++ } ++ au_hn_inode_unlock(hdir); ++ ++out_args: ++ au_drinfo_store_work_fin(&work); ++out: ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++int au_dr_rename(struct dentry *src, aufs_bindex_t bindex, ++ struct qstr *dst_name, void *_rev) ++{ ++ int err, already; ++ ino_t ino; ++ struct super_block *sb; ++ struct au_branch *br; ++ struct au_dr_br *dr; ++ struct dentry *h_dentry; ++ struct inode *h_inode; ++ struct au_dr_hino *ent; ++ struct au_drinfo_rev *rev, **p; ++ ++ AuDbg("bindex %d\n", bindex); ++ ++ err = -ENOMEM; ++ ent = kmalloc(sizeof(*ent), GFP_NOFS); ++ if (unlikely(!ent)) ++ goto out; ++ ++ sb = src->d_sb; ++ br = au_sbr(sb, bindex); ++ dr = &br->br_dirren; ++ h_dentry = au_h_dptr(src, bindex); ++ h_inode = d_inode(h_dentry); ++ ino = h_inode->i_ino; ++ ent->dr_h_ino = ino; ++ already = au_dr_hino_test_add(dr, ino, ent); ++ AuDbg("b%d, hi%llu, already %d\n", ++ bindex, (unsigned long long)ino, already); ++ ++ err = au_drinfo_store(src, bindex, dst_name, _rev); ++ AuTraceErr(err); ++ if (!err) { ++ p = _rev; ++ rev = *p; ++ rev->already = already; ++ goto out; /* success */ ++ } ++ ++ /* revert */ ++ if (!already) ++ au_dr_hino_del(dr, ent); ++ kfree(ent); ++ ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++void au_dr_rename_fin(struct dentry *src, aufs_bindex_t btgt, void *_rev) ++{ ++ struct au_drinfo_rev *rev; ++ struct au_drinfo_rev_elm *elm; ++ int nelm; ++ ++ rev = _rev; ++ elm = rev->elm; ++ for (nelm = rev->nelm; nelm > 0; nelm--, elm++) { ++ dput(elm->info_dentry); ++ kfree(elm->info_last); ++ } ++ kfree(rev); ++} ++ ++void au_dr_rename_rev(struct dentry *src, aufs_bindex_t btgt, void *_rev) ++{ ++ int err; ++ struct au_drinfo_store work; ++ struct au_drinfo_rev *rev = _rev; ++ struct super_block *sb; ++ struct au_branch *br; ++ struct inode *h_inode; ++ struct au_dr_br *dr; ++ struct au_dr_hino *ent; ++ ++ err = au_drinfo_store_work_init(&work, btgt); ++ if (unlikely(err)) ++ goto out; ++ ++ sb = src->d_sb; ++ br = au_sbr(sb, btgt); ++ work.h_ppath.dentry = au_h_dptr(src, btgt); ++ work.h_ppath.mnt = au_br_mnt(br); ++ au_drinfo_store_rev(rev, &work); ++ au_drinfo_store_work_fin(&work); ++ if (rev->already) ++ goto out; ++ ++ dr = &br->br_dirren; ++ h_inode = d_inode(work.h_ppath.dentry); ++ ent = au_dr_hino_find(dr, h_inode->i_ino); ++ BUG_ON(!ent); ++ au_dr_hino_del(dr, ent); ++ kfree(ent); ++ ++out: ++ kfree(rev); ++ if (unlikely(err)) ++ pr_err("failed to remove dirren info\n"); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static struct au_drinfo *au_drinfo_do_load(struct path *h_ppath, ++ char *whname, int whnamelen, ++ struct dentry **info_dentry) ++{ ++ struct au_drinfo *drinfo; ++ struct file *f; ++ struct inode *h_dir; ++ struct path infopath; ++ int unlocked; ++ ++ AuDbg("%pd/%.*s\n", h_ppath->dentry, whnamelen, whname); ++ ++ *info_dentry = NULL; ++ drinfo = NULL; ++ unlocked = 0; ++ h_dir = d_inode(h_ppath->dentry); ++ vfsub_inode_lock_shared_nested(h_dir, AuLsc_I_PARENT); ++ infopath.dentry = vfsub_lookup_one_len(whname, h_ppath->dentry, ++ whnamelen); ++ if (IS_ERR(infopath.dentry)) { ++ drinfo = (void *)infopath.dentry; ++ goto out; ++ } ++ ++ if (d_is_negative(infopath.dentry)) ++ goto out_dput; /* success */ ++ ++ infopath.mnt = h_ppath->mnt; ++ f = vfsub_dentry_open(&infopath, O_RDONLY); ++ inode_unlock_shared(h_dir); ++ unlocked = 1; ++ if (IS_ERR(f)) { ++ drinfo = (void *)f; ++ goto out_dput; ++ } ++ ++ drinfo = au_drinfo_read_k(f, /*h_ino*/0); ++ if (IS_ERR_OR_NULL(drinfo)) ++ goto out_fput; ++ ++ AuDbg("oldname %.*s\n", drinfo->oldnamelen, drinfo->oldname); ++ *info_dentry = dget(infopath.dentry); /* keep it alive */ ++ ++out_fput: ++ fput(f); ++out_dput: ++ dput(infopath.dentry); ++out: ++ if (!unlocked) ++ inode_unlock_shared(h_dir); ++ AuTraceErrPtr(drinfo); ++ return drinfo; ++} ++ ++struct au_drinfo_do_load_args { ++ struct au_drinfo **drinfop; ++ struct path *h_ppath; ++ char *whname; ++ int whnamelen; ++ struct dentry **info_dentry; ++}; ++ ++static void au_call_drinfo_do_load(void *args) ++{ ++ struct au_drinfo_do_load_args *a = args; ++ ++ *a->drinfop = au_drinfo_do_load(a->h_ppath, a->whname, a->whnamelen, ++ a->info_dentry); ++} ++ ++struct au_drinfo_load { ++ struct path h_ppath; ++ struct qstr *qname; ++ unsigned char no_sio; ++ ++ aufs_bindex_t ninfo; ++ struct au_drinfo **drinfo; ++}; ++ ++static int au_drinfo_load(struct au_drinfo_load *w, aufs_bindex_t bindex, ++ struct au_branch *br) ++{ ++ int err, wkq_err, whnamelen, e; ++ char whname[sizeof(AUFS_WH_DR_INFO_PFX) + AUFS_DIRREN_ENV_VAL_SZ] ++ = AUFS_WH_DR_INFO_PFX; ++ struct au_drinfo *drinfo; ++ struct qstr oldname; ++ struct inode *h_dir, *delegated; ++ struct dentry *info_dentry; ++ struct path infopath; ++ ++ whnamelen = sizeof(AUFS_WH_DR_INFO_PFX) - 1; ++ whnamelen += au_drinfo_name(br, whname + whnamelen, ++ sizeof(whname) - whnamelen); ++ if (w->no_sio) ++ drinfo = au_drinfo_do_load(&w->h_ppath, whname, whnamelen, ++ &info_dentry); ++ else { ++ struct au_drinfo_do_load_args args = { ++ .drinfop = &drinfo, ++ .h_ppath = &w->h_ppath, ++ .whname = whname, ++ .whnamelen = whnamelen, ++ .info_dentry = &info_dentry ++ }; ++ wkq_err = au_wkq_wait(au_call_drinfo_do_load, &args); ++ if (unlikely(wkq_err)) ++ drinfo = ERR_PTR(wkq_err); ++ } ++ err = PTR_ERR(drinfo); ++ if (IS_ERR_OR_NULL(drinfo)) ++ goto out; ++ ++ err = 0; ++ oldname.len = drinfo->oldnamelen; ++ oldname.name = drinfo->oldname; ++ if (au_qstreq(w->qname, &oldname)) { ++ /* the name is renamed back */ ++ kfree(drinfo); ++ drinfo = NULL; ++ ++ infopath.dentry = info_dentry; ++ infopath.mnt = w->h_ppath.mnt; ++ h_dir = d_inode(w->h_ppath.dentry); ++ delegated = NULL; ++ inode_lock_nested(h_dir, AuLsc_I_PARENT); ++ e = vfsub_unlink(h_dir, &infopath, &delegated, !w->no_sio); ++ inode_unlock(h_dir); ++ if (unlikely(e)) ++ AuIOErr("ignored %d, %pd2\n", e, &infopath.dentry); ++ if (unlikely(e == -EWOULDBLOCK)) ++ iput(delegated); ++ } ++ kfree(w->drinfo[bindex]); ++ w->drinfo[bindex] = drinfo; ++ dput(info_dentry); ++ ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static void au_dr_lkup_free(struct au_drinfo **drinfo, int n) ++{ ++ struct au_drinfo **p = drinfo; ++ ++ while (n-- > 0) ++ kfree(*drinfo++); ++ kfree(p); ++} ++ ++int au_dr_lkup(struct au_do_lookup_args *lkup, struct dentry *dentry, ++ aufs_bindex_t btgt) ++{ ++ int err, ninfo; ++ struct au_drinfo_load w; ++ aufs_bindex_t bindex, bbot; ++ struct au_branch *br; ++ struct inode *h_dir; ++ struct au_dr_hino *ent; ++ struct super_block *sb; ++ ++ AuDbg("%.*s, name %.*s, whname %.*s, b%d\n", ++ AuLNPair(&dentry->d_name), AuLNPair(&lkup->dirren.dr_name), ++ AuLNPair(&lkup->whname), btgt); ++ ++ sb = dentry->d_sb; ++ bbot = au_sbbot(sb); ++ w.ninfo = bbot + 1; ++ if (!lkup->dirren.drinfo) { ++ lkup->dirren.drinfo = kcalloc(w.ninfo, ++ sizeof(*lkup->dirren.drinfo), ++ GFP_NOFS); ++ if (unlikely(!lkup->dirren.drinfo)) { ++ err = -ENOMEM; ++ goto out; ++ } ++ lkup->dirren.ninfo = w.ninfo; ++ } ++ w.drinfo = lkup->dirren.drinfo; ++ w.no_sio = !!uid_eq(current_fsuid(), GLOBAL_ROOT_UID); ++ w.h_ppath.dentry = au_h_dptr(dentry, btgt); ++ AuDebugOn(!w.h_ppath.dentry); ++ w.h_ppath.mnt = au_sbr_mnt(sb, btgt); ++ w.qname = &dentry->d_name; ++ ++ ninfo = 0; ++ for (bindex = btgt + 1; bindex <= bbot; bindex++) { ++ br = au_sbr(sb, bindex); ++ err = au_drinfo_load(&w, bindex, br); ++ if (unlikely(err)) ++ goto out_free; ++ if (w.drinfo[bindex]) ++ ninfo++; ++ } ++ if (!ninfo) { ++ br = au_sbr(sb, btgt); ++ h_dir = d_inode(w.h_ppath.dentry); ++ ent = au_dr_hino_find(&br->br_dirren, h_dir->i_ino); ++ AuDebugOn(!ent); ++ au_dr_hino_del(&br->br_dirren, ent); ++ kfree(ent); ++ } ++ goto out; /* success */ ++ ++out_free: ++ au_dr_lkup_free(lkup->dirren.drinfo, lkup->dirren.ninfo); ++ lkup->dirren.ninfo = 0; ++ lkup->dirren.drinfo = NULL; ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++void au_dr_lkup_fin(struct au_do_lookup_args *lkup) ++{ ++ au_dr_lkup_free(lkup->dirren.drinfo, lkup->dirren.ninfo); ++} ++ ++int au_dr_lkup_name(struct au_do_lookup_args *lkup, aufs_bindex_t btgt) ++{ ++ int err; ++ struct au_drinfo *drinfo; ++ ++ err = 0; ++ if (!lkup->dirren.drinfo) ++ goto out; ++ AuDebugOn(lkup->dirren.ninfo < btgt + 1); ++ drinfo = lkup->dirren.drinfo[btgt + 1]; ++ if (!drinfo) ++ goto out; ++ ++ kfree(lkup->whname.name); ++ lkup->whname.name = NULL; ++ lkup->dirren.dr_name.len = drinfo->oldnamelen; ++ lkup->dirren.dr_name.name = drinfo->oldname; ++ lkup->name = &lkup->dirren.dr_name; ++ err = au_wh_name_alloc(&lkup->whname, lkup->name); ++ if (!err) ++ AuDbg("name %.*s, whname %.*s, b%d\n", ++ AuLNPair(lkup->name), AuLNPair(&lkup->whname), ++ btgt); ++ ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++int au_dr_lkup_h_ino(struct au_do_lookup_args *lkup, aufs_bindex_t bindex, ++ ino_t h_ino) ++{ ++ int match; ++ struct au_drinfo *drinfo; ++ ++ match = 1; ++ if (!lkup->dirren.drinfo) ++ goto out; ++ AuDebugOn(lkup->dirren.ninfo < bindex + 1); ++ drinfo = lkup->dirren.drinfo[bindex + 1]; ++ if (!drinfo) ++ goto out; ++ ++ match = (drinfo->ino == h_ino); ++ AuDbg("match %d\n", match); ++ ++out: ++ return match; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++int au_dr_opt_set(struct super_block *sb) ++{ ++ int err; ++ aufs_bindex_t bindex, bbot; ++ struct au_branch *br; ++ ++ err = 0; ++ bbot = au_sbbot(sb); ++ for (bindex = 0; !err && bindex <= bbot; bindex++) { ++ br = au_sbr(sb, bindex); ++ err = au_dr_hino(sb, bindex, /*br*/NULL, &br->br_path); ++ } ++ ++ return err; ++} ++ ++int au_dr_opt_flush(struct super_block *sb) ++{ ++ int err; ++ aufs_bindex_t bindex, bbot; ++ struct au_branch *br; ++ ++ err = 0; ++ bbot = au_sbbot(sb); ++ for (bindex = 0; !err && bindex <= bbot; bindex++) { ++ br = au_sbr(sb, bindex); ++ if (au_br_writable(br->br_perm)) ++ err = au_dr_hino(sb, bindex, /*br*/NULL, /*path*/NULL); ++ } ++ ++ return err; ++} ++ ++int au_dr_opt_clr(struct super_block *sb, int no_flush) ++{ ++ int err; ++ aufs_bindex_t bindex, bbot; ++ struct au_branch *br; ++ ++ err = 0; ++ if (!no_flush) { ++ err = au_dr_opt_flush(sb); ++ if (unlikely(err)) ++ goto out; ++ } ++ ++ bbot = au_sbbot(sb); ++ for (bindex = 0; bindex <= bbot; bindex++) { ++ br = au_sbr(sb, bindex); ++ au_dr_hino_free(&br->br_dirren); ++ } ++ ++out: ++ return err; ++} +diff -Naur null/fs/aufs/dirren.h linux-4.15/fs/aufs/dirren.h +--- /dev/null ++++ linux-4.15/fs/aufs/dirren.h 2018-02-25 02:38:09.199737576 +0100 +@@ -0,0 +1,139 @@ ++/* ++ * Copyright (C) 2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * renamed dir info ++ */ ++ ++#ifndef __AUFS_DIRREN_H__ ++#define __AUFS_DIRREN_H__ ++ ++#ifdef __KERNEL__ ++ ++#include ++#include ++#include ++#include "hbl.h" ++ ++#define AuDirren_NHASH 100 ++ ++#ifdef CONFIG_AUFS_DIRREN ++enum au_brid_type { ++ AuBrid_Unset, ++ AuBrid_UUID, ++ AuBrid_FSID, ++ AuBrid_DEV ++}; ++ ++struct au_dr_brid { ++ enum au_brid_type type; ++ union { ++ uuid_t uuid; /* unimplemented yet */ ++ fsid_t fsid; ++ dev_t dev; ++ }; ++}; ++ ++/* 20 is the max digits length of ulong 64 */ ++/* brid-type "_" uuid "_" inum */ ++#define AUFS_DIRREN_FNAME_SZ (1 + 1 + UUID_STRING_LEN + 20) ++#define AUFS_DIRREN_ENV_VAL_SZ (AUFS_DIRREN_FNAME_SZ + 1 + 20) ++ ++struct au_dr_hino { ++ struct hlist_bl_node dr_hnode; ++ ino_t dr_h_ino; ++}; ++ ++struct au_dr_br { ++ struct hlist_bl_head dr_h_ino[AuDirren_NHASH]; ++ struct au_dr_brid dr_brid; ++}; ++ ++struct au_dr_lookup { ++ /* dr_name is pointed by struct au_do_lookup_args.name */ ++ struct qstr dr_name; /* subset of dr_info */ ++ aufs_bindex_t ninfo; ++ struct au_drinfo **drinfo; ++}; ++#else ++struct au_dr_hino; ++/* empty */ ++struct au_dr_br { }; ++struct au_dr_lookup { }; ++#endif ++ ++/* ---------------------------------------------------------------------- */ ++ ++struct au_branch; ++struct au_do_lookup_args; ++struct au_hinode; ++#ifdef CONFIG_AUFS_DIRREN ++int au_dr_hino_test_add(struct au_dr_br *dr, ino_t h_ino, ++ struct au_dr_hino *add_ent); ++void au_dr_hino_free(struct au_dr_br *dr); ++int au_dr_br_init(struct super_block *sb, struct au_branch *br, ++ const struct path *path); ++int au_dr_br_fin(struct super_block *sb, struct au_branch *br); ++int au_dr_rename(struct dentry *src, aufs_bindex_t bindex, ++ struct qstr *dst_name, void *_rev); ++void au_dr_rename_fin(struct dentry *src, aufs_bindex_t btgt, void *rev); ++void au_dr_rename_rev(struct dentry *src, aufs_bindex_t bindex, void *rev); ++int au_dr_lkup(struct au_do_lookup_args *lkup, struct dentry *dentry, ++ aufs_bindex_t bindex); ++int au_dr_lkup_name(struct au_do_lookup_args *lkup, aufs_bindex_t btgt); ++int au_dr_lkup_h_ino(struct au_do_lookup_args *lkup, aufs_bindex_t bindex, ++ ino_t h_ino); ++void au_dr_lkup_fin(struct au_do_lookup_args *lkup); ++int au_dr_opt_set(struct super_block *sb); ++int au_dr_opt_flush(struct super_block *sb); ++int au_dr_opt_clr(struct super_block *sb, int no_flush); ++#else ++AuStubInt0(au_dr_hino_test_add, struct au_dr_br *dr, ino_t h_ino, ++ struct au_dr_hino *add_ent); ++AuStubVoid(au_dr_hino_free, struct au_dr_br *dr); ++AuStubInt0(au_dr_br_init, struct super_block *sb, struct au_branch *br, ++ const struct path *path); ++AuStubInt0(au_dr_br_fin, struct super_block *sb, struct au_branch *br); ++AuStubInt0(au_dr_rename, struct dentry *src, aufs_bindex_t bindex, ++ struct qstr *dst_name, void *_rev); ++AuStubVoid(au_dr_rename_fin, struct dentry *src, aufs_bindex_t btgt, void *rev); ++AuStubVoid(au_dr_rename_rev, struct dentry *src, aufs_bindex_t bindex, ++ void *rev); ++AuStubInt0(au_dr_lkup, struct au_do_lookup_args *lkup, struct dentry *dentry, ++ aufs_bindex_t bindex); ++AuStubInt0(au_dr_lkup_name, struct au_do_lookup_args *lkup, aufs_bindex_t btgt); ++AuStubInt0(au_dr_lkup_h_ino, struct au_do_lookup_args *lkup, ++ aufs_bindex_t bindex, ino_t h_ino); ++AuStubVoid(au_dr_lkup_fin, struct au_do_lookup_args *lkup); ++AuStubInt0(au_dr_opt_set, struct super_block *sb); ++AuStubInt0(au_dr_opt_flush, struct super_block *sb); ++AuStubInt0(au_dr_opt_clr, struct super_block *sb, int no_flush); ++#endif ++ ++/* ---------------------------------------------------------------------- */ ++ ++#ifdef CONFIG_AUFS_DIRREN ++static inline int au_dr_ihash(ino_t h_ino) ++{ ++ return h_ino % AuDirren_NHASH; ++} ++#else ++AuStubInt0(au_dr_ihash, ino_t h_ino); ++#endif ++ ++#endif /* __KERNEL__ */ ++#endif /* __AUFS_DIRREN_H__ */ +diff -Naur null/fs/aufs/dynop.c linux-4.15/fs/aufs/dynop.c +--- /dev/null ++++ linux-4.15/fs/aufs/dynop.c 2018-02-25 02:38:09.199737576 +0100 +@@ -0,0 +1,369 @@ ++/* ++ * Copyright (C) 2010-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * dynamically customizable operations for regular files ++ */ ++ ++#include "aufs.h" ++ ++#define DyPrSym(key) AuDbgSym(key->dk_op.dy_hop) ++ ++/* ++ * How large will these lists be? ++ * Usually just a few elements, 20-30 at most for each, I guess. ++ */ ++static struct hlist_bl_head dynop[AuDyLast]; ++ ++static struct au_dykey *dy_gfind_get(struct hlist_bl_head *hbl, ++ const void *h_op) ++{ ++ struct au_dykey *key, *tmp; ++ struct hlist_bl_node *pos; ++ ++ key = NULL; ++ hlist_bl_lock(hbl); ++ hlist_bl_for_each_entry(tmp, pos, hbl, dk_hnode) ++ if (tmp->dk_op.dy_hop == h_op) { ++ key = tmp; ++ kref_get(&key->dk_kref); ++ break; ++ } ++ hlist_bl_unlock(hbl); ++ ++ return key; ++} ++ ++static struct au_dykey *dy_bradd(struct au_branch *br, struct au_dykey *key) ++{ ++ struct au_dykey **k, *found; ++ const void *h_op = key->dk_op.dy_hop; ++ int i; ++ ++ found = NULL; ++ k = br->br_dykey; ++ for (i = 0; i < AuBrDynOp; i++) ++ if (k[i]) { ++ if (k[i]->dk_op.dy_hop == h_op) { ++ found = k[i]; ++ break; ++ } ++ } else ++ break; ++ if (!found) { ++ spin_lock(&br->br_dykey_lock); ++ for (; i < AuBrDynOp; i++) ++ if (k[i]) { ++ if (k[i]->dk_op.dy_hop == h_op) { ++ found = k[i]; ++ break; ++ } ++ } else { ++ k[i] = key; ++ break; ++ } ++ spin_unlock(&br->br_dykey_lock); ++ BUG_ON(i == AuBrDynOp); /* expand the array */ ++ } ++ ++ return found; ++} ++ ++/* kref_get() if @key is already added */ ++static struct au_dykey *dy_gadd(struct hlist_bl_head *hbl, struct au_dykey *key) ++{ ++ struct au_dykey *tmp, *found; ++ struct hlist_bl_node *pos; ++ const void *h_op = key->dk_op.dy_hop; ++ ++ found = NULL; ++ hlist_bl_lock(hbl); ++ hlist_bl_for_each_entry(tmp, pos, hbl, dk_hnode) ++ if (tmp->dk_op.dy_hop == h_op) { ++ kref_get(&tmp->dk_kref); ++ found = tmp; ++ break; ++ } ++ if (!found) ++ hlist_bl_add_head(&key->dk_hnode, hbl); ++ hlist_bl_unlock(hbl); ++ ++ if (!found) ++ DyPrSym(key); ++ return found; ++} ++ ++static void dy_free_rcu(struct rcu_head *rcu) ++{ ++ struct au_dykey *key; ++ ++ key = container_of(rcu, struct au_dykey, dk_rcu); ++ DyPrSym(key); ++ kfree(key); ++} ++ ++static void dy_free(struct kref *kref) ++{ ++ struct au_dykey *key; ++ struct hlist_bl_head *hbl; ++ ++ key = container_of(kref, struct au_dykey, dk_kref); ++ hbl = dynop + key->dk_op.dy_type; ++ au_hbl_del(&key->dk_hnode, hbl); ++ call_rcu(&key->dk_rcu, dy_free_rcu); ++} ++ ++void au_dy_put(struct au_dykey *key) ++{ ++ kref_put(&key->dk_kref, dy_free); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++#define DyDbgSize(cnt, op) AuDebugOn(cnt != sizeof(op)/sizeof(void *)) ++ ++#ifdef CONFIG_AUFS_DEBUG ++#define DyDbgDeclare(cnt) unsigned int cnt = 0 ++#define DyDbgInc(cnt) do { cnt++; } while (0) ++#else ++#define DyDbgDeclare(cnt) do {} while (0) ++#define DyDbgInc(cnt) do {} while (0) ++#endif ++ ++#define DySet(func, dst, src, h_op, h_sb) do { \ ++ DyDbgInc(cnt); \ ++ if (h_op->func) { \ ++ if (src.func) \ ++ dst.func = src.func; \ ++ else \ ++ AuDbg("%s %s\n", au_sbtype(h_sb), #func); \ ++ } \ ++} while (0) ++ ++#define DySetForce(func, dst, src) do { \ ++ AuDebugOn(!src.func); \ ++ DyDbgInc(cnt); \ ++ dst.func = src.func; \ ++} while (0) ++ ++#define DySetAop(func) \ ++ DySet(func, dyaop->da_op, aufs_aop, h_aop, h_sb) ++#define DySetAopForce(func) \ ++ DySetForce(func, dyaop->da_op, aufs_aop) ++ ++static void dy_aop(struct au_dykey *key, const void *h_op, ++ struct super_block *h_sb __maybe_unused) ++{ ++ struct au_dyaop *dyaop = (void *)key; ++ const struct address_space_operations *h_aop = h_op; ++ DyDbgDeclare(cnt); ++ ++ AuDbg("%s\n", au_sbtype(h_sb)); ++ ++ DySetAop(writepage); ++ DySetAopForce(readpage); /* force */ ++ DySetAop(writepages); ++ DySetAop(set_page_dirty); ++ DySetAop(readpages); ++ DySetAop(write_begin); ++ DySetAop(write_end); ++ DySetAop(bmap); ++ DySetAop(invalidatepage); ++ DySetAop(releasepage); ++ DySetAop(freepage); ++ /* this one will be changed according to an aufs mount option */ ++ DySetAop(direct_IO); ++ DySetAop(migratepage); ++ DySetAop(isolate_page); ++ DySetAop(putback_page); ++ DySetAop(launder_page); ++ DySetAop(is_partially_uptodate); ++ DySetAop(is_dirty_writeback); ++ DySetAop(error_remove_page); ++ DySetAop(swap_activate); ++ DySetAop(swap_deactivate); ++ ++ DyDbgSize(cnt, *h_aop); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static void dy_bug(struct kref *kref) ++{ ++ BUG(); ++} ++ ++static struct au_dykey *dy_get(struct au_dynop *op, struct au_branch *br) ++{ ++ struct au_dykey *key, *old; ++ struct hlist_bl_head *hbl; ++ struct op { ++ unsigned int sz; ++ void (*set)(struct au_dykey *key, const void *h_op, ++ struct super_block *h_sb __maybe_unused); ++ }; ++ static const struct op a[] = { ++ [AuDy_AOP] = { ++ .sz = sizeof(struct au_dyaop), ++ .set = dy_aop ++ } ++ }; ++ const struct op *p; ++ ++ hbl = dynop + op->dy_type; ++ key = dy_gfind_get(hbl, op->dy_hop); ++ if (key) ++ goto out_add; /* success */ ++ ++ p = a + op->dy_type; ++ key = kzalloc(p->sz, GFP_NOFS); ++ if (unlikely(!key)) { ++ key = ERR_PTR(-ENOMEM); ++ goto out; ++ } ++ ++ key->dk_op.dy_hop = op->dy_hop; ++ kref_init(&key->dk_kref); ++ p->set(key, op->dy_hop, au_br_sb(br)); ++ old = dy_gadd(hbl, key); ++ if (old) { ++ kfree(key); ++ key = old; ++ } ++ ++out_add: ++ old = dy_bradd(br, key); ++ if (old) ++ /* its ref-count should never be zero here */ ++ kref_put(&key->dk_kref, dy_bug); ++out: ++ return key; ++} ++ ++/* ---------------------------------------------------------------------- */ ++/* ++ * Aufs prohibits O_DIRECT by defaut even if the branch supports it. ++ * This behaviour is necessary to return an error from open(O_DIRECT) instead ++ * of the succeeding I/O. The dio mount option enables O_DIRECT and makes ++ * open(O_DIRECT) always succeed, but the succeeding I/O may return an error. ++ * See the aufs manual in detail. ++ */ ++static void dy_adx(struct au_dyaop *dyaop, int do_dx) ++{ ++ if (!do_dx) ++ dyaop->da_op.direct_IO = NULL; ++ else ++ dyaop->da_op.direct_IO = aufs_aop.direct_IO; ++} ++ ++static struct au_dyaop *dy_aget(struct au_branch *br, ++ const struct address_space_operations *h_aop, ++ int do_dx) ++{ ++ struct au_dyaop *dyaop; ++ struct au_dynop op; ++ ++ op.dy_type = AuDy_AOP; ++ op.dy_haop = h_aop; ++ dyaop = (void *)dy_get(&op, br); ++ if (IS_ERR(dyaop)) ++ goto out; ++ dy_adx(dyaop, do_dx); ++ ++out: ++ return dyaop; ++} ++ ++int au_dy_iaop(struct inode *inode, aufs_bindex_t bindex, ++ struct inode *h_inode) ++{ ++ int err, do_dx; ++ struct super_block *sb; ++ struct au_branch *br; ++ struct au_dyaop *dyaop; ++ ++ AuDebugOn(!S_ISREG(h_inode->i_mode)); ++ IiMustWriteLock(inode); ++ ++ sb = inode->i_sb; ++ br = au_sbr(sb, bindex); ++ do_dx = !!au_opt_test(au_mntflags(sb), DIO); ++ dyaop = dy_aget(br, h_inode->i_mapping->a_ops, do_dx); ++ err = PTR_ERR(dyaop); ++ if (IS_ERR(dyaop)) ++ /* unnecessary to call dy_fput() */ ++ goto out; ++ ++ err = 0; ++ inode->i_mapping->a_ops = &dyaop->da_op; ++ ++out: ++ return err; ++} ++ ++/* ++ * Is it safe to replace a_ops during the inode/file is in operation? ++ * Yes, I hope so. ++ */ ++int au_dy_irefresh(struct inode *inode) ++{ ++ int err; ++ aufs_bindex_t btop; ++ struct inode *h_inode; ++ ++ err = 0; ++ if (S_ISREG(inode->i_mode)) { ++ btop = au_ibtop(inode); ++ h_inode = au_h_iptr(inode, btop); ++ err = au_dy_iaop(inode, btop, h_inode); ++ } ++ return err; ++} ++ ++void au_dy_arefresh(int do_dx) ++{ ++ struct hlist_bl_head *hbl; ++ struct hlist_bl_node *pos; ++ struct au_dykey *key; ++ ++ hbl = dynop + AuDy_AOP; ++ hlist_bl_lock(hbl); ++ hlist_bl_for_each_entry(key, pos, hbl, dk_hnode) ++ dy_adx((void *)key, do_dx); ++ hlist_bl_unlock(hbl); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++void __init au_dy_init(void) ++{ ++ int i; ++ ++ /* make sure that 'struct au_dykey *' can be any type */ ++ BUILD_BUG_ON(offsetof(struct au_dyaop, da_key)); ++ ++ for (i = 0; i < AuDyLast; i++) ++ INIT_HLIST_BL_HEAD(dynop + i); ++} ++ ++void au_dy_fin(void) ++{ ++ int i; ++ ++ for (i = 0; i < AuDyLast; i++) ++ WARN_ON(!hlist_bl_empty(dynop + i)); ++} +diff -Naur null/fs/aufs/dynop.h linux-4.15/fs/aufs/dynop.h +--- /dev/null ++++ linux-4.15/fs/aufs/dynop.h 2018-02-25 02:38:09.200737684 +0100 +@@ -0,0 +1,74 @@ ++/* ++ * Copyright (C) 2010-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * dynamically customizable operations (for regular files only) ++ */ ++ ++#ifndef __AUFS_DYNOP_H__ ++#define __AUFS_DYNOP_H__ ++ ++#ifdef __KERNEL__ ++ ++#include ++#include ++ ++enum {AuDy_AOP, AuDyLast}; ++ ++struct au_dynop { ++ int dy_type; ++ union { ++ const void *dy_hop; ++ const struct address_space_operations *dy_haop; ++ }; ++}; ++ ++struct au_dykey { ++ union { ++ struct hlist_bl_node dk_hnode; ++ struct rcu_head dk_rcu; ++ }; ++ struct au_dynop dk_op; ++ ++ /* ++ * during I am in the branch local array, kref is gotten. when the ++ * branch is removed, kref is put. ++ */ ++ struct kref dk_kref; ++}; ++ ++/* stop unioning since their sizes are very different from each other */ ++struct au_dyaop { ++ struct au_dykey da_key; ++ struct address_space_operations da_op; /* not const */ ++}; ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* dynop.c */ ++struct au_branch; ++void au_dy_put(struct au_dykey *key); ++int au_dy_iaop(struct inode *inode, aufs_bindex_t bindex, ++ struct inode *h_inode); ++int au_dy_irefresh(struct inode *inode); ++void au_dy_arefresh(int do_dio); ++ ++void __init au_dy_init(void); ++void au_dy_fin(void); ++ ++#endif /* __KERNEL__ */ ++#endif /* __AUFS_DYNOP_H__ */ +diff -Naur null/fs/aufs/export.c linux-4.15/fs/aufs/export.c +--- /dev/null ++++ linux-4.15/fs/aufs/export.c 2018-02-25 02:38:09.200737684 +0100 +@@ -0,0 +1,836 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * export via nfs ++ */ ++ ++#include ++#include ++#include ++#include ++#include ++#include ++#include "aufs.h" ++ ++union conv { ++#ifdef CONFIG_AUFS_INO_T_64 ++ __u32 a[2]; ++#else ++ __u32 a[1]; ++#endif ++ ino_t ino; ++}; ++ ++static ino_t decode_ino(__u32 *a) ++{ ++ union conv u; ++ ++ BUILD_BUG_ON(sizeof(u.ino) != sizeof(u.a)); ++ u.a[0] = a[0]; ++#ifdef CONFIG_AUFS_INO_T_64 ++ u.a[1] = a[1]; ++#endif ++ return u.ino; ++} ++ ++static void encode_ino(__u32 *a, ino_t ino) ++{ ++ union conv u; ++ ++ u.ino = ino; ++ a[0] = u.a[0]; ++#ifdef CONFIG_AUFS_INO_T_64 ++ a[1] = u.a[1]; ++#endif ++} ++ ++/* NFS file handle */ ++enum { ++ Fh_br_id, ++ Fh_sigen, ++#ifdef CONFIG_AUFS_INO_T_64 ++ /* support 64bit inode number */ ++ Fh_ino1, ++ Fh_ino2, ++ Fh_dir_ino1, ++ Fh_dir_ino2, ++#else ++ Fh_ino1, ++ Fh_dir_ino1, ++#endif ++ Fh_igen, ++ Fh_h_type, ++ Fh_tail, ++ ++ Fh_ino = Fh_ino1, ++ Fh_dir_ino = Fh_dir_ino1 ++}; ++ ++static int au_test_anon(struct dentry *dentry) ++{ ++ /* note: read d_flags without d_lock */ ++ return !!(dentry->d_flags & DCACHE_DISCONNECTED); ++} ++ ++int au_test_nfsd(void) ++{ ++ int ret; ++ struct task_struct *tsk = current; ++ char comm[sizeof(tsk->comm)]; ++ ++ ret = 0; ++ if (tsk->flags & PF_KTHREAD) { ++ get_task_comm(comm, tsk); ++ ret = !strcmp(comm, "nfsd"); ++ } ++ ++ return ret; ++} ++ ++/* ---------------------------------------------------------------------- */ ++/* inode generation external table */ ++ ++void au_xigen_inc(struct inode *inode) ++{ ++ loff_t pos; ++ ssize_t sz; ++ __u32 igen; ++ struct super_block *sb; ++ struct au_sbinfo *sbinfo; ++ ++ sb = inode->i_sb; ++ AuDebugOn(!au_opt_test(au_mntflags(sb), XINO)); ++ ++ sbinfo = au_sbi(sb); ++ pos = inode->i_ino; ++ pos *= sizeof(igen); ++ igen = inode->i_generation + 1; ++ sz = xino_fwrite(sbinfo->si_xwrite, sbinfo->si_xigen, &igen, ++ sizeof(igen), &pos); ++ if (sz == sizeof(igen)) ++ return; /* success */ ++ ++ if (unlikely(sz >= 0)) ++ AuIOErr("xigen error (%zd)\n", sz); ++} ++ ++int au_xigen_new(struct inode *inode) ++{ ++ int err; ++ loff_t pos; ++ ssize_t sz; ++ struct super_block *sb; ++ struct au_sbinfo *sbinfo; ++ struct file *file; ++ ++ err = 0; ++ /* todo: dirty, at mount time */ ++ if (inode->i_ino == AUFS_ROOT_INO) ++ goto out; ++ sb = inode->i_sb; ++ SiMustAnyLock(sb); ++ if (unlikely(!au_opt_test(au_mntflags(sb), XINO))) ++ goto out; ++ ++ err = -EFBIG; ++ pos = inode->i_ino; ++ if (unlikely(au_loff_max / sizeof(inode->i_generation) - 1 < pos)) { ++ AuIOErr1("too large i%lld\n", pos); ++ goto out; ++ } ++ pos *= sizeof(inode->i_generation); ++ ++ err = 0; ++ sbinfo = au_sbi(sb); ++ file = sbinfo->si_xigen; ++ BUG_ON(!file); ++ ++ if (vfsub_f_size_read(file) ++ < pos + sizeof(inode->i_generation)) { ++ inode->i_generation = atomic_inc_return(&sbinfo->si_xigen_next); ++ sz = xino_fwrite(sbinfo->si_xwrite, file, &inode->i_generation, ++ sizeof(inode->i_generation), &pos); ++ } else ++ sz = xino_fread(sbinfo->si_xread, file, &inode->i_generation, ++ sizeof(inode->i_generation), &pos); ++ if (sz == sizeof(inode->i_generation)) ++ goto out; /* success */ ++ ++ err = sz; ++ if (unlikely(sz >= 0)) { ++ err = -EIO; ++ AuIOErr("xigen error (%zd)\n", sz); ++ } ++ ++out: ++ return err; ++} ++ ++int au_xigen_set(struct super_block *sb, struct file *base) ++{ ++ int err; ++ struct au_sbinfo *sbinfo; ++ struct file *file; ++ ++ SiMustWriteLock(sb); ++ ++ sbinfo = au_sbi(sb); ++ file = au_xino_create2(base, sbinfo->si_xigen); ++ err = PTR_ERR(file); ++ if (IS_ERR(file)) ++ goto out; ++ err = 0; ++ if (sbinfo->si_xigen) ++ fput(sbinfo->si_xigen); ++ sbinfo->si_xigen = file; ++ ++out: ++ return err; ++} ++ ++void au_xigen_clr(struct super_block *sb) ++{ ++ struct au_sbinfo *sbinfo; ++ ++ SiMustWriteLock(sb); ++ ++ sbinfo = au_sbi(sb); ++ if (sbinfo->si_xigen) { ++ fput(sbinfo->si_xigen); ++ sbinfo->si_xigen = NULL; ++ } ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static struct dentry *decode_by_ino(struct super_block *sb, ino_t ino, ++ ino_t dir_ino) ++{ ++ struct dentry *dentry, *d; ++ struct inode *inode; ++ unsigned int sigen; ++ ++ dentry = NULL; ++ inode = ilookup(sb, ino); ++ if (!inode) ++ goto out; ++ ++ dentry = ERR_PTR(-ESTALE); ++ sigen = au_sigen(sb); ++ if (unlikely(au_is_bad_inode(inode) ++ || IS_DEADDIR(inode) ++ || sigen != au_iigen(inode, NULL))) ++ goto out_iput; ++ ++ dentry = NULL; ++ if (!dir_ino || S_ISDIR(inode->i_mode)) ++ dentry = d_find_alias(inode); ++ else { ++ spin_lock(&inode->i_lock); ++ hlist_for_each_entry(d, &inode->i_dentry, d_u.d_alias) { ++ spin_lock(&d->d_lock); ++ if (!au_test_anon(d) ++ && d_inode(d->d_parent)->i_ino == dir_ino) { ++ dentry = dget_dlock(d); ++ spin_unlock(&d->d_lock); ++ break; ++ } ++ spin_unlock(&d->d_lock); ++ } ++ spin_unlock(&inode->i_lock); ++ } ++ if (unlikely(dentry && au_digen_test(dentry, sigen))) { ++ /* need to refresh */ ++ dput(dentry); ++ dentry = NULL; ++ } ++ ++out_iput: ++ iput(inode); ++out: ++ AuTraceErrPtr(dentry); ++ return dentry; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* todo: dirty? */ ++/* if exportfs_decode_fh() passed vfsmount*, we could be happy */ ++ ++struct au_compare_mnt_args { ++ /* input */ ++ struct super_block *sb; ++ ++ /* output */ ++ struct vfsmount *mnt; ++}; ++ ++static int au_compare_mnt(struct vfsmount *mnt, void *arg) ++{ ++ struct au_compare_mnt_args *a = arg; ++ ++ if (mnt->mnt_sb != a->sb) ++ return 0; ++ a->mnt = mntget(mnt); ++ return 1; ++} ++ ++static struct vfsmount *au_mnt_get(struct super_block *sb) ++{ ++ int err; ++ struct path root; ++ struct au_compare_mnt_args args = { ++ .sb = sb ++ }; ++ ++ get_fs_root(current->fs, &root); ++ rcu_read_lock(); ++ err = iterate_mounts(au_compare_mnt, &args, root.mnt); ++ rcu_read_unlock(); ++ path_put(&root); ++ AuDebugOn(!err); ++ AuDebugOn(!args.mnt); ++ return args.mnt; ++} ++ ++struct au_nfsd_si_lock { ++ unsigned int sigen; ++ aufs_bindex_t bindex, br_id; ++ unsigned char force_lock; ++}; ++ ++static int si_nfsd_read_lock(struct super_block *sb, ++ struct au_nfsd_si_lock *nsi_lock) ++{ ++ int err; ++ aufs_bindex_t bindex; ++ ++ si_read_lock(sb, AuLock_FLUSH); ++ ++ /* branch id may be wrapped around */ ++ err = 0; ++ bindex = au_br_index(sb, nsi_lock->br_id); ++ if (bindex >= 0 && nsi_lock->sigen + AUFS_BRANCH_MAX > au_sigen(sb)) ++ goto out; /* success */ ++ ++ err = -ESTALE; ++ bindex = -1; ++ if (!nsi_lock->force_lock) ++ si_read_unlock(sb); ++ ++out: ++ nsi_lock->bindex = bindex; ++ return err; ++} ++ ++struct find_name_by_ino { ++ struct dir_context ctx; ++ int called, found; ++ ino_t ino; ++ char *name; ++ int namelen; ++}; ++ ++static int ++find_name_by_ino(struct dir_context *ctx, const char *name, int namelen, ++ loff_t offset, u64 ino, unsigned int d_type) ++{ ++ struct find_name_by_ino *a = container_of(ctx, struct find_name_by_ino, ++ ctx); ++ ++ a->called++; ++ if (a->ino != ino) ++ return 0; ++ ++ memcpy(a->name, name, namelen); ++ a->namelen = namelen; ++ a->found = 1; ++ return 1; ++} ++ ++static struct dentry *au_lkup_by_ino(struct path *path, ino_t ino, ++ struct au_nfsd_si_lock *nsi_lock) ++{ ++ struct dentry *dentry, *parent; ++ struct file *file; ++ struct inode *dir; ++ struct find_name_by_ino arg = { ++ .ctx = { ++ .actor = find_name_by_ino ++ } ++ }; ++ int err; ++ ++ parent = path->dentry; ++ if (nsi_lock) ++ si_read_unlock(parent->d_sb); ++ file = vfsub_dentry_open(path, au_dir_roflags); ++ dentry = (void *)file; ++ if (IS_ERR(file)) ++ goto out; ++ ++ dentry = ERR_PTR(-ENOMEM); ++ arg.name = (void *)__get_free_page(GFP_NOFS); ++ if (unlikely(!arg.name)) ++ goto out_file; ++ arg.ino = ino; ++ arg.found = 0; ++ do { ++ arg.called = 0; ++ /* smp_mb(); */ ++ err = vfsub_iterate_dir(file, &arg.ctx); ++ } while (!err && !arg.found && arg.called); ++ dentry = ERR_PTR(err); ++ if (unlikely(err)) ++ goto out_name; ++ /* instead of ENOENT */ ++ dentry = ERR_PTR(-ESTALE); ++ if (!arg.found) ++ goto out_name; ++ ++ /* do not call vfsub_lkup_one() */ ++ dir = d_inode(parent); ++ dentry = vfsub_lookup_one_len_unlocked(arg.name, parent, arg.namelen); ++ AuTraceErrPtr(dentry); ++ if (IS_ERR(dentry)) ++ goto out_name; ++ AuDebugOn(au_test_anon(dentry)); ++ if (unlikely(d_really_is_negative(dentry))) { ++ dput(dentry); ++ dentry = ERR_PTR(-ENOENT); ++ } ++ ++out_name: ++ free_page((unsigned long)arg.name); ++out_file: ++ fput(file); ++out: ++ if (unlikely(nsi_lock ++ && si_nfsd_read_lock(parent->d_sb, nsi_lock) < 0)) ++ if (!IS_ERR(dentry)) { ++ dput(dentry); ++ dentry = ERR_PTR(-ESTALE); ++ } ++ AuTraceErrPtr(dentry); ++ return dentry; ++} ++ ++static struct dentry *decode_by_dir_ino(struct super_block *sb, ino_t ino, ++ ino_t dir_ino, ++ struct au_nfsd_si_lock *nsi_lock) ++{ ++ struct dentry *dentry; ++ struct path path; ++ ++ if (dir_ino != AUFS_ROOT_INO) { ++ path.dentry = decode_by_ino(sb, dir_ino, 0); ++ dentry = path.dentry; ++ if (!path.dentry || IS_ERR(path.dentry)) ++ goto out; ++ AuDebugOn(au_test_anon(path.dentry)); ++ } else ++ path.dentry = dget(sb->s_root); ++ ++ path.mnt = au_mnt_get(sb); ++ dentry = au_lkup_by_ino(&path, ino, nsi_lock); ++ path_put(&path); ++ ++out: ++ AuTraceErrPtr(dentry); ++ return dentry; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static int h_acceptable(void *expv, struct dentry *dentry) ++{ ++ return 1; ++} ++ ++static char *au_build_path(struct dentry *h_parent, struct path *h_rootpath, ++ char *buf, int len, struct super_block *sb) ++{ ++ char *p; ++ int n; ++ struct path path; ++ ++ p = d_path(h_rootpath, buf, len); ++ if (IS_ERR(p)) ++ goto out; ++ n = strlen(p); ++ ++ path.mnt = h_rootpath->mnt; ++ path.dentry = h_parent; ++ p = d_path(&path, buf, len); ++ if (IS_ERR(p)) ++ goto out; ++ if (n != 1) ++ p += n; ++ ++ path.mnt = au_mnt_get(sb); ++ path.dentry = sb->s_root; ++ p = d_path(&path, buf, len - strlen(p)); ++ mntput(path.mnt); ++ if (IS_ERR(p)) ++ goto out; ++ if (n != 1) ++ p[strlen(p)] = '/'; ++ ++out: ++ AuTraceErrPtr(p); ++ return p; ++} ++ ++static ++struct dentry *decode_by_path(struct super_block *sb, ino_t ino, __u32 *fh, ++ int fh_len, struct au_nfsd_si_lock *nsi_lock) ++{ ++ struct dentry *dentry, *h_parent, *root; ++ struct super_block *h_sb; ++ char *pathname, *p; ++ struct vfsmount *h_mnt; ++ struct au_branch *br; ++ int err; ++ struct path path; ++ ++ br = au_sbr(sb, nsi_lock->bindex); ++ h_mnt = au_br_mnt(br); ++ h_sb = h_mnt->mnt_sb; ++ /* todo: call lower fh_to_dentry()? fh_to_parent()? */ ++ lockdep_off(); ++ h_parent = exportfs_decode_fh(h_mnt, (void *)(fh + Fh_tail), ++ fh_len - Fh_tail, fh[Fh_h_type], ++ h_acceptable, /*context*/NULL); ++ lockdep_on(); ++ dentry = h_parent; ++ if (unlikely(!h_parent || IS_ERR(h_parent))) { ++ AuWarn1("%s decode_fh failed, %ld\n", ++ au_sbtype(h_sb), PTR_ERR(h_parent)); ++ goto out; ++ } ++ dentry = NULL; ++ if (unlikely(au_test_anon(h_parent))) { ++ AuWarn1("%s decode_fh returned a disconnected dentry\n", ++ au_sbtype(h_sb)); ++ goto out_h_parent; ++ } ++ ++ dentry = ERR_PTR(-ENOMEM); ++ pathname = (void *)__get_free_page(GFP_NOFS); ++ if (unlikely(!pathname)) ++ goto out_h_parent; ++ ++ root = sb->s_root; ++ path.mnt = h_mnt; ++ di_read_lock_parent(root, !AuLock_IR); ++ path.dentry = au_h_dptr(root, nsi_lock->bindex); ++ di_read_unlock(root, !AuLock_IR); ++ p = au_build_path(h_parent, &path, pathname, PAGE_SIZE, sb); ++ dentry = (void *)p; ++ if (IS_ERR(p)) ++ goto out_pathname; ++ ++ si_read_unlock(sb); ++ err = vfsub_kern_path(p, LOOKUP_FOLLOW | LOOKUP_DIRECTORY, &path); ++ dentry = ERR_PTR(err); ++ if (unlikely(err)) ++ goto out_relock; ++ ++ dentry = ERR_PTR(-ENOENT); ++ AuDebugOn(au_test_anon(path.dentry)); ++ if (unlikely(d_really_is_negative(path.dentry))) ++ goto out_path; ++ ++ if (ino != d_inode(path.dentry)->i_ino) ++ dentry = au_lkup_by_ino(&path, ino, /*nsi_lock*/NULL); ++ else ++ dentry = dget(path.dentry); ++ ++out_path: ++ path_put(&path); ++out_relock: ++ if (unlikely(si_nfsd_read_lock(sb, nsi_lock) < 0)) ++ if (!IS_ERR(dentry)) { ++ dput(dentry); ++ dentry = ERR_PTR(-ESTALE); ++ } ++out_pathname: ++ free_page((unsigned long)pathname); ++out_h_parent: ++ dput(h_parent); ++out: ++ AuTraceErrPtr(dentry); ++ return dentry; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static struct dentry * ++aufs_fh_to_dentry(struct super_block *sb, struct fid *fid, int fh_len, ++ int fh_type) ++{ ++ struct dentry *dentry; ++ __u32 *fh = fid->raw; ++ struct au_branch *br; ++ ino_t ino, dir_ino; ++ struct au_nfsd_si_lock nsi_lock = { ++ .force_lock = 0 ++ }; ++ ++ dentry = ERR_PTR(-ESTALE); ++ /* it should never happen, but the file handle is unreliable */ ++ if (unlikely(fh_len < Fh_tail)) ++ goto out; ++ nsi_lock.sigen = fh[Fh_sigen]; ++ nsi_lock.br_id = fh[Fh_br_id]; ++ ++ /* branch id may be wrapped around */ ++ br = NULL; ++ if (unlikely(si_nfsd_read_lock(sb, &nsi_lock))) ++ goto out; ++ nsi_lock.force_lock = 1; ++ ++ /* is this inode still cached? */ ++ ino = decode_ino(fh + Fh_ino); ++ /* it should never happen */ ++ if (unlikely(ino == AUFS_ROOT_INO)) ++ goto out_unlock; ++ ++ dir_ino = decode_ino(fh + Fh_dir_ino); ++ dentry = decode_by_ino(sb, ino, dir_ino); ++ if (IS_ERR(dentry)) ++ goto out_unlock; ++ if (dentry) ++ goto accept; ++ ++ /* is the parent dir cached? */ ++ br = au_sbr(sb, nsi_lock.bindex); ++ au_br_get(br); ++ dentry = decode_by_dir_ino(sb, ino, dir_ino, &nsi_lock); ++ if (IS_ERR(dentry)) ++ goto out_unlock; ++ if (dentry) ++ goto accept; ++ ++ /* lookup path */ ++ dentry = decode_by_path(sb, ino, fh, fh_len, &nsi_lock); ++ if (IS_ERR(dentry)) ++ goto out_unlock; ++ if (unlikely(!dentry)) ++ /* todo?: make it ESTALE */ ++ goto out_unlock; ++ ++accept: ++ if (!au_digen_test(dentry, au_sigen(sb)) ++ && d_inode(dentry)->i_generation == fh[Fh_igen]) ++ goto out_unlock; /* success */ ++ ++ dput(dentry); ++ dentry = ERR_PTR(-ESTALE); ++out_unlock: ++ if (br) ++ au_br_put(br); ++ si_read_unlock(sb); ++out: ++ AuTraceErrPtr(dentry); ++ return dentry; ++} ++ ++#if 0 /* reserved for future use */ ++/* support subtreecheck option */ ++static struct dentry *aufs_fh_to_parent(struct super_block *sb, struct fid *fid, ++ int fh_len, int fh_type) ++{ ++ struct dentry *parent; ++ __u32 *fh = fid->raw; ++ ino_t dir_ino; ++ ++ dir_ino = decode_ino(fh + Fh_dir_ino); ++ parent = decode_by_ino(sb, dir_ino, 0); ++ if (IS_ERR(parent)) ++ goto out; ++ if (!parent) ++ parent = decode_by_path(sb, au_br_index(sb, fh[Fh_br_id]), ++ dir_ino, fh, fh_len); ++ ++out: ++ AuTraceErrPtr(parent); ++ return parent; ++} ++#endif ++ ++/* ---------------------------------------------------------------------- */ ++ ++static int aufs_encode_fh(struct inode *inode, __u32 *fh, int *max_len, ++ struct inode *dir) ++{ ++ int err; ++ aufs_bindex_t bindex; ++ struct super_block *sb, *h_sb; ++ struct dentry *dentry, *parent, *h_parent; ++ struct inode *h_dir; ++ struct au_branch *br; ++ ++ err = -ENOSPC; ++ if (unlikely(*max_len <= Fh_tail)) { ++ AuWarn1("NFSv2 client (max_len %d)?\n", *max_len); ++ goto out; ++ } ++ ++ err = FILEID_ROOT; ++ if (inode->i_ino == AUFS_ROOT_INO) { ++ AuDebugOn(inode->i_ino != AUFS_ROOT_INO); ++ goto out; ++ } ++ ++ h_parent = NULL; ++ sb = inode->i_sb; ++ err = si_read_lock(sb, AuLock_FLUSH); ++ if (unlikely(err)) ++ goto out; ++ ++#ifdef CONFIG_AUFS_DEBUG ++ if (unlikely(!au_opt_test(au_mntflags(sb), XINO))) ++ AuWarn1("NFS-exporting requires xino\n"); ++#endif ++ err = -EIO; ++ parent = NULL; ++ ii_read_lock_child(inode); ++ bindex = au_ibtop(inode); ++ if (!dir) { ++ dentry = d_find_any_alias(inode); ++ if (unlikely(!dentry)) ++ goto out_unlock; ++ AuDebugOn(au_test_anon(dentry)); ++ parent = dget_parent(dentry); ++ dput(dentry); ++ if (unlikely(!parent)) ++ goto out_unlock; ++ if (d_really_is_positive(parent)) ++ dir = d_inode(parent); ++ } ++ ++ ii_read_lock_parent(dir); ++ h_dir = au_h_iptr(dir, bindex); ++ ii_read_unlock(dir); ++ if (unlikely(!h_dir)) ++ goto out_parent; ++ h_parent = d_find_any_alias(h_dir); ++ if (unlikely(!h_parent)) ++ goto out_hparent; ++ ++ err = -EPERM; ++ br = au_sbr(sb, bindex); ++ h_sb = au_br_sb(br); ++ if (unlikely(!h_sb->s_export_op)) { ++ AuErr1("%s branch is not exportable\n", au_sbtype(h_sb)); ++ goto out_hparent; ++ } ++ ++ fh[Fh_br_id] = br->br_id; ++ fh[Fh_sigen] = au_sigen(sb); ++ encode_ino(fh + Fh_ino, inode->i_ino); ++ encode_ino(fh + Fh_dir_ino, dir->i_ino); ++ fh[Fh_igen] = inode->i_generation; ++ ++ *max_len -= Fh_tail; ++ fh[Fh_h_type] = exportfs_encode_fh(h_parent, (void *)(fh + Fh_tail), ++ max_len, ++ /*connectable or subtreecheck*/0); ++ err = fh[Fh_h_type]; ++ *max_len += Fh_tail; ++ /* todo: macros? */ ++ if (err != FILEID_INVALID) ++ err = 99; ++ else ++ AuWarn1("%s encode_fh failed\n", au_sbtype(h_sb)); ++ ++out_hparent: ++ dput(h_parent); ++out_parent: ++ dput(parent); ++out_unlock: ++ ii_read_unlock(inode); ++ si_read_unlock(sb); ++out: ++ if (unlikely(err < 0)) ++ err = FILEID_INVALID; ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static int aufs_commit_metadata(struct inode *inode) ++{ ++ int err; ++ aufs_bindex_t bindex; ++ struct super_block *sb; ++ struct inode *h_inode; ++ int (*f)(struct inode *inode); ++ ++ sb = inode->i_sb; ++ si_read_lock(sb, AuLock_FLUSH | AuLock_NOPLMW); ++ ii_write_lock_child(inode); ++ bindex = au_ibtop(inode); ++ AuDebugOn(bindex < 0); ++ h_inode = au_h_iptr(inode, bindex); ++ ++ f = h_inode->i_sb->s_export_op->commit_metadata; ++ if (f) ++ err = f(h_inode); ++ else { ++ struct writeback_control wbc = { ++ .sync_mode = WB_SYNC_ALL, ++ .nr_to_write = 0 /* metadata only */ ++ }; ++ ++ err = sync_inode(h_inode, &wbc); ++ } ++ ++ au_cpup_attr_timesizes(inode); ++ ii_write_unlock(inode); ++ si_read_unlock(sb); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static struct export_operations aufs_export_op = { ++ .fh_to_dentry = aufs_fh_to_dentry, ++ /* .fh_to_parent = aufs_fh_to_parent, */ ++ .encode_fh = aufs_encode_fh, ++ .commit_metadata = aufs_commit_metadata ++}; ++ ++void au_export_init(struct super_block *sb) ++{ ++ struct au_sbinfo *sbinfo; ++ __u32 u; ++ ++ BUILD_BUG_ON_MSG(IS_BUILTIN(CONFIG_AUFS_FS) ++ && IS_MODULE(CONFIG_EXPORTFS), ++ AUFS_NAME ": unsupported configuration " ++ "CONFIG_EXPORTFS=m and CONFIG_AUFS_FS=y"); ++ ++ sb->s_export_op = &aufs_export_op; ++ sbinfo = au_sbi(sb); ++ sbinfo->si_xigen = NULL; ++ get_random_bytes(&u, sizeof(u)); ++ BUILD_BUG_ON(sizeof(u) != sizeof(int)); ++ atomic_set(&sbinfo->si_xigen_next, u); ++} +diff -Naur null/fs/aufs/fhsm.c linux-4.15/fs/aufs/fhsm.c +--- /dev/null ++++ linux-4.15/fs/aufs/fhsm.c 2018-02-25 02:38:09.200737684 +0100 +@@ -0,0 +1,426 @@ ++/* ++ * Copyright (C) 2011-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program; if not, write to the Free Software ++ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ++ */ ++ ++/* ++ * File-based Hierarchy Storage Management ++ */ ++ ++#include ++#include ++#include ++#include ++#include "aufs.h" ++ ++static aufs_bindex_t au_fhsm_bottom(struct super_block *sb) ++{ ++ struct au_sbinfo *sbinfo; ++ struct au_fhsm *fhsm; ++ ++ SiMustAnyLock(sb); ++ ++ sbinfo = au_sbi(sb); ++ fhsm = &sbinfo->si_fhsm; ++ AuDebugOn(!fhsm); ++ return fhsm->fhsm_bottom; ++} ++ ++void au_fhsm_set_bottom(struct super_block *sb, aufs_bindex_t bindex) ++{ ++ struct au_sbinfo *sbinfo; ++ struct au_fhsm *fhsm; ++ ++ SiMustWriteLock(sb); ++ ++ sbinfo = au_sbi(sb); ++ fhsm = &sbinfo->si_fhsm; ++ AuDebugOn(!fhsm); ++ fhsm->fhsm_bottom = bindex; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static int au_fhsm_test_jiffy(struct au_sbinfo *sbinfo, struct au_branch *br) ++{ ++ struct au_br_fhsm *bf; ++ ++ bf = br->br_fhsm; ++ MtxMustLock(&bf->bf_lock); ++ ++ return !bf->bf_readable ++ || time_after(jiffies, ++ bf->bf_jiffy + sbinfo->si_fhsm.fhsm_expire); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static void au_fhsm_notify(struct super_block *sb, int val) ++{ ++ struct au_sbinfo *sbinfo; ++ struct au_fhsm *fhsm; ++ ++ SiMustAnyLock(sb); ++ ++ sbinfo = au_sbi(sb); ++ fhsm = &sbinfo->si_fhsm; ++ if (au_fhsm_pid(fhsm) ++ && atomic_read(&fhsm->fhsm_readable) != -1) { ++ atomic_set(&fhsm->fhsm_readable, val); ++ if (val) ++ wake_up(&fhsm->fhsm_wqh); ++ } ++} ++ ++static int au_fhsm_stfs(struct super_block *sb, aufs_bindex_t bindex, ++ struct aufs_stfs *rstfs, int do_lock, int do_notify) ++{ ++ int err; ++ struct au_branch *br; ++ struct au_br_fhsm *bf; ++ ++ br = au_sbr(sb, bindex); ++ AuDebugOn(au_br_rdonly(br)); ++ bf = br->br_fhsm; ++ AuDebugOn(!bf); ++ ++ if (do_lock) ++ mutex_lock(&bf->bf_lock); ++ else ++ MtxMustLock(&bf->bf_lock); ++ ++ /* sb->s_root for NFS is unreliable */ ++ err = au_br_stfs(br, &bf->bf_stfs); ++ if (unlikely(err)) { ++ AuErr1("FHSM failed (%d), b%d, ignored.\n", bindex, err); ++ goto out; ++ } ++ ++ bf->bf_jiffy = jiffies; ++ bf->bf_readable = 1; ++ if (do_notify) ++ au_fhsm_notify(sb, /*val*/1); ++ if (rstfs) ++ *rstfs = bf->bf_stfs; ++ ++out: ++ if (do_lock) ++ mutex_unlock(&bf->bf_lock); ++ au_fhsm_notify(sb, /*val*/1); ++ ++ return err; ++} ++ ++void au_fhsm_wrote(struct super_block *sb, aufs_bindex_t bindex, int force) ++{ ++ int err; ++ struct au_sbinfo *sbinfo; ++ struct au_fhsm *fhsm; ++ struct au_branch *br; ++ struct au_br_fhsm *bf; ++ ++ AuDbg("b%d, force %d\n", bindex, force); ++ SiMustAnyLock(sb); ++ ++ sbinfo = au_sbi(sb); ++ fhsm = &sbinfo->si_fhsm; ++ if (!au_ftest_si(sbinfo, FHSM) ++ || fhsm->fhsm_bottom == bindex) ++ return; ++ ++ br = au_sbr(sb, bindex); ++ bf = br->br_fhsm; ++ AuDebugOn(!bf); ++ mutex_lock(&bf->bf_lock); ++ if (force ++ || au_fhsm_pid(fhsm) ++ || au_fhsm_test_jiffy(sbinfo, br)) ++ err = au_fhsm_stfs(sb, bindex, /*rstfs*/NULL, /*do_lock*/0, ++ /*do_notify*/1); ++ mutex_unlock(&bf->bf_lock); ++} ++ ++void au_fhsm_wrote_all(struct super_block *sb, int force) ++{ ++ aufs_bindex_t bindex, bbot; ++ struct au_branch *br; ++ ++ /* exclude the bottom */ ++ bbot = au_fhsm_bottom(sb); ++ for (bindex = 0; bindex < bbot; bindex++) { ++ br = au_sbr(sb, bindex); ++ if (au_br_fhsm(br->br_perm)) ++ au_fhsm_wrote(sb, bindex, force); ++ } ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static unsigned int au_fhsm_poll(struct file *file, ++ struct poll_table_struct *wait) ++{ ++ unsigned int mask; ++ struct au_sbinfo *sbinfo; ++ struct au_fhsm *fhsm; ++ ++ mask = 0; ++ sbinfo = file->private_data; ++ fhsm = &sbinfo->si_fhsm; ++ poll_wait(file, &fhsm->fhsm_wqh, wait); ++ if (atomic_read(&fhsm->fhsm_readable)) ++ mask = POLLIN /* | POLLRDNORM */; ++ ++ AuTraceErr((int)mask); ++ return mask; ++} ++ ++static int au_fhsm_do_read_one(struct aufs_stbr __user *stbr, ++ struct aufs_stfs *stfs, __s16 brid) ++{ ++ int err; ++ ++ err = copy_to_user(&stbr->stfs, stfs, sizeof(*stfs)); ++ if (!err) ++ err = __put_user(brid, &stbr->brid); ++ if (unlikely(err)) ++ err = -EFAULT; ++ ++ return err; ++} ++ ++static ssize_t au_fhsm_do_read(struct super_block *sb, ++ struct aufs_stbr __user *stbr, size_t count) ++{ ++ ssize_t err; ++ int nstbr; ++ aufs_bindex_t bindex, bbot; ++ struct au_branch *br; ++ struct au_br_fhsm *bf; ++ ++ /* except the bottom branch */ ++ err = 0; ++ nstbr = 0; ++ bbot = au_fhsm_bottom(sb); ++ for (bindex = 0; !err && bindex < bbot; bindex++) { ++ br = au_sbr(sb, bindex); ++ if (!au_br_fhsm(br->br_perm)) ++ continue; ++ ++ bf = br->br_fhsm; ++ mutex_lock(&bf->bf_lock); ++ if (bf->bf_readable) { ++ err = -EFAULT; ++ if (count >= sizeof(*stbr)) ++ err = au_fhsm_do_read_one(stbr++, &bf->bf_stfs, ++ br->br_id); ++ if (!err) { ++ bf->bf_readable = 0; ++ count -= sizeof(*stbr); ++ nstbr++; ++ } ++ } ++ mutex_unlock(&bf->bf_lock); ++ } ++ if (!err) ++ err = sizeof(*stbr) * nstbr; ++ ++ return err; ++} ++ ++static ssize_t au_fhsm_read(struct file *file, char __user *buf, size_t count, ++ loff_t *pos) ++{ ++ ssize_t err; ++ int readable; ++ aufs_bindex_t nfhsm, bindex, bbot; ++ struct au_sbinfo *sbinfo; ++ struct au_fhsm *fhsm; ++ struct au_branch *br; ++ struct super_block *sb; ++ ++ err = 0; ++ sbinfo = file->private_data; ++ fhsm = &sbinfo->si_fhsm; ++need_data: ++ spin_lock_irq(&fhsm->fhsm_wqh.lock); ++ if (!atomic_read(&fhsm->fhsm_readable)) { ++ if (vfsub_file_flags(file) & O_NONBLOCK) ++ err = -EAGAIN; ++ else ++ err = wait_event_interruptible_locked_irq ++ (fhsm->fhsm_wqh, ++ atomic_read(&fhsm->fhsm_readable)); ++ } ++ spin_unlock_irq(&fhsm->fhsm_wqh.lock); ++ if (unlikely(err)) ++ goto out; ++ ++ /* sb may already be dead */ ++ au_rw_read_lock(&sbinfo->si_rwsem); ++ readable = atomic_read(&fhsm->fhsm_readable); ++ if (readable > 0) { ++ sb = sbinfo->si_sb; ++ AuDebugOn(!sb); ++ /* exclude the bottom branch */ ++ nfhsm = 0; ++ bbot = au_fhsm_bottom(sb); ++ for (bindex = 0; bindex < bbot; bindex++) { ++ br = au_sbr(sb, bindex); ++ if (au_br_fhsm(br->br_perm)) ++ nfhsm++; ++ } ++ err = -EMSGSIZE; ++ if (nfhsm * sizeof(struct aufs_stbr) <= count) { ++ atomic_set(&fhsm->fhsm_readable, 0); ++ err = au_fhsm_do_read(sbinfo->si_sb, (void __user *)buf, ++ count); ++ } ++ } ++ au_rw_read_unlock(&sbinfo->si_rwsem); ++ if (!readable) ++ goto need_data; ++ ++out: ++ return err; ++} ++ ++static int au_fhsm_release(struct inode *inode, struct file *file) ++{ ++ struct au_sbinfo *sbinfo; ++ struct au_fhsm *fhsm; ++ ++ /* sb may already be dead */ ++ sbinfo = file->private_data; ++ fhsm = &sbinfo->si_fhsm; ++ spin_lock(&fhsm->fhsm_spin); ++ fhsm->fhsm_pid = 0; ++ spin_unlock(&fhsm->fhsm_spin); ++ kobject_put(&sbinfo->si_kobj); ++ ++ return 0; ++} ++ ++static const struct file_operations au_fhsm_fops = { ++ .owner = THIS_MODULE, ++ .llseek = noop_llseek, ++ .read = au_fhsm_read, ++ .poll = au_fhsm_poll, ++ .release = au_fhsm_release ++}; ++ ++int au_fhsm_fd(struct super_block *sb, int oflags) ++{ ++ int err, fd; ++ struct au_sbinfo *sbinfo; ++ struct au_fhsm *fhsm; ++ ++ err = -EPERM; ++ if (unlikely(!capable(CAP_SYS_ADMIN))) ++ goto out; ++ ++ err = -EINVAL; ++ if (unlikely(oflags & ~(O_CLOEXEC | O_NONBLOCK))) ++ goto out; ++ ++ err = 0; ++ sbinfo = au_sbi(sb); ++ fhsm = &sbinfo->si_fhsm; ++ spin_lock(&fhsm->fhsm_spin); ++ if (!fhsm->fhsm_pid) ++ fhsm->fhsm_pid = current->pid; ++ else ++ err = -EBUSY; ++ spin_unlock(&fhsm->fhsm_spin); ++ if (unlikely(err)) ++ goto out; ++ ++ oflags |= O_RDONLY; ++ /* oflags |= FMODE_NONOTIFY; */ ++ fd = anon_inode_getfd("[aufs_fhsm]", &au_fhsm_fops, sbinfo, oflags); ++ err = fd; ++ if (unlikely(fd < 0)) ++ goto out_pid; ++ ++ /* succeed reglardless 'fhsm' status */ ++ kobject_get(&sbinfo->si_kobj); ++ si_noflush_read_lock(sb); ++ if (au_ftest_si(sbinfo, FHSM)) ++ au_fhsm_wrote_all(sb, /*force*/0); ++ si_read_unlock(sb); ++ goto out; /* success */ ++ ++out_pid: ++ spin_lock(&fhsm->fhsm_spin); ++ fhsm->fhsm_pid = 0; ++ spin_unlock(&fhsm->fhsm_spin); ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++int au_fhsm_br_alloc(struct au_branch *br) ++{ ++ int err; ++ ++ err = 0; ++ br->br_fhsm = kmalloc(sizeof(*br->br_fhsm), GFP_NOFS); ++ if (br->br_fhsm) ++ au_br_fhsm_init(br->br_fhsm); ++ else ++ err = -ENOMEM; ++ ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++void au_fhsm_fin(struct super_block *sb) ++{ ++ au_fhsm_notify(sb, /*val*/-1); ++} ++ ++void au_fhsm_init(struct au_sbinfo *sbinfo) ++{ ++ struct au_fhsm *fhsm; ++ ++ fhsm = &sbinfo->si_fhsm; ++ spin_lock_init(&fhsm->fhsm_spin); ++ init_waitqueue_head(&fhsm->fhsm_wqh); ++ atomic_set(&fhsm->fhsm_readable, 0); ++ fhsm->fhsm_expire ++ = msecs_to_jiffies(AUFS_FHSM_CACHE_DEF_SEC * MSEC_PER_SEC); ++ fhsm->fhsm_bottom = -1; ++} ++ ++void au_fhsm_set(struct au_sbinfo *sbinfo, unsigned int sec) ++{ ++ sbinfo->si_fhsm.fhsm_expire ++ = msecs_to_jiffies(sec * MSEC_PER_SEC); ++} ++ ++void au_fhsm_show(struct seq_file *seq, struct au_sbinfo *sbinfo) ++{ ++ unsigned int u; ++ ++ if (!au_ftest_si(sbinfo, FHSM)) ++ return; ++ ++ u = jiffies_to_msecs(sbinfo->si_fhsm.fhsm_expire) / MSEC_PER_SEC; ++ if (u != AUFS_FHSM_CACHE_DEF_SEC) ++ seq_printf(seq, ",fhsm_sec=%u", u); ++} +diff -Naur null/fs/aufs/file.c linux-4.15/fs/aufs/file.c +--- /dev/null ++++ linux-4.15/fs/aufs/file.c 2018-02-25 02:38:09.200737684 +0100 +@@ -0,0 +1,856 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * handling file/dir, and address_space operation ++ */ ++ ++#ifdef CONFIG_AUFS_DEBUG ++#include ++#endif ++#include ++#include "aufs.h" ++ ++/* drop flags for writing */ ++unsigned int au_file_roflags(unsigned int flags) ++{ ++ flags &= ~(O_WRONLY | O_RDWR | O_APPEND | O_CREAT | O_TRUNC); ++ flags |= O_RDONLY | O_NOATIME; ++ return flags; ++} ++ ++/* common functions to regular file and dir */ ++struct file *au_h_open(struct dentry *dentry, aufs_bindex_t bindex, int flags, ++ struct file *file, int force_wr) ++{ ++ struct file *h_file; ++ struct dentry *h_dentry; ++ struct inode *h_inode; ++ struct super_block *sb; ++ struct au_branch *br; ++ struct path h_path; ++ int err; ++ ++ /* a race condition can happen between open and unlink/rmdir */ ++ h_file = ERR_PTR(-ENOENT); ++ h_dentry = au_h_dptr(dentry, bindex); ++ if (au_test_nfsd() && (!h_dentry || d_is_negative(h_dentry))) ++ goto out; ++ h_inode = d_inode(h_dentry); ++ spin_lock(&h_dentry->d_lock); ++ err = (!d_unhashed(dentry) && d_unlinked(h_dentry)) ++ /* || !d_inode(dentry)->i_nlink */ ++ ; ++ spin_unlock(&h_dentry->d_lock); ++ if (unlikely(err)) ++ goto out; ++ ++ sb = dentry->d_sb; ++ br = au_sbr(sb, bindex); ++ err = au_br_test_oflag(flags, br); ++ h_file = ERR_PTR(err); ++ if (unlikely(err)) ++ goto out; ++ ++ /* drop flags for writing */ ++ if (au_test_ro(sb, bindex, d_inode(dentry))) { ++ if (force_wr && !(flags & O_WRONLY)) ++ force_wr = 0; ++ flags = au_file_roflags(flags); ++ if (force_wr) { ++ h_file = ERR_PTR(-EROFS); ++ flags = au_file_roflags(flags); ++ if (unlikely(vfsub_native_ro(h_inode) ++ || IS_APPEND(h_inode))) ++ goto out; ++ flags &= ~O_ACCMODE; ++ flags |= O_WRONLY; ++ } ++ } ++ flags &= ~O_CREAT; ++ au_br_get(br); ++ h_path.dentry = h_dentry; ++ h_path.mnt = au_br_mnt(br); ++ h_file = vfsub_dentry_open(&h_path, flags); ++ if (IS_ERR(h_file)) ++ goto out_br; ++ ++ if (flags & __FMODE_EXEC) { ++ err = deny_write_access(h_file); ++ if (unlikely(err)) { ++ fput(h_file); ++ h_file = ERR_PTR(err); ++ goto out_br; ++ } ++ } ++ fsnotify_open(h_file); ++ goto out; /* success */ ++ ++out_br: ++ au_br_put(br); ++out: ++ return h_file; ++} ++ ++static int au_cmoo(struct dentry *dentry) ++{ ++ int err, cmoo, matched; ++ unsigned int udba; ++ struct path h_path; ++ struct au_pin pin; ++ struct au_cp_generic cpg = { ++ .dentry = dentry, ++ .bdst = -1, ++ .bsrc = -1, ++ .len = -1, ++ .pin = &pin, ++ .flags = AuCpup_DTIME | AuCpup_HOPEN ++ }; ++ struct inode *delegated; ++ struct super_block *sb; ++ struct au_sbinfo *sbinfo; ++ struct au_fhsm *fhsm; ++ pid_t pid; ++ struct au_branch *br; ++ struct dentry *parent; ++ struct au_hinode *hdir; ++ ++ DiMustWriteLock(dentry); ++ IiMustWriteLock(d_inode(dentry)); ++ ++ err = 0; ++ if (IS_ROOT(dentry)) ++ goto out; ++ cpg.bsrc = au_dbtop(dentry); ++ if (!cpg.bsrc) ++ goto out; ++ ++ sb = dentry->d_sb; ++ sbinfo = au_sbi(sb); ++ fhsm = &sbinfo->si_fhsm; ++ pid = au_fhsm_pid(fhsm); ++ rcu_read_lock(); ++ matched = (pid ++ && (current->pid == pid ++ || rcu_dereference(current->real_parent)->pid == pid)); ++ rcu_read_unlock(); ++ if (matched) ++ goto out; ++ ++ br = au_sbr(sb, cpg.bsrc); ++ cmoo = au_br_cmoo(br->br_perm); ++ if (!cmoo) ++ goto out; ++ if (!d_is_reg(dentry)) ++ cmoo &= AuBrAttr_COO_ALL; ++ if (!cmoo) ++ goto out; ++ ++ parent = dget_parent(dentry); ++ di_write_lock_parent(parent); ++ err = au_wbr_do_copyup_bu(dentry, cpg.bsrc - 1); ++ cpg.bdst = err; ++ if (unlikely(err < 0)) { ++ err = 0; /* there is no upper writable branch */ ++ goto out_dgrade; ++ } ++ AuDbg("bsrc %d, bdst %d\n", cpg.bsrc, cpg.bdst); ++ ++ /* do not respect the coo attrib for the target branch */ ++ err = au_cpup_dirs(dentry, cpg.bdst); ++ if (unlikely(err)) ++ goto out_dgrade; ++ ++ di_downgrade_lock(parent, AuLock_IR); ++ udba = au_opt_udba(sb); ++ err = au_pin(&pin, dentry, cpg.bdst, udba, ++ AuPin_DI_LOCKED | AuPin_MNT_WRITE); ++ if (unlikely(err)) ++ goto out_parent; ++ ++ err = au_sio_cpup_simple(&cpg); ++ au_unpin(&pin); ++ if (unlikely(err)) ++ goto out_parent; ++ if (!(cmoo & AuBrWAttr_MOO)) ++ goto out_parent; /* success */ ++ ++ err = au_pin(&pin, dentry, cpg.bsrc, udba, ++ AuPin_DI_LOCKED | AuPin_MNT_WRITE); ++ if (unlikely(err)) ++ goto out_parent; ++ ++ h_path.mnt = au_br_mnt(br); ++ h_path.dentry = au_h_dptr(dentry, cpg.bsrc); ++ hdir = au_hi(d_inode(parent), cpg.bsrc); ++ delegated = NULL; ++ err = vfsub_unlink(hdir->hi_inode, &h_path, &delegated, /*force*/1); ++ au_unpin(&pin); ++ /* todo: keep h_dentry or not? */ ++ if (unlikely(err == -EWOULDBLOCK)) { ++ pr_warn("cannot retry for NFSv4 delegation" ++ " for an internal unlink\n"); ++ iput(delegated); ++ } ++ if (unlikely(err)) { ++ pr_err("unlink %pd after coo failed (%d), ignored\n", ++ dentry, err); ++ err = 0; ++ } ++ goto out_parent; /* success */ ++ ++out_dgrade: ++ di_downgrade_lock(parent, AuLock_IR); ++out_parent: ++ di_read_unlock(parent, AuLock_IR); ++ dput(parent); ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++int au_do_open(struct file *file, struct au_do_open_args *args) ++{ ++ int err, aopen = args->aopen; ++ struct dentry *dentry; ++ struct au_finfo *finfo; ++ ++ if (!aopen) ++ err = au_finfo_init(file, args->fidir); ++ else { ++ lockdep_off(); ++ err = au_finfo_init(file, args->fidir); ++ lockdep_on(); ++ } ++ if (unlikely(err)) ++ goto out; ++ ++ dentry = file->f_path.dentry; ++ AuDebugOn(IS_ERR_OR_NULL(dentry)); ++ di_write_lock_child(dentry); ++ err = au_cmoo(dentry); ++ di_downgrade_lock(dentry, AuLock_IR); ++ if (!err) { ++ if (!aopen) ++ err = args->open(file, vfsub_file_flags(file), NULL); ++ else { ++ lockdep_off(); ++ err = args->open(file, vfsub_file_flags(file), NULL); ++ lockdep_on(); ++ } ++ } ++ di_read_unlock(dentry, AuLock_IR); ++ ++ finfo = au_fi(file); ++ if (!err) { ++ finfo->fi_file = file; ++ au_hbl_add(&finfo->fi_hlist, ++ &au_sbi(file->f_path.dentry->d_sb)->si_files); ++ } ++ if (!aopen) ++ fi_write_unlock(file); ++ else { ++ lockdep_off(); ++ fi_write_unlock(file); ++ lockdep_on(); ++ } ++ if (unlikely(err)) { ++ finfo->fi_hdir = NULL; ++ au_finfo_fin(file); ++ } ++ ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++int au_reopen_nondir(struct file *file) ++{ ++ int err; ++ aufs_bindex_t btop; ++ struct dentry *dentry; ++ struct file *h_file, *h_file_tmp; ++ ++ dentry = file->f_path.dentry; ++ btop = au_dbtop(dentry); ++ h_file_tmp = NULL; ++ if (au_fbtop(file) == btop) { ++ h_file = au_hf_top(file); ++ if (file->f_mode == h_file->f_mode) ++ return 0; /* success */ ++ h_file_tmp = h_file; ++ get_file(h_file_tmp); ++ au_set_h_fptr(file, btop, NULL); ++ } ++ AuDebugOn(au_fi(file)->fi_hdir); ++ /* ++ * it can happen ++ * file exists on both of rw and ro ++ * open --> dbtop and fbtop are both 0 ++ * prepend a branch as rw, "rw" become ro ++ * remove rw/file ++ * delete the top branch, "rw" becomes rw again ++ * --> dbtop is 1, fbtop is still 0 ++ * write --> fbtop is 0 but dbtop is 1 ++ */ ++ /* AuDebugOn(au_fbtop(file) < btop); */ ++ ++ h_file = au_h_open(dentry, btop, vfsub_file_flags(file) & ~O_TRUNC, ++ file, /*force_wr*/0); ++ err = PTR_ERR(h_file); ++ if (IS_ERR(h_file)) { ++ if (h_file_tmp) { ++ au_sbr_get(dentry->d_sb, btop); ++ au_set_h_fptr(file, btop, h_file_tmp); ++ h_file_tmp = NULL; ++ } ++ goto out; /* todo: close all? */ ++ } ++ ++ err = 0; ++ au_set_fbtop(file, btop); ++ au_set_h_fptr(file, btop, h_file); ++ au_update_figen(file); ++ /* todo: necessary? */ ++ /* file->f_ra = h_file->f_ra; */ ++ ++out: ++ if (h_file_tmp) ++ fput(h_file_tmp); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static int au_reopen_wh(struct file *file, aufs_bindex_t btgt, ++ struct dentry *hi_wh) ++{ ++ int err; ++ aufs_bindex_t btop; ++ struct au_dinfo *dinfo; ++ struct dentry *h_dentry; ++ struct au_hdentry *hdp; ++ ++ dinfo = au_di(file->f_path.dentry); ++ AuRwMustWriteLock(&dinfo->di_rwsem); ++ ++ btop = dinfo->di_btop; ++ dinfo->di_btop = btgt; ++ hdp = au_hdentry(dinfo, btgt); ++ h_dentry = hdp->hd_dentry; ++ hdp->hd_dentry = hi_wh; ++ err = au_reopen_nondir(file); ++ hdp->hd_dentry = h_dentry; ++ dinfo->di_btop = btop; ++ ++ return err; ++} ++ ++static int au_ready_to_write_wh(struct file *file, loff_t len, ++ aufs_bindex_t bcpup, struct au_pin *pin) ++{ ++ int err; ++ struct inode *inode, *h_inode; ++ struct dentry *h_dentry, *hi_wh; ++ struct au_cp_generic cpg = { ++ .dentry = file->f_path.dentry, ++ .bdst = bcpup, ++ .bsrc = -1, ++ .len = len, ++ .pin = pin ++ }; ++ ++ au_update_dbtop(cpg.dentry); ++ inode = d_inode(cpg.dentry); ++ h_inode = NULL; ++ if (au_dbtop(cpg.dentry) <= bcpup ++ && au_dbbot(cpg.dentry) >= bcpup) { ++ h_dentry = au_h_dptr(cpg.dentry, bcpup); ++ if (h_dentry && d_is_positive(h_dentry)) ++ h_inode = d_inode(h_dentry); ++ } ++ hi_wh = au_hi_wh(inode, bcpup); ++ if (!hi_wh && !h_inode) ++ err = au_sio_cpup_wh(&cpg, file); ++ else ++ /* already copied-up after unlink */ ++ err = au_reopen_wh(file, bcpup, hi_wh); ++ ++ if (!err ++ && (inode->i_nlink > 1 ++ || (inode->i_state & I_LINKABLE)) ++ && au_opt_test(au_mntflags(cpg.dentry->d_sb), PLINK)) ++ au_plink_append(inode, bcpup, au_h_dptr(cpg.dentry, bcpup)); ++ ++ return err; ++} ++ ++/* ++ * prepare the @file for writing. ++ */ ++int au_ready_to_write(struct file *file, loff_t len, struct au_pin *pin) ++{ ++ int err; ++ aufs_bindex_t dbtop; ++ struct dentry *parent; ++ struct inode *inode; ++ struct super_block *sb; ++ struct file *h_file; ++ struct au_cp_generic cpg = { ++ .dentry = file->f_path.dentry, ++ .bdst = -1, ++ .bsrc = -1, ++ .len = len, ++ .pin = pin, ++ .flags = AuCpup_DTIME ++ }; ++ ++ sb = cpg.dentry->d_sb; ++ inode = d_inode(cpg.dentry); ++ cpg.bsrc = au_fbtop(file); ++ err = au_test_ro(sb, cpg.bsrc, inode); ++ if (!err && (au_hf_top(file)->f_mode & FMODE_WRITE)) { ++ err = au_pin(pin, cpg.dentry, cpg.bsrc, AuOpt_UDBA_NONE, ++ /*flags*/0); ++ goto out; ++ } ++ ++ /* need to cpup or reopen */ ++ parent = dget_parent(cpg.dentry); ++ di_write_lock_parent(parent); ++ err = AuWbrCopyup(au_sbi(sb), cpg.dentry); ++ cpg.bdst = err; ++ if (unlikely(err < 0)) ++ goto out_dgrade; ++ err = 0; ++ ++ if (!d_unhashed(cpg.dentry) && !au_h_dptr(parent, cpg.bdst)) { ++ err = au_cpup_dirs(cpg.dentry, cpg.bdst); ++ if (unlikely(err)) ++ goto out_dgrade; ++ } ++ ++ err = au_pin(pin, cpg.dentry, cpg.bdst, AuOpt_UDBA_NONE, ++ AuPin_DI_LOCKED | AuPin_MNT_WRITE); ++ if (unlikely(err)) ++ goto out_dgrade; ++ ++ dbtop = au_dbtop(cpg.dentry); ++ if (dbtop <= cpg.bdst) ++ cpg.bsrc = cpg.bdst; ++ ++ if (dbtop <= cpg.bdst /* just reopen */ ++ || !d_unhashed(cpg.dentry) /* copyup and reopen */ ++ ) { ++ h_file = au_h_open_pre(cpg.dentry, cpg.bsrc, /*force_wr*/0); ++ if (IS_ERR(h_file)) ++ err = PTR_ERR(h_file); ++ else { ++ di_downgrade_lock(parent, AuLock_IR); ++ if (dbtop > cpg.bdst) ++ err = au_sio_cpup_simple(&cpg); ++ if (!err) ++ err = au_reopen_nondir(file); ++ au_h_open_post(cpg.dentry, cpg.bsrc, h_file); ++ } ++ } else { /* copyup as wh and reopen */ ++ /* ++ * since writable hfsplus branch is not supported, ++ * h_open_pre/post() are unnecessary. ++ */ ++ err = au_ready_to_write_wh(file, len, cpg.bdst, pin); ++ di_downgrade_lock(parent, AuLock_IR); ++ } ++ ++ if (!err) { ++ au_pin_set_parent_lflag(pin, /*lflag*/0); ++ goto out_dput; /* success */ ++ } ++ au_unpin(pin); ++ goto out_unlock; ++ ++out_dgrade: ++ di_downgrade_lock(parent, AuLock_IR); ++out_unlock: ++ di_read_unlock(parent, AuLock_IR); ++out_dput: ++ dput(parent); ++out: ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++int au_do_flush(struct file *file, fl_owner_t id, ++ int (*flush)(struct file *file, fl_owner_t id)) ++{ ++ int err; ++ struct super_block *sb; ++ struct inode *inode; ++ ++ inode = file_inode(file); ++ sb = inode->i_sb; ++ si_noflush_read_lock(sb); ++ fi_read_lock(file); ++ ii_read_lock_child(inode); ++ ++ err = flush(file, id); ++ au_cpup_attr_timesizes(inode); ++ ++ ii_read_unlock(inode); ++ fi_read_unlock(file); ++ si_read_unlock(sb); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static int au_file_refresh_by_inode(struct file *file, int *need_reopen) ++{ ++ int err; ++ struct au_pin pin; ++ struct au_finfo *finfo; ++ struct dentry *parent, *hi_wh; ++ struct inode *inode; ++ struct super_block *sb; ++ struct au_cp_generic cpg = { ++ .dentry = file->f_path.dentry, ++ .bdst = -1, ++ .bsrc = -1, ++ .len = -1, ++ .pin = &pin, ++ .flags = AuCpup_DTIME ++ }; ++ ++ FiMustWriteLock(file); ++ ++ err = 0; ++ finfo = au_fi(file); ++ sb = cpg.dentry->d_sb; ++ inode = d_inode(cpg.dentry); ++ cpg.bdst = au_ibtop(inode); ++ if (cpg.bdst == finfo->fi_btop || IS_ROOT(cpg.dentry)) ++ goto out; ++ ++ parent = dget_parent(cpg.dentry); ++ if (au_test_ro(sb, cpg.bdst, inode)) { ++ di_read_lock_parent(parent, !AuLock_IR); ++ err = AuWbrCopyup(au_sbi(sb), cpg.dentry); ++ cpg.bdst = err; ++ di_read_unlock(parent, !AuLock_IR); ++ if (unlikely(err < 0)) ++ goto out_parent; ++ err = 0; ++ } ++ ++ di_read_lock_parent(parent, AuLock_IR); ++ hi_wh = au_hi_wh(inode, cpg.bdst); ++ if (!S_ISDIR(inode->i_mode) ++ && au_opt_test(au_mntflags(sb), PLINK) ++ && au_plink_test(inode) ++ && !d_unhashed(cpg.dentry) ++ && cpg.bdst < au_dbtop(cpg.dentry)) { ++ err = au_test_and_cpup_dirs(cpg.dentry, cpg.bdst); ++ if (unlikely(err)) ++ goto out_unlock; ++ ++ /* always superio. */ ++ err = au_pin(&pin, cpg.dentry, cpg.bdst, AuOpt_UDBA_NONE, ++ AuPin_DI_LOCKED | AuPin_MNT_WRITE); ++ if (!err) { ++ err = au_sio_cpup_simple(&cpg); ++ au_unpin(&pin); ++ } ++ } else if (hi_wh) { ++ /* already copied-up after unlink */ ++ err = au_reopen_wh(file, cpg.bdst, hi_wh); ++ *need_reopen = 0; ++ } ++ ++out_unlock: ++ di_read_unlock(parent, AuLock_IR); ++out_parent: ++ dput(parent); ++out: ++ return err; ++} ++ ++static void au_do_refresh_dir(struct file *file) ++{ ++ aufs_bindex_t bindex, bbot, new_bindex, brid; ++ struct au_hfile *p, tmp, *q; ++ struct au_finfo *finfo; ++ struct super_block *sb; ++ struct au_fidir *fidir; ++ ++ FiMustWriteLock(file); ++ ++ sb = file->f_path.dentry->d_sb; ++ finfo = au_fi(file); ++ fidir = finfo->fi_hdir; ++ AuDebugOn(!fidir); ++ p = fidir->fd_hfile + finfo->fi_btop; ++ brid = p->hf_br->br_id; ++ bbot = fidir->fd_bbot; ++ for (bindex = finfo->fi_btop; bindex <= bbot; bindex++, p++) { ++ if (!p->hf_file) ++ continue; ++ ++ new_bindex = au_br_index(sb, p->hf_br->br_id); ++ if (new_bindex == bindex) ++ continue; ++ if (new_bindex < 0) { ++ au_set_h_fptr(file, bindex, NULL); ++ continue; ++ } ++ ++ /* swap two lower inode, and loop again */ ++ q = fidir->fd_hfile + new_bindex; ++ tmp = *q; ++ *q = *p; ++ *p = tmp; ++ if (tmp.hf_file) { ++ bindex--; ++ p--; ++ } ++ } ++ ++ p = fidir->fd_hfile; ++ if (!au_test_mmapped(file) && !d_unlinked(file->f_path.dentry)) { ++ bbot = au_sbbot(sb); ++ for (finfo->fi_btop = 0; finfo->fi_btop <= bbot; ++ finfo->fi_btop++, p++) ++ if (p->hf_file) { ++ if (file_inode(p->hf_file)) ++ break; ++ au_hfput(p, /*execed*/0); ++ } ++ } else { ++ bbot = au_br_index(sb, brid); ++ for (finfo->fi_btop = 0; finfo->fi_btop < bbot; ++ finfo->fi_btop++, p++) ++ if (p->hf_file) ++ au_hfput(p, /*execed*/0); ++ bbot = au_sbbot(sb); ++ } ++ ++ p = fidir->fd_hfile + bbot; ++ for (fidir->fd_bbot = bbot; fidir->fd_bbot >= finfo->fi_btop; ++ fidir->fd_bbot--, p--) ++ if (p->hf_file) { ++ if (file_inode(p->hf_file)) ++ break; ++ au_hfput(p, /*execed*/0); ++ } ++ AuDebugOn(fidir->fd_bbot < finfo->fi_btop); ++} ++ ++/* ++ * after branch manipulating, refresh the file. ++ */ ++static int refresh_file(struct file *file, int (*reopen)(struct file *file)) ++{ ++ int err, need_reopen, nbr; ++ aufs_bindex_t bbot, bindex; ++ struct dentry *dentry; ++ struct super_block *sb; ++ struct au_finfo *finfo; ++ struct au_hfile *hfile; ++ ++ dentry = file->f_path.dentry; ++ sb = dentry->d_sb; ++ nbr = au_sbbot(sb) + 1; ++ finfo = au_fi(file); ++ if (!finfo->fi_hdir) { ++ hfile = &finfo->fi_htop; ++ AuDebugOn(!hfile->hf_file); ++ bindex = au_br_index(sb, hfile->hf_br->br_id); ++ AuDebugOn(bindex < 0); ++ if (bindex != finfo->fi_btop) ++ au_set_fbtop(file, bindex); ++ } else { ++ err = au_fidir_realloc(finfo, nbr, /*may_shrink*/0); ++ if (unlikely(err)) ++ goto out; ++ au_do_refresh_dir(file); ++ } ++ ++ err = 0; ++ need_reopen = 1; ++ if (!au_test_mmapped(file)) ++ err = au_file_refresh_by_inode(file, &need_reopen); ++ if (finfo->fi_hdir) ++ /* harmless if err */ ++ au_fidir_realloc(finfo, nbr, /*may_shrink*/1); ++ if (!err && need_reopen && !d_unlinked(dentry)) ++ err = reopen(file); ++ if (!err) { ++ au_update_figen(file); ++ goto out; /* success */ ++ } ++ ++ /* error, close all lower files */ ++ if (finfo->fi_hdir) { ++ bbot = au_fbbot_dir(file); ++ for (bindex = au_fbtop(file); bindex <= bbot; bindex++) ++ au_set_h_fptr(file, bindex, NULL); ++ } ++ ++out: ++ return err; ++} ++ ++/* common function to regular file and dir */ ++int au_reval_and_lock_fdi(struct file *file, int (*reopen)(struct file *file), ++ int wlock, unsigned int fi_lsc) ++{ ++ int err; ++ unsigned int sigen, figen; ++ aufs_bindex_t btop; ++ unsigned char pseudo_link; ++ struct dentry *dentry; ++ struct inode *inode; ++ ++ err = 0; ++ dentry = file->f_path.dentry; ++ inode = d_inode(dentry); ++ sigen = au_sigen(dentry->d_sb); ++ fi_write_lock_nested(file, fi_lsc); ++ figen = au_figen(file); ++ if (!fi_lsc) ++ di_write_lock_child(dentry); ++ else ++ di_write_lock_child2(dentry); ++ btop = au_dbtop(dentry); ++ pseudo_link = (btop != au_ibtop(inode)); ++ if (sigen == figen && !pseudo_link && au_fbtop(file) == btop) { ++ if (!wlock) { ++ di_downgrade_lock(dentry, AuLock_IR); ++ fi_downgrade_lock(file); ++ } ++ goto out; /* success */ ++ } ++ ++ AuDbg("sigen %d, figen %d\n", sigen, figen); ++ if (au_digen_test(dentry, sigen)) { ++ err = au_reval_dpath(dentry, sigen); ++ AuDebugOn(!err && au_digen_test(dentry, sigen)); ++ } ++ ++ if (!err) ++ err = refresh_file(file, reopen); ++ if (!err) { ++ if (!wlock) { ++ di_downgrade_lock(dentry, AuLock_IR); ++ fi_downgrade_lock(file); ++ } ++ } else { ++ di_write_unlock(dentry); ++ fi_write_unlock(file); ++ } ++ ++out: ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* cf. aufs_nopage() */ ++/* for madvise(2) */ ++static int aufs_readpage(struct file *file __maybe_unused, struct page *page) ++{ ++ unlock_page(page); ++ return 0; ++} ++ ++/* it will never be called, but necessary to support O_DIRECT */ ++static ssize_t aufs_direct_IO(struct kiocb *iocb, struct iov_iter *iter) ++{ BUG(); return 0; } ++ ++/* they will never be called. */ ++#ifdef CONFIG_AUFS_DEBUG ++static int aufs_write_begin(struct file *file, struct address_space *mapping, ++ loff_t pos, unsigned len, unsigned flags, ++ struct page **pagep, void **fsdata) ++{ AuUnsupport(); return 0; } ++static int aufs_write_end(struct file *file, struct address_space *mapping, ++ loff_t pos, unsigned len, unsigned copied, ++ struct page *page, void *fsdata) ++{ AuUnsupport(); return 0; } ++static int aufs_writepage(struct page *page, struct writeback_control *wbc) ++{ AuUnsupport(); return 0; } ++ ++static int aufs_set_page_dirty(struct page *page) ++{ AuUnsupport(); return 0; } ++static void aufs_invalidatepage(struct page *page, unsigned int offset, ++ unsigned int length) ++{ AuUnsupport(); } ++static int aufs_releasepage(struct page *page, gfp_t gfp) ++{ AuUnsupport(); return 0; } ++#if 0 /* called by memory compaction regardless file */ ++static int aufs_migratepage(struct address_space *mapping, struct page *newpage, ++ struct page *page, enum migrate_mode mode) ++{ AuUnsupport(); return 0; } ++#endif ++static bool aufs_isolate_page(struct page *page, isolate_mode_t mode) ++{ AuUnsupport(); return true; } ++static void aufs_putback_page(struct page *page) ++{ AuUnsupport(); } ++static int aufs_launder_page(struct page *page) ++{ AuUnsupport(); return 0; } ++static int aufs_is_partially_uptodate(struct page *page, ++ unsigned long from, ++ unsigned long count) ++{ AuUnsupport(); return 0; } ++static void aufs_is_dirty_writeback(struct page *page, bool *dirty, ++ bool *writeback) ++{ AuUnsupport(); } ++static int aufs_error_remove_page(struct address_space *mapping, ++ struct page *page) ++{ AuUnsupport(); return 0; } ++static int aufs_swap_activate(struct swap_info_struct *sis, struct file *file, ++ sector_t *span) ++{ AuUnsupport(); return 0; } ++static void aufs_swap_deactivate(struct file *file) ++{ AuUnsupport(); } ++#endif /* CONFIG_AUFS_DEBUG */ ++ ++const struct address_space_operations aufs_aop = { ++ .readpage = aufs_readpage, ++ .direct_IO = aufs_direct_IO, ++#ifdef CONFIG_AUFS_DEBUG ++ .writepage = aufs_writepage, ++ /* no writepages, because of writepage */ ++ .set_page_dirty = aufs_set_page_dirty, ++ /* no readpages, because of readpage */ ++ .write_begin = aufs_write_begin, ++ .write_end = aufs_write_end, ++ /* no bmap, no block device */ ++ .invalidatepage = aufs_invalidatepage, ++ .releasepage = aufs_releasepage, ++ /* is fallback_migrate_page ok? */ ++ /* .migratepage = aufs_migratepage, */ ++ .isolate_page = aufs_isolate_page, ++ .putback_page = aufs_putback_page, ++ .launder_page = aufs_launder_page, ++ .is_partially_uptodate = aufs_is_partially_uptodate, ++ .is_dirty_writeback = aufs_is_dirty_writeback, ++ .error_remove_page = aufs_error_remove_page, ++ .swap_activate = aufs_swap_activate, ++ .swap_deactivate = aufs_swap_deactivate ++#endif /* CONFIG_AUFS_DEBUG */ ++}; +diff -Naur null/fs/aufs/file.h linux-4.15/fs/aufs/file.h +--- /dev/null ++++ linux-4.15/fs/aufs/file.h 2018-02-25 02:38:09.200737684 +0100 +@@ -0,0 +1,340 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * file operations ++ */ ++ ++#ifndef __AUFS_FILE_H__ ++#define __AUFS_FILE_H__ ++ ++#ifdef __KERNEL__ ++ ++#include ++#include ++#include ++#include ++#include "rwsem.h" ++ ++struct au_branch; ++struct au_hfile { ++ struct file *hf_file; ++ struct au_branch *hf_br; ++}; ++ ++struct au_vdir; ++struct au_fidir { ++ aufs_bindex_t fd_bbot; ++ aufs_bindex_t fd_nent; ++ struct au_vdir *fd_vdir_cache; ++ struct au_hfile fd_hfile[]; ++}; ++ ++static inline int au_fidir_sz(int nent) ++{ ++ AuDebugOn(nent < 0); ++ return sizeof(struct au_fidir) + sizeof(struct au_hfile) * nent; ++} ++ ++struct au_finfo { ++ atomic_t fi_generation; ++ ++ struct au_rwsem fi_rwsem; ++ aufs_bindex_t fi_btop; ++ ++ /* do not union them */ ++ struct { /* for non-dir */ ++ struct au_hfile fi_htop; ++ atomic_t fi_mmapped; ++ }; ++ struct au_fidir *fi_hdir; /* for dir only */ ++ ++ struct hlist_bl_node fi_hlist; ++ struct file *fi_file; /* very ugly */ ++} ____cacheline_aligned_in_smp; ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* file.c */ ++extern const struct address_space_operations aufs_aop; ++unsigned int au_file_roflags(unsigned int flags); ++struct file *au_h_open(struct dentry *dentry, aufs_bindex_t bindex, int flags, ++ struct file *file, int force_wr); ++struct au_do_open_args { ++ int aopen; ++ int (*open)(struct file *file, int flags, ++ struct file *h_file); ++ struct au_fidir *fidir; ++ struct file *h_file; ++}; ++int au_do_open(struct file *file, struct au_do_open_args *args); ++int au_reopen_nondir(struct file *file); ++struct au_pin; ++int au_ready_to_write(struct file *file, loff_t len, struct au_pin *pin); ++int au_reval_and_lock_fdi(struct file *file, int (*reopen)(struct file *file), ++ int wlock, unsigned int fi_lsc); ++int au_do_flush(struct file *file, fl_owner_t id, ++ int (*flush)(struct file *file, fl_owner_t id)); ++ ++/* poll.c */ ++#ifdef CONFIG_AUFS_POLL ++unsigned int aufs_poll(struct file *file, poll_table *wait); ++#endif ++ ++#ifdef CONFIG_AUFS_BR_HFSPLUS ++/* hfsplus.c */ ++struct file *au_h_open_pre(struct dentry *dentry, aufs_bindex_t bindex, ++ int force_wr); ++void au_h_open_post(struct dentry *dentry, aufs_bindex_t bindex, ++ struct file *h_file); ++#else ++AuStub(struct file *, au_h_open_pre, return NULL, struct dentry *dentry, ++ aufs_bindex_t bindex, int force_wr) ++AuStubVoid(au_h_open_post, struct dentry *dentry, aufs_bindex_t bindex, ++ struct file *h_file); ++#endif ++ ++/* f_op.c */ ++extern const struct file_operations aufs_file_fop; ++int au_do_open_nondir(struct file *file, int flags, struct file *h_file); ++int aufs_release_nondir(struct inode *inode __maybe_unused, struct file *file); ++struct file *au_read_pre(struct file *file, int keep_fi, unsigned int lsc); ++ ++/* finfo.c */ ++void au_hfput(struct au_hfile *hf, int execed); ++void au_set_h_fptr(struct file *file, aufs_bindex_t bindex, ++ struct file *h_file); ++ ++void au_update_figen(struct file *file); ++struct au_fidir *au_fidir_alloc(struct super_block *sb); ++int au_fidir_realloc(struct au_finfo *finfo, int nbr, int may_shrink); ++ ++void au_fi_init_once(void *_fi); ++void au_finfo_fin(struct file *file); ++int au_finfo_init(struct file *file, struct au_fidir *fidir); ++ ++/* ioctl.c */ ++long aufs_ioctl_nondir(struct file *file, unsigned int cmd, unsigned long arg); ++#ifdef CONFIG_COMPAT ++long aufs_compat_ioctl_dir(struct file *file, unsigned int cmd, ++ unsigned long arg); ++long aufs_compat_ioctl_nondir(struct file *file, unsigned int cmd, ++ unsigned long arg); ++#endif ++ ++/* ---------------------------------------------------------------------- */ ++ ++static inline struct au_finfo *au_fi(struct file *file) ++{ ++ return file->private_data; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++#define fi_read_lock(f) au_rw_read_lock(&au_fi(f)->fi_rwsem) ++#define fi_write_lock(f) au_rw_write_lock(&au_fi(f)->fi_rwsem) ++#define fi_read_trylock(f) au_rw_read_trylock(&au_fi(f)->fi_rwsem) ++#define fi_write_trylock(f) au_rw_write_trylock(&au_fi(f)->fi_rwsem) ++/* ++#define fi_read_trylock_nested(f) \ ++ au_rw_read_trylock_nested(&au_fi(f)->fi_rwsem) ++#define fi_write_trylock_nested(f) \ ++ au_rw_write_trylock_nested(&au_fi(f)->fi_rwsem) ++*/ ++ ++#define fi_read_unlock(f) au_rw_read_unlock(&au_fi(f)->fi_rwsem) ++#define fi_write_unlock(f) au_rw_write_unlock(&au_fi(f)->fi_rwsem) ++#define fi_downgrade_lock(f) au_rw_dgrade_lock(&au_fi(f)->fi_rwsem) ++ ++/* lock subclass for finfo */ ++enum { ++ AuLsc_FI_1, ++ AuLsc_FI_2 ++}; ++ ++static inline void fi_read_lock_nested(struct file *f, unsigned int lsc) ++{ ++ au_rw_read_lock_nested(&au_fi(f)->fi_rwsem, lsc); ++} ++ ++static inline void fi_write_lock_nested(struct file *f, unsigned int lsc) ++{ ++ au_rw_write_lock_nested(&au_fi(f)->fi_rwsem, lsc); ++} ++ ++/* ++ * fi_read_lock_1, fi_write_lock_1, ++ * fi_read_lock_2, fi_write_lock_2 ++ */ ++#define AuReadLockFunc(name) \ ++static inline void fi_read_lock_##name(struct file *f) \ ++{ fi_read_lock_nested(f, AuLsc_FI_##name); } ++ ++#define AuWriteLockFunc(name) \ ++static inline void fi_write_lock_##name(struct file *f) \ ++{ fi_write_lock_nested(f, AuLsc_FI_##name); } ++ ++#define AuRWLockFuncs(name) \ ++ AuReadLockFunc(name) \ ++ AuWriteLockFunc(name) ++ ++AuRWLockFuncs(1); ++AuRWLockFuncs(2); ++ ++#undef AuReadLockFunc ++#undef AuWriteLockFunc ++#undef AuRWLockFuncs ++ ++#define FiMustNoWaiters(f) AuRwMustNoWaiters(&au_fi(f)->fi_rwsem) ++#define FiMustAnyLock(f) AuRwMustAnyLock(&au_fi(f)->fi_rwsem) ++#define FiMustWriteLock(f) AuRwMustWriteLock(&au_fi(f)->fi_rwsem) ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* todo: hard/soft set? */ ++static inline aufs_bindex_t au_fbtop(struct file *file) ++{ ++ FiMustAnyLock(file); ++ return au_fi(file)->fi_btop; ++} ++ ++static inline aufs_bindex_t au_fbbot_dir(struct file *file) ++{ ++ FiMustAnyLock(file); ++ AuDebugOn(!au_fi(file)->fi_hdir); ++ return au_fi(file)->fi_hdir->fd_bbot; ++} ++ ++static inline struct au_vdir *au_fvdir_cache(struct file *file) ++{ ++ FiMustAnyLock(file); ++ AuDebugOn(!au_fi(file)->fi_hdir); ++ return au_fi(file)->fi_hdir->fd_vdir_cache; ++} ++ ++static inline void au_set_fbtop(struct file *file, aufs_bindex_t bindex) ++{ ++ FiMustWriteLock(file); ++ au_fi(file)->fi_btop = bindex; ++} ++ ++static inline void au_set_fbbot_dir(struct file *file, aufs_bindex_t bindex) ++{ ++ FiMustWriteLock(file); ++ AuDebugOn(!au_fi(file)->fi_hdir); ++ au_fi(file)->fi_hdir->fd_bbot = bindex; ++} ++ ++static inline void au_set_fvdir_cache(struct file *file, ++ struct au_vdir *vdir_cache) ++{ ++ FiMustWriteLock(file); ++ AuDebugOn(!au_fi(file)->fi_hdir); ++ au_fi(file)->fi_hdir->fd_vdir_cache = vdir_cache; ++} ++ ++static inline struct file *au_hf_top(struct file *file) ++{ ++ FiMustAnyLock(file); ++ AuDebugOn(au_fi(file)->fi_hdir); ++ return au_fi(file)->fi_htop.hf_file; ++} ++ ++static inline struct file *au_hf_dir(struct file *file, aufs_bindex_t bindex) ++{ ++ FiMustAnyLock(file); ++ AuDebugOn(!au_fi(file)->fi_hdir); ++ return au_fi(file)->fi_hdir->fd_hfile[0 + bindex].hf_file; ++} ++ ++/* todo: memory barrier? */ ++static inline unsigned int au_figen(struct file *f) ++{ ++ return atomic_read(&au_fi(f)->fi_generation); ++} ++ ++static inline void au_set_mmapped(struct file *f) ++{ ++ if (atomic_inc_return(&au_fi(f)->fi_mmapped)) ++ return; ++ pr_warn("fi_mmapped wrapped around\n"); ++ while (!atomic_inc_return(&au_fi(f)->fi_mmapped)) ++ ; ++} ++ ++static inline void au_unset_mmapped(struct file *f) ++{ ++ atomic_dec(&au_fi(f)->fi_mmapped); ++} ++ ++static inline int au_test_mmapped(struct file *f) ++{ ++ return atomic_read(&au_fi(f)->fi_mmapped); ++} ++ ++/* customize vma->vm_file */ ++ ++static inline void au_do_vm_file_reset(struct vm_area_struct *vma, ++ struct file *file) ++{ ++ struct file *f; ++ ++ f = vma->vm_file; ++ get_file(file); ++ vma->vm_file = file; ++ fput(f); ++} ++ ++#ifdef CONFIG_MMU ++#define AuDbgVmRegion(file, vma) do {} while (0) ++ ++static inline void au_vm_file_reset(struct vm_area_struct *vma, ++ struct file *file) ++{ ++ au_do_vm_file_reset(vma, file); ++} ++#else ++#define AuDbgVmRegion(file, vma) \ ++ AuDebugOn((vma)->vm_region && (vma)->vm_region->vm_file != (file)) ++ ++static inline void au_vm_file_reset(struct vm_area_struct *vma, ++ struct file *file) ++{ ++ struct file *f; ++ ++ au_do_vm_file_reset(vma, file); ++ f = vma->vm_region->vm_file; ++ get_file(file); ++ vma->vm_region->vm_file = file; ++ fput(f); ++} ++#endif /* CONFIG_MMU */ ++ ++/* handle vma->vm_prfile */ ++static inline void au_vm_prfile_set(struct vm_area_struct *vma, ++ struct file *file) ++{ ++ get_file(file); ++ vma->vm_prfile = file; ++#ifndef CONFIG_MMU ++ get_file(file); ++ vma->vm_region->vm_prfile = file; ++#endif ++} ++ ++#endif /* __KERNEL__ */ ++#endif /* __AUFS_FILE_H__ */ +diff -Naur null/fs/aufs/finfo.c linux-4.15/fs/aufs/finfo.c +--- /dev/null ++++ linux-4.15/fs/aufs/finfo.c 2018-02-25 02:38:09.201737791 +0100 +@@ -0,0 +1,148 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * file private data ++ */ ++ ++#include "aufs.h" ++ ++void au_hfput(struct au_hfile *hf, int execed) ++{ ++ if (execed) ++ allow_write_access(hf->hf_file); ++ fput(hf->hf_file); ++ hf->hf_file = NULL; ++ au_br_put(hf->hf_br); ++ hf->hf_br = NULL; ++} ++ ++void au_set_h_fptr(struct file *file, aufs_bindex_t bindex, struct file *val) ++{ ++ struct au_finfo *finfo = au_fi(file); ++ struct au_hfile *hf; ++ struct au_fidir *fidir; ++ ++ fidir = finfo->fi_hdir; ++ if (!fidir) { ++ AuDebugOn(finfo->fi_btop != bindex); ++ hf = &finfo->fi_htop; ++ } else ++ hf = fidir->fd_hfile + bindex; ++ ++ if (hf && hf->hf_file) ++ au_hfput(hf, vfsub_file_execed(file)); ++ if (val) { ++ FiMustWriteLock(file); ++ AuDebugOn(IS_ERR_OR_NULL(file->f_path.dentry)); ++ hf->hf_file = val; ++ hf->hf_br = au_sbr(file->f_path.dentry->d_sb, bindex); ++ } ++} ++ ++void au_update_figen(struct file *file) ++{ ++ atomic_set(&au_fi(file)->fi_generation, au_digen(file->f_path.dentry)); ++ /* smp_mb(); */ /* atomic_set */ ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++struct au_fidir *au_fidir_alloc(struct super_block *sb) ++{ ++ struct au_fidir *fidir; ++ int nbr; ++ ++ nbr = au_sbbot(sb) + 1; ++ if (nbr < 2) ++ nbr = 2; /* initial allocate for 2 branches */ ++ fidir = kzalloc(au_fidir_sz(nbr), GFP_NOFS); ++ if (fidir) { ++ fidir->fd_bbot = -1; ++ fidir->fd_nent = nbr; ++ } ++ ++ return fidir; ++} ++ ++int au_fidir_realloc(struct au_finfo *finfo, int nbr, int may_shrink) ++{ ++ int err; ++ struct au_fidir *fidir, *p; ++ ++ AuRwMustWriteLock(&finfo->fi_rwsem); ++ fidir = finfo->fi_hdir; ++ AuDebugOn(!fidir); ++ ++ err = -ENOMEM; ++ p = au_kzrealloc(fidir, au_fidir_sz(fidir->fd_nent), au_fidir_sz(nbr), ++ GFP_NOFS, may_shrink); ++ if (p) { ++ p->fd_nent = nbr; ++ finfo->fi_hdir = p; ++ err = 0; ++ } ++ ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++void au_finfo_fin(struct file *file) ++{ ++ struct au_finfo *finfo; ++ ++ au_nfiles_dec(file->f_path.dentry->d_sb); ++ ++ finfo = au_fi(file); ++ AuDebugOn(finfo->fi_hdir); ++ AuRwDestroy(&finfo->fi_rwsem); ++ au_cache_free_finfo(finfo); ++} ++ ++void au_fi_init_once(void *_finfo) ++{ ++ struct au_finfo *finfo = _finfo; ++ ++ au_rw_init(&finfo->fi_rwsem); ++} ++ ++int au_finfo_init(struct file *file, struct au_fidir *fidir) ++{ ++ int err; ++ struct au_finfo *finfo; ++ struct dentry *dentry; ++ ++ err = -ENOMEM; ++ dentry = file->f_path.dentry; ++ finfo = au_cache_alloc_finfo(); ++ if (unlikely(!finfo)) ++ goto out; ++ ++ err = 0; ++ au_nfiles_inc(dentry->d_sb); ++ au_rw_write_lock(&finfo->fi_rwsem); ++ finfo->fi_btop = -1; ++ finfo->fi_hdir = fidir; ++ atomic_set(&finfo->fi_generation, au_digen(dentry)); ++ /* smp_mb(); */ /* atomic_set */ ++ ++ file->private_data = finfo; ++ ++out: ++ return err; ++} +diff -Naur null/fs/aufs/f_op.c linux-4.15/fs/aufs/f_op.c +--- /dev/null ++++ linux-4.15/fs/aufs/f_op.c 2018-02-25 02:38:09.200737684 +0100 +@@ -0,0 +1,817 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * file and vm operations ++ */ ++ ++#include ++#include ++#include ++#include ++#include "aufs.h" ++ ++int au_do_open_nondir(struct file *file, int flags, struct file *h_file) ++{ ++ int err; ++ aufs_bindex_t bindex; ++ struct dentry *dentry, *h_dentry; ++ struct au_finfo *finfo; ++ struct inode *h_inode; ++ ++ FiMustWriteLock(file); ++ ++ err = 0; ++ dentry = file->f_path.dentry; ++ AuDebugOn(IS_ERR_OR_NULL(dentry)); ++ finfo = au_fi(file); ++ memset(&finfo->fi_htop, 0, sizeof(finfo->fi_htop)); ++ atomic_set(&finfo->fi_mmapped, 0); ++ bindex = au_dbtop(dentry); ++ if (!h_file) { ++ h_dentry = au_h_dptr(dentry, bindex); ++ err = vfsub_test_mntns(file->f_path.mnt, h_dentry->d_sb); ++ if (unlikely(err)) ++ goto out; ++ h_file = au_h_open(dentry, bindex, flags, file, /*force_wr*/0); ++ } else { ++ h_dentry = h_file->f_path.dentry; ++ err = vfsub_test_mntns(file->f_path.mnt, h_dentry->d_sb); ++ if (unlikely(err)) ++ goto out; ++ get_file(h_file); ++ } ++ if (IS_ERR(h_file)) ++ err = PTR_ERR(h_file); ++ else { ++ if ((flags & __O_TMPFILE) ++ && !(flags & O_EXCL)) { ++ h_inode = file_inode(h_file); ++ spin_lock(&h_inode->i_lock); ++ h_inode->i_state |= I_LINKABLE; ++ spin_unlock(&h_inode->i_lock); ++ } ++ au_set_fbtop(file, bindex); ++ au_set_h_fptr(file, bindex, h_file); ++ au_update_figen(file); ++ /* todo: necessary? */ ++ /* file->f_ra = h_file->f_ra; */ ++ } ++ ++out: ++ return err; ++} ++ ++static int aufs_open_nondir(struct inode *inode __maybe_unused, ++ struct file *file) ++{ ++ int err; ++ struct super_block *sb; ++ struct au_do_open_args args = { ++ .open = au_do_open_nondir ++ }; ++ ++ AuDbg("%pD, f_flags 0x%x, f_mode 0x%x\n", ++ file, vfsub_file_flags(file), file->f_mode); ++ ++ sb = file->f_path.dentry->d_sb; ++ si_read_lock(sb, AuLock_FLUSH); ++ err = au_do_open(file, &args); ++ si_read_unlock(sb); ++ return err; ++} ++ ++int aufs_release_nondir(struct inode *inode __maybe_unused, struct file *file) ++{ ++ struct au_finfo *finfo; ++ aufs_bindex_t bindex; ++ ++ finfo = au_fi(file); ++ au_hbl_del(&finfo->fi_hlist, ++ &au_sbi(file->f_path.dentry->d_sb)->si_files); ++ bindex = finfo->fi_btop; ++ if (bindex >= 0) ++ au_set_h_fptr(file, bindex, NULL); ++ ++ au_finfo_fin(file); ++ return 0; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static int au_do_flush_nondir(struct file *file, fl_owner_t id) ++{ ++ int err; ++ struct file *h_file; ++ ++ err = 0; ++ h_file = au_hf_top(file); ++ if (h_file) ++ err = vfsub_flush(h_file, id); ++ return err; ++} ++ ++static int aufs_flush_nondir(struct file *file, fl_owner_t id) ++{ ++ return au_do_flush(file, id, au_do_flush_nondir); ++} ++ ++/* ---------------------------------------------------------------------- */ ++/* ++ * read and write functions acquire [fdi]_rwsem once, but release before ++ * mmap_sem. This is because to stop a race condition between mmap(2). ++ * Releasing these aufs-rwsem should be safe, no branch-mamagement (by keeping ++ * si_rwsem), no harmful copy-up should happen. Actually copy-up may happen in ++ * read functions after [fdi]_rwsem are released, but it should be harmless. ++ */ ++ ++/* Callers should call au_read_post() or fput() in the end */ ++struct file *au_read_pre(struct file *file, int keep_fi, unsigned int lsc) ++{ ++ struct file *h_file; ++ int err; ++ ++ err = au_reval_and_lock_fdi(file, au_reopen_nondir, /*wlock*/0, lsc); ++ if (!err) { ++ di_read_unlock(file->f_path.dentry, AuLock_IR); ++ h_file = au_hf_top(file); ++ get_file(h_file); ++ if (!keep_fi) ++ fi_read_unlock(file); ++ } else ++ h_file = ERR_PTR(err); ++ ++ return h_file; ++} ++ ++static void au_read_post(struct inode *inode, struct file *h_file) ++{ ++ /* update without lock, I don't think it a problem */ ++ fsstack_copy_attr_atime(inode, file_inode(h_file)); ++ fput(h_file); ++} ++ ++struct au_write_pre { ++ /* input */ ++ unsigned int lsc; ++ ++ /* output */ ++ blkcnt_t blks; ++ aufs_bindex_t btop; ++}; ++ ++/* ++ * return with iinfo is write-locked ++ * callers should call au_write_post() or iinfo_write_unlock() + fput() in the ++ * end ++ */ ++static struct file *au_write_pre(struct file *file, int do_ready, ++ struct au_write_pre *wpre) ++{ ++ struct file *h_file; ++ struct dentry *dentry; ++ int err; ++ unsigned int lsc; ++ struct au_pin pin; ++ ++ lsc = 0; ++ if (wpre) ++ lsc = wpre->lsc; ++ err = au_reval_and_lock_fdi(file, au_reopen_nondir, /*wlock*/1, lsc); ++ h_file = ERR_PTR(err); ++ if (unlikely(err)) ++ goto out; ++ ++ dentry = file->f_path.dentry; ++ if (do_ready) { ++ err = au_ready_to_write(file, -1, &pin); ++ if (unlikely(err)) { ++ h_file = ERR_PTR(err); ++ di_write_unlock(dentry); ++ goto out_fi; ++ } ++ } ++ ++ di_downgrade_lock(dentry, /*flags*/0); ++ if (wpre) ++ wpre->btop = au_fbtop(file); ++ h_file = au_hf_top(file); ++ get_file(h_file); ++ if (wpre) ++ wpre->blks = file_inode(h_file)->i_blocks; ++ if (do_ready) ++ au_unpin(&pin); ++ di_read_unlock(dentry, /*flags*/0); ++ ++out_fi: ++ fi_write_unlock(file); ++out: ++ return h_file; ++} ++ ++static void au_write_post(struct inode *inode, struct file *h_file, ++ struct au_write_pre *wpre, ssize_t written) ++{ ++ struct inode *h_inode; ++ ++ au_cpup_attr_timesizes(inode); ++ AuDebugOn(au_ibtop(inode) != wpre->btop); ++ h_inode = file_inode(h_file); ++ inode->i_mode = h_inode->i_mode; ++ ii_write_unlock(inode); ++ /* AuDbg("blks %llu, %llu\n", (u64)blks, (u64)h_inode->i_blocks); */ ++ if (written > 0) ++ au_fhsm_wrote(inode->i_sb, wpre->btop, ++ /*force*/h_inode->i_blocks > wpre->blks); ++ fput(h_file); ++} ++ ++static ssize_t aufs_read(struct file *file, char __user *buf, size_t count, ++ loff_t *ppos) ++{ ++ ssize_t err; ++ struct inode *inode; ++ struct file *h_file; ++ struct super_block *sb; ++ ++ inode = file_inode(file); ++ sb = inode->i_sb; ++ si_read_lock(sb, AuLock_FLUSH | AuLock_NOPLMW); ++ ++ h_file = au_read_pre(file, /*keep_fi*/0, /*lsc*/0); ++ err = PTR_ERR(h_file); ++ if (IS_ERR(h_file)) ++ goto out; ++ ++ /* filedata may be obsoleted by concurrent copyup, but no problem */ ++ err = vfsub_read_u(h_file, buf, count, ppos); ++ /* todo: necessary? */ ++ /* file->f_ra = h_file->f_ra; */ ++ au_read_post(inode, h_file); ++ ++out: ++ si_read_unlock(sb); ++ return err; ++} ++ ++/* ++ * todo: very ugly ++ * it locks both of i_mutex and si_rwsem for read in safe. ++ * if the plink maintenance mode continues forever (that is the problem), ++ * may loop forever. ++ */ ++static void au_mtx_and_read_lock(struct inode *inode) ++{ ++ int err; ++ struct super_block *sb = inode->i_sb; ++ ++ while (1) { ++ inode_lock(inode); ++ err = si_read_lock(sb, AuLock_FLUSH | AuLock_NOPLM); ++ if (!err) ++ break; ++ inode_unlock(inode); ++ si_read_lock(sb, AuLock_NOPLMW); ++ si_read_unlock(sb); ++ } ++} ++ ++static ssize_t aufs_write(struct file *file, const char __user *ubuf, ++ size_t count, loff_t *ppos) ++{ ++ ssize_t err; ++ struct au_write_pre wpre; ++ struct inode *inode; ++ struct file *h_file; ++ char __user *buf = (char __user *)ubuf; ++ ++ inode = file_inode(file); ++ au_mtx_and_read_lock(inode); ++ ++ wpre.lsc = 0; ++ h_file = au_write_pre(file, /*do_ready*/1, &wpre); ++ err = PTR_ERR(h_file); ++ if (IS_ERR(h_file)) ++ goto out; ++ ++ err = vfsub_write_u(h_file, buf, count, ppos); ++ au_write_post(inode, h_file, &wpre, err); ++ ++out: ++ si_read_unlock(inode->i_sb); ++ inode_unlock(inode); ++ return err; ++} ++ ++static ssize_t au_do_iter(struct file *h_file, int rw, struct kiocb *kio, ++ struct iov_iter *iov_iter) ++{ ++ ssize_t err; ++ struct file *file; ++ ssize_t (*iter)(struct kiocb *, struct iov_iter *); ++ ++ err = security_file_permission(h_file, rw); ++ if (unlikely(err)) ++ goto out; ++ ++ err = -ENOSYS; ++ iter = NULL; ++ if (rw == MAY_READ) ++ iter = h_file->f_op->read_iter; ++ else if (rw == MAY_WRITE) ++ iter = h_file->f_op->write_iter; ++ ++ file = kio->ki_filp; ++ kio->ki_filp = h_file; ++ if (iter) { ++ lockdep_off(); ++ err = iter(kio, iov_iter); ++ lockdep_on(); ++ } else ++ /* currently there is no such fs */ ++ WARN_ON_ONCE(1); ++ kio->ki_filp = file; ++ ++out: ++ return err; ++} ++ ++static ssize_t aufs_read_iter(struct kiocb *kio, struct iov_iter *iov_iter) ++{ ++ ssize_t err; ++ struct file *file, *h_file; ++ struct inode *inode; ++ struct super_block *sb; ++ ++ file = kio->ki_filp; ++ inode = file_inode(file); ++ sb = inode->i_sb; ++ si_read_lock(sb, AuLock_FLUSH | AuLock_NOPLMW); ++ ++ h_file = au_read_pre(file, /*keep_fi*/1, /*lsc*/0); ++ err = PTR_ERR(h_file); ++ if (IS_ERR(h_file)) ++ goto out; ++ ++ if (au_test_loopback_kthread()) { ++ au_warn_loopback(h_file->f_path.dentry->d_sb); ++ if (file->f_mapping != h_file->f_mapping) { ++ file->f_mapping = h_file->f_mapping; ++ smp_mb(); /* unnecessary? */ ++ } ++ } ++ fi_read_unlock(file); ++ ++ err = au_do_iter(h_file, MAY_READ, kio, iov_iter); ++ /* todo: necessary? */ ++ /* file->f_ra = h_file->f_ra; */ ++ au_read_post(inode, h_file); ++ ++out: ++ si_read_unlock(sb); ++ return err; ++} ++ ++static ssize_t aufs_write_iter(struct kiocb *kio, struct iov_iter *iov_iter) ++{ ++ ssize_t err; ++ struct au_write_pre wpre; ++ struct inode *inode; ++ struct file *file, *h_file; ++ ++ file = kio->ki_filp; ++ inode = file_inode(file); ++ au_mtx_and_read_lock(inode); ++ ++ wpre.lsc = 0; ++ h_file = au_write_pre(file, /*do_ready*/1, &wpre); ++ err = PTR_ERR(h_file); ++ if (IS_ERR(h_file)) ++ goto out; ++ ++ err = au_do_iter(h_file, MAY_WRITE, kio, iov_iter); ++ au_write_post(inode, h_file, &wpre, err); ++ ++out: ++ si_read_unlock(inode->i_sb); ++ inode_unlock(inode); ++ return err; ++} ++ ++static ssize_t aufs_splice_read(struct file *file, loff_t *ppos, ++ struct pipe_inode_info *pipe, size_t len, ++ unsigned int flags) ++{ ++ ssize_t err; ++ struct file *h_file; ++ struct inode *inode; ++ struct super_block *sb; ++ ++ inode = file_inode(file); ++ sb = inode->i_sb; ++ si_read_lock(sb, AuLock_FLUSH | AuLock_NOPLMW); ++ ++ h_file = au_read_pre(file, /*keep_fi*/0, /*lsc*/0); ++ err = PTR_ERR(h_file); ++ if (IS_ERR(h_file)) ++ goto out; ++ ++ err = vfsub_splice_to(h_file, ppos, pipe, len, flags); ++ /* todo: necessasry? */ ++ /* file->f_ra = h_file->f_ra; */ ++ au_read_post(inode, h_file); ++ ++out: ++ si_read_unlock(sb); ++ return err; ++} ++ ++static ssize_t ++aufs_splice_write(struct pipe_inode_info *pipe, struct file *file, loff_t *ppos, ++ size_t len, unsigned int flags) ++{ ++ ssize_t err; ++ struct au_write_pre wpre; ++ struct inode *inode; ++ struct file *h_file; ++ ++ inode = file_inode(file); ++ au_mtx_and_read_lock(inode); ++ ++ wpre.lsc = 0; ++ h_file = au_write_pre(file, /*do_ready*/1, &wpre); ++ err = PTR_ERR(h_file); ++ if (IS_ERR(h_file)) ++ goto out; ++ ++ err = vfsub_splice_from(pipe, h_file, ppos, len, flags); ++ au_write_post(inode, h_file, &wpre, err); ++ ++out: ++ si_read_unlock(inode->i_sb); ++ inode_unlock(inode); ++ return err; ++} ++ ++static long aufs_fallocate(struct file *file, int mode, loff_t offset, ++ loff_t len) ++{ ++ long err; ++ struct au_write_pre wpre; ++ struct inode *inode; ++ struct file *h_file; ++ ++ inode = file_inode(file); ++ au_mtx_and_read_lock(inode); ++ ++ wpre.lsc = 0; ++ h_file = au_write_pre(file, /*do_ready*/1, &wpre); ++ err = PTR_ERR(h_file); ++ if (IS_ERR(h_file)) ++ goto out; ++ ++ lockdep_off(); ++ err = vfs_fallocate(h_file, mode, offset, len); ++ lockdep_on(); ++ au_write_post(inode, h_file, &wpre, /*written*/1); ++ ++out: ++ si_read_unlock(inode->i_sb); ++ inode_unlock(inode); ++ return err; ++} ++ ++static ssize_t aufs_copy_file_range(struct file *src, loff_t src_pos, ++ struct file *dst, loff_t dst_pos, ++ size_t len, unsigned int flags) ++{ ++ ssize_t err; ++ struct au_write_pre wpre; ++ enum { SRC, DST }; ++ struct { ++ struct inode *inode; ++ struct file *h_file; ++ struct super_block *h_sb; ++ } a[2]; ++#define a_src a[SRC] ++#define a_dst a[DST] ++ ++ err = -EINVAL; ++ a_src.inode = file_inode(src); ++ if (unlikely(!S_ISREG(a_src.inode->i_mode))) ++ goto out; ++ a_dst.inode = file_inode(dst); ++ if (unlikely(!S_ISREG(a_dst.inode->i_mode))) ++ goto out; ++ ++ au_mtx_and_read_lock(a_dst.inode); ++ /* ++ * in order to match the order in di_write_lock2_{child,parent}(), ++ * use f_path.dentry for this comparision. ++ */ ++ if (src->f_path.dentry < dst->f_path.dentry) { ++ a_src.h_file = au_read_pre(src, /*keep_fi*/1, AuLsc_FI_1); ++ err = PTR_ERR(a_src.h_file); ++ if (IS_ERR(a_src.h_file)) ++ goto out_si; ++ ++ wpre.lsc = AuLsc_FI_2; ++ a_dst.h_file = au_write_pre(dst, /*do_ready*/1, &wpre); ++ err = PTR_ERR(a_dst.h_file); ++ if (IS_ERR(a_dst.h_file)) { ++ au_read_post(a_src.inode, a_src.h_file); ++ goto out_si; ++ } ++ } else { ++ wpre.lsc = AuLsc_FI_1; ++ a_dst.h_file = au_write_pre(dst, /*do_ready*/1, &wpre); ++ err = PTR_ERR(a_dst.h_file); ++ if (IS_ERR(a_dst.h_file)) ++ goto out_si; ++ ++ a_src.h_file = au_read_pre(src, /*keep_fi*/1, AuLsc_FI_2); ++ err = PTR_ERR(a_src.h_file); ++ if (IS_ERR(a_src.h_file)) { ++ au_write_post(a_dst.inode, a_dst.h_file, &wpre, ++ /*written*/0); ++ goto out_si; ++ } ++ } ++ ++ err = -EXDEV; ++ a_src.h_sb = file_inode(a_src.h_file)->i_sb; ++ a_dst.h_sb = file_inode(a_dst.h_file)->i_sb; ++ if (unlikely(a_src.h_sb != a_dst.h_sb)) { ++ AuDbgFile(src); ++ AuDbgFile(dst); ++ goto out_file; ++ } ++ ++ err = vfsub_copy_file_range(a_src.h_file, src_pos, a_dst.h_file, ++ dst_pos, len, flags); ++ ++out_file: ++ au_write_post(a_dst.inode, a_dst.h_file, &wpre, err); ++ fi_read_unlock(src); ++ au_read_post(a_src.inode, a_src.h_file); ++out_si: ++ si_read_unlock(a_dst.inode->i_sb); ++ inode_unlock(a_dst.inode); ++out: ++ return err; ++#undef a_src ++#undef a_dst ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* ++ * The locking order around current->mmap_sem. ++ * - in most and regular cases ++ * file I/O syscall -- aufs_read() or something ++ * -- si_rwsem for read -- mmap_sem ++ * (Note that [fdi]i_rwsem are released before mmap_sem). ++ * - in mmap case ++ * mmap(2) -- mmap_sem -- aufs_mmap() -- si_rwsem for read -- [fdi]i_rwsem ++ * This AB-BA order is definitly bad, but is not a problem since "si_rwsem for ++ * read" allows muliple processes to acquire it and [fdi]i_rwsem are not held in ++ * file I/O. Aufs needs to stop lockdep in aufs_mmap() though. ++ * It means that when aufs acquires si_rwsem for write, the process should never ++ * acquire mmap_sem. ++ * ++ * Actually aufs_iterate() holds [fdi]i_rwsem before mmap_sem, but this is not a ++ * problem either since any directory is not able to be mmap-ed. ++ * The similar scenario is applied to aufs_readlink() too. ++ */ ++ ++#if 0 /* stop calling security_file_mmap() */ ++/* cf. linux/include/linux/mman.h: calc_vm_prot_bits() */ ++#define AuConv_VM_PROT(f, b) _calc_vm_trans(f, VM_##b, PROT_##b) ++ ++static unsigned long au_arch_prot_conv(unsigned long flags) ++{ ++ /* currently ppc64 only */ ++#ifdef CONFIG_PPC64 ++ /* cf. linux/arch/powerpc/include/asm/mman.h */ ++ AuDebugOn(arch_calc_vm_prot_bits(-1) != VM_SAO); ++ return AuConv_VM_PROT(flags, SAO); ++#else ++ AuDebugOn(arch_calc_vm_prot_bits(-1)); ++ return 0; ++#endif ++} ++ ++static unsigned long au_prot_conv(unsigned long flags) ++{ ++ return AuConv_VM_PROT(flags, READ) ++ | AuConv_VM_PROT(flags, WRITE) ++ | AuConv_VM_PROT(flags, EXEC) ++ | au_arch_prot_conv(flags); ++} ++ ++/* cf. linux/include/linux/mman.h: calc_vm_flag_bits() */ ++#define AuConv_VM_MAP(f, b) _calc_vm_trans(f, VM_##b, MAP_##b) ++ ++static unsigned long au_flag_conv(unsigned long flags) ++{ ++ return AuConv_VM_MAP(flags, GROWSDOWN) ++ | AuConv_VM_MAP(flags, DENYWRITE) ++ | AuConv_VM_MAP(flags, LOCKED); ++} ++#endif ++ ++static int aufs_mmap(struct file *file, struct vm_area_struct *vma) ++{ ++ int err; ++ const unsigned char wlock ++ = (file->f_mode & FMODE_WRITE) && (vma->vm_flags & VM_SHARED); ++ struct super_block *sb; ++ struct file *h_file; ++ struct inode *inode; ++ ++ AuDbgVmRegion(file, vma); ++ ++ inode = file_inode(file); ++ sb = inode->i_sb; ++ lockdep_off(); ++ si_read_lock(sb, AuLock_NOPLMW); ++ ++ h_file = au_write_pre(file, wlock, /*wpre*/NULL); ++ lockdep_on(); ++ err = PTR_ERR(h_file); ++ if (IS_ERR(h_file)) ++ goto out; ++ ++ err = 0; ++ au_set_mmapped(file); ++ au_vm_file_reset(vma, h_file); ++ /* ++ * we cannot call security_mmap_file() here since it may acquire ++ * mmap_sem or i_mutex. ++ * ++ * err = security_mmap_file(h_file, au_prot_conv(vma->vm_flags), ++ * au_flag_conv(vma->vm_flags)); ++ */ ++ if (!err) ++ err = call_mmap(h_file, vma); ++ if (!err) { ++ au_vm_prfile_set(vma, file); ++ fsstack_copy_attr_atime(inode, file_inode(h_file)); ++ goto out_fput; /* success */ ++ } ++ au_unset_mmapped(file); ++ au_vm_file_reset(vma, file); ++ ++out_fput: ++ lockdep_off(); ++ ii_write_unlock(inode); ++ lockdep_on(); ++ fput(h_file); ++out: ++ lockdep_off(); ++ si_read_unlock(sb); ++ lockdep_on(); ++ AuTraceErr(err); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static int aufs_fsync_nondir(struct file *file, loff_t start, loff_t end, ++ int datasync) ++{ ++ int err; ++ struct au_write_pre wpre; ++ struct inode *inode; ++ struct file *h_file; ++ ++ err = 0; /* -EBADF; */ /* posix? */ ++ if (unlikely(!(file->f_mode & FMODE_WRITE))) ++ goto out; ++ ++ inode = file_inode(file); ++ au_mtx_and_read_lock(inode); ++ ++ wpre.lsc = 0; ++ h_file = au_write_pre(file, /*do_ready*/1, &wpre); ++ err = PTR_ERR(h_file); ++ if (IS_ERR(h_file)) ++ goto out_unlock; ++ ++ err = vfsub_fsync(h_file, &h_file->f_path, datasync); ++ au_write_post(inode, h_file, &wpre, /*written*/0); ++ ++out_unlock: ++ si_read_unlock(inode->i_sb); ++ inode_unlock(inode); ++out: ++ return err; ++} ++ ++static int aufs_fasync(int fd, struct file *file, int flag) ++{ ++ int err; ++ struct file *h_file; ++ struct super_block *sb; ++ ++ sb = file->f_path.dentry->d_sb; ++ si_read_lock(sb, AuLock_FLUSH | AuLock_NOPLMW); ++ ++ h_file = au_read_pre(file, /*keep_fi*/0, /*lsc*/0); ++ err = PTR_ERR(h_file); ++ if (IS_ERR(h_file)) ++ goto out; ++ ++ if (h_file->f_op->fasync) ++ err = h_file->f_op->fasync(fd, h_file, flag); ++ fput(h_file); /* instead of au_read_post() */ ++ ++out: ++ si_read_unlock(sb); ++ return err; ++} ++ ++static int aufs_setfl(struct file *file, unsigned long arg) ++{ ++ int err; ++ struct file *h_file; ++ struct super_block *sb; ++ ++ sb = file->f_path.dentry->d_sb; ++ si_read_lock(sb, AuLock_FLUSH | AuLock_NOPLMW); ++ ++ h_file = au_read_pre(file, /*keep_fi*/0, /*lsc*/0); ++ err = PTR_ERR(h_file); ++ if (IS_ERR(h_file)) ++ goto out; ++ ++ /* stop calling h_file->fasync */ ++ arg |= vfsub_file_flags(file) & FASYNC; ++ err = setfl(/*unused fd*/-1, h_file, arg); ++ fput(h_file); /* instead of au_read_post() */ ++ ++out: ++ si_read_unlock(sb); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* no one supports this operation, currently */ ++#if 0 ++static ssize_t aufs_sendpage(struct file *file, struct page *page, int offset, ++ size_t len, loff_t *pos, int more) ++{ ++} ++#endif ++ ++/* ---------------------------------------------------------------------- */ ++ ++const struct file_operations aufs_file_fop = { ++ .owner = THIS_MODULE, ++ ++ .llseek = default_llseek, ++ ++ .read = aufs_read, ++ .write = aufs_write, ++ .read_iter = aufs_read_iter, ++ .write_iter = aufs_write_iter, ++ ++#ifdef CONFIG_AUFS_POLL ++ .poll = aufs_poll, ++#endif ++ .unlocked_ioctl = aufs_ioctl_nondir, ++#ifdef CONFIG_COMPAT ++ .compat_ioctl = aufs_compat_ioctl_nondir, ++#endif ++ .mmap = aufs_mmap, ++ .open = aufs_open_nondir, ++ .flush = aufs_flush_nondir, ++ .release = aufs_release_nondir, ++ .fsync = aufs_fsync_nondir, ++ .fasync = aufs_fasync, ++ /* .sendpage = aufs_sendpage, */ ++ .setfl = aufs_setfl, ++ .splice_write = aufs_splice_write, ++ .splice_read = aufs_splice_read, ++#if 0 ++ .aio_splice_write = aufs_aio_splice_write, ++ .aio_splice_read = aufs_aio_splice_read, ++#endif ++ .fallocate = aufs_fallocate, ++ .copy_file_range = aufs_copy_file_range ++}; +diff -Naur null/fs/aufs/fstype.h linux-4.15/fs/aufs/fstype.h +--- /dev/null ++++ linux-4.15/fs/aufs/fstype.h 2018-02-25 02:38:09.201737791 +0100 +@@ -0,0 +1,400 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * judging filesystem type ++ */ ++ ++#ifndef __AUFS_FSTYPE_H__ ++#define __AUFS_FSTYPE_H__ ++ ++#ifdef __KERNEL__ ++ ++#include ++#include ++#include ++#include ++ ++static inline int au_test_aufs(struct super_block *sb) ++{ ++ return sb->s_magic == AUFS_SUPER_MAGIC; ++} ++ ++static inline const char *au_sbtype(struct super_block *sb) ++{ ++ return sb->s_type->name; ++} ++ ++static inline int au_test_iso9660(struct super_block *sb __maybe_unused) ++{ ++#if IS_ENABLED(CONFIG_ISO9660_FS) ++ return sb->s_magic == ISOFS_SUPER_MAGIC; ++#else ++ return 0; ++#endif ++} ++ ++static inline int au_test_romfs(struct super_block *sb __maybe_unused) ++{ ++#if IS_ENABLED(CONFIG_ROMFS_FS) ++ return sb->s_magic == ROMFS_MAGIC; ++#else ++ return 0; ++#endif ++} ++ ++static inline int au_test_cramfs(struct super_block *sb __maybe_unused) ++{ ++#if IS_ENABLED(CONFIG_CRAMFS) ++ return sb->s_magic == CRAMFS_MAGIC; ++#endif ++ return 0; ++} ++ ++static inline int au_test_nfs(struct super_block *sb __maybe_unused) ++{ ++#if IS_ENABLED(CONFIG_NFS_FS) ++ return sb->s_magic == NFS_SUPER_MAGIC; ++#else ++ return 0; ++#endif ++} ++ ++static inline int au_test_fuse(struct super_block *sb __maybe_unused) ++{ ++#if IS_ENABLED(CONFIG_FUSE_FS) ++ return sb->s_magic == FUSE_SUPER_MAGIC; ++#else ++ return 0; ++#endif ++} ++ ++static inline int au_test_xfs(struct super_block *sb __maybe_unused) ++{ ++#if IS_ENABLED(CONFIG_XFS_FS) ++ return sb->s_magic == XFS_SB_MAGIC; ++#else ++ return 0; ++#endif ++} ++ ++static inline int au_test_tmpfs(struct super_block *sb __maybe_unused) ++{ ++#ifdef CONFIG_TMPFS ++ return sb->s_magic == TMPFS_MAGIC; ++#else ++ return 0; ++#endif ++} ++ ++static inline int au_test_ecryptfs(struct super_block *sb __maybe_unused) ++{ ++#if IS_ENABLED(CONFIG_ECRYPT_FS) ++ return !strcmp(au_sbtype(sb), "ecryptfs"); ++#else ++ return 0; ++#endif ++} ++ ++static inline int au_test_ramfs(struct super_block *sb) ++{ ++ return sb->s_magic == RAMFS_MAGIC; ++} ++ ++static inline int au_test_ubifs(struct super_block *sb __maybe_unused) ++{ ++#if IS_ENABLED(CONFIG_UBIFS_FS) ++ return sb->s_magic == UBIFS_SUPER_MAGIC; ++#else ++ return 0; ++#endif ++} ++ ++static inline int au_test_procfs(struct super_block *sb __maybe_unused) ++{ ++#ifdef CONFIG_PROC_FS ++ return sb->s_magic == PROC_SUPER_MAGIC; ++#else ++ return 0; ++#endif ++} ++ ++static inline int au_test_sysfs(struct super_block *sb __maybe_unused) ++{ ++#ifdef CONFIG_SYSFS ++ return sb->s_magic == SYSFS_MAGIC; ++#else ++ return 0; ++#endif ++} ++ ++static inline int au_test_configfs(struct super_block *sb __maybe_unused) ++{ ++#if IS_ENABLED(CONFIG_CONFIGFS_FS) ++ return sb->s_magic == CONFIGFS_MAGIC; ++#else ++ return 0; ++#endif ++} ++ ++static inline int au_test_minix(struct super_block *sb __maybe_unused) ++{ ++#if IS_ENABLED(CONFIG_MINIX_FS) ++ return sb->s_magic == MINIX3_SUPER_MAGIC ++ || sb->s_magic == MINIX2_SUPER_MAGIC ++ || sb->s_magic == MINIX2_SUPER_MAGIC2 ++ || sb->s_magic == MINIX_SUPER_MAGIC ++ || sb->s_magic == MINIX_SUPER_MAGIC2; ++#else ++ return 0; ++#endif ++} ++ ++static inline int au_test_fat(struct super_block *sb __maybe_unused) ++{ ++#if IS_ENABLED(CONFIG_FAT_FS) ++ return sb->s_magic == MSDOS_SUPER_MAGIC; ++#else ++ return 0; ++#endif ++} ++ ++static inline int au_test_msdos(struct super_block *sb) ++{ ++ return au_test_fat(sb); ++} ++ ++static inline int au_test_vfat(struct super_block *sb) ++{ ++ return au_test_fat(sb); ++} ++ ++static inline int au_test_securityfs(struct super_block *sb __maybe_unused) ++{ ++#ifdef CONFIG_SECURITYFS ++ return sb->s_magic == SECURITYFS_MAGIC; ++#else ++ return 0; ++#endif ++} ++ ++static inline int au_test_squashfs(struct super_block *sb __maybe_unused) ++{ ++#if IS_ENABLED(CONFIG_SQUASHFS) ++ return sb->s_magic == SQUASHFS_MAGIC; ++#else ++ return 0; ++#endif ++} ++ ++static inline int au_test_btrfs(struct super_block *sb __maybe_unused) ++{ ++#if IS_ENABLED(CONFIG_BTRFS_FS) ++ return sb->s_magic == BTRFS_SUPER_MAGIC; ++#else ++ return 0; ++#endif ++} ++ ++static inline int au_test_xenfs(struct super_block *sb __maybe_unused) ++{ ++#if IS_ENABLED(CONFIG_XENFS) ++ return sb->s_magic == XENFS_SUPER_MAGIC; ++#else ++ return 0; ++#endif ++} ++ ++static inline int au_test_debugfs(struct super_block *sb __maybe_unused) ++{ ++#ifdef CONFIG_DEBUG_FS ++ return sb->s_magic == DEBUGFS_MAGIC; ++#else ++ return 0; ++#endif ++} ++ ++static inline int au_test_nilfs(struct super_block *sb __maybe_unused) ++{ ++#if IS_ENABLED(CONFIG_NILFS) ++ return sb->s_magic == NILFS_SUPER_MAGIC; ++#else ++ return 0; ++#endif ++} ++ ++static inline int au_test_hfsplus(struct super_block *sb __maybe_unused) ++{ ++#if IS_ENABLED(CONFIG_HFSPLUS_FS) ++ return sb->s_magic == HFSPLUS_SUPER_MAGIC; ++#else ++ return 0; ++#endif ++} ++ ++/* ---------------------------------------------------------------------- */ ++/* ++ * they can't be an aufs branch. ++ */ ++static inline int au_test_fs_unsuppoted(struct super_block *sb) ++{ ++ return ++#ifndef CONFIG_AUFS_BR_RAMFS ++ au_test_ramfs(sb) || ++#endif ++ au_test_procfs(sb) ++ || au_test_sysfs(sb) ++ || au_test_configfs(sb) ++ || au_test_debugfs(sb) ++ || au_test_securityfs(sb) ++ || au_test_xenfs(sb) ++ || au_test_ecryptfs(sb) ++ /* || !strcmp(au_sbtype(sb), "unionfs") */ ++ || au_test_aufs(sb); /* will be supported in next version */ ++} ++ ++static inline int au_test_fs_remote(struct super_block *sb) ++{ ++ return !au_test_tmpfs(sb) ++#ifdef CONFIG_AUFS_BR_RAMFS ++ && !au_test_ramfs(sb) ++#endif ++ && !(sb->s_type->fs_flags & FS_REQUIRES_DEV); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* ++ * Note: these functions (below) are created after reading ->getattr() in all ++ * filesystems under linux/fs. it means we have to do so in every update... ++ */ ++ ++/* ++ * some filesystems require getattr to refresh the inode attributes before ++ * referencing. ++ * in most cases, we can rely on the inode attribute in NFS (or every remote fs) ++ * and leave the work for d_revalidate() ++ */ ++static inline int au_test_fs_refresh_iattr(struct super_block *sb) ++{ ++ return au_test_nfs(sb) ++ || au_test_fuse(sb) ++ /* || au_test_btrfs(sb) */ /* untested */ ++ ; ++} ++ ++/* ++ * filesystems which don't maintain i_size or i_blocks. ++ */ ++static inline int au_test_fs_bad_iattr_size(struct super_block *sb) ++{ ++ return au_test_xfs(sb) ++ || au_test_btrfs(sb) ++ || au_test_ubifs(sb) ++ || au_test_hfsplus(sb) /* maintained, but incorrect */ ++ /* || au_test_minix(sb) */ /* untested */ ++ ; ++} ++ ++/* ++ * filesystems which don't store the correct value in some of their inode ++ * attributes. ++ */ ++static inline int au_test_fs_bad_iattr(struct super_block *sb) ++{ ++ return au_test_fs_bad_iattr_size(sb) ++ || au_test_fat(sb) ++ || au_test_msdos(sb) ++ || au_test_vfat(sb); ++} ++ ++/* they don't check i_nlink in link(2) */ ++static inline int au_test_fs_no_limit_nlink(struct super_block *sb) ++{ ++ return au_test_tmpfs(sb) ++#ifdef CONFIG_AUFS_BR_RAMFS ++ || au_test_ramfs(sb) ++#endif ++ || au_test_ubifs(sb) ++ || au_test_hfsplus(sb); ++} ++ ++/* ++ * filesystems which sets S_NOATIME and S_NOCMTIME. ++ */ ++static inline int au_test_fs_notime(struct super_block *sb) ++{ ++ return au_test_nfs(sb) ++ || au_test_fuse(sb) ++ || au_test_ubifs(sb) ++ ; ++} ++ ++/* temporary support for i#1 in cramfs */ ++static inline int au_test_fs_unique_ino(struct inode *inode) ++{ ++ if (au_test_cramfs(inode->i_sb)) ++ return inode->i_ino != 1; ++ return 1; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* ++ * the filesystem where the xino files placed must support i/o after unlink and ++ * maintain i_size and i_blocks. ++ */ ++static inline int au_test_fs_bad_xino(struct super_block *sb) ++{ ++ return au_test_fs_remote(sb) ++ || au_test_fs_bad_iattr_size(sb) ++ /* don't want unnecessary work for xino */ ++ || au_test_aufs(sb) ++ || au_test_ecryptfs(sb) ++ || au_test_nilfs(sb); ++} ++ ++static inline int au_test_fs_trunc_xino(struct super_block *sb) ++{ ++ return au_test_tmpfs(sb) ++ || au_test_ramfs(sb); ++} ++ ++/* ++ * test if the @sb is real-readonly. ++ */ ++static inline int au_test_fs_rr(struct super_block *sb) ++{ ++ return au_test_squashfs(sb) ++ || au_test_iso9660(sb) ++ || au_test_cramfs(sb) ++ || au_test_romfs(sb); ++} ++ ++/* ++ * test if the @inode is nfs with 'noacl' option ++ * NFS always sets SB_POSIXACL regardless its mount option 'noacl.' ++ */ ++static inline int au_test_nfs_noacl(struct inode *inode) ++{ ++ return au_test_nfs(inode->i_sb) ++ /* && IS_POSIXACL(inode) */ ++ && !nfs_server_capable(inode, NFS_CAP_ACLS); ++} ++ ++#endif /* __KERNEL__ */ ++#endif /* __AUFS_FSTYPE_H__ */ +diff -Naur null/fs/aufs/hbl.h linux-4.15/fs/aufs/hbl.h +--- /dev/null ++++ linux-4.15/fs/aufs/hbl.h 2018-02-25 02:38:09.201737791 +0100 +@@ -0,0 +1,64 @@ ++/* ++ * Copyright (C) 2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * helpers for hlist_bl.h ++ */ ++ ++#ifndef __AUFS_HBL_H__ ++#define __AUFS_HBL_H__ ++ ++#ifdef __KERNEL__ ++ ++#include ++ ++static inline void au_hbl_add(struct hlist_bl_node *node, ++ struct hlist_bl_head *hbl) ++{ ++ hlist_bl_lock(hbl); ++ hlist_bl_add_head(node, hbl); ++ hlist_bl_unlock(hbl); ++} ++ ++static inline void au_hbl_del(struct hlist_bl_node *node, ++ struct hlist_bl_head *hbl) ++{ ++ hlist_bl_lock(hbl); ++ hlist_bl_del(node); ++ hlist_bl_unlock(hbl); ++} ++ ++#define au_hbl_for_each(pos, head) \ ++ for (pos = hlist_bl_first(head); \ ++ pos; \ ++ pos = pos->next) ++ ++static inline unsigned long au_hbl_count(struct hlist_bl_head *hbl) ++{ ++ unsigned long cnt; ++ struct hlist_bl_node *pos; ++ ++ cnt = 0; ++ hlist_bl_lock(hbl); ++ au_hbl_for_each(pos, hbl) ++ cnt++; ++ hlist_bl_unlock(hbl); ++ return cnt; ++} ++ ++#endif /* __KERNEL__ */ ++#endif /* __AUFS_HBL_H__ */ +diff -Naur null/fs/aufs/hfsnotify.c linux-4.15/fs/aufs/hfsnotify.c +--- /dev/null ++++ linux-4.15/fs/aufs/hfsnotify.c 2018-02-25 02:38:09.201737791 +0100 +@@ -0,0 +1,289 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * fsnotify for the lower directories ++ */ ++ ++#include "aufs.h" ++ ++/* FS_IN_IGNORED is unnecessary */ ++static const __u32 AuHfsnMask = (FS_MOVED_TO | FS_MOVED_FROM | FS_DELETE ++ | FS_CREATE | FS_EVENT_ON_CHILD); ++static DECLARE_WAIT_QUEUE_HEAD(au_hfsn_wq); ++static __cacheline_aligned_in_smp atomic64_t au_hfsn_ifree = ATOMIC64_INIT(0); ++ ++static void au_hfsn_free_mark(struct fsnotify_mark *mark) ++{ ++ struct au_hnotify *hn = container_of(mark, struct au_hnotify, ++ hn_mark); ++ /* AuDbg("here\n"); */ ++ au_cache_free_hnotify(hn); ++ smp_mb__before_atomic(); /* for atomic64_dec */ ++ if (atomic64_dec_and_test(&au_hfsn_ifree)) ++ wake_up(&au_hfsn_wq); ++} ++ ++static int au_hfsn_alloc(struct au_hinode *hinode) ++{ ++ int err; ++ struct au_hnotify *hn; ++ struct super_block *sb; ++ struct au_branch *br; ++ struct fsnotify_mark *mark; ++ aufs_bindex_t bindex; ++ ++ hn = hinode->hi_notify; ++ sb = hn->hn_aufs_inode->i_sb; ++ bindex = au_br_index(sb, hinode->hi_id); ++ br = au_sbr(sb, bindex); ++ AuDebugOn(!br->br_hfsn); ++ ++ mark = &hn->hn_mark; ++ fsnotify_init_mark(mark, br->br_hfsn->hfsn_group); ++ mark->mask = AuHfsnMask; ++ /* ++ * by udba rename or rmdir, aufs assign a new inode to the known ++ * h_inode, so specify 1 to allow dups. ++ */ ++ lockdep_off(); ++ err = fsnotify_add_mark(mark, hinode->hi_inode, /*mnt*/NULL, ++ /*allow_dups*/1); ++ lockdep_on(); ++ ++ return err; ++} ++ ++static int au_hfsn_free(struct au_hinode *hinode, struct au_hnotify *hn) ++{ ++ struct fsnotify_mark *mark; ++ unsigned long long ull; ++ struct fsnotify_group *group; ++ ++ ull = atomic64_inc_return(&au_hfsn_ifree); ++ BUG_ON(!ull); ++ ++ mark = &hn->hn_mark; ++ spin_lock(&mark->lock); ++ group = mark->group; ++ fsnotify_get_group(group); ++ spin_unlock(&mark->lock); ++ lockdep_off(); ++ fsnotify_destroy_mark(mark, group); ++ fsnotify_put_mark(mark); ++ fsnotify_put_group(group); ++ lockdep_on(); ++ ++ /* free hn by myself */ ++ return 0; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static void au_hfsn_ctl(struct au_hinode *hinode, int do_set) ++{ ++ struct fsnotify_mark *mark; ++ ++ mark = &hinode->hi_notify->hn_mark; ++ spin_lock(&mark->lock); ++ if (do_set) { ++ AuDebugOn(mark->mask & AuHfsnMask); ++ mark->mask |= AuHfsnMask; ++ } else { ++ AuDebugOn(!(mark->mask & AuHfsnMask)); ++ mark->mask &= ~AuHfsnMask; ++ } ++ spin_unlock(&mark->lock); ++ /* fsnotify_recalc_inode_mask(hinode->hi_inode); */ ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* #define AuDbgHnotify */ ++#ifdef AuDbgHnotify ++static char *au_hfsn_name(u32 mask) ++{ ++#ifdef CONFIG_AUFS_DEBUG ++#define test_ret(flag) \ ++ do { \ ++ if (mask & flag) \ ++ return #flag; \ ++ } while (0) ++ test_ret(FS_ACCESS); ++ test_ret(FS_MODIFY); ++ test_ret(FS_ATTRIB); ++ test_ret(FS_CLOSE_WRITE); ++ test_ret(FS_CLOSE_NOWRITE); ++ test_ret(FS_OPEN); ++ test_ret(FS_MOVED_FROM); ++ test_ret(FS_MOVED_TO); ++ test_ret(FS_CREATE); ++ test_ret(FS_DELETE); ++ test_ret(FS_DELETE_SELF); ++ test_ret(FS_MOVE_SELF); ++ test_ret(FS_UNMOUNT); ++ test_ret(FS_Q_OVERFLOW); ++ test_ret(FS_IN_IGNORED); ++ test_ret(FS_ISDIR); ++ test_ret(FS_IN_ONESHOT); ++ test_ret(FS_EVENT_ON_CHILD); ++ return ""; ++#undef test_ret ++#else ++ return "??"; ++#endif ++} ++#endif ++ ++/* ---------------------------------------------------------------------- */ ++ ++static void au_hfsn_free_group(struct fsnotify_group *group) ++{ ++ struct au_br_hfsnotify *hfsn = group->private; ++ ++ /* AuDbg("here\n"); */ ++ kfree(hfsn); ++} ++ ++static int au_hfsn_handle_event(struct fsnotify_group *group, ++ struct inode *inode, ++ struct fsnotify_mark *inode_mark, ++ struct fsnotify_mark *vfsmount_mark, ++ u32 mask, const void *data, int data_type, ++ const unsigned char *file_name, u32 cookie, ++ struct fsnotify_iter_info *iter_info) ++{ ++ int err; ++ struct au_hnotify *hnotify; ++ struct inode *h_dir, *h_inode; ++ struct qstr h_child_qstr = QSTR_INIT(file_name, strlen(file_name)); ++ ++ AuDebugOn(data_type != FSNOTIFY_EVENT_INODE); ++ ++ err = 0; ++ /* if FS_UNMOUNT happens, there must be another bug */ ++ AuDebugOn(mask & FS_UNMOUNT); ++ if (mask & (FS_IN_IGNORED | FS_UNMOUNT)) ++ goto out; ++ ++ h_dir = inode; ++ h_inode = NULL; ++#ifdef AuDbgHnotify ++ au_debug_on(); ++ if (1 || h_child_qstr.len != sizeof(AUFS_XINO_FNAME) - 1 ++ || strncmp(h_child_qstr.name, AUFS_XINO_FNAME, h_child_qstr.len)) { ++ AuDbg("i%lu, mask 0x%x %s, hcname %.*s, hi%lu\n", ++ h_dir->i_ino, mask, au_hfsn_name(mask), ++ AuLNPair(&h_child_qstr), h_inode ? h_inode->i_ino : 0); ++ /* WARN_ON(1); */ ++ } ++ au_debug_off(); ++#endif ++ ++ AuDebugOn(!inode_mark); ++ hnotify = container_of(inode_mark, struct au_hnotify, hn_mark); ++ err = au_hnotify(h_dir, hnotify, mask, &h_child_qstr, h_inode); ++ ++out: ++ return err; ++} ++ ++static struct fsnotify_ops au_hfsn_ops = { ++ .handle_event = au_hfsn_handle_event, ++ .free_group_priv = au_hfsn_free_group, ++ .free_mark = au_hfsn_free_mark ++}; ++ ++/* ---------------------------------------------------------------------- */ ++ ++static void au_hfsn_fin_br(struct au_branch *br) ++{ ++ struct au_br_hfsnotify *hfsn; ++ ++ hfsn = br->br_hfsn; ++ if (hfsn) { ++ lockdep_off(); ++ fsnotify_put_group(hfsn->hfsn_group); ++ lockdep_on(); ++ } ++} ++ ++static int au_hfsn_init_br(struct au_branch *br, int perm) ++{ ++ int err; ++ struct fsnotify_group *group; ++ struct au_br_hfsnotify *hfsn; ++ ++ err = 0; ++ br->br_hfsn = NULL; ++ if (!au_br_hnotifyable(perm)) ++ goto out; ++ ++ err = -ENOMEM; ++ hfsn = kmalloc(sizeof(*hfsn), GFP_NOFS); ++ if (unlikely(!hfsn)) ++ goto out; ++ ++ err = 0; ++ group = fsnotify_alloc_group(&au_hfsn_ops); ++ if (IS_ERR(group)) { ++ err = PTR_ERR(group); ++ pr_err("fsnotify_alloc_group() failed, %d\n", err); ++ goto out_hfsn; ++ } ++ ++ group->private = hfsn; ++ hfsn->hfsn_group = group; ++ br->br_hfsn = hfsn; ++ goto out; /* success */ ++ ++out_hfsn: ++ kfree(hfsn); ++out: ++ return err; ++} ++ ++static int au_hfsn_reset_br(unsigned int udba, struct au_branch *br, int perm) ++{ ++ int err; ++ ++ err = 0; ++ if (!br->br_hfsn) ++ err = au_hfsn_init_br(br, perm); ++ ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static void au_hfsn_fin(void) ++{ ++ AuDbg("au_hfsn_ifree %lld\n", (long long)atomic64_read(&au_hfsn_ifree)); ++ wait_event(au_hfsn_wq, !atomic64_read(&au_hfsn_ifree)); ++} ++ ++const struct au_hnotify_op au_hnotify_op = { ++ .ctl = au_hfsn_ctl, ++ .alloc = au_hfsn_alloc, ++ .free = au_hfsn_free, ++ ++ .fin = au_hfsn_fin, ++ ++ .reset_br = au_hfsn_reset_br, ++ .fin_br = au_hfsn_fin_br, ++ .init_br = au_hfsn_init_br ++}; +diff -Naur null/fs/aufs/hfsplus.c linux-4.15/fs/aufs/hfsplus.c +--- /dev/null ++++ linux-4.15/fs/aufs/hfsplus.c 2018-02-25 02:38:09.201737791 +0100 +@@ -0,0 +1,56 @@ ++/* ++ * Copyright (C) 2010-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * special support for filesystems which aqucires an inode mutex ++ * at final closing a file, eg, hfsplus. ++ * ++ * This trick is very simple and stupid, just to open the file before really ++ * neceeary open to tell hfsplus that this is not the final closing. ++ * The caller should call au_h_open_pre() after acquiring the inode mutex, ++ * and au_h_open_post() after releasing it. ++ */ ++ ++#include "aufs.h" ++ ++struct file *au_h_open_pre(struct dentry *dentry, aufs_bindex_t bindex, ++ int force_wr) ++{ ++ struct file *h_file; ++ struct dentry *h_dentry; ++ ++ h_dentry = au_h_dptr(dentry, bindex); ++ AuDebugOn(!h_dentry); ++ AuDebugOn(d_is_negative(h_dentry)); ++ ++ h_file = NULL; ++ if (au_test_hfsplus(h_dentry->d_sb) ++ && d_is_reg(h_dentry)) ++ h_file = au_h_open(dentry, bindex, ++ O_RDONLY | O_NOATIME | O_LARGEFILE, ++ /*file*/NULL, force_wr); ++ return h_file; ++} ++ ++void au_h_open_post(struct dentry *dentry, aufs_bindex_t bindex, ++ struct file *h_file) ++{ ++ if (h_file) { ++ fput(h_file); ++ au_sbr_put(dentry->d_sb, bindex); ++ } ++} +diff -Naur null/fs/aufs/hnotify.c linux-4.15/fs/aufs/hnotify.c +--- /dev/null ++++ linux-4.15/fs/aufs/hnotify.c 2018-02-25 02:38:09.201737791 +0100 +@@ -0,0 +1,719 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * abstraction to notify the direct changes on lower directories ++ */ ++ ++#include "aufs.h" ++ ++int au_hn_alloc(struct au_hinode *hinode, struct inode *inode) ++{ ++ int err; ++ struct au_hnotify *hn; ++ ++ err = -ENOMEM; ++ hn = au_cache_alloc_hnotify(); ++ if (hn) { ++ hn->hn_aufs_inode = inode; ++ hinode->hi_notify = hn; ++ err = au_hnotify_op.alloc(hinode); ++ AuTraceErr(err); ++ if (unlikely(err)) { ++ hinode->hi_notify = NULL; ++ au_cache_free_hnotify(hn); ++ /* ++ * The upper dir was removed by udba, but the same named ++ * dir left. In this case, aufs assignes a new inode ++ * number and set the monitor again. ++ * For the lower dir, the old monitnor is still left. ++ */ ++ if (err == -EEXIST) ++ err = 0; ++ } ++ } ++ ++ AuTraceErr(err); ++ return err; ++} ++ ++void au_hn_free(struct au_hinode *hinode) ++{ ++ struct au_hnotify *hn; ++ ++ hn = hinode->hi_notify; ++ if (hn) { ++ hinode->hi_notify = NULL; ++ if (au_hnotify_op.free(hinode, hn)) ++ au_cache_free_hnotify(hn); ++ } ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++void au_hn_ctl(struct au_hinode *hinode, int do_set) ++{ ++ if (hinode->hi_notify) ++ au_hnotify_op.ctl(hinode, do_set); ++} ++ ++void au_hn_reset(struct inode *inode, unsigned int flags) ++{ ++ aufs_bindex_t bindex, bbot; ++ struct inode *hi; ++ struct dentry *iwhdentry; ++ ++ bbot = au_ibbot(inode); ++ for (bindex = au_ibtop(inode); bindex <= bbot; bindex++) { ++ hi = au_h_iptr(inode, bindex); ++ if (!hi) ++ continue; ++ ++ /* inode_lock_nested(hi, AuLsc_I_CHILD); */ ++ iwhdentry = au_hi_wh(inode, bindex); ++ if (iwhdentry) ++ dget(iwhdentry); ++ au_igrab(hi); ++ au_set_h_iptr(inode, bindex, NULL, 0); ++ au_set_h_iptr(inode, bindex, au_igrab(hi), ++ flags & ~AuHi_XINO); ++ iput(hi); ++ dput(iwhdentry); ++ /* inode_unlock(hi); */ ++ } ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static int hn_xino(struct inode *inode, struct inode *h_inode) ++{ ++ int err; ++ aufs_bindex_t bindex, bbot, bfound, btop; ++ struct inode *h_i; ++ ++ err = 0; ++ if (unlikely(inode->i_ino == AUFS_ROOT_INO)) { ++ pr_warn("branch root dir was changed\n"); ++ goto out; ++ } ++ ++ bfound = -1; ++ bbot = au_ibbot(inode); ++ btop = au_ibtop(inode); ++#if 0 /* reserved for future use */ ++ if (bindex == bbot) { ++ /* keep this ino in rename case */ ++ goto out; ++ } ++#endif ++ for (bindex = btop; bindex <= bbot; bindex++) ++ if (au_h_iptr(inode, bindex) == h_inode) { ++ bfound = bindex; ++ break; ++ } ++ if (bfound < 0) ++ goto out; ++ ++ for (bindex = btop; bindex <= bbot; bindex++) { ++ h_i = au_h_iptr(inode, bindex); ++ if (!h_i) ++ continue; ++ ++ err = au_xino_write(inode->i_sb, bindex, h_i->i_ino, /*ino*/0); ++ /* ignore this error */ ++ /* bad action? */ ++ } ++ ++ /* children inode number will be broken */ ++ ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++static int hn_gen_tree(struct dentry *dentry) ++{ ++ int err, i, j, ndentry; ++ struct au_dcsub_pages dpages; ++ struct au_dpage *dpage; ++ struct dentry **dentries; ++ ++ err = au_dpages_init(&dpages, GFP_NOFS); ++ if (unlikely(err)) ++ goto out; ++ err = au_dcsub_pages(&dpages, dentry, NULL, NULL); ++ if (unlikely(err)) ++ goto out_dpages; ++ ++ for (i = 0; i < dpages.ndpage; i++) { ++ dpage = dpages.dpages + i; ++ dentries = dpage->dentries; ++ ndentry = dpage->ndentry; ++ for (j = 0; j < ndentry; j++) { ++ struct dentry *d; ++ ++ d = dentries[j]; ++ if (IS_ROOT(d)) ++ continue; ++ ++ au_digen_dec(d); ++ if (d_really_is_positive(d)) ++ /* todo: reset children xino? ++ cached children only? */ ++ au_iigen_dec(d_inode(d)); ++ } ++ } ++ ++out_dpages: ++ au_dpages_free(&dpages); ++ ++#if 0 ++ /* discard children */ ++ dentry_unhash(dentry); ++ dput(dentry); ++#endif ++out: ++ return err; ++} ++ ++/* ++ * return 0 if processed. ++ */ ++static int hn_gen_by_inode(char *name, unsigned int nlen, struct inode *inode, ++ const unsigned int isdir) ++{ ++ int err; ++ struct dentry *d; ++ struct qstr *dname; ++ ++ err = 1; ++ if (unlikely(inode->i_ino == AUFS_ROOT_INO)) { ++ pr_warn("branch root dir was changed\n"); ++ err = 0; ++ goto out; ++ } ++ ++ if (!isdir) { ++ AuDebugOn(!name); ++ au_iigen_dec(inode); ++ spin_lock(&inode->i_lock); ++ hlist_for_each_entry(d, &inode->i_dentry, d_u.d_alias) { ++ spin_lock(&d->d_lock); ++ dname = &d->d_name; ++ if (dname->len != nlen ++ && memcmp(dname->name, name, nlen)) { ++ spin_unlock(&d->d_lock); ++ continue; ++ } ++ err = 0; ++ au_digen_dec(d); ++ spin_unlock(&d->d_lock); ++ break; ++ } ++ spin_unlock(&inode->i_lock); ++ } else { ++ au_fset_si(au_sbi(inode->i_sb), FAILED_REFRESH_DIR); ++ d = d_find_any_alias(inode); ++ if (!d) { ++ au_iigen_dec(inode); ++ goto out; ++ } ++ ++ spin_lock(&d->d_lock); ++ dname = &d->d_name; ++ if (dname->len == nlen && !memcmp(dname->name, name, nlen)) { ++ spin_unlock(&d->d_lock); ++ err = hn_gen_tree(d); ++ spin_lock(&d->d_lock); ++ } ++ spin_unlock(&d->d_lock); ++ dput(d); ++ } ++ ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++static int hn_gen_by_name(struct dentry *dentry, const unsigned int isdir) ++{ ++ int err; ++ ++ if (IS_ROOT(dentry)) { ++ pr_warn("branch root dir was changed\n"); ++ return 0; ++ } ++ ++ err = 0; ++ if (!isdir) { ++ au_digen_dec(dentry); ++ if (d_really_is_positive(dentry)) ++ au_iigen_dec(d_inode(dentry)); ++ } else { ++ au_fset_si(au_sbi(dentry->d_sb), FAILED_REFRESH_DIR); ++ if (d_really_is_positive(dentry)) ++ err = hn_gen_tree(dentry); ++ } ++ ++ AuTraceErr(err); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* hnotify job flags */ ++#define AuHnJob_XINO0 1 ++#define AuHnJob_GEN (1 << 1) ++#define AuHnJob_DIRENT (1 << 2) ++#define AuHnJob_ISDIR (1 << 3) ++#define AuHnJob_TRYXINO0 (1 << 4) ++#define AuHnJob_MNTPNT (1 << 5) ++#define au_ftest_hnjob(flags, name) ((flags) & AuHnJob_##name) ++#define au_fset_hnjob(flags, name) \ ++ do { (flags) |= AuHnJob_##name; } while (0) ++#define au_fclr_hnjob(flags, name) \ ++ do { (flags) &= ~AuHnJob_##name; } while (0) ++ ++enum { ++ AuHn_CHILD, ++ AuHn_PARENT, ++ AuHnLast ++}; ++ ++struct au_hnotify_args { ++ struct inode *h_dir, *dir, *h_child_inode; ++ u32 mask; ++ unsigned int flags[AuHnLast]; ++ unsigned int h_child_nlen; ++ char h_child_name[]; ++}; ++ ++struct hn_job_args { ++ unsigned int flags; ++ struct inode *inode, *h_inode, *dir, *h_dir; ++ struct dentry *dentry; ++ char *h_name; ++ int h_nlen; ++}; ++ ++static int hn_job(struct hn_job_args *a) ++{ ++ const unsigned int isdir = au_ftest_hnjob(a->flags, ISDIR); ++ int e; ++ ++ /* reset xino */ ++ if (au_ftest_hnjob(a->flags, XINO0) && a->inode) ++ hn_xino(a->inode, a->h_inode); /* ignore this error */ ++ ++ if (au_ftest_hnjob(a->flags, TRYXINO0) ++ && a->inode ++ && a->h_inode) { ++ vfsub_inode_lock_shared_nested(a->h_inode, AuLsc_I_CHILD); ++ if (!a->h_inode->i_nlink ++ && !(a->h_inode->i_state & I_LINKABLE)) ++ hn_xino(a->inode, a->h_inode); /* ignore this error */ ++ inode_unlock_shared(a->h_inode); ++ } ++ ++ /* make the generation obsolete */ ++ if (au_ftest_hnjob(a->flags, GEN)) { ++ e = -1; ++ if (a->inode) ++ e = hn_gen_by_inode(a->h_name, a->h_nlen, a->inode, ++ isdir); ++ if (e && a->dentry) ++ hn_gen_by_name(a->dentry, isdir); ++ /* ignore this error */ ++ } ++ ++ /* make dir entries obsolete */ ++ if (au_ftest_hnjob(a->flags, DIRENT) && a->inode) { ++ struct au_vdir *vdir; ++ ++ vdir = au_ivdir(a->inode); ++ if (vdir) ++ vdir->vd_jiffy = 0; ++ /* IMustLock(a->inode); */ ++ /* a->inode->i_version++; */ ++ } ++ ++ /* can do nothing but warn */ ++ if (au_ftest_hnjob(a->flags, MNTPNT) ++ && a->dentry ++ && d_mountpoint(a->dentry)) ++ pr_warn("mount-point %pd is removed or renamed\n", a->dentry); ++ ++ return 0; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static struct dentry *lookup_wlock_by_name(char *name, unsigned int nlen, ++ struct inode *dir) ++{ ++ struct dentry *dentry, *d, *parent; ++ struct qstr *dname; ++ ++ parent = d_find_any_alias(dir); ++ if (!parent) ++ return NULL; ++ ++ dentry = NULL; ++ spin_lock(&parent->d_lock); ++ list_for_each_entry(d, &parent->d_subdirs, d_child) { ++ /* AuDbg("%pd\n", d); */ ++ spin_lock_nested(&d->d_lock, DENTRY_D_LOCK_NESTED); ++ dname = &d->d_name; ++ if (dname->len != nlen || memcmp(dname->name, name, nlen)) ++ goto cont_unlock; ++ if (au_di(d)) ++ au_digen_dec(d); ++ else ++ goto cont_unlock; ++ if (au_dcount(d) > 0) { ++ dentry = dget_dlock(d); ++ spin_unlock(&d->d_lock); ++ break; ++ } ++ ++cont_unlock: ++ spin_unlock(&d->d_lock); ++ } ++ spin_unlock(&parent->d_lock); ++ dput(parent); ++ ++ if (dentry) ++ di_write_lock_child(dentry); ++ ++ return dentry; ++} ++ ++static struct inode *lookup_wlock_by_ino(struct super_block *sb, ++ aufs_bindex_t bindex, ino_t h_ino) ++{ ++ struct inode *inode; ++ ino_t ino; ++ int err; ++ ++ inode = NULL; ++ err = au_xino_read(sb, bindex, h_ino, &ino); ++ if (!err && ino) ++ inode = ilookup(sb, ino); ++ if (!inode) ++ goto out; ++ ++ if (unlikely(inode->i_ino == AUFS_ROOT_INO)) { ++ pr_warn("wrong root branch\n"); ++ iput(inode); ++ inode = NULL; ++ goto out; ++ } ++ ++ ii_write_lock_child(inode); ++ ++out: ++ return inode; ++} ++ ++static void au_hn_bh(void *_args) ++{ ++ struct au_hnotify_args *a = _args; ++ struct super_block *sb; ++ aufs_bindex_t bindex, bbot, bfound; ++ unsigned char xino, try_iput; ++ int err; ++ struct inode *inode; ++ ino_t h_ino; ++ struct hn_job_args args; ++ struct dentry *dentry; ++ struct au_sbinfo *sbinfo; ++ ++ AuDebugOn(!_args); ++ AuDebugOn(!a->h_dir); ++ AuDebugOn(!a->dir); ++ AuDebugOn(!a->mask); ++ AuDbg("mask 0x%x, i%lu, hi%lu, hci%lu\n", ++ a->mask, a->dir->i_ino, a->h_dir->i_ino, ++ a->h_child_inode ? a->h_child_inode->i_ino : 0); ++ ++ inode = NULL; ++ dentry = NULL; ++ /* ++ * do not lock a->dir->i_mutex here ++ * because of d_revalidate() may cause a deadlock. ++ */ ++ sb = a->dir->i_sb; ++ AuDebugOn(!sb); ++ sbinfo = au_sbi(sb); ++ AuDebugOn(!sbinfo); ++ si_write_lock(sb, AuLock_NOPLMW); ++ ++ if (au_opt_test(sbinfo->si_mntflags, DIRREN)) ++ switch (a->mask & FS_EVENTS_POSS_ON_CHILD) { ++ case FS_MOVED_FROM: ++ case FS_MOVED_TO: ++ AuWarn1("DIRREN with UDBA may not work correctly " ++ "for the direct rename(2)\n"); ++ } ++ ++ ii_read_lock_parent(a->dir); ++ bfound = -1; ++ bbot = au_ibbot(a->dir); ++ for (bindex = au_ibtop(a->dir); bindex <= bbot; bindex++) ++ if (au_h_iptr(a->dir, bindex) == a->h_dir) { ++ bfound = bindex; ++ break; ++ } ++ ii_read_unlock(a->dir); ++ if (unlikely(bfound < 0)) ++ goto out; ++ ++ xino = !!au_opt_test(au_mntflags(sb), XINO); ++ h_ino = 0; ++ if (a->h_child_inode) ++ h_ino = a->h_child_inode->i_ino; ++ ++ if (a->h_child_nlen ++ && (au_ftest_hnjob(a->flags[AuHn_CHILD], GEN) ++ || au_ftest_hnjob(a->flags[AuHn_CHILD], MNTPNT))) ++ dentry = lookup_wlock_by_name(a->h_child_name, a->h_child_nlen, ++ a->dir); ++ try_iput = 0; ++ if (dentry && d_really_is_positive(dentry)) ++ inode = d_inode(dentry); ++ if (xino && !inode && h_ino ++ && (au_ftest_hnjob(a->flags[AuHn_CHILD], XINO0) ++ || au_ftest_hnjob(a->flags[AuHn_CHILD], TRYXINO0) ++ || au_ftest_hnjob(a->flags[AuHn_CHILD], GEN))) { ++ inode = lookup_wlock_by_ino(sb, bfound, h_ino); ++ try_iput = 1; ++ } ++ ++ args.flags = a->flags[AuHn_CHILD]; ++ args.dentry = dentry; ++ args.inode = inode; ++ args.h_inode = a->h_child_inode; ++ args.dir = a->dir; ++ args.h_dir = a->h_dir; ++ args.h_name = a->h_child_name; ++ args.h_nlen = a->h_child_nlen; ++ err = hn_job(&args); ++ if (dentry) { ++ if (au_di(dentry)) ++ di_write_unlock(dentry); ++ dput(dentry); ++ } ++ if (inode && try_iput) { ++ ii_write_unlock(inode); ++ iput(inode); ++ } ++ ++ ii_write_lock_parent(a->dir); ++ args.flags = a->flags[AuHn_PARENT]; ++ args.dentry = NULL; ++ args.inode = a->dir; ++ args.h_inode = a->h_dir; ++ args.dir = NULL; ++ args.h_dir = NULL; ++ args.h_name = NULL; ++ args.h_nlen = 0; ++ err = hn_job(&args); ++ ii_write_unlock(a->dir); ++ ++out: ++ iput(a->h_child_inode); ++ iput(a->h_dir); ++ iput(a->dir); ++ si_write_unlock(sb); ++ au_nwt_done(&sbinfo->si_nowait); ++ kfree(a); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++int au_hnotify(struct inode *h_dir, struct au_hnotify *hnotify, u32 mask, ++ struct qstr *h_child_qstr, struct inode *h_child_inode) ++{ ++ int err, len; ++ unsigned int flags[AuHnLast], f; ++ unsigned char isdir, isroot, wh; ++ struct inode *dir; ++ struct au_hnotify_args *args; ++ char *p, *h_child_name; ++ ++ err = 0; ++ AuDebugOn(!hnotify || !hnotify->hn_aufs_inode); ++ dir = igrab(hnotify->hn_aufs_inode); ++ if (!dir) ++ goto out; ++ ++ isroot = (dir->i_ino == AUFS_ROOT_INO); ++ wh = 0; ++ h_child_name = (void *)h_child_qstr->name; ++ len = h_child_qstr->len; ++ if (h_child_name) { ++ if (len > AUFS_WH_PFX_LEN ++ && !memcmp(h_child_name, AUFS_WH_PFX, AUFS_WH_PFX_LEN)) { ++ h_child_name += AUFS_WH_PFX_LEN; ++ len -= AUFS_WH_PFX_LEN; ++ wh = 1; ++ } ++ } ++ ++ isdir = 0; ++ if (h_child_inode) ++ isdir = !!S_ISDIR(h_child_inode->i_mode); ++ flags[AuHn_PARENT] = AuHnJob_ISDIR; ++ flags[AuHn_CHILD] = 0; ++ if (isdir) ++ flags[AuHn_CHILD] = AuHnJob_ISDIR; ++ au_fset_hnjob(flags[AuHn_PARENT], DIRENT); ++ au_fset_hnjob(flags[AuHn_CHILD], GEN); ++ switch (mask & FS_EVENTS_POSS_ON_CHILD) { ++ case FS_MOVED_FROM: ++ case FS_MOVED_TO: ++ au_fset_hnjob(flags[AuHn_CHILD], XINO0); ++ au_fset_hnjob(flags[AuHn_CHILD], MNTPNT); ++ /*FALLTHROUGH*/ ++ case FS_CREATE: ++ AuDebugOn(!h_child_name); ++ break; ++ ++ case FS_DELETE: ++ /* ++ * aufs never be able to get this child inode. ++ * revalidation should be in d_revalidate() ++ * by checking i_nlink, i_generation or d_unhashed(). ++ */ ++ AuDebugOn(!h_child_name); ++ au_fset_hnjob(flags[AuHn_CHILD], TRYXINO0); ++ au_fset_hnjob(flags[AuHn_CHILD], MNTPNT); ++ break; ++ ++ default: ++ AuDebugOn(1); ++ } ++ ++ if (wh) ++ h_child_inode = NULL; ++ ++ err = -ENOMEM; ++ /* iput() and kfree() will be called in au_hnotify() */ ++ args = kmalloc(sizeof(*args) + len + 1, GFP_NOFS); ++ if (unlikely(!args)) { ++ AuErr1("no memory\n"); ++ iput(dir); ++ goto out; ++ } ++ args->flags[AuHn_PARENT] = flags[AuHn_PARENT]; ++ args->flags[AuHn_CHILD] = flags[AuHn_CHILD]; ++ args->mask = mask; ++ args->dir = dir; ++ args->h_dir = igrab(h_dir); ++ if (h_child_inode) ++ h_child_inode = igrab(h_child_inode); /* can be NULL */ ++ args->h_child_inode = h_child_inode; ++ args->h_child_nlen = len; ++ if (len) { ++ p = (void *)args; ++ p += sizeof(*args); ++ memcpy(p, h_child_name, len); ++ p[len] = 0; ++ } ++ ++ /* NFS fires the event for silly-renamed one from kworker */ ++ f = 0; ++ if (!dir->i_nlink ++ || (au_test_nfs(h_dir->i_sb) && (mask & FS_DELETE))) ++ f = AuWkq_NEST; ++ err = au_wkq_nowait(au_hn_bh, args, dir->i_sb, f); ++ if (unlikely(err)) { ++ pr_err("wkq %d\n", err); ++ iput(args->h_child_inode); ++ iput(args->h_dir); ++ iput(args->dir); ++ kfree(args); ++ } ++ ++out: ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++int au_hnotify_reset_br(unsigned int udba, struct au_branch *br, int perm) ++{ ++ int err; ++ ++ AuDebugOn(!(udba & AuOptMask_UDBA)); ++ ++ err = 0; ++ if (au_hnotify_op.reset_br) ++ err = au_hnotify_op.reset_br(udba, br, perm); ++ ++ return err; ++} ++ ++int au_hnotify_init_br(struct au_branch *br, int perm) ++{ ++ int err; ++ ++ err = 0; ++ if (au_hnotify_op.init_br) ++ err = au_hnotify_op.init_br(br, perm); ++ ++ return err; ++} ++ ++void au_hnotify_fin_br(struct au_branch *br) ++{ ++ if (au_hnotify_op.fin_br) ++ au_hnotify_op.fin_br(br); ++} ++ ++static void au_hn_destroy_cache(void) ++{ ++ kmem_cache_destroy(au_cache[AuCache_HNOTIFY]); ++ au_cache[AuCache_HNOTIFY] = NULL; ++} ++ ++int __init au_hnotify_init(void) ++{ ++ int err; ++ ++ err = -ENOMEM; ++ au_cache[AuCache_HNOTIFY] = AuCache(au_hnotify); ++ if (au_cache[AuCache_HNOTIFY]) { ++ err = 0; ++ if (au_hnotify_op.init) ++ err = au_hnotify_op.init(); ++ if (unlikely(err)) ++ au_hn_destroy_cache(); ++ } ++ AuTraceErr(err); ++ return err; ++} ++ ++void au_hnotify_fin(void) ++{ ++ if (au_hnotify_op.fin) ++ au_hnotify_op.fin(); ++ ++ /* cf. au_cache_fin() */ ++ if (au_cache[AuCache_HNOTIFY]) ++ au_hn_destroy_cache(); ++} +diff -Naur null/fs/aufs/iinfo.c linux-4.15/fs/aufs/iinfo.c +--- /dev/null ++++ linux-4.15/fs/aufs/iinfo.c 2018-02-25 02:38:09.202737899 +0100 +@@ -0,0 +1,285 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * inode private data ++ */ ++ ++#include "aufs.h" ++ ++struct inode *au_h_iptr(struct inode *inode, aufs_bindex_t bindex) ++{ ++ struct inode *h_inode; ++ struct au_hinode *hinode; ++ ++ IiMustAnyLock(inode); ++ ++ hinode = au_hinode(au_ii(inode), bindex); ++ h_inode = hinode->hi_inode; ++ AuDebugOn(h_inode && atomic_read(&h_inode->i_count) <= 0); ++ return h_inode; ++} ++ ++/* todo: hard/soft set? */ ++void au_hiput(struct au_hinode *hinode) ++{ ++ au_hn_free(hinode); ++ dput(hinode->hi_whdentry); ++ iput(hinode->hi_inode); ++} ++ ++unsigned int au_hi_flags(struct inode *inode, int isdir) ++{ ++ unsigned int flags; ++ const unsigned int mnt_flags = au_mntflags(inode->i_sb); ++ ++ flags = 0; ++ if (au_opt_test(mnt_flags, XINO)) ++ au_fset_hi(flags, XINO); ++ if (isdir && au_opt_test(mnt_flags, UDBA_HNOTIFY)) ++ au_fset_hi(flags, HNOTIFY); ++ return flags; ++} ++ ++void au_set_h_iptr(struct inode *inode, aufs_bindex_t bindex, ++ struct inode *h_inode, unsigned int flags) ++{ ++ struct au_hinode *hinode; ++ struct inode *hi; ++ struct au_iinfo *iinfo = au_ii(inode); ++ ++ IiMustWriteLock(inode); ++ ++ hinode = au_hinode(iinfo, bindex); ++ hi = hinode->hi_inode; ++ AuDebugOn(h_inode && atomic_read(&h_inode->i_count) <= 0); ++ ++ if (hi) ++ au_hiput(hinode); ++ hinode->hi_inode = h_inode; ++ if (h_inode) { ++ int err; ++ struct super_block *sb = inode->i_sb; ++ struct au_branch *br; ++ ++ AuDebugOn(inode->i_mode ++ && (h_inode->i_mode & S_IFMT) ++ != (inode->i_mode & S_IFMT)); ++ if (bindex == iinfo->ii_btop) ++ au_cpup_igen(inode, h_inode); ++ br = au_sbr(sb, bindex); ++ hinode->hi_id = br->br_id; ++ if (au_ftest_hi(flags, XINO)) { ++ err = au_xino_write(sb, bindex, h_inode->i_ino, ++ inode->i_ino); ++ if (unlikely(err)) ++ AuIOErr1("failed au_xino_write() %d\n", err); ++ } ++ ++ if (au_ftest_hi(flags, HNOTIFY) ++ && au_br_hnotifyable(br->br_perm)) { ++ err = au_hn_alloc(hinode, inode); ++ if (unlikely(err)) ++ AuIOErr1("au_hn_alloc() %d\n", err); ++ } ++ } ++} ++ ++void au_set_hi_wh(struct inode *inode, aufs_bindex_t bindex, ++ struct dentry *h_wh) ++{ ++ struct au_hinode *hinode; ++ ++ IiMustWriteLock(inode); ++ ++ hinode = au_hinode(au_ii(inode), bindex); ++ AuDebugOn(hinode->hi_whdentry); ++ hinode->hi_whdentry = h_wh; ++} ++ ++void au_update_iigen(struct inode *inode, int half) ++{ ++ struct au_iinfo *iinfo; ++ struct au_iigen *iigen; ++ unsigned int sigen; ++ ++ sigen = au_sigen(inode->i_sb); ++ iinfo = au_ii(inode); ++ iigen = &iinfo->ii_generation; ++ spin_lock(&iigen->ig_spin); ++ iigen->ig_generation = sigen; ++ if (half) ++ au_ig_fset(iigen->ig_flags, HALF_REFRESHED); ++ else ++ au_ig_fclr(iigen->ig_flags, HALF_REFRESHED); ++ spin_unlock(&iigen->ig_spin); ++} ++ ++/* it may be called at remount time, too */ ++void au_update_ibrange(struct inode *inode, int do_put_zero) ++{ ++ struct au_iinfo *iinfo; ++ aufs_bindex_t bindex, bbot; ++ ++ AuDebugOn(au_is_bad_inode(inode)); ++ IiMustWriteLock(inode); ++ ++ iinfo = au_ii(inode); ++ if (do_put_zero && iinfo->ii_btop >= 0) { ++ for (bindex = iinfo->ii_btop; bindex <= iinfo->ii_bbot; ++ bindex++) { ++ struct inode *h_i; ++ ++ h_i = au_hinode(iinfo, bindex)->hi_inode; ++ if (h_i ++ && !h_i->i_nlink ++ && !(h_i->i_state & I_LINKABLE)) ++ au_set_h_iptr(inode, bindex, NULL, 0); ++ } ++ } ++ ++ iinfo->ii_btop = -1; ++ iinfo->ii_bbot = -1; ++ bbot = au_sbbot(inode->i_sb); ++ for (bindex = 0; bindex <= bbot; bindex++) ++ if (au_hinode(iinfo, bindex)->hi_inode) { ++ iinfo->ii_btop = bindex; ++ break; ++ } ++ if (iinfo->ii_btop >= 0) ++ for (bindex = bbot; bindex >= iinfo->ii_btop; bindex--) ++ if (au_hinode(iinfo, bindex)->hi_inode) { ++ iinfo->ii_bbot = bindex; ++ break; ++ } ++ AuDebugOn(iinfo->ii_btop > iinfo->ii_bbot); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++void au_icntnr_init_once(void *_c) ++{ ++ struct au_icntnr *c = _c; ++ struct au_iinfo *iinfo = &c->iinfo; ++ ++ spin_lock_init(&iinfo->ii_generation.ig_spin); ++ au_rw_init(&iinfo->ii_rwsem); ++ inode_init_once(&c->vfs_inode); ++} ++ ++void au_hinode_init(struct au_hinode *hinode) ++{ ++ hinode->hi_inode = NULL; ++ hinode->hi_id = -1; ++ au_hn_init(hinode); ++ hinode->hi_whdentry = NULL; ++} ++ ++int au_iinfo_init(struct inode *inode) ++{ ++ struct au_iinfo *iinfo; ++ struct super_block *sb; ++ struct au_hinode *hi; ++ int nbr, i; ++ ++ sb = inode->i_sb; ++ iinfo = &(container_of(inode, struct au_icntnr, vfs_inode)->iinfo); ++ nbr = au_sbbot(sb) + 1; ++ if (unlikely(nbr <= 0)) ++ nbr = 1; ++ hi = kmalloc_array(nbr, sizeof(*iinfo->ii_hinode), GFP_NOFS); ++ if (hi) { ++ au_ninodes_inc(sb); ++ ++ iinfo->ii_hinode = hi; ++ for (i = 0; i < nbr; i++, hi++) ++ au_hinode_init(hi); ++ ++ iinfo->ii_generation.ig_generation = au_sigen(sb); ++ iinfo->ii_btop = -1; ++ iinfo->ii_bbot = -1; ++ iinfo->ii_vdir = NULL; ++ return 0; ++ } ++ return -ENOMEM; ++} ++ ++int au_hinode_realloc(struct au_iinfo *iinfo, int nbr, int may_shrink) ++{ ++ int err, i; ++ struct au_hinode *hip; ++ ++ AuRwMustWriteLock(&iinfo->ii_rwsem); ++ ++ err = -ENOMEM; ++ hip = au_krealloc(iinfo->ii_hinode, sizeof(*hip) * nbr, GFP_NOFS, ++ may_shrink); ++ if (hip) { ++ iinfo->ii_hinode = hip; ++ i = iinfo->ii_bbot + 1; ++ hip += i; ++ for (; i < nbr; i++, hip++) ++ au_hinode_init(hip); ++ err = 0; ++ } ++ ++ return err; ++} ++ ++void au_iinfo_fin(struct inode *inode) ++{ ++ struct au_iinfo *iinfo; ++ struct au_hinode *hi; ++ struct super_block *sb; ++ aufs_bindex_t bindex, bbot; ++ const unsigned char unlinked = !inode->i_nlink; ++ ++ AuDebugOn(au_is_bad_inode(inode)); ++ ++ sb = inode->i_sb; ++ au_ninodes_dec(sb); ++ if (si_pid_test(sb)) ++ au_xino_delete_inode(inode, unlinked); ++ else { ++ /* ++ * it is safe to hide the dependency between sbinfo and ++ * sb->s_umount. ++ */ ++ lockdep_off(); ++ si_noflush_read_lock(sb); ++ au_xino_delete_inode(inode, unlinked); ++ si_read_unlock(sb); ++ lockdep_on(); ++ } ++ ++ iinfo = au_ii(inode); ++ if (iinfo->ii_vdir) ++ au_vdir_free(iinfo->ii_vdir); ++ ++ bindex = iinfo->ii_btop; ++ if (bindex >= 0) { ++ hi = au_hinode(iinfo, bindex); ++ bbot = iinfo->ii_bbot; ++ while (bindex++ <= bbot) { ++ if (hi->hi_inode) ++ au_hiput(hi); ++ hi++; ++ } ++ } ++ kfree(iinfo->ii_hinode); ++ AuRwDestroy(&iinfo->ii_rwsem); ++} +diff -Naur null/fs/aufs/inode.c linux-4.15/fs/aufs/inode.c +--- /dev/null ++++ linux-4.15/fs/aufs/inode.c 2018-02-25 02:38:09.202737899 +0100 +@@ -0,0 +1,527 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * inode functions ++ */ ++ ++#include "aufs.h" ++ ++struct inode *au_igrab(struct inode *inode) ++{ ++ if (inode) { ++ AuDebugOn(!atomic_read(&inode->i_count)); ++ ihold(inode); ++ } ++ return inode; ++} ++ ++static void au_refresh_hinode_attr(struct inode *inode, int do_version) ++{ ++ au_cpup_attr_all(inode, /*force*/0); ++ au_update_iigen(inode, /*half*/1); ++ if (do_version) ++ inode->i_version++; ++} ++ ++static int au_ii_refresh(struct inode *inode, int *update) ++{ ++ int err, e, nbr; ++ umode_t type; ++ aufs_bindex_t bindex, new_bindex; ++ struct super_block *sb; ++ struct au_iinfo *iinfo; ++ struct au_hinode *p, *q, tmp; ++ ++ AuDebugOn(au_is_bad_inode(inode)); ++ IiMustWriteLock(inode); ++ ++ *update = 0; ++ sb = inode->i_sb; ++ nbr = au_sbbot(sb) + 1; ++ type = inode->i_mode & S_IFMT; ++ iinfo = au_ii(inode); ++ err = au_hinode_realloc(iinfo, nbr, /*may_shrink*/0); ++ if (unlikely(err)) ++ goto out; ++ ++ AuDebugOn(iinfo->ii_btop < 0); ++ p = au_hinode(iinfo, iinfo->ii_btop); ++ for (bindex = iinfo->ii_btop; bindex <= iinfo->ii_bbot; ++ bindex++, p++) { ++ if (!p->hi_inode) ++ continue; ++ ++ AuDebugOn(type != (p->hi_inode->i_mode & S_IFMT)); ++ new_bindex = au_br_index(sb, p->hi_id); ++ if (new_bindex == bindex) ++ continue; ++ ++ if (new_bindex < 0) { ++ *update = 1; ++ au_hiput(p); ++ p->hi_inode = NULL; ++ continue; ++ } ++ ++ if (new_bindex < iinfo->ii_btop) ++ iinfo->ii_btop = new_bindex; ++ if (iinfo->ii_bbot < new_bindex) ++ iinfo->ii_bbot = new_bindex; ++ /* swap two lower inode, and loop again */ ++ q = au_hinode(iinfo, new_bindex); ++ tmp = *q; ++ *q = *p; ++ *p = tmp; ++ if (tmp.hi_inode) { ++ bindex--; ++ p--; ++ } ++ } ++ au_update_ibrange(inode, /*do_put_zero*/0); ++ au_hinode_realloc(iinfo, nbr, /*may_shrink*/1); /* harmless if err */ ++ e = au_dy_irefresh(inode); ++ if (unlikely(e && !err)) ++ err = e; ++ ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++void au_refresh_iop(struct inode *inode, int force_getattr) ++{ ++ int type; ++ struct au_sbinfo *sbi = au_sbi(inode->i_sb); ++ const struct inode_operations *iop ++ = force_getattr ? aufs_iop : sbi->si_iop_array; ++ ++ if (inode->i_op == iop) ++ return; ++ ++ switch (inode->i_mode & S_IFMT) { ++ case S_IFDIR: ++ type = AuIop_DIR; ++ break; ++ case S_IFLNK: ++ type = AuIop_SYMLINK; ++ break; ++ default: ++ type = AuIop_OTHER; ++ break; ++ } ++ ++ inode->i_op = iop + type; ++ /* unnecessary smp_wmb() */ ++} ++ ++int au_refresh_hinode_self(struct inode *inode) ++{ ++ int err, update; ++ ++ err = au_ii_refresh(inode, &update); ++ if (!err) ++ au_refresh_hinode_attr(inode, update && S_ISDIR(inode->i_mode)); ++ ++ AuTraceErr(err); ++ return err; ++} ++ ++int au_refresh_hinode(struct inode *inode, struct dentry *dentry) ++{ ++ int err, e, update; ++ unsigned int flags; ++ umode_t mode; ++ aufs_bindex_t bindex, bbot; ++ unsigned char isdir; ++ struct au_hinode *p; ++ struct au_iinfo *iinfo; ++ ++ err = au_ii_refresh(inode, &update); ++ if (unlikely(err)) ++ goto out; ++ ++ update = 0; ++ iinfo = au_ii(inode); ++ p = au_hinode(iinfo, iinfo->ii_btop); ++ mode = (inode->i_mode & S_IFMT); ++ isdir = S_ISDIR(mode); ++ flags = au_hi_flags(inode, isdir); ++ bbot = au_dbbot(dentry); ++ for (bindex = au_dbtop(dentry); bindex <= bbot; bindex++) { ++ struct inode *h_i, *h_inode; ++ struct dentry *h_d; ++ ++ h_d = au_h_dptr(dentry, bindex); ++ if (!h_d || d_is_negative(h_d)) ++ continue; ++ ++ h_inode = d_inode(h_d); ++ AuDebugOn(mode != (h_inode->i_mode & S_IFMT)); ++ if (iinfo->ii_btop <= bindex && bindex <= iinfo->ii_bbot) { ++ h_i = au_h_iptr(inode, bindex); ++ if (h_i) { ++ if (h_i == h_inode) ++ continue; ++ err = -EIO; ++ break; ++ } ++ } ++ if (bindex < iinfo->ii_btop) ++ iinfo->ii_btop = bindex; ++ if (iinfo->ii_bbot < bindex) ++ iinfo->ii_bbot = bindex; ++ au_set_h_iptr(inode, bindex, au_igrab(h_inode), flags); ++ update = 1; ++ } ++ au_update_ibrange(inode, /*do_put_zero*/0); ++ e = au_dy_irefresh(inode); ++ if (unlikely(e && !err)) ++ err = e; ++ if (!err) ++ au_refresh_hinode_attr(inode, update && isdir); ++ ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++static int set_inode(struct inode *inode, struct dentry *dentry) ++{ ++ int err; ++ unsigned int flags; ++ umode_t mode; ++ aufs_bindex_t bindex, btop, btail; ++ unsigned char isdir; ++ struct dentry *h_dentry; ++ struct inode *h_inode; ++ struct au_iinfo *iinfo; ++ struct inode_operations *iop; ++ ++ IiMustWriteLock(inode); ++ ++ err = 0; ++ isdir = 0; ++ iop = au_sbi(inode->i_sb)->si_iop_array; ++ btop = au_dbtop(dentry); ++ h_dentry = au_h_dptr(dentry, btop); ++ h_inode = d_inode(h_dentry); ++ mode = h_inode->i_mode; ++ switch (mode & S_IFMT) { ++ case S_IFREG: ++ btail = au_dbtail(dentry); ++ inode->i_op = iop + AuIop_OTHER; ++ inode->i_fop = &aufs_file_fop; ++ err = au_dy_iaop(inode, btop, h_inode); ++ if (unlikely(err)) ++ goto out; ++ break; ++ case S_IFDIR: ++ isdir = 1; ++ btail = au_dbtaildir(dentry); ++ inode->i_op = iop + AuIop_DIR; ++ inode->i_fop = &aufs_dir_fop; ++ break; ++ case S_IFLNK: ++ btail = au_dbtail(dentry); ++ inode->i_op = iop + AuIop_SYMLINK; ++ break; ++ case S_IFBLK: ++ case S_IFCHR: ++ case S_IFIFO: ++ case S_IFSOCK: ++ btail = au_dbtail(dentry); ++ inode->i_op = iop + AuIop_OTHER; ++ init_special_inode(inode, mode, h_inode->i_rdev); ++ break; ++ default: ++ AuIOErr("Unknown file type 0%o\n", mode); ++ err = -EIO; ++ goto out; ++ } ++ ++ /* do not set hnotify for whiteouted dirs (SHWH mode) */ ++ flags = au_hi_flags(inode, isdir); ++ if (au_opt_test(au_mntflags(dentry->d_sb), SHWH) ++ && au_ftest_hi(flags, HNOTIFY) ++ && dentry->d_name.len > AUFS_WH_PFX_LEN ++ && !memcmp(dentry->d_name.name, AUFS_WH_PFX, AUFS_WH_PFX_LEN)) ++ au_fclr_hi(flags, HNOTIFY); ++ iinfo = au_ii(inode); ++ iinfo->ii_btop = btop; ++ iinfo->ii_bbot = btail; ++ for (bindex = btop; bindex <= btail; bindex++) { ++ h_dentry = au_h_dptr(dentry, bindex); ++ if (h_dentry) ++ au_set_h_iptr(inode, bindex, ++ au_igrab(d_inode(h_dentry)), flags); ++ } ++ au_cpup_attr_all(inode, /*force*/1); ++ /* ++ * to force calling aufs_get_acl() every time, ++ * do not call cache_no_acl() for aufs inode. ++ */ ++ ++out: ++ return err; ++} ++ ++/* ++ * successful returns with iinfo write_locked ++ * minus: errno ++ * zero: success, matched ++ * plus: no error, but unmatched ++ */ ++static int reval_inode(struct inode *inode, struct dentry *dentry) ++{ ++ int err; ++ unsigned int gen, igflags; ++ aufs_bindex_t bindex, bbot; ++ struct inode *h_inode, *h_dinode; ++ struct dentry *h_dentry; ++ ++ /* ++ * before this function, if aufs got any iinfo lock, it must be only ++ * one, the parent dir. ++ * it can happen by UDBA and the obsoleted inode number. ++ */ ++ err = -EIO; ++ if (unlikely(inode->i_ino == parent_ino(dentry))) ++ goto out; ++ ++ err = 1; ++ ii_write_lock_new_child(inode); ++ h_dentry = au_h_dptr(dentry, au_dbtop(dentry)); ++ h_dinode = d_inode(h_dentry); ++ bbot = au_ibbot(inode); ++ for (bindex = au_ibtop(inode); bindex <= bbot; bindex++) { ++ h_inode = au_h_iptr(inode, bindex); ++ if (!h_inode || h_inode != h_dinode) ++ continue; ++ ++ err = 0; ++ gen = au_iigen(inode, &igflags); ++ if (gen == au_digen(dentry) ++ && !au_ig_ftest(igflags, HALF_REFRESHED)) ++ break; ++ ++ /* fully refresh inode using dentry */ ++ err = au_refresh_hinode(inode, dentry); ++ if (!err) ++ au_update_iigen(inode, /*half*/0); ++ break; ++ } ++ ++ if (unlikely(err)) ++ ii_write_unlock(inode); ++out: ++ return err; ++} ++ ++int au_ino(struct super_block *sb, aufs_bindex_t bindex, ino_t h_ino, ++ unsigned int d_type, ino_t *ino) ++{ ++ int err, idx; ++ const int isnondir = d_type != DT_DIR; ++ ++ /* prevent hardlinked inode number from race condition */ ++ if (isnondir) { ++ err = au_xinondir_enter(sb, bindex, h_ino, &idx); ++ if (unlikely(err)) ++ goto out; ++ } ++ ++ err = au_xino_read(sb, bindex, h_ino, ino); ++ if (unlikely(err)) ++ goto out_xinondir; ++ ++ if (!*ino) { ++ err = -EIO; ++ *ino = au_xino_new_ino(sb); ++ if (unlikely(!*ino)) ++ goto out_xinondir; ++ err = au_xino_write(sb, bindex, h_ino, *ino); ++ if (unlikely(err)) ++ goto out_xinondir; ++ } ++ ++out_xinondir: ++ if (isnondir && idx >= 0) ++ au_xinondir_leave(sb, bindex, h_ino, idx); ++out: ++ return err; ++} ++ ++/* successful returns with iinfo write_locked */ ++/* todo: return with unlocked? */ ++struct inode *au_new_inode(struct dentry *dentry, int must_new) ++{ ++ struct inode *inode, *h_inode; ++ struct dentry *h_dentry; ++ struct super_block *sb; ++ ino_t h_ino, ino; ++ int err, idx, hlinked; ++ aufs_bindex_t btop; ++ ++ sb = dentry->d_sb; ++ btop = au_dbtop(dentry); ++ h_dentry = au_h_dptr(dentry, btop); ++ h_inode = d_inode(h_dentry); ++ h_ino = h_inode->i_ino; ++ hlinked = !d_is_dir(h_dentry) && h_inode->i_nlink > 1; ++ ++new_ino: ++ /* ++ * stop 'race'-ing between hardlinks under different ++ * parents. ++ */ ++ if (hlinked) { ++ err = au_xinondir_enter(sb, btop, h_ino, &idx); ++ inode = ERR_PTR(err); ++ if (unlikely(err)) ++ goto out; ++ } ++ ++ err = au_xino_read(sb, btop, h_ino, &ino); ++ inode = ERR_PTR(err); ++ if (unlikely(err)) ++ goto out_xinondir; ++ ++ if (!ino) { ++ ino = au_xino_new_ino(sb); ++ if (unlikely(!ino)) { ++ inode = ERR_PTR(-EIO); ++ goto out_xinondir; ++ } ++ } ++ ++ AuDbg("i%lu\n", (unsigned long)ino); ++ inode = au_iget_locked(sb, ino); ++ err = PTR_ERR(inode); ++ if (IS_ERR(inode)) ++ goto out_xinondir; ++ ++ AuDbg("%lx, new %d\n", inode->i_state, !!(inode->i_state & I_NEW)); ++ if (inode->i_state & I_NEW) { ++ ii_write_lock_new_child(inode); ++ err = set_inode(inode, dentry); ++ if (!err) { ++ unlock_new_inode(inode); ++ goto out_xinondir; /* success */ ++ } ++ ++ /* ++ * iget_failed() calls iput(), but we need to call ++ * ii_write_unlock() after iget_failed(). so dirty hack for ++ * i_count. ++ */ ++ atomic_inc(&inode->i_count); ++ iget_failed(inode); ++ ii_write_unlock(inode); ++ au_xino_write(sb, btop, h_ino, /*ino*/0); ++ /* ignore this error */ ++ goto out_iput; ++ } else if (!must_new && !IS_DEADDIR(inode) && inode->i_nlink) { ++ /* ++ * horrible race condition between lookup, readdir and copyup ++ * (or something). ++ */ ++ if (hlinked && idx >= 0) ++ au_xinondir_leave(sb, btop, h_ino, idx); ++ err = reval_inode(inode, dentry); ++ if (unlikely(err < 0)) { ++ hlinked = 0; ++ goto out_iput; ++ } ++ if (!err) ++ goto out; /* success */ ++ else if (hlinked && idx >= 0) { ++ err = au_xinondir_enter(sb, btop, h_ino, &idx); ++ if (unlikely(err)) { ++ iput(inode); ++ inode = ERR_PTR(err); ++ goto out; ++ } ++ } ++ } ++ ++ if (unlikely(au_test_fs_unique_ino(h_inode))) ++ AuWarn1("Warning: Un-notified UDBA or repeatedly renamed dir," ++ " b%d, %s, %pd, hi%lu, i%lu.\n", ++ btop, au_sbtype(h_dentry->d_sb), dentry, ++ (unsigned long)h_ino, (unsigned long)ino); ++ ino = 0; ++ err = au_xino_write(sb, btop, h_ino, /*ino*/0); ++ if (!err) { ++ iput(inode); ++ if (hlinked && idx >= 0) ++ au_xinondir_leave(sb, btop, h_ino, idx); ++ goto new_ino; ++ } ++ ++out_iput: ++ iput(inode); ++ inode = ERR_PTR(err); ++out_xinondir: ++ if (hlinked && idx >= 0) ++ au_xinondir_leave(sb, btop, h_ino, idx); ++out: ++ return inode; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++int au_test_ro(struct super_block *sb, aufs_bindex_t bindex, ++ struct inode *inode) ++{ ++ int err; ++ struct inode *hi; ++ ++ err = au_br_rdonly(au_sbr(sb, bindex)); ++ ++ /* pseudo-link after flushed may happen out of bounds */ ++ if (!err ++ && inode ++ && au_ibtop(inode) <= bindex ++ && bindex <= au_ibbot(inode)) { ++ /* ++ * permission check is unnecessary since vfsub routine ++ * will be called later ++ */ ++ hi = au_h_iptr(inode, bindex); ++ if (hi) ++ err = IS_IMMUTABLE(hi) ? -EROFS : 0; ++ } ++ ++ return err; ++} ++ ++int au_test_h_perm(struct inode *h_inode, int mask) ++{ ++ if (uid_eq(current_fsuid(), GLOBAL_ROOT_UID)) ++ return 0; ++ return inode_permission(h_inode, mask); ++} ++ ++int au_test_h_perm_sio(struct inode *h_inode, int mask) ++{ ++ if (au_test_nfs(h_inode->i_sb) ++ && (mask & MAY_WRITE) ++ && S_ISDIR(h_inode->i_mode)) ++ mask |= MAY_READ; /* force permission check */ ++ return au_test_h_perm(h_inode, mask); ++} +diff -Naur null/fs/aufs/inode.h linux-4.15/fs/aufs/inode.h +--- /dev/null ++++ linux-4.15/fs/aufs/inode.h 2018-02-25 02:38:09.203738006 +0100 +@@ -0,0 +1,695 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * inode operations ++ */ ++ ++#ifndef __AUFS_INODE_H__ ++#define __AUFS_INODE_H__ ++ ++#ifdef __KERNEL__ ++ ++#include ++#include "rwsem.h" ++ ++struct vfsmount; ++ ++struct au_hnotify { ++#ifdef CONFIG_AUFS_HNOTIFY ++#ifdef CONFIG_AUFS_HFSNOTIFY ++ /* never use fsnotify_add_vfsmount_mark() */ ++ struct fsnotify_mark hn_mark; ++#endif ++ struct inode *hn_aufs_inode; /* no get/put */ ++#endif ++} ____cacheline_aligned_in_smp; ++ ++struct au_hinode { ++ struct inode *hi_inode; ++ aufs_bindex_t hi_id; ++#ifdef CONFIG_AUFS_HNOTIFY ++ struct au_hnotify *hi_notify; ++#endif ++ ++ /* reference to the copied-up whiteout with get/put */ ++ struct dentry *hi_whdentry; ++}; ++ ++/* ig_flags */ ++#define AuIG_HALF_REFRESHED 1 ++#define au_ig_ftest(flags, name) ((flags) & AuIG_##name) ++#define au_ig_fset(flags, name) \ ++ do { (flags) |= AuIG_##name; } while (0) ++#define au_ig_fclr(flags, name) \ ++ do { (flags) &= ~AuIG_##name; } while (0) ++ ++struct au_iigen { ++ spinlock_t ig_spin; ++ __u32 ig_generation, ig_flags; ++}; ++ ++struct au_vdir; ++struct au_iinfo { ++ struct au_iigen ii_generation; ++ struct super_block *ii_hsb1; /* no get/put */ ++ ++ struct au_rwsem ii_rwsem; ++ aufs_bindex_t ii_btop, ii_bbot; ++ __u32 ii_higen; ++ struct au_hinode *ii_hinode; ++ struct au_vdir *ii_vdir; ++}; ++ ++struct au_icntnr { ++ struct au_iinfo iinfo; ++ struct inode vfs_inode; ++ struct hlist_bl_node plink; ++} ____cacheline_aligned_in_smp; ++ ++/* au_pin flags */ ++#define AuPin_DI_LOCKED 1 ++#define AuPin_MNT_WRITE (1 << 1) ++#define au_ftest_pin(flags, name) ((flags) & AuPin_##name) ++#define au_fset_pin(flags, name) \ ++ do { (flags) |= AuPin_##name; } while (0) ++#define au_fclr_pin(flags, name) \ ++ do { (flags) &= ~AuPin_##name; } while (0) ++ ++struct au_pin { ++ /* input */ ++ struct dentry *dentry; ++ unsigned int udba; ++ unsigned char lsc_di, lsc_hi, flags; ++ aufs_bindex_t bindex; ++ ++ /* output */ ++ struct dentry *parent; ++ struct au_hinode *hdir; ++ struct vfsmount *h_mnt; ++ ++ /* temporary unlock/relock for copyup */ ++ struct dentry *h_dentry, *h_parent; ++ struct au_branch *br; ++ struct task_struct *task; ++}; ++ ++void au_pin_hdir_unlock(struct au_pin *p); ++int au_pin_hdir_lock(struct au_pin *p); ++int au_pin_hdir_relock(struct au_pin *p); ++void au_pin_hdir_acquire_nest(struct au_pin *p); ++void au_pin_hdir_release(struct au_pin *p); ++ ++/* ---------------------------------------------------------------------- */ ++ ++static inline struct au_iinfo *au_ii(struct inode *inode) ++{ ++ BUG_ON(is_bad_inode(inode)); ++ return &(container_of(inode, struct au_icntnr, vfs_inode)->iinfo); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* inode.c */ ++struct inode *au_igrab(struct inode *inode); ++void au_refresh_iop(struct inode *inode, int force_getattr); ++int au_refresh_hinode_self(struct inode *inode); ++int au_refresh_hinode(struct inode *inode, struct dentry *dentry); ++int au_ino(struct super_block *sb, aufs_bindex_t bindex, ino_t h_ino, ++ unsigned int d_type, ino_t *ino); ++struct inode *au_new_inode(struct dentry *dentry, int must_new); ++int au_test_ro(struct super_block *sb, aufs_bindex_t bindex, ++ struct inode *inode); ++int au_test_h_perm(struct inode *h_inode, int mask); ++int au_test_h_perm_sio(struct inode *h_inode, int mask); ++ ++static inline int au_wh_ino(struct super_block *sb, aufs_bindex_t bindex, ++ ino_t h_ino, unsigned int d_type, ino_t *ino) ++{ ++#ifdef CONFIG_AUFS_SHWH ++ return au_ino(sb, bindex, h_ino, d_type, ino); ++#else ++ return 0; ++#endif ++} ++ ++/* i_op.c */ ++enum { ++ AuIop_SYMLINK, ++ AuIop_DIR, ++ AuIop_OTHER, ++ AuIop_Last ++}; ++extern struct inode_operations aufs_iop[AuIop_Last], ++ aufs_iop_nogetattr[AuIop_Last]; ++ ++/* au_wr_dir flags */ ++#define AuWrDir_ADD_ENTRY 1 ++#define AuWrDir_ISDIR (1 << 1) ++#define AuWrDir_TMPFILE (1 << 2) ++#define au_ftest_wrdir(flags, name) ((flags) & AuWrDir_##name) ++#define au_fset_wrdir(flags, name) \ ++ do { (flags) |= AuWrDir_##name; } while (0) ++#define au_fclr_wrdir(flags, name) \ ++ do { (flags) &= ~AuWrDir_##name; } while (0) ++ ++struct au_wr_dir_args { ++ aufs_bindex_t force_btgt; ++ unsigned char flags; ++}; ++int au_wr_dir(struct dentry *dentry, struct dentry *src_dentry, ++ struct au_wr_dir_args *args); ++ ++struct dentry *au_pinned_h_parent(struct au_pin *pin); ++void au_pin_init(struct au_pin *pin, struct dentry *dentry, ++ aufs_bindex_t bindex, int lsc_di, int lsc_hi, ++ unsigned int udba, unsigned char flags); ++int au_pin(struct au_pin *pin, struct dentry *dentry, aufs_bindex_t bindex, ++ unsigned int udba, unsigned char flags) __must_check; ++int au_do_pin(struct au_pin *pin) __must_check; ++void au_unpin(struct au_pin *pin); ++int au_reval_for_attr(struct dentry *dentry, unsigned int sigen); ++ ++#define AuIcpup_DID_CPUP 1 ++#define au_ftest_icpup(flags, name) ((flags) & AuIcpup_##name) ++#define au_fset_icpup(flags, name) \ ++ do { (flags) |= AuIcpup_##name; } while (0) ++#define au_fclr_icpup(flags, name) \ ++ do { (flags) &= ~AuIcpup_##name; } while (0) ++ ++struct au_icpup_args { ++ unsigned char flags; ++ unsigned char pin_flags; ++ aufs_bindex_t btgt; ++ unsigned int udba; ++ struct au_pin pin; ++ struct path h_path; ++ struct inode *h_inode; ++}; ++ ++int au_pin_and_icpup(struct dentry *dentry, struct iattr *ia, ++ struct au_icpup_args *a); ++ ++int au_h_path_getattr(struct dentry *dentry, int force, struct path *h_path, ++ int locked); ++ ++/* i_op_add.c */ ++int au_may_add(struct dentry *dentry, aufs_bindex_t bindex, ++ struct dentry *h_parent, int isdir); ++int aufs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, ++ dev_t dev); ++int aufs_symlink(struct inode *dir, struct dentry *dentry, const char *symname); ++int aufs_create(struct inode *dir, struct dentry *dentry, umode_t mode, ++ bool want_excl); ++struct vfsub_aopen_args; ++int au_aopen_or_create(struct inode *dir, struct dentry *dentry, ++ struct vfsub_aopen_args *args); ++int aufs_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode); ++int aufs_link(struct dentry *src_dentry, struct inode *dir, ++ struct dentry *dentry); ++int aufs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode); ++ ++/* i_op_del.c */ ++int au_wr_dir_need_wh(struct dentry *dentry, int isdir, aufs_bindex_t *bcpup); ++int au_may_del(struct dentry *dentry, aufs_bindex_t bindex, ++ struct dentry *h_parent, int isdir); ++int aufs_unlink(struct inode *dir, struct dentry *dentry); ++int aufs_rmdir(struct inode *dir, struct dentry *dentry); ++ ++/* i_op_ren.c */ ++int au_wbr(struct dentry *dentry, aufs_bindex_t btgt); ++int aufs_rename(struct inode *src_dir, struct dentry *src_dentry, ++ struct inode *dir, struct dentry *dentry, ++ unsigned int flags); ++ ++/* iinfo.c */ ++struct inode *au_h_iptr(struct inode *inode, aufs_bindex_t bindex); ++void au_hiput(struct au_hinode *hinode); ++void au_set_hi_wh(struct inode *inode, aufs_bindex_t bindex, ++ struct dentry *h_wh); ++unsigned int au_hi_flags(struct inode *inode, int isdir); ++ ++/* hinode flags */ ++#define AuHi_XINO 1 ++#define AuHi_HNOTIFY (1 << 1) ++#define au_ftest_hi(flags, name) ((flags) & AuHi_##name) ++#define au_fset_hi(flags, name) \ ++ do { (flags) |= AuHi_##name; } while (0) ++#define au_fclr_hi(flags, name) \ ++ do { (flags) &= ~AuHi_##name; } while (0) ++ ++#ifndef CONFIG_AUFS_HNOTIFY ++#undef AuHi_HNOTIFY ++#define AuHi_HNOTIFY 0 ++#endif ++ ++void au_set_h_iptr(struct inode *inode, aufs_bindex_t bindex, ++ struct inode *h_inode, unsigned int flags); ++ ++void au_update_iigen(struct inode *inode, int half); ++void au_update_ibrange(struct inode *inode, int do_put_zero); ++ ++void au_icntnr_init_once(void *_c); ++void au_hinode_init(struct au_hinode *hinode); ++int au_iinfo_init(struct inode *inode); ++void au_iinfo_fin(struct inode *inode); ++int au_hinode_realloc(struct au_iinfo *iinfo, int nbr, int may_shrink); ++ ++#ifdef CONFIG_PROC_FS ++/* plink.c */ ++int au_plink_maint(struct super_block *sb, int flags); ++struct au_sbinfo; ++void au_plink_maint_leave(struct au_sbinfo *sbinfo); ++int au_plink_maint_enter(struct super_block *sb); ++#ifdef CONFIG_AUFS_DEBUG ++void au_plink_list(struct super_block *sb); ++#else ++AuStubVoid(au_plink_list, struct super_block *sb) ++#endif ++int au_plink_test(struct inode *inode); ++struct dentry *au_plink_lkup(struct inode *inode, aufs_bindex_t bindex); ++void au_plink_append(struct inode *inode, aufs_bindex_t bindex, ++ struct dentry *h_dentry); ++void au_plink_put(struct super_block *sb, int verbose); ++void au_plink_clean(struct super_block *sb, int verbose); ++void au_plink_half_refresh(struct super_block *sb, aufs_bindex_t br_id); ++#else ++AuStubInt0(au_plink_maint, struct super_block *sb, int flags); ++AuStubVoid(au_plink_maint_leave, struct au_sbinfo *sbinfo); ++AuStubInt0(au_plink_maint_enter, struct super_block *sb); ++AuStubVoid(au_plink_list, struct super_block *sb); ++AuStubInt0(au_plink_test, struct inode *inode); ++AuStub(struct dentry *, au_plink_lkup, return NULL, ++ struct inode *inode, aufs_bindex_t bindex); ++AuStubVoid(au_plink_append, struct inode *inode, aufs_bindex_t bindex, ++ struct dentry *h_dentry); ++AuStubVoid(au_plink_put, struct super_block *sb, int verbose); ++AuStubVoid(au_plink_clean, struct super_block *sb, int verbose); ++AuStubVoid(au_plink_half_refresh, struct super_block *sb, aufs_bindex_t br_id); ++#endif /* CONFIG_PROC_FS */ ++ ++#ifdef CONFIG_AUFS_XATTR ++/* xattr.c */ ++int au_cpup_xattr(struct dentry *h_dst, struct dentry *h_src, int ignore_flags, ++ unsigned int verbose); ++ssize_t aufs_listxattr(struct dentry *dentry, char *list, size_t size); ++void au_xattr_init(struct super_block *sb); ++#else ++AuStubInt0(au_cpup_xattr, struct dentry *h_dst, struct dentry *h_src, ++ int ignore_flags, unsigned int verbose); ++AuStubVoid(au_xattr_init, struct super_block *sb); ++#endif ++ ++#ifdef CONFIG_FS_POSIX_ACL ++struct posix_acl *aufs_get_acl(struct inode *inode, int type); ++int aufs_set_acl(struct inode *inode, struct posix_acl *acl, int type); ++#endif ++ ++#if IS_ENABLED(CONFIG_AUFS_XATTR) || IS_ENABLED(CONFIG_FS_POSIX_ACL) ++enum { ++ AU_XATTR_SET, ++ AU_ACL_SET ++}; ++ ++struct au_sxattr { ++ int type; ++ union { ++ struct { ++ const char *name; ++ const void *value; ++ size_t size; ++ int flags; ++ } set; ++ struct { ++ struct posix_acl *acl; ++ int type; ++ } acl_set; ++ } u; ++}; ++ssize_t au_sxattr(struct dentry *dentry, struct inode *inode, ++ struct au_sxattr *arg); ++#endif ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* lock subclass for iinfo */ ++enum { ++ AuLsc_II_CHILD, /* child first */ ++ AuLsc_II_CHILD2, /* rename(2), link(2), and cpup at hnotify */ ++ AuLsc_II_CHILD3, /* copyup dirs */ ++ AuLsc_II_PARENT, /* see AuLsc_I_PARENT in vfsub.h */ ++ AuLsc_II_PARENT2, ++ AuLsc_II_PARENT3, /* copyup dirs */ ++ AuLsc_II_NEW_CHILD ++}; ++ ++/* ++ * ii_read_lock_child, ii_write_lock_child, ++ * ii_read_lock_child2, ii_write_lock_child2, ++ * ii_read_lock_child3, ii_write_lock_child3, ++ * ii_read_lock_parent, ii_write_lock_parent, ++ * ii_read_lock_parent2, ii_write_lock_parent2, ++ * ii_read_lock_parent3, ii_write_lock_parent3, ++ * ii_read_lock_new_child, ii_write_lock_new_child, ++ */ ++#define AuReadLockFunc(name, lsc) \ ++static inline void ii_read_lock_##name(struct inode *i) \ ++{ \ ++ au_rw_read_lock_nested(&au_ii(i)->ii_rwsem, AuLsc_II_##lsc); \ ++} ++ ++#define AuWriteLockFunc(name, lsc) \ ++static inline void ii_write_lock_##name(struct inode *i) \ ++{ \ ++ au_rw_write_lock_nested(&au_ii(i)->ii_rwsem, AuLsc_II_##lsc); \ ++} ++ ++#define AuRWLockFuncs(name, lsc) \ ++ AuReadLockFunc(name, lsc) \ ++ AuWriteLockFunc(name, lsc) ++ ++AuRWLockFuncs(child, CHILD); ++AuRWLockFuncs(child2, CHILD2); ++AuRWLockFuncs(child3, CHILD3); ++AuRWLockFuncs(parent, PARENT); ++AuRWLockFuncs(parent2, PARENT2); ++AuRWLockFuncs(parent3, PARENT3); ++AuRWLockFuncs(new_child, NEW_CHILD); ++ ++#undef AuReadLockFunc ++#undef AuWriteLockFunc ++#undef AuRWLockFuncs ++ ++#define ii_read_unlock(i) au_rw_read_unlock(&au_ii(i)->ii_rwsem) ++#define ii_write_unlock(i) au_rw_write_unlock(&au_ii(i)->ii_rwsem) ++#define ii_downgrade_lock(i) au_rw_dgrade_lock(&au_ii(i)->ii_rwsem) ++ ++#define IiMustNoWaiters(i) AuRwMustNoWaiters(&au_ii(i)->ii_rwsem) ++#define IiMustAnyLock(i) AuRwMustAnyLock(&au_ii(i)->ii_rwsem) ++#define IiMustWriteLock(i) AuRwMustWriteLock(&au_ii(i)->ii_rwsem) ++ ++/* ---------------------------------------------------------------------- */ ++ ++static inline void au_icntnr_init(struct au_icntnr *c) ++{ ++#ifdef CONFIG_AUFS_DEBUG ++ c->vfs_inode.i_mode = 0; ++#endif ++} ++ ++static inline unsigned int au_iigen(struct inode *inode, unsigned int *igflags) ++{ ++ unsigned int gen; ++ struct au_iinfo *iinfo; ++ struct au_iigen *iigen; ++ ++ iinfo = au_ii(inode); ++ iigen = &iinfo->ii_generation; ++ spin_lock(&iigen->ig_spin); ++ if (igflags) ++ *igflags = iigen->ig_flags; ++ gen = iigen->ig_generation; ++ spin_unlock(&iigen->ig_spin); ++ ++ return gen; ++} ++ ++/* tiny test for inode number */ ++/* tmpfs generation is too rough */ ++static inline int au_test_higen(struct inode *inode, struct inode *h_inode) ++{ ++ struct au_iinfo *iinfo; ++ ++ iinfo = au_ii(inode); ++ AuRwMustAnyLock(&iinfo->ii_rwsem); ++ return !(iinfo->ii_hsb1 == h_inode->i_sb ++ && iinfo->ii_higen == h_inode->i_generation); ++} ++ ++static inline void au_iigen_dec(struct inode *inode) ++{ ++ struct au_iinfo *iinfo; ++ struct au_iigen *iigen; ++ ++ iinfo = au_ii(inode); ++ iigen = &iinfo->ii_generation; ++ spin_lock(&iigen->ig_spin); ++ iigen->ig_generation--; ++ spin_unlock(&iigen->ig_spin); ++} ++ ++static inline int au_iigen_test(struct inode *inode, unsigned int sigen) ++{ ++ int err; ++ ++ err = 0; ++ if (unlikely(inode && au_iigen(inode, NULL) != sigen)) ++ err = -EIO; ++ ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static inline struct au_hinode *au_hinode(struct au_iinfo *iinfo, ++ aufs_bindex_t bindex) ++{ ++ return iinfo->ii_hinode + bindex; ++} ++ ++static inline int au_is_bad_inode(struct inode *inode) ++{ ++ return !!(is_bad_inode(inode) || !au_hinode(au_ii(inode), 0)); ++} ++ ++static inline aufs_bindex_t au_ii_br_id(struct inode *inode, ++ aufs_bindex_t bindex) ++{ ++ IiMustAnyLock(inode); ++ return au_hinode(au_ii(inode), bindex)->hi_id; ++} ++ ++static inline aufs_bindex_t au_ibtop(struct inode *inode) ++{ ++ IiMustAnyLock(inode); ++ return au_ii(inode)->ii_btop; ++} ++ ++static inline aufs_bindex_t au_ibbot(struct inode *inode) ++{ ++ IiMustAnyLock(inode); ++ return au_ii(inode)->ii_bbot; ++} ++ ++static inline struct au_vdir *au_ivdir(struct inode *inode) ++{ ++ IiMustAnyLock(inode); ++ return au_ii(inode)->ii_vdir; ++} ++ ++static inline struct dentry *au_hi_wh(struct inode *inode, aufs_bindex_t bindex) ++{ ++ IiMustAnyLock(inode); ++ return au_hinode(au_ii(inode), bindex)->hi_whdentry; ++} ++ ++static inline void au_set_ibtop(struct inode *inode, aufs_bindex_t bindex) ++{ ++ IiMustWriteLock(inode); ++ au_ii(inode)->ii_btop = bindex; ++} ++ ++static inline void au_set_ibbot(struct inode *inode, aufs_bindex_t bindex) ++{ ++ IiMustWriteLock(inode); ++ au_ii(inode)->ii_bbot = bindex; ++} ++ ++static inline void au_set_ivdir(struct inode *inode, struct au_vdir *vdir) ++{ ++ IiMustWriteLock(inode); ++ au_ii(inode)->ii_vdir = vdir; ++} ++ ++static inline struct au_hinode *au_hi(struct inode *inode, aufs_bindex_t bindex) ++{ ++ IiMustAnyLock(inode); ++ return au_hinode(au_ii(inode), bindex); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static inline struct dentry *au_pinned_parent(struct au_pin *pin) ++{ ++ if (pin) ++ return pin->parent; ++ return NULL; ++} ++ ++static inline struct inode *au_pinned_h_dir(struct au_pin *pin) ++{ ++ if (pin && pin->hdir) ++ return pin->hdir->hi_inode; ++ return NULL; ++} ++ ++static inline struct au_hinode *au_pinned_hdir(struct au_pin *pin) ++{ ++ if (pin) ++ return pin->hdir; ++ return NULL; ++} ++ ++static inline void au_pin_set_dentry(struct au_pin *pin, struct dentry *dentry) ++{ ++ if (pin) ++ pin->dentry = dentry; ++} ++ ++static inline void au_pin_set_parent_lflag(struct au_pin *pin, ++ unsigned char lflag) ++{ ++ if (pin) { ++ if (lflag) ++ au_fset_pin(pin->flags, DI_LOCKED); ++ else ++ au_fclr_pin(pin->flags, DI_LOCKED); ++ } ++} ++ ++#if 0 /* reserved */ ++static inline void au_pin_set_parent(struct au_pin *pin, struct dentry *parent) ++{ ++ if (pin) { ++ dput(pin->parent); ++ pin->parent = dget(parent); ++ } ++} ++#endif ++ ++/* ---------------------------------------------------------------------- */ ++ ++struct au_branch; ++#ifdef CONFIG_AUFS_HNOTIFY ++struct au_hnotify_op { ++ void (*ctl)(struct au_hinode *hinode, int do_set); ++ int (*alloc)(struct au_hinode *hinode); ++ ++ /* ++ * if it returns true, the the caller should free hinode->hi_notify, ++ * otherwise ->free() frees it. ++ */ ++ int (*free)(struct au_hinode *hinode, ++ struct au_hnotify *hn) __must_check; ++ ++ void (*fin)(void); ++ int (*init)(void); ++ ++ int (*reset_br)(unsigned int udba, struct au_branch *br, int perm); ++ void (*fin_br)(struct au_branch *br); ++ int (*init_br)(struct au_branch *br, int perm); ++}; ++ ++/* hnotify.c */ ++int au_hn_alloc(struct au_hinode *hinode, struct inode *inode); ++void au_hn_free(struct au_hinode *hinode); ++void au_hn_ctl(struct au_hinode *hinode, int do_set); ++void au_hn_reset(struct inode *inode, unsigned int flags); ++int au_hnotify(struct inode *h_dir, struct au_hnotify *hnotify, u32 mask, ++ struct qstr *h_child_qstr, struct inode *h_child_inode); ++int au_hnotify_reset_br(unsigned int udba, struct au_branch *br, int perm); ++int au_hnotify_init_br(struct au_branch *br, int perm); ++void au_hnotify_fin_br(struct au_branch *br); ++int __init au_hnotify_init(void); ++void au_hnotify_fin(void); ++ ++/* hfsnotify.c */ ++extern const struct au_hnotify_op au_hnotify_op; ++ ++static inline ++void au_hn_init(struct au_hinode *hinode) ++{ ++ hinode->hi_notify = NULL; ++} ++ ++static inline struct au_hnotify *au_hn(struct au_hinode *hinode) ++{ ++ return hinode->hi_notify; ++} ++ ++#else ++AuStub(int, au_hn_alloc, return -EOPNOTSUPP, ++ struct au_hinode *hinode __maybe_unused, ++ struct inode *inode __maybe_unused) ++AuStub(struct au_hnotify *, au_hn, return NULL, struct au_hinode *hinode) ++AuStubVoid(au_hn_free, struct au_hinode *hinode __maybe_unused) ++AuStubVoid(au_hn_ctl, struct au_hinode *hinode __maybe_unused, ++ int do_set __maybe_unused) ++AuStubVoid(au_hn_reset, struct inode *inode __maybe_unused, ++ unsigned int flags __maybe_unused) ++AuStubInt0(au_hnotify_reset_br, unsigned int udba __maybe_unused, ++ struct au_branch *br __maybe_unused, ++ int perm __maybe_unused) ++AuStubInt0(au_hnotify_init_br, struct au_branch *br __maybe_unused, ++ int perm __maybe_unused) ++AuStubVoid(au_hnotify_fin_br, struct au_branch *br __maybe_unused) ++AuStubInt0(__init au_hnotify_init, void) ++AuStubVoid(au_hnotify_fin, void) ++AuStubVoid(au_hn_init, struct au_hinode *hinode __maybe_unused) ++#endif /* CONFIG_AUFS_HNOTIFY */ ++ ++static inline void au_hn_suspend(struct au_hinode *hdir) ++{ ++ au_hn_ctl(hdir, /*do_set*/0); ++} ++ ++static inline void au_hn_resume(struct au_hinode *hdir) ++{ ++ au_hn_ctl(hdir, /*do_set*/1); ++} ++ ++static inline void au_hn_inode_lock(struct au_hinode *hdir) ++{ ++ inode_lock(hdir->hi_inode); ++ au_hn_suspend(hdir); ++} ++ ++static inline void au_hn_inode_lock_nested(struct au_hinode *hdir, ++ unsigned int sc __maybe_unused) ++{ ++ inode_lock_nested(hdir->hi_inode, sc); ++ au_hn_suspend(hdir); ++} ++ ++#if 0 /* unused */ ++#include "vfsub.h" ++static inline void au_hn_inode_lock_shared_nested(struct au_hinode *hdir, ++ unsigned int sc) ++{ ++ vfsub_inode_lock_shared_nested(hdir->hi_inode, sc); ++ au_hn_suspend(hdir); ++} ++#endif ++ ++static inline void au_hn_inode_unlock(struct au_hinode *hdir) ++{ ++ au_hn_resume(hdir); ++ inode_unlock(hdir->hi_inode); ++} ++ ++#endif /* __KERNEL__ */ ++#endif /* __AUFS_INODE_H__ */ +diff -Naur null/fs/aufs/ioctl.c linux-4.15/fs/aufs/ioctl.c +--- /dev/null ++++ linux-4.15/fs/aufs/ioctl.c 2018-02-25 02:38:09.203738006 +0100 +@@ -0,0 +1,219 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * ioctl ++ * plink-management and readdir in userspace. ++ * assist the pathconf(3) wrapper library. ++ * move-down ++ * File-based Hierarchical Storage Management. ++ */ ++ ++#include ++#include ++#include "aufs.h" ++ ++static int au_wbr_fd(struct path *path, struct aufs_wbr_fd __user *arg) ++{ ++ int err, fd; ++ aufs_bindex_t wbi, bindex, bbot; ++ struct file *h_file; ++ struct super_block *sb; ++ struct dentry *root; ++ struct au_branch *br; ++ struct aufs_wbr_fd wbrfd = { ++ .oflags = au_dir_roflags, ++ .brid = -1 ++ }; ++ const int valid = O_RDONLY | O_NONBLOCK | O_LARGEFILE | O_DIRECTORY ++ | O_NOATIME | O_CLOEXEC; ++ ++ AuDebugOn(wbrfd.oflags & ~valid); ++ ++ if (arg) { ++ err = copy_from_user(&wbrfd, arg, sizeof(wbrfd)); ++ if (unlikely(err)) { ++ err = -EFAULT; ++ goto out; ++ } ++ ++ err = -EINVAL; ++ AuDbg("wbrfd{0%o, %d}\n", wbrfd.oflags, wbrfd.brid); ++ wbrfd.oflags |= au_dir_roflags; ++ AuDbg("0%o\n", wbrfd.oflags); ++ if (unlikely(wbrfd.oflags & ~valid)) ++ goto out; ++ } ++ ++ fd = get_unused_fd_flags(0); ++ err = fd; ++ if (unlikely(fd < 0)) ++ goto out; ++ ++ h_file = ERR_PTR(-EINVAL); ++ wbi = 0; ++ br = NULL; ++ sb = path->dentry->d_sb; ++ root = sb->s_root; ++ aufs_read_lock(root, AuLock_IR); ++ bbot = au_sbbot(sb); ++ if (wbrfd.brid >= 0) { ++ wbi = au_br_index(sb, wbrfd.brid); ++ if (unlikely(wbi < 0 || wbi > bbot)) ++ goto out_unlock; ++ } ++ ++ h_file = ERR_PTR(-ENOENT); ++ br = au_sbr(sb, wbi); ++ if (!au_br_writable(br->br_perm)) { ++ if (arg) ++ goto out_unlock; ++ ++ bindex = wbi + 1; ++ wbi = -1; ++ for (; bindex <= bbot; bindex++) { ++ br = au_sbr(sb, bindex); ++ if (au_br_writable(br->br_perm)) { ++ wbi = bindex; ++ br = au_sbr(sb, wbi); ++ break; ++ } ++ } ++ } ++ AuDbg("wbi %d\n", wbi); ++ if (wbi >= 0) ++ h_file = au_h_open(root, wbi, wbrfd.oflags, NULL, ++ /*force_wr*/0); ++ ++out_unlock: ++ aufs_read_unlock(root, AuLock_IR); ++ err = PTR_ERR(h_file); ++ if (IS_ERR(h_file)) ++ goto out_fd; ++ ++ au_br_put(br); /* cf. au_h_open() */ ++ fd_install(fd, h_file); ++ err = fd; ++ goto out; /* success */ ++ ++out_fd: ++ put_unused_fd(fd); ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++long aufs_ioctl_dir(struct file *file, unsigned int cmd, unsigned long arg) ++{ ++ long err; ++ struct dentry *dentry; ++ ++ switch (cmd) { ++ case AUFS_CTL_RDU: ++ case AUFS_CTL_RDU_INO: ++ err = au_rdu_ioctl(file, cmd, arg); ++ break; ++ ++ case AUFS_CTL_WBR_FD: ++ err = au_wbr_fd(&file->f_path, (void __user *)arg); ++ break; ++ ++ case AUFS_CTL_IBUSY: ++ err = au_ibusy_ioctl(file, arg); ++ break; ++ ++ case AUFS_CTL_BRINFO: ++ err = au_brinfo_ioctl(file, arg); ++ break; ++ ++ case AUFS_CTL_FHSM_FD: ++ dentry = file->f_path.dentry; ++ if (IS_ROOT(dentry)) ++ err = au_fhsm_fd(dentry->d_sb, arg); ++ else ++ err = -ENOTTY; ++ break; ++ ++ default: ++ /* do not call the lower */ ++ AuDbg("0x%x\n", cmd); ++ err = -ENOTTY; ++ } ++ ++ AuTraceErr(err); ++ return err; ++} ++ ++long aufs_ioctl_nondir(struct file *file, unsigned int cmd, unsigned long arg) ++{ ++ long err; ++ ++ switch (cmd) { ++ case AUFS_CTL_MVDOWN: ++ err = au_mvdown(file->f_path.dentry, (void __user *)arg); ++ break; ++ ++ case AUFS_CTL_WBR_FD: ++ err = au_wbr_fd(&file->f_path, (void __user *)arg); ++ break; ++ ++ default: ++ /* do not call the lower */ ++ AuDbg("0x%x\n", cmd); ++ err = -ENOTTY; ++ } ++ ++ AuTraceErr(err); ++ return err; ++} ++ ++#ifdef CONFIG_COMPAT ++long aufs_compat_ioctl_dir(struct file *file, unsigned int cmd, ++ unsigned long arg) ++{ ++ long err; ++ ++ switch (cmd) { ++ case AUFS_CTL_RDU: ++ case AUFS_CTL_RDU_INO: ++ err = au_rdu_compat_ioctl(file, cmd, arg); ++ break; ++ ++ case AUFS_CTL_IBUSY: ++ err = au_ibusy_compat_ioctl(file, arg); ++ break; ++ ++ case AUFS_CTL_BRINFO: ++ err = au_brinfo_compat_ioctl(file, arg); ++ break; ++ ++ default: ++ err = aufs_ioctl_dir(file, cmd, arg); ++ } ++ ++ AuTraceErr(err); ++ return err; ++} ++ ++long aufs_compat_ioctl_nondir(struct file *file, unsigned int cmd, ++ unsigned long arg) ++{ ++ return aufs_ioctl_nondir(file, cmd, (unsigned long)compat_ptr(arg)); ++} ++#endif +diff -Naur null/fs/aufs/i_op_add.c linux-4.15/fs/aufs/i_op_add.c +--- /dev/null ++++ linux-4.15/fs/aufs/i_op_add.c 2018-02-25 02:38:09.202737899 +0100 +@@ -0,0 +1,920 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * inode operations (add entry) ++ */ ++ ++#include "aufs.h" ++ ++/* ++ * final procedure of adding a new entry, except link(2). ++ * remove whiteout, instantiate, copyup the parent dir's times and size ++ * and update version. ++ * if it failed, re-create the removed whiteout. ++ */ ++static int epilog(struct inode *dir, aufs_bindex_t bindex, ++ struct dentry *wh_dentry, struct dentry *dentry) ++{ ++ int err, rerr; ++ aufs_bindex_t bwh; ++ struct path h_path; ++ struct super_block *sb; ++ struct inode *inode, *h_dir; ++ struct dentry *wh; ++ ++ bwh = -1; ++ sb = dir->i_sb; ++ if (wh_dentry) { ++ h_dir = d_inode(wh_dentry->d_parent); /* dir inode is locked */ ++ IMustLock(h_dir); ++ AuDebugOn(au_h_iptr(dir, bindex) != h_dir); ++ bwh = au_dbwh(dentry); ++ h_path.dentry = wh_dentry; ++ h_path.mnt = au_sbr_mnt(sb, bindex); ++ err = au_wh_unlink_dentry(au_h_iptr(dir, bindex), &h_path, ++ dentry); ++ if (unlikely(err)) ++ goto out; ++ } ++ ++ inode = au_new_inode(dentry, /*must_new*/1); ++ if (!IS_ERR(inode)) { ++ d_instantiate(dentry, inode); ++ dir = d_inode(dentry->d_parent); /* dir inode is locked */ ++ IMustLock(dir); ++ au_dir_ts(dir, bindex); ++ dir->i_version++; ++ au_fhsm_wrote(sb, bindex, /*force*/0); ++ return 0; /* success */ ++ } ++ ++ err = PTR_ERR(inode); ++ if (!wh_dentry) ++ goto out; ++ ++ /* revert */ ++ /* dir inode is locked */ ++ wh = au_wh_create(dentry, bwh, wh_dentry->d_parent); ++ rerr = PTR_ERR(wh); ++ if (IS_ERR(wh)) { ++ AuIOErr("%pd reverting whiteout failed(%d, %d)\n", ++ dentry, err, rerr); ++ err = -EIO; ++ } else ++ dput(wh); ++ ++out: ++ return err; ++} ++ ++static int au_d_may_add(struct dentry *dentry) ++{ ++ int err; ++ ++ err = 0; ++ if (unlikely(d_unhashed(dentry))) ++ err = -ENOENT; ++ if (unlikely(d_really_is_positive(dentry))) ++ err = -EEXIST; ++ return err; ++} ++ ++/* ++ * simple tests for the adding inode operations. ++ * following the checks in vfs, plus the parent-child relationship. ++ */ ++int au_may_add(struct dentry *dentry, aufs_bindex_t bindex, ++ struct dentry *h_parent, int isdir) ++{ ++ int err; ++ umode_t h_mode; ++ struct dentry *h_dentry; ++ struct inode *h_inode; ++ ++ err = -ENAMETOOLONG; ++ if (unlikely(dentry->d_name.len > AUFS_MAX_NAMELEN)) ++ goto out; ++ ++ h_dentry = au_h_dptr(dentry, bindex); ++ if (d_really_is_negative(dentry)) { ++ err = -EEXIST; ++ if (unlikely(d_is_positive(h_dentry))) ++ goto out; ++ } else { ++ /* rename(2) case */ ++ err = -EIO; ++ if (unlikely(d_is_negative(h_dentry))) ++ goto out; ++ h_inode = d_inode(h_dentry); ++ if (unlikely(!h_inode->i_nlink)) ++ goto out; ++ ++ h_mode = h_inode->i_mode; ++ if (!isdir) { ++ err = -EISDIR; ++ if (unlikely(S_ISDIR(h_mode))) ++ goto out; ++ } else if (unlikely(!S_ISDIR(h_mode))) { ++ err = -ENOTDIR; ++ goto out; ++ } ++ } ++ ++ err = 0; ++ /* expected parent dir is locked */ ++ if (unlikely(h_parent != h_dentry->d_parent)) ++ err = -EIO; ++ ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++/* ++ * initial procedure of adding a new entry. ++ * prepare writable branch and the parent dir, lock it, ++ * and lookup whiteout for the new entry. ++ */ ++static struct dentry* ++lock_hdir_lkup_wh(struct dentry *dentry, struct au_dtime *dt, ++ struct dentry *src_dentry, struct au_pin *pin, ++ struct au_wr_dir_args *wr_dir_args) ++{ ++ struct dentry *wh_dentry, *h_parent; ++ struct super_block *sb; ++ struct au_branch *br; ++ int err; ++ unsigned int udba; ++ aufs_bindex_t bcpup; ++ ++ AuDbg("%pd\n", dentry); ++ ++ err = au_wr_dir(dentry, src_dentry, wr_dir_args); ++ bcpup = err; ++ wh_dentry = ERR_PTR(err); ++ if (unlikely(err < 0)) ++ goto out; ++ ++ sb = dentry->d_sb; ++ udba = au_opt_udba(sb); ++ err = au_pin(pin, dentry, bcpup, udba, ++ AuPin_DI_LOCKED | AuPin_MNT_WRITE); ++ wh_dentry = ERR_PTR(err); ++ if (unlikely(err)) ++ goto out; ++ ++ h_parent = au_pinned_h_parent(pin); ++ if (udba != AuOpt_UDBA_NONE ++ && au_dbtop(dentry) == bcpup) ++ err = au_may_add(dentry, bcpup, h_parent, ++ au_ftest_wrdir(wr_dir_args->flags, ISDIR)); ++ else if (unlikely(dentry->d_name.len > AUFS_MAX_NAMELEN)) ++ err = -ENAMETOOLONG; ++ wh_dentry = ERR_PTR(err); ++ if (unlikely(err)) ++ goto out_unpin; ++ ++ br = au_sbr(sb, bcpup); ++ if (dt) { ++ struct path tmp = { ++ .dentry = h_parent, ++ .mnt = au_br_mnt(br) ++ }; ++ au_dtime_store(dt, au_pinned_parent(pin), &tmp); ++ } ++ ++ wh_dentry = NULL; ++ if (bcpup != au_dbwh(dentry)) ++ goto out; /* success */ ++ ++ /* ++ * ENAMETOOLONG here means that if we allowed create such name, then it ++ * would not be able to removed in the future. So we don't allow such ++ * name here and we don't handle ENAMETOOLONG differently here. ++ */ ++ wh_dentry = au_wh_lkup(h_parent, &dentry->d_name, br); ++ ++out_unpin: ++ if (IS_ERR(wh_dentry)) ++ au_unpin(pin); ++out: ++ return wh_dentry; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++enum { Mknod, Symlink, Creat }; ++struct simple_arg { ++ int type; ++ union { ++ struct { ++ umode_t mode; ++ bool want_excl; ++ bool try_aopen; ++ struct vfsub_aopen_args *aopen; ++ } c; ++ struct { ++ const char *symname; ++ } s; ++ struct { ++ umode_t mode; ++ dev_t dev; ++ } m; ++ } u; ++}; ++ ++static int add_simple(struct inode *dir, struct dentry *dentry, ++ struct simple_arg *arg) ++{ ++ int err, rerr; ++ aufs_bindex_t btop; ++ unsigned char created; ++ const unsigned char try_aopen ++ = (arg->type == Creat && arg->u.c.try_aopen); ++ struct dentry *wh_dentry, *parent; ++ struct inode *h_dir; ++ struct super_block *sb; ++ struct au_branch *br; ++ /* to reuduce stack size */ ++ struct { ++ struct au_dtime dt; ++ struct au_pin pin; ++ struct path h_path; ++ struct au_wr_dir_args wr_dir_args; ++ } *a; ++ ++ AuDbg("%pd\n", dentry); ++ IMustLock(dir); ++ ++ err = -ENOMEM; ++ a = kmalloc(sizeof(*a), GFP_NOFS); ++ if (unlikely(!a)) ++ goto out; ++ a->wr_dir_args.force_btgt = -1; ++ a->wr_dir_args.flags = AuWrDir_ADD_ENTRY; ++ ++ parent = dentry->d_parent; /* dir inode is locked */ ++ if (!try_aopen) { ++ err = aufs_read_lock(dentry, AuLock_DW | AuLock_GEN); ++ if (unlikely(err)) ++ goto out_free; ++ } ++ err = au_d_may_add(dentry); ++ if (unlikely(err)) ++ goto out_unlock; ++ if (!try_aopen) ++ di_write_lock_parent(parent); ++ wh_dentry = lock_hdir_lkup_wh(dentry, &a->dt, /*src_dentry*/NULL, ++ &a->pin, &a->wr_dir_args); ++ err = PTR_ERR(wh_dentry); ++ if (IS_ERR(wh_dentry)) ++ goto out_parent; ++ ++ btop = au_dbtop(dentry); ++ sb = dentry->d_sb; ++ br = au_sbr(sb, btop); ++ a->h_path.dentry = au_h_dptr(dentry, btop); ++ a->h_path.mnt = au_br_mnt(br); ++ h_dir = au_pinned_h_dir(&a->pin); ++ switch (arg->type) { ++ case Creat: ++ err = 0; ++ if (!try_aopen || !h_dir->i_op->atomic_open) ++ err = vfsub_create(h_dir, &a->h_path, arg->u.c.mode, ++ arg->u.c.want_excl); ++ else ++ err = vfsub_atomic_open(h_dir, a->h_path.dentry, ++ arg->u.c.aopen, br); ++ break; ++ case Symlink: ++ err = vfsub_symlink(h_dir, &a->h_path, arg->u.s.symname); ++ break; ++ case Mknod: ++ err = vfsub_mknod(h_dir, &a->h_path, arg->u.m.mode, ++ arg->u.m.dev); ++ break; ++ default: ++ BUG(); ++ } ++ created = !err; ++ if (!err) ++ err = epilog(dir, btop, wh_dentry, dentry); ++ ++ /* revert */ ++ if (unlikely(created && err && d_is_positive(a->h_path.dentry))) { ++ /* no delegation since it is just created */ ++ rerr = vfsub_unlink(h_dir, &a->h_path, /*delegated*/NULL, ++ /*force*/0); ++ if (rerr) { ++ AuIOErr("%pd revert failure(%d, %d)\n", ++ dentry, err, rerr); ++ err = -EIO; ++ } ++ au_dtime_revert(&a->dt); ++ } ++ ++ if (!err && try_aopen && !h_dir->i_op->atomic_open) ++ *arg->u.c.aopen->opened |= FILE_CREATED; ++ ++ au_unpin(&a->pin); ++ dput(wh_dentry); ++ ++out_parent: ++ if (!try_aopen) ++ di_write_unlock(parent); ++out_unlock: ++ if (unlikely(err)) { ++ au_update_dbtop(dentry); ++ d_drop(dentry); ++ } ++ if (!try_aopen) ++ aufs_read_unlock(dentry, AuLock_DW); ++out_free: ++ kfree(a); ++out: ++ return err; ++} ++ ++int aufs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, ++ dev_t dev) ++{ ++ struct simple_arg arg = { ++ .type = Mknod, ++ .u.m = { ++ .mode = mode, ++ .dev = dev ++ } ++ }; ++ return add_simple(dir, dentry, &arg); ++} ++ ++int aufs_symlink(struct inode *dir, struct dentry *dentry, const char *symname) ++{ ++ struct simple_arg arg = { ++ .type = Symlink, ++ .u.s.symname = symname ++ }; ++ return add_simple(dir, dentry, &arg); ++} ++ ++int aufs_create(struct inode *dir, struct dentry *dentry, umode_t mode, ++ bool want_excl) ++{ ++ struct simple_arg arg = { ++ .type = Creat, ++ .u.c = { ++ .mode = mode, ++ .want_excl = want_excl ++ } ++ }; ++ return add_simple(dir, dentry, &arg); ++} ++ ++int au_aopen_or_create(struct inode *dir, struct dentry *dentry, ++ struct vfsub_aopen_args *aopen_args) ++{ ++ struct simple_arg arg = { ++ .type = Creat, ++ .u.c = { ++ .mode = aopen_args->create_mode, ++ .want_excl = aopen_args->open_flag & O_EXCL, ++ .try_aopen = true, ++ .aopen = aopen_args ++ } ++ }; ++ return add_simple(dir, dentry, &arg); ++} ++ ++int aufs_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode) ++{ ++ int err; ++ aufs_bindex_t bindex; ++ struct super_block *sb; ++ struct dentry *parent, *h_parent, *h_dentry; ++ struct inode *h_dir, *inode; ++ struct vfsmount *h_mnt; ++ struct au_wr_dir_args wr_dir_args = { ++ .force_btgt = -1, ++ .flags = AuWrDir_TMPFILE ++ }; ++ ++ /* copy-up may happen */ ++ inode_lock(dir); ++ ++ sb = dir->i_sb; ++ err = si_read_lock(sb, AuLock_FLUSH | AuLock_NOPLM); ++ if (unlikely(err)) ++ goto out; ++ ++ err = au_di_init(dentry); ++ if (unlikely(err)) ++ goto out_si; ++ ++ err = -EBUSY; ++ parent = d_find_any_alias(dir); ++ AuDebugOn(!parent); ++ di_write_lock_parent(parent); ++ if (unlikely(d_inode(parent) != dir)) ++ goto out_parent; ++ ++ err = au_digen_test(parent, au_sigen(sb)); ++ if (unlikely(err)) ++ goto out_parent; ++ ++ bindex = au_dbtop(parent); ++ au_set_dbtop(dentry, bindex); ++ au_set_dbbot(dentry, bindex); ++ err = au_wr_dir(dentry, /*src_dentry*/NULL, &wr_dir_args); ++ bindex = err; ++ if (unlikely(err < 0)) ++ goto out_parent; ++ ++ err = -EOPNOTSUPP; ++ h_dir = au_h_iptr(dir, bindex); ++ if (unlikely(!h_dir->i_op->tmpfile)) ++ goto out_parent; ++ ++ h_mnt = au_sbr_mnt(sb, bindex); ++ err = vfsub_mnt_want_write(h_mnt); ++ if (unlikely(err)) ++ goto out_parent; ++ ++ h_parent = au_h_dptr(parent, bindex); ++ h_dentry = vfs_tmpfile(h_parent, mode, /*open_flag*/0); ++ if (IS_ERR(h_dentry)) { ++ err = PTR_ERR(h_dentry); ++ goto out_mnt; ++ } ++ ++ au_set_dbtop(dentry, bindex); ++ au_set_dbbot(dentry, bindex); ++ au_set_h_dptr(dentry, bindex, dget(h_dentry)); ++ inode = au_new_inode(dentry, /*must_new*/1); ++ if (IS_ERR(inode)) { ++ err = PTR_ERR(inode); ++ au_set_h_dptr(dentry, bindex, NULL); ++ au_set_dbtop(dentry, -1); ++ au_set_dbbot(dentry, -1); ++ } else { ++ if (!inode->i_nlink) ++ set_nlink(inode, 1); ++ d_tmpfile(dentry, inode); ++ au_di(dentry)->di_tmpfile = 1; ++ ++ /* update without i_mutex */ ++ if (au_ibtop(dir) == au_dbtop(dentry)) ++ au_cpup_attr_timesizes(dir); ++ } ++ dput(h_dentry); ++ ++out_mnt: ++ vfsub_mnt_drop_write(h_mnt); ++out_parent: ++ di_write_unlock(parent); ++ dput(parent); ++ di_write_unlock(dentry); ++ if (unlikely(err)) { ++ au_di_fin(dentry); ++ dentry->d_fsdata = NULL; ++ } ++out_si: ++ si_read_unlock(sb); ++out: ++ inode_unlock(dir); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++struct au_link_args { ++ aufs_bindex_t bdst, bsrc; ++ struct au_pin pin; ++ struct path h_path; ++ struct dentry *src_parent, *parent; ++}; ++ ++static int au_cpup_before_link(struct dentry *src_dentry, ++ struct au_link_args *a) ++{ ++ int err; ++ struct dentry *h_src_dentry; ++ struct au_cp_generic cpg = { ++ .dentry = src_dentry, ++ .bdst = a->bdst, ++ .bsrc = a->bsrc, ++ .len = -1, ++ .pin = &a->pin, ++ .flags = AuCpup_DTIME | AuCpup_HOPEN /* | AuCpup_KEEPLINO */ ++ }; ++ ++ di_read_lock_parent(a->src_parent, AuLock_IR); ++ err = au_test_and_cpup_dirs(src_dentry, a->bdst); ++ if (unlikely(err)) ++ goto out; ++ ++ h_src_dentry = au_h_dptr(src_dentry, a->bsrc); ++ err = au_pin(&a->pin, src_dentry, a->bdst, ++ au_opt_udba(src_dentry->d_sb), ++ AuPin_DI_LOCKED | AuPin_MNT_WRITE); ++ if (unlikely(err)) ++ goto out; ++ ++ err = au_sio_cpup_simple(&cpg); ++ au_unpin(&a->pin); ++ ++out: ++ di_read_unlock(a->src_parent, AuLock_IR); ++ return err; ++} ++ ++static int au_cpup_or_link(struct dentry *src_dentry, struct dentry *dentry, ++ struct au_link_args *a) ++{ ++ int err; ++ unsigned char plink; ++ aufs_bindex_t bbot; ++ struct dentry *h_src_dentry; ++ struct inode *h_inode, *inode, *delegated; ++ struct super_block *sb; ++ struct file *h_file; ++ ++ plink = 0; ++ h_inode = NULL; ++ sb = src_dentry->d_sb; ++ inode = d_inode(src_dentry); ++ if (au_ibtop(inode) <= a->bdst) ++ h_inode = au_h_iptr(inode, a->bdst); ++ if (!h_inode || !h_inode->i_nlink) { ++ /* copyup src_dentry as the name of dentry. */ ++ bbot = au_dbbot(dentry); ++ if (bbot < a->bsrc) ++ au_set_dbbot(dentry, a->bsrc); ++ au_set_h_dptr(dentry, a->bsrc, ++ dget(au_h_dptr(src_dentry, a->bsrc))); ++ dget(a->h_path.dentry); ++ au_set_h_dptr(dentry, a->bdst, NULL); ++ AuDbg("temporary d_inode...\n"); ++ spin_lock(&dentry->d_lock); ++ dentry->d_inode = d_inode(src_dentry); /* tmp */ ++ spin_unlock(&dentry->d_lock); ++ h_file = au_h_open_pre(dentry, a->bsrc, /*force_wr*/0); ++ if (IS_ERR(h_file)) ++ err = PTR_ERR(h_file); ++ else { ++ struct au_cp_generic cpg = { ++ .dentry = dentry, ++ .bdst = a->bdst, ++ .bsrc = -1, ++ .len = -1, ++ .pin = &a->pin, ++ .flags = AuCpup_KEEPLINO ++ }; ++ err = au_sio_cpup_simple(&cpg); ++ au_h_open_post(dentry, a->bsrc, h_file); ++ if (!err) { ++ dput(a->h_path.dentry); ++ a->h_path.dentry = au_h_dptr(dentry, a->bdst); ++ } else ++ au_set_h_dptr(dentry, a->bdst, ++ a->h_path.dentry); ++ } ++ spin_lock(&dentry->d_lock); ++ dentry->d_inode = NULL; /* restore */ ++ spin_unlock(&dentry->d_lock); ++ AuDbg("temporary d_inode...done\n"); ++ au_set_h_dptr(dentry, a->bsrc, NULL); ++ au_set_dbbot(dentry, bbot); ++ } else { ++ /* the inode of src_dentry already exists on a.bdst branch */ ++ h_src_dentry = d_find_alias(h_inode); ++ if (!h_src_dentry && au_plink_test(inode)) { ++ plink = 1; ++ h_src_dentry = au_plink_lkup(inode, a->bdst); ++ err = PTR_ERR(h_src_dentry); ++ if (IS_ERR(h_src_dentry)) ++ goto out; ++ ++ if (unlikely(d_is_negative(h_src_dentry))) { ++ dput(h_src_dentry); ++ h_src_dentry = NULL; ++ } ++ ++ } ++ if (h_src_dentry) { ++ delegated = NULL; ++ err = vfsub_link(h_src_dentry, au_pinned_h_dir(&a->pin), ++ &a->h_path, &delegated); ++ if (unlikely(err == -EWOULDBLOCK)) { ++ pr_warn("cannot retry for NFSv4 delegation" ++ " for an internal link\n"); ++ iput(delegated); ++ } ++ dput(h_src_dentry); ++ } else { ++ AuIOErr("no dentry found for hi%lu on b%d\n", ++ h_inode->i_ino, a->bdst); ++ err = -EIO; ++ } ++ } ++ ++ if (!err && !plink) ++ au_plink_append(inode, a->bdst, a->h_path.dentry); ++ ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++int aufs_link(struct dentry *src_dentry, struct inode *dir, ++ struct dentry *dentry) ++{ ++ int err, rerr; ++ struct au_dtime dt; ++ struct au_link_args *a; ++ struct dentry *wh_dentry, *h_src_dentry; ++ struct inode *inode, *delegated; ++ struct super_block *sb; ++ struct au_wr_dir_args wr_dir_args = { ++ /* .force_btgt = -1, */ ++ .flags = AuWrDir_ADD_ENTRY ++ }; ++ ++ IMustLock(dir); ++ inode = d_inode(src_dentry); ++ IMustLock(inode); ++ ++ err = -ENOMEM; ++ a = kzalloc(sizeof(*a), GFP_NOFS); ++ if (unlikely(!a)) ++ goto out; ++ ++ a->parent = dentry->d_parent; /* dir inode is locked */ ++ err = aufs_read_and_write_lock2(dentry, src_dentry, ++ AuLock_NOPLM | AuLock_GEN); ++ if (unlikely(err)) ++ goto out_kfree; ++ err = au_d_linkable(src_dentry); ++ if (unlikely(err)) ++ goto out_unlock; ++ err = au_d_may_add(dentry); ++ if (unlikely(err)) ++ goto out_unlock; ++ ++ a->src_parent = dget_parent(src_dentry); ++ wr_dir_args.force_btgt = au_ibtop(inode); ++ ++ di_write_lock_parent(a->parent); ++ wr_dir_args.force_btgt = au_wbr(dentry, wr_dir_args.force_btgt); ++ wh_dentry = lock_hdir_lkup_wh(dentry, &dt, src_dentry, &a->pin, ++ &wr_dir_args); ++ err = PTR_ERR(wh_dentry); ++ if (IS_ERR(wh_dentry)) ++ goto out_parent; ++ ++ err = 0; ++ sb = dentry->d_sb; ++ a->bdst = au_dbtop(dentry); ++ a->h_path.dentry = au_h_dptr(dentry, a->bdst); ++ a->h_path.mnt = au_sbr_mnt(sb, a->bdst); ++ a->bsrc = au_ibtop(inode); ++ h_src_dentry = au_h_d_alias(src_dentry, a->bsrc); ++ if (!h_src_dentry && au_di(src_dentry)->di_tmpfile) ++ h_src_dentry = dget(au_hi_wh(inode, a->bsrc)); ++ if (!h_src_dentry) { ++ a->bsrc = au_dbtop(src_dentry); ++ h_src_dentry = au_h_d_alias(src_dentry, a->bsrc); ++ AuDebugOn(!h_src_dentry); ++ } else if (IS_ERR(h_src_dentry)) { ++ err = PTR_ERR(h_src_dentry); ++ goto out_parent; ++ } ++ ++ /* ++ * aufs doesn't touch the credential so ++ * security_dentry_create_files_as() is unnecrssary. ++ */ ++ if (au_opt_test(au_mntflags(sb), PLINK)) { ++ if (a->bdst < a->bsrc ++ /* && h_src_dentry->d_sb != a->h_path.dentry->d_sb */) ++ err = au_cpup_or_link(src_dentry, dentry, a); ++ else { ++ delegated = NULL; ++ err = vfsub_link(h_src_dentry, au_pinned_h_dir(&a->pin), ++ &a->h_path, &delegated); ++ if (unlikely(err == -EWOULDBLOCK)) { ++ pr_warn("cannot retry for NFSv4 delegation" ++ " for an internal link\n"); ++ iput(delegated); ++ } ++ } ++ dput(h_src_dentry); ++ } else { ++ /* ++ * copyup src_dentry to the branch we process, ++ * and then link(2) to it. ++ */ ++ dput(h_src_dentry); ++ if (a->bdst < a->bsrc ++ /* && h_src_dentry->d_sb != a->h_path.dentry->d_sb */) { ++ au_unpin(&a->pin); ++ di_write_unlock(a->parent); ++ err = au_cpup_before_link(src_dentry, a); ++ di_write_lock_parent(a->parent); ++ if (!err) ++ err = au_pin(&a->pin, dentry, a->bdst, ++ au_opt_udba(sb), ++ AuPin_DI_LOCKED | AuPin_MNT_WRITE); ++ if (unlikely(err)) ++ goto out_wh; ++ } ++ if (!err) { ++ h_src_dentry = au_h_dptr(src_dentry, a->bdst); ++ err = -ENOENT; ++ if (h_src_dentry && d_is_positive(h_src_dentry)) { ++ delegated = NULL; ++ err = vfsub_link(h_src_dentry, ++ au_pinned_h_dir(&a->pin), ++ &a->h_path, &delegated); ++ if (unlikely(err == -EWOULDBLOCK)) { ++ pr_warn("cannot retry" ++ " for NFSv4 delegation" ++ " for an internal link\n"); ++ iput(delegated); ++ } ++ } ++ } ++ } ++ if (unlikely(err)) ++ goto out_unpin; ++ ++ if (wh_dentry) { ++ a->h_path.dentry = wh_dentry; ++ err = au_wh_unlink_dentry(au_pinned_h_dir(&a->pin), &a->h_path, ++ dentry); ++ if (unlikely(err)) ++ goto out_revert; ++ } ++ ++ au_dir_ts(dir, a->bdst); ++ dir->i_version++; ++ inc_nlink(inode); ++ inode->i_ctime = dir->i_ctime; ++ d_instantiate(dentry, au_igrab(inode)); ++ if (d_unhashed(a->h_path.dentry)) ++ /* some filesystem calls d_drop() */ ++ d_drop(dentry); ++ /* some filesystems consume an inode even hardlink */ ++ au_fhsm_wrote(sb, a->bdst, /*force*/0); ++ goto out_unpin; /* success */ ++ ++out_revert: ++ /* no delegation since it is just created */ ++ rerr = vfsub_unlink(au_pinned_h_dir(&a->pin), &a->h_path, ++ /*delegated*/NULL, /*force*/0); ++ if (unlikely(rerr)) { ++ AuIOErr("%pd reverting failed(%d, %d)\n", dentry, err, rerr); ++ err = -EIO; ++ } ++ au_dtime_revert(&dt); ++out_unpin: ++ au_unpin(&a->pin); ++out_wh: ++ dput(wh_dentry); ++out_parent: ++ di_write_unlock(a->parent); ++ dput(a->src_parent); ++out_unlock: ++ if (unlikely(err)) { ++ au_update_dbtop(dentry); ++ d_drop(dentry); ++ } ++ aufs_read_and_write_unlock2(dentry, src_dentry); ++out_kfree: ++ kfree(a); ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++int aufs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) ++{ ++ int err, rerr; ++ aufs_bindex_t bindex; ++ unsigned char diropq; ++ struct path h_path; ++ struct dentry *wh_dentry, *parent, *opq_dentry; ++ struct inode *h_inode; ++ struct super_block *sb; ++ struct { ++ struct au_pin pin; ++ struct au_dtime dt; ++ } *a; /* reduce the stack usage */ ++ struct au_wr_dir_args wr_dir_args = { ++ .force_btgt = -1, ++ .flags = AuWrDir_ADD_ENTRY | AuWrDir_ISDIR ++ }; ++ ++ IMustLock(dir); ++ ++ err = -ENOMEM; ++ a = kmalloc(sizeof(*a), GFP_NOFS); ++ if (unlikely(!a)) ++ goto out; ++ ++ err = aufs_read_lock(dentry, AuLock_DW | AuLock_GEN); ++ if (unlikely(err)) ++ goto out_free; ++ err = au_d_may_add(dentry); ++ if (unlikely(err)) ++ goto out_unlock; ++ ++ parent = dentry->d_parent; /* dir inode is locked */ ++ di_write_lock_parent(parent); ++ wh_dentry = lock_hdir_lkup_wh(dentry, &a->dt, /*src_dentry*/NULL, ++ &a->pin, &wr_dir_args); ++ err = PTR_ERR(wh_dentry); ++ if (IS_ERR(wh_dentry)) ++ goto out_parent; ++ ++ sb = dentry->d_sb; ++ bindex = au_dbtop(dentry); ++ h_path.dentry = au_h_dptr(dentry, bindex); ++ h_path.mnt = au_sbr_mnt(sb, bindex); ++ err = vfsub_mkdir(au_pinned_h_dir(&a->pin), &h_path, mode); ++ if (unlikely(err)) ++ goto out_unpin; ++ ++ /* make the dir opaque */ ++ diropq = 0; ++ h_inode = d_inode(h_path.dentry); ++ if (wh_dentry ++ || au_opt_test(au_mntflags(sb), ALWAYS_DIROPQ)) { ++ inode_lock_nested(h_inode, AuLsc_I_CHILD); ++ opq_dentry = au_diropq_create(dentry, bindex); ++ inode_unlock(h_inode); ++ err = PTR_ERR(opq_dentry); ++ if (IS_ERR(opq_dentry)) ++ goto out_dir; ++ dput(opq_dentry); ++ diropq = 1; ++ } ++ ++ err = epilog(dir, bindex, wh_dentry, dentry); ++ if (!err) { ++ inc_nlink(dir); ++ goto out_unpin; /* success */ ++ } ++ ++ /* revert */ ++ if (diropq) { ++ AuLabel(revert opq); ++ inode_lock_nested(h_inode, AuLsc_I_CHILD); ++ rerr = au_diropq_remove(dentry, bindex); ++ inode_unlock(h_inode); ++ if (rerr) { ++ AuIOErr("%pd reverting diropq failed(%d, %d)\n", ++ dentry, err, rerr); ++ err = -EIO; ++ } ++ } ++ ++out_dir: ++ AuLabel(revert dir); ++ rerr = vfsub_rmdir(au_pinned_h_dir(&a->pin), &h_path); ++ if (rerr) { ++ AuIOErr("%pd reverting dir failed(%d, %d)\n", ++ dentry, err, rerr); ++ err = -EIO; ++ } ++ au_dtime_revert(&a->dt); ++out_unpin: ++ au_unpin(&a->pin); ++ dput(wh_dentry); ++out_parent: ++ di_write_unlock(parent); ++out_unlock: ++ if (unlikely(err)) { ++ au_update_dbtop(dentry); ++ d_drop(dentry); ++ } ++ aufs_read_unlock(dentry, AuLock_DW); ++out_free: ++ kfree(a); ++out: ++ return err; ++} +diff -Naur null/fs/aufs/i_op.c linux-4.15/fs/aufs/i_op.c +--- /dev/null ++++ linux-4.15/fs/aufs/i_op.c 2018-02-25 02:38:09.202737899 +0100 +@@ -0,0 +1,1459 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * inode operations (except add/del/rename) ++ */ ++ ++#include ++#include ++#include ++#include ++#include "aufs.h" ++ ++static int h_permission(struct inode *h_inode, int mask, ++ struct path *h_path, int brperm) ++{ ++ int err; ++ const unsigned char write_mask = !!(mask & (MAY_WRITE | MAY_APPEND)); ++ ++ err = -EPERM; ++ if (write_mask && IS_IMMUTABLE(h_inode)) ++ goto out; ++ ++ err = -EACCES; ++ if (((mask & MAY_EXEC) ++ && S_ISREG(h_inode->i_mode) ++ && (path_noexec(h_path) ++ || !(h_inode->i_mode & S_IXUGO)))) ++ goto out; ++ ++ /* ++ * - skip the lower fs test in the case of write to ro branch. ++ * - nfs dir permission write check is optimized, but a policy for ++ * link/rename requires a real check. ++ * - nfs always sets SB_POSIXACL regardless its mount option 'noacl.' ++ * in this case, generic_permission() returns -EOPNOTSUPP. ++ */ ++ if ((write_mask && !au_br_writable(brperm)) ++ || (au_test_nfs(h_inode->i_sb) && S_ISDIR(h_inode->i_mode) ++ && write_mask && !(mask & MAY_READ)) ++ || !h_inode->i_op->permission) { ++ /* AuLabel(generic_permission); */ ++ /* AuDbg("get_acl %pf\n", h_inode->i_op->get_acl); */ ++ err = generic_permission(h_inode, mask); ++ if (err == -EOPNOTSUPP && au_test_nfs_noacl(h_inode)) ++ err = h_inode->i_op->permission(h_inode, mask); ++ AuTraceErr(err); ++ } else { ++ /* AuLabel(h_inode->permission); */ ++ err = h_inode->i_op->permission(h_inode, mask); ++ AuTraceErr(err); ++ } ++ ++ if (!err) ++ err = devcgroup_inode_permission(h_inode, mask); ++ if (!err) ++ err = security_inode_permission(h_inode, mask); ++ ++#if 0 ++ if (!err) { ++ /* todo: do we need to call ima_path_check()? */ ++ struct path h_path = { ++ .dentry = ++ .mnt = h_mnt ++ }; ++ err = ima_path_check(&h_path, ++ mask & (MAY_READ | MAY_WRITE | MAY_EXEC), ++ IMA_COUNT_LEAVE); ++ } ++#endif ++ ++out: ++ return err; ++} ++ ++static int aufs_permission(struct inode *inode, int mask) ++{ ++ int err; ++ aufs_bindex_t bindex, bbot; ++ const unsigned char isdir = !!S_ISDIR(inode->i_mode), ++ write_mask = !!(mask & (MAY_WRITE | MAY_APPEND)); ++ struct inode *h_inode; ++ struct super_block *sb; ++ struct au_branch *br; ++ ++ /* todo: support rcu-walk? */ ++ if (mask & MAY_NOT_BLOCK) ++ return -ECHILD; ++ ++ sb = inode->i_sb; ++ si_read_lock(sb, AuLock_FLUSH); ++ ii_read_lock_child(inode); ++#if 0 ++ err = au_iigen_test(inode, au_sigen(sb)); ++ if (unlikely(err)) ++ goto out; ++#endif ++ ++ if (!isdir ++ || write_mask ++ || au_opt_test(au_mntflags(sb), DIRPERM1)) { ++ err = au_busy_or_stale(); ++ h_inode = au_h_iptr(inode, au_ibtop(inode)); ++ if (unlikely(!h_inode ++ || (h_inode->i_mode & S_IFMT) ++ != (inode->i_mode & S_IFMT))) ++ goto out; ++ ++ err = 0; ++ bindex = au_ibtop(inode); ++ br = au_sbr(sb, bindex); ++ err = h_permission(h_inode, mask, &br->br_path, br->br_perm); ++ if (write_mask ++ && !err ++ && !special_file(h_inode->i_mode)) { ++ /* test whether the upper writable branch exists */ ++ err = -EROFS; ++ for (; bindex >= 0; bindex--) ++ if (!au_br_rdonly(au_sbr(sb, bindex))) { ++ err = 0; ++ break; ++ } ++ } ++ goto out; ++ } ++ ++ /* non-write to dir */ ++ err = 0; ++ bbot = au_ibbot(inode); ++ for (bindex = au_ibtop(inode); !err && bindex <= bbot; bindex++) { ++ h_inode = au_h_iptr(inode, bindex); ++ if (h_inode) { ++ err = au_busy_or_stale(); ++ if (unlikely(!S_ISDIR(h_inode->i_mode))) ++ break; ++ ++ br = au_sbr(sb, bindex); ++ err = h_permission(h_inode, mask, &br->br_path, ++ br->br_perm); ++ } ++ } ++ ++out: ++ ii_read_unlock(inode); ++ si_read_unlock(sb); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static struct dentry *aufs_lookup(struct inode *dir, struct dentry *dentry, ++ unsigned int flags) ++{ ++ struct dentry *ret, *parent; ++ struct inode *inode; ++ struct super_block *sb; ++ int err, npositive; ++ ++ IMustLock(dir); ++ ++ /* todo: support rcu-walk? */ ++ ret = ERR_PTR(-ECHILD); ++ if (flags & LOOKUP_RCU) ++ goto out; ++ ++ ret = ERR_PTR(-ENAMETOOLONG); ++ if (unlikely(dentry->d_name.len > AUFS_MAX_NAMELEN)) ++ goto out; ++ ++ sb = dir->i_sb; ++ err = si_read_lock(sb, AuLock_FLUSH | AuLock_NOPLM); ++ ret = ERR_PTR(err); ++ if (unlikely(err)) ++ goto out; ++ ++ err = au_di_init(dentry); ++ ret = ERR_PTR(err); ++ if (unlikely(err)) ++ goto out_si; ++ ++ inode = NULL; ++ npositive = 0; /* suppress a warning */ ++ parent = dentry->d_parent; /* dir inode is locked */ ++ di_read_lock_parent(parent, AuLock_IR); ++ err = au_alive_dir(parent); ++ if (!err) ++ err = au_digen_test(parent, au_sigen(sb)); ++ if (!err) { ++ /* regardless LOOKUP_CREATE, always ALLOW_NEG */ ++ npositive = au_lkup_dentry(dentry, au_dbtop(parent), ++ AuLkup_ALLOW_NEG); ++ err = npositive; ++ } ++ di_read_unlock(parent, AuLock_IR); ++ ret = ERR_PTR(err); ++ if (unlikely(err < 0)) ++ goto out_unlock; ++ ++ if (npositive) { ++ inode = au_new_inode(dentry, /*must_new*/0); ++ if (IS_ERR(inode)) { ++ ret = (void *)inode; ++ inode = NULL; ++ goto out_unlock; ++ } ++ } ++ ++ if (inode) ++ atomic_inc(&inode->i_count); ++ ret = d_splice_alias(inode, dentry); ++#if 0 ++ if (unlikely(d_need_lookup(dentry))) { ++ spin_lock(&dentry->d_lock); ++ dentry->d_flags &= ~DCACHE_NEED_LOOKUP; ++ spin_unlock(&dentry->d_lock); ++ } else ++#endif ++ if (inode) { ++ if (!IS_ERR(ret)) { ++ iput(inode); ++ if (ret && ret != dentry) ++ ii_write_unlock(inode); ++ } else { ++ ii_write_unlock(inode); ++ iput(inode); ++ inode = NULL; ++ } ++ } ++ ++out_unlock: ++ di_write_unlock(dentry); ++out_si: ++ si_read_unlock(sb); ++out: ++ return ret; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++struct aopen_node { ++ struct hlist_bl_node hblist; ++ struct file *file, *h_file; ++}; ++ ++static int au_do_aopen(struct inode *inode, struct file *file) ++{ ++ struct hlist_bl_head *aopen; ++ struct hlist_bl_node *pos; ++ struct aopen_node *node; ++ struct au_do_open_args args = { ++ .aopen = 1, ++ .open = au_do_open_nondir ++ }; ++ ++ aopen = &au_sbi(inode->i_sb)->si_aopen; ++ hlist_bl_lock(aopen); ++ hlist_bl_for_each_entry(node, pos, aopen, hblist) ++ if (node->file == file) { ++ args.h_file = node->h_file; ++ break; ++ } ++ hlist_bl_unlock(aopen); ++ /* AuDebugOn(!args.h_file); */ ++ ++ return au_do_open(file, &args); ++} ++ ++static int aufs_atomic_open(struct inode *dir, struct dentry *dentry, ++ struct file *file, unsigned int open_flag, ++ umode_t create_mode, int *opened) ++{ ++ int err, unlocked, h_opened = *opened; ++ unsigned int lkup_flags; ++ struct dentry *parent, *d; ++ struct hlist_bl_head *aopen; ++ struct vfsub_aopen_args args = { ++ .open_flag = open_flag, ++ .create_mode = create_mode, ++ .opened = &h_opened ++ }; ++ struct aopen_node aopen_node = { ++ .file = file ++ }; ++ ++ IMustLock(dir); ++ AuDbg("open_flag 0%o\n", open_flag); ++ AuDbgDentry(dentry); ++ ++ err = 0; ++ if (!au_di(dentry)) { ++ lkup_flags = LOOKUP_OPEN; ++ if (open_flag & O_CREAT) ++ lkup_flags |= LOOKUP_CREATE; ++ d = aufs_lookup(dir, dentry, lkup_flags); ++ if (IS_ERR(d)) { ++ err = PTR_ERR(d); ++ AuTraceErr(err); ++ goto out; ++ } else if (d) { ++ /* ++ * obsoleted dentry found. ++ * another error will be returned later. ++ */ ++ d_drop(d); ++ AuDbgDentry(d); ++ dput(d); ++ } ++ AuDbgDentry(dentry); ++ } ++ ++ if (d_is_positive(dentry) ++ || d_unhashed(dentry) ++ || d_unlinked(dentry) ++ || !(open_flag & O_CREAT)) ++ goto out_no_open; ++ ++ unlocked = 0; ++ err = aufs_read_lock(dentry, AuLock_DW | AuLock_FLUSH | AuLock_GEN); ++ if (unlikely(err)) ++ goto out; ++ ++ parent = dentry->d_parent; /* dir is locked */ ++ di_write_lock_parent(parent); ++ err = au_lkup_dentry(dentry, /*btop*/0, AuLkup_ALLOW_NEG); ++ if (unlikely(err)) ++ goto out_unlock; ++ ++ AuDbgDentry(dentry); ++ if (d_is_positive(dentry)) ++ goto out_unlock; ++ ++ args.file = get_empty_filp(); ++ err = PTR_ERR(args.file); ++ if (IS_ERR(args.file)) ++ goto out_unlock; ++ ++ args.file->f_flags = file->f_flags; ++ err = au_aopen_or_create(dir, dentry, &args); ++ AuTraceErr(err); ++ AuDbgFile(args.file); ++ if (unlikely(err < 0)) { ++ if (h_opened & FILE_OPENED) ++ fput(args.file); ++ else ++ put_filp(args.file); ++ goto out_unlock; ++ } ++ di_write_unlock(parent); ++ di_write_unlock(dentry); ++ unlocked = 1; ++ ++ /* some filesystems don't set FILE_CREATED while succeeded? */ ++ *opened |= FILE_CREATED; ++ if (h_opened & FILE_OPENED) ++ aopen_node.h_file = args.file; ++ else { ++ put_filp(args.file); ++ args.file = NULL; ++ } ++ aopen = &au_sbi(dir->i_sb)->si_aopen; ++ au_hbl_add(&aopen_node.hblist, aopen); ++ err = finish_open(file, dentry, au_do_aopen, opened); ++ au_hbl_del(&aopen_node.hblist, aopen); ++ AuTraceErr(err); ++ AuDbgFile(file); ++ if (aopen_node.h_file) ++ fput(aopen_node.h_file); ++ ++out_unlock: ++ if (unlocked) ++ si_read_unlock(dentry->d_sb); ++ else { ++ di_write_unlock(parent); ++ aufs_read_unlock(dentry, AuLock_DW); ++ } ++ AuDbgDentry(dentry); ++ if (unlikely(err < 0)) ++ goto out; ++out_no_open: ++ if (err >= 0 && !(*opened & FILE_CREATED)) { ++ AuLabel(out_no_open); ++ dget(dentry); ++ err = finish_no_open(file, dentry); ++ } ++out: ++ AuDbg("%pd%s%s\n", dentry, ++ (*opened & FILE_CREATED) ? " created" : "", ++ (*opened & FILE_OPENED) ? " opened" : ""); ++ AuTraceErr(err); ++ return err; ++} ++ ++ ++/* ---------------------------------------------------------------------- */ ++ ++static int au_wr_dir_cpup(struct dentry *dentry, struct dentry *parent, ++ const unsigned char add_entry, aufs_bindex_t bcpup, ++ aufs_bindex_t btop) ++{ ++ int err; ++ struct dentry *h_parent; ++ struct inode *h_dir; ++ ++ if (add_entry) ++ IMustLock(d_inode(parent)); ++ else ++ di_write_lock_parent(parent); ++ ++ err = 0; ++ if (!au_h_dptr(parent, bcpup)) { ++ if (btop > bcpup) ++ err = au_cpup_dirs(dentry, bcpup); ++ else if (btop < bcpup) ++ err = au_cpdown_dirs(dentry, bcpup); ++ else ++ BUG(); ++ } ++ if (!err && add_entry && !au_ftest_wrdir(add_entry, TMPFILE)) { ++ h_parent = au_h_dptr(parent, bcpup); ++ h_dir = d_inode(h_parent); ++ vfsub_inode_lock_shared_nested(h_dir, AuLsc_I_PARENT); ++ err = au_lkup_neg(dentry, bcpup, /*wh*/0); ++ /* todo: no unlock here */ ++ inode_unlock_shared(h_dir); ++ ++ AuDbg("bcpup %d\n", bcpup); ++ if (!err) { ++ if (d_really_is_negative(dentry)) ++ au_set_h_dptr(dentry, btop, NULL); ++ au_update_dbrange(dentry, /*do_put_zero*/0); ++ } ++ } ++ ++ if (!add_entry) ++ di_write_unlock(parent); ++ if (!err) ++ err = bcpup; /* success */ ++ ++ AuTraceErr(err); ++ return err; ++} ++ ++/* ++ * decide the branch and the parent dir where we will create a new entry. ++ * returns new bindex or an error. ++ * copyup the parent dir if needed. ++ */ ++int au_wr_dir(struct dentry *dentry, struct dentry *src_dentry, ++ struct au_wr_dir_args *args) ++{ ++ int err; ++ unsigned int flags; ++ aufs_bindex_t bcpup, btop, src_btop; ++ const unsigned char add_entry ++ = au_ftest_wrdir(args->flags, ADD_ENTRY) ++ | au_ftest_wrdir(args->flags, TMPFILE); ++ struct super_block *sb; ++ struct dentry *parent; ++ struct au_sbinfo *sbinfo; ++ ++ sb = dentry->d_sb; ++ sbinfo = au_sbi(sb); ++ parent = dget_parent(dentry); ++ btop = au_dbtop(dentry); ++ bcpup = btop; ++ if (args->force_btgt < 0) { ++ if (src_dentry) { ++ src_btop = au_dbtop(src_dentry); ++ if (src_btop < btop) ++ bcpup = src_btop; ++ } else if (add_entry) { ++ flags = 0; ++ if (au_ftest_wrdir(args->flags, ISDIR)) ++ au_fset_wbr(flags, DIR); ++ err = AuWbrCreate(sbinfo, dentry, flags); ++ bcpup = err; ++ } ++ ++ if (bcpup < 0 || au_test_ro(sb, bcpup, d_inode(dentry))) { ++ if (add_entry) ++ err = AuWbrCopyup(sbinfo, dentry); ++ else { ++ if (!IS_ROOT(dentry)) { ++ di_read_lock_parent(parent, !AuLock_IR); ++ err = AuWbrCopyup(sbinfo, dentry); ++ di_read_unlock(parent, !AuLock_IR); ++ } else ++ err = AuWbrCopyup(sbinfo, dentry); ++ } ++ bcpup = err; ++ if (unlikely(err < 0)) ++ goto out; ++ } ++ } else { ++ bcpup = args->force_btgt; ++ AuDebugOn(au_test_ro(sb, bcpup, d_inode(dentry))); ++ } ++ ++ AuDbg("btop %d, bcpup %d\n", btop, bcpup); ++ err = bcpup; ++ if (bcpup == btop) ++ goto out; /* success */ ++ ++ /* copyup the new parent into the branch we process */ ++ err = au_wr_dir_cpup(dentry, parent, add_entry, bcpup, btop); ++ if (err >= 0) { ++ if (d_really_is_negative(dentry)) { ++ au_set_h_dptr(dentry, btop, NULL); ++ au_set_dbtop(dentry, bcpup); ++ au_set_dbbot(dentry, bcpup); ++ } ++ AuDebugOn(add_entry ++ && !au_ftest_wrdir(args->flags, TMPFILE) ++ && !au_h_dptr(dentry, bcpup)); ++ } ++ ++out: ++ dput(parent); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++void au_pin_hdir_unlock(struct au_pin *p) ++{ ++ if (p->hdir) ++ au_hn_inode_unlock(p->hdir); ++} ++ ++int au_pin_hdir_lock(struct au_pin *p) ++{ ++ int err; ++ ++ err = 0; ++ if (!p->hdir) ++ goto out; ++ ++ /* even if an error happens later, keep this lock */ ++ au_hn_inode_lock_nested(p->hdir, p->lsc_hi); ++ ++ err = -EBUSY; ++ if (unlikely(p->hdir->hi_inode != d_inode(p->h_parent))) ++ goto out; ++ ++ err = 0; ++ if (p->h_dentry) ++ err = au_h_verify(p->h_dentry, p->udba, p->hdir->hi_inode, ++ p->h_parent, p->br); ++ ++out: ++ return err; ++} ++ ++int au_pin_hdir_relock(struct au_pin *p) ++{ ++ int err, i; ++ struct inode *h_i; ++ struct dentry *h_d[] = { ++ p->h_dentry, ++ p->h_parent ++ }; ++ ++ err = au_pin_hdir_lock(p); ++ if (unlikely(err)) ++ goto out; ++ ++ for (i = 0; !err && i < sizeof(h_d)/sizeof(*h_d); i++) { ++ if (!h_d[i]) ++ continue; ++ if (d_is_positive(h_d[i])) { ++ h_i = d_inode(h_d[i]); ++ err = !h_i->i_nlink; ++ } ++ } ++ ++out: ++ return err; ++} ++ ++static void au_pin_hdir_set_owner(struct au_pin *p, struct task_struct *task) ++{ ++#if !defined(CONFIG_RWSEM_GENERIC_SPINLOCK) && defined(CONFIG_RWSEM_SPIN_ON_OWNER) ++ p->hdir->hi_inode->i_rwsem.owner = task; ++#endif ++} ++ ++void au_pin_hdir_acquire_nest(struct au_pin *p) ++{ ++ if (p->hdir) { ++ rwsem_acquire_nest(&p->hdir->hi_inode->i_rwsem.dep_map, ++ p->lsc_hi, 0, NULL, _RET_IP_); ++ au_pin_hdir_set_owner(p, current); ++ } ++} ++ ++void au_pin_hdir_release(struct au_pin *p) ++{ ++ if (p->hdir) { ++ au_pin_hdir_set_owner(p, p->task); ++ rwsem_release(&p->hdir->hi_inode->i_rwsem.dep_map, 1, _RET_IP_); ++ } ++} ++ ++struct dentry *au_pinned_h_parent(struct au_pin *pin) ++{ ++ if (pin && pin->parent) ++ return au_h_dptr(pin->parent, pin->bindex); ++ return NULL; ++} ++ ++void au_unpin(struct au_pin *p) ++{ ++ if (p->hdir) ++ au_pin_hdir_unlock(p); ++ if (p->h_mnt && au_ftest_pin(p->flags, MNT_WRITE)) ++ vfsub_mnt_drop_write(p->h_mnt); ++ if (!p->hdir) ++ return; ++ ++ if (!au_ftest_pin(p->flags, DI_LOCKED)) ++ di_read_unlock(p->parent, AuLock_IR); ++ iput(p->hdir->hi_inode); ++ dput(p->parent); ++ p->parent = NULL; ++ p->hdir = NULL; ++ p->h_mnt = NULL; ++ /* do not clear p->task */ ++} ++ ++int au_do_pin(struct au_pin *p) ++{ ++ int err; ++ struct super_block *sb; ++ struct inode *h_dir; ++ ++ err = 0; ++ sb = p->dentry->d_sb; ++ p->br = au_sbr(sb, p->bindex); ++ if (IS_ROOT(p->dentry)) { ++ if (au_ftest_pin(p->flags, MNT_WRITE)) { ++ p->h_mnt = au_br_mnt(p->br); ++ err = vfsub_mnt_want_write(p->h_mnt); ++ if (unlikely(err)) { ++ au_fclr_pin(p->flags, MNT_WRITE); ++ goto out_err; ++ } ++ } ++ goto out; ++ } ++ ++ p->h_dentry = NULL; ++ if (p->bindex <= au_dbbot(p->dentry)) ++ p->h_dentry = au_h_dptr(p->dentry, p->bindex); ++ ++ p->parent = dget_parent(p->dentry); ++ if (!au_ftest_pin(p->flags, DI_LOCKED)) ++ di_read_lock(p->parent, AuLock_IR, p->lsc_di); ++ ++ h_dir = NULL; ++ p->h_parent = au_h_dptr(p->parent, p->bindex); ++ p->hdir = au_hi(d_inode(p->parent), p->bindex); ++ if (p->hdir) ++ h_dir = p->hdir->hi_inode; ++ ++ /* ++ * udba case, or ++ * if DI_LOCKED is not set, then p->parent may be different ++ * and h_parent can be NULL. ++ */ ++ if (unlikely(!p->hdir || !h_dir || !p->h_parent)) { ++ err = -EBUSY; ++ if (!au_ftest_pin(p->flags, DI_LOCKED)) ++ di_read_unlock(p->parent, AuLock_IR); ++ dput(p->parent); ++ p->parent = NULL; ++ goto out_err; ++ } ++ ++ if (au_ftest_pin(p->flags, MNT_WRITE)) { ++ p->h_mnt = au_br_mnt(p->br); ++ err = vfsub_mnt_want_write(p->h_mnt); ++ if (unlikely(err)) { ++ au_fclr_pin(p->flags, MNT_WRITE); ++ if (!au_ftest_pin(p->flags, DI_LOCKED)) ++ di_read_unlock(p->parent, AuLock_IR); ++ dput(p->parent); ++ p->parent = NULL; ++ goto out_err; ++ } ++ } ++ ++ au_igrab(h_dir); ++ err = au_pin_hdir_lock(p); ++ if (!err) ++ goto out; /* success */ ++ ++ au_unpin(p); ++ ++out_err: ++ pr_err("err %d\n", err); ++ err = au_busy_or_stale(); ++out: ++ return err; ++} ++ ++void au_pin_init(struct au_pin *p, struct dentry *dentry, ++ aufs_bindex_t bindex, int lsc_di, int lsc_hi, ++ unsigned int udba, unsigned char flags) ++{ ++ p->dentry = dentry; ++ p->udba = udba; ++ p->lsc_di = lsc_di; ++ p->lsc_hi = lsc_hi; ++ p->flags = flags; ++ p->bindex = bindex; ++ ++ p->parent = NULL; ++ p->hdir = NULL; ++ p->h_mnt = NULL; ++ ++ p->h_dentry = NULL; ++ p->h_parent = NULL; ++ p->br = NULL; ++ p->task = current; ++} ++ ++int au_pin(struct au_pin *pin, struct dentry *dentry, aufs_bindex_t bindex, ++ unsigned int udba, unsigned char flags) ++{ ++ au_pin_init(pin, dentry, bindex, AuLsc_DI_PARENT, AuLsc_I_PARENT2, ++ udba, flags); ++ return au_do_pin(pin); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* ++ * ->setattr() and ->getattr() are called in various cases. ++ * chmod, stat: dentry is revalidated. ++ * fchmod, fstat: file and dentry are not revalidated, additionally they may be ++ * unhashed. ++ * for ->setattr(), ia->ia_file is passed from ftruncate only. ++ */ ++/* todo: consolidate with do_refresh() and simple_reval_dpath() */ ++int au_reval_for_attr(struct dentry *dentry, unsigned int sigen) ++{ ++ int err; ++ struct dentry *parent; ++ ++ err = 0; ++ if (au_digen_test(dentry, sigen)) { ++ parent = dget_parent(dentry); ++ di_read_lock_parent(parent, AuLock_IR); ++ err = au_refresh_dentry(dentry, parent); ++ di_read_unlock(parent, AuLock_IR); ++ dput(parent); ++ } ++ ++ AuTraceErr(err); ++ return err; ++} ++ ++int au_pin_and_icpup(struct dentry *dentry, struct iattr *ia, ++ struct au_icpup_args *a) ++{ ++ int err; ++ loff_t sz; ++ aufs_bindex_t btop, ibtop; ++ struct dentry *hi_wh, *parent; ++ struct inode *inode; ++ struct au_wr_dir_args wr_dir_args = { ++ .force_btgt = -1, ++ .flags = 0 ++ }; ++ ++ if (d_is_dir(dentry)) ++ au_fset_wrdir(wr_dir_args.flags, ISDIR); ++ /* plink or hi_wh() case */ ++ btop = au_dbtop(dentry); ++ inode = d_inode(dentry); ++ ibtop = au_ibtop(inode); ++ if (btop != ibtop && !au_test_ro(inode->i_sb, ibtop, inode)) ++ wr_dir_args.force_btgt = ibtop; ++ err = au_wr_dir(dentry, /*src_dentry*/NULL, &wr_dir_args); ++ if (unlikely(err < 0)) ++ goto out; ++ a->btgt = err; ++ if (err != btop) ++ au_fset_icpup(a->flags, DID_CPUP); ++ ++ err = 0; ++ a->pin_flags = AuPin_MNT_WRITE; ++ parent = NULL; ++ if (!IS_ROOT(dentry)) { ++ au_fset_pin(a->pin_flags, DI_LOCKED); ++ parent = dget_parent(dentry); ++ di_write_lock_parent(parent); ++ } ++ ++ err = au_pin(&a->pin, dentry, a->btgt, a->udba, a->pin_flags); ++ if (unlikely(err)) ++ goto out_parent; ++ ++ sz = -1; ++ a->h_path.dentry = au_h_dptr(dentry, btop); ++ a->h_inode = d_inode(a->h_path.dentry); ++ if (ia && (ia->ia_valid & ATTR_SIZE)) { ++ vfsub_inode_lock_shared_nested(a->h_inode, AuLsc_I_CHILD); ++ if (ia->ia_size < i_size_read(a->h_inode)) ++ sz = ia->ia_size; ++ inode_unlock_shared(a->h_inode); ++ } ++ ++ hi_wh = NULL; ++ if (au_ftest_icpup(a->flags, DID_CPUP) && d_unlinked(dentry)) { ++ hi_wh = au_hi_wh(inode, a->btgt); ++ if (!hi_wh) { ++ struct au_cp_generic cpg = { ++ .dentry = dentry, ++ .bdst = a->btgt, ++ .bsrc = -1, ++ .len = sz, ++ .pin = &a->pin ++ }; ++ err = au_sio_cpup_wh(&cpg, /*file*/NULL); ++ if (unlikely(err)) ++ goto out_unlock; ++ hi_wh = au_hi_wh(inode, a->btgt); ++ /* todo: revalidate hi_wh? */ ++ } ++ } ++ ++ if (parent) { ++ au_pin_set_parent_lflag(&a->pin, /*lflag*/0); ++ di_downgrade_lock(parent, AuLock_IR); ++ dput(parent); ++ parent = NULL; ++ } ++ if (!au_ftest_icpup(a->flags, DID_CPUP)) ++ goto out; /* success */ ++ ++ if (!d_unhashed(dentry)) { ++ struct au_cp_generic cpg = { ++ .dentry = dentry, ++ .bdst = a->btgt, ++ .bsrc = btop, ++ .len = sz, ++ .pin = &a->pin, ++ .flags = AuCpup_DTIME | AuCpup_HOPEN ++ }; ++ err = au_sio_cpup_simple(&cpg); ++ if (!err) ++ a->h_path.dentry = au_h_dptr(dentry, a->btgt); ++ } else if (!hi_wh) ++ a->h_path.dentry = au_h_dptr(dentry, a->btgt); ++ else ++ a->h_path.dentry = hi_wh; /* do not dget here */ ++ ++out_unlock: ++ a->h_inode = d_inode(a->h_path.dentry); ++ if (!err) ++ goto out; /* success */ ++ au_unpin(&a->pin); ++out_parent: ++ if (parent) { ++ di_write_unlock(parent); ++ dput(parent); ++ } ++out: ++ if (!err) ++ inode_lock_nested(a->h_inode, AuLsc_I_CHILD); ++ return err; ++} ++ ++static int aufs_setattr(struct dentry *dentry, struct iattr *ia) ++{ ++ int err; ++ struct inode *inode, *delegated; ++ struct super_block *sb; ++ struct file *file; ++ struct au_icpup_args *a; ++ ++ inode = d_inode(dentry); ++ IMustLock(inode); ++ ++ err = setattr_prepare(dentry, ia); ++ if (unlikely(err)) ++ goto out; ++ ++ err = -ENOMEM; ++ a = kzalloc(sizeof(*a), GFP_NOFS); ++ if (unlikely(!a)) ++ goto out; ++ ++ if (ia->ia_valid & (ATTR_KILL_SUID | ATTR_KILL_SGID)) ++ ia->ia_valid &= ~ATTR_MODE; ++ ++ file = NULL; ++ sb = dentry->d_sb; ++ err = si_read_lock(sb, AuLock_FLUSH | AuLock_NOPLM); ++ if (unlikely(err)) ++ goto out_kfree; ++ ++ if (ia->ia_valid & ATTR_FILE) { ++ /* currently ftruncate(2) only */ ++ AuDebugOn(!d_is_reg(dentry)); ++ file = ia->ia_file; ++ err = au_reval_and_lock_fdi(file, au_reopen_nondir, /*wlock*/1, ++ /*fi_lsc*/0); ++ if (unlikely(err)) ++ goto out_si; ++ ia->ia_file = au_hf_top(file); ++ a->udba = AuOpt_UDBA_NONE; ++ } else { ++ /* fchmod() doesn't pass ia_file */ ++ a->udba = au_opt_udba(sb); ++ di_write_lock_child(dentry); ++ /* no d_unlinked(), to set UDBA_NONE for root */ ++ if (d_unhashed(dentry)) ++ a->udba = AuOpt_UDBA_NONE; ++ if (a->udba != AuOpt_UDBA_NONE) { ++ AuDebugOn(IS_ROOT(dentry)); ++ err = au_reval_for_attr(dentry, au_sigen(sb)); ++ if (unlikely(err)) ++ goto out_dentry; ++ } ++ } ++ ++ err = au_pin_and_icpup(dentry, ia, a); ++ if (unlikely(err < 0)) ++ goto out_dentry; ++ if (au_ftest_icpup(a->flags, DID_CPUP)) { ++ ia->ia_file = NULL; ++ ia->ia_valid &= ~ATTR_FILE; ++ } ++ ++ a->h_path.mnt = au_sbr_mnt(sb, a->btgt); ++ if ((ia->ia_valid & (ATTR_MODE | ATTR_CTIME)) ++ == (ATTR_MODE | ATTR_CTIME)) { ++ err = security_path_chmod(&a->h_path, ia->ia_mode); ++ if (unlikely(err)) ++ goto out_unlock; ++ } else if ((ia->ia_valid & (ATTR_UID | ATTR_GID)) ++ && (ia->ia_valid & ATTR_CTIME)) { ++ err = security_path_chown(&a->h_path, ia->ia_uid, ia->ia_gid); ++ if (unlikely(err)) ++ goto out_unlock; ++ } ++ ++ if (ia->ia_valid & ATTR_SIZE) { ++ struct file *f; ++ ++ if (ia->ia_size < i_size_read(inode)) ++ /* unmap only */ ++ truncate_setsize(inode, ia->ia_size); ++ ++ f = NULL; ++ if (ia->ia_valid & ATTR_FILE) ++ f = ia->ia_file; ++ inode_unlock(a->h_inode); ++ err = vfsub_trunc(&a->h_path, ia->ia_size, ia->ia_valid, f); ++ inode_lock_nested(a->h_inode, AuLsc_I_CHILD); ++ } else { ++ delegated = NULL; ++ while (1) { ++ err = vfsub_notify_change(&a->h_path, ia, &delegated); ++ if (delegated) { ++ err = break_deleg_wait(&delegated); ++ if (!err) ++ continue; ++ } ++ break; ++ } ++ } ++ /* ++ * regardless aufs 'acl' option setting. ++ * why don't all acl-aware fs call this func from their ->setattr()? ++ */ ++ if (!err && (ia->ia_valid & ATTR_MODE)) ++ err = vfsub_acl_chmod(a->h_inode, ia->ia_mode); ++ if (!err) ++ au_cpup_attr_changeable(inode); ++ ++out_unlock: ++ inode_unlock(a->h_inode); ++ au_unpin(&a->pin); ++ if (unlikely(err)) ++ au_update_dbtop(dentry); ++out_dentry: ++ di_write_unlock(dentry); ++ if (file) { ++ fi_write_unlock(file); ++ ia->ia_file = file; ++ ia->ia_valid |= ATTR_FILE; ++ } ++out_si: ++ si_read_unlock(sb); ++out_kfree: ++ kfree(a); ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++#if IS_ENABLED(CONFIG_AUFS_XATTR) || IS_ENABLED(CONFIG_FS_POSIX_ACL) ++static int au_h_path_to_set_attr(struct dentry *dentry, ++ struct au_icpup_args *a, struct path *h_path) ++{ ++ int err; ++ struct super_block *sb; ++ ++ sb = dentry->d_sb; ++ a->udba = au_opt_udba(sb); ++ /* no d_unlinked(), to set UDBA_NONE for root */ ++ if (d_unhashed(dentry)) ++ a->udba = AuOpt_UDBA_NONE; ++ if (a->udba != AuOpt_UDBA_NONE) { ++ AuDebugOn(IS_ROOT(dentry)); ++ err = au_reval_for_attr(dentry, au_sigen(sb)); ++ if (unlikely(err)) ++ goto out; ++ } ++ err = au_pin_and_icpup(dentry, /*ia*/NULL, a); ++ if (unlikely(err < 0)) ++ goto out; ++ ++ h_path->dentry = a->h_path.dentry; ++ h_path->mnt = au_sbr_mnt(sb, a->btgt); ++ ++out: ++ return err; ++} ++ ++ssize_t au_sxattr(struct dentry *dentry, struct inode *inode, ++ struct au_sxattr *arg) ++{ ++ int err; ++ struct path h_path; ++ struct super_block *sb; ++ struct au_icpup_args *a; ++ struct inode *h_inode; ++ ++ IMustLock(inode); ++ ++ err = -ENOMEM; ++ a = kzalloc(sizeof(*a), GFP_NOFS); ++ if (unlikely(!a)) ++ goto out; ++ ++ sb = dentry->d_sb; ++ err = si_read_lock(sb, AuLock_FLUSH | AuLock_NOPLM); ++ if (unlikely(err)) ++ goto out_kfree; ++ ++ h_path.dentry = NULL; /* silence gcc */ ++ di_write_lock_child(dentry); ++ err = au_h_path_to_set_attr(dentry, a, &h_path); ++ if (unlikely(err)) ++ goto out_di; ++ ++ inode_unlock(a->h_inode); ++ switch (arg->type) { ++ case AU_XATTR_SET: ++ AuDebugOn(d_is_negative(h_path.dentry)); ++ err = vfsub_setxattr(h_path.dentry, ++ arg->u.set.name, arg->u.set.value, ++ arg->u.set.size, arg->u.set.flags); ++ break; ++ case AU_ACL_SET: ++ err = -EOPNOTSUPP; ++ h_inode = d_inode(h_path.dentry); ++ if (h_inode->i_op->set_acl) ++ /* this will call posix_acl_update_mode */ ++ err = h_inode->i_op->set_acl(h_inode, ++ arg->u.acl_set.acl, ++ arg->u.acl_set.type); ++ break; ++ } ++ if (!err) ++ au_cpup_attr_timesizes(inode); ++ ++ au_unpin(&a->pin); ++ if (unlikely(err)) ++ au_update_dbtop(dentry); ++ ++out_di: ++ di_write_unlock(dentry); ++ si_read_unlock(sb); ++out_kfree: ++ kfree(a); ++out: ++ AuTraceErr(err); ++ return err; ++} ++#endif ++ ++static void au_refresh_iattr(struct inode *inode, struct kstat *st, ++ unsigned int nlink) ++{ ++ unsigned int n; ++ ++ inode->i_mode = st->mode; ++ /* don't i_[ug]id_write() here */ ++ inode->i_uid = st->uid; ++ inode->i_gid = st->gid; ++ inode->i_atime = st->atime; ++ inode->i_mtime = st->mtime; ++ inode->i_ctime = st->ctime; ++ ++ au_cpup_attr_nlink(inode, /*force*/0); ++ if (S_ISDIR(inode->i_mode)) { ++ n = inode->i_nlink; ++ n -= nlink; ++ n += st->nlink; ++ smp_mb(); /* for i_nlink */ ++ /* 0 can happen */ ++ set_nlink(inode, n); ++ } ++ ++ spin_lock(&inode->i_lock); ++ inode->i_blocks = st->blocks; ++ i_size_write(inode, st->size); ++ spin_unlock(&inode->i_lock); ++} ++ ++/* ++ * common routine for aufs_getattr() and au_getxattr(). ++ * returns zero or negative (an error). ++ * @dentry will be read-locked in success. ++ */ ++int au_h_path_getattr(struct dentry *dentry, int force, struct path *h_path, ++ int locked) ++{ ++ int err; ++ unsigned int mnt_flags, sigen; ++ unsigned char udba_none; ++ aufs_bindex_t bindex; ++ struct super_block *sb, *h_sb; ++ struct inode *inode; ++ ++ h_path->mnt = NULL; ++ h_path->dentry = NULL; ++ ++ err = 0; ++ sb = dentry->d_sb; ++ mnt_flags = au_mntflags(sb); ++ udba_none = !!au_opt_test(mnt_flags, UDBA_NONE); ++ ++ if (unlikely(locked)) ++ goto body; /* skip locking dinfo */ ++ ++ /* support fstat(2) */ ++ if (!d_unlinked(dentry) && !udba_none) { ++ sigen = au_sigen(sb); ++ err = au_digen_test(dentry, sigen); ++ if (!err) { ++ di_read_lock_child(dentry, AuLock_IR); ++ err = au_dbrange_test(dentry); ++ if (unlikely(err)) { ++ di_read_unlock(dentry, AuLock_IR); ++ goto out; ++ } ++ } else { ++ AuDebugOn(IS_ROOT(dentry)); ++ di_write_lock_child(dentry); ++ err = au_dbrange_test(dentry); ++ if (!err) ++ err = au_reval_for_attr(dentry, sigen); ++ if (!err) ++ di_downgrade_lock(dentry, AuLock_IR); ++ else { ++ di_write_unlock(dentry); ++ goto out; ++ } ++ } ++ } else ++ di_read_lock_child(dentry, AuLock_IR); ++ ++body: ++ inode = d_inode(dentry); ++ bindex = au_ibtop(inode); ++ h_path->mnt = au_sbr_mnt(sb, bindex); ++ h_sb = h_path->mnt->mnt_sb; ++ if (!force ++ && !au_test_fs_bad_iattr(h_sb) ++ && udba_none) ++ goto out; /* success */ ++ ++ if (au_dbtop(dentry) == bindex) ++ h_path->dentry = au_h_dptr(dentry, bindex); ++ else if (au_opt_test(mnt_flags, PLINK) && au_plink_test(inode)) { ++ h_path->dentry = au_plink_lkup(inode, bindex); ++ if (IS_ERR(h_path->dentry)) ++ /* pretending success */ ++ h_path->dentry = NULL; ++ else ++ dput(h_path->dentry); ++ } ++ ++out: ++ return err; ++} ++ ++static int aufs_getattr(const struct path *path, struct kstat *st, ++ u32 request, unsigned int query) ++{ ++ int err; ++ unsigned char positive; ++ struct path h_path; ++ struct dentry *dentry; ++ struct inode *inode; ++ struct super_block *sb; ++ ++ dentry = path->dentry; ++ inode = d_inode(dentry); ++ sb = dentry->d_sb; ++ err = si_read_lock(sb, AuLock_FLUSH | AuLock_NOPLM); ++ if (unlikely(err)) ++ goto out; ++ err = au_h_path_getattr(dentry, /*force*/0, &h_path, /*locked*/0); ++ if (unlikely(err)) ++ goto out_si; ++ if (unlikely(!h_path.dentry)) ++ /* illegally overlapped or something */ ++ goto out_fill; /* pretending success */ ++ ++ positive = d_is_positive(h_path.dentry); ++ if (positive) ++ /* no vfsub version */ ++ err = vfs_getattr(&h_path, st, request, query); ++ if (!err) { ++ if (positive) ++ au_refresh_iattr(inode, st, ++ d_inode(h_path.dentry)->i_nlink); ++ goto out_fill; /* success */ ++ } ++ AuTraceErr(err); ++ goto out_di; ++ ++out_fill: ++ generic_fillattr(inode, st); ++out_di: ++ di_read_unlock(dentry, AuLock_IR); ++out_si: ++ si_read_unlock(sb); ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static const char *aufs_get_link(struct dentry *dentry, struct inode *inode, ++ struct delayed_call *done) ++{ ++ const char *ret; ++ struct dentry *h_dentry; ++ struct inode *h_inode; ++ int err; ++ aufs_bindex_t bindex; ++ ++ ret = NULL; /* suppress a warning */ ++ err = -ECHILD; ++ if (!dentry) ++ goto out; ++ ++ err = aufs_read_lock(dentry, AuLock_IR | AuLock_GEN); ++ if (unlikely(err)) ++ goto out; ++ ++ err = au_d_hashed_positive(dentry); ++ if (unlikely(err)) ++ goto out_unlock; ++ ++ err = -EINVAL; ++ inode = d_inode(dentry); ++ bindex = au_ibtop(inode); ++ h_inode = au_h_iptr(inode, bindex); ++ if (unlikely(!h_inode->i_op->get_link)) ++ goto out_unlock; ++ ++ err = -EBUSY; ++ h_dentry = NULL; ++ if (au_dbtop(dentry) <= bindex) { ++ h_dentry = au_h_dptr(dentry, bindex); ++ if (h_dentry) ++ dget(h_dentry); ++ } ++ if (!h_dentry) { ++ h_dentry = d_find_any_alias(h_inode); ++ if (IS_ERR(h_dentry)) { ++ err = PTR_ERR(h_dentry); ++ goto out_unlock; ++ } ++ } ++ if (unlikely(!h_dentry)) ++ goto out_unlock; ++ ++ err = 0; ++ AuDbg("%pf\n", h_inode->i_op->get_link); ++ AuDbgDentry(h_dentry); ++ ret = vfs_get_link(h_dentry, done); ++ dput(h_dentry); ++ if (IS_ERR(ret)) ++ err = PTR_ERR(ret); ++ ++out_unlock: ++ aufs_read_unlock(dentry, AuLock_IR); ++out: ++ if (unlikely(err)) ++ ret = ERR_PTR(err); ++ AuTraceErrPtr(ret); ++ return ret; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static int au_is_special(struct inode *inode) ++{ ++ return (inode->i_mode & (S_IFBLK | S_IFCHR | S_IFIFO | S_IFSOCK)); ++} ++ ++static int aufs_update_time(struct inode *inode, struct timespec *ts, int flags) ++{ ++ int err; ++ aufs_bindex_t bindex; ++ struct super_block *sb; ++ struct inode *h_inode; ++ struct vfsmount *h_mnt; ++ ++ sb = inode->i_sb; ++ WARN_ONCE((flags & S_ATIME) && !IS_NOATIME(inode), ++ "unexpected s_flags 0x%lx", sb->s_flags); ++ ++ /* mmap_sem might be acquired already, cf. aufs_mmap() */ ++ lockdep_off(); ++ si_read_lock(sb, AuLock_FLUSH); ++ ii_write_lock_child(inode); ++ ++ err = 0; ++ bindex = au_ibtop(inode); ++ h_inode = au_h_iptr(inode, bindex); ++ if (!au_test_ro(sb, bindex, inode)) { ++ h_mnt = au_sbr_mnt(sb, bindex); ++ err = vfsub_mnt_want_write(h_mnt); ++ if (!err) { ++ err = vfsub_update_time(h_inode, ts, flags); ++ vfsub_mnt_drop_write(h_mnt); ++ } ++ } else if (au_is_special(h_inode)) { ++ /* ++ * Never copy-up here. ++ * These special files may already be opened and used for ++ * communicating. If we copied it up, then the communication ++ * would be corrupted. ++ */ ++ AuWarn1("timestamps for i%lu are ignored " ++ "since it is on readonly branch (hi%lu).\n", ++ inode->i_ino, h_inode->i_ino); ++ } else if (flags & ~S_ATIME) { ++ err = -EIO; ++ AuIOErr1("unexpected flags 0x%x\n", flags); ++ AuDebugOn(1); ++ } ++ ++ if (!err) ++ au_cpup_attr_timesizes(inode); ++ ii_write_unlock(inode); ++ si_read_unlock(sb); ++ lockdep_on(); ++ ++ if (!err && (flags & S_VERSION)) ++ inode_inc_iversion(inode); ++ ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* no getattr version will be set by module.c:aufs_init() */ ++struct inode_operations aufs_iop_nogetattr[AuIop_Last], ++ aufs_iop[] = { ++ [AuIop_SYMLINK] = { ++ .permission = aufs_permission, ++#ifdef CONFIG_FS_POSIX_ACL ++ .get_acl = aufs_get_acl, ++ .set_acl = aufs_set_acl, /* unsupport for symlink? */ ++#endif ++ ++ .setattr = aufs_setattr, ++ .getattr = aufs_getattr, ++ ++#ifdef CONFIG_AUFS_XATTR ++ .listxattr = aufs_listxattr, ++#endif ++ ++ .get_link = aufs_get_link, ++ ++ /* .update_time = aufs_update_time */ ++ }, ++ [AuIop_DIR] = { ++ .create = aufs_create, ++ .lookup = aufs_lookup, ++ .link = aufs_link, ++ .unlink = aufs_unlink, ++ .symlink = aufs_symlink, ++ .mkdir = aufs_mkdir, ++ .rmdir = aufs_rmdir, ++ .mknod = aufs_mknod, ++ .rename = aufs_rename, ++ ++ .permission = aufs_permission, ++#ifdef CONFIG_FS_POSIX_ACL ++ .get_acl = aufs_get_acl, ++ .set_acl = aufs_set_acl, ++#endif ++ ++ .setattr = aufs_setattr, ++ .getattr = aufs_getattr, ++ ++#ifdef CONFIG_AUFS_XATTR ++ .listxattr = aufs_listxattr, ++#endif ++ ++ .update_time = aufs_update_time, ++ .atomic_open = aufs_atomic_open, ++ .tmpfile = aufs_tmpfile ++ }, ++ [AuIop_OTHER] = { ++ .permission = aufs_permission, ++#ifdef CONFIG_FS_POSIX_ACL ++ .get_acl = aufs_get_acl, ++ .set_acl = aufs_set_acl, ++#endif ++ ++ .setattr = aufs_setattr, ++ .getattr = aufs_getattr, ++ ++#ifdef CONFIG_AUFS_XATTR ++ .listxattr = aufs_listxattr, ++#endif ++ ++ .update_time = aufs_update_time ++ } ++}; +diff -Naur null/fs/aufs/i_op_del.c linux-4.15/fs/aufs/i_op_del.c +--- /dev/null ++++ linux-4.15/fs/aufs/i_op_del.c 2018-02-25 02:38:09.202737899 +0100 +@@ -0,0 +1,511 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * inode operations (del entry) ++ */ ++ ++#include "aufs.h" ++ ++/* ++ * decide if a new whiteout for @dentry is necessary or not. ++ * when it is necessary, prepare the parent dir for the upper branch whose ++ * branch index is @bcpup for creation. the actual creation of the whiteout will ++ * be done by caller. ++ * return value: ++ * 0: wh is unnecessary ++ * plus: wh is necessary ++ * minus: error ++ */ ++int au_wr_dir_need_wh(struct dentry *dentry, int isdir, aufs_bindex_t *bcpup) ++{ ++ int need_wh, err; ++ aufs_bindex_t btop; ++ struct super_block *sb; ++ ++ sb = dentry->d_sb; ++ btop = au_dbtop(dentry); ++ if (*bcpup < 0) { ++ *bcpup = btop; ++ if (au_test_ro(sb, btop, d_inode(dentry))) { ++ err = AuWbrCopyup(au_sbi(sb), dentry); ++ *bcpup = err; ++ if (unlikely(err < 0)) ++ goto out; ++ } ++ } else ++ AuDebugOn(btop < *bcpup ++ || au_test_ro(sb, *bcpup, d_inode(dentry))); ++ AuDbg("bcpup %d, btop %d\n", *bcpup, btop); ++ ++ if (*bcpup != btop) { ++ err = au_cpup_dirs(dentry, *bcpup); ++ if (unlikely(err)) ++ goto out; ++ need_wh = 1; ++ } else { ++ struct au_dinfo *dinfo, *tmp; ++ ++ need_wh = -ENOMEM; ++ dinfo = au_di(dentry); ++ tmp = au_di_alloc(sb, AuLsc_DI_TMP); ++ if (tmp) { ++ au_di_cp(tmp, dinfo); ++ au_di_swap(tmp, dinfo); ++ /* returns the number of positive dentries */ ++ need_wh = au_lkup_dentry(dentry, btop + 1, ++ /* AuLkup_IGNORE_PERM */ 0); ++ au_di_swap(tmp, dinfo); ++ au_rw_write_unlock(&tmp->di_rwsem); ++ au_di_free(tmp); ++ } ++ } ++ AuDbg("need_wh %d\n", need_wh); ++ err = need_wh; ++ ++out: ++ return err; ++} ++ ++/* ++ * simple tests for the del-entry operations. ++ * following the checks in vfs, plus the parent-child relationship. ++ */ ++int au_may_del(struct dentry *dentry, aufs_bindex_t bindex, ++ struct dentry *h_parent, int isdir) ++{ ++ int err; ++ umode_t h_mode; ++ struct dentry *h_dentry, *h_latest; ++ struct inode *h_inode; ++ ++ h_dentry = au_h_dptr(dentry, bindex); ++ if (d_really_is_positive(dentry)) { ++ err = -ENOENT; ++ if (unlikely(d_is_negative(h_dentry))) ++ goto out; ++ h_inode = d_inode(h_dentry); ++ if (unlikely(!h_inode->i_nlink)) ++ goto out; ++ ++ h_mode = h_inode->i_mode; ++ if (!isdir) { ++ err = -EISDIR; ++ if (unlikely(S_ISDIR(h_mode))) ++ goto out; ++ } else if (unlikely(!S_ISDIR(h_mode))) { ++ err = -ENOTDIR; ++ goto out; ++ } ++ } else { ++ /* rename(2) case */ ++ err = -EIO; ++ if (unlikely(d_is_positive(h_dentry))) ++ goto out; ++ } ++ ++ err = -ENOENT; ++ /* expected parent dir is locked */ ++ if (unlikely(h_parent != h_dentry->d_parent)) ++ goto out; ++ err = 0; ++ ++ /* ++ * rmdir a dir may break the consistency on some filesystem. ++ * let's try heavy test. ++ */ ++ err = -EACCES; ++ if (unlikely(!au_opt_test(au_mntflags(dentry->d_sb), DIRPERM1) ++ && au_test_h_perm(d_inode(h_parent), ++ MAY_EXEC | MAY_WRITE))) ++ goto out; ++ ++ h_latest = au_sio_lkup_one(&dentry->d_name, h_parent); ++ err = -EIO; ++ if (IS_ERR(h_latest)) ++ goto out; ++ if (h_latest == h_dentry) ++ err = 0; ++ dput(h_latest); ++ ++out: ++ return err; ++} ++ ++/* ++ * decide the branch where we operate for @dentry. the branch index will be set ++ * @rbcpup. after diciding it, 'pin' it and store the timestamps of the parent ++ * dir for reverting. ++ * when a new whiteout is necessary, create it. ++ */ ++static struct dentry* ++lock_hdir_create_wh(struct dentry *dentry, int isdir, aufs_bindex_t *rbcpup, ++ struct au_dtime *dt, struct au_pin *pin) ++{ ++ struct dentry *wh_dentry; ++ struct super_block *sb; ++ struct path h_path; ++ int err, need_wh; ++ unsigned int udba; ++ aufs_bindex_t bcpup; ++ ++ need_wh = au_wr_dir_need_wh(dentry, isdir, rbcpup); ++ wh_dentry = ERR_PTR(need_wh); ++ if (unlikely(need_wh < 0)) ++ goto out; ++ ++ sb = dentry->d_sb; ++ udba = au_opt_udba(sb); ++ bcpup = *rbcpup; ++ err = au_pin(pin, dentry, bcpup, udba, ++ AuPin_DI_LOCKED | AuPin_MNT_WRITE); ++ wh_dentry = ERR_PTR(err); ++ if (unlikely(err)) ++ goto out; ++ ++ h_path.dentry = au_pinned_h_parent(pin); ++ if (udba != AuOpt_UDBA_NONE ++ && au_dbtop(dentry) == bcpup) { ++ err = au_may_del(dentry, bcpup, h_path.dentry, isdir); ++ wh_dentry = ERR_PTR(err); ++ if (unlikely(err)) ++ goto out_unpin; ++ } ++ ++ h_path.mnt = au_sbr_mnt(sb, bcpup); ++ au_dtime_store(dt, au_pinned_parent(pin), &h_path); ++ wh_dentry = NULL; ++ if (!need_wh) ++ goto out; /* success, no need to create whiteout */ ++ ++ wh_dentry = au_wh_create(dentry, bcpup, h_path.dentry); ++ if (IS_ERR(wh_dentry)) ++ goto out_unpin; ++ ++ /* returns with the parent is locked and wh_dentry is dget-ed */ ++ goto out; /* success */ ++ ++out_unpin: ++ au_unpin(pin); ++out: ++ return wh_dentry; ++} ++ ++/* ++ * when removing a dir, rename it to a unique temporary whiteout-ed name first ++ * in order to be revertible and save time for removing many child whiteouts ++ * under the dir. ++ * returns 1 when there are too many child whiteout and caller should remove ++ * them asynchronously. returns 0 when the number of children is enough small to ++ * remove now or the branch fs is a remote fs. ++ * otherwise return an error. ++ */ ++static int renwh_and_rmdir(struct dentry *dentry, aufs_bindex_t bindex, ++ struct au_nhash *whlist, struct inode *dir) ++{ ++ int rmdir_later, err, dirwh; ++ struct dentry *h_dentry; ++ struct super_block *sb; ++ struct inode *inode; ++ ++ sb = dentry->d_sb; ++ SiMustAnyLock(sb); ++ h_dentry = au_h_dptr(dentry, bindex); ++ err = au_whtmp_ren(h_dentry, au_sbr(sb, bindex)); ++ if (unlikely(err)) ++ goto out; ++ ++ /* stop monitoring */ ++ inode = d_inode(dentry); ++ au_hn_free(au_hi(inode, bindex)); ++ ++ if (!au_test_fs_remote(h_dentry->d_sb)) { ++ dirwh = au_sbi(sb)->si_dirwh; ++ rmdir_later = (dirwh <= 1); ++ if (!rmdir_later) ++ rmdir_later = au_nhash_test_longer_wh(whlist, bindex, ++ dirwh); ++ if (rmdir_later) ++ return rmdir_later; ++ } ++ ++ err = au_whtmp_rmdir(dir, bindex, h_dentry, whlist); ++ if (unlikely(err)) { ++ AuIOErr("rmdir %pd, b%d failed, %d. ignored\n", ++ h_dentry, bindex, err); ++ err = 0; ++ } ++ ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++/* ++ * final procedure for deleting a entry. ++ * maintain dentry and iattr. ++ */ ++static void epilog(struct inode *dir, struct dentry *dentry, ++ aufs_bindex_t bindex) ++{ ++ struct inode *inode; ++ ++ inode = d_inode(dentry); ++ d_drop(dentry); ++ inode->i_ctime = dir->i_ctime; ++ ++ au_dir_ts(dir, bindex); ++ dir->i_version++; ++} ++ ++/* ++ * when an error happened, remove the created whiteout and revert everything. ++ */ ++static int do_revert(int err, struct inode *dir, aufs_bindex_t bindex, ++ aufs_bindex_t bwh, struct dentry *wh_dentry, ++ struct dentry *dentry, struct au_dtime *dt) ++{ ++ int rerr; ++ struct path h_path = { ++ .dentry = wh_dentry, ++ .mnt = au_sbr_mnt(dir->i_sb, bindex) ++ }; ++ ++ rerr = au_wh_unlink_dentry(au_h_iptr(dir, bindex), &h_path, dentry); ++ if (!rerr) { ++ au_set_dbwh(dentry, bwh); ++ au_dtime_revert(dt); ++ return 0; ++ } ++ ++ AuIOErr("%pd reverting whiteout failed(%d, %d)\n", dentry, err, rerr); ++ return -EIO; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++int aufs_unlink(struct inode *dir, struct dentry *dentry) ++{ ++ int err; ++ aufs_bindex_t bwh, bindex, btop; ++ struct inode *inode, *h_dir, *delegated; ++ struct dentry *parent, *wh_dentry; ++ /* to reuduce stack size */ ++ struct { ++ struct au_dtime dt; ++ struct au_pin pin; ++ struct path h_path; ++ } *a; ++ ++ IMustLock(dir); ++ ++ err = -ENOMEM; ++ a = kmalloc(sizeof(*a), GFP_NOFS); ++ if (unlikely(!a)) ++ goto out; ++ ++ err = aufs_read_lock(dentry, AuLock_DW | AuLock_GEN); ++ if (unlikely(err)) ++ goto out_free; ++ err = au_d_hashed_positive(dentry); ++ if (unlikely(err)) ++ goto out_unlock; ++ inode = d_inode(dentry); ++ IMustLock(inode); ++ err = -EISDIR; ++ if (unlikely(d_is_dir(dentry))) ++ goto out_unlock; /* possible? */ ++ ++ btop = au_dbtop(dentry); ++ bwh = au_dbwh(dentry); ++ bindex = -1; ++ parent = dentry->d_parent; /* dir inode is locked */ ++ di_write_lock_parent(parent); ++ wh_dentry = lock_hdir_create_wh(dentry, /*isdir*/0, &bindex, &a->dt, ++ &a->pin); ++ err = PTR_ERR(wh_dentry); ++ if (IS_ERR(wh_dentry)) ++ goto out_parent; ++ ++ a->h_path.mnt = au_sbr_mnt(dentry->d_sb, btop); ++ a->h_path.dentry = au_h_dptr(dentry, btop); ++ dget(a->h_path.dentry); ++ if (bindex == btop) { ++ h_dir = au_pinned_h_dir(&a->pin); ++ delegated = NULL; ++ err = vfsub_unlink(h_dir, &a->h_path, &delegated, /*force*/0); ++ if (unlikely(err == -EWOULDBLOCK)) { ++ pr_warn("cannot retry for NFSv4 delegation" ++ " for an internal unlink\n"); ++ iput(delegated); ++ } ++ } else { ++ /* dir inode is locked */ ++ h_dir = d_inode(wh_dentry->d_parent); ++ IMustLock(h_dir); ++ err = 0; ++ } ++ ++ if (!err) { ++ vfsub_drop_nlink(inode); ++ epilog(dir, dentry, bindex); ++ ++ /* update target timestamps */ ++ if (bindex == btop) { ++ vfsub_update_h_iattr(&a->h_path, /*did*/NULL); ++ /*ignore*/ ++ inode->i_ctime = d_inode(a->h_path.dentry)->i_ctime; ++ } else ++ /* todo: this timestamp may be reverted later */ ++ inode->i_ctime = h_dir->i_ctime; ++ goto out_unpin; /* success */ ++ } ++ ++ /* revert */ ++ if (wh_dentry) { ++ int rerr; ++ ++ rerr = do_revert(err, dir, bindex, bwh, wh_dentry, dentry, ++ &a->dt); ++ if (rerr) ++ err = rerr; ++ } ++ ++out_unpin: ++ au_unpin(&a->pin); ++ dput(wh_dentry); ++ dput(a->h_path.dentry); ++out_parent: ++ di_write_unlock(parent); ++out_unlock: ++ aufs_read_unlock(dentry, AuLock_DW); ++out_free: ++ kfree(a); ++out: ++ return err; ++} ++ ++int aufs_rmdir(struct inode *dir, struct dentry *dentry) ++{ ++ int err, rmdir_later; ++ aufs_bindex_t bwh, bindex, btop; ++ struct inode *inode; ++ struct dentry *parent, *wh_dentry, *h_dentry; ++ struct au_whtmp_rmdir *args; ++ /* to reuduce stack size */ ++ struct { ++ struct au_dtime dt; ++ struct au_pin pin; ++ } *a; ++ ++ IMustLock(dir); ++ ++ err = -ENOMEM; ++ a = kmalloc(sizeof(*a), GFP_NOFS); ++ if (unlikely(!a)) ++ goto out; ++ ++ err = aufs_read_lock(dentry, AuLock_DW | AuLock_FLUSH | AuLock_GEN); ++ if (unlikely(err)) ++ goto out_free; ++ err = au_alive_dir(dentry); ++ if (unlikely(err)) ++ goto out_unlock; ++ inode = d_inode(dentry); ++ IMustLock(inode); ++ err = -ENOTDIR; ++ if (unlikely(!d_is_dir(dentry))) ++ goto out_unlock; /* possible? */ ++ ++ err = -ENOMEM; ++ args = au_whtmp_rmdir_alloc(dir->i_sb, GFP_NOFS); ++ if (unlikely(!args)) ++ goto out_unlock; ++ ++ parent = dentry->d_parent; /* dir inode is locked */ ++ di_write_lock_parent(parent); ++ err = au_test_empty(dentry, &args->whlist); ++ if (unlikely(err)) ++ goto out_parent; ++ ++ btop = au_dbtop(dentry); ++ bwh = au_dbwh(dentry); ++ bindex = -1; ++ wh_dentry = lock_hdir_create_wh(dentry, /*isdir*/1, &bindex, &a->dt, ++ &a->pin); ++ err = PTR_ERR(wh_dentry); ++ if (IS_ERR(wh_dentry)) ++ goto out_parent; ++ ++ h_dentry = au_h_dptr(dentry, btop); ++ dget(h_dentry); ++ rmdir_later = 0; ++ if (bindex == btop) { ++ err = renwh_and_rmdir(dentry, btop, &args->whlist, dir); ++ if (err > 0) { ++ rmdir_later = err; ++ err = 0; ++ } ++ } else { ++ /* stop monitoring */ ++ au_hn_free(au_hi(inode, btop)); ++ ++ /* dir inode is locked */ ++ IMustLock(d_inode(wh_dentry->d_parent)); ++ err = 0; ++ } ++ ++ if (!err) { ++ vfsub_dead_dir(inode); ++ au_set_dbdiropq(dentry, -1); ++ epilog(dir, dentry, bindex); ++ ++ if (rmdir_later) { ++ au_whtmp_kick_rmdir(dir, btop, h_dentry, args); ++ args = NULL; ++ } ++ ++ goto out_unpin; /* success */ ++ } ++ ++ /* revert */ ++ AuLabel(revert); ++ if (wh_dentry) { ++ int rerr; ++ ++ rerr = do_revert(err, dir, bindex, bwh, wh_dentry, dentry, ++ &a->dt); ++ if (rerr) ++ err = rerr; ++ } ++ ++out_unpin: ++ au_unpin(&a->pin); ++ dput(wh_dentry); ++ dput(h_dentry); ++out_parent: ++ di_write_unlock(parent); ++ if (args) ++ au_whtmp_rmdir_free(args); ++out_unlock: ++ aufs_read_unlock(dentry, AuLock_DW); ++out_free: ++ kfree(a); ++out: ++ AuTraceErr(err); ++ return err; ++} +diff -Naur null/fs/aufs/i_op_ren.c linux-4.15/fs/aufs/i_op_ren.c +--- /dev/null ++++ linux-4.15/fs/aufs/i_op_ren.c 2018-02-25 02:38:09.202737899 +0100 +@@ -0,0 +1,1246 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * inode operation (rename entry) ++ * todo: this is crazy monster ++ */ ++ ++#include "aufs.h" ++ ++enum { AuSRC, AuDST, AuSrcDst }; ++enum { AuPARENT, AuCHILD, AuParentChild }; ++ ++#define AuRen_ISDIR_SRC 1 ++#define AuRen_ISDIR_DST (1 << 1) ++#define AuRen_ISSAMEDIR (1 << 2) ++#define AuRen_WHSRC (1 << 3) ++#define AuRen_WHDST (1 << 4) ++#define AuRen_MNT_WRITE (1 << 5) ++#define AuRen_DT_DSTDIR (1 << 6) ++#define AuRen_DIROPQ_SRC (1 << 7) ++#define AuRen_DIROPQ_DST (1 << 8) ++#define AuRen_DIRREN (1 << 9) ++#define AuRen_DROPPED_SRC (1 << 10) ++#define AuRen_DROPPED_DST (1 << 11) ++#define au_ftest_ren(flags, name) ((flags) & AuRen_##name) ++#define au_fset_ren(flags, name) \ ++ do { (flags) |= AuRen_##name; } while (0) ++#define au_fclr_ren(flags, name) \ ++ do { (flags) &= ~AuRen_##name; } while (0) ++ ++#ifndef CONFIG_AUFS_DIRREN ++#undef AuRen_DIRREN ++#define AuRen_DIRREN 0 ++#endif ++ ++struct au_ren_args { ++ struct { ++ struct dentry *dentry, *h_dentry, *parent, *h_parent, ++ *wh_dentry; ++ struct inode *dir, *inode; ++ struct au_hinode *hdir, *hinode; ++ struct au_dtime dt[AuParentChild]; ++ aufs_bindex_t btop, bdiropq; ++ } sd[AuSrcDst]; ++ ++#define src_dentry sd[AuSRC].dentry ++#define src_dir sd[AuSRC].dir ++#define src_inode sd[AuSRC].inode ++#define src_h_dentry sd[AuSRC].h_dentry ++#define src_parent sd[AuSRC].parent ++#define src_h_parent sd[AuSRC].h_parent ++#define src_wh_dentry sd[AuSRC].wh_dentry ++#define src_hdir sd[AuSRC].hdir ++#define src_hinode sd[AuSRC].hinode ++#define src_h_dir sd[AuSRC].hdir->hi_inode ++#define src_dt sd[AuSRC].dt ++#define src_btop sd[AuSRC].btop ++#define src_bdiropq sd[AuSRC].bdiropq ++ ++#define dst_dentry sd[AuDST].dentry ++#define dst_dir sd[AuDST].dir ++#define dst_inode sd[AuDST].inode ++#define dst_h_dentry sd[AuDST].h_dentry ++#define dst_parent sd[AuDST].parent ++#define dst_h_parent sd[AuDST].h_parent ++#define dst_wh_dentry sd[AuDST].wh_dentry ++#define dst_hdir sd[AuDST].hdir ++#define dst_hinode sd[AuDST].hinode ++#define dst_h_dir sd[AuDST].hdir->hi_inode ++#define dst_dt sd[AuDST].dt ++#define dst_btop sd[AuDST].btop ++#define dst_bdiropq sd[AuDST].bdiropq ++ ++ struct dentry *h_trap; ++ struct au_branch *br; ++ struct path h_path; ++ struct au_nhash whlist; ++ aufs_bindex_t btgt, src_bwh; ++ ++ struct { ++ unsigned short auren_flags; ++ unsigned char flags; /* syscall parameter */ ++ unsigned char exchange; ++ } __packed; ++ ++ struct au_whtmp_rmdir *thargs; ++ struct dentry *h_dst; ++ struct au_hinode *h_root; ++}; ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* ++ * functions for reverting. ++ * when an error happened in a single rename systemcall, we should revert ++ * everything as if nothing happened. ++ * we don't need to revert the copied-up/down the parent dir since they are ++ * harmless. ++ */ ++ ++#define RevertFailure(fmt, ...) do { \ ++ AuIOErr("revert failure: " fmt " (%d, %d)\n", \ ++ ##__VA_ARGS__, err, rerr); \ ++ err = -EIO; \ ++} while (0) ++ ++static void au_ren_do_rev_diropq(int err, struct au_ren_args *a, int idx) ++{ ++ int rerr; ++ struct dentry *d; ++#define src_or_dst(member) a->sd[idx].member ++ ++ d = src_or_dst(dentry); /* {src,dst}_dentry */ ++ au_hn_inode_lock_nested(src_or_dst(hinode), AuLsc_I_CHILD); ++ rerr = au_diropq_remove(d, a->btgt); ++ au_hn_inode_unlock(src_or_dst(hinode)); ++ au_set_dbdiropq(d, src_or_dst(bdiropq)); ++ if (rerr) ++ RevertFailure("remove diropq %pd", d); ++ ++#undef src_or_dst_ ++} ++ ++static void au_ren_rev_diropq(int err, struct au_ren_args *a) ++{ ++ if (au_ftest_ren(a->auren_flags, DIROPQ_SRC)) ++ au_ren_do_rev_diropq(err, a, AuSRC); ++ if (au_ftest_ren(a->auren_flags, DIROPQ_DST)) ++ au_ren_do_rev_diropq(err, a, AuDST); ++} ++ ++static void au_ren_rev_rename(int err, struct au_ren_args *a) ++{ ++ int rerr; ++ struct inode *delegated; ++ ++ a->h_path.dentry = vfsub_lkup_one(&a->src_dentry->d_name, ++ a->src_h_parent); ++ rerr = PTR_ERR(a->h_path.dentry); ++ if (IS_ERR(a->h_path.dentry)) { ++ RevertFailure("lkup one %pd", a->src_dentry); ++ return; ++ } ++ ++ delegated = NULL; ++ rerr = vfsub_rename(a->dst_h_dir, ++ au_h_dptr(a->src_dentry, a->btgt), ++ a->src_h_dir, &a->h_path, &delegated, a->flags); ++ if (unlikely(rerr == -EWOULDBLOCK)) { ++ pr_warn("cannot retry for NFSv4 delegation" ++ " for an internal rename\n"); ++ iput(delegated); ++ } ++ d_drop(a->h_path.dentry); ++ dput(a->h_path.dentry); ++ /* au_set_h_dptr(a->src_dentry, a->btgt, NULL); */ ++ if (rerr) ++ RevertFailure("rename %pd", a->src_dentry); ++} ++ ++static void au_ren_rev_whtmp(int err, struct au_ren_args *a) ++{ ++ int rerr; ++ struct inode *delegated; ++ ++ a->h_path.dentry = vfsub_lkup_one(&a->dst_dentry->d_name, ++ a->dst_h_parent); ++ rerr = PTR_ERR(a->h_path.dentry); ++ if (IS_ERR(a->h_path.dentry)) { ++ RevertFailure("lkup one %pd", a->dst_dentry); ++ return; ++ } ++ if (d_is_positive(a->h_path.dentry)) { ++ d_drop(a->h_path.dentry); ++ dput(a->h_path.dentry); ++ return; ++ } ++ ++ delegated = NULL; ++ rerr = vfsub_rename(a->dst_h_dir, a->h_dst, a->dst_h_dir, &a->h_path, ++ &delegated, a->flags); ++ if (unlikely(rerr == -EWOULDBLOCK)) { ++ pr_warn("cannot retry for NFSv4 delegation" ++ " for an internal rename\n"); ++ iput(delegated); ++ } ++ d_drop(a->h_path.dentry); ++ dput(a->h_path.dentry); ++ if (!rerr) ++ au_set_h_dptr(a->dst_dentry, a->btgt, dget(a->h_dst)); ++ else ++ RevertFailure("rename %pd", a->h_dst); ++} ++ ++static void au_ren_rev_whsrc(int err, struct au_ren_args *a) ++{ ++ int rerr; ++ ++ a->h_path.dentry = a->src_wh_dentry; ++ rerr = au_wh_unlink_dentry(a->src_h_dir, &a->h_path, a->src_dentry); ++ au_set_dbwh(a->src_dentry, a->src_bwh); ++ if (rerr) ++ RevertFailure("unlink %pd", a->src_wh_dentry); ++} ++#undef RevertFailure ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* ++ * when we have to copyup the renaming entry, do it with the rename-target name ++ * in order to minimize the cost (the later actual rename is unnecessary). ++ * otherwise rename it on the target branch. ++ */ ++static int au_ren_or_cpup(struct au_ren_args *a) ++{ ++ int err; ++ struct dentry *d; ++ struct inode *delegated; ++ ++ d = a->src_dentry; ++ if (au_dbtop(d) == a->btgt) { ++ a->h_path.dentry = a->dst_h_dentry; ++ AuDebugOn(au_dbtop(d) != a->btgt); ++ delegated = NULL; ++ err = vfsub_rename(a->src_h_dir, au_h_dptr(d, a->btgt), ++ a->dst_h_dir, &a->h_path, &delegated, ++ a->flags); ++ if (unlikely(err == -EWOULDBLOCK)) { ++ pr_warn("cannot retry for NFSv4 delegation" ++ " for an internal rename\n"); ++ iput(delegated); ++ } ++ } else ++ BUG(); ++ ++ if (!err && a->h_dst) ++ /* it will be set to dinfo later */ ++ dget(a->h_dst); ++ ++ return err; ++} ++ ++/* cf. aufs_rmdir() */ ++static int au_ren_del_whtmp(struct au_ren_args *a) ++{ ++ int err; ++ struct inode *dir; ++ ++ dir = a->dst_dir; ++ SiMustAnyLock(dir->i_sb); ++ if (!au_nhash_test_longer_wh(&a->whlist, a->btgt, ++ au_sbi(dir->i_sb)->si_dirwh) ++ || au_test_fs_remote(a->h_dst->d_sb)) { ++ err = au_whtmp_rmdir(dir, a->btgt, a->h_dst, &a->whlist); ++ if (unlikely(err)) ++ pr_warn("failed removing whtmp dir %pd (%d), " ++ "ignored.\n", a->h_dst, err); ++ } else { ++ au_nhash_wh_free(&a->thargs->whlist); ++ a->thargs->whlist = a->whlist; ++ a->whlist.nh_num = 0; ++ au_whtmp_kick_rmdir(dir, a->btgt, a->h_dst, a->thargs); ++ dput(a->h_dst); ++ a->thargs = NULL; ++ } ++ ++ return 0; ++} ++ ++/* make it 'opaque' dir. */ ++static int au_ren_do_diropq(struct au_ren_args *a, int idx) ++{ ++ int err; ++ struct dentry *d, *diropq; ++#define src_or_dst(member) a->sd[idx].member ++ ++ err = 0; ++ d = src_or_dst(dentry); /* {src,dst}_dentry */ ++ src_or_dst(bdiropq) = au_dbdiropq(d); ++ src_or_dst(hinode) = au_hi(src_or_dst(inode), a->btgt); ++ au_hn_inode_lock_nested(src_or_dst(hinode), AuLsc_I_CHILD); ++ diropq = au_diropq_create(d, a->btgt); ++ au_hn_inode_unlock(src_or_dst(hinode)); ++ if (IS_ERR(diropq)) ++ err = PTR_ERR(diropq); ++ else ++ dput(diropq); ++ ++#undef src_or_dst_ ++ return err; ++} ++ ++static int au_ren_diropq(struct au_ren_args *a) ++{ ++ int err; ++ unsigned char always; ++ struct dentry *d; ++ ++ err = 0; ++ d = a->dst_dentry; /* already renamed on the branch */ ++ always = !!au_opt_test(au_mntflags(d->d_sb), ALWAYS_DIROPQ); ++ if (au_ftest_ren(a->auren_flags, ISDIR_SRC) ++ && !au_ftest_ren(a->auren_flags, DIRREN) ++ && a->btgt != au_dbdiropq(a->src_dentry) ++ && (a->dst_wh_dentry ++ || a->btgt <= au_dbdiropq(d) ++ /* hide the lower to keep xino */ ++ /* the lowers may not be a dir, but we hide them anyway */ ++ || a->btgt < au_dbbot(d) ++ || always)) { ++ AuDbg("here\n"); ++ err = au_ren_do_diropq(a, AuSRC); ++ if (unlikely(err)) ++ goto out; ++ au_fset_ren(a->auren_flags, DIROPQ_SRC); ++ } ++ if (!a->exchange) ++ goto out; /* success */ ++ ++ d = a->src_dentry; /* already renamed on the branch */ ++ if (au_ftest_ren(a->auren_flags, ISDIR_DST) ++ && a->btgt != au_dbdiropq(a->dst_dentry) ++ && (a->btgt < au_dbdiropq(d) ++ || a->btgt < au_dbbot(d) ++ || always)) { ++ AuDbgDentry(a->src_dentry); ++ AuDbgDentry(a->dst_dentry); ++ err = au_ren_do_diropq(a, AuDST); ++ if (unlikely(err)) ++ goto out_rev_src; ++ au_fset_ren(a->auren_flags, DIROPQ_DST); ++ } ++ goto out; /* success */ ++ ++out_rev_src: ++ AuDbg("err %d, reverting src\n", err); ++ au_ren_rev_diropq(err, a); ++out: ++ return err; ++} ++ ++static int do_rename(struct au_ren_args *a) ++{ ++ int err; ++ struct dentry *d, *h_d; ++ ++ if (!a->exchange) { ++ /* prepare workqueue args for asynchronous rmdir */ ++ h_d = a->dst_h_dentry; ++ if (au_ftest_ren(a->auren_flags, ISDIR_DST) ++ /* && !au_ftest_ren(a->auren_flags, DIRREN) */ ++ && d_is_positive(h_d)) { ++ err = -ENOMEM; ++ a->thargs = au_whtmp_rmdir_alloc(a->src_dentry->d_sb, ++ GFP_NOFS); ++ if (unlikely(!a->thargs)) ++ goto out; ++ a->h_dst = dget(h_d); ++ } ++ ++ /* create whiteout for src_dentry */ ++ if (au_ftest_ren(a->auren_flags, WHSRC)) { ++ a->src_bwh = au_dbwh(a->src_dentry); ++ AuDebugOn(a->src_bwh >= 0); ++ a->src_wh_dentry = au_wh_create(a->src_dentry, a->btgt, ++ a->src_h_parent); ++ err = PTR_ERR(a->src_wh_dentry); ++ if (IS_ERR(a->src_wh_dentry)) ++ goto out_thargs; ++ } ++ ++ /* lookup whiteout for dentry */ ++ if (au_ftest_ren(a->auren_flags, WHDST)) { ++ h_d = au_wh_lkup(a->dst_h_parent, ++ &a->dst_dentry->d_name, a->br); ++ err = PTR_ERR(h_d); ++ if (IS_ERR(h_d)) ++ goto out_whsrc; ++ if (d_is_negative(h_d)) ++ dput(h_d); ++ else ++ a->dst_wh_dentry = h_d; ++ } ++ ++ /* rename dentry to tmpwh */ ++ if (a->thargs) { ++ err = au_whtmp_ren(a->dst_h_dentry, a->br); ++ if (unlikely(err)) ++ goto out_whdst; ++ ++ d = a->dst_dentry; ++ au_set_h_dptr(d, a->btgt, NULL); ++ err = au_lkup_neg(d, a->btgt, /*wh*/0); ++ if (unlikely(err)) ++ goto out_whtmp; ++ a->dst_h_dentry = au_h_dptr(d, a->btgt); ++ } ++ } ++ ++ BUG_ON(d_is_positive(a->dst_h_dentry) && a->src_btop != a->btgt); ++#if 0 ++ BUG_ON(!au_ftest_ren(a->auren_flags, DIRREN) ++ && d_is_positive(a->dst_h_dentry) ++ && a->src_btop != a->btgt); ++#endif ++ ++ /* rename by vfs_rename or cpup */ ++ err = au_ren_or_cpup(a); ++ if (unlikely(err)) ++ /* leave the copied-up one */ ++ goto out_whtmp; ++ ++ /* make dir opaque */ ++ err = au_ren_diropq(a); ++ if (unlikely(err)) ++ goto out_rename; ++ ++ /* update target timestamps */ ++ if (a->exchange) { ++ AuDebugOn(au_dbtop(a->dst_dentry) != a->btgt); ++ a->h_path.dentry = au_h_dptr(a->dst_dentry, a->btgt); ++ vfsub_update_h_iattr(&a->h_path, /*did*/NULL); /*ignore*/ ++ a->dst_inode->i_ctime = d_inode(a->h_path.dentry)->i_ctime; ++ } ++ AuDebugOn(au_dbtop(a->src_dentry) != a->btgt); ++ a->h_path.dentry = au_h_dptr(a->src_dentry, a->btgt); ++ vfsub_update_h_iattr(&a->h_path, /*did*/NULL); /*ignore*/ ++ a->src_inode->i_ctime = d_inode(a->h_path.dentry)->i_ctime; ++ ++ if (!a->exchange) { ++ /* remove whiteout for dentry */ ++ if (a->dst_wh_dentry) { ++ a->h_path.dentry = a->dst_wh_dentry; ++ err = au_wh_unlink_dentry(a->dst_h_dir, &a->h_path, ++ a->dst_dentry); ++ if (unlikely(err)) ++ goto out_diropq; ++ } ++ ++ /* remove whtmp */ ++ if (a->thargs) ++ au_ren_del_whtmp(a); /* ignore this error */ ++ ++ au_fhsm_wrote(a->src_dentry->d_sb, a->btgt, /*force*/0); ++ } ++ err = 0; ++ goto out_success; ++ ++out_diropq: ++ au_ren_rev_diropq(err, a); ++out_rename: ++ au_ren_rev_rename(err, a); ++ dput(a->h_dst); ++out_whtmp: ++ if (a->thargs) ++ au_ren_rev_whtmp(err, a); ++out_whdst: ++ dput(a->dst_wh_dentry); ++ a->dst_wh_dentry = NULL; ++out_whsrc: ++ if (a->src_wh_dentry) ++ au_ren_rev_whsrc(err, a); ++out_success: ++ dput(a->src_wh_dentry); ++ dput(a->dst_wh_dentry); ++out_thargs: ++ if (a->thargs) { ++ dput(a->h_dst); ++ au_whtmp_rmdir_free(a->thargs); ++ a->thargs = NULL; ++ } ++out: ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* ++ * test if @dentry dir can be rename destination or not. ++ * success means, it is a logically empty dir. ++ */ ++static int may_rename_dstdir(struct dentry *dentry, struct au_nhash *whlist) ++{ ++ return au_test_empty(dentry, whlist); ++} ++ ++/* ++ * test if @a->src_dentry dir can be rename source or not. ++ * if it can, return 0. ++ * success means, ++ * - it is a logically empty dir. ++ * - or, it exists on writable branch and has no children including whiteouts ++ * on the lower branch unless DIRREN is on. ++ */ ++static int may_rename_srcdir(struct au_ren_args *a) ++{ ++ int err; ++ unsigned int rdhash; ++ aufs_bindex_t btop, btgt; ++ struct dentry *dentry; ++ struct super_block *sb; ++ struct au_sbinfo *sbinfo; ++ ++ dentry = a->src_dentry; ++ sb = dentry->d_sb; ++ sbinfo = au_sbi(sb); ++ if (au_opt_test(sbinfo->si_mntflags, DIRREN)) ++ au_fset_ren(a->auren_flags, DIRREN); ++ ++ btgt = a->btgt; ++ btop = au_dbtop(dentry); ++ if (btop != btgt) { ++ struct au_nhash whlist; ++ ++ SiMustAnyLock(sb); ++ rdhash = sbinfo->si_rdhash; ++ if (!rdhash) ++ rdhash = au_rdhash_est(au_dir_size(/*file*/NULL, ++ dentry)); ++ err = au_nhash_alloc(&whlist, rdhash, GFP_NOFS); ++ if (unlikely(err)) ++ goto out; ++ err = au_test_empty(dentry, &whlist); ++ au_nhash_wh_free(&whlist); ++ goto out; ++ } ++ ++ if (btop == au_dbtaildir(dentry)) ++ return 0; /* success */ ++ ++ err = au_test_empty_lower(dentry); ++ ++out: ++ if (err == -ENOTEMPTY) { ++ if (au_ftest_ren(a->auren_flags, DIRREN)) { ++ err = 0; ++ } else { ++ AuWarn1("renaming dir who has child(ren) on multiple " ++ "branches, is not supported\n"); ++ err = -EXDEV; ++ } ++ } ++ return err; ++} ++ ++/* side effect: sets whlist and h_dentry */ ++static int au_ren_may_dir(struct au_ren_args *a) ++{ ++ int err; ++ unsigned int rdhash; ++ struct dentry *d; ++ ++ d = a->dst_dentry; ++ SiMustAnyLock(d->d_sb); ++ ++ err = 0; ++ if (au_ftest_ren(a->auren_flags, ISDIR_DST) && a->dst_inode) { ++ rdhash = au_sbi(d->d_sb)->si_rdhash; ++ if (!rdhash) ++ rdhash = au_rdhash_est(au_dir_size(/*file*/NULL, d)); ++ err = au_nhash_alloc(&a->whlist, rdhash, GFP_NOFS); ++ if (unlikely(err)) ++ goto out; ++ ++ if (!a->exchange) { ++ au_set_dbtop(d, a->dst_btop); ++ err = may_rename_dstdir(d, &a->whlist); ++ au_set_dbtop(d, a->btgt); ++ } else ++ err = may_rename_srcdir(a); ++ } ++ a->dst_h_dentry = au_h_dptr(d, au_dbtop(d)); ++ if (unlikely(err)) ++ goto out; ++ ++ d = a->src_dentry; ++ a->src_h_dentry = au_h_dptr(d, au_dbtop(d)); ++ if (au_ftest_ren(a->auren_flags, ISDIR_SRC)) { ++ err = may_rename_srcdir(a); ++ if (unlikely(err)) { ++ au_nhash_wh_free(&a->whlist); ++ a->whlist.nh_num = 0; ++ } ++ } ++out: ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* ++ * simple tests for rename. ++ * following the checks in vfs, plus the parent-child relationship. ++ */ ++static int au_may_ren(struct au_ren_args *a) ++{ ++ int err, isdir; ++ struct inode *h_inode; ++ ++ if (a->src_btop == a->btgt) { ++ err = au_may_del(a->src_dentry, a->btgt, a->src_h_parent, ++ au_ftest_ren(a->auren_flags, ISDIR_SRC)); ++ if (unlikely(err)) ++ goto out; ++ err = -EINVAL; ++ if (unlikely(a->src_h_dentry == a->h_trap)) ++ goto out; ++ } ++ ++ err = 0; ++ if (a->dst_btop != a->btgt) ++ goto out; ++ ++ err = -ENOTEMPTY; ++ if (unlikely(a->dst_h_dentry == a->h_trap)) ++ goto out; ++ ++ err = -EIO; ++ isdir = !!au_ftest_ren(a->auren_flags, ISDIR_DST); ++ if (d_really_is_negative(a->dst_dentry)) { ++ if (d_is_negative(a->dst_h_dentry)) ++ err = au_may_add(a->dst_dentry, a->btgt, ++ a->dst_h_parent, isdir); ++ } else { ++ if (unlikely(d_is_negative(a->dst_h_dentry))) ++ goto out; ++ h_inode = d_inode(a->dst_h_dentry); ++ if (h_inode->i_nlink) ++ err = au_may_del(a->dst_dentry, a->btgt, ++ a->dst_h_parent, isdir); ++ } ++ ++out: ++ if (unlikely(err == -ENOENT || err == -EEXIST)) ++ err = -EIO; ++ AuTraceErr(err); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* ++ * locking order ++ * (VFS) ++ * - src_dir and dir by lock_rename() ++ * - inode if exitsts ++ * (aufs) ++ * - lock all ++ * + src_dentry and dentry by aufs_read_and_write_lock2() which calls, ++ * + si_read_lock ++ * + di_write_lock2_child() ++ * + di_write_lock_child() ++ * + ii_write_lock_child() ++ * + di_write_lock_child2() ++ * + ii_write_lock_child2() ++ * + src_parent and parent ++ * + di_write_lock_parent() ++ * + ii_write_lock_parent() ++ * + di_write_lock_parent2() ++ * + ii_write_lock_parent2() ++ * + lower src_dir and dir by vfsub_lock_rename() ++ * + verify the every relationships between child and parent. if any ++ * of them failed, unlock all and return -EBUSY. ++ */ ++static void au_ren_unlock(struct au_ren_args *a) ++{ ++ vfsub_unlock_rename(a->src_h_parent, a->src_hdir, ++ a->dst_h_parent, a->dst_hdir); ++ if (au_ftest_ren(a->auren_flags, DIRREN) ++ && a->h_root) ++ au_hn_inode_unlock(a->h_root); ++ if (au_ftest_ren(a->auren_flags, MNT_WRITE)) ++ vfsub_mnt_drop_write(au_br_mnt(a->br)); ++} ++ ++static int au_ren_lock(struct au_ren_args *a) ++{ ++ int err; ++ unsigned int udba; ++ ++ err = 0; ++ a->src_h_parent = au_h_dptr(a->src_parent, a->btgt); ++ a->src_hdir = au_hi(a->src_dir, a->btgt); ++ a->dst_h_parent = au_h_dptr(a->dst_parent, a->btgt); ++ a->dst_hdir = au_hi(a->dst_dir, a->btgt); ++ ++ err = vfsub_mnt_want_write(au_br_mnt(a->br)); ++ if (unlikely(err)) ++ goto out; ++ au_fset_ren(a->auren_flags, MNT_WRITE); ++ if (au_ftest_ren(a->auren_flags, DIRREN)) { ++ struct dentry *root; ++ struct inode *dir; ++ ++ /* ++ * sbinfo is already locked, so this ii_read_lock is ++ * unnecessary. but our debugging feature checks it. ++ */ ++ root = a->src_inode->i_sb->s_root; ++ if (root != a->src_parent && root != a->dst_parent) { ++ dir = d_inode(root); ++ ii_read_lock_parent3(dir); ++ a->h_root = au_hi(dir, a->btgt); ++ ii_read_unlock(dir); ++ au_hn_inode_lock_nested(a->h_root, AuLsc_I_PARENT3); ++ } ++ } ++ a->h_trap = vfsub_lock_rename(a->src_h_parent, a->src_hdir, ++ a->dst_h_parent, a->dst_hdir); ++ udba = au_opt_udba(a->src_dentry->d_sb); ++ if (unlikely(a->src_hdir->hi_inode != d_inode(a->src_h_parent) ++ || a->dst_hdir->hi_inode != d_inode(a->dst_h_parent))) ++ err = au_busy_or_stale(); ++ if (!err && au_dbtop(a->src_dentry) == a->btgt) ++ err = au_h_verify(a->src_h_dentry, udba, ++ d_inode(a->src_h_parent), a->src_h_parent, ++ a->br); ++ if (!err && au_dbtop(a->dst_dentry) == a->btgt) ++ err = au_h_verify(a->dst_h_dentry, udba, ++ d_inode(a->dst_h_parent), a->dst_h_parent, ++ a->br); ++ if (!err) ++ goto out; /* success */ ++ ++ err = au_busy_or_stale(); ++ au_ren_unlock(a); ++ ++out: ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static void au_ren_refresh_dir(struct au_ren_args *a) ++{ ++ struct inode *dir; ++ ++ dir = a->dst_dir; ++ dir->i_version++; ++ if (au_ftest_ren(a->auren_flags, ISDIR_SRC)) { ++ /* is this updating defined in POSIX? */ ++ au_cpup_attr_timesizes(a->src_inode); ++ au_cpup_attr_nlink(dir, /*force*/1); ++ } ++ au_dir_ts(dir, a->btgt); ++ ++ if (a->exchange) { ++ dir = a->src_dir; ++ dir->i_version++; ++ if (au_ftest_ren(a->auren_flags, ISDIR_DST)) { ++ /* is this updating defined in POSIX? */ ++ au_cpup_attr_timesizes(a->dst_inode); ++ au_cpup_attr_nlink(dir, /*force*/1); ++ } ++ au_dir_ts(dir, a->btgt); ++ } ++ ++ if (au_ftest_ren(a->auren_flags, ISSAMEDIR)) ++ return; ++ ++ dir = a->src_dir; ++ dir->i_version++; ++ if (au_ftest_ren(a->auren_flags, ISDIR_SRC)) ++ au_cpup_attr_nlink(dir, /*force*/1); ++ au_dir_ts(dir, a->btgt); ++} ++ ++static void au_ren_refresh(struct au_ren_args *a) ++{ ++ aufs_bindex_t bbot, bindex; ++ struct dentry *d, *h_d; ++ struct inode *i, *h_i; ++ struct super_block *sb; ++ ++ d = a->dst_dentry; ++ d_drop(d); ++ if (a->h_dst) ++ /* already dget-ed by au_ren_or_cpup() */ ++ au_set_h_dptr(d, a->btgt, a->h_dst); ++ ++ i = a->dst_inode; ++ if (i) { ++ if (!a->exchange) { ++ if (!au_ftest_ren(a->auren_flags, ISDIR_DST)) ++ vfsub_drop_nlink(i); ++ else { ++ vfsub_dead_dir(i); ++ au_cpup_attr_timesizes(i); ++ } ++ au_update_dbrange(d, /*do_put_zero*/1); ++ } else ++ au_cpup_attr_nlink(i, /*force*/1); ++ } else { ++ bbot = a->btgt; ++ for (bindex = au_dbtop(d); bindex < bbot; bindex++) ++ au_set_h_dptr(d, bindex, NULL); ++ bbot = au_dbbot(d); ++ for (bindex = a->btgt + 1; bindex <= bbot; bindex++) ++ au_set_h_dptr(d, bindex, NULL); ++ au_update_dbrange(d, /*do_put_zero*/0); ++ } ++ ++ if (a->exchange ++ || au_ftest_ren(a->auren_flags, DIRREN)) { ++ d_drop(a->src_dentry); ++ if (au_ftest_ren(a->auren_flags, DIRREN)) ++ au_set_dbwh(a->src_dentry, -1); ++ return; ++ } ++ ++ d = a->src_dentry; ++ au_set_dbwh(d, -1); ++ bbot = au_dbbot(d); ++ for (bindex = a->btgt + 1; bindex <= bbot; bindex++) { ++ h_d = au_h_dptr(d, bindex); ++ if (h_d) ++ au_set_h_dptr(d, bindex, NULL); ++ } ++ au_set_dbbot(d, a->btgt); ++ ++ sb = d->d_sb; ++ i = a->src_inode; ++ if (au_opt_test(au_mntflags(sb), PLINK) && au_plink_test(i)) ++ return; /* success */ ++ ++ bbot = au_ibbot(i); ++ for (bindex = a->btgt + 1; bindex <= bbot; bindex++) { ++ h_i = au_h_iptr(i, bindex); ++ if (h_i) { ++ au_xino_write(sb, bindex, h_i->i_ino, /*ino*/0); ++ /* ignore this error */ ++ au_set_h_iptr(i, bindex, NULL, 0); ++ } ++ } ++ au_set_ibbot(i, a->btgt); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* mainly for link(2) and rename(2) */ ++int au_wbr(struct dentry *dentry, aufs_bindex_t btgt) ++{ ++ aufs_bindex_t bdiropq, bwh; ++ struct dentry *parent; ++ struct au_branch *br; ++ ++ parent = dentry->d_parent; ++ IMustLock(d_inode(parent)); /* dir is locked */ ++ ++ bdiropq = au_dbdiropq(parent); ++ bwh = au_dbwh(dentry); ++ br = au_sbr(dentry->d_sb, btgt); ++ if (au_br_rdonly(br) ++ || (0 <= bdiropq && bdiropq < btgt) ++ || (0 <= bwh && bwh < btgt)) ++ btgt = -1; ++ ++ AuDbg("btgt %d\n", btgt); ++ return btgt; ++} ++ ++/* sets src_btop, dst_btop and btgt */ ++static int au_ren_wbr(struct au_ren_args *a) ++{ ++ int err; ++ struct au_wr_dir_args wr_dir_args = { ++ /* .force_btgt = -1, */ ++ .flags = AuWrDir_ADD_ENTRY ++ }; ++ ++ a->src_btop = au_dbtop(a->src_dentry); ++ a->dst_btop = au_dbtop(a->dst_dentry); ++ if (au_ftest_ren(a->auren_flags, ISDIR_SRC) ++ || au_ftest_ren(a->auren_flags, ISDIR_DST)) ++ au_fset_wrdir(wr_dir_args.flags, ISDIR); ++ wr_dir_args.force_btgt = a->src_btop; ++ if (a->dst_inode && a->dst_btop < a->src_btop) ++ wr_dir_args.force_btgt = a->dst_btop; ++ wr_dir_args.force_btgt = au_wbr(a->dst_dentry, wr_dir_args.force_btgt); ++ err = au_wr_dir(a->dst_dentry, a->src_dentry, &wr_dir_args); ++ a->btgt = err; ++ if (a->exchange) ++ au_update_dbtop(a->dst_dentry); ++ ++ return err; ++} ++ ++static void au_ren_dt(struct au_ren_args *a) ++{ ++ a->h_path.dentry = a->src_h_parent; ++ au_dtime_store(a->src_dt + AuPARENT, a->src_parent, &a->h_path); ++ if (!au_ftest_ren(a->auren_flags, ISSAMEDIR)) { ++ a->h_path.dentry = a->dst_h_parent; ++ au_dtime_store(a->dst_dt + AuPARENT, a->dst_parent, &a->h_path); ++ } ++ ++ au_fclr_ren(a->auren_flags, DT_DSTDIR); ++ if (!au_ftest_ren(a->auren_flags, ISDIR_SRC) ++ && !a->exchange) ++ return; ++ ++ a->h_path.dentry = a->src_h_dentry; ++ au_dtime_store(a->src_dt + AuCHILD, a->src_dentry, &a->h_path); ++ if (d_is_positive(a->dst_h_dentry)) { ++ au_fset_ren(a->auren_flags, DT_DSTDIR); ++ a->h_path.dentry = a->dst_h_dentry; ++ au_dtime_store(a->dst_dt + AuCHILD, a->dst_dentry, &a->h_path); ++ } ++} ++ ++static void au_ren_rev_dt(int err, struct au_ren_args *a) ++{ ++ struct dentry *h_d; ++ struct inode *h_inode; ++ ++ au_dtime_revert(a->src_dt + AuPARENT); ++ if (!au_ftest_ren(a->auren_flags, ISSAMEDIR)) ++ au_dtime_revert(a->dst_dt + AuPARENT); ++ ++ if (au_ftest_ren(a->auren_flags, ISDIR_SRC) && err != -EIO) { ++ h_d = a->src_dt[AuCHILD].dt_h_path.dentry; ++ h_inode = d_inode(h_d); ++ inode_lock_nested(h_inode, AuLsc_I_CHILD); ++ au_dtime_revert(a->src_dt + AuCHILD); ++ inode_unlock(h_inode); ++ ++ if (au_ftest_ren(a->auren_flags, DT_DSTDIR)) { ++ h_d = a->dst_dt[AuCHILD].dt_h_path.dentry; ++ h_inode = d_inode(h_d); ++ inode_lock_nested(h_inode, AuLsc_I_CHILD); ++ au_dtime_revert(a->dst_dt + AuCHILD); ++ inode_unlock(h_inode); ++ } ++ } ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++int aufs_rename(struct inode *_src_dir, struct dentry *_src_dentry, ++ struct inode *_dst_dir, struct dentry *_dst_dentry, ++ unsigned int _flags) ++{ ++ int err, lock_flags; ++ void *rev; ++ /* reduce stack space */ ++ struct au_ren_args *a; ++ struct au_pin pin; ++ ++ AuDbg("%pd, %pd, 0x%x\n", _src_dentry, _dst_dentry, _flags); ++ IMustLock(_src_dir); ++ IMustLock(_dst_dir); ++ ++ err = -EINVAL; ++ if (unlikely(_flags & RENAME_WHITEOUT)) ++ goto out; ++ ++ err = -ENOMEM; ++ BUILD_BUG_ON(sizeof(*a) > PAGE_SIZE); ++ a = kzalloc(sizeof(*a), GFP_NOFS); ++ if (unlikely(!a)) ++ goto out; ++ ++ a->flags = _flags; ++ a->exchange = _flags & RENAME_EXCHANGE; ++ a->src_dir = _src_dir; ++ a->src_dentry = _src_dentry; ++ a->src_inode = NULL; ++ if (d_really_is_positive(a->src_dentry)) ++ a->src_inode = d_inode(a->src_dentry); ++ a->src_parent = a->src_dentry->d_parent; /* dir inode is locked */ ++ a->dst_dir = _dst_dir; ++ a->dst_dentry = _dst_dentry; ++ a->dst_inode = NULL; ++ if (d_really_is_positive(a->dst_dentry)) ++ a->dst_inode = d_inode(a->dst_dentry); ++ a->dst_parent = a->dst_dentry->d_parent; /* dir inode is locked */ ++ if (a->dst_inode) { ++ /* ++ * if EXCHANGE && src is non-dir && dst is dir, ++ * dst is not locked. ++ */ ++ /* IMustLock(a->dst_inode); */ ++ au_igrab(a->dst_inode); ++ } ++ ++ err = -ENOTDIR; ++ lock_flags = AuLock_FLUSH | AuLock_NOPLM | AuLock_GEN; ++ if (d_is_dir(a->src_dentry)) { ++ au_fset_ren(a->auren_flags, ISDIR_SRC); ++ if (unlikely(!a->exchange ++ && d_really_is_positive(a->dst_dentry) ++ && !d_is_dir(a->dst_dentry))) ++ goto out_free; ++ lock_flags |= AuLock_DIRS; ++ } ++ if (a->dst_inode && d_is_dir(a->dst_dentry)) { ++ au_fset_ren(a->auren_flags, ISDIR_DST); ++ if (unlikely(!a->exchange ++ && d_really_is_positive(a->src_dentry) ++ && !d_is_dir(a->src_dentry))) ++ goto out_free; ++ lock_flags |= AuLock_DIRS; ++ } ++ err = aufs_read_and_write_lock2(a->dst_dentry, a->src_dentry, ++ lock_flags); ++ if (unlikely(err)) ++ goto out_free; ++ ++ err = au_d_hashed_positive(a->src_dentry); ++ if (unlikely(err)) ++ goto out_unlock; ++ err = -ENOENT; ++ if (a->dst_inode) { ++ /* ++ * If it is a dir, VFS unhash it before this ++ * function. It means we cannot rely upon d_unhashed(). ++ */ ++ if (unlikely(!a->dst_inode->i_nlink)) ++ goto out_unlock; ++ if (!au_ftest_ren(a->auren_flags, ISDIR_DST)) { ++ err = au_d_hashed_positive(a->dst_dentry); ++ if (unlikely(err && !a->exchange)) ++ goto out_unlock; ++ } else if (unlikely(IS_DEADDIR(a->dst_inode))) ++ goto out_unlock; ++ } else if (unlikely(d_unhashed(a->dst_dentry))) ++ goto out_unlock; ++ ++ /* ++ * is it possible? ++ * yes, it happened (in linux-3.3-rcN) but I don't know why. ++ * there may exist a problem somewhere else. ++ */ ++ err = -EINVAL; ++ if (unlikely(d_inode(a->dst_parent) == d_inode(a->src_dentry))) ++ goto out_unlock; ++ ++ au_fset_ren(a->auren_flags, ISSAMEDIR); /* temporary */ ++ di_write_lock_parent(a->dst_parent); ++ ++ /* which branch we process */ ++ err = au_ren_wbr(a); ++ if (unlikely(err < 0)) ++ goto out_parent; ++ a->br = au_sbr(a->dst_dentry->d_sb, a->btgt); ++ a->h_path.mnt = au_br_mnt(a->br); ++ ++ /* are they available to be renamed */ ++ err = au_ren_may_dir(a); ++ if (unlikely(err)) ++ goto out_children; ++ ++ /* prepare the writable parent dir on the same branch */ ++ if (a->dst_btop == a->btgt) { ++ au_fset_ren(a->auren_flags, WHDST); ++ } else { ++ err = au_cpup_dirs(a->dst_dentry, a->btgt); ++ if (unlikely(err)) ++ goto out_children; ++ } ++ ++ err = 0; ++ if (!a->exchange) { ++ if (a->src_dir != a->dst_dir) { ++ /* ++ * this temporary unlock is safe, ++ * because both dir->i_mutex are locked. ++ */ ++ di_write_unlock(a->dst_parent); ++ di_write_lock_parent(a->src_parent); ++ err = au_wr_dir_need_wh(a->src_dentry, ++ au_ftest_ren(a->auren_flags, ++ ISDIR_SRC), ++ &a->btgt); ++ di_write_unlock(a->src_parent); ++ di_write_lock2_parent(a->src_parent, a->dst_parent, ++ /*isdir*/1); ++ au_fclr_ren(a->auren_flags, ISSAMEDIR); ++ } else ++ err = au_wr_dir_need_wh(a->src_dentry, ++ au_ftest_ren(a->auren_flags, ++ ISDIR_SRC), ++ &a->btgt); ++ } ++ if (unlikely(err < 0)) ++ goto out_children; ++ if (err) ++ au_fset_ren(a->auren_flags, WHSRC); ++ ++ /* cpup src */ ++ if (a->src_btop != a->btgt) { ++ err = au_pin(&pin, a->src_dentry, a->btgt, ++ au_opt_udba(a->src_dentry->d_sb), ++ AuPin_DI_LOCKED | AuPin_MNT_WRITE); ++ if (!err) { ++ struct au_cp_generic cpg = { ++ .dentry = a->src_dentry, ++ .bdst = a->btgt, ++ .bsrc = a->src_btop, ++ .len = -1, ++ .pin = &pin, ++ .flags = AuCpup_DTIME | AuCpup_HOPEN ++ }; ++ AuDebugOn(au_dbtop(a->src_dentry) != a->src_btop); ++ err = au_sio_cpup_simple(&cpg); ++ au_unpin(&pin); ++ } ++ if (unlikely(err)) ++ goto out_children; ++ a->src_btop = a->btgt; ++ a->src_h_dentry = au_h_dptr(a->src_dentry, a->btgt); ++ if (!a->exchange) ++ au_fset_ren(a->auren_flags, WHSRC); ++ } ++ ++ /* cpup dst */ ++ if (a->exchange && a->dst_inode ++ && a->dst_btop != a->btgt) { ++ err = au_pin(&pin, a->dst_dentry, a->btgt, ++ au_opt_udba(a->dst_dentry->d_sb), ++ AuPin_DI_LOCKED | AuPin_MNT_WRITE); ++ if (!err) { ++ struct au_cp_generic cpg = { ++ .dentry = a->dst_dentry, ++ .bdst = a->btgt, ++ .bsrc = a->dst_btop, ++ .len = -1, ++ .pin = &pin, ++ .flags = AuCpup_DTIME | AuCpup_HOPEN ++ }; ++ err = au_sio_cpup_simple(&cpg); ++ au_unpin(&pin); ++ } ++ if (unlikely(err)) ++ goto out_children; ++ a->dst_btop = a->btgt; ++ a->dst_h_dentry = au_h_dptr(a->dst_dentry, a->btgt); ++ } ++ ++ /* lock them all */ ++ err = au_ren_lock(a); ++ if (unlikely(err)) ++ /* leave the copied-up one */ ++ goto out_children; ++ ++ if (!a->exchange) { ++ if (!au_opt_test(au_mntflags(a->dst_dir->i_sb), UDBA_NONE)) ++ err = au_may_ren(a); ++ else if (unlikely(a->dst_dentry->d_name.len > AUFS_MAX_NAMELEN)) ++ err = -ENAMETOOLONG; ++ if (unlikely(err)) ++ goto out_hdir; ++ } ++ ++ /* store timestamps to be revertible */ ++ au_ren_dt(a); ++ ++ /* store dirren info */ ++ if (au_ftest_ren(a->auren_flags, DIRREN)) { ++ err = au_dr_rename(a->src_dentry, a->btgt, ++ &a->dst_dentry->d_name, &rev); ++ AuTraceErr(err); ++ if (unlikely(err)) ++ goto out_dt; ++ } ++ ++ /* here we go */ ++ err = do_rename(a); ++ if (unlikely(err)) ++ goto out_dirren; ++ ++ if (au_ftest_ren(a->auren_flags, DIRREN)) ++ au_dr_rename_fin(a->src_dentry, a->btgt, rev); ++ ++ /* update dir attributes */ ++ au_ren_refresh_dir(a); ++ ++ /* dput/iput all lower dentries */ ++ au_ren_refresh(a); ++ ++ goto out_hdir; /* success */ ++ ++out_dirren: ++ if (au_ftest_ren(a->auren_flags, DIRREN)) ++ au_dr_rename_rev(a->src_dentry, a->btgt, rev); ++out_dt: ++ au_ren_rev_dt(err, a); ++out_hdir: ++ au_ren_unlock(a); ++out_children: ++ au_nhash_wh_free(&a->whlist); ++ if (err && a->dst_inode && a->dst_btop != a->btgt) { ++ AuDbg("btop %d, btgt %d\n", a->dst_btop, a->btgt); ++ au_set_h_dptr(a->dst_dentry, a->btgt, NULL); ++ au_set_dbtop(a->dst_dentry, a->dst_btop); ++ } ++out_parent: ++ if (!err) { ++ if (d_unhashed(a->src_dentry)) ++ au_fset_ren(a->auren_flags, DROPPED_SRC); ++ if (d_unhashed(a->dst_dentry)) ++ au_fset_ren(a->auren_flags, DROPPED_DST); ++ if (!a->exchange) ++ d_move(a->src_dentry, a->dst_dentry); ++ else { ++ d_exchange(a->src_dentry, a->dst_dentry); ++ if (au_ftest_ren(a->auren_flags, DROPPED_DST)) ++ d_drop(a->dst_dentry); ++ } ++ if (au_ftest_ren(a->auren_flags, DROPPED_SRC)) ++ d_drop(a->src_dentry); ++ } else { ++ au_update_dbtop(a->dst_dentry); ++ if (!a->dst_inode) ++ d_drop(a->dst_dentry); ++ } ++ if (au_ftest_ren(a->auren_flags, ISSAMEDIR)) ++ di_write_unlock(a->dst_parent); ++ else ++ di_write_unlock2(a->src_parent, a->dst_parent); ++out_unlock: ++ aufs_read_and_write_unlock2(a->dst_dentry, a->src_dentry); ++out_free: ++ iput(a->dst_inode); ++ if (a->thargs) ++ au_whtmp_rmdir_free(a->thargs); ++ kfree(a); ++out: ++ AuTraceErr(err); ++ return err; ++} +diff -Naur null/fs/aufs/Kconfig linux-4.15/fs/aufs/Kconfig +--- /dev/null ++++ linux-4.15/fs/aufs/Kconfig 2018-02-25 02:38:09.197737361 +0100 +@@ -0,0 +1,199 @@ ++# SPDX-License-Identifier: GPL-2.0 ++config AUFS_FS ++ tristate "Aufs (Advanced multi layered unification filesystem) support" ++ help ++ Aufs is a stackable unification filesystem such as Unionfs, ++ which unifies several directories and provides a merged single ++ directory. ++ In the early days, aufs was entirely re-designed and ++ re-implemented Unionfs Version 1.x series. Introducing many ++ original ideas, approaches and improvements, it becomes totally ++ different from Unionfs while keeping the basic features. ++ ++if AUFS_FS ++choice ++ prompt "Maximum number of branches" ++ default AUFS_BRANCH_MAX_127 ++ help ++ Specifies the maximum number of branches (or member directories) ++ in a single aufs. The larger value consumes more system ++ resources and has a minor impact to performance. ++config AUFS_BRANCH_MAX_127 ++ bool "127" ++ help ++ Specifies the maximum number of branches (or member directories) ++ in a single aufs. The larger value consumes more system ++ resources and has a minor impact to performance. ++config AUFS_BRANCH_MAX_511 ++ bool "511" ++ help ++ Specifies the maximum number of branches (or member directories) ++ in a single aufs. The larger value consumes more system ++ resources and has a minor impact to performance. ++config AUFS_BRANCH_MAX_1023 ++ bool "1023" ++ help ++ Specifies the maximum number of branches (or member directories) ++ in a single aufs. The larger value consumes more system ++ resources and has a minor impact to performance. ++config AUFS_BRANCH_MAX_32767 ++ bool "32767" ++ help ++ Specifies the maximum number of branches (or member directories) ++ in a single aufs. The larger value consumes more system ++ resources and has a minor impact to performance. ++endchoice ++ ++config AUFS_SBILIST ++ bool ++ depends on AUFS_MAGIC_SYSRQ || PROC_FS ++ default y ++ help ++ Automatic configuration for internal use. ++ When aufs supports Magic SysRq or /proc, enabled automatically. ++ ++config AUFS_HNOTIFY ++ bool "Detect direct branch access (bypassing aufs)" ++ help ++ If you want to modify files on branches directly, eg. bypassing aufs, ++ and want aufs to detect the changes of them fully, then enable this ++ option and use 'udba=notify' mount option. ++ Currently there is only one available configuration, "fsnotify". ++ It will have a negative impact to the performance. ++ See detail in aufs.5. ++ ++choice ++ prompt "method" if AUFS_HNOTIFY ++ default AUFS_HFSNOTIFY ++config AUFS_HFSNOTIFY ++ bool "fsnotify" ++ select FSNOTIFY ++endchoice ++ ++config AUFS_EXPORT ++ bool "NFS-exportable aufs" ++ depends on EXPORTFS ++ help ++ If you want to export your mounted aufs via NFS, then enable this ++ option. There are several requirements for this configuration. ++ See detail in aufs.5. ++ ++config AUFS_INO_T_64 ++ bool ++ depends on AUFS_EXPORT ++ depends on 64BIT && !(ALPHA || S390) ++ default y ++ help ++ Automatic configuration for internal use. ++ /* typedef unsigned long/int __kernel_ino_t */ ++ /* alpha and s390x are int */ ++ ++config AUFS_XATTR ++ bool "support for XATTR/EA (including Security Labels)" ++ help ++ If your branch fs supports XATTR/EA and you want to make them ++ available in aufs too, then enable this opsion and specify the ++ branch attributes for EA. ++ See detail in aufs.5. ++ ++config AUFS_FHSM ++ bool "File-based Hierarchical Storage Management" ++ help ++ Hierarchical Storage Management (or HSM) is a well-known feature ++ in the storage world. Aufs provides this feature as file-based. ++ with multiple branches. ++ These multiple branches are prioritized, ie. the topmost one ++ should be the fastest drive and be used heavily. ++ ++config AUFS_RDU ++ bool "Readdir in userspace" ++ help ++ Aufs has two methods to provide a merged view for a directory, ++ by a user-space library and by kernel-space natively. The latter ++ is always enabled but sometimes large and slow. ++ If you enable this option, install the library in aufs2-util ++ package, and set some environment variables for your readdir(3), ++ then the work will be handled in user-space which generally ++ shows better performance in most cases. ++ See detail in aufs.5. ++ ++config AUFS_DIRREN ++ bool "Workaround for rename(2)-ing a directory" ++ help ++ By default, aufs returns EXDEV error in renameing a dir who has ++ his child on the lower branch, since it is a bad idea to issue ++ rename(2) internally for every lower branch. But user may not ++ accept this behaviour. So here is a workaround to allow such ++ rename(2) and store some extra infromation on the writable ++ branch. Obviously this costs high (and I don't like it). ++ To use this feature, you need to enable this configuration AND ++ to specify the mount option `dirren.' ++ See details in aufs.5 and the design documents. ++ ++config AUFS_SHWH ++ bool "Show whiteouts" ++ help ++ If you want to make the whiteouts in aufs visible, then enable ++ this option and specify 'shwh' mount option. Although it may ++ sounds like philosophy or something, but in technically it ++ simply shows the name of whiteout with keeping its behaviour. ++ ++config AUFS_BR_RAMFS ++ bool "Ramfs (initramfs/rootfs) as an aufs branch" ++ help ++ If you want to use ramfs as an aufs branch fs, then enable this ++ option. Generally tmpfs is recommended. ++ Aufs prohibited them to be a branch fs by default, because ++ initramfs becomes unusable after switch_root or something ++ generally. If you sets initramfs as an aufs branch and boot your ++ system by switch_root, you will meet a problem easily since the ++ files in initramfs may be inaccessible. ++ Unless you are going to use ramfs as an aufs branch fs without ++ switch_root or something, leave it N. ++ ++config AUFS_BR_FUSE ++ bool "Fuse fs as an aufs branch" ++ depends on FUSE_FS ++ select AUFS_POLL ++ help ++ If you want to use fuse-based userspace filesystem as an aufs ++ branch fs, then enable this option. ++ It implements the internal poll(2) operation which is ++ implemented by fuse only (curretnly). ++ ++config AUFS_POLL ++ bool ++ help ++ Automatic configuration for internal use. ++ ++config AUFS_BR_HFSPLUS ++ bool "Hfsplus as an aufs branch" ++ depends on HFSPLUS_FS ++ default y ++ help ++ If you want to use hfsplus fs as an aufs branch fs, then enable ++ this option. This option introduces a small overhead at ++ copying-up a file on hfsplus. ++ ++config AUFS_BDEV_LOOP ++ bool ++ depends on BLK_DEV_LOOP ++ default y ++ help ++ Automatic configuration for internal use. ++ Convert =[ym] into =y. ++ ++config AUFS_DEBUG ++ bool "Debug aufs" ++ help ++ Enable this to compile aufs internal debug code. ++ It will have a negative impact to the performance. ++ ++config AUFS_MAGIC_SYSRQ ++ bool ++ depends on AUFS_DEBUG && MAGIC_SYSRQ ++ default y ++ help ++ Automatic configuration for internal use. ++ When aufs supports Magic SysRq, enabled automatically. ++endif +diff -Naur null/fs/aufs/loop.c linux-4.15/fs/aufs/loop.c +--- /dev/null ++++ linux-4.15/fs/aufs/loop.c 2018-02-25 02:38:09.203738006 +0100 +@@ -0,0 +1,147 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * support for loopback block device as a branch ++ */ ++ ++#include "aufs.h" ++ ++/* added into drivers/block/loop.c */ ++static struct file *(*backing_file_func)(struct super_block *sb); ++ ++/* ++ * test if two lower dentries have overlapping branches. ++ */ ++int au_test_loopback_overlap(struct super_block *sb, struct dentry *h_adding) ++{ ++ struct super_block *h_sb; ++ struct file *backing_file; ++ ++ if (unlikely(!backing_file_func)) { ++ /* don't load "loop" module here */ ++ backing_file_func = symbol_get(loop_backing_file); ++ if (unlikely(!backing_file_func)) ++ /* "loop" module is not loaded */ ++ return 0; ++ } ++ ++ h_sb = h_adding->d_sb; ++ backing_file = backing_file_func(h_sb); ++ if (!backing_file) ++ return 0; ++ ++ h_adding = backing_file->f_path.dentry; ++ /* ++ * h_adding can be local NFS. ++ * in this case aufs cannot detect the loop. ++ */ ++ if (unlikely(h_adding->d_sb == sb)) ++ return 1; ++ return !!au_test_subdir(h_adding, sb->s_root); ++} ++ ++/* true if a kernel thread named 'loop[0-9].*' accesses a file */ ++int au_test_loopback_kthread(void) ++{ ++ int ret; ++ struct task_struct *tsk = current; ++ char c, comm[sizeof(tsk->comm)]; ++ ++ ret = 0; ++ if (tsk->flags & PF_KTHREAD) { ++ get_task_comm(comm, tsk); ++ c = comm[4]; ++ ret = ('0' <= c && c <= '9' ++ && !strncmp(comm, "loop", 4)); ++ } ++ ++ return ret; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++#define au_warn_loopback_step 16 ++static int au_warn_loopback_nelem = au_warn_loopback_step; ++static unsigned long *au_warn_loopback_array; ++ ++void au_warn_loopback(struct super_block *h_sb) ++{ ++ int i, new_nelem; ++ unsigned long *a, magic; ++ static DEFINE_SPINLOCK(spin); ++ ++ magic = h_sb->s_magic; ++ spin_lock(&spin); ++ a = au_warn_loopback_array; ++ for (i = 0; i < au_warn_loopback_nelem && *a; i++) ++ if (a[i] == magic) { ++ spin_unlock(&spin); ++ return; ++ } ++ ++ /* h_sb is new to us, print it */ ++ if (i < au_warn_loopback_nelem) { ++ a[i] = magic; ++ goto pr; ++ } ++ ++ /* expand the array */ ++ new_nelem = au_warn_loopback_nelem + au_warn_loopback_step; ++ a = au_kzrealloc(au_warn_loopback_array, ++ au_warn_loopback_nelem * sizeof(unsigned long), ++ new_nelem * sizeof(unsigned long), GFP_ATOMIC, ++ /*may_shrink*/0); ++ if (a) { ++ au_warn_loopback_nelem = new_nelem; ++ au_warn_loopback_array = a; ++ a[i] = magic; ++ goto pr; ++ } ++ ++ spin_unlock(&spin); ++ AuWarn1("realloc failed, ignored\n"); ++ return; ++ ++pr: ++ spin_unlock(&spin); ++ pr_warn("you may want to try another patch for loopback file " ++ "on %s(0x%lx) branch\n", au_sbtype(h_sb), magic); ++} ++ ++int au_loopback_init(void) ++{ ++ int err; ++ struct super_block *sb __maybe_unused; ++ ++ BUILD_BUG_ON(sizeof(sb->s_magic) != sizeof(unsigned long)); ++ ++ err = 0; ++ au_warn_loopback_array = kcalloc(au_warn_loopback_step, ++ sizeof(unsigned long), GFP_NOFS); ++ if (unlikely(!au_warn_loopback_array)) ++ err = -ENOMEM; ++ ++ return err; ++} ++ ++void au_loopback_fin(void) ++{ ++ if (backing_file_func) ++ symbol_put(loop_backing_file); ++ kfree(au_warn_loopback_array); ++} +diff -Naur null/fs/aufs/loop.h linux-4.15/fs/aufs/loop.h +--- /dev/null ++++ linux-4.15/fs/aufs/loop.h 2018-02-25 02:38:09.203738006 +0100 +@@ -0,0 +1,52 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * support for loopback mount as a branch ++ */ ++ ++#ifndef __AUFS_LOOP_H__ ++#define __AUFS_LOOP_H__ ++ ++#ifdef __KERNEL__ ++ ++struct dentry; ++struct super_block; ++ ++#ifdef CONFIG_AUFS_BDEV_LOOP ++/* drivers/block/loop.c */ ++struct file *loop_backing_file(struct super_block *sb); ++ ++/* loop.c */ ++int au_test_loopback_overlap(struct super_block *sb, struct dentry *h_adding); ++int au_test_loopback_kthread(void); ++void au_warn_loopback(struct super_block *h_sb); ++ ++int au_loopback_init(void); ++void au_loopback_fin(void); ++#else ++AuStubInt0(au_test_loopback_overlap, struct super_block *sb, ++ struct dentry *h_adding) ++AuStubInt0(au_test_loopback_kthread, void) ++AuStubVoid(au_warn_loopback, struct super_block *h_sb) ++ ++AuStubInt0(au_loopback_init, void) ++AuStubVoid(au_loopback_fin, void) ++#endif /* BLK_DEV_LOOP */ ++ ++#endif /* __KERNEL__ */ ++#endif /* __AUFS_LOOP_H__ */ +diff -Naur null/fs/aufs/magic.mk linux-4.15/fs/aufs/magic.mk +--- /dev/null ++++ linux-4.15/fs/aufs/magic.mk 2018-02-25 02:38:09.203738006 +0100 +@@ -0,0 +1,31 @@ ++# SPDX-License-Identifier: GPL-2.0 ++ ++# defined in ${srctree}/fs/fuse/inode.c ++# tristate ++ifdef CONFIG_FUSE_FS ++ccflags-y += -DFUSE_SUPER_MAGIC=0x65735546 ++endif ++ ++# defined in ${srctree}/fs/xfs/xfs_sb.h ++# tristate ++ifdef CONFIG_XFS_FS ++ccflags-y += -DXFS_SB_MAGIC=0x58465342 ++endif ++ ++# defined in ${srctree}/fs/configfs/mount.c ++# tristate ++ifdef CONFIG_CONFIGFS_FS ++ccflags-y += -DCONFIGFS_MAGIC=0x62656570 ++endif ++ ++# defined in ${srctree}/fs/ubifs/ubifs.h ++# tristate ++ifdef CONFIG_UBIFS_FS ++ccflags-y += -DUBIFS_SUPER_MAGIC=0x24051905 ++endif ++ ++# defined in ${srctree}/fs/hfsplus/hfsplus_raw.h ++# tristate ++ifdef CONFIG_HFSPLUS_FS ++ccflags-y += -DHFSPLUS_SUPER_MAGIC=0x482b ++endif +diff -Naur null/fs/aufs/Makefile linux-4.15/fs/aufs/Makefile +--- /dev/null ++++ linux-4.15/fs/aufs/Makefile 2018-02-25 02:38:09.197737361 +0100 +@@ -0,0 +1,46 @@ ++# SPDX-License-Identifier: GPL-2.0 ++ ++include ${src}/magic.mk ++ifeq (${CONFIG_AUFS_FS},m) ++include ${src}/conf.mk ++endif ++-include ${src}/priv_def.mk ++ ++# cf. include/linux/kernel.h ++# enable pr_debug ++ccflags-y += -DDEBUG ++# sparse requires the full pathname ++ifdef M ++ccflags-y += -include ${M}/../../include/uapi/linux/aufs_type.h ++else ++ccflags-y += -include ${srctree}/include/uapi/linux/aufs_type.h ++endif ++ ++obj-$(CONFIG_AUFS_FS) += aufs.o ++aufs-y := module.o sbinfo.o super.o branch.o xino.o sysaufs.o opts.o \ ++ wkq.o vfsub.o dcsub.o \ ++ cpup.o whout.o wbr_policy.o \ ++ dinfo.o dentry.o \ ++ dynop.o \ ++ finfo.o file.o f_op.o \ ++ dir.o vdir.o \ ++ iinfo.o inode.o i_op.o i_op_add.o i_op_del.o i_op_ren.o \ ++ mvdown.o ioctl.o ++ ++# all are boolean ++aufs-$(CONFIG_PROC_FS) += procfs.o plink.o ++aufs-$(CONFIG_SYSFS) += sysfs.o ++aufs-$(CONFIG_DEBUG_FS) += dbgaufs.o ++aufs-$(CONFIG_AUFS_BDEV_LOOP) += loop.o ++aufs-$(CONFIG_AUFS_HNOTIFY) += hnotify.o ++aufs-$(CONFIG_AUFS_HFSNOTIFY) += hfsnotify.o ++aufs-$(CONFIG_AUFS_EXPORT) += export.o ++aufs-$(CONFIG_AUFS_XATTR) += xattr.o ++aufs-$(CONFIG_FS_POSIX_ACL) += posix_acl.o ++aufs-$(CONFIG_AUFS_DIRREN) += dirren.o ++aufs-$(CONFIG_AUFS_FHSM) += fhsm.o ++aufs-$(CONFIG_AUFS_POLL) += poll.o ++aufs-$(CONFIG_AUFS_RDU) += rdu.o ++aufs-$(CONFIG_AUFS_BR_HFSPLUS) += hfsplus.o ++aufs-$(CONFIG_AUFS_DEBUG) += debug.o ++aufs-$(CONFIG_AUFS_MAGIC_SYSRQ) += sysrq.o +diff -Naur null/fs/aufs/module.c linux-4.15/fs/aufs/module.c +--- /dev/null ++++ linux-4.15/fs/aufs/module.c 2018-02-25 02:38:09.203738006 +0100 +@@ -0,0 +1,266 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * module global variables and operations ++ */ ++ ++#include ++#include ++#include "aufs.h" ++ ++/* shrinkable realloc */ ++void *au_krealloc(void *p, unsigned int new_sz, gfp_t gfp, int may_shrink) ++{ ++ size_t sz; ++ int diff; ++ ++ sz = 0; ++ diff = -1; ++ if (p) { ++#if 0 /* unused */ ++ if (!new_sz) { ++ kfree(p); ++ p = NULL; ++ goto out; ++ } ++#else ++ AuDebugOn(!new_sz); ++#endif ++ sz = ksize(p); ++ diff = au_kmidx_sub(sz, new_sz); ++ } ++ if (sz && !diff) ++ goto out; ++ ++ if (sz < new_sz) ++ /* expand or SLOB */ ++ p = krealloc(p, new_sz, gfp); ++ else if (new_sz < sz && may_shrink) { ++ /* shrink */ ++ void *q; ++ ++ q = kmalloc(new_sz, gfp); ++ if (q) { ++ if (p) { ++ memcpy(q, p, new_sz); ++ kfree(p); ++ } ++ p = q; ++ } else ++ p = NULL; ++ } ++ ++out: ++ return p; ++} ++ ++void *au_kzrealloc(void *p, unsigned int nused, unsigned int new_sz, gfp_t gfp, ++ int may_shrink) ++{ ++ p = au_krealloc(p, new_sz, gfp, may_shrink); ++ if (p && new_sz > nused) ++ memset(p + nused, 0, new_sz - nused); ++ return p; ++} ++ ++/* ---------------------------------------------------------------------- */ ++/* ++ * aufs caches ++ */ ++struct kmem_cache *au_cache[AuCache_Last]; ++ ++static void au_cache_fin(void) ++{ ++ int i; ++ ++ /* ++ * Make sure all delayed rcu free inodes are flushed before we ++ * destroy cache. ++ */ ++ rcu_barrier(); ++ ++ /* excluding AuCache_HNOTIFY */ ++ BUILD_BUG_ON(AuCache_HNOTIFY + 1 != AuCache_Last); ++ for (i = 0; i < AuCache_HNOTIFY; i++) { ++ kmem_cache_destroy(au_cache[i]); ++ au_cache[i] = NULL; ++ } ++} ++ ++static int __init au_cache_init(void) ++{ ++ au_cache[AuCache_DINFO] = AuCacheCtor(au_dinfo, au_di_init_once); ++ if (au_cache[AuCache_DINFO]) ++ /* SLAB_DESTROY_BY_RCU */ ++ au_cache[AuCache_ICNTNR] = AuCacheCtor(au_icntnr, ++ au_icntnr_init_once); ++ if (au_cache[AuCache_ICNTNR]) ++ au_cache[AuCache_FINFO] = AuCacheCtor(au_finfo, ++ au_fi_init_once); ++ if (au_cache[AuCache_FINFO]) ++ au_cache[AuCache_VDIR] = AuCache(au_vdir); ++ if (au_cache[AuCache_VDIR]) ++ au_cache[AuCache_DEHSTR] = AuCache(au_vdir_dehstr); ++ if (au_cache[AuCache_DEHSTR]) ++ return 0; ++ ++ au_cache_fin(); ++ return -ENOMEM; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++int au_dir_roflags; ++ ++#ifdef CONFIG_AUFS_SBILIST ++/* ++ * iterate_supers_type() doesn't protect us from ++ * remounting (branch management) ++ */ ++struct hlist_bl_head au_sbilist; ++#endif ++ ++/* ++ * functions for module interface. ++ */ ++MODULE_LICENSE("GPL"); ++/* MODULE_LICENSE("GPL v2"); */ ++MODULE_AUTHOR("Junjiro R. Okajima "); ++MODULE_DESCRIPTION(AUFS_NAME ++ " -- Advanced multi layered unification filesystem"); ++MODULE_VERSION(AUFS_VERSION); ++MODULE_ALIAS_FS(AUFS_NAME); ++ ++/* this module parameter has no meaning when SYSFS is disabled */ ++int sysaufs_brs = 1; ++MODULE_PARM_DESC(brs, "use /fs/aufs/si_*/brN"); ++module_param_named(brs, sysaufs_brs, int, S_IRUGO); ++ ++/* this module parameter has no meaning when USER_NS is disabled */ ++bool au_userns; ++MODULE_PARM_DESC(allow_userns, "allow unprivileged to mount under userns"); ++module_param_named(allow_userns, au_userns, bool, S_IRUGO); ++ ++/* ---------------------------------------------------------------------- */ ++ ++static char au_esc_chars[0x20 + 3]; /* 0x01-0x20, backslash, del, and NULL */ ++ ++int au_seq_path(struct seq_file *seq, struct path *path) ++{ ++ int err; ++ ++ err = seq_path(seq, path, au_esc_chars); ++ if (err >= 0) ++ err = 0; ++ else ++ err = -ENOMEM; ++ ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static int __init aufs_init(void) ++{ ++ int err, i; ++ char *p; ++ ++ p = au_esc_chars; ++ for (i = 1; i <= ' '; i++) ++ *p++ = i; ++ *p++ = '\\'; ++ *p++ = '\x7f'; ++ *p = 0; ++ ++ au_dir_roflags = au_file_roflags(O_DIRECTORY | O_LARGEFILE); ++ ++ memcpy(aufs_iop_nogetattr, aufs_iop, sizeof(aufs_iop)); ++ for (i = 0; i < AuIop_Last; i++) ++ aufs_iop_nogetattr[i].getattr = NULL; ++ ++ memset(au_cache, 0, sizeof(au_cache)); /* including hnotify */ ++ ++ au_sbilist_init(); ++ sysaufs_brs_init(); ++ au_debug_init(); ++ au_dy_init(); ++ err = sysaufs_init(); ++ if (unlikely(err)) ++ goto out; ++ err = au_procfs_init(); ++ if (unlikely(err)) ++ goto out_sysaufs; ++ err = au_wkq_init(); ++ if (unlikely(err)) ++ goto out_procfs; ++ err = au_loopback_init(); ++ if (unlikely(err)) ++ goto out_wkq; ++ err = au_hnotify_init(); ++ if (unlikely(err)) ++ goto out_loopback; ++ err = au_sysrq_init(); ++ if (unlikely(err)) ++ goto out_hin; ++ err = au_cache_init(); ++ if (unlikely(err)) ++ goto out_sysrq; ++ ++ aufs_fs_type.fs_flags |= au_userns ? FS_USERNS_MOUNT : 0; ++ err = register_filesystem(&aufs_fs_type); ++ if (unlikely(err)) ++ goto out_cache; ++ ++ /* since we define pr_fmt, call printk directly */ ++ printk(KERN_INFO AUFS_NAME " " AUFS_VERSION "\n"); ++ goto out; /* success */ ++ ++out_cache: ++ au_cache_fin(); ++out_sysrq: ++ au_sysrq_fin(); ++out_hin: ++ au_hnotify_fin(); ++out_loopback: ++ au_loopback_fin(); ++out_wkq: ++ au_wkq_fin(); ++out_procfs: ++ au_procfs_fin(); ++out_sysaufs: ++ sysaufs_fin(); ++ au_dy_fin(); ++out: ++ return err; ++} ++ ++static void __exit aufs_exit(void) ++{ ++ unregister_filesystem(&aufs_fs_type); ++ au_cache_fin(); ++ au_sysrq_fin(); ++ au_hnotify_fin(); ++ au_loopback_fin(); ++ au_wkq_fin(); ++ au_procfs_fin(); ++ sysaufs_fin(); ++ au_dy_fin(); ++} ++ ++module_init(aufs_init); ++module_exit(aufs_exit); +diff -Naur null/fs/aufs/module.h linux-4.15/fs/aufs/module.h +--- /dev/null ++++ linux-4.15/fs/aufs/module.h 2018-02-25 02:38:09.203738006 +0100 +@@ -0,0 +1,101 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * module initialization and module-global ++ */ ++ ++#ifndef __AUFS_MODULE_H__ ++#define __AUFS_MODULE_H__ ++ ++#ifdef __KERNEL__ ++ ++#include ++ ++struct path; ++struct seq_file; ++ ++/* module parameters */ ++extern int sysaufs_brs; ++extern bool au_userns; ++ ++/* ---------------------------------------------------------------------- */ ++ ++extern int au_dir_roflags; ++ ++void *au_krealloc(void *p, unsigned int new_sz, gfp_t gfp, int may_shrink); ++void *au_kzrealloc(void *p, unsigned int nused, unsigned int new_sz, gfp_t gfp, ++ int may_shrink); ++ ++static inline int au_kmidx_sub(size_t sz, size_t new_sz) ++{ ++#ifndef CONFIG_SLOB ++ return kmalloc_index(sz) - kmalloc_index(new_sz); ++#else ++ return -1; /* SLOB is untested */ ++#endif ++} ++ ++int au_seq_path(struct seq_file *seq, struct path *path); ++ ++#ifdef CONFIG_PROC_FS ++/* procfs.c */ ++int __init au_procfs_init(void); ++void au_procfs_fin(void); ++#else ++AuStubInt0(au_procfs_init, void); ++AuStubVoid(au_procfs_fin, void); ++#endif ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* kmem cache */ ++enum { ++ AuCache_DINFO, ++ AuCache_ICNTNR, ++ AuCache_FINFO, ++ AuCache_VDIR, ++ AuCache_DEHSTR, ++ AuCache_HNOTIFY, /* must be last */ ++ AuCache_Last ++}; ++ ++extern struct kmem_cache *au_cache[AuCache_Last]; ++ ++#define AuCacheFlags (SLAB_RECLAIM_ACCOUNT | SLAB_MEM_SPREAD) ++#define AuCache(type) KMEM_CACHE(type, AuCacheFlags) ++#define AuCacheCtor(type, ctor) \ ++ kmem_cache_create(#type, sizeof(struct type), \ ++ __alignof__(struct type), AuCacheFlags, ctor) ++ ++#define AuCacheFuncs(name, index) \ ++static inline struct au_##name *au_cache_alloc_##name(void) \ ++{ return kmem_cache_alloc(au_cache[AuCache_##index], GFP_NOFS); } \ ++static inline void au_cache_free_##name(struct au_##name *p) \ ++{ kmem_cache_free(au_cache[AuCache_##index], p); } ++ ++AuCacheFuncs(dinfo, DINFO); ++AuCacheFuncs(icntnr, ICNTNR); ++AuCacheFuncs(finfo, FINFO); ++AuCacheFuncs(vdir, VDIR); ++AuCacheFuncs(vdir_dehstr, DEHSTR); ++#ifdef CONFIG_AUFS_HNOTIFY ++AuCacheFuncs(hnotify, HNOTIFY); ++#endif ++ ++#endif /* __KERNEL__ */ ++#endif /* __AUFS_MODULE_H__ */ +diff -Naur null/fs/aufs/mvdown.c linux-4.15/fs/aufs/mvdown.c +--- /dev/null ++++ linux-4.15/fs/aufs/mvdown.c 2018-02-25 02:38:09.203738006 +0100 +@@ -0,0 +1,704 @@ ++/* ++ * Copyright (C) 2011-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * move-down, opposite of copy-up ++ */ ++ ++#include "aufs.h" ++ ++struct au_mvd_args { ++ struct { ++ struct super_block *h_sb; ++ struct dentry *h_parent; ++ struct au_hinode *hdir; ++ struct inode *h_dir, *h_inode; ++ struct au_pin pin; ++ } info[AUFS_MVDOWN_NARRAY]; ++ ++ struct aufs_mvdown mvdown; ++ struct dentry *dentry, *parent; ++ struct inode *inode, *dir; ++ struct super_block *sb; ++ aufs_bindex_t bopq, bwh, bfound; ++ unsigned char rename_lock; ++}; ++ ++#define mvd_errno mvdown.au_errno ++#define mvd_bsrc mvdown.stbr[AUFS_MVDOWN_UPPER].bindex ++#define mvd_src_brid mvdown.stbr[AUFS_MVDOWN_UPPER].brid ++#define mvd_bdst mvdown.stbr[AUFS_MVDOWN_LOWER].bindex ++#define mvd_dst_brid mvdown.stbr[AUFS_MVDOWN_LOWER].brid ++ ++#define mvd_h_src_sb info[AUFS_MVDOWN_UPPER].h_sb ++#define mvd_h_src_parent info[AUFS_MVDOWN_UPPER].h_parent ++#define mvd_hdir_src info[AUFS_MVDOWN_UPPER].hdir ++#define mvd_h_src_dir info[AUFS_MVDOWN_UPPER].h_dir ++#define mvd_h_src_inode info[AUFS_MVDOWN_UPPER].h_inode ++#define mvd_pin_src info[AUFS_MVDOWN_UPPER].pin ++ ++#define mvd_h_dst_sb info[AUFS_MVDOWN_LOWER].h_sb ++#define mvd_h_dst_parent info[AUFS_MVDOWN_LOWER].h_parent ++#define mvd_hdir_dst info[AUFS_MVDOWN_LOWER].hdir ++#define mvd_h_dst_dir info[AUFS_MVDOWN_LOWER].h_dir ++#define mvd_h_dst_inode info[AUFS_MVDOWN_LOWER].h_inode ++#define mvd_pin_dst info[AUFS_MVDOWN_LOWER].pin ++ ++#define AU_MVD_PR(flag, ...) do { \ ++ if (flag) \ ++ pr_err(__VA_ARGS__); \ ++ } while (0) ++ ++static int find_lower_writable(struct au_mvd_args *a) ++{ ++ struct super_block *sb; ++ aufs_bindex_t bindex, bbot; ++ struct au_branch *br; ++ ++ sb = a->sb; ++ bindex = a->mvd_bsrc; ++ bbot = au_sbbot(sb); ++ if (a->mvdown.flags & AUFS_MVDOWN_FHSM_LOWER) ++ for (bindex++; bindex <= bbot; bindex++) { ++ br = au_sbr(sb, bindex); ++ if (au_br_fhsm(br->br_perm) ++ && !sb_rdonly(au_br_sb(br))) ++ return bindex; ++ } ++ else if (!(a->mvdown.flags & AUFS_MVDOWN_ROLOWER)) ++ for (bindex++; bindex <= bbot; bindex++) { ++ br = au_sbr(sb, bindex); ++ if (!au_br_rdonly(br)) ++ return bindex; ++ } ++ else ++ for (bindex++; bindex <= bbot; bindex++) { ++ br = au_sbr(sb, bindex); ++ if (!sb_rdonly(au_br_sb(br))) { ++ if (au_br_rdonly(br)) ++ a->mvdown.flags ++ |= AUFS_MVDOWN_ROLOWER_R; ++ return bindex; ++ } ++ } ++ ++ return -1; ++} ++ ++/* make the parent dir on bdst */ ++static int au_do_mkdir(const unsigned char dmsg, struct au_mvd_args *a) ++{ ++ int err; ++ ++ err = 0; ++ a->mvd_hdir_src = au_hi(a->dir, a->mvd_bsrc); ++ a->mvd_hdir_dst = au_hi(a->dir, a->mvd_bdst); ++ a->mvd_h_src_parent = au_h_dptr(a->parent, a->mvd_bsrc); ++ a->mvd_h_dst_parent = NULL; ++ if (au_dbbot(a->parent) >= a->mvd_bdst) ++ a->mvd_h_dst_parent = au_h_dptr(a->parent, a->mvd_bdst); ++ if (!a->mvd_h_dst_parent) { ++ err = au_cpdown_dirs(a->dentry, a->mvd_bdst); ++ if (unlikely(err)) { ++ AU_MVD_PR(dmsg, "cpdown_dirs failed\n"); ++ goto out; ++ } ++ a->mvd_h_dst_parent = au_h_dptr(a->parent, a->mvd_bdst); ++ } ++ ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++/* lock them all */ ++static int au_do_lock(const unsigned char dmsg, struct au_mvd_args *a) ++{ ++ int err; ++ struct dentry *h_trap; ++ ++ a->mvd_h_src_sb = au_sbr_sb(a->sb, a->mvd_bsrc); ++ a->mvd_h_dst_sb = au_sbr_sb(a->sb, a->mvd_bdst); ++ err = au_pin(&a->mvd_pin_dst, a->dentry, a->mvd_bdst, ++ au_opt_udba(a->sb), ++ AuPin_MNT_WRITE | AuPin_DI_LOCKED); ++ AuTraceErr(err); ++ if (unlikely(err)) { ++ AU_MVD_PR(dmsg, "pin_dst failed\n"); ++ goto out; ++ } ++ ++ if (a->mvd_h_src_sb != a->mvd_h_dst_sb) { ++ a->rename_lock = 0; ++ au_pin_init(&a->mvd_pin_src, a->dentry, a->mvd_bsrc, ++ AuLsc_DI_PARENT, AuLsc_I_PARENT3, ++ au_opt_udba(a->sb), ++ AuPin_MNT_WRITE | AuPin_DI_LOCKED); ++ err = au_do_pin(&a->mvd_pin_src); ++ AuTraceErr(err); ++ a->mvd_h_src_dir = d_inode(a->mvd_h_src_parent); ++ if (unlikely(err)) { ++ AU_MVD_PR(dmsg, "pin_src failed\n"); ++ goto out_dst; ++ } ++ goto out; /* success */ ++ } ++ ++ a->rename_lock = 1; ++ au_pin_hdir_unlock(&a->mvd_pin_dst); ++ err = au_pin(&a->mvd_pin_src, a->dentry, a->mvd_bsrc, ++ au_opt_udba(a->sb), ++ AuPin_MNT_WRITE | AuPin_DI_LOCKED); ++ AuTraceErr(err); ++ a->mvd_h_src_dir = d_inode(a->mvd_h_src_parent); ++ if (unlikely(err)) { ++ AU_MVD_PR(dmsg, "pin_src failed\n"); ++ au_pin_hdir_lock(&a->mvd_pin_dst); ++ goto out_dst; ++ } ++ au_pin_hdir_unlock(&a->mvd_pin_src); ++ h_trap = vfsub_lock_rename(a->mvd_h_src_parent, a->mvd_hdir_src, ++ a->mvd_h_dst_parent, a->mvd_hdir_dst); ++ if (h_trap) { ++ err = (h_trap != a->mvd_h_src_parent); ++ if (err) ++ err = (h_trap != a->mvd_h_dst_parent); ++ } ++ BUG_ON(err); /* it should never happen */ ++ if (unlikely(a->mvd_h_src_dir != au_pinned_h_dir(&a->mvd_pin_src))) { ++ err = -EBUSY; ++ AuTraceErr(err); ++ vfsub_unlock_rename(a->mvd_h_src_parent, a->mvd_hdir_src, ++ a->mvd_h_dst_parent, a->mvd_hdir_dst); ++ au_pin_hdir_lock(&a->mvd_pin_src); ++ au_unpin(&a->mvd_pin_src); ++ au_pin_hdir_lock(&a->mvd_pin_dst); ++ goto out_dst; ++ } ++ goto out; /* success */ ++ ++out_dst: ++ au_unpin(&a->mvd_pin_dst); ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++static void au_do_unlock(const unsigned char dmsg, struct au_mvd_args *a) ++{ ++ if (!a->rename_lock) ++ au_unpin(&a->mvd_pin_src); ++ else { ++ vfsub_unlock_rename(a->mvd_h_src_parent, a->mvd_hdir_src, ++ a->mvd_h_dst_parent, a->mvd_hdir_dst); ++ au_pin_hdir_lock(&a->mvd_pin_src); ++ au_unpin(&a->mvd_pin_src); ++ au_pin_hdir_lock(&a->mvd_pin_dst); ++ } ++ au_unpin(&a->mvd_pin_dst); ++} ++ ++/* copy-down the file */ ++static int au_do_cpdown(const unsigned char dmsg, struct au_mvd_args *a) ++{ ++ int err; ++ struct au_cp_generic cpg = { ++ .dentry = a->dentry, ++ .bdst = a->mvd_bdst, ++ .bsrc = a->mvd_bsrc, ++ .len = -1, ++ .pin = &a->mvd_pin_dst, ++ .flags = AuCpup_DTIME | AuCpup_HOPEN ++ }; ++ ++ AuDbg("b%d, b%d\n", cpg.bsrc, cpg.bdst); ++ if (a->mvdown.flags & AUFS_MVDOWN_OWLOWER) ++ au_fset_cpup(cpg.flags, OVERWRITE); ++ if (a->mvdown.flags & AUFS_MVDOWN_ROLOWER) ++ au_fset_cpup(cpg.flags, RWDST); ++ err = au_sio_cpdown_simple(&cpg); ++ if (unlikely(err)) ++ AU_MVD_PR(dmsg, "cpdown failed\n"); ++ ++ AuTraceErr(err); ++ return err; ++} ++ ++/* ++ * unlink the whiteout on bdst if exist which may be created by UDBA while we ++ * were sleeping ++ */ ++static int au_do_unlink_wh(const unsigned char dmsg, struct au_mvd_args *a) ++{ ++ int err; ++ struct path h_path; ++ struct au_branch *br; ++ struct inode *delegated; ++ ++ br = au_sbr(a->sb, a->mvd_bdst); ++ h_path.dentry = au_wh_lkup(a->mvd_h_dst_parent, &a->dentry->d_name, br); ++ err = PTR_ERR(h_path.dentry); ++ if (IS_ERR(h_path.dentry)) { ++ AU_MVD_PR(dmsg, "wh_lkup failed\n"); ++ goto out; ++ } ++ ++ err = 0; ++ if (d_is_positive(h_path.dentry)) { ++ h_path.mnt = au_br_mnt(br); ++ delegated = NULL; ++ err = vfsub_unlink(d_inode(a->mvd_h_dst_parent), &h_path, ++ &delegated, /*force*/0); ++ if (unlikely(err == -EWOULDBLOCK)) { ++ pr_warn("cannot retry for NFSv4 delegation" ++ " for an internal unlink\n"); ++ iput(delegated); ++ } ++ if (unlikely(err)) ++ AU_MVD_PR(dmsg, "wh_unlink failed\n"); ++ } ++ dput(h_path.dentry); ++ ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++/* ++ * unlink the topmost h_dentry ++ */ ++static int au_do_unlink(const unsigned char dmsg, struct au_mvd_args *a) ++{ ++ int err; ++ struct path h_path; ++ struct inode *delegated; ++ ++ h_path.mnt = au_sbr_mnt(a->sb, a->mvd_bsrc); ++ h_path.dentry = au_h_dptr(a->dentry, a->mvd_bsrc); ++ delegated = NULL; ++ err = vfsub_unlink(a->mvd_h_src_dir, &h_path, &delegated, /*force*/0); ++ if (unlikely(err == -EWOULDBLOCK)) { ++ pr_warn("cannot retry for NFSv4 delegation" ++ " for an internal unlink\n"); ++ iput(delegated); ++ } ++ if (unlikely(err)) ++ AU_MVD_PR(dmsg, "unlink failed\n"); ++ ++ AuTraceErr(err); ++ return err; ++} ++ ++/* Since mvdown succeeded, we ignore an error of this function */ ++static void au_do_stfs(const unsigned char dmsg, struct au_mvd_args *a) ++{ ++ int err; ++ struct au_branch *br; ++ ++ a->mvdown.flags |= AUFS_MVDOWN_STFS_FAILED; ++ br = au_sbr(a->sb, a->mvd_bsrc); ++ err = au_br_stfs(br, &a->mvdown.stbr[AUFS_MVDOWN_UPPER].stfs); ++ if (!err) { ++ br = au_sbr(a->sb, a->mvd_bdst); ++ a->mvdown.stbr[AUFS_MVDOWN_LOWER].brid = br->br_id; ++ err = au_br_stfs(br, &a->mvdown.stbr[AUFS_MVDOWN_LOWER].stfs); ++ } ++ if (!err) ++ a->mvdown.flags &= ~AUFS_MVDOWN_STFS_FAILED; ++ else ++ AU_MVD_PR(dmsg, "statfs failed (%d), ignored\n", err); ++} ++ ++/* ++ * copy-down the file and unlink the bsrc file. ++ * - unlink the bdst whout if exist ++ * - copy-down the file (with whtmp name and rename) ++ * - unlink the bsrc file ++ */ ++static int au_do_mvdown(const unsigned char dmsg, struct au_mvd_args *a) ++{ ++ int err; ++ ++ err = au_do_mkdir(dmsg, a); ++ if (!err) ++ err = au_do_lock(dmsg, a); ++ if (unlikely(err)) ++ goto out; ++ ++ /* ++ * do not revert the activities we made on bdst since they should be ++ * harmless in aufs. ++ */ ++ ++ err = au_do_cpdown(dmsg, a); ++ if (!err) ++ err = au_do_unlink_wh(dmsg, a); ++ if (!err && !(a->mvdown.flags & AUFS_MVDOWN_KUPPER)) ++ err = au_do_unlink(dmsg, a); ++ if (unlikely(err)) ++ goto out_unlock; ++ ++ AuDbg("%pd2, 0x%x, %d --> %d\n", ++ a->dentry, a->mvdown.flags, a->mvd_bsrc, a->mvd_bdst); ++ if (find_lower_writable(a) < 0) ++ a->mvdown.flags |= AUFS_MVDOWN_BOTTOM; ++ ++ if (a->mvdown.flags & AUFS_MVDOWN_STFS) ++ au_do_stfs(dmsg, a); ++ ++ /* maintain internal array */ ++ if (!(a->mvdown.flags & AUFS_MVDOWN_KUPPER)) { ++ au_set_h_dptr(a->dentry, a->mvd_bsrc, NULL); ++ au_set_dbtop(a->dentry, a->mvd_bdst); ++ au_set_h_iptr(a->inode, a->mvd_bsrc, NULL, /*flags*/0); ++ au_set_ibtop(a->inode, a->mvd_bdst); ++ } else { ++ /* hide the lower */ ++ au_set_h_dptr(a->dentry, a->mvd_bdst, NULL); ++ au_set_dbbot(a->dentry, a->mvd_bsrc); ++ au_set_h_iptr(a->inode, a->mvd_bdst, NULL, /*flags*/0); ++ au_set_ibbot(a->inode, a->mvd_bsrc); ++ } ++ if (au_dbbot(a->dentry) < a->mvd_bdst) ++ au_set_dbbot(a->dentry, a->mvd_bdst); ++ if (au_ibbot(a->inode) < a->mvd_bdst) ++ au_set_ibbot(a->inode, a->mvd_bdst); ++ ++out_unlock: ++ au_do_unlock(dmsg, a); ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* make sure the file is idle */ ++static int au_mvd_args_busy(const unsigned char dmsg, struct au_mvd_args *a) ++{ ++ int err, plinked; ++ ++ err = 0; ++ plinked = !!au_opt_test(au_mntflags(a->sb), PLINK); ++ if (au_dbtop(a->dentry) == a->mvd_bsrc ++ && au_dcount(a->dentry) == 1 ++ && atomic_read(&a->inode->i_count) == 1 ++ /* && a->mvd_h_src_inode->i_nlink == 1 */ ++ && (!plinked || !au_plink_test(a->inode)) ++ && a->inode->i_nlink == 1) ++ goto out; ++ ++ err = -EBUSY; ++ AU_MVD_PR(dmsg, ++ "b%d, d{b%d, c%d?}, i{c%d?, l%u}, hi{l%u}, p{%d, %d}\n", ++ a->mvd_bsrc, au_dbtop(a->dentry), au_dcount(a->dentry), ++ atomic_read(&a->inode->i_count), a->inode->i_nlink, ++ a->mvd_h_src_inode->i_nlink, ++ plinked, plinked ? au_plink_test(a->inode) : 0); ++ ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++/* make sure the parent dir is fine */ ++static int au_mvd_args_parent(const unsigned char dmsg, ++ struct au_mvd_args *a) ++{ ++ int err; ++ aufs_bindex_t bindex; ++ ++ err = 0; ++ if (unlikely(au_alive_dir(a->parent))) { ++ err = -ENOENT; ++ AU_MVD_PR(dmsg, "parent dir is dead\n"); ++ goto out; ++ } ++ ++ a->bopq = au_dbdiropq(a->parent); ++ bindex = au_wbr_nonopq(a->dentry, a->mvd_bdst); ++ AuDbg("b%d\n", bindex); ++ if (unlikely((bindex >= 0 && bindex < a->mvd_bdst) ++ || (a->bopq != -1 && a->bopq < a->mvd_bdst))) { ++ err = -EINVAL; ++ a->mvd_errno = EAU_MVDOWN_OPAQUE; ++ AU_MVD_PR(dmsg, "ancestor is opaque b%d, b%d\n", ++ a->bopq, a->mvd_bdst); ++ } ++ ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++static int au_mvd_args_intermediate(const unsigned char dmsg, ++ struct au_mvd_args *a) ++{ ++ int err; ++ struct au_dinfo *dinfo, *tmp; ++ ++ /* lookup the next lower positive entry */ ++ err = -ENOMEM; ++ tmp = au_di_alloc(a->sb, AuLsc_DI_TMP); ++ if (unlikely(!tmp)) ++ goto out; ++ ++ a->bfound = -1; ++ a->bwh = -1; ++ dinfo = au_di(a->dentry); ++ au_di_cp(tmp, dinfo); ++ au_di_swap(tmp, dinfo); ++ ++ /* returns the number of positive dentries */ ++ err = au_lkup_dentry(a->dentry, a->mvd_bsrc + 1, ++ /* AuLkup_IGNORE_PERM */ 0); ++ if (!err) ++ a->bwh = au_dbwh(a->dentry); ++ else if (err > 0) ++ a->bfound = au_dbtop(a->dentry); ++ ++ au_di_swap(tmp, dinfo); ++ au_rw_write_unlock(&tmp->di_rwsem); ++ au_di_free(tmp); ++ if (unlikely(err < 0)) ++ AU_MVD_PR(dmsg, "failed look-up lower\n"); ++ ++ /* ++ * here, we have these cases. ++ * bfound == -1 ++ * no positive dentry under bsrc. there are more sub-cases. ++ * bwh < 0 ++ * there no whiteout, we can safely move-down. ++ * bwh <= bsrc ++ * impossible ++ * bsrc < bwh && bwh < bdst ++ * there is a whiteout on RO branch. cannot proceed. ++ * bwh == bdst ++ * there is a whiteout on the RW target branch. it should ++ * be removed. ++ * bdst < bwh ++ * there is a whiteout somewhere unrelated branch. ++ * -1 < bfound && bfound <= bsrc ++ * impossible. ++ * bfound < bdst ++ * found, but it is on RO branch between bsrc and bdst. cannot ++ * proceed. ++ * bfound == bdst ++ * found, replace it if AUFS_MVDOWN_FORCE is set. otherwise return ++ * error. ++ * bdst < bfound ++ * found, after we create the file on bdst, it will be hidden. ++ */ ++ ++ AuDebugOn(a->bfound == -1 ++ && a->bwh != -1 ++ && a->bwh <= a->mvd_bsrc); ++ AuDebugOn(-1 < a->bfound ++ && a->bfound <= a->mvd_bsrc); ++ ++ err = -EINVAL; ++ if (a->bfound == -1 ++ && a->mvd_bsrc < a->bwh ++ && a->bwh != -1 ++ && a->bwh < a->mvd_bdst) { ++ a->mvd_errno = EAU_MVDOWN_WHITEOUT; ++ AU_MVD_PR(dmsg, "bsrc %d, bdst %d, bfound %d, bwh %d\n", ++ a->mvd_bsrc, a->mvd_bdst, a->bfound, a->bwh); ++ goto out; ++ } else if (a->bfound != -1 && a->bfound < a->mvd_bdst) { ++ a->mvd_errno = EAU_MVDOWN_UPPER; ++ AU_MVD_PR(dmsg, "bdst %d, bfound %d\n", ++ a->mvd_bdst, a->bfound); ++ goto out; ++ } ++ ++ err = 0; /* success */ ++ ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++static int au_mvd_args_exist(const unsigned char dmsg, struct au_mvd_args *a) ++{ ++ int err; ++ ++ err = 0; ++ if (!(a->mvdown.flags & AUFS_MVDOWN_OWLOWER) ++ && a->bfound == a->mvd_bdst) ++ err = -EEXIST; ++ AuTraceErr(err); ++ return err; ++} ++ ++static int au_mvd_args(const unsigned char dmsg, struct au_mvd_args *a) ++{ ++ int err; ++ struct au_branch *br; ++ ++ err = -EISDIR; ++ if (unlikely(S_ISDIR(a->inode->i_mode))) ++ goto out; ++ ++ err = -EINVAL; ++ if (!(a->mvdown.flags & AUFS_MVDOWN_BRID_UPPER)) ++ a->mvd_bsrc = au_ibtop(a->inode); ++ else { ++ a->mvd_bsrc = au_br_index(a->sb, a->mvd_src_brid); ++ if (unlikely(a->mvd_bsrc < 0 ++ || (a->mvd_bsrc < au_dbtop(a->dentry) ++ || au_dbbot(a->dentry) < a->mvd_bsrc ++ || !au_h_dptr(a->dentry, a->mvd_bsrc)) ++ || (a->mvd_bsrc < au_ibtop(a->inode) ++ || au_ibbot(a->inode) < a->mvd_bsrc ++ || !au_h_iptr(a->inode, a->mvd_bsrc)))) { ++ a->mvd_errno = EAU_MVDOWN_NOUPPER; ++ AU_MVD_PR(dmsg, "no upper\n"); ++ goto out; ++ } ++ } ++ if (unlikely(a->mvd_bsrc == au_sbbot(a->sb))) { ++ a->mvd_errno = EAU_MVDOWN_BOTTOM; ++ AU_MVD_PR(dmsg, "on the bottom\n"); ++ goto out; ++ } ++ a->mvd_h_src_inode = au_h_iptr(a->inode, a->mvd_bsrc); ++ br = au_sbr(a->sb, a->mvd_bsrc); ++ err = au_br_rdonly(br); ++ if (!(a->mvdown.flags & AUFS_MVDOWN_ROUPPER)) { ++ if (unlikely(err)) ++ goto out; ++ } else if (!(vfsub_native_ro(a->mvd_h_src_inode) ++ || IS_APPEND(a->mvd_h_src_inode))) { ++ if (err) ++ a->mvdown.flags |= AUFS_MVDOWN_ROUPPER_R; ++ /* go on */ ++ } else ++ goto out; ++ ++ err = -EINVAL; ++ if (!(a->mvdown.flags & AUFS_MVDOWN_BRID_LOWER)) { ++ a->mvd_bdst = find_lower_writable(a); ++ if (unlikely(a->mvd_bdst < 0)) { ++ a->mvd_errno = EAU_MVDOWN_BOTTOM; ++ AU_MVD_PR(dmsg, "no writable lower branch\n"); ++ goto out; ++ } ++ } else { ++ a->mvd_bdst = au_br_index(a->sb, a->mvd_dst_brid); ++ if (unlikely(a->mvd_bdst < 0 ++ || au_sbbot(a->sb) < a->mvd_bdst)) { ++ a->mvd_errno = EAU_MVDOWN_NOLOWERBR; ++ AU_MVD_PR(dmsg, "no lower brid\n"); ++ goto out; ++ } ++ } ++ ++ err = au_mvd_args_busy(dmsg, a); ++ if (!err) ++ err = au_mvd_args_parent(dmsg, a); ++ if (!err) ++ err = au_mvd_args_intermediate(dmsg, a); ++ if (!err) ++ err = au_mvd_args_exist(dmsg, a); ++ if (!err) ++ AuDbg("b%d, b%d\n", a->mvd_bsrc, a->mvd_bdst); ++ ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++int au_mvdown(struct dentry *dentry, struct aufs_mvdown __user *uarg) ++{ ++ int err, e; ++ unsigned char dmsg; ++ struct au_mvd_args *args; ++ struct inode *inode; ++ ++ inode = d_inode(dentry); ++ err = -EPERM; ++ if (unlikely(!capable(CAP_SYS_ADMIN))) ++ goto out; ++ ++ err = -ENOMEM; ++ args = kmalloc(sizeof(*args), GFP_NOFS); ++ if (unlikely(!args)) ++ goto out; ++ ++ err = copy_from_user(&args->mvdown, uarg, sizeof(args->mvdown)); ++ if (!err) ++ err = !access_ok(VERIFY_WRITE, uarg, sizeof(*uarg)); ++ if (unlikely(err)) { ++ err = -EFAULT; ++ AuTraceErr(err); ++ goto out_free; ++ } ++ AuDbg("flags 0x%x\n", args->mvdown.flags); ++ args->mvdown.flags &= ~(AUFS_MVDOWN_ROLOWER_R | AUFS_MVDOWN_ROUPPER_R); ++ args->mvdown.au_errno = 0; ++ args->dentry = dentry; ++ args->inode = inode; ++ args->sb = dentry->d_sb; ++ ++ err = -ENOENT; ++ dmsg = !!(args->mvdown.flags & AUFS_MVDOWN_DMSG); ++ args->parent = dget_parent(dentry); ++ args->dir = d_inode(args->parent); ++ inode_lock_nested(args->dir, I_MUTEX_PARENT); ++ dput(args->parent); ++ if (unlikely(args->parent != dentry->d_parent)) { ++ AU_MVD_PR(dmsg, "parent dir is moved\n"); ++ goto out_dir; ++ } ++ ++ inode_lock_nested(inode, I_MUTEX_CHILD); ++ err = aufs_read_lock(dentry, AuLock_DW | AuLock_FLUSH | AuLock_NOPLMW); ++ if (unlikely(err)) ++ goto out_inode; ++ ++ di_write_lock_parent(args->parent); ++ err = au_mvd_args(dmsg, args); ++ if (unlikely(err)) ++ goto out_parent; ++ ++ err = au_do_mvdown(dmsg, args); ++ if (unlikely(err)) ++ goto out_parent; ++ ++ au_cpup_attr_timesizes(args->dir); ++ au_cpup_attr_timesizes(inode); ++ if (!(args->mvdown.flags & AUFS_MVDOWN_KUPPER)) ++ au_cpup_igen(inode, au_h_iptr(inode, args->mvd_bdst)); ++ /* au_digen_dec(dentry); */ ++ ++out_parent: ++ di_write_unlock(args->parent); ++ aufs_read_unlock(dentry, AuLock_DW); ++out_inode: ++ inode_unlock(inode); ++out_dir: ++ inode_unlock(args->dir); ++out_free: ++ e = copy_to_user(uarg, &args->mvdown, sizeof(args->mvdown)); ++ if (unlikely(e)) ++ err = -EFAULT; ++ kfree(args); ++out: ++ AuTraceErr(err); ++ return err; ++} +diff -Naur null/fs/aufs/opts.c linux-4.15/fs/aufs/opts.c +--- /dev/null ++++ linux-4.15/fs/aufs/opts.c 2018-02-25 02:38:09.204738113 +0100 +@@ -0,0 +1,1891 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * mount options/flags ++ */ ++ ++#include ++#include /* a distribution requires */ ++#include ++#include "aufs.h" ++ ++/* ---------------------------------------------------------------------- */ ++ ++enum { ++ Opt_br, ++ Opt_add, Opt_del, Opt_mod, Opt_append, Opt_prepend, ++ Opt_idel, Opt_imod, ++ Opt_dirwh, Opt_rdcache, Opt_rdblk, Opt_rdhash, ++ Opt_rdblk_def, Opt_rdhash_def, ++ Opt_xino, Opt_noxino, ++ Opt_trunc_xino, Opt_trunc_xino_v, Opt_notrunc_xino, ++ Opt_trunc_xino_path, Opt_itrunc_xino, ++ Opt_trunc_xib, Opt_notrunc_xib, ++ Opt_shwh, Opt_noshwh, ++ Opt_plink, Opt_noplink, Opt_list_plink, ++ Opt_udba, ++ Opt_dio, Opt_nodio, ++ Opt_diropq_a, Opt_diropq_w, ++ Opt_warn_perm, Opt_nowarn_perm, ++ Opt_wbr_copyup, Opt_wbr_create, ++ Opt_fhsm_sec, ++ Opt_verbose, Opt_noverbose, ++ Opt_sum, Opt_nosum, Opt_wsum, ++ Opt_dirperm1, Opt_nodirperm1, ++ Opt_dirren, Opt_nodirren, ++ Opt_acl, Opt_noacl, ++ Opt_tail, Opt_ignore, Opt_ignore_silent, Opt_err ++}; ++ ++static match_table_t options = { ++ {Opt_br, "br=%s"}, ++ {Opt_br, "br:%s"}, ++ ++ {Opt_add, "add=%d:%s"}, ++ {Opt_add, "add:%d:%s"}, ++ {Opt_add, "ins=%d:%s"}, ++ {Opt_add, "ins:%d:%s"}, ++ {Opt_append, "append=%s"}, ++ {Opt_append, "append:%s"}, ++ {Opt_prepend, "prepend=%s"}, ++ {Opt_prepend, "prepend:%s"}, ++ ++ {Opt_del, "del=%s"}, ++ {Opt_del, "del:%s"}, ++ /* {Opt_idel, "idel:%d"}, */ ++ {Opt_mod, "mod=%s"}, ++ {Opt_mod, "mod:%s"}, ++ /* {Opt_imod, "imod:%d:%s"}, */ ++ ++ {Opt_dirwh, "dirwh=%d"}, ++ ++ {Opt_xino, "xino=%s"}, ++ {Opt_noxino, "noxino"}, ++ {Opt_trunc_xino, "trunc_xino"}, ++ {Opt_trunc_xino_v, "trunc_xino_v=%d:%d"}, ++ {Opt_notrunc_xino, "notrunc_xino"}, ++ {Opt_trunc_xino_path, "trunc_xino=%s"}, ++ {Opt_itrunc_xino, "itrunc_xino=%d"}, ++ /* {Opt_zxino, "zxino=%s"}, */ ++ {Opt_trunc_xib, "trunc_xib"}, ++ {Opt_notrunc_xib, "notrunc_xib"}, ++ ++#ifdef CONFIG_PROC_FS ++ {Opt_plink, "plink"}, ++#else ++ {Opt_ignore_silent, "plink"}, ++#endif ++ ++ {Opt_noplink, "noplink"}, ++ ++#ifdef CONFIG_AUFS_DEBUG ++ {Opt_list_plink, "list_plink"}, ++#endif ++ ++ {Opt_udba, "udba=%s"}, ++ ++ {Opt_dio, "dio"}, ++ {Opt_nodio, "nodio"}, ++ ++#ifdef CONFIG_AUFS_DIRREN ++ {Opt_dirren, "dirren"}, ++ {Opt_nodirren, "nodirren"}, ++#else ++ {Opt_ignore, "dirren"}, ++ {Opt_ignore_silent, "nodirren"}, ++#endif ++ ++#ifdef CONFIG_AUFS_FHSM ++ {Opt_fhsm_sec, "fhsm_sec=%d"}, ++#else ++ {Opt_ignore, "fhsm_sec=%d"}, ++#endif ++ ++ {Opt_diropq_a, "diropq=always"}, ++ {Opt_diropq_a, "diropq=a"}, ++ {Opt_diropq_w, "diropq=whiteouted"}, ++ {Opt_diropq_w, "diropq=w"}, ++ ++ {Opt_warn_perm, "warn_perm"}, ++ {Opt_nowarn_perm, "nowarn_perm"}, ++ ++ /* keep them temporary */ ++ {Opt_ignore_silent, "nodlgt"}, ++ {Opt_ignore, "clean_plink"}, ++ ++#ifdef CONFIG_AUFS_SHWH ++ {Opt_shwh, "shwh"}, ++#endif ++ {Opt_noshwh, "noshwh"}, ++ ++ {Opt_dirperm1, "dirperm1"}, ++ {Opt_nodirperm1, "nodirperm1"}, ++ ++ {Opt_verbose, "verbose"}, ++ {Opt_verbose, "v"}, ++ {Opt_noverbose, "noverbose"}, ++ {Opt_noverbose, "quiet"}, ++ {Opt_noverbose, "q"}, ++ {Opt_noverbose, "silent"}, ++ ++ {Opt_sum, "sum"}, ++ {Opt_nosum, "nosum"}, ++ {Opt_wsum, "wsum"}, ++ ++ {Opt_rdcache, "rdcache=%d"}, ++ {Opt_rdblk, "rdblk=%d"}, ++ {Opt_rdblk_def, "rdblk=def"}, ++ {Opt_rdhash, "rdhash=%d"}, ++ {Opt_rdhash_def, "rdhash=def"}, ++ ++ {Opt_wbr_create, "create=%s"}, ++ {Opt_wbr_create, "create_policy=%s"}, ++ {Opt_wbr_copyup, "cpup=%s"}, ++ {Opt_wbr_copyup, "copyup=%s"}, ++ {Opt_wbr_copyup, "copyup_policy=%s"}, ++ ++ /* generic VFS flag */ ++#ifdef CONFIG_FS_POSIX_ACL ++ {Opt_acl, "acl"}, ++ {Opt_noacl, "noacl"}, ++#else ++ {Opt_ignore, "acl"}, ++ {Opt_ignore_silent, "noacl"}, ++#endif ++ ++ /* internal use for the scripts */ ++ {Opt_ignore_silent, "si=%s"}, ++ ++ {Opt_br, "dirs=%s"}, ++ {Opt_ignore, "debug=%d"}, ++ {Opt_ignore, "delete=whiteout"}, ++ {Opt_ignore, "delete=all"}, ++ {Opt_ignore, "imap=%s"}, ++ ++ /* temporary workaround, due to old mount(8)? */ ++ {Opt_ignore_silent, "relatime"}, ++ ++ {Opt_err, NULL} ++}; ++ ++/* ---------------------------------------------------------------------- */ ++ ++static const char *au_parser_pattern(int val, match_table_t tbl) ++{ ++ struct match_token *p; ++ ++ p = tbl; ++ while (p->pattern) { ++ if (p->token == val) ++ return p->pattern; ++ p++; ++ } ++ BUG(); ++ return "??"; ++} ++ ++static const char *au_optstr(int *val, match_table_t tbl) ++{ ++ struct match_token *p; ++ int v; ++ ++ v = *val; ++ if (!v) ++ goto out; ++ p = tbl; ++ while (p->pattern) { ++ if (p->token ++ && (v & p->token) == p->token) { ++ *val &= ~p->token; ++ return p->pattern; ++ } ++ p++; ++ } ++ ++out: ++ return NULL; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static match_table_t brperm = { ++ {AuBrPerm_RO, AUFS_BRPERM_RO}, ++ {AuBrPerm_RR, AUFS_BRPERM_RR}, ++ {AuBrPerm_RW, AUFS_BRPERM_RW}, ++ {0, NULL} ++}; ++ ++static match_table_t brattr = { ++ /* general */ ++ {AuBrAttr_COO_REG, AUFS_BRATTR_COO_REG}, ++ {AuBrAttr_COO_ALL, AUFS_BRATTR_COO_ALL}, ++ /* 'unpin' attrib is meaningless since linux-3.18-rc1 */ ++ {AuBrAttr_UNPIN, AUFS_BRATTR_UNPIN}, ++#ifdef CONFIG_AUFS_FHSM ++ {AuBrAttr_FHSM, AUFS_BRATTR_FHSM}, ++#endif ++#ifdef CONFIG_AUFS_XATTR ++ {AuBrAttr_ICEX, AUFS_BRATTR_ICEX}, ++ {AuBrAttr_ICEX_SEC, AUFS_BRATTR_ICEX_SEC}, ++ {AuBrAttr_ICEX_SYS, AUFS_BRATTR_ICEX_SYS}, ++ {AuBrAttr_ICEX_TR, AUFS_BRATTR_ICEX_TR}, ++ {AuBrAttr_ICEX_USR, AUFS_BRATTR_ICEX_USR}, ++ {AuBrAttr_ICEX_OTH, AUFS_BRATTR_ICEX_OTH}, ++#endif ++ ++ /* ro/rr branch */ ++ {AuBrRAttr_WH, AUFS_BRRATTR_WH}, ++ ++ /* rw branch */ ++ {AuBrWAttr_MOO, AUFS_BRWATTR_MOO}, ++ {AuBrWAttr_NoLinkWH, AUFS_BRWATTR_NLWH}, ++ ++ {0, NULL} ++}; ++ ++static int br_attr_val(char *str, match_table_t table, substring_t args[]) ++{ ++ int attr, v; ++ char *p; ++ ++ attr = 0; ++ do { ++ p = strchr(str, '+'); ++ if (p) ++ *p = 0; ++ v = match_token(str, table, args); ++ if (v) { ++ if (v & AuBrAttr_CMOO_Mask) ++ attr &= ~AuBrAttr_CMOO_Mask; ++ attr |= v; ++ } else { ++ if (p) ++ *p = '+'; ++ pr_warn("ignored branch attribute %s\n", str); ++ break; ++ } ++ if (p) ++ str = p + 1; ++ } while (p); ++ ++ return attr; ++} ++ ++static int au_do_optstr_br_attr(au_br_perm_str_t *str, int perm) ++{ ++ int sz; ++ const char *p; ++ char *q; ++ ++ q = str->a; ++ *q = 0; ++ p = au_optstr(&perm, brattr); ++ if (p) { ++ sz = strlen(p); ++ memcpy(q, p, sz + 1); ++ q += sz; ++ } else ++ goto out; ++ ++ do { ++ p = au_optstr(&perm, brattr); ++ if (p) { ++ *q++ = '+'; ++ sz = strlen(p); ++ memcpy(q, p, sz + 1); ++ q += sz; ++ } ++ } while (p); ++ ++out: ++ return q - str->a; ++} ++ ++static int noinline_for_stack br_perm_val(char *perm) ++{ ++ int val, bad, sz; ++ char *p; ++ substring_t args[MAX_OPT_ARGS]; ++ au_br_perm_str_t attr; ++ ++ p = strchr(perm, '+'); ++ if (p) ++ *p = 0; ++ val = match_token(perm, brperm, args); ++ if (!val) { ++ if (p) ++ *p = '+'; ++ pr_warn("ignored branch permission %s\n", perm); ++ val = AuBrPerm_RO; ++ goto out; ++ } ++ if (!p) ++ goto out; ++ ++ val |= br_attr_val(p + 1, brattr, args); ++ ++ bad = 0; ++ switch (val & AuBrPerm_Mask) { ++ case AuBrPerm_RO: ++ case AuBrPerm_RR: ++ bad = val & AuBrWAttr_Mask; ++ val &= ~AuBrWAttr_Mask; ++ break; ++ case AuBrPerm_RW: ++ bad = val & AuBrRAttr_Mask; ++ val &= ~AuBrRAttr_Mask; ++ break; ++ } ++ ++ /* ++ * 'unpin' attrib becomes meaningless since linux-3.18-rc1, but aufs ++ * does not treat it as an error, just warning. ++ * this is a tiny guard for the user operation. ++ */ ++ if (val & AuBrAttr_UNPIN) { ++ bad |= AuBrAttr_UNPIN; ++ val &= ~AuBrAttr_UNPIN; ++ } ++ ++ if (unlikely(bad)) { ++ sz = au_do_optstr_br_attr(&attr, bad); ++ AuDebugOn(!sz); ++ pr_warn("ignored branch attribute %s\n", attr.a); ++ } ++ ++out: ++ return val; ++} ++ ++void au_optstr_br_perm(au_br_perm_str_t *str, int perm) ++{ ++ au_br_perm_str_t attr; ++ const char *p; ++ char *q; ++ int sz; ++ ++ q = str->a; ++ p = au_optstr(&perm, brperm); ++ AuDebugOn(!p || !*p); ++ sz = strlen(p); ++ memcpy(q, p, sz + 1); ++ q += sz; ++ ++ sz = au_do_optstr_br_attr(&attr, perm); ++ if (sz) { ++ *q++ = '+'; ++ memcpy(q, attr.a, sz + 1); ++ } ++ ++ AuDebugOn(strlen(str->a) >= sizeof(str->a)); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static match_table_t udbalevel = { ++ {AuOpt_UDBA_REVAL, "reval"}, ++ {AuOpt_UDBA_NONE, "none"}, ++#ifdef CONFIG_AUFS_HNOTIFY ++ {AuOpt_UDBA_HNOTIFY, "notify"}, /* abstraction */ ++#ifdef CONFIG_AUFS_HFSNOTIFY ++ {AuOpt_UDBA_HNOTIFY, "fsnotify"}, ++#endif ++#endif ++ {-1, NULL} ++}; ++ ++static int noinline_for_stack udba_val(char *str) ++{ ++ substring_t args[MAX_OPT_ARGS]; ++ ++ return match_token(str, udbalevel, args); ++} ++ ++const char *au_optstr_udba(int udba) ++{ ++ return au_parser_pattern(udba, udbalevel); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static match_table_t au_wbr_create_policy = { ++ {AuWbrCreate_TDP, "tdp"}, ++ {AuWbrCreate_TDP, "top-down-parent"}, ++ {AuWbrCreate_RR, "rr"}, ++ {AuWbrCreate_RR, "round-robin"}, ++ {AuWbrCreate_MFS, "mfs"}, ++ {AuWbrCreate_MFS, "most-free-space"}, ++ {AuWbrCreate_MFSV, "mfs:%d"}, ++ {AuWbrCreate_MFSV, "most-free-space:%d"}, ++ ++ /* top-down regardless the parent, and then mfs */ ++ {AuWbrCreate_TDMFS, "tdmfs:%d"}, ++ {AuWbrCreate_TDMFSV, "tdmfs:%d:%d"}, ++ ++ {AuWbrCreate_MFSRR, "mfsrr:%d"}, ++ {AuWbrCreate_MFSRRV, "mfsrr:%d:%d"}, ++ {AuWbrCreate_PMFS, "pmfs"}, ++ {AuWbrCreate_PMFSV, "pmfs:%d"}, ++ {AuWbrCreate_PMFSRR, "pmfsrr:%d"}, ++ {AuWbrCreate_PMFSRRV, "pmfsrr:%d:%d"}, ++ ++ {-1, NULL} ++}; ++ ++static int au_wbr_mfs_wmark(substring_t *arg, char *str, ++ struct au_opt_wbr_create *create) ++{ ++ int err; ++ unsigned long long ull; ++ ++ err = 0; ++ if (!match_u64(arg, &ull)) ++ create->mfsrr_watermark = ull; ++ else { ++ pr_err("bad integer in %s\n", str); ++ err = -EINVAL; ++ } ++ ++ return err; ++} ++ ++static int au_wbr_mfs_sec(substring_t *arg, char *str, ++ struct au_opt_wbr_create *create) ++{ ++ int n, err; ++ ++ err = 0; ++ if (!match_int(arg, &n) && 0 <= n && n <= AUFS_MFS_MAX_SEC) ++ create->mfs_second = n; ++ else { ++ pr_err("bad integer in %s\n", str); ++ err = -EINVAL; ++ } ++ ++ return err; ++} ++ ++static int noinline_for_stack ++au_wbr_create_val(char *str, struct au_opt_wbr_create *create) ++{ ++ int err, e; ++ substring_t args[MAX_OPT_ARGS]; ++ ++ err = match_token(str, au_wbr_create_policy, args); ++ create->wbr_create = err; ++ switch (err) { ++ case AuWbrCreate_MFSRRV: ++ case AuWbrCreate_TDMFSV: ++ case AuWbrCreate_PMFSRRV: ++ e = au_wbr_mfs_wmark(&args[0], str, create); ++ if (!e) ++ e = au_wbr_mfs_sec(&args[1], str, create); ++ if (unlikely(e)) ++ err = e; ++ break; ++ case AuWbrCreate_MFSRR: ++ case AuWbrCreate_TDMFS: ++ case AuWbrCreate_PMFSRR: ++ e = au_wbr_mfs_wmark(&args[0], str, create); ++ if (unlikely(e)) { ++ err = e; ++ break; ++ } ++ /*FALLTHROUGH*/ ++ case AuWbrCreate_MFS: ++ case AuWbrCreate_PMFS: ++ create->mfs_second = AUFS_MFS_DEF_SEC; ++ break; ++ case AuWbrCreate_MFSV: ++ case AuWbrCreate_PMFSV: ++ e = au_wbr_mfs_sec(&args[0], str, create); ++ if (unlikely(e)) ++ err = e; ++ break; ++ } ++ ++ return err; ++} ++ ++const char *au_optstr_wbr_create(int wbr_create) ++{ ++ return au_parser_pattern(wbr_create, au_wbr_create_policy); ++} ++ ++static match_table_t au_wbr_copyup_policy = { ++ {AuWbrCopyup_TDP, "tdp"}, ++ {AuWbrCopyup_TDP, "top-down-parent"}, ++ {AuWbrCopyup_BUP, "bup"}, ++ {AuWbrCopyup_BUP, "bottom-up-parent"}, ++ {AuWbrCopyup_BU, "bu"}, ++ {AuWbrCopyup_BU, "bottom-up"}, ++ {-1, NULL} ++}; ++ ++static int noinline_for_stack au_wbr_copyup_val(char *str) ++{ ++ substring_t args[MAX_OPT_ARGS]; ++ ++ return match_token(str, au_wbr_copyup_policy, args); ++} ++ ++const char *au_optstr_wbr_copyup(int wbr_copyup) ++{ ++ return au_parser_pattern(wbr_copyup, au_wbr_copyup_policy); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static const int lkup_dirflags = LOOKUP_FOLLOW | LOOKUP_DIRECTORY; ++ ++static void dump_opts(struct au_opts *opts) ++{ ++#ifdef CONFIG_AUFS_DEBUG ++ /* reduce stack space */ ++ union { ++ struct au_opt_add *add; ++ struct au_opt_del *del; ++ struct au_opt_mod *mod; ++ struct au_opt_xino *xino; ++ struct au_opt_xino_itrunc *xino_itrunc; ++ struct au_opt_wbr_create *create; ++ } u; ++ struct au_opt *opt; ++ ++ opt = opts->opt; ++ while (opt->type != Opt_tail) { ++ switch (opt->type) { ++ case Opt_add: ++ u.add = &opt->add; ++ AuDbg("add {b%d, %s, 0x%x, %p}\n", ++ u.add->bindex, u.add->pathname, u.add->perm, ++ u.add->path.dentry); ++ break; ++ case Opt_del: ++ case Opt_idel: ++ u.del = &opt->del; ++ AuDbg("del {%s, %p}\n", ++ u.del->pathname, u.del->h_path.dentry); ++ break; ++ case Opt_mod: ++ case Opt_imod: ++ u.mod = &opt->mod; ++ AuDbg("mod {%s, 0x%x, %p}\n", ++ u.mod->path, u.mod->perm, u.mod->h_root); ++ break; ++ case Opt_append: ++ u.add = &opt->add; ++ AuDbg("append {b%d, %s, 0x%x, %p}\n", ++ u.add->bindex, u.add->pathname, u.add->perm, ++ u.add->path.dentry); ++ break; ++ case Opt_prepend: ++ u.add = &opt->add; ++ AuDbg("prepend {b%d, %s, 0x%x, %p}\n", ++ u.add->bindex, u.add->pathname, u.add->perm, ++ u.add->path.dentry); ++ break; ++ case Opt_dirwh: ++ AuDbg("dirwh %d\n", opt->dirwh); ++ break; ++ case Opt_rdcache: ++ AuDbg("rdcache %d\n", opt->rdcache); ++ break; ++ case Opt_rdblk: ++ AuDbg("rdblk %u\n", opt->rdblk); ++ break; ++ case Opt_rdblk_def: ++ AuDbg("rdblk_def\n"); ++ break; ++ case Opt_rdhash: ++ AuDbg("rdhash %u\n", opt->rdhash); ++ break; ++ case Opt_rdhash_def: ++ AuDbg("rdhash_def\n"); ++ break; ++ case Opt_xino: ++ u.xino = &opt->xino; ++ AuDbg("xino {%s %pD}\n", u.xino->path, u.xino->file); ++ break; ++ case Opt_trunc_xino: ++ AuLabel(trunc_xino); ++ break; ++ case Opt_notrunc_xino: ++ AuLabel(notrunc_xino); ++ break; ++ case Opt_trunc_xino_path: ++ case Opt_itrunc_xino: ++ u.xino_itrunc = &opt->xino_itrunc; ++ AuDbg("trunc_xino %d\n", u.xino_itrunc->bindex); ++ break; ++ case Opt_noxino: ++ AuLabel(noxino); ++ break; ++ case Opt_trunc_xib: ++ AuLabel(trunc_xib); ++ break; ++ case Opt_notrunc_xib: ++ AuLabel(notrunc_xib); ++ break; ++ case Opt_shwh: ++ AuLabel(shwh); ++ break; ++ case Opt_noshwh: ++ AuLabel(noshwh); ++ break; ++ case Opt_dirperm1: ++ AuLabel(dirperm1); ++ break; ++ case Opt_nodirperm1: ++ AuLabel(nodirperm1); ++ break; ++ case Opt_plink: ++ AuLabel(plink); ++ break; ++ case Opt_noplink: ++ AuLabel(noplink); ++ break; ++ case Opt_list_plink: ++ AuLabel(list_plink); ++ break; ++ case Opt_udba: ++ AuDbg("udba %d, %s\n", ++ opt->udba, au_optstr_udba(opt->udba)); ++ break; ++ case Opt_dio: ++ AuLabel(dio); ++ break; ++ case Opt_nodio: ++ AuLabel(nodio); ++ break; ++ case Opt_diropq_a: ++ AuLabel(diropq_a); ++ break; ++ case Opt_diropq_w: ++ AuLabel(diropq_w); ++ break; ++ case Opt_warn_perm: ++ AuLabel(warn_perm); ++ break; ++ case Opt_nowarn_perm: ++ AuLabel(nowarn_perm); ++ break; ++ case Opt_verbose: ++ AuLabel(verbose); ++ break; ++ case Opt_noverbose: ++ AuLabel(noverbose); ++ break; ++ case Opt_sum: ++ AuLabel(sum); ++ break; ++ case Opt_nosum: ++ AuLabel(nosum); ++ break; ++ case Opt_wsum: ++ AuLabel(wsum); ++ break; ++ case Opt_wbr_create: ++ u.create = &opt->wbr_create; ++ AuDbg("create %d, %s\n", u.create->wbr_create, ++ au_optstr_wbr_create(u.create->wbr_create)); ++ switch (u.create->wbr_create) { ++ case AuWbrCreate_MFSV: ++ case AuWbrCreate_PMFSV: ++ AuDbg("%d sec\n", u.create->mfs_second); ++ break; ++ case AuWbrCreate_MFSRR: ++ case AuWbrCreate_TDMFS: ++ AuDbg("%llu watermark\n", ++ u.create->mfsrr_watermark); ++ break; ++ case AuWbrCreate_MFSRRV: ++ case AuWbrCreate_TDMFSV: ++ case AuWbrCreate_PMFSRRV: ++ AuDbg("%llu watermark, %d sec\n", ++ u.create->mfsrr_watermark, ++ u.create->mfs_second); ++ break; ++ } ++ break; ++ case Opt_wbr_copyup: ++ AuDbg("copyup %d, %s\n", opt->wbr_copyup, ++ au_optstr_wbr_copyup(opt->wbr_copyup)); ++ break; ++ case Opt_fhsm_sec: ++ AuDbg("fhsm_sec %u\n", opt->fhsm_second); ++ break; ++ case Opt_dirren: ++ AuLabel(dirren); ++ break; ++ case Opt_nodirren: ++ AuLabel(nodirren); ++ break; ++ case Opt_acl: ++ AuLabel(acl); ++ break; ++ case Opt_noacl: ++ AuLabel(noacl); ++ break; ++ default: ++ BUG(); ++ } ++ opt++; ++ } ++#endif ++} ++ ++void au_opts_free(struct au_opts *opts) ++{ ++ struct au_opt *opt; ++ ++ opt = opts->opt; ++ while (opt->type != Opt_tail) { ++ switch (opt->type) { ++ case Opt_add: ++ case Opt_append: ++ case Opt_prepend: ++ path_put(&opt->add.path); ++ break; ++ case Opt_del: ++ case Opt_idel: ++ path_put(&opt->del.h_path); ++ break; ++ case Opt_mod: ++ case Opt_imod: ++ dput(opt->mod.h_root); ++ break; ++ case Opt_xino: ++ fput(opt->xino.file); ++ break; ++ } ++ opt++; ++ } ++} ++ ++static int opt_add(struct au_opt *opt, char *opt_str, unsigned long sb_flags, ++ aufs_bindex_t bindex) ++{ ++ int err; ++ struct au_opt_add *add = &opt->add; ++ char *p; ++ ++ add->bindex = bindex; ++ add->perm = AuBrPerm_RO; ++ add->pathname = opt_str; ++ p = strchr(opt_str, '='); ++ if (p) { ++ *p++ = 0; ++ if (*p) ++ add->perm = br_perm_val(p); ++ } ++ ++ err = vfsub_kern_path(add->pathname, lkup_dirflags, &add->path); ++ if (!err) { ++ if (!p) { ++ add->perm = AuBrPerm_RO; ++ if (au_test_fs_rr(add->path.dentry->d_sb)) ++ add->perm = AuBrPerm_RR; ++ else if (!bindex && !(sb_flags & SB_RDONLY)) ++ add->perm = AuBrPerm_RW; ++ } ++ opt->type = Opt_add; ++ goto out; ++ } ++ pr_err("lookup failed %s (%d)\n", add->pathname, err); ++ err = -EINVAL; ++ ++out: ++ return err; ++} ++ ++static int au_opts_parse_del(struct au_opt_del *del, substring_t args[]) ++{ ++ int err; ++ ++ del->pathname = args[0].from; ++ AuDbg("del path %s\n", del->pathname); ++ ++ err = vfsub_kern_path(del->pathname, lkup_dirflags, &del->h_path); ++ if (unlikely(err)) ++ pr_err("lookup failed %s (%d)\n", del->pathname, err); ++ ++ return err; ++} ++ ++#if 0 /* reserved for future use */ ++static int au_opts_parse_idel(struct super_block *sb, aufs_bindex_t bindex, ++ struct au_opt_del *del, substring_t args[]) ++{ ++ int err; ++ struct dentry *root; ++ ++ err = -EINVAL; ++ root = sb->s_root; ++ aufs_read_lock(root, AuLock_FLUSH); ++ if (bindex < 0 || au_sbbot(sb) < bindex) { ++ pr_err("out of bounds, %d\n", bindex); ++ goto out; ++ } ++ ++ err = 0; ++ del->h_path.dentry = dget(au_h_dptr(root, bindex)); ++ del->h_path.mnt = mntget(au_sbr_mnt(sb, bindex)); ++ ++out: ++ aufs_read_unlock(root, !AuLock_IR); ++ return err; ++} ++#endif ++ ++static int noinline_for_stack ++au_opts_parse_mod(struct au_opt_mod *mod, substring_t args[]) ++{ ++ int err; ++ struct path path; ++ char *p; ++ ++ err = -EINVAL; ++ mod->path = args[0].from; ++ p = strchr(mod->path, '='); ++ if (unlikely(!p)) { ++ pr_err("no permssion %s\n", args[0].from); ++ goto out; ++ } ++ ++ *p++ = 0; ++ err = vfsub_kern_path(mod->path, lkup_dirflags, &path); ++ if (unlikely(err)) { ++ pr_err("lookup failed %s (%d)\n", mod->path, err); ++ goto out; ++ } ++ ++ mod->perm = br_perm_val(p); ++ AuDbg("mod path %s, perm 0x%x, %s\n", mod->path, mod->perm, p); ++ mod->h_root = dget(path.dentry); ++ path_put(&path); ++ ++out: ++ return err; ++} ++ ++#if 0 /* reserved for future use */ ++static int au_opts_parse_imod(struct super_block *sb, aufs_bindex_t bindex, ++ struct au_opt_mod *mod, substring_t args[]) ++{ ++ int err; ++ struct dentry *root; ++ ++ err = -EINVAL; ++ root = sb->s_root; ++ aufs_read_lock(root, AuLock_FLUSH); ++ if (bindex < 0 || au_sbbot(sb) < bindex) { ++ pr_err("out of bounds, %d\n", bindex); ++ goto out; ++ } ++ ++ err = 0; ++ mod->perm = br_perm_val(args[1].from); ++ AuDbg("mod path %s, perm 0x%x, %s\n", ++ mod->path, mod->perm, args[1].from); ++ mod->h_root = dget(au_h_dptr(root, bindex)); ++ ++out: ++ aufs_read_unlock(root, !AuLock_IR); ++ return err; ++} ++#endif ++ ++static int au_opts_parse_xino(struct super_block *sb, struct au_opt_xino *xino, ++ substring_t args[]) ++{ ++ int err; ++ struct file *file; ++ ++ file = au_xino_create(sb, args[0].from, /*silent*/0); ++ err = PTR_ERR(file); ++ if (IS_ERR(file)) ++ goto out; ++ ++ err = -EINVAL; ++ if (unlikely(file->f_path.dentry->d_sb == sb)) { ++ fput(file); ++ pr_err("%s must be outside\n", args[0].from); ++ goto out; ++ } ++ ++ err = 0; ++ xino->file = file; ++ xino->path = args[0].from; ++ ++out: ++ return err; ++} ++ ++static int noinline_for_stack ++au_opts_parse_xino_itrunc_path(struct super_block *sb, ++ struct au_opt_xino_itrunc *xino_itrunc, ++ substring_t args[]) ++{ ++ int err; ++ aufs_bindex_t bbot, bindex; ++ struct path path; ++ struct dentry *root; ++ ++ err = vfsub_kern_path(args[0].from, lkup_dirflags, &path); ++ if (unlikely(err)) { ++ pr_err("lookup failed %s (%d)\n", args[0].from, err); ++ goto out; ++ } ++ ++ xino_itrunc->bindex = -1; ++ root = sb->s_root; ++ aufs_read_lock(root, AuLock_FLUSH); ++ bbot = au_sbbot(sb); ++ for (bindex = 0; bindex <= bbot; bindex++) { ++ if (au_h_dptr(root, bindex) == path.dentry) { ++ xino_itrunc->bindex = bindex; ++ break; ++ } ++ } ++ aufs_read_unlock(root, !AuLock_IR); ++ path_put(&path); ++ ++ if (unlikely(xino_itrunc->bindex < 0)) { ++ pr_err("no such branch %s\n", args[0].from); ++ err = -EINVAL; ++ } ++ ++out: ++ return err; ++} ++ ++/* called without aufs lock */ ++int au_opts_parse(struct super_block *sb, char *str, struct au_opts *opts) ++{ ++ int err, n, token; ++ aufs_bindex_t bindex; ++ unsigned char skipped; ++ struct dentry *root; ++ struct au_opt *opt, *opt_tail; ++ char *opt_str; ++ /* reduce the stack space */ ++ union { ++ struct au_opt_xino_itrunc *xino_itrunc; ++ struct au_opt_wbr_create *create; ++ } u; ++ struct { ++ substring_t args[MAX_OPT_ARGS]; ++ } *a; ++ ++ err = -ENOMEM; ++ a = kmalloc(sizeof(*a), GFP_NOFS); ++ if (unlikely(!a)) ++ goto out; ++ ++ root = sb->s_root; ++ err = 0; ++ bindex = 0; ++ opt = opts->opt; ++ opt_tail = opt + opts->max_opt - 1; ++ opt->type = Opt_tail; ++ while (!err && (opt_str = strsep(&str, ",")) && *opt_str) { ++ err = -EINVAL; ++ skipped = 0; ++ token = match_token(opt_str, options, a->args); ++ switch (token) { ++ case Opt_br: ++ err = 0; ++ while (!err && (opt_str = strsep(&a->args[0].from, ":")) ++ && *opt_str) { ++ err = opt_add(opt, opt_str, opts->sb_flags, ++ bindex++); ++ if (unlikely(!err && ++opt > opt_tail)) { ++ err = -E2BIG; ++ break; ++ } ++ opt->type = Opt_tail; ++ skipped = 1; ++ } ++ break; ++ case Opt_add: ++ if (unlikely(match_int(&a->args[0], &n))) { ++ pr_err("bad integer in %s\n", opt_str); ++ break; ++ } ++ bindex = n; ++ err = opt_add(opt, a->args[1].from, opts->sb_flags, ++ bindex); ++ if (!err) ++ opt->type = token; ++ break; ++ case Opt_append: ++ err = opt_add(opt, a->args[0].from, opts->sb_flags, ++ /*dummy bindex*/1); ++ if (!err) ++ opt->type = token; ++ break; ++ case Opt_prepend: ++ err = opt_add(opt, a->args[0].from, opts->sb_flags, ++ /*bindex*/0); ++ if (!err) ++ opt->type = token; ++ break; ++ case Opt_del: ++ err = au_opts_parse_del(&opt->del, a->args); ++ if (!err) ++ opt->type = token; ++ break; ++#if 0 /* reserved for future use */ ++ case Opt_idel: ++ del->pathname = "(indexed)"; ++ if (unlikely(match_int(&args[0], &n))) { ++ pr_err("bad integer in %s\n", opt_str); ++ break; ++ } ++ err = au_opts_parse_idel(sb, n, &opt->del, a->args); ++ if (!err) ++ opt->type = token; ++ break; ++#endif ++ case Opt_mod: ++ err = au_opts_parse_mod(&opt->mod, a->args); ++ if (!err) ++ opt->type = token; ++ break; ++#ifdef IMOD /* reserved for future use */ ++ case Opt_imod: ++ u.mod->path = "(indexed)"; ++ if (unlikely(match_int(&a->args[0], &n))) { ++ pr_err("bad integer in %s\n", opt_str); ++ break; ++ } ++ err = au_opts_parse_imod(sb, n, &opt->mod, a->args); ++ if (!err) ++ opt->type = token; ++ break; ++#endif ++ case Opt_xino: ++ err = au_opts_parse_xino(sb, &opt->xino, a->args); ++ if (!err) ++ opt->type = token; ++ break; ++ ++ case Opt_trunc_xino_path: ++ err = au_opts_parse_xino_itrunc_path ++ (sb, &opt->xino_itrunc, a->args); ++ if (!err) ++ opt->type = token; ++ break; ++ ++ case Opt_itrunc_xino: ++ u.xino_itrunc = &opt->xino_itrunc; ++ if (unlikely(match_int(&a->args[0], &n))) { ++ pr_err("bad integer in %s\n", opt_str); ++ break; ++ } ++ u.xino_itrunc->bindex = n; ++ aufs_read_lock(root, AuLock_FLUSH); ++ if (n < 0 || au_sbbot(sb) < n) { ++ pr_err("out of bounds, %d\n", n); ++ aufs_read_unlock(root, !AuLock_IR); ++ break; ++ } ++ aufs_read_unlock(root, !AuLock_IR); ++ err = 0; ++ opt->type = token; ++ break; ++ ++ case Opt_dirwh: ++ if (unlikely(match_int(&a->args[0], &opt->dirwh))) ++ break; ++ err = 0; ++ opt->type = token; ++ break; ++ ++ case Opt_rdcache: ++ if (unlikely(match_int(&a->args[0], &n))) { ++ pr_err("bad integer in %s\n", opt_str); ++ break; ++ } ++ if (unlikely(n > AUFS_RDCACHE_MAX)) { ++ pr_err("rdcache must be smaller than %d\n", ++ AUFS_RDCACHE_MAX); ++ break; ++ } ++ opt->rdcache = n; ++ err = 0; ++ opt->type = token; ++ break; ++ case Opt_rdblk: ++ if (unlikely(match_int(&a->args[0], &n) ++ || n < 0 ++ || n > KMALLOC_MAX_SIZE)) { ++ pr_err("bad integer in %s\n", opt_str); ++ break; ++ } ++ if (unlikely(n && n < NAME_MAX)) { ++ pr_err("rdblk must be larger than %d\n", ++ NAME_MAX); ++ break; ++ } ++ opt->rdblk = n; ++ err = 0; ++ opt->type = token; ++ break; ++ case Opt_rdhash: ++ if (unlikely(match_int(&a->args[0], &n) ++ || n < 0 ++ || n * sizeof(struct hlist_head) ++ > KMALLOC_MAX_SIZE)) { ++ pr_err("bad integer in %s\n", opt_str); ++ break; ++ } ++ opt->rdhash = n; ++ err = 0; ++ opt->type = token; ++ break; ++ ++ case Opt_trunc_xino: ++ case Opt_notrunc_xino: ++ case Opt_noxino: ++ case Opt_trunc_xib: ++ case Opt_notrunc_xib: ++ case Opt_shwh: ++ case Opt_noshwh: ++ case Opt_dirperm1: ++ case Opt_nodirperm1: ++ case Opt_plink: ++ case Opt_noplink: ++ case Opt_list_plink: ++ case Opt_dio: ++ case Opt_nodio: ++ case Opt_diropq_a: ++ case Opt_diropq_w: ++ case Opt_warn_perm: ++ case Opt_nowarn_perm: ++ case Opt_verbose: ++ case Opt_noverbose: ++ case Opt_sum: ++ case Opt_nosum: ++ case Opt_wsum: ++ case Opt_rdblk_def: ++ case Opt_rdhash_def: ++ case Opt_dirren: ++ case Opt_nodirren: ++ case Opt_acl: ++ case Opt_noacl: ++ err = 0; ++ opt->type = token; ++ break; ++ ++ case Opt_udba: ++ opt->udba = udba_val(a->args[0].from); ++ if (opt->udba >= 0) { ++ err = 0; ++ opt->type = token; ++ } else ++ pr_err("wrong value, %s\n", opt_str); ++ break; ++ ++ case Opt_wbr_create: ++ u.create = &opt->wbr_create; ++ u.create->wbr_create ++ = au_wbr_create_val(a->args[0].from, u.create); ++ if (u.create->wbr_create >= 0) { ++ err = 0; ++ opt->type = token; ++ } else ++ pr_err("wrong value, %s\n", opt_str); ++ break; ++ case Opt_wbr_copyup: ++ opt->wbr_copyup = au_wbr_copyup_val(a->args[0].from); ++ if (opt->wbr_copyup >= 0) { ++ err = 0; ++ opt->type = token; ++ } else ++ pr_err("wrong value, %s\n", opt_str); ++ break; ++ ++ case Opt_fhsm_sec: ++ if (unlikely(match_int(&a->args[0], &n) ++ || n < 0)) { ++ pr_err("bad integer in %s\n", opt_str); ++ break; ++ } ++ if (sysaufs_brs) { ++ opt->fhsm_second = n; ++ opt->type = token; ++ } else ++ pr_warn("ignored %s\n", opt_str); ++ err = 0; ++ break; ++ ++ case Opt_ignore: ++ pr_warn("ignored %s\n", opt_str); ++ /*FALLTHROUGH*/ ++ case Opt_ignore_silent: ++ skipped = 1; ++ err = 0; ++ break; ++ case Opt_err: ++ pr_err("unknown option %s\n", opt_str); ++ break; ++ } ++ ++ if (!err && !skipped) { ++ if (unlikely(++opt > opt_tail)) { ++ err = -E2BIG; ++ opt--; ++ opt->type = Opt_tail; ++ break; ++ } ++ opt->type = Opt_tail; ++ } ++ } ++ ++ kfree(a); ++ dump_opts(opts); ++ if (unlikely(err)) ++ au_opts_free(opts); ++ ++out: ++ return err; ++} ++ ++static int au_opt_wbr_create(struct super_block *sb, ++ struct au_opt_wbr_create *create) ++{ ++ int err; ++ struct au_sbinfo *sbinfo; ++ ++ SiMustWriteLock(sb); ++ ++ err = 1; /* handled */ ++ sbinfo = au_sbi(sb); ++ if (sbinfo->si_wbr_create_ops->fin) { ++ err = sbinfo->si_wbr_create_ops->fin(sb); ++ if (!err) ++ err = 1; ++ } ++ ++ sbinfo->si_wbr_create = create->wbr_create; ++ sbinfo->si_wbr_create_ops = au_wbr_create_ops + create->wbr_create; ++ switch (create->wbr_create) { ++ case AuWbrCreate_MFSRRV: ++ case AuWbrCreate_MFSRR: ++ case AuWbrCreate_TDMFS: ++ case AuWbrCreate_TDMFSV: ++ case AuWbrCreate_PMFSRR: ++ case AuWbrCreate_PMFSRRV: ++ sbinfo->si_wbr_mfs.mfsrr_watermark = create->mfsrr_watermark; ++ /*FALLTHROUGH*/ ++ case AuWbrCreate_MFS: ++ case AuWbrCreate_MFSV: ++ case AuWbrCreate_PMFS: ++ case AuWbrCreate_PMFSV: ++ sbinfo->si_wbr_mfs.mfs_expire ++ = msecs_to_jiffies(create->mfs_second * MSEC_PER_SEC); ++ break; ++ } ++ ++ if (sbinfo->si_wbr_create_ops->init) ++ sbinfo->si_wbr_create_ops->init(sb); /* ignore */ ++ ++ return err; ++} ++ ++/* ++ * returns, ++ * plus: processed without an error ++ * zero: unprocessed ++ */ ++static int au_opt_simple(struct super_block *sb, struct au_opt *opt, ++ struct au_opts *opts) ++{ ++ int err; ++ struct au_sbinfo *sbinfo; ++ ++ SiMustWriteLock(sb); ++ ++ err = 1; /* handled */ ++ sbinfo = au_sbi(sb); ++ switch (opt->type) { ++ case Opt_udba: ++ sbinfo->si_mntflags &= ~AuOptMask_UDBA; ++ sbinfo->si_mntflags |= opt->udba; ++ opts->given_udba |= opt->udba; ++ break; ++ ++ case Opt_plink: ++ au_opt_set(sbinfo->si_mntflags, PLINK); ++ break; ++ case Opt_noplink: ++ if (au_opt_test(sbinfo->si_mntflags, PLINK)) ++ au_plink_put(sb, /*verbose*/1); ++ au_opt_clr(sbinfo->si_mntflags, PLINK); ++ break; ++ case Opt_list_plink: ++ if (au_opt_test(sbinfo->si_mntflags, PLINK)) ++ au_plink_list(sb); ++ break; ++ ++ case Opt_dio: ++ au_opt_set(sbinfo->si_mntflags, DIO); ++ au_fset_opts(opts->flags, REFRESH_DYAOP); ++ break; ++ case Opt_nodio: ++ au_opt_clr(sbinfo->si_mntflags, DIO); ++ au_fset_opts(opts->flags, REFRESH_DYAOP); ++ break; ++ ++ case Opt_fhsm_sec: ++ au_fhsm_set(sbinfo, opt->fhsm_second); ++ break; ++ ++ case Opt_diropq_a: ++ au_opt_set(sbinfo->si_mntflags, ALWAYS_DIROPQ); ++ break; ++ case Opt_diropq_w: ++ au_opt_clr(sbinfo->si_mntflags, ALWAYS_DIROPQ); ++ break; ++ ++ case Opt_warn_perm: ++ au_opt_set(sbinfo->si_mntflags, WARN_PERM); ++ break; ++ case Opt_nowarn_perm: ++ au_opt_clr(sbinfo->si_mntflags, WARN_PERM); ++ break; ++ ++ case Opt_verbose: ++ au_opt_set(sbinfo->si_mntflags, VERBOSE); ++ break; ++ case Opt_noverbose: ++ au_opt_clr(sbinfo->si_mntflags, VERBOSE); ++ break; ++ ++ case Opt_sum: ++ au_opt_set(sbinfo->si_mntflags, SUM); ++ break; ++ case Opt_wsum: ++ au_opt_clr(sbinfo->si_mntflags, SUM); ++ au_opt_set(sbinfo->si_mntflags, SUM_W); ++ case Opt_nosum: ++ au_opt_clr(sbinfo->si_mntflags, SUM); ++ au_opt_clr(sbinfo->si_mntflags, SUM_W); ++ break; ++ ++ case Opt_wbr_create: ++ err = au_opt_wbr_create(sb, &opt->wbr_create); ++ break; ++ case Opt_wbr_copyup: ++ sbinfo->si_wbr_copyup = opt->wbr_copyup; ++ sbinfo->si_wbr_copyup_ops = au_wbr_copyup_ops + opt->wbr_copyup; ++ break; ++ ++ case Opt_dirwh: ++ sbinfo->si_dirwh = opt->dirwh; ++ break; ++ ++ case Opt_rdcache: ++ sbinfo->si_rdcache ++ = msecs_to_jiffies(opt->rdcache * MSEC_PER_SEC); ++ break; ++ case Opt_rdblk: ++ sbinfo->si_rdblk = opt->rdblk; ++ break; ++ case Opt_rdblk_def: ++ sbinfo->si_rdblk = AUFS_RDBLK_DEF; ++ break; ++ case Opt_rdhash: ++ sbinfo->si_rdhash = opt->rdhash; ++ break; ++ case Opt_rdhash_def: ++ sbinfo->si_rdhash = AUFS_RDHASH_DEF; ++ break; ++ ++ case Opt_shwh: ++ au_opt_set(sbinfo->si_mntflags, SHWH); ++ break; ++ case Opt_noshwh: ++ au_opt_clr(sbinfo->si_mntflags, SHWH); ++ break; ++ ++ case Opt_dirperm1: ++ au_opt_set(sbinfo->si_mntflags, DIRPERM1); ++ break; ++ case Opt_nodirperm1: ++ au_opt_clr(sbinfo->si_mntflags, DIRPERM1); ++ break; ++ ++ case Opt_trunc_xino: ++ au_opt_set(sbinfo->si_mntflags, TRUNC_XINO); ++ break; ++ case Opt_notrunc_xino: ++ au_opt_clr(sbinfo->si_mntflags, TRUNC_XINO); ++ break; ++ ++ case Opt_trunc_xino_path: ++ case Opt_itrunc_xino: ++ err = au_xino_trunc(sb, opt->xino_itrunc.bindex); ++ if (!err) ++ err = 1; ++ break; ++ ++ case Opt_trunc_xib: ++ au_fset_opts(opts->flags, TRUNC_XIB); ++ break; ++ case Opt_notrunc_xib: ++ au_fclr_opts(opts->flags, TRUNC_XIB); ++ break; ++ ++ case Opt_dirren: ++ err = 1; ++ if (!au_opt_test(sbinfo->si_mntflags, DIRREN)) { ++ err = au_dr_opt_set(sb); ++ if (!err) ++ err = 1; ++ } ++ if (err == 1) ++ au_opt_set(sbinfo->si_mntflags, DIRREN); ++ break; ++ case Opt_nodirren: ++ err = 1; ++ if (au_opt_test(sbinfo->si_mntflags, DIRREN)) { ++ err = au_dr_opt_clr(sb, au_ftest_opts(opts->flags, ++ DR_FLUSHED)); ++ if (!err) ++ err = 1; ++ } ++ if (err == 1) ++ au_opt_clr(sbinfo->si_mntflags, DIRREN); ++ break; ++ ++ case Opt_acl: ++ sb->s_flags |= SB_POSIXACL; ++ break; ++ case Opt_noacl: ++ sb->s_flags &= ~SB_POSIXACL; ++ break; ++ ++ default: ++ err = 0; ++ break; ++ } ++ ++ return err; ++} ++ ++/* ++ * returns tri-state. ++ * plus: processed without an error ++ * zero: unprocessed ++ * minus: error ++ */ ++static int au_opt_br(struct super_block *sb, struct au_opt *opt, ++ struct au_opts *opts) ++{ ++ int err, do_refresh; ++ ++ err = 0; ++ switch (opt->type) { ++ case Opt_append: ++ opt->add.bindex = au_sbbot(sb) + 1; ++ if (opt->add.bindex < 0) ++ opt->add.bindex = 0; ++ goto add; ++ case Opt_prepend: ++ opt->add.bindex = 0; ++ add: /* indented label */ ++ case Opt_add: ++ err = au_br_add(sb, &opt->add, ++ au_ftest_opts(opts->flags, REMOUNT)); ++ if (!err) { ++ err = 1; ++ au_fset_opts(opts->flags, REFRESH); ++ } ++ break; ++ ++ case Opt_del: ++ case Opt_idel: ++ err = au_br_del(sb, &opt->del, ++ au_ftest_opts(opts->flags, REMOUNT)); ++ if (!err) { ++ err = 1; ++ au_fset_opts(opts->flags, TRUNC_XIB); ++ au_fset_opts(opts->flags, REFRESH); ++ } ++ break; ++ ++ case Opt_mod: ++ case Opt_imod: ++ err = au_br_mod(sb, &opt->mod, ++ au_ftest_opts(opts->flags, REMOUNT), ++ &do_refresh); ++ if (!err) { ++ err = 1; ++ if (do_refresh) ++ au_fset_opts(opts->flags, REFRESH); ++ } ++ break; ++ } ++ return err; ++} ++ ++static int au_opt_xino(struct super_block *sb, struct au_opt *opt, ++ struct au_opt_xino **opt_xino, ++ struct au_opts *opts) ++{ ++ int err; ++ aufs_bindex_t bbot, bindex; ++ struct dentry *root, *parent, *h_root; ++ ++ err = 0; ++ switch (opt->type) { ++ case Opt_xino: ++ err = au_xino_set(sb, &opt->xino, ++ !!au_ftest_opts(opts->flags, REMOUNT)); ++ if (unlikely(err)) ++ break; ++ ++ *opt_xino = &opt->xino; ++ au_xino_brid_set(sb, -1); ++ ++ /* safe d_parent access */ ++ parent = opt->xino.file->f_path.dentry->d_parent; ++ root = sb->s_root; ++ bbot = au_sbbot(sb); ++ for (bindex = 0; bindex <= bbot; bindex++) { ++ h_root = au_h_dptr(root, bindex); ++ if (h_root == parent) { ++ au_xino_brid_set(sb, au_sbr_id(sb, bindex)); ++ break; ++ } ++ } ++ break; ++ ++ case Opt_noxino: ++ au_xino_clr(sb); ++ au_xino_brid_set(sb, -1); ++ *opt_xino = (void *)-1; ++ break; ++ } ++ ++ return err; ++} ++ ++int au_opts_verify(struct super_block *sb, unsigned long sb_flags, ++ unsigned int pending) ++{ ++ int err, fhsm; ++ aufs_bindex_t bindex, bbot; ++ unsigned char do_plink, skip, do_free, can_no_dreval; ++ struct au_branch *br; ++ struct au_wbr *wbr; ++ struct dentry *root, *dentry; ++ struct inode *dir, *h_dir; ++ struct au_sbinfo *sbinfo; ++ struct au_hinode *hdir; ++ ++ SiMustAnyLock(sb); ++ ++ sbinfo = au_sbi(sb); ++ AuDebugOn(!(sbinfo->si_mntflags & AuOptMask_UDBA)); ++ ++ if (!(sb_flags & SB_RDONLY)) { ++ if (unlikely(!au_br_writable(au_sbr_perm(sb, 0)))) ++ pr_warn("first branch should be rw\n"); ++ if (unlikely(au_opt_test(sbinfo->si_mntflags, SHWH))) ++ pr_warn_once("shwh should be used with ro\n"); ++ } ++ ++ if (au_opt_test((sbinfo->si_mntflags | pending), UDBA_HNOTIFY) ++ && !au_opt_test(sbinfo->si_mntflags, XINO)) ++ pr_warn_once("udba=*notify requires xino\n"); ++ ++ if (au_opt_test(sbinfo->si_mntflags, DIRPERM1)) ++ pr_warn_once("dirperm1 breaks the protection" ++ " by the permission bits on the lower branch\n"); ++ ++ err = 0; ++ fhsm = 0; ++ root = sb->s_root; ++ dir = d_inode(root); ++ do_plink = !!au_opt_test(sbinfo->si_mntflags, PLINK); ++ can_no_dreval = !!au_opt_test((sbinfo->si_mntflags | pending), ++ UDBA_NONE); ++ bbot = au_sbbot(sb); ++ for (bindex = 0; !err && bindex <= bbot; bindex++) { ++ skip = 0; ++ h_dir = au_h_iptr(dir, bindex); ++ br = au_sbr(sb, bindex); ++ ++ if ((br->br_perm & AuBrAttr_ICEX) ++ && !h_dir->i_op->listxattr) ++ br->br_perm &= ~AuBrAttr_ICEX; ++#if 0 ++ if ((br->br_perm & AuBrAttr_ICEX_SEC) ++ && (au_br_sb(br)->s_flags & SB_NOSEC)) ++ br->br_perm &= ~AuBrAttr_ICEX_SEC; ++#endif ++ ++ do_free = 0; ++ wbr = br->br_wbr; ++ if (wbr) ++ wbr_wh_read_lock(wbr); ++ ++ if (!au_br_writable(br->br_perm)) { ++ do_free = !!wbr; ++ skip = (!wbr ++ || (!wbr->wbr_whbase ++ && !wbr->wbr_plink ++ && !wbr->wbr_orph)); ++ } else if (!au_br_wh_linkable(br->br_perm)) { ++ /* skip = (!br->br_whbase && !br->br_orph); */ ++ skip = (!wbr || !wbr->wbr_whbase); ++ if (skip && wbr) { ++ if (do_plink) ++ skip = !!wbr->wbr_plink; ++ else ++ skip = !wbr->wbr_plink; ++ } ++ } else { ++ /* skip = (br->br_whbase && br->br_ohph); */ ++ skip = (wbr && wbr->wbr_whbase); ++ if (skip) { ++ if (do_plink) ++ skip = !!wbr->wbr_plink; ++ else ++ skip = !wbr->wbr_plink; ++ } ++ } ++ if (wbr) ++ wbr_wh_read_unlock(wbr); ++ ++ if (can_no_dreval) { ++ dentry = br->br_path.dentry; ++ spin_lock(&dentry->d_lock); ++ if (dentry->d_flags & ++ (DCACHE_OP_REVALIDATE | DCACHE_OP_WEAK_REVALIDATE)) ++ can_no_dreval = 0; ++ spin_unlock(&dentry->d_lock); ++ } ++ ++ if (au_br_fhsm(br->br_perm)) { ++ fhsm++; ++ AuDebugOn(!br->br_fhsm); ++ } ++ ++ if (skip) ++ continue; ++ ++ hdir = au_hi(dir, bindex); ++ au_hn_inode_lock_nested(hdir, AuLsc_I_PARENT); ++ if (wbr) ++ wbr_wh_write_lock(wbr); ++ err = au_wh_init(br, sb); ++ if (wbr) ++ wbr_wh_write_unlock(wbr); ++ au_hn_inode_unlock(hdir); ++ ++ if (!err && do_free) { ++ kfree(wbr); ++ br->br_wbr = NULL; ++ } ++ } ++ ++ if (can_no_dreval) ++ au_fset_si(sbinfo, NO_DREVAL); ++ else ++ au_fclr_si(sbinfo, NO_DREVAL); ++ ++ if (fhsm >= 2) { ++ au_fset_si(sbinfo, FHSM); ++ for (bindex = bbot; bindex >= 0; bindex--) { ++ br = au_sbr(sb, bindex); ++ if (au_br_fhsm(br->br_perm)) { ++ au_fhsm_set_bottom(sb, bindex); ++ break; ++ } ++ } ++ } else { ++ au_fclr_si(sbinfo, FHSM); ++ au_fhsm_set_bottom(sb, -1); ++ } ++ ++ return err; ++} ++ ++int au_opts_mount(struct super_block *sb, struct au_opts *opts) ++{ ++ int err; ++ unsigned int tmp; ++ aufs_bindex_t bindex, bbot; ++ struct au_opt *opt; ++ struct au_opt_xino *opt_xino, xino; ++ struct au_sbinfo *sbinfo; ++ struct au_branch *br; ++ struct inode *dir; ++ ++ SiMustWriteLock(sb); ++ ++ err = 0; ++ opt_xino = NULL; ++ opt = opts->opt; ++ while (err >= 0 && opt->type != Opt_tail) ++ err = au_opt_simple(sb, opt++, opts); ++ if (err > 0) ++ err = 0; ++ else if (unlikely(err < 0)) ++ goto out; ++ ++ /* disable xino and udba temporary */ ++ sbinfo = au_sbi(sb); ++ tmp = sbinfo->si_mntflags; ++ au_opt_clr(sbinfo->si_mntflags, XINO); ++ au_opt_set_udba(sbinfo->si_mntflags, UDBA_REVAL); ++ ++ opt = opts->opt; ++ while (err >= 0 && opt->type != Opt_tail) ++ err = au_opt_br(sb, opt++, opts); ++ if (err > 0) ++ err = 0; ++ else if (unlikely(err < 0)) ++ goto out; ++ ++ bbot = au_sbbot(sb); ++ if (unlikely(bbot < 0)) { ++ err = -EINVAL; ++ pr_err("no branches\n"); ++ goto out; ++ } ++ ++ if (au_opt_test(tmp, XINO)) ++ au_opt_set(sbinfo->si_mntflags, XINO); ++ opt = opts->opt; ++ while (!err && opt->type != Opt_tail) ++ err = au_opt_xino(sb, opt++, &opt_xino, opts); ++ if (unlikely(err)) ++ goto out; ++ ++ err = au_opts_verify(sb, sb->s_flags, tmp); ++ if (unlikely(err)) ++ goto out; ++ ++ /* restore xino */ ++ if (au_opt_test(tmp, XINO) && !opt_xino) { ++ xino.file = au_xino_def(sb); ++ err = PTR_ERR(xino.file); ++ if (IS_ERR(xino.file)) ++ goto out; ++ ++ err = au_xino_set(sb, &xino, /*remount*/0); ++ fput(xino.file); ++ if (unlikely(err)) ++ goto out; ++ } ++ ++ /* restore udba */ ++ tmp &= AuOptMask_UDBA; ++ sbinfo->si_mntflags &= ~AuOptMask_UDBA; ++ sbinfo->si_mntflags |= tmp; ++ bbot = au_sbbot(sb); ++ for (bindex = 0; bindex <= bbot; bindex++) { ++ br = au_sbr(sb, bindex); ++ err = au_hnotify_reset_br(tmp, br, br->br_perm); ++ if (unlikely(err)) ++ AuIOErr("hnotify failed on br %d, %d, ignored\n", ++ bindex, err); ++ /* go on even if err */ ++ } ++ if (au_opt_test(tmp, UDBA_HNOTIFY)) { ++ dir = d_inode(sb->s_root); ++ au_hn_reset(dir, au_hi_flags(dir, /*isdir*/1) & ~AuHi_XINO); ++ } ++ ++out: ++ return err; ++} ++ ++int au_opts_remount(struct super_block *sb, struct au_opts *opts) ++{ ++ int err, rerr; ++ unsigned char no_dreval; ++ struct inode *dir; ++ struct au_opt_xino *opt_xino; ++ struct au_opt *opt; ++ struct au_sbinfo *sbinfo; ++ ++ SiMustWriteLock(sb); ++ ++ err = au_dr_opt_flush(sb); ++ if (unlikely(err)) ++ goto out; ++ au_fset_opts(opts->flags, DR_FLUSHED); ++ ++ dir = d_inode(sb->s_root); ++ sbinfo = au_sbi(sb); ++ opt_xino = NULL; ++ opt = opts->opt; ++ while (err >= 0 && opt->type != Opt_tail) { ++ err = au_opt_simple(sb, opt, opts); ++ if (!err) ++ err = au_opt_br(sb, opt, opts); ++ if (!err) ++ err = au_opt_xino(sb, opt, &opt_xino, opts); ++ opt++; ++ } ++ if (err > 0) ++ err = 0; ++ AuTraceErr(err); ++ /* go on even err */ ++ ++ no_dreval = !!au_ftest_si(sbinfo, NO_DREVAL); ++ rerr = au_opts_verify(sb, opts->sb_flags, /*pending*/0); ++ if (unlikely(rerr && !err)) ++ err = rerr; ++ ++ if (no_dreval != !!au_ftest_si(sbinfo, NO_DREVAL)) ++ au_fset_opts(opts->flags, REFRESH_IDOP); ++ ++ if (au_ftest_opts(opts->flags, TRUNC_XIB)) { ++ rerr = au_xib_trunc(sb); ++ if (unlikely(rerr && !err)) ++ err = rerr; ++ } ++ ++ /* will be handled by the caller */ ++ if (!au_ftest_opts(opts->flags, REFRESH) ++ && (opts->given_udba ++ || au_opt_test(sbinfo->si_mntflags, XINO) ++ || au_ftest_opts(opts->flags, REFRESH_IDOP) ++ )) ++ au_fset_opts(opts->flags, REFRESH); ++ ++ AuDbg("status 0x%x\n", opts->flags); ++ ++out: ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++unsigned int au_opt_udba(struct super_block *sb) ++{ ++ return au_mntflags(sb) & AuOptMask_UDBA; ++} +diff -Naur null/fs/aufs/opts.h linux-4.15/fs/aufs/opts.h +--- /dev/null ++++ linux-4.15/fs/aufs/opts.h 2018-02-25 02:38:09.204738113 +0100 +@@ -0,0 +1,224 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * mount options/flags ++ */ ++ ++#ifndef __AUFS_OPTS_H__ ++#define __AUFS_OPTS_H__ ++ ++#ifdef __KERNEL__ ++ ++#include ++ ++struct file; ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* mount flags */ ++#define AuOpt_XINO 1 /* external inode number bitmap ++ and translation table */ ++#define AuOpt_TRUNC_XINO (1 << 1) /* truncate xino files */ ++#define AuOpt_UDBA_NONE (1 << 2) /* users direct branch access */ ++#define AuOpt_UDBA_REVAL (1 << 3) ++#define AuOpt_UDBA_HNOTIFY (1 << 4) ++#define AuOpt_SHWH (1 << 5) /* show whiteout */ ++#define AuOpt_PLINK (1 << 6) /* pseudo-link */ ++#define AuOpt_DIRPERM1 (1 << 7) /* ignore the lower dir's perm ++ bits */ ++#define AuOpt_ALWAYS_DIROPQ (1 << 9) /* policy to creating diropq */ ++#define AuOpt_SUM (1 << 10) /* summation for statfs(2) */ ++#define AuOpt_SUM_W (1 << 11) /* unimplemented */ ++#define AuOpt_WARN_PERM (1 << 12) /* warn when add-branch */ ++#define AuOpt_VERBOSE (1 << 13) /* busy inode when del-branch */ ++#define AuOpt_DIO (1 << 14) /* direct io */ ++#define AuOpt_DIRREN (1 << 15) /* directory rename */ ++ ++#ifndef CONFIG_AUFS_HNOTIFY ++#undef AuOpt_UDBA_HNOTIFY ++#define AuOpt_UDBA_HNOTIFY 0 ++#endif ++#ifndef CONFIG_AUFS_DIRREN ++#undef AuOpt_DIRREN ++#define AuOpt_DIRREN 0 ++#endif ++#ifndef CONFIG_AUFS_SHWH ++#undef AuOpt_SHWH ++#define AuOpt_SHWH 0 ++#endif ++ ++#define AuOpt_Def (AuOpt_XINO \ ++ | AuOpt_UDBA_REVAL \ ++ | AuOpt_PLINK \ ++ /* | AuOpt_DIRPERM1 */ \ ++ | AuOpt_WARN_PERM) ++#define AuOptMask_UDBA (AuOpt_UDBA_NONE \ ++ | AuOpt_UDBA_REVAL \ ++ | AuOpt_UDBA_HNOTIFY) ++ ++#define au_opt_test(flags, name) (flags & AuOpt_##name) ++#define au_opt_set(flags, name) do { \ ++ BUILD_BUG_ON(AuOpt_##name & AuOptMask_UDBA); \ ++ ((flags) |= AuOpt_##name); \ ++} while (0) ++#define au_opt_set_udba(flags, name) do { \ ++ (flags) &= ~AuOptMask_UDBA; \ ++ ((flags) |= AuOpt_##name); \ ++} while (0) ++#define au_opt_clr(flags, name) do { \ ++ ((flags) &= ~AuOpt_##name); \ ++} while (0) ++ ++static inline unsigned int au_opts_plink(unsigned int mntflags) ++{ ++#ifdef CONFIG_PROC_FS ++ return mntflags; ++#else ++ return mntflags & ~AuOpt_PLINK; ++#endif ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* policies to select one among multiple writable branches */ ++enum { ++ AuWbrCreate_TDP, /* top down parent */ ++ AuWbrCreate_RR, /* round robin */ ++ AuWbrCreate_MFS, /* most free space */ ++ AuWbrCreate_MFSV, /* mfs with seconds */ ++ AuWbrCreate_MFSRR, /* mfs then rr */ ++ AuWbrCreate_MFSRRV, /* mfs then rr with seconds */ ++ AuWbrCreate_TDMFS, /* top down regardless parent and mfs */ ++ AuWbrCreate_TDMFSV, /* top down regardless parent and mfs */ ++ AuWbrCreate_PMFS, /* parent and mfs */ ++ AuWbrCreate_PMFSV, /* parent and mfs with seconds */ ++ AuWbrCreate_PMFSRR, /* parent, mfs and round-robin */ ++ AuWbrCreate_PMFSRRV, /* plus seconds */ ++ ++ AuWbrCreate_Def = AuWbrCreate_TDP ++}; ++ ++enum { ++ AuWbrCopyup_TDP, /* top down parent */ ++ AuWbrCopyup_BUP, /* bottom up parent */ ++ AuWbrCopyup_BU, /* bottom up */ ++ ++ AuWbrCopyup_Def = AuWbrCopyup_TDP ++}; ++ ++/* ---------------------------------------------------------------------- */ ++ ++struct au_opt_add { ++ aufs_bindex_t bindex; ++ char *pathname; ++ int perm; ++ struct path path; ++}; ++ ++struct au_opt_del { ++ char *pathname; ++ struct path h_path; ++}; ++ ++struct au_opt_mod { ++ char *path; ++ int perm; ++ struct dentry *h_root; ++}; ++ ++struct au_opt_xino { ++ char *path; ++ struct file *file; ++}; ++ ++struct au_opt_xino_itrunc { ++ aufs_bindex_t bindex; ++}; ++ ++struct au_opt_wbr_create { ++ int wbr_create; ++ int mfs_second; ++ unsigned long long mfsrr_watermark; ++}; ++ ++struct au_opt { ++ int type; ++ union { ++ struct au_opt_xino xino; ++ struct au_opt_xino_itrunc xino_itrunc; ++ struct au_opt_add add; ++ struct au_opt_del del; ++ struct au_opt_mod mod; ++ int dirwh; ++ int rdcache; ++ unsigned int rdblk; ++ unsigned int rdhash; ++ int udba; ++ struct au_opt_wbr_create wbr_create; ++ int wbr_copyup; ++ unsigned int fhsm_second; ++ }; ++}; ++ ++/* opts flags */ ++#define AuOpts_REMOUNT 1 ++#define AuOpts_REFRESH (1 << 1) ++#define AuOpts_TRUNC_XIB (1 << 2) ++#define AuOpts_REFRESH_DYAOP (1 << 3) ++#define AuOpts_REFRESH_IDOP (1 << 4) ++#define AuOpts_DR_FLUSHED (1 << 5) ++#define au_ftest_opts(flags, name) ((flags) & AuOpts_##name) ++#define au_fset_opts(flags, name) \ ++ do { (flags) |= AuOpts_##name; } while (0) ++#define au_fclr_opts(flags, name) \ ++ do { (flags) &= ~AuOpts_##name; } while (0) ++ ++#ifndef CONFIG_AUFS_DIRREN ++#undef AuOpts_DR_FLUSHED ++#define AuOpts_DR_FLUSHED 0 ++#endif ++ ++struct au_opts { ++ struct au_opt *opt; ++ int max_opt; ++ ++ unsigned int given_udba; ++ unsigned int flags; ++ unsigned long sb_flags; ++}; ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* opts.c */ ++void au_optstr_br_perm(au_br_perm_str_t *str, int perm); ++const char *au_optstr_udba(int udba); ++const char *au_optstr_wbr_copyup(int wbr_copyup); ++const char *au_optstr_wbr_create(int wbr_create); ++ ++void au_opts_free(struct au_opts *opts); ++struct super_block; ++int au_opts_parse(struct super_block *sb, char *str, struct au_opts *opts); ++int au_opts_verify(struct super_block *sb, unsigned long sb_flags, ++ unsigned int pending); ++int au_opts_mount(struct super_block *sb, struct au_opts *opts); ++int au_opts_remount(struct super_block *sb, struct au_opts *opts); ++ ++unsigned int au_opt_udba(struct super_block *sb); ++ ++#endif /* __KERNEL__ */ ++#endif /* __AUFS_OPTS_H__ */ +diff -Naur null/fs/aufs/plink.c linux-4.15/fs/aufs/plink.c +--- /dev/null ++++ linux-4.15/fs/aufs/plink.c 2018-02-25 02:38:09.204738113 +0100 +@@ -0,0 +1,515 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * pseudo-link ++ */ ++ ++#include "aufs.h" ++ ++/* ++ * the pseudo-link maintenance mode. ++ * during a user process maintains the pseudo-links, ++ * prohibit adding a new plink and branch manipulation. ++ * ++ * Flags ++ * NOPLM: ++ * For entry functions which will handle plink, and i_mutex is already held ++ * in VFS. ++ * They cannot wait and should return an error at once. ++ * Callers has to check the error. ++ * NOPLMW: ++ * For entry functions which will handle plink, but i_mutex is not held ++ * in VFS. ++ * They can wait the plink maintenance mode to finish. ++ * ++ * They behave like F_SETLK and F_SETLKW. ++ * If the caller never handle plink, then both flags are unnecessary. ++ */ ++ ++int au_plink_maint(struct super_block *sb, int flags) ++{ ++ int err; ++ pid_t pid, ppid; ++ struct task_struct *parent, *prev; ++ struct au_sbinfo *sbi; ++ ++ SiMustAnyLock(sb); ++ ++ err = 0; ++ if (!au_opt_test(au_mntflags(sb), PLINK)) ++ goto out; ++ ++ sbi = au_sbi(sb); ++ pid = sbi->si_plink_maint_pid; ++ if (!pid || pid == current->pid) ++ goto out; ++ ++ /* todo: it highly depends upon /sbin/mount.aufs */ ++ prev = NULL; ++ parent = current; ++ ppid = 0; ++ rcu_read_lock(); ++ while (1) { ++ parent = rcu_dereference(parent->real_parent); ++ if (parent == prev) ++ break; ++ ppid = task_pid_vnr(parent); ++ if (pid == ppid) { ++ rcu_read_unlock(); ++ goto out; ++ } ++ prev = parent; ++ } ++ rcu_read_unlock(); ++ ++ if (au_ftest_lock(flags, NOPLMW)) { ++ /* if there is no i_mutex lock in VFS, we don't need to wait */ ++ /* AuDebugOn(!lockdep_depth(current)); */ ++ while (sbi->si_plink_maint_pid) { ++ si_read_unlock(sb); ++ /* gave up wake_up_bit() */ ++ wait_event(sbi->si_plink_wq, !sbi->si_plink_maint_pid); ++ ++ if (au_ftest_lock(flags, FLUSH)) ++ au_nwt_flush(&sbi->si_nowait); ++ si_noflush_read_lock(sb); ++ } ++ } else if (au_ftest_lock(flags, NOPLM)) { ++ AuDbg("ppid %d, pid %d\n", ppid, pid); ++ err = -EAGAIN; ++ } ++ ++out: ++ return err; ++} ++ ++void au_plink_maint_leave(struct au_sbinfo *sbinfo) ++{ ++ spin_lock(&sbinfo->si_plink_maint_lock); ++ sbinfo->si_plink_maint_pid = 0; ++ spin_unlock(&sbinfo->si_plink_maint_lock); ++ wake_up_all(&sbinfo->si_plink_wq); ++} ++ ++int au_plink_maint_enter(struct super_block *sb) ++{ ++ int err; ++ struct au_sbinfo *sbinfo; ++ ++ err = 0; ++ sbinfo = au_sbi(sb); ++ /* make sure i am the only one in this fs */ ++ si_write_lock(sb, AuLock_FLUSH); ++ if (au_opt_test(au_mntflags(sb), PLINK)) { ++ spin_lock(&sbinfo->si_plink_maint_lock); ++ if (!sbinfo->si_plink_maint_pid) ++ sbinfo->si_plink_maint_pid = current->pid; ++ else ++ err = -EBUSY; ++ spin_unlock(&sbinfo->si_plink_maint_lock); ++ } ++ si_write_unlock(sb); ++ ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++#ifdef CONFIG_AUFS_DEBUG ++void au_plink_list(struct super_block *sb) ++{ ++ int i; ++ struct au_sbinfo *sbinfo; ++ struct hlist_bl_head *hbl; ++ struct hlist_bl_node *pos; ++ struct au_icntnr *icntnr; ++ ++ SiMustAnyLock(sb); ++ ++ sbinfo = au_sbi(sb); ++ AuDebugOn(!au_opt_test(au_mntflags(sb), PLINK)); ++ AuDebugOn(au_plink_maint(sb, AuLock_NOPLM)); ++ ++ for (i = 0; i < AuPlink_NHASH; i++) { ++ hbl = sbinfo->si_plink + i; ++ hlist_bl_lock(hbl); ++ hlist_bl_for_each_entry(icntnr, pos, hbl, plink) ++ AuDbg("%lu\n", icntnr->vfs_inode.i_ino); ++ hlist_bl_unlock(hbl); ++ } ++} ++#endif ++ ++/* is the inode pseudo-linked? */ ++int au_plink_test(struct inode *inode) ++{ ++ int found, i; ++ struct au_sbinfo *sbinfo; ++ struct hlist_bl_head *hbl; ++ struct hlist_bl_node *pos; ++ struct au_icntnr *icntnr; ++ ++ sbinfo = au_sbi(inode->i_sb); ++ AuRwMustAnyLock(&sbinfo->si_rwsem); ++ AuDebugOn(!au_opt_test(au_mntflags(inode->i_sb), PLINK)); ++ AuDebugOn(au_plink_maint(inode->i_sb, AuLock_NOPLM)); ++ ++ found = 0; ++ i = au_plink_hash(inode->i_ino); ++ hbl = sbinfo->si_plink + i; ++ hlist_bl_lock(hbl); ++ hlist_bl_for_each_entry(icntnr, pos, hbl, plink) ++ if (&icntnr->vfs_inode == inode) { ++ found = 1; ++ break; ++ } ++ hlist_bl_unlock(hbl); ++ return found; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* ++ * generate a name for plink. ++ * the file will be stored under AUFS_WH_PLINKDIR. ++ */ ++/* 20 is max digits length of ulong 64 */ ++#define PLINK_NAME_LEN ((20 + 1) * 2) ++ ++static int plink_name(char *name, int len, struct inode *inode, ++ aufs_bindex_t bindex) ++{ ++ int rlen; ++ struct inode *h_inode; ++ ++ h_inode = au_h_iptr(inode, bindex); ++ rlen = snprintf(name, len, "%lu.%lu", inode->i_ino, h_inode->i_ino); ++ return rlen; ++} ++ ++struct au_do_plink_lkup_args { ++ struct dentry **errp; ++ struct qstr *tgtname; ++ struct dentry *h_parent; ++ struct au_branch *br; ++}; ++ ++static struct dentry *au_do_plink_lkup(struct qstr *tgtname, ++ struct dentry *h_parent, ++ struct au_branch *br) ++{ ++ struct dentry *h_dentry; ++ struct inode *h_inode; ++ ++ h_inode = d_inode(h_parent); ++ vfsub_inode_lock_shared_nested(h_inode, AuLsc_I_CHILD2); ++ h_dentry = vfsub_lkup_one(tgtname, h_parent); ++ inode_unlock_shared(h_inode); ++ return h_dentry; ++} ++ ++static void au_call_do_plink_lkup(void *args) ++{ ++ struct au_do_plink_lkup_args *a = args; ++ *a->errp = au_do_plink_lkup(a->tgtname, a->h_parent, a->br); ++} ++ ++/* lookup the plink-ed @inode under the branch at @bindex */ ++struct dentry *au_plink_lkup(struct inode *inode, aufs_bindex_t bindex) ++{ ++ struct dentry *h_dentry, *h_parent; ++ struct au_branch *br; ++ int wkq_err; ++ char a[PLINK_NAME_LEN]; ++ struct qstr tgtname = QSTR_INIT(a, 0); ++ ++ AuDebugOn(au_plink_maint(inode->i_sb, AuLock_NOPLM)); ++ ++ br = au_sbr(inode->i_sb, bindex); ++ h_parent = br->br_wbr->wbr_plink; ++ tgtname.len = plink_name(a, sizeof(a), inode, bindex); ++ ++ if (!uid_eq(current_fsuid(), GLOBAL_ROOT_UID)) { ++ struct au_do_plink_lkup_args args = { ++ .errp = &h_dentry, ++ .tgtname = &tgtname, ++ .h_parent = h_parent, ++ .br = br ++ }; ++ ++ wkq_err = au_wkq_wait(au_call_do_plink_lkup, &args); ++ if (unlikely(wkq_err)) ++ h_dentry = ERR_PTR(wkq_err); ++ } else ++ h_dentry = au_do_plink_lkup(&tgtname, h_parent, br); ++ ++ return h_dentry; ++} ++ ++/* create a pseudo-link */ ++static int do_whplink(struct qstr *tgt, struct dentry *h_parent, ++ struct dentry *h_dentry, struct au_branch *br) ++{ ++ int err; ++ struct path h_path = { ++ .mnt = au_br_mnt(br) ++ }; ++ struct inode *h_dir, *delegated; ++ ++ h_dir = d_inode(h_parent); ++ inode_lock_nested(h_dir, AuLsc_I_CHILD2); ++again: ++ h_path.dentry = vfsub_lkup_one(tgt, h_parent); ++ err = PTR_ERR(h_path.dentry); ++ if (IS_ERR(h_path.dentry)) ++ goto out; ++ ++ err = 0; ++ /* wh.plink dir is not monitored */ ++ /* todo: is it really safe? */ ++ if (d_is_positive(h_path.dentry) ++ && d_inode(h_path.dentry) != d_inode(h_dentry)) { ++ delegated = NULL; ++ err = vfsub_unlink(h_dir, &h_path, &delegated, /*force*/0); ++ if (unlikely(err == -EWOULDBLOCK)) { ++ pr_warn("cannot retry for NFSv4 delegation" ++ " for an internal unlink\n"); ++ iput(delegated); ++ } ++ dput(h_path.dentry); ++ h_path.dentry = NULL; ++ if (!err) ++ goto again; ++ } ++ if (!err && d_is_negative(h_path.dentry)) { ++ delegated = NULL; ++ err = vfsub_link(h_dentry, h_dir, &h_path, &delegated); ++ if (unlikely(err == -EWOULDBLOCK)) { ++ pr_warn("cannot retry for NFSv4 delegation" ++ " for an internal link\n"); ++ iput(delegated); ++ } ++ } ++ dput(h_path.dentry); ++ ++out: ++ inode_unlock(h_dir); ++ return err; ++} ++ ++struct do_whplink_args { ++ int *errp; ++ struct qstr *tgt; ++ struct dentry *h_parent; ++ struct dentry *h_dentry; ++ struct au_branch *br; ++}; ++ ++static void call_do_whplink(void *args) ++{ ++ struct do_whplink_args *a = args; ++ *a->errp = do_whplink(a->tgt, a->h_parent, a->h_dentry, a->br); ++} ++ ++static int whplink(struct dentry *h_dentry, struct inode *inode, ++ aufs_bindex_t bindex, struct au_branch *br) ++{ ++ int err, wkq_err; ++ struct au_wbr *wbr; ++ struct dentry *h_parent; ++ char a[PLINK_NAME_LEN]; ++ struct qstr tgtname = QSTR_INIT(a, 0); ++ ++ wbr = au_sbr(inode->i_sb, bindex)->br_wbr; ++ h_parent = wbr->wbr_plink; ++ tgtname.len = plink_name(a, sizeof(a), inode, bindex); ++ ++ /* always superio. */ ++ if (!uid_eq(current_fsuid(), GLOBAL_ROOT_UID)) { ++ struct do_whplink_args args = { ++ .errp = &err, ++ .tgt = &tgtname, ++ .h_parent = h_parent, ++ .h_dentry = h_dentry, ++ .br = br ++ }; ++ wkq_err = au_wkq_wait(call_do_whplink, &args); ++ if (unlikely(wkq_err)) ++ err = wkq_err; ++ } else ++ err = do_whplink(&tgtname, h_parent, h_dentry, br); ++ ++ return err; ++} ++ ++/* ++ * create a new pseudo-link for @h_dentry on @bindex. ++ * the linked inode is held in aufs @inode. ++ */ ++void au_plink_append(struct inode *inode, aufs_bindex_t bindex, ++ struct dentry *h_dentry) ++{ ++ struct super_block *sb; ++ struct au_sbinfo *sbinfo; ++ struct hlist_bl_head *hbl; ++ struct hlist_bl_node *pos; ++ struct au_icntnr *icntnr; ++ int found, err, cnt, i; ++ ++ sb = inode->i_sb; ++ sbinfo = au_sbi(sb); ++ AuDebugOn(!au_opt_test(au_mntflags(sb), PLINK)); ++ AuDebugOn(au_plink_maint(sb, AuLock_NOPLM)); ++ ++ found = au_plink_test(inode); ++ if (found) ++ return; ++ ++ i = au_plink_hash(inode->i_ino); ++ hbl = sbinfo->si_plink + i; ++ au_igrab(inode); ++ ++ hlist_bl_lock(hbl); ++ hlist_bl_for_each_entry(icntnr, pos, hbl, plink) { ++ if (&icntnr->vfs_inode == inode) { ++ found = 1; ++ break; ++ } ++ } ++ if (!found) { ++ icntnr = container_of(inode, struct au_icntnr, vfs_inode); ++ hlist_bl_add_head(&icntnr->plink, hbl); ++ } ++ hlist_bl_unlock(hbl); ++ if (!found) { ++ cnt = au_hbl_count(hbl); ++#define msg "unexpectedly unblanced or too many pseudo-links" ++ if (cnt > AUFS_PLINK_WARN) ++ AuWarn1(msg ", %d\n", cnt); ++#undef msg ++ err = whplink(h_dentry, inode, bindex, au_sbr(sb, bindex)); ++ if (unlikely(err)) { ++ pr_warn("err %d, damaged pseudo link.\n", err); ++ au_hbl_del(&icntnr->plink, hbl); ++ iput(&icntnr->vfs_inode); ++ } ++ } else ++ iput(&icntnr->vfs_inode); ++} ++ ++/* free all plinks */ ++void au_plink_put(struct super_block *sb, int verbose) ++{ ++ int i, warned; ++ struct au_sbinfo *sbinfo; ++ struct hlist_bl_head *hbl; ++ struct hlist_bl_node *pos, *tmp; ++ struct au_icntnr *icntnr; ++ ++ SiMustWriteLock(sb); ++ ++ sbinfo = au_sbi(sb); ++ AuDebugOn(!au_opt_test(au_mntflags(sb), PLINK)); ++ AuDebugOn(au_plink_maint(sb, AuLock_NOPLM)); ++ ++ /* no spin_lock since sbinfo is write-locked */ ++ warned = 0; ++ for (i = 0; i < AuPlink_NHASH; i++) { ++ hbl = sbinfo->si_plink + i; ++ if (!warned && verbose && !hlist_bl_empty(hbl)) { ++ pr_warn("pseudo-link is not flushed"); ++ warned = 1; ++ } ++ hlist_bl_for_each_entry_safe(icntnr, pos, tmp, hbl, plink) ++ iput(&icntnr->vfs_inode); ++ INIT_HLIST_BL_HEAD(hbl); ++ } ++} ++ ++void au_plink_clean(struct super_block *sb, int verbose) ++{ ++ struct dentry *root; ++ ++ root = sb->s_root; ++ aufs_write_lock(root); ++ if (au_opt_test(au_mntflags(sb), PLINK)) ++ au_plink_put(sb, verbose); ++ aufs_write_unlock(root); ++} ++ ++static int au_plink_do_half_refresh(struct inode *inode, aufs_bindex_t br_id) ++{ ++ int do_put; ++ aufs_bindex_t btop, bbot, bindex; ++ ++ do_put = 0; ++ btop = au_ibtop(inode); ++ bbot = au_ibbot(inode); ++ if (btop >= 0) { ++ for (bindex = btop; bindex <= bbot; bindex++) { ++ if (!au_h_iptr(inode, bindex) ++ || au_ii_br_id(inode, bindex) != br_id) ++ continue; ++ au_set_h_iptr(inode, bindex, NULL, 0); ++ do_put = 1; ++ break; ++ } ++ if (do_put) ++ for (bindex = btop; bindex <= bbot; bindex++) ++ if (au_h_iptr(inode, bindex)) { ++ do_put = 0; ++ break; ++ } ++ } else ++ do_put = 1; ++ ++ return do_put; ++} ++ ++/* free the plinks on a branch specified by @br_id */ ++void au_plink_half_refresh(struct super_block *sb, aufs_bindex_t br_id) ++{ ++ struct au_sbinfo *sbinfo; ++ struct hlist_bl_head *hbl; ++ struct hlist_bl_node *pos, *tmp; ++ struct au_icntnr *icntnr; ++ struct inode *inode; ++ int i, do_put; ++ ++ SiMustWriteLock(sb); ++ ++ sbinfo = au_sbi(sb); ++ AuDebugOn(!au_opt_test(au_mntflags(sb), PLINK)); ++ AuDebugOn(au_plink_maint(sb, AuLock_NOPLM)); ++ ++ /* no bit_lock since sbinfo is write-locked */ ++ for (i = 0; i < AuPlink_NHASH; i++) { ++ hbl = sbinfo->si_plink + i; ++ hlist_bl_for_each_entry_safe(icntnr, pos, tmp, hbl, plink) { ++ inode = au_igrab(&icntnr->vfs_inode); ++ ii_write_lock_child(inode); ++ do_put = au_plink_do_half_refresh(inode, br_id); ++ if (do_put) { ++ hlist_bl_del(&icntnr->plink); ++ iput(inode); ++ } ++ ii_write_unlock(inode); ++ iput(inode); ++ } ++ } ++} +diff -Naur null/fs/aufs/poll.c linux-4.15/fs/aufs/poll.c +--- /dev/null ++++ linux-4.15/fs/aufs/poll.c 2018-02-25 02:38:09.204738113 +0100 +@@ -0,0 +1,52 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * poll operation ++ * There is only one filesystem which implements ->poll operation, currently. ++ */ ++ ++#include "aufs.h" ++ ++unsigned int aufs_poll(struct file *file, poll_table *wait) ++{ ++ unsigned int mask; ++ int err; ++ struct file *h_file; ++ struct super_block *sb; ++ ++ /* We should pretend an error happened. */ ++ mask = POLLERR /* | POLLIN | POLLOUT */; ++ sb = file->f_path.dentry->d_sb; ++ si_read_lock(sb, AuLock_FLUSH | AuLock_NOPLMW); ++ ++ h_file = au_read_pre(file, /*keep_fi*/0, /*lsc*/0); ++ err = PTR_ERR(h_file); ++ if (IS_ERR(h_file)) ++ goto out; ++ ++ /* it is not an error if h_file has no operation */ ++ mask = DEFAULT_POLLMASK; ++ if (h_file->f_op->poll) ++ mask = h_file->f_op->poll(h_file, wait); ++ fput(h_file); /* instead of au_read_post() */ ++ ++out: ++ si_read_unlock(sb); ++ AuTraceErr((int)mask); ++ return mask; ++} +diff -Naur null/fs/aufs/posix_acl.c linux-4.15/fs/aufs/posix_acl.c +--- /dev/null ++++ linux-4.15/fs/aufs/posix_acl.c 2018-02-25 02:38:09.204738113 +0100 +@@ -0,0 +1,102 @@ ++/* ++ * Copyright (C) 2014-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * posix acl operations ++ */ ++ ++#include ++#include "aufs.h" ++ ++struct posix_acl *aufs_get_acl(struct inode *inode, int type) ++{ ++ struct posix_acl *acl; ++ int err; ++ aufs_bindex_t bindex; ++ struct inode *h_inode; ++ struct super_block *sb; ++ ++ acl = NULL; ++ sb = inode->i_sb; ++ si_read_lock(sb, AuLock_FLUSH); ++ ii_read_lock_child(inode); ++ if (!(sb->s_flags & SB_POSIXACL)) ++ goto out; ++ ++ bindex = au_ibtop(inode); ++ h_inode = au_h_iptr(inode, bindex); ++ if (unlikely(!h_inode ++ || ((h_inode->i_mode & S_IFMT) ++ != (inode->i_mode & S_IFMT)))) { ++ err = au_busy_or_stale(); ++ acl = ERR_PTR(err); ++ goto out; ++ } ++ ++ /* always topmost only */ ++ acl = get_acl(h_inode, type); ++ if (!IS_ERR_OR_NULL(acl)) ++ set_cached_acl(inode, type, acl); ++ ++out: ++ ii_read_unlock(inode); ++ si_read_unlock(sb); ++ ++ AuTraceErrPtr(acl); ++ return acl; ++} ++ ++int aufs_set_acl(struct inode *inode, struct posix_acl *acl, int type) ++{ ++ int err; ++ ssize_t ssz; ++ struct dentry *dentry; ++ struct au_sxattr arg = { ++ .type = AU_ACL_SET, ++ .u.acl_set = { ++ .acl = acl, ++ .type = type ++ }, ++ }; ++ ++ IMustLock(inode); ++ ++ if (inode->i_ino == AUFS_ROOT_INO) ++ dentry = dget(inode->i_sb->s_root); ++ else { ++ dentry = d_find_alias(inode); ++ if (!dentry) ++ dentry = d_find_any_alias(inode); ++ if (!dentry) { ++ pr_warn("cannot handle this inode, " ++ "please report to aufs-users ML\n"); ++ err = -ENOENT; ++ goto out; ++ } ++ } ++ ++ ssz = au_sxattr(dentry, inode, &arg); ++ dput(dentry); ++ err = ssz; ++ if (ssz >= 0) { ++ err = 0; ++ set_cached_acl(inode, type, acl); ++ } ++ ++out: ++ return err; ++} +diff -Naur null/fs/aufs/procfs.c linux-4.15/fs/aufs/procfs.c +--- /dev/null ++++ linux-4.15/fs/aufs/procfs.c 2018-02-25 02:38:09.204738113 +0100 +@@ -0,0 +1,170 @@ ++/* ++ * Copyright (C) 2010-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * procfs interfaces ++ */ ++ ++#include ++#include "aufs.h" ++ ++static int au_procfs_plm_release(struct inode *inode, struct file *file) ++{ ++ struct au_sbinfo *sbinfo; ++ ++ sbinfo = file->private_data; ++ if (sbinfo) { ++ au_plink_maint_leave(sbinfo); ++ kobject_put(&sbinfo->si_kobj); ++ } ++ ++ return 0; ++} ++ ++static void au_procfs_plm_write_clean(struct file *file) ++{ ++ struct au_sbinfo *sbinfo; ++ ++ sbinfo = file->private_data; ++ if (sbinfo) ++ au_plink_clean(sbinfo->si_sb, /*verbose*/0); ++} ++ ++static int au_procfs_plm_write_si(struct file *file, unsigned long id) ++{ ++ int err; ++ struct super_block *sb; ++ struct au_sbinfo *sbinfo; ++ struct hlist_bl_node *pos; ++ ++ err = -EBUSY; ++ if (unlikely(file->private_data)) ++ goto out; ++ ++ sb = NULL; ++ /* don't use au_sbilist_lock() here */ ++ hlist_bl_lock(&au_sbilist); ++ hlist_bl_for_each_entry(sbinfo, pos, &au_sbilist, si_list) ++ if (id == sysaufs_si_id(sbinfo)) { ++ kobject_get(&sbinfo->si_kobj); ++ sb = sbinfo->si_sb; ++ break; ++ } ++ hlist_bl_unlock(&au_sbilist); ++ ++ err = -EINVAL; ++ if (unlikely(!sb)) ++ goto out; ++ ++ err = au_plink_maint_enter(sb); ++ if (!err) ++ /* keep kobject_get() */ ++ file->private_data = sbinfo; ++ else ++ kobject_put(&sbinfo->si_kobj); ++out: ++ return err; ++} ++ ++/* ++ * Accept a valid "si=xxxx" only. ++ * Once it is accepted successfully, accept "clean" too. ++ */ ++static ssize_t au_procfs_plm_write(struct file *file, const char __user *ubuf, ++ size_t count, loff_t *ppos) ++{ ++ ssize_t err; ++ unsigned long id; ++ /* last newline is allowed */ ++ char buf[3 + sizeof(unsigned long) * 2 + 1]; ++ ++ err = -EACCES; ++ if (unlikely(!capable(CAP_SYS_ADMIN))) ++ goto out; ++ ++ err = -EINVAL; ++ if (unlikely(count > sizeof(buf))) ++ goto out; ++ ++ err = copy_from_user(buf, ubuf, count); ++ if (unlikely(err)) { ++ err = -EFAULT; ++ goto out; ++ } ++ buf[count] = 0; ++ ++ err = -EINVAL; ++ if (!strcmp("clean", buf)) { ++ au_procfs_plm_write_clean(file); ++ goto out_success; ++ } else if (unlikely(strncmp("si=", buf, 3))) ++ goto out; ++ ++ err = kstrtoul(buf + 3, 16, &id); ++ if (unlikely(err)) ++ goto out; ++ ++ err = au_procfs_plm_write_si(file, id); ++ if (unlikely(err)) ++ goto out; ++ ++out_success: ++ err = count; /* success */ ++out: ++ return err; ++} ++ ++static const struct file_operations au_procfs_plm_fop = { ++ .write = au_procfs_plm_write, ++ .release = au_procfs_plm_release, ++ .owner = THIS_MODULE ++}; ++ ++/* ---------------------------------------------------------------------- */ ++ ++static struct proc_dir_entry *au_procfs_dir; ++ ++void au_procfs_fin(void) ++{ ++ remove_proc_entry(AUFS_PLINK_MAINT_NAME, au_procfs_dir); ++ remove_proc_entry(AUFS_PLINK_MAINT_DIR, NULL); ++} ++ ++int __init au_procfs_init(void) ++{ ++ int err; ++ struct proc_dir_entry *entry; ++ ++ err = -ENOMEM; ++ au_procfs_dir = proc_mkdir(AUFS_PLINK_MAINT_DIR, NULL); ++ if (unlikely(!au_procfs_dir)) ++ goto out; ++ ++ entry = proc_create(AUFS_PLINK_MAINT_NAME, S_IFREG | S_IWUSR, ++ au_procfs_dir, &au_procfs_plm_fop); ++ if (unlikely(!entry)) ++ goto out_dir; ++ ++ err = 0; ++ goto out; /* success */ ++ ++ ++out_dir: ++ remove_proc_entry(AUFS_PLINK_MAINT_DIR, NULL); ++out: ++ return err; ++} +diff -Naur null/fs/aufs/rdu.c linux-4.15/fs/aufs/rdu.c +--- /dev/null ++++ linux-4.15/fs/aufs/rdu.c 2018-02-25 02:38:09.204738113 +0100 +@@ -0,0 +1,381 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * readdir in userspace. ++ */ ++ ++#include ++#include ++#include ++#include "aufs.h" ++ ++/* bits for struct aufs_rdu.flags */ ++#define AuRdu_CALLED 1 ++#define AuRdu_CONT (1 << 1) ++#define AuRdu_FULL (1 << 2) ++#define au_ftest_rdu(flags, name) ((flags) & AuRdu_##name) ++#define au_fset_rdu(flags, name) \ ++ do { (flags) |= AuRdu_##name; } while (0) ++#define au_fclr_rdu(flags, name) \ ++ do { (flags) &= ~AuRdu_##name; } while (0) ++ ++struct au_rdu_arg { ++ struct dir_context ctx; ++ struct aufs_rdu *rdu; ++ union au_rdu_ent_ul ent; ++ unsigned long end; ++ ++ struct super_block *sb; ++ int err; ++}; ++ ++static int au_rdu_fill(struct dir_context *ctx, const char *name, int nlen, ++ loff_t offset, u64 h_ino, unsigned int d_type) ++{ ++ int err, len; ++ struct au_rdu_arg *arg = container_of(ctx, struct au_rdu_arg, ctx); ++ struct aufs_rdu *rdu = arg->rdu; ++ struct au_rdu_ent ent; ++ ++ err = 0; ++ arg->err = 0; ++ au_fset_rdu(rdu->cookie.flags, CALLED); ++ len = au_rdu_len(nlen); ++ if (arg->ent.ul + len < arg->end) { ++ ent.ino = h_ino; ++ ent.bindex = rdu->cookie.bindex; ++ ent.type = d_type; ++ ent.nlen = nlen; ++ if (unlikely(nlen > AUFS_MAX_NAMELEN)) ++ ent.type = DT_UNKNOWN; ++ ++ /* unnecessary to support mmap_sem since this is a dir */ ++ err = -EFAULT; ++ if (copy_to_user(arg->ent.e, &ent, sizeof(ent))) ++ goto out; ++ if (copy_to_user(arg->ent.e->name, name, nlen)) ++ goto out; ++ /* the terminating NULL */ ++ if (__put_user(0, arg->ent.e->name + nlen)) ++ goto out; ++ err = 0; ++ /* AuDbg("%p, %.*s\n", arg->ent.p, nlen, name); */ ++ arg->ent.ul += len; ++ rdu->rent++; ++ } else { ++ err = -EFAULT; ++ au_fset_rdu(rdu->cookie.flags, FULL); ++ rdu->full = 1; ++ rdu->tail = arg->ent; ++ } ++ ++out: ++ /* AuTraceErr(err); */ ++ return err; ++} ++ ++static int au_rdu_do(struct file *h_file, struct au_rdu_arg *arg) ++{ ++ int err; ++ loff_t offset; ++ struct au_rdu_cookie *cookie = &arg->rdu->cookie; ++ ++ /* we don't have to care (FMODE_32BITHASH | FMODE_64BITHASH) for ext4 */ ++ offset = vfsub_llseek(h_file, cookie->h_pos, SEEK_SET); ++ err = offset; ++ if (unlikely(offset != cookie->h_pos)) ++ goto out; ++ ++ err = 0; ++ do { ++ arg->err = 0; ++ au_fclr_rdu(cookie->flags, CALLED); ++ /* smp_mb(); */ ++ err = vfsub_iterate_dir(h_file, &arg->ctx); ++ if (err >= 0) ++ err = arg->err; ++ } while (!err ++ && au_ftest_rdu(cookie->flags, CALLED) ++ && !au_ftest_rdu(cookie->flags, FULL)); ++ cookie->h_pos = h_file->f_pos; ++ ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++static int au_rdu(struct file *file, struct aufs_rdu *rdu) ++{ ++ int err; ++ aufs_bindex_t bbot; ++ struct au_rdu_arg arg = { ++ .ctx = { ++ .actor = au_rdu_fill ++ } ++ }; ++ struct dentry *dentry; ++ struct inode *inode; ++ struct file *h_file; ++ struct au_rdu_cookie *cookie = &rdu->cookie; ++ ++ err = !access_ok(VERIFY_WRITE, rdu->ent.e, rdu->sz); ++ if (unlikely(err)) { ++ err = -EFAULT; ++ AuTraceErr(err); ++ goto out; ++ } ++ rdu->rent = 0; ++ rdu->tail = rdu->ent; ++ rdu->full = 0; ++ arg.rdu = rdu; ++ arg.ent = rdu->ent; ++ arg.end = arg.ent.ul; ++ arg.end += rdu->sz; ++ ++ err = -ENOTDIR; ++ if (unlikely(!file->f_op->iterate && !file->f_op->iterate_shared)) ++ goto out; ++ ++ err = security_file_permission(file, MAY_READ); ++ AuTraceErr(err); ++ if (unlikely(err)) ++ goto out; ++ ++ dentry = file->f_path.dentry; ++ inode = d_inode(dentry); ++ inode_lock_shared(inode); ++ ++ arg.sb = inode->i_sb; ++ err = si_read_lock(arg.sb, AuLock_FLUSH | AuLock_NOPLM); ++ if (unlikely(err)) ++ goto out_mtx; ++ err = au_alive_dir(dentry); ++ if (unlikely(err)) ++ goto out_si; ++ /* todo: reval? */ ++ fi_read_lock(file); ++ ++ err = -EAGAIN; ++ if (unlikely(au_ftest_rdu(cookie->flags, CONT) ++ && cookie->generation != au_figen(file))) ++ goto out_unlock; ++ ++ err = 0; ++ if (!rdu->blk) { ++ rdu->blk = au_sbi(arg.sb)->si_rdblk; ++ if (!rdu->blk) ++ rdu->blk = au_dir_size(file, /*dentry*/NULL); ++ } ++ bbot = au_fbtop(file); ++ if (cookie->bindex < bbot) ++ cookie->bindex = bbot; ++ bbot = au_fbbot_dir(file); ++ /* AuDbg("b%d, b%d\n", cookie->bindex, bbot); */ ++ for (; !err && cookie->bindex <= bbot; ++ cookie->bindex++, cookie->h_pos = 0) { ++ h_file = au_hf_dir(file, cookie->bindex); ++ if (!h_file) ++ continue; ++ ++ au_fclr_rdu(cookie->flags, FULL); ++ err = au_rdu_do(h_file, &arg); ++ AuTraceErr(err); ++ if (unlikely(au_ftest_rdu(cookie->flags, FULL) || err)) ++ break; ++ } ++ AuDbg("rent %llu\n", rdu->rent); ++ ++ if (!err && !au_ftest_rdu(cookie->flags, CONT)) { ++ rdu->shwh = !!au_opt_test(au_sbi(arg.sb)->si_mntflags, SHWH); ++ au_fset_rdu(cookie->flags, CONT); ++ cookie->generation = au_figen(file); ++ } ++ ++ ii_read_lock_child(inode); ++ fsstack_copy_attr_atime(inode, au_h_iptr(inode, au_ibtop(inode))); ++ ii_read_unlock(inode); ++ ++out_unlock: ++ fi_read_unlock(file); ++out_si: ++ si_read_unlock(arg.sb); ++out_mtx: ++ inode_unlock_shared(inode); ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++static int au_rdu_ino(struct file *file, struct aufs_rdu *rdu) ++{ ++ int err; ++ ino_t ino; ++ unsigned long long nent; ++ union au_rdu_ent_ul *u; ++ struct au_rdu_ent ent; ++ struct super_block *sb; ++ ++ err = 0; ++ nent = rdu->nent; ++ u = &rdu->ent; ++ sb = file->f_path.dentry->d_sb; ++ si_read_lock(sb, AuLock_FLUSH); ++ while (nent-- > 0) { ++ /* unnecessary to support mmap_sem since this is a dir */ ++ err = copy_from_user(&ent, u->e, sizeof(ent)); ++ if (!err) ++ err = !access_ok(VERIFY_WRITE, &u->e->ino, sizeof(ino)); ++ if (unlikely(err)) { ++ err = -EFAULT; ++ AuTraceErr(err); ++ break; ++ } ++ ++ /* AuDbg("b%d, i%llu\n", ent.bindex, ent.ino); */ ++ if (!ent.wh) ++ err = au_ino(sb, ent.bindex, ent.ino, ent.type, &ino); ++ else ++ err = au_wh_ino(sb, ent.bindex, ent.ino, ent.type, ++ &ino); ++ if (unlikely(err)) { ++ AuTraceErr(err); ++ break; ++ } ++ ++ err = __put_user(ino, &u->e->ino); ++ if (unlikely(err)) { ++ err = -EFAULT; ++ AuTraceErr(err); ++ break; ++ } ++ u->ul += au_rdu_len(ent.nlen); ++ } ++ si_read_unlock(sb); ++ ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static int au_rdu_verify(struct aufs_rdu *rdu) ++{ ++ AuDbg("rdu{%llu, %p, %u | %u | %llu, %u, %u | " ++ "%llu, b%d, 0x%x, g%u}\n", ++ rdu->sz, rdu->ent.e, rdu->verify[AufsCtlRduV_SZ], ++ rdu->blk, ++ rdu->rent, rdu->shwh, rdu->full, ++ rdu->cookie.h_pos, rdu->cookie.bindex, rdu->cookie.flags, ++ rdu->cookie.generation); ++ ++ if (rdu->verify[AufsCtlRduV_SZ] == sizeof(*rdu)) ++ return 0; ++ ++ AuDbg("%u:%u\n", ++ rdu->verify[AufsCtlRduV_SZ], (unsigned int)sizeof(*rdu)); ++ return -EINVAL; ++} ++ ++long au_rdu_ioctl(struct file *file, unsigned int cmd, unsigned long arg) ++{ ++ long err, e; ++ struct aufs_rdu rdu; ++ void __user *p = (void __user *)arg; ++ ++ err = copy_from_user(&rdu, p, sizeof(rdu)); ++ if (unlikely(err)) { ++ err = -EFAULT; ++ AuTraceErr(err); ++ goto out; ++ } ++ err = au_rdu_verify(&rdu); ++ if (unlikely(err)) ++ goto out; ++ ++ switch (cmd) { ++ case AUFS_CTL_RDU: ++ err = au_rdu(file, &rdu); ++ if (unlikely(err)) ++ break; ++ ++ e = copy_to_user(p, &rdu, sizeof(rdu)); ++ if (unlikely(e)) { ++ err = -EFAULT; ++ AuTraceErr(err); ++ } ++ break; ++ case AUFS_CTL_RDU_INO: ++ err = au_rdu_ino(file, &rdu); ++ break; ++ ++ default: ++ /* err = -ENOTTY; */ ++ err = -EINVAL; ++ } ++ ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++#ifdef CONFIG_COMPAT ++long au_rdu_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) ++{ ++ long err, e; ++ struct aufs_rdu rdu; ++ void __user *p = compat_ptr(arg); ++ ++ /* todo: get_user()? */ ++ err = copy_from_user(&rdu, p, sizeof(rdu)); ++ if (unlikely(err)) { ++ err = -EFAULT; ++ AuTraceErr(err); ++ goto out; ++ } ++ rdu.ent.e = compat_ptr(rdu.ent.ul); ++ err = au_rdu_verify(&rdu); ++ if (unlikely(err)) ++ goto out; ++ ++ switch (cmd) { ++ case AUFS_CTL_RDU: ++ err = au_rdu(file, &rdu); ++ if (unlikely(err)) ++ break; ++ ++ rdu.ent.ul = ptr_to_compat(rdu.ent.e); ++ rdu.tail.ul = ptr_to_compat(rdu.tail.e); ++ e = copy_to_user(p, &rdu, sizeof(rdu)); ++ if (unlikely(e)) { ++ err = -EFAULT; ++ AuTraceErr(err); ++ } ++ break; ++ case AUFS_CTL_RDU_INO: ++ err = au_rdu_ino(file, &rdu); ++ break; ++ ++ default: ++ /* err = -ENOTTY; */ ++ err = -EINVAL; ++ } ++ ++out: ++ AuTraceErr(err); ++ return err; ++} ++#endif +diff -Naur null/fs/aufs/rwsem.h linux-4.15/fs/aufs/rwsem.h +--- /dev/null ++++ linux-4.15/fs/aufs/rwsem.h 2018-02-25 02:38:09.204738113 +0100 +@@ -0,0 +1,72 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * simple read-write semaphore wrappers ++ */ ++ ++#ifndef __AUFS_RWSEM_H__ ++#define __AUFS_RWSEM_H__ ++ ++#ifdef __KERNEL__ ++ ++#include "debug.h" ++ ++/* in the futre, the name 'au_rwsem' will be totally gone */ ++#define au_rwsem rw_semaphore ++ ++/* to debug easier, do not make them inlined functions */ ++#define AuRwMustNoWaiters(rw) AuDebugOn(rwsem_is_contended(rw)) ++/* rwsem_is_locked() is unusable */ ++#define AuRwMustReadLock(rw) AuDebugOn(!lockdep_recursing(current) \ ++ && debug_locks \ ++ && !lockdep_is_held_type(rw, 1)) ++#define AuRwMustWriteLock(rw) AuDebugOn(!lockdep_recursing(current) \ ++ && debug_locks \ ++ && !lockdep_is_held_type(rw, 0)) ++#define AuRwMustAnyLock(rw) AuDebugOn(!lockdep_recursing(current) \ ++ && debug_locks \ ++ && !lockdep_is_held(rw)) ++#define AuRwDestroy(rw) AuDebugOn(!lockdep_recursing(current) \ ++ && debug_locks \ ++ && lockdep_is_held(rw)) ++ ++#define au_rw_init(rw) init_rwsem(rw) ++ ++#define au_rw_init_wlock(rw) do { \ ++ au_rw_init(rw); \ ++ down_write(rw); \ ++ } while (0) ++ ++#define au_rw_init_wlock_nested(rw, lsc) do { \ ++ au_rw_init(rw); \ ++ down_write_nested(rw, lsc); \ ++ } while (0) ++ ++#define au_rw_read_lock(rw) down_read(rw) ++#define au_rw_read_lock_nested(rw, lsc) down_read_nested(rw, lsc) ++#define au_rw_read_unlock(rw) up_read(rw) ++#define au_rw_dgrade_lock(rw) downgrade_write(rw) ++#define au_rw_write_lock(rw) down_write(rw) ++#define au_rw_write_lock_nested(rw, lsc) down_write_nested(rw, lsc) ++#define au_rw_write_unlock(rw) up_write(rw) ++/* why is not _nested version defined? */ ++#define au_rw_read_trylock(rw) down_read_trylock(rw) ++#define au_rw_write_trylock(rw) down_write_trylock(rw) ++ ++#endif /* __KERNEL__ */ ++#endif /* __AUFS_RWSEM_H__ */ +diff -Naur null/fs/aufs/sbinfo.c linux-4.15/fs/aufs/sbinfo.c +--- /dev/null ++++ linux-4.15/fs/aufs/sbinfo.c 2018-02-25 02:38:09.204738113 +0100 +@@ -0,0 +1,304 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * superblock private data ++ */ ++ ++#include "aufs.h" ++ ++/* ++ * they are necessary regardless sysfs is disabled. ++ */ ++void au_si_free(struct kobject *kobj) ++{ ++ int i; ++ struct au_sbinfo *sbinfo; ++ char *locked __maybe_unused; /* debug only */ ++ ++ sbinfo = container_of(kobj, struct au_sbinfo, si_kobj); ++ for (i = 0; i < AuPlink_NHASH; i++) ++ AuDebugOn(!hlist_bl_empty(sbinfo->si_plink + i)); ++ AuDebugOn(atomic_read(&sbinfo->si_nowait.nw_len)); ++ ++ AuDebugOn(percpu_counter_sum(&sbinfo->si_ninodes)); ++ percpu_counter_destroy(&sbinfo->si_ninodes); ++ AuDebugOn(percpu_counter_sum(&sbinfo->si_nfiles)); ++ percpu_counter_destroy(&sbinfo->si_nfiles); ++ ++ au_rw_write_lock(&sbinfo->si_rwsem); ++ au_br_free(sbinfo); ++ au_rw_write_unlock(&sbinfo->si_rwsem); ++ ++ kfree(sbinfo->si_branch); ++ mutex_destroy(&sbinfo->si_xib_mtx); ++ AuRwDestroy(&sbinfo->si_rwsem); ++ ++ kfree(sbinfo); ++} ++ ++int au_si_alloc(struct super_block *sb) ++{ ++ int err, i; ++ struct au_sbinfo *sbinfo; ++ ++ err = -ENOMEM; ++ sbinfo = kzalloc(sizeof(*sbinfo), GFP_NOFS); ++ if (unlikely(!sbinfo)) ++ goto out; ++ ++ /* will be reallocated separately */ ++ sbinfo->si_branch = kzalloc(sizeof(*sbinfo->si_branch), GFP_NOFS); ++ if (unlikely(!sbinfo->si_branch)) ++ goto out_sbinfo; ++ ++ err = sysaufs_si_init(sbinfo); ++ if (unlikely(err)) ++ goto out_br; ++ ++ au_nwt_init(&sbinfo->si_nowait); ++ au_rw_init_wlock(&sbinfo->si_rwsem); ++ ++ percpu_counter_init(&sbinfo->si_ninodes, 0, GFP_NOFS); ++ percpu_counter_init(&sbinfo->si_nfiles, 0, GFP_NOFS); ++ ++ sbinfo->si_bbot = -1; ++ sbinfo->si_last_br_id = AUFS_BRANCH_MAX / 2; ++ ++ sbinfo->si_wbr_copyup = AuWbrCopyup_Def; ++ sbinfo->si_wbr_create = AuWbrCreate_Def; ++ sbinfo->si_wbr_copyup_ops = au_wbr_copyup_ops + sbinfo->si_wbr_copyup; ++ sbinfo->si_wbr_create_ops = au_wbr_create_ops + sbinfo->si_wbr_create; ++ ++ au_fhsm_init(sbinfo); ++ ++ sbinfo->si_mntflags = au_opts_plink(AuOpt_Def); ++ ++ sbinfo->si_xino_jiffy = jiffies; ++ sbinfo->si_xino_expire ++ = msecs_to_jiffies(AUFS_XINO_DEF_SEC * MSEC_PER_SEC); ++ mutex_init(&sbinfo->si_xib_mtx); ++ sbinfo->si_xino_brid = -1; ++ /* leave si_xib_last_pindex and si_xib_next_bit */ ++ ++ INIT_HLIST_BL_HEAD(&sbinfo->si_aopen); ++ ++ sbinfo->si_rdcache = msecs_to_jiffies(AUFS_RDCACHE_DEF * MSEC_PER_SEC); ++ sbinfo->si_rdblk = AUFS_RDBLK_DEF; ++ sbinfo->si_rdhash = AUFS_RDHASH_DEF; ++ sbinfo->si_dirwh = AUFS_DIRWH_DEF; ++ ++ for (i = 0; i < AuPlink_NHASH; i++) ++ INIT_HLIST_BL_HEAD(sbinfo->si_plink + i); ++ init_waitqueue_head(&sbinfo->si_plink_wq); ++ spin_lock_init(&sbinfo->si_plink_maint_lock); ++ ++ INIT_HLIST_BL_HEAD(&sbinfo->si_files); ++ ++ /* with getattr by default */ ++ sbinfo->si_iop_array = aufs_iop; ++ ++ /* leave other members for sysaufs and si_mnt. */ ++ sbinfo->si_sb = sb; ++ sb->s_fs_info = sbinfo; ++ si_pid_set(sb); ++ return 0; /* success */ ++ ++out_br: ++ kfree(sbinfo->si_branch); ++out_sbinfo: ++ kfree(sbinfo); ++out: ++ return err; ++} ++ ++int au_sbr_realloc(struct au_sbinfo *sbinfo, int nbr, int may_shrink) ++{ ++ int err, sz; ++ struct au_branch **brp; ++ ++ AuRwMustWriteLock(&sbinfo->si_rwsem); ++ ++ err = -ENOMEM; ++ sz = sizeof(*brp) * (sbinfo->si_bbot + 1); ++ if (unlikely(!sz)) ++ sz = sizeof(*brp); ++ brp = au_kzrealloc(sbinfo->si_branch, sz, sizeof(*brp) * nbr, GFP_NOFS, ++ may_shrink); ++ if (brp) { ++ sbinfo->si_branch = brp; ++ err = 0; ++ } ++ ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++unsigned int au_sigen_inc(struct super_block *sb) ++{ ++ unsigned int gen; ++ struct inode *inode; ++ ++ SiMustWriteLock(sb); ++ ++ gen = ++au_sbi(sb)->si_generation; ++ au_update_digen(sb->s_root); ++ inode = d_inode(sb->s_root); ++ au_update_iigen(inode, /*half*/0); ++ inode->i_version++; ++ return gen; ++} ++ ++aufs_bindex_t au_new_br_id(struct super_block *sb) ++{ ++ aufs_bindex_t br_id; ++ int i; ++ struct au_sbinfo *sbinfo; ++ ++ SiMustWriteLock(sb); ++ ++ sbinfo = au_sbi(sb); ++ for (i = 0; i <= AUFS_BRANCH_MAX; i++) { ++ br_id = ++sbinfo->si_last_br_id; ++ AuDebugOn(br_id < 0); ++ if (br_id && au_br_index(sb, br_id) < 0) ++ return br_id; ++ } ++ ++ return -1; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* it is ok that new 'nwt' tasks are appended while we are sleeping */ ++int si_read_lock(struct super_block *sb, int flags) ++{ ++ int err; ++ ++ err = 0; ++ if (au_ftest_lock(flags, FLUSH)) ++ au_nwt_flush(&au_sbi(sb)->si_nowait); ++ ++ si_noflush_read_lock(sb); ++ err = au_plink_maint(sb, flags); ++ if (unlikely(err)) ++ si_read_unlock(sb); ++ ++ return err; ++} ++ ++int si_write_lock(struct super_block *sb, int flags) ++{ ++ int err; ++ ++ if (au_ftest_lock(flags, FLUSH)) ++ au_nwt_flush(&au_sbi(sb)->si_nowait); ++ ++ si_noflush_write_lock(sb); ++ err = au_plink_maint(sb, flags); ++ if (unlikely(err)) ++ si_write_unlock(sb); ++ ++ return err; ++} ++ ++/* dentry and super_block lock. call at entry point */ ++int aufs_read_lock(struct dentry *dentry, int flags) ++{ ++ int err; ++ struct super_block *sb; ++ ++ sb = dentry->d_sb; ++ err = si_read_lock(sb, flags); ++ if (unlikely(err)) ++ goto out; ++ ++ if (au_ftest_lock(flags, DW)) ++ di_write_lock_child(dentry); ++ else ++ di_read_lock_child(dentry, flags); ++ ++ if (au_ftest_lock(flags, GEN)) { ++ err = au_digen_test(dentry, au_sigen(sb)); ++ if (!au_opt_test(au_mntflags(sb), UDBA_NONE)) ++ AuDebugOn(!err && au_dbrange_test(dentry)); ++ else if (!err) ++ err = au_dbrange_test(dentry); ++ if (unlikely(err)) ++ aufs_read_unlock(dentry, flags); ++ } ++ ++out: ++ return err; ++} ++ ++void aufs_read_unlock(struct dentry *dentry, int flags) ++{ ++ if (au_ftest_lock(flags, DW)) ++ di_write_unlock(dentry); ++ else ++ di_read_unlock(dentry, flags); ++ si_read_unlock(dentry->d_sb); ++} ++ ++void aufs_write_lock(struct dentry *dentry) ++{ ++ si_write_lock(dentry->d_sb, AuLock_FLUSH | AuLock_NOPLMW); ++ di_write_lock_child(dentry); ++} ++ ++void aufs_write_unlock(struct dentry *dentry) ++{ ++ di_write_unlock(dentry); ++ si_write_unlock(dentry->d_sb); ++} ++ ++int aufs_read_and_write_lock2(struct dentry *d1, struct dentry *d2, int flags) ++{ ++ int err; ++ unsigned int sigen; ++ struct super_block *sb; ++ ++ sb = d1->d_sb; ++ err = si_read_lock(sb, flags); ++ if (unlikely(err)) ++ goto out; ++ ++ di_write_lock2_child(d1, d2, au_ftest_lock(flags, DIRS)); ++ ++ if (au_ftest_lock(flags, GEN)) { ++ sigen = au_sigen(sb); ++ err = au_digen_test(d1, sigen); ++ AuDebugOn(!err && au_dbrange_test(d1)); ++ if (!err) { ++ err = au_digen_test(d2, sigen); ++ AuDebugOn(!err && au_dbrange_test(d2)); ++ } ++ if (unlikely(err)) ++ aufs_read_and_write_unlock2(d1, d2); ++ } ++ ++out: ++ return err; ++} ++ ++void aufs_read_and_write_unlock2(struct dentry *d1, struct dentry *d2) ++{ ++ di_write_unlock2(d1, d2); ++ si_read_unlock(d1->d_sb); ++} +diff -Naur null/fs/aufs/super.c linux-4.15/fs/aufs/super.c +--- /dev/null ++++ linux-4.15/fs/aufs/super.c 2018-02-25 02:38:09.205738221 +0100 +@@ -0,0 +1,1046 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * mount and super_block operations ++ */ ++ ++#include ++#include ++#include ++#include ++#include "aufs.h" ++ ++/* ++ * super_operations ++ */ ++static struct inode *aufs_alloc_inode(struct super_block *sb __maybe_unused) ++{ ++ struct au_icntnr *c; ++ ++ c = au_cache_alloc_icntnr(); ++ if (c) { ++ au_icntnr_init(c); ++ c->vfs_inode.i_version = 1; /* sigen(sb); */ ++ c->iinfo.ii_hinode = NULL; ++ return &c->vfs_inode; ++ } ++ return NULL; ++} ++ ++static void aufs_destroy_inode_cb(struct rcu_head *head) ++{ ++ struct inode *inode = container_of(head, struct inode, i_rcu); ++ ++ au_cache_free_icntnr(container_of(inode, struct au_icntnr, vfs_inode)); ++} ++ ++static void aufs_destroy_inode(struct inode *inode) ++{ ++ if (!au_is_bad_inode(inode)) ++ au_iinfo_fin(inode); ++ call_rcu(&inode->i_rcu, aufs_destroy_inode_cb); ++} ++ ++struct inode *au_iget_locked(struct super_block *sb, ino_t ino) ++{ ++ struct inode *inode; ++ int err; ++ ++ inode = iget_locked(sb, ino); ++ if (unlikely(!inode)) { ++ inode = ERR_PTR(-ENOMEM); ++ goto out; ++ } ++ if (!(inode->i_state & I_NEW)) ++ goto out; ++ ++ err = au_xigen_new(inode); ++ if (!err) ++ err = au_iinfo_init(inode); ++ if (!err) ++ inode->i_version++; ++ else { ++ iget_failed(inode); ++ inode = ERR_PTR(err); ++ } ++ ++out: ++ /* never return NULL */ ++ AuDebugOn(!inode); ++ AuTraceErrPtr(inode); ++ return inode; ++} ++ ++/* lock free root dinfo */ ++static int au_show_brs(struct seq_file *seq, struct super_block *sb) ++{ ++ int err; ++ aufs_bindex_t bindex, bbot; ++ struct path path; ++ struct au_hdentry *hdp; ++ struct au_branch *br; ++ au_br_perm_str_t perm; ++ ++ err = 0; ++ bbot = au_sbbot(sb); ++ bindex = 0; ++ hdp = au_hdentry(au_di(sb->s_root), bindex); ++ for (; !err && bindex <= bbot; bindex++, hdp++) { ++ br = au_sbr(sb, bindex); ++ path.mnt = au_br_mnt(br); ++ path.dentry = hdp->hd_dentry; ++ err = au_seq_path(seq, &path); ++ if (!err) { ++ au_optstr_br_perm(&perm, br->br_perm); ++ seq_printf(seq, "=%s", perm.a); ++ if (bindex != bbot) ++ seq_putc(seq, ':'); ++ } ++ } ++ if (unlikely(err || seq_has_overflowed(seq))) ++ err = -E2BIG; ++ ++ return err; ++} ++ ++static void au_gen_fmt(char *fmt, int len __maybe_unused, const char *pat, ++ const char *append) ++{ ++ char *p; ++ ++ p = fmt; ++ while (*pat != ':') ++ *p++ = *pat++; ++ *p++ = *pat++; ++ strcpy(p, append); ++ AuDebugOn(strlen(fmt) >= len); ++} ++ ++static void au_show_wbr_create(struct seq_file *m, int v, ++ struct au_sbinfo *sbinfo) ++{ ++ const char *pat; ++ char fmt[32]; ++ struct au_wbr_mfs *mfs; ++ ++ AuRwMustAnyLock(&sbinfo->si_rwsem); ++ ++ seq_puts(m, ",create="); ++ pat = au_optstr_wbr_create(v); ++ mfs = &sbinfo->si_wbr_mfs; ++ switch (v) { ++ case AuWbrCreate_TDP: ++ case AuWbrCreate_RR: ++ case AuWbrCreate_MFS: ++ case AuWbrCreate_PMFS: ++ seq_puts(m, pat); ++ break; ++ case AuWbrCreate_MFSRR: ++ case AuWbrCreate_TDMFS: ++ case AuWbrCreate_PMFSRR: ++ au_gen_fmt(fmt, sizeof(fmt), pat, "%llu"); ++ seq_printf(m, fmt, mfs->mfsrr_watermark); ++ break; ++ case AuWbrCreate_MFSV: ++ case AuWbrCreate_PMFSV: ++ au_gen_fmt(fmt, sizeof(fmt), pat, "%lu"); ++ seq_printf(m, fmt, ++ jiffies_to_msecs(mfs->mfs_expire) ++ / MSEC_PER_SEC); ++ break; ++ case AuWbrCreate_MFSRRV: ++ case AuWbrCreate_TDMFSV: ++ case AuWbrCreate_PMFSRRV: ++ au_gen_fmt(fmt, sizeof(fmt), pat, "%llu:%lu"); ++ seq_printf(m, fmt, mfs->mfsrr_watermark, ++ jiffies_to_msecs(mfs->mfs_expire) / MSEC_PER_SEC); ++ break; ++ default: ++ BUG(); ++ } ++} ++ ++static int au_show_xino(struct seq_file *seq, struct super_block *sb) ++{ ++#ifdef CONFIG_SYSFS ++ return 0; ++#else ++ int err; ++ const int len = sizeof(AUFS_XINO_FNAME) - 1; ++ aufs_bindex_t bindex, brid; ++ struct qstr *name; ++ struct file *f; ++ struct dentry *d, *h_root; ++ ++ AuRwMustAnyLock(&sbinfo->si_rwsem); ++ ++ err = 0; ++ f = au_sbi(sb)->si_xib; ++ if (!f) ++ goto out; ++ ++ /* stop printing the default xino path on the first writable branch */ ++ h_root = NULL; ++ brid = au_xino_brid(sb); ++ if (brid >= 0) { ++ bindex = au_br_index(sb, brid); ++ h_root = au_hdentry(au_di(sb->s_root), bindex)->hd_dentry; ++ } ++ d = f->f_path.dentry; ++ name = &d->d_name; ++ /* safe ->d_parent because the file is unlinked */ ++ if (d->d_parent == h_root ++ && name->len == len ++ && !memcmp(name->name, AUFS_XINO_FNAME, len)) ++ goto out; ++ ++ seq_puts(seq, ",xino="); ++ err = au_xino_path(seq, f); ++ ++out: ++ return err; ++#endif ++} ++ ++/* seq_file will re-call me in case of too long string */ ++static int aufs_show_options(struct seq_file *m, struct dentry *dentry) ++{ ++ int err; ++ unsigned int mnt_flags, v; ++ struct super_block *sb; ++ struct au_sbinfo *sbinfo; ++ ++#define AuBool(name, str) do { \ ++ v = au_opt_test(mnt_flags, name); \ ++ if (v != au_opt_test(AuOpt_Def, name)) \ ++ seq_printf(m, ",%s" #str, v ? "" : "no"); \ ++} while (0) ++ ++#define AuStr(name, str) do { \ ++ v = mnt_flags & AuOptMask_##name; \ ++ if (v != (AuOpt_Def & AuOptMask_##name)) \ ++ seq_printf(m, "," #str "=%s", au_optstr_##str(v)); \ ++} while (0) ++ ++#define AuUInt(name, str, val) do { \ ++ if (val != AUFS_##name##_DEF) \ ++ seq_printf(m, "," #str "=%u", val); \ ++} while (0) ++ ++ sb = dentry->d_sb; ++ if (sb->s_flags & SB_POSIXACL) ++ seq_puts(m, ",acl"); ++ ++ /* lock free root dinfo */ ++ si_noflush_read_lock(sb); ++ sbinfo = au_sbi(sb); ++ seq_printf(m, ",si=%lx", sysaufs_si_id(sbinfo)); ++ ++ mnt_flags = au_mntflags(sb); ++ if (au_opt_test(mnt_flags, XINO)) { ++ err = au_show_xino(m, sb); ++ if (unlikely(err)) ++ goto out; ++ } else ++ seq_puts(m, ",noxino"); ++ ++ AuBool(TRUNC_XINO, trunc_xino); ++ AuStr(UDBA, udba); ++ AuBool(SHWH, shwh); ++ AuBool(PLINK, plink); ++ AuBool(DIO, dio); ++ AuBool(DIRPERM1, dirperm1); ++ ++ v = sbinfo->si_wbr_create; ++ if (v != AuWbrCreate_Def) ++ au_show_wbr_create(m, v, sbinfo); ++ ++ v = sbinfo->si_wbr_copyup; ++ if (v != AuWbrCopyup_Def) ++ seq_printf(m, ",cpup=%s", au_optstr_wbr_copyup(v)); ++ ++ v = au_opt_test(mnt_flags, ALWAYS_DIROPQ); ++ if (v != au_opt_test(AuOpt_Def, ALWAYS_DIROPQ)) ++ seq_printf(m, ",diropq=%c", v ? 'a' : 'w'); ++ ++ AuUInt(DIRWH, dirwh, sbinfo->si_dirwh); ++ ++ v = jiffies_to_msecs(sbinfo->si_rdcache) / MSEC_PER_SEC; ++ AuUInt(RDCACHE, rdcache, v); ++ ++ AuUInt(RDBLK, rdblk, sbinfo->si_rdblk); ++ AuUInt(RDHASH, rdhash, sbinfo->si_rdhash); ++ ++ au_fhsm_show(m, sbinfo); ++ ++ AuBool(DIRREN, dirren); ++ AuBool(SUM, sum); ++ /* AuBool(SUM_W, wsum); */ ++ AuBool(WARN_PERM, warn_perm); ++ AuBool(VERBOSE, verbose); ++ ++out: ++ /* be sure to print "br:" last */ ++ if (!sysaufs_brs) { ++ seq_puts(m, ",br:"); ++ au_show_brs(m, sb); ++ } ++ si_read_unlock(sb); ++ return 0; ++ ++#undef AuBool ++#undef AuStr ++#undef AuUInt ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* sum mode which returns the summation for statfs(2) */ ++ ++static u64 au_add_till_max(u64 a, u64 b) ++{ ++ u64 old; ++ ++ old = a; ++ a += b; ++ if (old <= a) ++ return a; ++ return ULLONG_MAX; ++} ++ ++static u64 au_mul_till_max(u64 a, long mul) ++{ ++ u64 old; ++ ++ old = a; ++ a *= mul; ++ if (old <= a) ++ return a; ++ return ULLONG_MAX; ++} ++ ++static int au_statfs_sum(struct super_block *sb, struct kstatfs *buf) ++{ ++ int err; ++ long bsize, factor; ++ u64 blocks, bfree, bavail, files, ffree; ++ aufs_bindex_t bbot, bindex, i; ++ unsigned char shared; ++ struct path h_path; ++ struct super_block *h_sb; ++ ++ err = 0; ++ bsize = LONG_MAX; ++ files = 0; ++ ffree = 0; ++ blocks = 0; ++ bfree = 0; ++ bavail = 0; ++ bbot = au_sbbot(sb); ++ for (bindex = 0; bindex <= bbot; bindex++) { ++ h_path.mnt = au_sbr_mnt(sb, bindex); ++ h_sb = h_path.mnt->mnt_sb; ++ shared = 0; ++ for (i = 0; !shared && i < bindex; i++) ++ shared = (au_sbr_sb(sb, i) == h_sb); ++ if (shared) ++ continue; ++ ++ /* sb->s_root for NFS is unreliable */ ++ h_path.dentry = h_path.mnt->mnt_root; ++ err = vfs_statfs(&h_path, buf); ++ if (unlikely(err)) ++ goto out; ++ ++ if (bsize > buf->f_bsize) { ++ /* ++ * we will reduce bsize, so we have to expand blocks ++ * etc. to match them again ++ */ ++ factor = (bsize / buf->f_bsize); ++ blocks = au_mul_till_max(blocks, factor); ++ bfree = au_mul_till_max(bfree, factor); ++ bavail = au_mul_till_max(bavail, factor); ++ bsize = buf->f_bsize; ++ } ++ ++ factor = (buf->f_bsize / bsize); ++ blocks = au_add_till_max(blocks, ++ au_mul_till_max(buf->f_blocks, factor)); ++ bfree = au_add_till_max(bfree, ++ au_mul_till_max(buf->f_bfree, factor)); ++ bavail = au_add_till_max(bavail, ++ au_mul_till_max(buf->f_bavail, factor)); ++ files = au_add_till_max(files, buf->f_files); ++ ffree = au_add_till_max(ffree, buf->f_ffree); ++ } ++ ++ buf->f_bsize = bsize; ++ buf->f_blocks = blocks; ++ buf->f_bfree = bfree; ++ buf->f_bavail = bavail; ++ buf->f_files = files; ++ buf->f_ffree = ffree; ++ buf->f_frsize = 0; ++ ++out: ++ return err; ++} ++ ++static int aufs_statfs(struct dentry *dentry, struct kstatfs *buf) ++{ ++ int err; ++ struct path h_path; ++ struct super_block *sb; ++ ++ /* lock free root dinfo */ ++ sb = dentry->d_sb; ++ si_noflush_read_lock(sb); ++ if (!au_opt_test(au_mntflags(sb), SUM)) { ++ /* sb->s_root for NFS is unreliable */ ++ h_path.mnt = au_sbr_mnt(sb, 0); ++ h_path.dentry = h_path.mnt->mnt_root; ++ err = vfs_statfs(&h_path, buf); ++ } else ++ err = au_statfs_sum(sb, buf); ++ si_read_unlock(sb); ++ ++ if (!err) { ++ buf->f_type = AUFS_SUPER_MAGIC; ++ buf->f_namelen = AUFS_MAX_NAMELEN; ++ memset(&buf->f_fsid, 0, sizeof(buf->f_fsid)); ++ } ++ /* buf->f_bsize = buf->f_blocks = buf->f_bfree = buf->f_bavail = -1; */ ++ ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static int aufs_sync_fs(struct super_block *sb, int wait) ++{ ++ int err, e; ++ aufs_bindex_t bbot, bindex; ++ struct au_branch *br; ++ struct super_block *h_sb; ++ ++ err = 0; ++ si_noflush_read_lock(sb); ++ bbot = au_sbbot(sb); ++ for (bindex = 0; bindex <= bbot; bindex++) { ++ br = au_sbr(sb, bindex); ++ if (!au_br_writable(br->br_perm)) ++ continue; ++ ++ h_sb = au_sbr_sb(sb, bindex); ++ e = vfsub_sync_filesystem(h_sb, wait); ++ if (unlikely(e && !err)) ++ err = e; ++ /* go on even if an error happens */ ++ } ++ si_read_unlock(sb); ++ ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* final actions when unmounting a file system */ ++static void aufs_put_super(struct super_block *sb) ++{ ++ struct au_sbinfo *sbinfo; ++ ++ sbinfo = au_sbi(sb); ++ if (!sbinfo) ++ return; ++ ++ dbgaufs_si_fin(sbinfo); ++ kobject_put(&sbinfo->si_kobj); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++void *au_array_alloc(unsigned long long *hint, au_arraycb_t cb, ++ struct super_block *sb, void *arg) ++{ ++ void *array; ++ unsigned long long n, sz; ++ ++ array = NULL; ++ n = 0; ++ if (!*hint) ++ goto out; ++ ++ if (*hint > ULLONG_MAX / sizeof(array)) { ++ array = ERR_PTR(-EMFILE); ++ pr_err("hint %llu\n", *hint); ++ goto out; ++ } ++ ++ sz = sizeof(array) * *hint; ++ array = kzalloc(sz, GFP_NOFS); ++ if (unlikely(!array)) ++ array = vzalloc(sz); ++ if (unlikely(!array)) { ++ array = ERR_PTR(-ENOMEM); ++ goto out; ++ } ++ ++ n = cb(sb, array, *hint, arg); ++ AuDebugOn(n > *hint); ++ ++out: ++ *hint = n; ++ return array; ++} ++ ++static unsigned long long au_iarray_cb(struct super_block *sb, void *a, ++ unsigned long long max __maybe_unused, ++ void *arg) ++{ ++ unsigned long long n; ++ struct inode **p, *inode; ++ struct list_head *head; ++ ++ n = 0; ++ p = a; ++ head = arg; ++ spin_lock(&sb->s_inode_list_lock); ++ list_for_each_entry(inode, head, i_sb_list) { ++ if (!au_is_bad_inode(inode) ++ && au_ii(inode)->ii_btop >= 0) { ++ spin_lock(&inode->i_lock); ++ if (atomic_read(&inode->i_count)) { ++ au_igrab(inode); ++ *p++ = inode; ++ n++; ++ AuDebugOn(n > max); ++ } ++ spin_unlock(&inode->i_lock); ++ } ++ } ++ spin_unlock(&sb->s_inode_list_lock); ++ ++ return n; ++} ++ ++struct inode **au_iarray_alloc(struct super_block *sb, unsigned long long *max) ++{ ++ *max = au_ninodes(sb); ++ return au_array_alloc(max, au_iarray_cb, sb, &sb->s_inodes); ++} ++ ++void au_iarray_free(struct inode **a, unsigned long long max) ++{ ++ unsigned long long ull; ++ ++ for (ull = 0; ull < max; ull++) ++ iput(a[ull]); ++ kvfree(a); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* ++ * refresh dentry and inode at remount time. ++ */ ++/* todo: consolidate with simple_reval_dpath() and au_reval_for_attr() */ ++static int au_do_refresh(struct dentry *dentry, unsigned int dir_flags, ++ struct dentry *parent) ++{ ++ int err; ++ ++ di_write_lock_child(dentry); ++ di_read_lock_parent(parent, AuLock_IR); ++ err = au_refresh_dentry(dentry, parent); ++ if (!err && dir_flags) ++ au_hn_reset(d_inode(dentry), dir_flags); ++ di_read_unlock(parent, AuLock_IR); ++ di_write_unlock(dentry); ++ ++ return err; ++} ++ ++static int au_do_refresh_d(struct dentry *dentry, unsigned int sigen, ++ struct au_sbinfo *sbinfo, ++ const unsigned int dir_flags, unsigned int do_idop) ++{ ++ int err; ++ struct dentry *parent; ++ ++ err = 0; ++ parent = dget_parent(dentry); ++ if (!au_digen_test(parent, sigen) && au_digen_test(dentry, sigen)) { ++ if (d_really_is_positive(dentry)) { ++ if (!d_is_dir(dentry)) ++ err = au_do_refresh(dentry, /*dir_flags*/0, ++ parent); ++ else { ++ err = au_do_refresh(dentry, dir_flags, parent); ++ if (unlikely(err)) ++ au_fset_si(sbinfo, FAILED_REFRESH_DIR); ++ } ++ } else ++ err = au_do_refresh(dentry, /*dir_flags*/0, parent); ++ AuDbgDentry(dentry); ++ } ++ dput(parent); ++ ++ if (!err) { ++ if (do_idop) ++ au_refresh_dop(dentry, /*force_reval*/0); ++ } else ++ au_refresh_dop(dentry, /*force_reval*/1); ++ ++ AuTraceErr(err); ++ return err; ++} ++ ++static int au_refresh_d(struct super_block *sb, unsigned int do_idop) ++{ ++ int err, i, j, ndentry, e; ++ unsigned int sigen; ++ struct au_dcsub_pages dpages; ++ struct au_dpage *dpage; ++ struct dentry **dentries, *d; ++ struct au_sbinfo *sbinfo; ++ struct dentry *root = sb->s_root; ++ const unsigned int dir_flags = au_hi_flags(d_inode(root), /*isdir*/1); ++ ++ if (do_idop) ++ au_refresh_dop(root, /*force_reval*/0); ++ ++ err = au_dpages_init(&dpages, GFP_NOFS); ++ if (unlikely(err)) ++ goto out; ++ err = au_dcsub_pages(&dpages, root, NULL, NULL); ++ if (unlikely(err)) ++ goto out_dpages; ++ ++ sigen = au_sigen(sb); ++ sbinfo = au_sbi(sb); ++ for (i = 0; i < dpages.ndpage; i++) { ++ dpage = dpages.dpages + i; ++ dentries = dpage->dentries; ++ ndentry = dpage->ndentry; ++ for (j = 0; j < ndentry; j++) { ++ d = dentries[j]; ++ e = au_do_refresh_d(d, sigen, sbinfo, dir_flags, ++ do_idop); ++ if (unlikely(e && !err)) ++ err = e; ++ /* go on even err */ ++ } ++ } ++ ++out_dpages: ++ au_dpages_free(&dpages); ++out: ++ return err; ++} ++ ++static int au_refresh_i(struct super_block *sb, unsigned int do_idop) ++{ ++ int err, e; ++ unsigned int sigen; ++ unsigned long long max, ull; ++ struct inode *inode, **array; ++ ++ array = au_iarray_alloc(sb, &max); ++ err = PTR_ERR(array); ++ if (IS_ERR(array)) ++ goto out; ++ ++ err = 0; ++ sigen = au_sigen(sb); ++ for (ull = 0; ull < max; ull++) { ++ inode = array[ull]; ++ if (unlikely(!inode)) ++ break; ++ ++ e = 0; ++ ii_write_lock_child(inode); ++ if (au_iigen(inode, NULL) != sigen) { ++ e = au_refresh_hinode_self(inode); ++ if (unlikely(e)) { ++ au_refresh_iop(inode, /*force_getattr*/1); ++ pr_err("error %d, i%lu\n", e, inode->i_ino); ++ if (!err) ++ err = e; ++ /* go on even if err */ ++ } ++ } ++ if (!e && do_idop) ++ au_refresh_iop(inode, /*force_getattr*/0); ++ ii_write_unlock(inode); ++ } ++ ++ au_iarray_free(array, max); ++ ++out: ++ return err; ++} ++ ++static void au_remount_refresh(struct super_block *sb, unsigned int do_idop) ++{ ++ int err, e; ++ unsigned int udba; ++ aufs_bindex_t bindex, bbot; ++ struct dentry *root; ++ struct inode *inode; ++ struct au_branch *br; ++ struct au_sbinfo *sbi; ++ ++ au_sigen_inc(sb); ++ sbi = au_sbi(sb); ++ au_fclr_si(sbi, FAILED_REFRESH_DIR); ++ ++ root = sb->s_root; ++ DiMustNoWaiters(root); ++ inode = d_inode(root); ++ IiMustNoWaiters(inode); ++ ++ udba = au_opt_udba(sb); ++ bbot = au_sbbot(sb); ++ for (bindex = 0; bindex <= bbot; bindex++) { ++ br = au_sbr(sb, bindex); ++ err = au_hnotify_reset_br(udba, br, br->br_perm); ++ if (unlikely(err)) ++ AuIOErr("hnotify failed on br %d, %d, ignored\n", ++ bindex, err); ++ /* go on even if err */ ++ } ++ au_hn_reset(inode, au_hi_flags(inode, /*isdir*/1)); ++ ++ if (do_idop) { ++ if (au_ftest_si(sbi, NO_DREVAL)) { ++ AuDebugOn(sb->s_d_op == &aufs_dop_noreval); ++ sb->s_d_op = &aufs_dop_noreval; ++ AuDebugOn(sbi->si_iop_array == aufs_iop_nogetattr); ++ sbi->si_iop_array = aufs_iop_nogetattr; ++ } else { ++ AuDebugOn(sb->s_d_op == &aufs_dop); ++ sb->s_d_op = &aufs_dop; ++ AuDebugOn(sbi->si_iop_array == aufs_iop); ++ sbi->si_iop_array = aufs_iop; ++ } ++ pr_info("reset to %pf and %pf\n", ++ sb->s_d_op, sbi->si_iop_array); ++ } ++ ++ di_write_unlock(root); ++ err = au_refresh_d(sb, do_idop); ++ e = au_refresh_i(sb, do_idop); ++ if (unlikely(e && !err)) ++ err = e; ++ /* aufs_write_lock() calls ..._child() */ ++ di_write_lock_child(root); ++ ++ au_cpup_attr_all(inode, /*force*/1); ++ ++ if (unlikely(err)) ++ AuIOErr("refresh failed, ignored, %d\n", err); ++} ++ ++/* stop extra interpretation of errno in mount(8), and strange error messages */ ++static int cvt_err(int err) ++{ ++ AuTraceErr(err); ++ ++ switch (err) { ++ case -ENOENT: ++ case -ENOTDIR: ++ case -EEXIST: ++ case -EIO: ++ err = -EINVAL; ++ } ++ return err; ++} ++ ++static int aufs_remount_fs(struct super_block *sb, int *flags, char *data) ++{ ++ int err, do_dx; ++ unsigned int mntflags; ++ struct au_opts opts = { ++ .opt = NULL ++ }; ++ struct dentry *root; ++ struct inode *inode; ++ struct au_sbinfo *sbinfo; ++ ++ err = 0; ++ root = sb->s_root; ++ if (!data || !*data) { ++ err = si_write_lock(sb, AuLock_FLUSH | AuLock_NOPLM); ++ if (!err) { ++ di_write_lock_child(root); ++ err = au_opts_verify(sb, *flags, /*pending*/0); ++ aufs_write_unlock(root); ++ } ++ goto out; ++ } ++ ++ err = -ENOMEM; ++ opts.opt = (void *)__get_free_page(GFP_NOFS); ++ if (unlikely(!opts.opt)) ++ goto out; ++ opts.max_opt = PAGE_SIZE / sizeof(*opts.opt); ++ opts.flags = AuOpts_REMOUNT; ++ opts.sb_flags = *flags; ++ ++ /* parse it before aufs lock */ ++ err = au_opts_parse(sb, data, &opts); ++ if (unlikely(err)) ++ goto out_opts; ++ ++ sbinfo = au_sbi(sb); ++ inode = d_inode(root); ++ inode_lock(inode); ++ err = si_write_lock(sb, AuLock_FLUSH | AuLock_NOPLM); ++ if (unlikely(err)) ++ goto out_mtx; ++ di_write_lock_child(root); ++ ++ /* au_opts_remount() may return an error */ ++ err = au_opts_remount(sb, &opts); ++ au_opts_free(&opts); ++ ++ if (au_ftest_opts(opts.flags, REFRESH)) ++ au_remount_refresh(sb, au_ftest_opts(opts.flags, REFRESH_IDOP)); ++ ++ if (au_ftest_opts(opts.flags, REFRESH_DYAOP)) { ++ mntflags = au_mntflags(sb); ++ do_dx = !!au_opt_test(mntflags, DIO); ++ au_dy_arefresh(do_dx); ++ } ++ ++ au_fhsm_wrote_all(sb, /*force*/1); /* ?? */ ++ aufs_write_unlock(root); ++ ++out_mtx: ++ inode_unlock(inode); ++out_opts: ++ free_page((unsigned long)opts.opt); ++out: ++ err = cvt_err(err); ++ AuTraceErr(err); ++ return err; ++} ++ ++static const struct super_operations aufs_sop = { ++ .alloc_inode = aufs_alloc_inode, ++ .destroy_inode = aufs_destroy_inode, ++ /* always deleting, no clearing */ ++ .drop_inode = generic_delete_inode, ++ .show_options = aufs_show_options, ++ .statfs = aufs_statfs, ++ .put_super = aufs_put_super, ++ .sync_fs = aufs_sync_fs, ++ .remount_fs = aufs_remount_fs ++}; ++ ++/* ---------------------------------------------------------------------- */ ++ ++static int alloc_root(struct super_block *sb) ++{ ++ int err; ++ struct inode *inode; ++ struct dentry *root; ++ ++ err = -ENOMEM; ++ inode = au_iget_locked(sb, AUFS_ROOT_INO); ++ err = PTR_ERR(inode); ++ if (IS_ERR(inode)) ++ goto out; ++ ++ inode->i_op = aufs_iop + AuIop_DIR; /* with getattr by default */ ++ inode->i_fop = &aufs_dir_fop; ++ inode->i_mode = S_IFDIR; ++ set_nlink(inode, 2); ++ unlock_new_inode(inode); ++ ++ root = d_make_root(inode); ++ if (unlikely(!root)) ++ goto out; ++ err = PTR_ERR(root); ++ if (IS_ERR(root)) ++ goto out; ++ ++ err = au_di_init(root); ++ if (!err) { ++ sb->s_root = root; ++ return 0; /* success */ ++ } ++ dput(root); ++ ++out: ++ return err; ++} ++ ++static int aufs_fill_super(struct super_block *sb, void *raw_data, ++ int silent __maybe_unused) ++{ ++ int err; ++ struct au_opts opts = { ++ .opt = NULL ++ }; ++ struct au_sbinfo *sbinfo; ++ struct dentry *root; ++ struct inode *inode; ++ char *arg = raw_data; ++ ++ if (unlikely(!arg || !*arg)) { ++ err = -EINVAL; ++ pr_err("no arg\n"); ++ goto out; ++ } ++ ++ err = -ENOMEM; ++ opts.opt = (void *)__get_free_page(GFP_NOFS); ++ if (unlikely(!opts.opt)) ++ goto out; ++ opts.max_opt = PAGE_SIZE / sizeof(*opts.opt); ++ opts.sb_flags = sb->s_flags; ++ ++ err = au_si_alloc(sb); ++ if (unlikely(err)) ++ goto out_opts; ++ sbinfo = au_sbi(sb); ++ ++ /* all timestamps always follow the ones on the branch */ ++ sb->s_flags |= SB_NOATIME | SB_NODIRATIME; ++ sb->s_op = &aufs_sop; ++ sb->s_d_op = &aufs_dop; ++ sb->s_magic = AUFS_SUPER_MAGIC; ++ sb->s_maxbytes = 0; ++ sb->s_stack_depth = 1; ++ au_export_init(sb); ++ au_xattr_init(sb); ++ ++ err = alloc_root(sb); ++ if (unlikely(err)) { ++ si_write_unlock(sb); ++ goto out_info; ++ } ++ root = sb->s_root; ++ inode = d_inode(root); ++ ++ /* ++ * actually we can parse options regardless aufs lock here. ++ * but at remount time, parsing must be done before aufs lock. ++ * so we follow the same rule. ++ */ ++ ii_write_lock_parent(inode); ++ aufs_write_unlock(root); ++ err = au_opts_parse(sb, arg, &opts); ++ if (unlikely(err)) ++ goto out_root; ++ ++ /* lock vfs_inode first, then aufs. */ ++ inode_lock(inode); ++ aufs_write_lock(root); ++ err = au_opts_mount(sb, &opts); ++ au_opts_free(&opts); ++ if (!err && au_ftest_si(sbinfo, NO_DREVAL)) { ++ sb->s_d_op = &aufs_dop_noreval; ++ pr_info("%pf\n", sb->s_d_op); ++ au_refresh_dop(root, /*force_reval*/0); ++ sbinfo->si_iop_array = aufs_iop_nogetattr; ++ au_refresh_iop(inode, /*force_getattr*/0); ++ } ++ aufs_write_unlock(root); ++ inode_unlock(inode); ++ if (!err) ++ goto out_opts; /* success */ ++ ++out_root: ++ dput(root); ++ sb->s_root = NULL; ++out_info: ++ dbgaufs_si_fin(sbinfo); ++ kobject_put(&sbinfo->si_kobj); ++ sb->s_fs_info = NULL; ++out_opts: ++ free_page((unsigned long)opts.opt); ++out: ++ AuTraceErr(err); ++ err = cvt_err(err); ++ AuTraceErr(err); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static struct dentry *aufs_mount(struct file_system_type *fs_type, int flags, ++ const char *dev_name __maybe_unused, ++ void *raw_data) ++{ ++ struct dentry *root; ++ struct super_block *sb; ++ ++ /* all timestamps always follow the ones on the branch */ ++ /* mnt->mnt_flags |= MNT_NOATIME | MNT_NODIRATIME; */ ++ root = mount_nodev(fs_type, flags, raw_data, aufs_fill_super); ++ if (IS_ERR(root)) ++ goto out; ++ ++ sb = root->d_sb; ++ si_write_lock(sb, !AuLock_FLUSH); ++ sysaufs_brs_add(sb, 0); ++ si_write_unlock(sb); ++ au_sbilist_add(sb); ++ ++out: ++ return root; ++} ++ ++static void aufs_kill_sb(struct super_block *sb) ++{ ++ struct au_sbinfo *sbinfo; ++ ++ sbinfo = au_sbi(sb); ++ if (sbinfo) { ++ au_sbilist_del(sb); ++ aufs_write_lock(sb->s_root); ++ au_fhsm_fin(sb); ++ if (sbinfo->si_wbr_create_ops->fin) ++ sbinfo->si_wbr_create_ops->fin(sb); ++ if (au_opt_test(sbinfo->si_mntflags, UDBA_HNOTIFY)) { ++ au_opt_set_udba(sbinfo->si_mntflags, UDBA_NONE); ++ au_remount_refresh(sb, /*do_idop*/0); ++ } ++ if (au_opt_test(sbinfo->si_mntflags, PLINK)) ++ au_plink_put(sb, /*verbose*/1); ++ au_xino_clr(sb); ++ au_dr_opt_flush(sb); ++ sbinfo->si_sb = NULL; ++ aufs_write_unlock(sb->s_root); ++ au_nwt_flush(&sbinfo->si_nowait); ++ } ++ kill_anon_super(sb); ++} ++ ++struct file_system_type aufs_fs_type = { ++ .name = AUFS_FSTYPE, ++ /* a race between rename and others */ ++ .fs_flags = FS_RENAME_DOES_D_MOVE, ++ .mount = aufs_mount, ++ .kill_sb = aufs_kill_sb, ++ /* no need to __module_get() and module_put(). */ ++ .owner = THIS_MODULE, ++}; +diff -Naur null/fs/aufs/super.h linux-4.15/fs/aufs/super.h +--- /dev/null ++++ linux-4.15/fs/aufs/super.h 2018-02-25 02:38:09.205738221 +0100 +@@ -0,0 +1,626 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * super_block operations ++ */ ++ ++#ifndef __AUFS_SUPER_H__ ++#define __AUFS_SUPER_H__ ++ ++#ifdef __KERNEL__ ++ ++#include ++#include ++#include "hbl.h" ++#include "rwsem.h" ++#include "wkq.h" ++ ++/* policies to select one among multiple writable branches */ ++struct au_wbr_copyup_operations { ++ int (*copyup)(struct dentry *dentry); ++}; ++ ++#define AuWbr_DIR 1 /* target is a dir */ ++#define AuWbr_PARENT (1 << 1) /* always require a parent */ ++ ++#define au_ftest_wbr(flags, name) ((flags) & AuWbr_##name) ++#define au_fset_wbr(flags, name) { (flags) |= AuWbr_##name; } ++#define au_fclr_wbr(flags, name) { (flags) &= ~AuWbr_##name; } ++ ++struct au_wbr_create_operations { ++ int (*create)(struct dentry *dentry, unsigned int flags); ++ int (*init)(struct super_block *sb); ++ int (*fin)(struct super_block *sb); ++}; ++ ++struct au_wbr_mfs { ++ struct mutex mfs_lock; /* protect this structure */ ++ unsigned long mfs_jiffy; ++ unsigned long mfs_expire; ++ aufs_bindex_t mfs_bindex; ++ ++ unsigned long long mfsrr_bytes; ++ unsigned long long mfsrr_watermark; ++}; ++ ++#define AuPlink_NHASH 100 ++static inline int au_plink_hash(ino_t ino) ++{ ++ return ino % AuPlink_NHASH; ++} ++ ++/* File-based Hierarchical Storage Management */ ++struct au_fhsm { ++#ifdef CONFIG_AUFS_FHSM ++ /* allow only one process who can receive the notification */ ++ spinlock_t fhsm_spin; ++ pid_t fhsm_pid; ++ wait_queue_head_t fhsm_wqh; ++ atomic_t fhsm_readable; ++ ++ /* these are protected by si_rwsem */ ++ unsigned long fhsm_expire; ++ aufs_bindex_t fhsm_bottom; ++#endif ++}; ++ ++struct au_branch; ++struct au_sbinfo { ++ /* nowait tasks in the system-wide workqueue */ ++ struct au_nowait_tasks si_nowait; ++ ++ /* ++ * tried sb->s_umount, but failed due to the dependecy between i_mutex. ++ * rwsem for au_sbinfo is necessary. ++ */ ++ struct au_rwsem si_rwsem; ++ ++ /* ++ * dirty approach to protect sb->sb_inodes and ->s_files (gone) from ++ * remount. ++ */ ++ struct percpu_counter si_ninodes, si_nfiles; ++ ++ /* branch management */ ++ unsigned int si_generation; ++ ++ /* see AuSi_ flags */ ++ unsigned char au_si_status; ++ ++ aufs_bindex_t si_bbot; ++ ++ /* dirty trick to keep br_id plus */ ++ unsigned int si_last_br_id : ++ sizeof(aufs_bindex_t) * BITS_PER_BYTE - 1; ++ struct au_branch **si_branch; ++ ++ /* policy to select a writable branch */ ++ unsigned char si_wbr_copyup; ++ unsigned char si_wbr_create; ++ struct au_wbr_copyup_operations *si_wbr_copyup_ops; ++ struct au_wbr_create_operations *si_wbr_create_ops; ++ ++ /* round robin */ ++ atomic_t si_wbr_rr_next; ++ ++ /* most free space */ ++ struct au_wbr_mfs si_wbr_mfs; ++ ++ /* File-based Hierarchical Storage Management */ ++ struct au_fhsm si_fhsm; ++ ++ /* mount flags */ ++ /* include/asm-ia64/siginfo.h defines a macro named si_flags */ ++ unsigned int si_mntflags; ++ ++ /* external inode number (bitmap and translation table) */ ++ vfs_readf_t si_xread; ++ vfs_writef_t si_xwrite; ++ struct file *si_xib; ++ struct mutex si_xib_mtx; /* protect xib members */ ++ unsigned long *si_xib_buf; ++ unsigned long si_xib_last_pindex; ++ int si_xib_next_bit; ++ aufs_bindex_t si_xino_brid; ++ unsigned long si_xino_jiffy; ++ unsigned long si_xino_expire; ++ /* reserved for future use */ ++ /* unsigned long long si_xib_limit; */ /* Max xib file size */ ++ ++#ifdef CONFIG_AUFS_EXPORT ++ /* i_generation */ ++ struct file *si_xigen; ++ atomic_t si_xigen_next; ++#endif ++ ++ /* dirty trick to suppoer atomic_open */ ++ struct hlist_bl_head si_aopen; ++ ++ /* vdir parameters */ ++ unsigned long si_rdcache; /* max cache time in jiffies */ ++ unsigned int si_rdblk; /* deblk size */ ++ unsigned int si_rdhash; /* hash size */ ++ ++ /* ++ * If the number of whiteouts are larger than si_dirwh, leave all of ++ * them after au_whtmp_ren to reduce the cost of rmdir(2). ++ * future fsck.aufs or kernel thread will remove them later. ++ * Otherwise, remove all whiteouts and the dir in rmdir(2). ++ */ ++ unsigned int si_dirwh; ++ ++ /* pseudo_link list */ ++ struct hlist_bl_head si_plink[AuPlink_NHASH]; ++ wait_queue_head_t si_plink_wq; ++ spinlock_t si_plink_maint_lock; ++ pid_t si_plink_maint_pid; ++ ++ /* file list */ ++ struct hlist_bl_head si_files; ++ ++ /* with/without getattr, brother of sb->s_d_op */ ++ struct inode_operations *si_iop_array; ++ ++ /* ++ * sysfs and lifetime management. ++ * this is not a small structure and it may be a waste of memory in case ++ * of sysfs is disabled, particulary when many aufs-es are mounted. ++ * but using sysfs is majority. ++ */ ++ struct kobject si_kobj; ++#ifdef CONFIG_DEBUG_FS ++ struct dentry *si_dbgaufs; ++ struct dentry *si_dbgaufs_plink; ++ struct dentry *si_dbgaufs_xib; ++#ifdef CONFIG_AUFS_EXPORT ++ struct dentry *si_dbgaufs_xigen; ++#endif ++#endif ++ ++#ifdef CONFIG_AUFS_SBILIST ++ struct hlist_bl_node si_list; ++#endif ++ ++ /* dirty, necessary for unmounting, sysfs and sysrq */ ++ struct super_block *si_sb; ++}; ++ ++/* sbinfo status flags */ ++/* ++ * set true when refresh_dirs() failed at remount time. ++ * then try refreshing dirs at access time again. ++ * if it is false, refreshing dirs at access time is unnecesary ++ */ ++#define AuSi_FAILED_REFRESH_DIR 1 ++#define AuSi_FHSM (1 << 1) /* fhsm is active now */ ++#define AuSi_NO_DREVAL (1 << 2) /* disable all d_revalidate */ ++ ++#ifndef CONFIG_AUFS_FHSM ++#undef AuSi_FHSM ++#define AuSi_FHSM 0 ++#endif ++ ++static inline unsigned char au_do_ftest_si(struct au_sbinfo *sbi, ++ unsigned int flag) ++{ ++ AuRwMustAnyLock(&sbi->si_rwsem); ++ return sbi->au_si_status & flag; ++} ++#define au_ftest_si(sbinfo, name) au_do_ftest_si(sbinfo, AuSi_##name) ++#define au_fset_si(sbinfo, name) do { \ ++ AuRwMustWriteLock(&(sbinfo)->si_rwsem); \ ++ (sbinfo)->au_si_status |= AuSi_##name; \ ++} while (0) ++#define au_fclr_si(sbinfo, name) do { \ ++ AuRwMustWriteLock(&(sbinfo)->si_rwsem); \ ++ (sbinfo)->au_si_status &= ~AuSi_##name; \ ++} while (0) ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* policy to select one among writable branches */ ++#define AuWbrCopyup(sbinfo, ...) \ ++ ((sbinfo)->si_wbr_copyup_ops->copyup(__VA_ARGS__)) ++#define AuWbrCreate(sbinfo, ...) \ ++ ((sbinfo)->si_wbr_create_ops->create(__VA_ARGS__)) ++ ++/* flags for si_read_lock()/aufs_read_lock()/di_read_lock() */ ++#define AuLock_DW 1 /* write-lock dentry */ ++#define AuLock_IR (1 << 1) /* read-lock inode */ ++#define AuLock_IW (1 << 2) /* write-lock inode */ ++#define AuLock_FLUSH (1 << 3) /* wait for 'nowait' tasks */ ++#define AuLock_DIRS (1 << 4) /* target is a pair of dirs */ ++ /* except RENAME_EXCHANGE */ ++#define AuLock_NOPLM (1 << 5) /* return err in plm mode */ ++#define AuLock_NOPLMW (1 << 6) /* wait for plm mode ends */ ++#define AuLock_GEN (1 << 7) /* test digen/iigen */ ++#define au_ftest_lock(flags, name) ((flags) & AuLock_##name) ++#define au_fset_lock(flags, name) \ ++ do { (flags) |= AuLock_##name; } while (0) ++#define au_fclr_lock(flags, name) \ ++ do { (flags) &= ~AuLock_##name; } while (0) ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* super.c */ ++extern struct file_system_type aufs_fs_type; ++struct inode *au_iget_locked(struct super_block *sb, ino_t ino); ++typedef unsigned long long (*au_arraycb_t)(struct super_block *sb, void *array, ++ unsigned long long max, void *arg); ++void *au_array_alloc(unsigned long long *hint, au_arraycb_t cb, ++ struct super_block *sb, void *arg); ++struct inode **au_iarray_alloc(struct super_block *sb, unsigned long long *max); ++void au_iarray_free(struct inode **a, unsigned long long max); ++ ++/* sbinfo.c */ ++void au_si_free(struct kobject *kobj); ++int au_si_alloc(struct super_block *sb); ++int au_sbr_realloc(struct au_sbinfo *sbinfo, int nbr, int may_shrink); ++ ++unsigned int au_sigen_inc(struct super_block *sb); ++aufs_bindex_t au_new_br_id(struct super_block *sb); ++ ++int si_read_lock(struct super_block *sb, int flags); ++int si_write_lock(struct super_block *sb, int flags); ++int aufs_read_lock(struct dentry *dentry, int flags); ++void aufs_read_unlock(struct dentry *dentry, int flags); ++void aufs_write_lock(struct dentry *dentry); ++void aufs_write_unlock(struct dentry *dentry); ++int aufs_read_and_write_lock2(struct dentry *d1, struct dentry *d2, int flags); ++void aufs_read_and_write_unlock2(struct dentry *d1, struct dentry *d2); ++ ++/* wbr_policy.c */ ++extern struct au_wbr_copyup_operations au_wbr_copyup_ops[]; ++extern struct au_wbr_create_operations au_wbr_create_ops[]; ++int au_cpdown_dirs(struct dentry *dentry, aufs_bindex_t bdst); ++int au_wbr_nonopq(struct dentry *dentry, aufs_bindex_t bindex); ++int au_wbr_do_copyup_bu(struct dentry *dentry, aufs_bindex_t btop); ++ ++/* mvdown.c */ ++int au_mvdown(struct dentry *dentry, struct aufs_mvdown __user *arg); ++ ++#ifdef CONFIG_AUFS_FHSM ++/* fhsm.c */ ++ ++static inline pid_t au_fhsm_pid(struct au_fhsm *fhsm) ++{ ++ pid_t pid; ++ ++ spin_lock(&fhsm->fhsm_spin); ++ pid = fhsm->fhsm_pid; ++ spin_unlock(&fhsm->fhsm_spin); ++ ++ return pid; ++} ++ ++void au_fhsm_wrote(struct super_block *sb, aufs_bindex_t bindex, int force); ++void au_fhsm_wrote_all(struct super_block *sb, int force); ++int au_fhsm_fd(struct super_block *sb, int oflags); ++int au_fhsm_br_alloc(struct au_branch *br); ++void au_fhsm_set_bottom(struct super_block *sb, aufs_bindex_t bindex); ++void au_fhsm_fin(struct super_block *sb); ++void au_fhsm_init(struct au_sbinfo *sbinfo); ++void au_fhsm_set(struct au_sbinfo *sbinfo, unsigned int sec); ++void au_fhsm_show(struct seq_file *seq, struct au_sbinfo *sbinfo); ++#else ++AuStubVoid(au_fhsm_wrote, struct super_block *sb, aufs_bindex_t bindex, ++ int force) ++AuStubVoid(au_fhsm_wrote_all, struct super_block *sb, int force) ++AuStub(int, au_fhsm_fd, return -EOPNOTSUPP, struct super_block *sb, int oflags) ++AuStub(pid_t, au_fhsm_pid, return 0, struct au_fhsm *fhsm) ++AuStubInt0(au_fhsm_br_alloc, struct au_branch *br) ++AuStubVoid(au_fhsm_set_bottom, struct super_block *sb, aufs_bindex_t bindex) ++AuStubVoid(au_fhsm_fin, struct super_block *sb) ++AuStubVoid(au_fhsm_init, struct au_sbinfo *sbinfo) ++AuStubVoid(au_fhsm_set, struct au_sbinfo *sbinfo, unsigned int sec) ++AuStubVoid(au_fhsm_show, struct seq_file *seq, struct au_sbinfo *sbinfo) ++#endif ++ ++/* ---------------------------------------------------------------------- */ ++ ++static inline struct au_sbinfo *au_sbi(struct super_block *sb) ++{ ++ return sb->s_fs_info; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++#ifdef CONFIG_AUFS_EXPORT ++int au_test_nfsd(void); ++void au_export_init(struct super_block *sb); ++void au_xigen_inc(struct inode *inode); ++int au_xigen_new(struct inode *inode); ++int au_xigen_set(struct super_block *sb, struct file *base); ++void au_xigen_clr(struct super_block *sb); ++ ++static inline int au_busy_or_stale(void) ++{ ++ if (!au_test_nfsd()) ++ return -EBUSY; ++ return -ESTALE; ++} ++#else ++AuStubInt0(au_test_nfsd, void) ++AuStubVoid(au_export_init, struct super_block *sb) ++AuStubVoid(au_xigen_inc, struct inode *inode) ++AuStubInt0(au_xigen_new, struct inode *inode) ++AuStubInt0(au_xigen_set, struct super_block *sb, struct file *base) ++AuStubVoid(au_xigen_clr, struct super_block *sb) ++AuStub(int, au_busy_or_stale, return -EBUSY, void) ++#endif /* CONFIG_AUFS_EXPORT */ ++ ++/* ---------------------------------------------------------------------- */ ++ ++#ifdef CONFIG_AUFS_SBILIST ++/* module.c */ ++extern struct hlist_bl_head au_sbilist; ++ ++static inline void au_sbilist_init(void) ++{ ++ INIT_HLIST_BL_HEAD(&au_sbilist); ++} ++ ++static inline void au_sbilist_add(struct super_block *sb) ++{ ++ au_hbl_add(&au_sbi(sb)->si_list, &au_sbilist); ++} ++ ++static inline void au_sbilist_del(struct super_block *sb) ++{ ++ au_hbl_del(&au_sbi(sb)->si_list, &au_sbilist); ++} ++ ++#ifdef CONFIG_AUFS_MAGIC_SYSRQ ++static inline void au_sbilist_lock(void) ++{ ++ hlist_bl_lock(&au_sbilist); ++} ++ ++static inline void au_sbilist_unlock(void) ++{ ++ hlist_bl_unlock(&au_sbilist); ++} ++#define AuGFP_SBILIST GFP_ATOMIC ++#else ++AuStubVoid(au_sbilist_lock, void) ++AuStubVoid(au_sbilist_unlock, void) ++#define AuGFP_SBILIST GFP_NOFS ++#endif /* CONFIG_AUFS_MAGIC_SYSRQ */ ++#else ++AuStubVoid(au_sbilist_init, void) ++AuStubVoid(au_sbilist_add, struct super_block *sb) ++AuStubVoid(au_sbilist_del, struct super_block *sb) ++AuStubVoid(au_sbilist_lock, void) ++AuStubVoid(au_sbilist_unlock, void) ++#define AuGFP_SBILIST GFP_NOFS ++#endif ++ ++/* ---------------------------------------------------------------------- */ ++ ++static inline void dbgaufs_si_null(struct au_sbinfo *sbinfo) ++{ ++ /* ++ * This function is a dynamic '__init' function actually, ++ * so the tiny check for si_rwsem is unnecessary. ++ */ ++ /* AuRwMustWriteLock(&sbinfo->si_rwsem); */ ++#ifdef CONFIG_DEBUG_FS ++ sbinfo->si_dbgaufs = NULL; ++ sbinfo->si_dbgaufs_plink = NULL; ++ sbinfo->si_dbgaufs_xib = NULL; ++#ifdef CONFIG_AUFS_EXPORT ++ sbinfo->si_dbgaufs_xigen = NULL; ++#endif ++#endif ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* current->atomic_flags */ ++/* this value should never corrupt the ones defined in linux/sched.h */ ++#define PFA_AUFS 7 ++ ++TASK_PFA_TEST(AUFS, test_aufs) /* task_test_aufs */ ++TASK_PFA_SET(AUFS, aufs) /* task_set_aufs */ ++TASK_PFA_CLEAR(AUFS, aufs) /* task_clear_aufs */ ++ ++static inline int si_pid_test(struct super_block *sb) ++{ ++ return !!task_test_aufs(current); ++} ++ ++static inline void si_pid_clr(struct super_block *sb) ++{ ++ AuDebugOn(!task_test_aufs(current)); ++ task_clear_aufs(current); ++} ++ ++static inline void si_pid_set(struct super_block *sb) ++{ ++ AuDebugOn(task_test_aufs(current)); ++ task_set_aufs(current); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* lock superblock. mainly for entry point functions */ ++#define __si_read_lock(sb) au_rw_read_lock(&au_sbi(sb)->si_rwsem) ++#define __si_write_lock(sb) au_rw_write_lock(&au_sbi(sb)->si_rwsem) ++#define __si_read_trylock(sb) au_rw_read_trylock(&au_sbi(sb)->si_rwsem) ++#define __si_write_trylock(sb) au_rw_write_trylock(&au_sbi(sb)->si_rwsem) ++/* ++#define __si_read_trylock_nested(sb) \ ++ au_rw_read_trylock_nested(&au_sbi(sb)->si_rwsem) ++#define __si_write_trylock_nested(sb) \ ++ au_rw_write_trylock_nested(&au_sbi(sb)->si_rwsem) ++*/ ++ ++#define __si_read_unlock(sb) au_rw_read_unlock(&au_sbi(sb)->si_rwsem) ++#define __si_write_unlock(sb) au_rw_write_unlock(&au_sbi(sb)->si_rwsem) ++#define __si_downgrade_lock(sb) au_rw_dgrade_lock(&au_sbi(sb)->si_rwsem) ++ ++#define SiMustNoWaiters(sb) AuRwMustNoWaiters(&au_sbi(sb)->si_rwsem) ++#define SiMustAnyLock(sb) AuRwMustAnyLock(&au_sbi(sb)->si_rwsem) ++#define SiMustWriteLock(sb) AuRwMustWriteLock(&au_sbi(sb)->si_rwsem) ++ ++static inline void si_noflush_read_lock(struct super_block *sb) ++{ ++ __si_read_lock(sb); ++ si_pid_set(sb); ++} ++ ++static inline int si_noflush_read_trylock(struct super_block *sb) ++{ ++ int locked; ++ ++ locked = __si_read_trylock(sb); ++ if (locked) ++ si_pid_set(sb); ++ return locked; ++} ++ ++static inline void si_noflush_write_lock(struct super_block *sb) ++{ ++ __si_write_lock(sb); ++ si_pid_set(sb); ++} ++ ++static inline int si_noflush_write_trylock(struct super_block *sb) ++{ ++ int locked; ++ ++ locked = __si_write_trylock(sb); ++ if (locked) ++ si_pid_set(sb); ++ return locked; ++} ++ ++#if 0 /* reserved */ ++static inline int si_read_trylock(struct super_block *sb, int flags) ++{ ++ if (au_ftest_lock(flags, FLUSH)) ++ au_nwt_flush(&au_sbi(sb)->si_nowait); ++ return si_noflush_read_trylock(sb); ++} ++#endif ++ ++static inline void si_read_unlock(struct super_block *sb) ++{ ++ si_pid_clr(sb); ++ __si_read_unlock(sb); ++} ++ ++#if 0 /* reserved */ ++static inline int si_write_trylock(struct super_block *sb, int flags) ++{ ++ if (au_ftest_lock(flags, FLUSH)) ++ au_nwt_flush(&au_sbi(sb)->si_nowait); ++ return si_noflush_write_trylock(sb); ++} ++#endif ++ ++static inline void si_write_unlock(struct super_block *sb) ++{ ++ si_pid_clr(sb); ++ __si_write_unlock(sb); ++} ++ ++#if 0 /* reserved */ ++static inline void si_downgrade_lock(struct super_block *sb) ++{ ++ __si_downgrade_lock(sb); ++} ++#endif ++ ++/* ---------------------------------------------------------------------- */ ++ ++static inline aufs_bindex_t au_sbbot(struct super_block *sb) ++{ ++ SiMustAnyLock(sb); ++ return au_sbi(sb)->si_bbot; ++} ++ ++static inline unsigned int au_mntflags(struct super_block *sb) ++{ ++ SiMustAnyLock(sb); ++ return au_sbi(sb)->si_mntflags; ++} ++ ++static inline unsigned int au_sigen(struct super_block *sb) ++{ ++ SiMustAnyLock(sb); ++ return au_sbi(sb)->si_generation; ++} ++ ++static inline unsigned long long au_ninodes(struct super_block *sb) ++{ ++ s64 n = percpu_counter_sum(&au_sbi(sb)->si_ninodes); ++ ++ BUG_ON(n < 0); ++ return n; ++} ++ ++static inline void au_ninodes_inc(struct super_block *sb) ++{ ++ percpu_counter_inc(&au_sbi(sb)->si_ninodes); ++} ++ ++static inline void au_ninodes_dec(struct super_block *sb) ++{ ++ percpu_counter_dec(&au_sbi(sb)->si_ninodes); ++} ++ ++static inline unsigned long long au_nfiles(struct super_block *sb) ++{ ++ s64 n = percpu_counter_sum(&au_sbi(sb)->si_nfiles); ++ ++ BUG_ON(n < 0); ++ return n; ++} ++ ++static inline void au_nfiles_inc(struct super_block *sb) ++{ ++ percpu_counter_inc(&au_sbi(sb)->si_nfiles); ++} ++ ++static inline void au_nfiles_dec(struct super_block *sb) ++{ ++ percpu_counter_dec(&au_sbi(sb)->si_nfiles); ++} ++ ++static inline struct au_branch *au_sbr(struct super_block *sb, ++ aufs_bindex_t bindex) ++{ ++ SiMustAnyLock(sb); ++ return au_sbi(sb)->si_branch[0 + bindex]; ++} ++ ++static inline void au_xino_brid_set(struct super_block *sb, aufs_bindex_t brid) ++{ ++ SiMustWriteLock(sb); ++ au_sbi(sb)->si_xino_brid = brid; ++} ++ ++static inline aufs_bindex_t au_xino_brid(struct super_block *sb) ++{ ++ SiMustAnyLock(sb); ++ return au_sbi(sb)->si_xino_brid; ++} ++ ++#endif /* __KERNEL__ */ ++#endif /* __AUFS_SUPER_H__ */ +diff -Naur null/fs/aufs/sysaufs.c linux-4.15/fs/aufs/sysaufs.c +--- /dev/null ++++ linux-4.15/fs/aufs/sysaufs.c 2018-02-25 02:38:09.205738221 +0100 +@@ -0,0 +1,104 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * sysfs interface and lifetime management ++ * they are necessary regardless sysfs is disabled. ++ */ ++ ++#include ++#include "aufs.h" ++ ++unsigned long sysaufs_si_mask; ++struct kset *sysaufs_kset; ++ ++#define AuSiAttr(_name) { \ ++ .attr = { .name = __stringify(_name), .mode = 0444 }, \ ++ .show = sysaufs_si_##_name, \ ++} ++ ++static struct sysaufs_si_attr sysaufs_si_attr_xi_path = AuSiAttr(xi_path); ++struct attribute *sysaufs_si_attrs[] = { ++ &sysaufs_si_attr_xi_path.attr, ++ NULL, ++}; ++ ++static const struct sysfs_ops au_sbi_ops = { ++ .show = sysaufs_si_show ++}; ++ ++static struct kobj_type au_sbi_ktype = { ++ .release = au_si_free, ++ .sysfs_ops = &au_sbi_ops, ++ .default_attrs = sysaufs_si_attrs ++}; ++ ++/* ---------------------------------------------------------------------- */ ++ ++int sysaufs_si_init(struct au_sbinfo *sbinfo) ++{ ++ int err; ++ ++ sbinfo->si_kobj.kset = sysaufs_kset; ++ /* cf. sysaufs_name() */ ++ err = kobject_init_and_add ++ (&sbinfo->si_kobj, &au_sbi_ktype, /*&sysaufs_kset->kobj*/NULL, ++ SysaufsSiNamePrefix "%lx", sysaufs_si_id(sbinfo)); ++ ++ dbgaufs_si_null(sbinfo); ++ if (!err) { ++ err = dbgaufs_si_init(sbinfo); ++ if (unlikely(err)) ++ kobject_put(&sbinfo->si_kobj); ++ } ++ return err; ++} ++ ++void sysaufs_fin(void) ++{ ++ dbgaufs_fin(); ++ sysfs_remove_group(&sysaufs_kset->kobj, sysaufs_attr_group); ++ kset_unregister(sysaufs_kset); ++} ++ ++int __init sysaufs_init(void) ++{ ++ int err; ++ ++ do { ++ get_random_bytes(&sysaufs_si_mask, sizeof(sysaufs_si_mask)); ++ } while (!sysaufs_si_mask); ++ ++ err = -EINVAL; ++ sysaufs_kset = kset_create_and_add(AUFS_NAME, NULL, fs_kobj); ++ if (unlikely(!sysaufs_kset)) ++ goto out; ++ err = PTR_ERR(sysaufs_kset); ++ if (IS_ERR(sysaufs_kset)) ++ goto out; ++ err = sysfs_create_group(&sysaufs_kset->kobj, sysaufs_attr_group); ++ if (unlikely(err)) { ++ kset_unregister(sysaufs_kset); ++ goto out; ++ } ++ ++ err = dbgaufs_init(); ++ if (unlikely(err)) ++ sysaufs_fin(); ++out: ++ return err; ++} +diff -Naur null/fs/aufs/sysaufs.h linux-4.15/fs/aufs/sysaufs.h +--- /dev/null ++++ linux-4.15/fs/aufs/sysaufs.h 2018-02-25 02:38:09.205738221 +0100 +@@ -0,0 +1,101 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * sysfs interface and mount lifetime management ++ */ ++ ++#ifndef __SYSAUFS_H__ ++#define __SYSAUFS_H__ ++ ++#ifdef __KERNEL__ ++ ++#include ++#include "module.h" ++ ++struct super_block; ++struct au_sbinfo; ++ ++struct sysaufs_si_attr { ++ struct attribute attr; ++ int (*show)(struct seq_file *seq, struct super_block *sb); ++}; ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* sysaufs.c */ ++extern unsigned long sysaufs_si_mask; ++extern struct kset *sysaufs_kset; ++extern struct attribute *sysaufs_si_attrs[]; ++int sysaufs_si_init(struct au_sbinfo *sbinfo); ++int __init sysaufs_init(void); ++void sysaufs_fin(void); ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* some people doesn't like to show a pointer in kernel */ ++static inline unsigned long sysaufs_si_id(struct au_sbinfo *sbinfo) ++{ ++ return sysaufs_si_mask ^ (unsigned long)sbinfo; ++} ++ ++#define SysaufsSiNamePrefix "si_" ++#define SysaufsSiNameLen (sizeof(SysaufsSiNamePrefix) + 16) ++static inline void sysaufs_name(struct au_sbinfo *sbinfo, char *name) ++{ ++ snprintf(name, SysaufsSiNameLen, SysaufsSiNamePrefix "%lx", ++ sysaufs_si_id(sbinfo)); ++} ++ ++struct au_branch; ++#ifdef CONFIG_SYSFS ++/* sysfs.c */ ++extern struct attribute_group *sysaufs_attr_group; ++ ++int sysaufs_si_xi_path(struct seq_file *seq, struct super_block *sb); ++ssize_t sysaufs_si_show(struct kobject *kobj, struct attribute *attr, ++ char *buf); ++long au_brinfo_ioctl(struct file *file, unsigned long arg); ++#ifdef CONFIG_COMPAT ++long au_brinfo_compat_ioctl(struct file *file, unsigned long arg); ++#endif ++ ++void sysaufs_br_init(struct au_branch *br); ++void sysaufs_brs_add(struct super_block *sb, aufs_bindex_t bindex); ++void sysaufs_brs_del(struct super_block *sb, aufs_bindex_t bindex); ++ ++#define sysaufs_brs_init() do {} while (0) ++ ++#else ++#define sysaufs_attr_group NULL ++ ++AuStubInt0(sysaufs_si_xi_path, struct seq_file *seq, struct super_block *sb) ++AuStub(ssize_t, sysaufs_si_show, return 0, struct kobject *kobj, ++ struct attribute *attr, char *buf) ++AuStubVoid(sysaufs_br_init, struct au_branch *br) ++AuStubVoid(sysaufs_brs_add, struct super_block *sb, aufs_bindex_t bindex) ++AuStubVoid(sysaufs_brs_del, struct super_block *sb, aufs_bindex_t bindex) ++ ++static inline void sysaufs_brs_init(void) ++{ ++ sysaufs_brs = 0; ++} ++ ++#endif /* CONFIG_SYSFS */ ++ ++#endif /* __KERNEL__ */ ++#endif /* __SYSAUFS_H__ */ +diff -Naur null/fs/aufs/sysfs.c linux-4.15/fs/aufs/sysfs.c +--- /dev/null ++++ linux-4.15/fs/aufs/sysfs.c 2018-02-25 02:38:09.205738221 +0100 +@@ -0,0 +1,376 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * sysfs interface ++ */ ++ ++#include ++#include ++#include "aufs.h" ++ ++#ifdef CONFIG_AUFS_FS_MODULE ++/* this entry violates the "one line per file" policy of sysfs */ ++static ssize_t config_show(struct kobject *kobj, struct kobj_attribute *attr, ++ char *buf) ++{ ++ ssize_t err; ++ static char *conf = ++/* this file is generated at compiling */ ++#include "conf.str" ++ ; ++ ++ err = snprintf(buf, PAGE_SIZE, conf); ++ if (unlikely(err >= PAGE_SIZE)) ++ err = -EFBIG; ++ return err; ++} ++ ++static struct kobj_attribute au_config_attr = __ATTR_RO(config); ++#endif ++ ++static struct attribute *au_attr[] = { ++#ifdef CONFIG_AUFS_FS_MODULE ++ &au_config_attr.attr, ++#endif ++ NULL, /* need to NULL terminate the list of attributes */ ++}; ++ ++static struct attribute_group sysaufs_attr_group_body = { ++ .attrs = au_attr ++}; ++ ++struct attribute_group *sysaufs_attr_group = &sysaufs_attr_group_body; ++ ++/* ---------------------------------------------------------------------- */ ++ ++int sysaufs_si_xi_path(struct seq_file *seq, struct super_block *sb) ++{ ++ int err; ++ ++ SiMustAnyLock(sb); ++ ++ err = 0; ++ if (au_opt_test(au_mntflags(sb), XINO)) { ++ err = au_xino_path(seq, au_sbi(sb)->si_xib); ++ seq_putc(seq, '\n'); ++ } ++ return err; ++} ++ ++/* ++ * the lifetime of branch is independent from the entry under sysfs. ++ * sysfs handles the lifetime of the entry, and never call ->show() after it is ++ * unlinked. ++ */ ++static int sysaufs_si_br(struct seq_file *seq, struct super_block *sb, ++ aufs_bindex_t bindex, int idx) ++{ ++ int err; ++ struct path path; ++ struct dentry *root; ++ struct au_branch *br; ++ au_br_perm_str_t perm; ++ ++ AuDbg("b%d\n", bindex); ++ ++ err = 0; ++ root = sb->s_root; ++ di_read_lock_parent(root, !AuLock_IR); ++ br = au_sbr(sb, bindex); ++ ++ switch (idx) { ++ case AuBrSysfs_BR: ++ path.mnt = au_br_mnt(br); ++ path.dentry = au_h_dptr(root, bindex); ++ err = au_seq_path(seq, &path); ++ if (!err) { ++ au_optstr_br_perm(&perm, br->br_perm); ++ seq_printf(seq, "=%s\n", perm.a); ++ } ++ break; ++ case AuBrSysfs_BRID: ++ seq_printf(seq, "%d\n", br->br_id); ++ break; ++ } ++ di_read_unlock(root, !AuLock_IR); ++ if (unlikely(err || seq_has_overflowed(seq))) ++ err = -E2BIG; ++ ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static struct seq_file *au_seq(char *p, ssize_t len) ++{ ++ struct seq_file *seq; ++ ++ seq = kzalloc(sizeof(*seq), GFP_NOFS); ++ if (seq) { ++ /* mutex_init(&seq.lock); */ ++ seq->buf = p; ++ seq->size = len; ++ return seq; /* success */ ++ } ++ ++ seq = ERR_PTR(-ENOMEM); ++ return seq; ++} ++ ++#define SysaufsBr_PREFIX "br" ++#define SysaufsBrid_PREFIX "brid" ++ ++/* todo: file size may exceed PAGE_SIZE */ ++ssize_t sysaufs_si_show(struct kobject *kobj, struct attribute *attr, ++ char *buf) ++{ ++ ssize_t err; ++ int idx; ++ long l; ++ aufs_bindex_t bbot; ++ struct au_sbinfo *sbinfo; ++ struct super_block *sb; ++ struct seq_file *seq; ++ char *name; ++ struct attribute **cattr; ++ ++ sbinfo = container_of(kobj, struct au_sbinfo, si_kobj); ++ sb = sbinfo->si_sb; ++ ++ /* ++ * prevent a race condition between sysfs and aufs. ++ * for instance, sysfs_file_read() calls sysfs_get_active_two() which ++ * prohibits maintaining the sysfs entries. ++ * hew we acquire read lock after sysfs_get_active_two(). ++ * on the other hand, the remount process may maintain the sysfs/aufs ++ * entries after acquiring write lock. ++ * it can cause a deadlock. ++ * simply we gave up processing read here. ++ */ ++ err = -EBUSY; ++ if (unlikely(!si_noflush_read_trylock(sb))) ++ goto out; ++ ++ seq = au_seq(buf, PAGE_SIZE); ++ err = PTR_ERR(seq); ++ if (IS_ERR(seq)) ++ goto out_unlock; ++ ++ name = (void *)attr->name; ++ cattr = sysaufs_si_attrs; ++ while (*cattr) { ++ if (!strcmp(name, (*cattr)->name)) { ++ err = container_of(*cattr, struct sysaufs_si_attr, attr) ++ ->show(seq, sb); ++ goto out_seq; ++ } ++ cattr++; ++ } ++ ++ if (!strncmp(name, SysaufsBrid_PREFIX, ++ sizeof(SysaufsBrid_PREFIX) - 1)) { ++ idx = AuBrSysfs_BRID; ++ name += sizeof(SysaufsBrid_PREFIX) - 1; ++ } else if (!strncmp(name, SysaufsBr_PREFIX, ++ sizeof(SysaufsBr_PREFIX) - 1)) { ++ idx = AuBrSysfs_BR; ++ name += sizeof(SysaufsBr_PREFIX) - 1; ++ } else ++ BUG(); ++ ++ err = kstrtol(name, 10, &l); ++ if (!err) { ++ bbot = au_sbbot(sb); ++ if (l <= bbot) ++ err = sysaufs_si_br(seq, sb, (aufs_bindex_t)l, idx); ++ else ++ err = -ENOENT; ++ } ++ ++out_seq: ++ if (!err) { ++ err = seq->count; ++ /* sysfs limit */ ++ if (unlikely(err == PAGE_SIZE)) ++ err = -EFBIG; ++ } ++ kfree(seq); ++out_unlock: ++ si_read_unlock(sb); ++out: ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static int au_brinfo(struct super_block *sb, union aufs_brinfo __user *arg) ++{ ++ int err; ++ int16_t brid; ++ aufs_bindex_t bindex, bbot; ++ size_t sz; ++ char *buf; ++ struct seq_file *seq; ++ struct au_branch *br; ++ ++ si_read_lock(sb, AuLock_FLUSH); ++ bbot = au_sbbot(sb); ++ err = bbot + 1; ++ if (!arg) ++ goto out; ++ ++ err = -ENOMEM; ++ buf = (void *)__get_free_page(GFP_NOFS); ++ if (unlikely(!buf)) ++ goto out; ++ ++ seq = au_seq(buf, PAGE_SIZE); ++ err = PTR_ERR(seq); ++ if (IS_ERR(seq)) ++ goto out_buf; ++ ++ sz = sizeof(*arg) - offsetof(union aufs_brinfo, path); ++ for (bindex = 0; bindex <= bbot; bindex++, arg++) { ++ err = !access_ok(VERIFY_WRITE, arg, sizeof(*arg)); ++ if (unlikely(err)) ++ break; ++ ++ br = au_sbr(sb, bindex); ++ brid = br->br_id; ++ BUILD_BUG_ON(sizeof(brid) != sizeof(arg->id)); ++ err = __put_user(brid, &arg->id); ++ if (unlikely(err)) ++ break; ++ ++ BUILD_BUG_ON(sizeof(br->br_perm) != sizeof(arg->perm)); ++ err = __put_user(br->br_perm, &arg->perm); ++ if (unlikely(err)) ++ break; ++ ++ err = au_seq_path(seq, &br->br_path); ++ if (unlikely(err)) ++ break; ++ seq_putc(seq, '\0'); ++ if (!seq_has_overflowed(seq)) { ++ err = copy_to_user(arg->path, seq->buf, seq->count); ++ seq->count = 0; ++ if (unlikely(err)) ++ break; ++ } else { ++ err = -E2BIG; ++ goto out_seq; ++ } ++ } ++ if (unlikely(err)) ++ err = -EFAULT; ++ ++out_seq: ++ kfree(seq); ++out_buf: ++ free_page((unsigned long)buf); ++out: ++ si_read_unlock(sb); ++ return err; ++} ++ ++long au_brinfo_ioctl(struct file *file, unsigned long arg) ++{ ++ return au_brinfo(file->f_path.dentry->d_sb, (void __user *)arg); ++} ++ ++#ifdef CONFIG_COMPAT ++long au_brinfo_compat_ioctl(struct file *file, unsigned long arg) ++{ ++ return au_brinfo(file->f_path.dentry->d_sb, compat_ptr(arg)); ++} ++#endif ++ ++/* ---------------------------------------------------------------------- */ ++ ++void sysaufs_br_init(struct au_branch *br) ++{ ++ int i; ++ struct au_brsysfs *br_sysfs; ++ struct attribute *attr; ++ ++ br_sysfs = br->br_sysfs; ++ for (i = 0; i < ARRAY_SIZE(br->br_sysfs); i++) { ++ attr = &br_sysfs->attr; ++ sysfs_attr_init(attr); ++ attr->name = br_sysfs->name; ++ attr->mode = S_IRUGO; ++ br_sysfs++; ++ } ++} ++ ++void sysaufs_brs_del(struct super_block *sb, aufs_bindex_t bindex) ++{ ++ struct au_branch *br; ++ struct kobject *kobj; ++ struct au_brsysfs *br_sysfs; ++ int i; ++ aufs_bindex_t bbot; ++ ++ dbgaufs_brs_del(sb, bindex); ++ ++ if (!sysaufs_brs) ++ return; ++ ++ kobj = &au_sbi(sb)->si_kobj; ++ bbot = au_sbbot(sb); ++ for (; bindex <= bbot; bindex++) { ++ br = au_sbr(sb, bindex); ++ br_sysfs = br->br_sysfs; ++ for (i = 0; i < ARRAY_SIZE(br->br_sysfs); i++) { ++ sysfs_remove_file(kobj, &br_sysfs->attr); ++ br_sysfs++; ++ } ++ } ++} ++ ++void sysaufs_brs_add(struct super_block *sb, aufs_bindex_t bindex) ++{ ++ int err, i; ++ aufs_bindex_t bbot; ++ struct kobject *kobj; ++ struct au_branch *br; ++ struct au_brsysfs *br_sysfs; ++ ++ dbgaufs_brs_add(sb, bindex); ++ ++ if (!sysaufs_brs) ++ return; ++ ++ kobj = &au_sbi(sb)->si_kobj; ++ bbot = au_sbbot(sb); ++ for (; bindex <= bbot; bindex++) { ++ br = au_sbr(sb, bindex); ++ br_sysfs = br->br_sysfs; ++ snprintf(br_sysfs[AuBrSysfs_BR].name, sizeof(br_sysfs->name), ++ SysaufsBr_PREFIX "%d", bindex); ++ snprintf(br_sysfs[AuBrSysfs_BRID].name, sizeof(br_sysfs->name), ++ SysaufsBrid_PREFIX "%d", bindex); ++ for (i = 0; i < ARRAY_SIZE(br->br_sysfs); i++) { ++ err = sysfs_create_file(kobj, &br_sysfs->attr); ++ if (unlikely(err)) ++ pr_warn("failed %s under sysfs(%d)\n", ++ br_sysfs->name, err); ++ br_sysfs++; ++ } ++ } ++} +diff -Naur null/fs/aufs/sysrq.c linux-4.15/fs/aufs/sysrq.c +--- /dev/null ++++ linux-4.15/fs/aufs/sysrq.c 2018-02-25 02:38:09.205738221 +0100 +@@ -0,0 +1,159 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * magic sysrq hanlder ++ */ ++ ++/* #include */ ++#include ++#include "aufs.h" ++ ++/* ---------------------------------------------------------------------- */ ++ ++static void sysrq_sb(struct super_block *sb) ++{ ++ char *plevel; ++ struct au_sbinfo *sbinfo; ++ struct file *file; ++ struct hlist_bl_head *files; ++ struct hlist_bl_node *pos; ++ struct au_finfo *finfo; ++ ++ plevel = au_plevel; ++ au_plevel = KERN_WARNING; ++ ++ /* since we define pr_fmt, call printk directly */ ++#define pr(str) printk(KERN_WARNING AUFS_NAME ": " str) ++ ++ sbinfo = au_sbi(sb); ++ printk(KERN_WARNING "si=%lx\n", sysaufs_si_id(sbinfo)); ++ pr("superblock\n"); ++ au_dpri_sb(sb); ++ ++#if 0 ++ pr("root dentry\n"); ++ au_dpri_dentry(sb->s_root); ++ pr("root inode\n"); ++ au_dpri_inode(d_inode(sb->s_root)); ++#endif ++ ++#if 0 ++ do { ++ int err, i, j, ndentry; ++ struct au_dcsub_pages dpages; ++ struct au_dpage *dpage; ++ ++ err = au_dpages_init(&dpages, GFP_ATOMIC); ++ if (unlikely(err)) ++ break; ++ err = au_dcsub_pages(&dpages, sb->s_root, NULL, NULL); ++ if (!err) ++ for (i = 0; i < dpages.ndpage; i++) { ++ dpage = dpages.dpages + i; ++ ndentry = dpage->ndentry; ++ for (j = 0; j < ndentry; j++) ++ au_dpri_dentry(dpage->dentries[j]); ++ } ++ au_dpages_free(&dpages); ++ } while (0); ++#endif ++ ++#if 1 ++ { ++ struct inode *i; ++ ++ pr("isolated inode\n"); ++ spin_lock(&sb->s_inode_list_lock); ++ list_for_each_entry(i, &sb->s_inodes, i_sb_list) { ++ spin_lock(&i->i_lock); ++ if (1 || hlist_empty(&i->i_dentry)) ++ au_dpri_inode(i); ++ spin_unlock(&i->i_lock); ++ } ++ spin_unlock(&sb->s_inode_list_lock); ++ } ++#endif ++ pr("files\n"); ++ files = &au_sbi(sb)->si_files; ++ hlist_bl_lock(files); ++ hlist_bl_for_each_entry(finfo, pos, files, fi_hlist) { ++ umode_t mode; ++ ++ file = finfo->fi_file; ++ mode = file_inode(file)->i_mode; ++ if (!special_file(mode)) ++ au_dpri_file(file); ++ } ++ hlist_bl_unlock(files); ++ pr("done\n"); ++ ++#undef pr ++ au_plevel = plevel; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* module parameter */ ++static char *aufs_sysrq_key = "a"; ++module_param_named(sysrq, aufs_sysrq_key, charp, S_IRUGO); ++MODULE_PARM_DESC(sysrq, "MagicSysRq key for " AUFS_NAME); ++ ++static void au_sysrq(int key __maybe_unused) ++{ ++ struct au_sbinfo *sbinfo; ++ struct hlist_bl_node *pos; ++ ++ lockdep_off(); ++ au_sbilist_lock(); ++ hlist_bl_for_each_entry(sbinfo, pos, &au_sbilist, si_list) ++ sysrq_sb(sbinfo->si_sb); ++ au_sbilist_unlock(); ++ lockdep_on(); ++} ++ ++static struct sysrq_key_op au_sysrq_op = { ++ .handler = au_sysrq, ++ .help_msg = "Aufs", ++ .action_msg = "Aufs", ++ .enable_mask = SYSRQ_ENABLE_DUMP ++}; ++ ++/* ---------------------------------------------------------------------- */ ++ ++int __init au_sysrq_init(void) ++{ ++ int err; ++ char key; ++ ++ err = -1; ++ key = *aufs_sysrq_key; ++ if ('a' <= key && key <= 'z') ++ err = register_sysrq_key(key, &au_sysrq_op); ++ if (unlikely(err)) ++ pr_err("err %d, sysrq=%c\n", err, key); ++ return err; ++} ++ ++void au_sysrq_fin(void) ++{ ++ int err; ++ ++ err = unregister_sysrq_key(*aufs_sysrq_key, &au_sysrq_op); ++ if (unlikely(err)) ++ pr_err("err %d (ignored)\n", err); ++} +diff -Naur null/fs/aufs/vdir.c linux-4.15/fs/aufs/vdir.c +--- /dev/null ++++ linux-4.15/fs/aufs/vdir.c 2018-02-25 02:38:09.205738221 +0100 +@@ -0,0 +1,892 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * virtual or vertical directory ++ */ ++ ++#include "aufs.h" ++ ++static unsigned int calc_size(int nlen) ++{ ++ return ALIGN(sizeof(struct au_vdir_de) + nlen, sizeof(ino_t)); ++} ++ ++static int set_deblk_end(union au_vdir_deblk_p *p, ++ union au_vdir_deblk_p *deblk_end) ++{ ++ if (calc_size(0) <= deblk_end->deblk - p->deblk) { ++ p->de->de_str.len = 0; ++ /* smp_mb(); */ ++ return 0; ++ } ++ return -1; /* error */ ++} ++ ++/* returns true or false */ ++static int is_deblk_end(union au_vdir_deblk_p *p, ++ union au_vdir_deblk_p *deblk_end) ++{ ++ if (calc_size(0) <= deblk_end->deblk - p->deblk) ++ return !p->de->de_str.len; ++ return 1; ++} ++ ++static unsigned char *last_deblk(struct au_vdir *vdir) ++{ ++ return vdir->vd_deblk[vdir->vd_nblk - 1]; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* estimate the appropriate size for name hash table */ ++unsigned int au_rdhash_est(loff_t sz) ++{ ++ unsigned int n; ++ ++ n = UINT_MAX; ++ sz >>= 10; ++ if (sz < n) ++ n = sz; ++ if (sz < AUFS_RDHASH_DEF) ++ n = AUFS_RDHASH_DEF; ++ /* pr_info("n %u\n", n); */ ++ return n; ++} ++ ++/* ++ * the allocated memory has to be freed by ++ * au_nhash_wh_free() or au_nhash_de_free(). ++ */ ++int au_nhash_alloc(struct au_nhash *nhash, unsigned int num_hash, gfp_t gfp) ++{ ++ struct hlist_head *head; ++ unsigned int u; ++ size_t sz; ++ ++ sz = sizeof(*nhash->nh_head) * num_hash; ++ head = kmalloc(sz, gfp); ++ if (head) { ++ nhash->nh_num = num_hash; ++ nhash->nh_head = head; ++ for (u = 0; u < num_hash; u++) ++ INIT_HLIST_HEAD(head++); ++ return 0; /* success */ ++ } ++ ++ return -ENOMEM; ++} ++ ++static void nhash_count(struct hlist_head *head) ++{ ++#if 0 ++ unsigned long n; ++ struct hlist_node *pos; ++ ++ n = 0; ++ hlist_for_each(pos, head) ++ n++; ++ pr_info("%lu\n", n); ++#endif ++} ++ ++static void au_nhash_wh_do_free(struct hlist_head *head) ++{ ++ struct au_vdir_wh *pos; ++ struct hlist_node *node; ++ ++ hlist_for_each_entry_safe(pos, node, head, wh_hash) ++ kfree(pos); ++} ++ ++static void au_nhash_de_do_free(struct hlist_head *head) ++{ ++ struct au_vdir_dehstr *pos; ++ struct hlist_node *node; ++ ++ hlist_for_each_entry_safe(pos, node, head, hash) ++ au_cache_free_vdir_dehstr(pos); ++} ++ ++static void au_nhash_do_free(struct au_nhash *nhash, ++ void (*free)(struct hlist_head *head)) ++{ ++ unsigned int n; ++ struct hlist_head *head; ++ ++ n = nhash->nh_num; ++ if (!n) ++ return; ++ ++ head = nhash->nh_head; ++ while (n-- > 0) { ++ nhash_count(head); ++ free(head++); ++ } ++ kfree(nhash->nh_head); ++} ++ ++void au_nhash_wh_free(struct au_nhash *whlist) ++{ ++ au_nhash_do_free(whlist, au_nhash_wh_do_free); ++} ++ ++static void au_nhash_de_free(struct au_nhash *delist) ++{ ++ au_nhash_do_free(delist, au_nhash_de_do_free); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++int au_nhash_test_longer_wh(struct au_nhash *whlist, aufs_bindex_t btgt, ++ int limit) ++{ ++ int num; ++ unsigned int u, n; ++ struct hlist_head *head; ++ struct au_vdir_wh *pos; ++ ++ num = 0; ++ n = whlist->nh_num; ++ head = whlist->nh_head; ++ for (u = 0; u < n; u++, head++) ++ hlist_for_each_entry(pos, head, wh_hash) ++ if (pos->wh_bindex == btgt && ++num > limit) ++ return 1; ++ return 0; ++} ++ ++static struct hlist_head *au_name_hash(struct au_nhash *nhash, ++ unsigned char *name, ++ unsigned int len) ++{ ++ unsigned int v; ++ /* const unsigned int magic_bit = 12; */ ++ ++ AuDebugOn(!nhash->nh_num || !nhash->nh_head); ++ ++ v = 0; ++ if (len > 8) ++ len = 8; ++ while (len--) ++ v += *name++; ++ /* v = hash_long(v, magic_bit); */ ++ v %= nhash->nh_num; ++ return nhash->nh_head + v; ++} ++ ++static int au_nhash_test_name(struct au_vdir_destr *str, const char *name, ++ int nlen) ++{ ++ return str->len == nlen && !memcmp(str->name, name, nlen); ++} ++ ++/* returns found or not */ ++int au_nhash_test_known_wh(struct au_nhash *whlist, char *name, int nlen) ++{ ++ struct hlist_head *head; ++ struct au_vdir_wh *pos; ++ struct au_vdir_destr *str; ++ ++ head = au_name_hash(whlist, name, nlen); ++ hlist_for_each_entry(pos, head, wh_hash) { ++ str = &pos->wh_str; ++ AuDbg("%.*s\n", str->len, str->name); ++ if (au_nhash_test_name(str, name, nlen)) ++ return 1; ++ } ++ return 0; ++} ++ ++/* returns found(true) or not */ ++static int test_known(struct au_nhash *delist, char *name, int nlen) ++{ ++ struct hlist_head *head; ++ struct au_vdir_dehstr *pos; ++ struct au_vdir_destr *str; ++ ++ head = au_name_hash(delist, name, nlen); ++ hlist_for_each_entry(pos, head, hash) { ++ str = pos->str; ++ AuDbg("%.*s\n", str->len, str->name); ++ if (au_nhash_test_name(str, name, nlen)) ++ return 1; ++ } ++ return 0; ++} ++ ++static void au_shwh_init_wh(struct au_vdir_wh *wh, ino_t ino, ++ unsigned char d_type) ++{ ++#ifdef CONFIG_AUFS_SHWH ++ wh->wh_ino = ino; ++ wh->wh_type = d_type; ++#endif ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++int au_nhash_append_wh(struct au_nhash *whlist, char *name, int nlen, ino_t ino, ++ unsigned int d_type, aufs_bindex_t bindex, ++ unsigned char shwh) ++{ ++ int err; ++ struct au_vdir_destr *str; ++ struct au_vdir_wh *wh; ++ ++ AuDbg("%.*s\n", nlen, name); ++ AuDebugOn(!whlist->nh_num || !whlist->nh_head); ++ ++ err = -ENOMEM; ++ wh = kmalloc(sizeof(*wh) + nlen, GFP_NOFS); ++ if (unlikely(!wh)) ++ goto out; ++ ++ err = 0; ++ wh->wh_bindex = bindex; ++ if (shwh) ++ au_shwh_init_wh(wh, ino, d_type); ++ str = &wh->wh_str; ++ str->len = nlen; ++ memcpy(str->name, name, nlen); ++ hlist_add_head(&wh->wh_hash, au_name_hash(whlist, name, nlen)); ++ /* smp_mb(); */ ++ ++out: ++ return err; ++} ++ ++static int append_deblk(struct au_vdir *vdir) ++{ ++ int err; ++ unsigned long ul; ++ const unsigned int deblk_sz = vdir->vd_deblk_sz; ++ union au_vdir_deblk_p p, deblk_end; ++ unsigned char **o; ++ ++ err = -ENOMEM; ++ o = au_krealloc(vdir->vd_deblk, sizeof(*o) * (vdir->vd_nblk + 1), ++ GFP_NOFS, /*may_shrink*/0); ++ if (unlikely(!o)) ++ goto out; ++ ++ vdir->vd_deblk = o; ++ p.deblk = kmalloc(deblk_sz, GFP_NOFS); ++ if (p.deblk) { ++ ul = vdir->vd_nblk++; ++ vdir->vd_deblk[ul] = p.deblk; ++ vdir->vd_last.ul = ul; ++ vdir->vd_last.p.deblk = p.deblk; ++ deblk_end.deblk = p.deblk + deblk_sz; ++ err = set_deblk_end(&p, &deblk_end); ++ } ++ ++out: ++ return err; ++} ++ ++static int append_de(struct au_vdir *vdir, char *name, int nlen, ino_t ino, ++ unsigned int d_type, struct au_nhash *delist) ++{ ++ int err; ++ unsigned int sz; ++ const unsigned int deblk_sz = vdir->vd_deblk_sz; ++ union au_vdir_deblk_p p, *room, deblk_end; ++ struct au_vdir_dehstr *dehstr; ++ ++ p.deblk = last_deblk(vdir); ++ deblk_end.deblk = p.deblk + deblk_sz; ++ room = &vdir->vd_last.p; ++ AuDebugOn(room->deblk < p.deblk || deblk_end.deblk <= room->deblk ++ || !is_deblk_end(room, &deblk_end)); ++ ++ sz = calc_size(nlen); ++ if (unlikely(sz > deblk_end.deblk - room->deblk)) { ++ err = append_deblk(vdir); ++ if (unlikely(err)) ++ goto out; ++ ++ p.deblk = last_deblk(vdir); ++ deblk_end.deblk = p.deblk + deblk_sz; ++ /* smp_mb(); */ ++ AuDebugOn(room->deblk != p.deblk); ++ } ++ ++ err = -ENOMEM; ++ dehstr = au_cache_alloc_vdir_dehstr(); ++ if (unlikely(!dehstr)) ++ goto out; ++ ++ dehstr->str = &room->de->de_str; ++ hlist_add_head(&dehstr->hash, au_name_hash(delist, name, nlen)); ++ room->de->de_ino = ino; ++ room->de->de_type = d_type; ++ room->de->de_str.len = nlen; ++ memcpy(room->de->de_str.name, name, nlen); ++ ++ err = 0; ++ room->deblk += sz; ++ if (unlikely(set_deblk_end(room, &deblk_end))) ++ err = append_deblk(vdir); ++ /* smp_mb(); */ ++ ++out: ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++void au_vdir_free(struct au_vdir *vdir) ++{ ++ unsigned char **deblk; ++ ++ deblk = vdir->vd_deblk; ++ while (vdir->vd_nblk--) ++ kfree(*deblk++); ++ kfree(vdir->vd_deblk); ++ au_cache_free_vdir(vdir); ++} ++ ++static struct au_vdir *alloc_vdir(struct file *file) ++{ ++ struct au_vdir *vdir; ++ struct super_block *sb; ++ int err; ++ ++ sb = file->f_path.dentry->d_sb; ++ SiMustAnyLock(sb); ++ ++ err = -ENOMEM; ++ vdir = au_cache_alloc_vdir(); ++ if (unlikely(!vdir)) ++ goto out; ++ ++ vdir->vd_deblk = kzalloc(sizeof(*vdir->vd_deblk), GFP_NOFS); ++ if (unlikely(!vdir->vd_deblk)) ++ goto out_free; ++ ++ vdir->vd_deblk_sz = au_sbi(sb)->si_rdblk; ++ if (!vdir->vd_deblk_sz) { ++ /* estimate the appropriate size for deblk */ ++ vdir->vd_deblk_sz = au_dir_size(file, /*dentry*/NULL); ++ /* pr_info("vd_deblk_sz %u\n", vdir->vd_deblk_sz); */ ++ } ++ vdir->vd_nblk = 0; ++ vdir->vd_version = 0; ++ vdir->vd_jiffy = 0; ++ err = append_deblk(vdir); ++ if (!err) ++ return vdir; /* success */ ++ ++ kfree(vdir->vd_deblk); ++ ++out_free: ++ au_cache_free_vdir(vdir); ++out: ++ vdir = ERR_PTR(err); ++ return vdir; ++} ++ ++static int reinit_vdir(struct au_vdir *vdir) ++{ ++ int err; ++ union au_vdir_deblk_p p, deblk_end; ++ ++ while (vdir->vd_nblk > 1) { ++ kfree(vdir->vd_deblk[vdir->vd_nblk - 1]); ++ /* vdir->vd_deblk[vdir->vd_nblk - 1] = NULL; */ ++ vdir->vd_nblk--; ++ } ++ p.deblk = vdir->vd_deblk[0]; ++ deblk_end.deblk = p.deblk + vdir->vd_deblk_sz; ++ err = set_deblk_end(&p, &deblk_end); ++ /* keep vd_dblk_sz */ ++ vdir->vd_last.ul = 0; ++ vdir->vd_last.p.deblk = vdir->vd_deblk[0]; ++ vdir->vd_version = 0; ++ vdir->vd_jiffy = 0; ++ /* smp_mb(); */ ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++#define AuFillVdir_CALLED 1 ++#define AuFillVdir_WHABLE (1 << 1) ++#define AuFillVdir_SHWH (1 << 2) ++#define au_ftest_fillvdir(flags, name) ((flags) & AuFillVdir_##name) ++#define au_fset_fillvdir(flags, name) \ ++ do { (flags) |= AuFillVdir_##name; } while (0) ++#define au_fclr_fillvdir(flags, name) \ ++ do { (flags) &= ~AuFillVdir_##name; } while (0) ++ ++#ifndef CONFIG_AUFS_SHWH ++#undef AuFillVdir_SHWH ++#define AuFillVdir_SHWH 0 ++#endif ++ ++struct fillvdir_arg { ++ struct dir_context ctx; ++ struct file *file; ++ struct au_vdir *vdir; ++ struct au_nhash delist; ++ struct au_nhash whlist; ++ aufs_bindex_t bindex; ++ unsigned int flags; ++ int err; ++}; ++ ++static int fillvdir(struct dir_context *ctx, const char *__name, int nlen, ++ loff_t offset __maybe_unused, u64 h_ino, ++ unsigned int d_type) ++{ ++ struct fillvdir_arg *arg = container_of(ctx, struct fillvdir_arg, ctx); ++ char *name = (void *)__name; ++ struct super_block *sb; ++ ino_t ino; ++ const unsigned char shwh = !!au_ftest_fillvdir(arg->flags, SHWH); ++ ++ arg->err = 0; ++ sb = arg->file->f_path.dentry->d_sb; ++ au_fset_fillvdir(arg->flags, CALLED); ++ /* smp_mb(); */ ++ if (nlen <= AUFS_WH_PFX_LEN ++ || memcmp(name, AUFS_WH_PFX, AUFS_WH_PFX_LEN)) { ++ if (test_known(&arg->delist, name, nlen) ++ || au_nhash_test_known_wh(&arg->whlist, name, nlen)) ++ goto out; /* already exists or whiteouted */ ++ ++ arg->err = au_ino(sb, arg->bindex, h_ino, d_type, &ino); ++ if (!arg->err) { ++ if (unlikely(nlen > AUFS_MAX_NAMELEN)) ++ d_type = DT_UNKNOWN; ++ arg->err = append_de(arg->vdir, name, nlen, ino, ++ d_type, &arg->delist); ++ } ++ } else if (au_ftest_fillvdir(arg->flags, WHABLE)) { ++ name += AUFS_WH_PFX_LEN; ++ nlen -= AUFS_WH_PFX_LEN; ++ if (au_nhash_test_known_wh(&arg->whlist, name, nlen)) ++ goto out; /* already whiteouted */ ++ ++ if (shwh) ++ arg->err = au_wh_ino(sb, arg->bindex, h_ino, d_type, ++ &ino); ++ if (!arg->err) { ++ if (nlen <= AUFS_MAX_NAMELEN + AUFS_WH_PFX_LEN) ++ d_type = DT_UNKNOWN; ++ arg->err = au_nhash_append_wh ++ (&arg->whlist, name, nlen, ino, d_type, ++ arg->bindex, shwh); ++ } ++ } ++ ++out: ++ if (!arg->err) ++ arg->vdir->vd_jiffy = jiffies; ++ /* smp_mb(); */ ++ AuTraceErr(arg->err); ++ return arg->err; ++} ++ ++static int au_handle_shwh(struct super_block *sb, struct au_vdir *vdir, ++ struct au_nhash *whlist, struct au_nhash *delist) ++{ ++#ifdef CONFIG_AUFS_SHWH ++ int err; ++ unsigned int nh, u; ++ struct hlist_head *head; ++ struct au_vdir_wh *pos; ++ struct hlist_node *n; ++ char *p, *o; ++ struct au_vdir_destr *destr; ++ ++ AuDebugOn(!au_opt_test(au_mntflags(sb), SHWH)); ++ ++ err = -ENOMEM; ++ o = p = (void *)__get_free_page(GFP_NOFS); ++ if (unlikely(!p)) ++ goto out; ++ ++ err = 0; ++ nh = whlist->nh_num; ++ memcpy(p, AUFS_WH_PFX, AUFS_WH_PFX_LEN); ++ p += AUFS_WH_PFX_LEN; ++ for (u = 0; u < nh; u++) { ++ head = whlist->nh_head + u; ++ hlist_for_each_entry_safe(pos, n, head, wh_hash) { ++ destr = &pos->wh_str; ++ memcpy(p, destr->name, destr->len); ++ err = append_de(vdir, o, destr->len + AUFS_WH_PFX_LEN, ++ pos->wh_ino, pos->wh_type, delist); ++ if (unlikely(err)) ++ break; ++ } ++ } ++ ++ free_page((unsigned long)o); ++ ++out: ++ AuTraceErr(err); ++ return err; ++#else ++ return 0; ++#endif ++} ++ ++static int au_do_read_vdir(struct fillvdir_arg *arg) ++{ ++ int err; ++ unsigned int rdhash; ++ loff_t offset; ++ aufs_bindex_t bbot, bindex, btop; ++ unsigned char shwh; ++ struct file *hf, *file; ++ struct super_block *sb; ++ ++ file = arg->file; ++ sb = file->f_path.dentry->d_sb; ++ SiMustAnyLock(sb); ++ ++ rdhash = au_sbi(sb)->si_rdhash; ++ if (!rdhash) ++ rdhash = au_rdhash_est(au_dir_size(file, /*dentry*/NULL)); ++ err = au_nhash_alloc(&arg->delist, rdhash, GFP_NOFS); ++ if (unlikely(err)) ++ goto out; ++ err = au_nhash_alloc(&arg->whlist, rdhash, GFP_NOFS); ++ if (unlikely(err)) ++ goto out_delist; ++ ++ err = 0; ++ arg->flags = 0; ++ shwh = 0; ++ if (au_opt_test(au_mntflags(sb), SHWH)) { ++ shwh = 1; ++ au_fset_fillvdir(arg->flags, SHWH); ++ } ++ btop = au_fbtop(file); ++ bbot = au_fbbot_dir(file); ++ for (bindex = btop; !err && bindex <= bbot; bindex++) { ++ hf = au_hf_dir(file, bindex); ++ if (!hf) ++ continue; ++ ++ offset = vfsub_llseek(hf, 0, SEEK_SET); ++ err = offset; ++ if (unlikely(offset)) ++ break; ++ ++ arg->bindex = bindex; ++ au_fclr_fillvdir(arg->flags, WHABLE); ++ if (shwh ++ || (bindex != bbot ++ && au_br_whable(au_sbr_perm(sb, bindex)))) ++ au_fset_fillvdir(arg->flags, WHABLE); ++ do { ++ arg->err = 0; ++ au_fclr_fillvdir(arg->flags, CALLED); ++ /* smp_mb(); */ ++ err = vfsub_iterate_dir(hf, &arg->ctx); ++ if (err >= 0) ++ err = arg->err; ++ } while (!err && au_ftest_fillvdir(arg->flags, CALLED)); ++ ++ /* ++ * dir_relax() may be good for concurrency, but aufs should not ++ * use it since it will cause a lockdep problem. ++ */ ++ } ++ ++ if (!err && shwh) ++ err = au_handle_shwh(sb, arg->vdir, &arg->whlist, &arg->delist); ++ ++ au_nhash_wh_free(&arg->whlist); ++ ++out_delist: ++ au_nhash_de_free(&arg->delist); ++out: ++ return err; ++} ++ ++static int read_vdir(struct file *file, int may_read) ++{ ++ int err; ++ unsigned long expire; ++ unsigned char do_read; ++ struct fillvdir_arg arg = { ++ .ctx = { ++ .actor = fillvdir ++ } ++ }; ++ struct inode *inode; ++ struct au_vdir *vdir, *allocated; ++ ++ err = 0; ++ inode = file_inode(file); ++ IMustLock(inode); ++ IiMustWriteLock(inode); ++ SiMustAnyLock(inode->i_sb); ++ ++ allocated = NULL; ++ do_read = 0; ++ expire = au_sbi(inode->i_sb)->si_rdcache; ++ vdir = au_ivdir(inode); ++ if (!vdir) { ++ do_read = 1; ++ vdir = alloc_vdir(file); ++ err = PTR_ERR(vdir); ++ if (IS_ERR(vdir)) ++ goto out; ++ err = 0; ++ allocated = vdir; ++ } else if (may_read ++ && (inode->i_version != vdir->vd_version ++ || time_after(jiffies, vdir->vd_jiffy + expire))) { ++ do_read = 1; ++ err = reinit_vdir(vdir); ++ if (unlikely(err)) ++ goto out; ++ } ++ ++ if (!do_read) ++ return 0; /* success */ ++ ++ arg.file = file; ++ arg.vdir = vdir; ++ err = au_do_read_vdir(&arg); ++ if (!err) { ++ /* file->f_pos = 0; */ /* todo: ctx->pos? */ ++ vdir->vd_version = inode->i_version; ++ vdir->vd_last.ul = 0; ++ vdir->vd_last.p.deblk = vdir->vd_deblk[0]; ++ if (allocated) ++ au_set_ivdir(inode, allocated); ++ } else if (allocated) ++ au_vdir_free(allocated); ++ ++out: ++ return err; ++} ++ ++static int copy_vdir(struct au_vdir *tgt, struct au_vdir *src) ++{ ++ int err, rerr; ++ unsigned long ul, n; ++ const unsigned int deblk_sz = src->vd_deblk_sz; ++ ++ AuDebugOn(tgt->vd_nblk != 1); ++ ++ err = -ENOMEM; ++ if (tgt->vd_nblk < src->vd_nblk) { ++ unsigned char **p; ++ ++ p = au_krealloc(tgt->vd_deblk, sizeof(*p) * src->vd_nblk, ++ GFP_NOFS, /*may_shrink*/0); ++ if (unlikely(!p)) ++ goto out; ++ tgt->vd_deblk = p; ++ } ++ ++ if (tgt->vd_deblk_sz != deblk_sz) { ++ unsigned char *p; ++ ++ tgt->vd_deblk_sz = deblk_sz; ++ p = au_krealloc(tgt->vd_deblk[0], deblk_sz, GFP_NOFS, ++ /*may_shrink*/1); ++ if (unlikely(!p)) ++ goto out; ++ tgt->vd_deblk[0] = p; ++ } ++ memcpy(tgt->vd_deblk[0], src->vd_deblk[0], deblk_sz); ++ tgt->vd_version = src->vd_version; ++ tgt->vd_jiffy = src->vd_jiffy; ++ ++ n = src->vd_nblk; ++ for (ul = 1; ul < n; ul++) { ++ tgt->vd_deblk[ul] = kmemdup(src->vd_deblk[ul], deblk_sz, ++ GFP_NOFS); ++ if (unlikely(!tgt->vd_deblk[ul])) ++ goto out; ++ tgt->vd_nblk++; ++ } ++ tgt->vd_nblk = n; ++ tgt->vd_last.ul = tgt->vd_last.ul; ++ tgt->vd_last.p.deblk = tgt->vd_deblk[tgt->vd_last.ul]; ++ tgt->vd_last.p.deblk += src->vd_last.p.deblk ++ - src->vd_deblk[src->vd_last.ul]; ++ /* smp_mb(); */ ++ return 0; /* success */ ++ ++out: ++ rerr = reinit_vdir(tgt); ++ BUG_ON(rerr); ++ return err; ++} ++ ++int au_vdir_init(struct file *file) ++{ ++ int err; ++ struct inode *inode; ++ struct au_vdir *vdir_cache, *allocated; ++ ++ /* test file->f_pos here instead of ctx->pos */ ++ err = read_vdir(file, !file->f_pos); ++ if (unlikely(err)) ++ goto out; ++ ++ allocated = NULL; ++ vdir_cache = au_fvdir_cache(file); ++ if (!vdir_cache) { ++ vdir_cache = alloc_vdir(file); ++ err = PTR_ERR(vdir_cache); ++ if (IS_ERR(vdir_cache)) ++ goto out; ++ allocated = vdir_cache; ++ } else if (!file->f_pos && vdir_cache->vd_version != file->f_version) { ++ /* test file->f_pos here instead of ctx->pos */ ++ err = reinit_vdir(vdir_cache); ++ if (unlikely(err)) ++ goto out; ++ } else ++ return 0; /* success */ ++ ++ inode = file_inode(file); ++ err = copy_vdir(vdir_cache, au_ivdir(inode)); ++ if (!err) { ++ file->f_version = inode->i_version; ++ if (allocated) ++ au_set_fvdir_cache(file, allocated); ++ } else if (allocated) ++ au_vdir_free(allocated); ++ ++out: ++ return err; ++} ++ ++static loff_t calc_offset(struct au_vdir *vdir) ++{ ++ loff_t offset; ++ union au_vdir_deblk_p p; ++ ++ p.deblk = vdir->vd_deblk[vdir->vd_last.ul]; ++ offset = vdir->vd_last.p.deblk - p.deblk; ++ offset += vdir->vd_deblk_sz * vdir->vd_last.ul; ++ return offset; ++} ++ ++/* returns true or false */ ++static int seek_vdir(struct file *file, struct dir_context *ctx) ++{ ++ int valid; ++ unsigned int deblk_sz; ++ unsigned long ul, n; ++ loff_t offset; ++ union au_vdir_deblk_p p, deblk_end; ++ struct au_vdir *vdir_cache; ++ ++ valid = 1; ++ vdir_cache = au_fvdir_cache(file); ++ offset = calc_offset(vdir_cache); ++ AuDbg("offset %lld\n", offset); ++ if (ctx->pos == offset) ++ goto out; ++ ++ vdir_cache->vd_last.ul = 0; ++ vdir_cache->vd_last.p.deblk = vdir_cache->vd_deblk[0]; ++ if (!ctx->pos) ++ goto out; ++ ++ valid = 0; ++ deblk_sz = vdir_cache->vd_deblk_sz; ++ ul = div64_u64(ctx->pos, deblk_sz); ++ AuDbg("ul %lu\n", ul); ++ if (ul >= vdir_cache->vd_nblk) ++ goto out; ++ ++ n = vdir_cache->vd_nblk; ++ for (; ul < n; ul++) { ++ p.deblk = vdir_cache->vd_deblk[ul]; ++ deblk_end.deblk = p.deblk + deblk_sz; ++ offset = ul; ++ offset *= deblk_sz; ++ while (!is_deblk_end(&p, &deblk_end) && offset < ctx->pos) { ++ unsigned int l; ++ ++ l = calc_size(p.de->de_str.len); ++ offset += l; ++ p.deblk += l; ++ } ++ if (!is_deblk_end(&p, &deblk_end)) { ++ valid = 1; ++ vdir_cache->vd_last.ul = ul; ++ vdir_cache->vd_last.p = p; ++ break; ++ } ++ } ++ ++out: ++ /* smp_mb(); */ ++ AuTraceErr(!valid); ++ return valid; ++} ++ ++int au_vdir_fill_de(struct file *file, struct dir_context *ctx) ++{ ++ unsigned int l, deblk_sz; ++ union au_vdir_deblk_p deblk_end; ++ struct au_vdir *vdir_cache; ++ struct au_vdir_de *de; ++ ++ vdir_cache = au_fvdir_cache(file); ++ if (!seek_vdir(file, ctx)) ++ return 0; ++ ++ deblk_sz = vdir_cache->vd_deblk_sz; ++ while (1) { ++ deblk_end.deblk = vdir_cache->vd_deblk[vdir_cache->vd_last.ul]; ++ deblk_end.deblk += deblk_sz; ++ while (!is_deblk_end(&vdir_cache->vd_last.p, &deblk_end)) { ++ de = vdir_cache->vd_last.p.de; ++ AuDbg("%.*s, off%lld, i%lu, dt%d\n", ++ de->de_str.len, de->de_str.name, ctx->pos, ++ (unsigned long)de->de_ino, de->de_type); ++ if (unlikely(!dir_emit(ctx, de->de_str.name, ++ de->de_str.len, de->de_ino, ++ de->de_type))) { ++ /* todo: ignore the error caused by udba? */ ++ /* return err; */ ++ return 0; ++ } ++ ++ l = calc_size(de->de_str.len); ++ vdir_cache->vd_last.p.deblk += l; ++ ctx->pos += l; ++ } ++ if (vdir_cache->vd_last.ul < vdir_cache->vd_nblk - 1) { ++ vdir_cache->vd_last.ul++; ++ vdir_cache->vd_last.p.deblk ++ = vdir_cache->vd_deblk[vdir_cache->vd_last.ul]; ++ ctx->pos = deblk_sz * vdir_cache->vd_last.ul; ++ continue; ++ } ++ break; ++ } ++ ++ /* smp_mb(); */ ++ return 0; ++} +diff -Naur null/fs/aufs/vfsub.c linux-4.15/fs/aufs/vfsub.c +--- /dev/null ++++ linux-4.15/fs/aufs/vfsub.c 2018-02-25 02:38:09.205738221 +0100 +@@ -0,0 +1,894 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * sub-routines for VFS ++ */ ++ ++#include ++#include ++#include ++#include ++#include ++#include "aufs.h" ++ ++#ifdef CONFIG_AUFS_BR_FUSE ++int vfsub_test_mntns(struct vfsmount *mnt, struct super_block *h_sb) ++{ ++ if (!au_test_fuse(h_sb) || !au_userns) ++ return 0; ++ ++ return is_current_mnt_ns(mnt) ? 0 : -EACCES; ++} ++#endif ++ ++int vfsub_sync_filesystem(struct super_block *h_sb, int wait) ++{ ++ int err; ++ ++ lockdep_off(); ++ down_read(&h_sb->s_umount); ++ err = __sync_filesystem(h_sb, wait); ++ up_read(&h_sb->s_umount); ++ lockdep_on(); ++ ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++int vfsub_update_h_iattr(struct path *h_path, int *did) ++{ ++ int err; ++ struct kstat st; ++ struct super_block *h_sb; ++ ++ /* for remote fs, leave work for its getattr or d_revalidate */ ++ /* for bad i_attr fs, handle them in aufs_getattr() */ ++ /* still some fs may acquire i_mutex. we need to skip them */ ++ err = 0; ++ if (!did) ++ did = &err; ++ h_sb = h_path->dentry->d_sb; ++ *did = (!au_test_fs_remote(h_sb) && au_test_fs_refresh_iattr(h_sb)); ++ if (*did) ++ err = vfsub_getattr(h_path, &st); ++ ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++struct file *vfsub_dentry_open(struct path *path, int flags) ++{ ++ struct file *file; ++ ++ file = dentry_open(path, flags /* | __FMODE_NONOTIFY */, ++ current_cred()); ++ if (!IS_ERR_OR_NULL(file) ++ && (file->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) ++ i_readcount_inc(d_inode(path->dentry)); ++ ++ return file; ++} ++ ++struct file *vfsub_filp_open(const char *path, int oflags, int mode) ++{ ++ struct file *file; ++ ++ lockdep_off(); ++ file = filp_open(path, ++ oflags /* | __FMODE_NONOTIFY */, ++ mode); ++ lockdep_on(); ++ if (IS_ERR(file)) ++ goto out; ++ vfsub_update_h_iattr(&file->f_path, /*did*/NULL); /*ignore*/ ++ ++out: ++ return file; ++} ++ ++/* ++ * Ideally this function should call VFS:do_last() in order to keep all its ++ * checkings. But it is very hard for aufs to regenerate several VFS internal ++ * structure such as nameidata. This is a second (or third) best approach. ++ * cf. linux/fs/namei.c:do_last(), lookup_open() and atomic_open(). ++ */ ++int vfsub_atomic_open(struct inode *dir, struct dentry *dentry, ++ struct vfsub_aopen_args *args, struct au_branch *br) ++{ ++ int err; ++ struct file *file = args->file; ++ /* copied from linux/fs/namei.c:atomic_open() */ ++ struct dentry *const DENTRY_NOT_SET = (void *)-1UL; ++ ++ IMustLock(dir); ++ AuDebugOn(!dir->i_op->atomic_open); ++ ++ err = au_br_test_oflag(args->open_flag, br); ++ if (unlikely(err)) ++ goto out; ++ ++ args->file->f_path.dentry = DENTRY_NOT_SET; ++ args->file->f_path.mnt = au_br_mnt(br); ++ err = dir->i_op->atomic_open(dir, dentry, file, args->open_flag, ++ args->create_mode, args->opened); ++ if (err >= 0) { ++ /* some filesystems don't set FILE_CREATED while succeeded? */ ++ if (*args->opened & FILE_CREATED) ++ fsnotify_create(dir, dentry); ++ } else ++ goto out; ++ ++ ++ if (!err) { ++ /* todo: call VFS:may_open() here */ ++ err = open_check_o_direct(file); ++ /* todo: ima_file_check() too? */ ++ if (!err && (args->open_flag & __FMODE_EXEC)) ++ err = deny_write_access(file); ++ if (unlikely(err)) ++ /* note that the file is created and still opened */ ++ goto out; ++ } ++ ++ au_br_get(br); ++ fsnotify_open(file); ++ ++out: ++ return err; ++} ++ ++int vfsub_kern_path(const char *name, unsigned int flags, struct path *path) ++{ ++ int err; ++ ++ err = kern_path(name, flags, path); ++ if (!err && d_is_positive(path->dentry)) ++ vfsub_update_h_iattr(path, /*did*/NULL); /*ignore*/ ++ return err; ++} ++ ++struct dentry *vfsub_lookup_one_len_unlocked(const char *name, ++ struct dentry *parent, int len) ++{ ++ struct path path = { ++ .mnt = NULL ++ }; ++ ++ path.dentry = lookup_one_len_unlocked(name, parent, len); ++ if (IS_ERR(path.dentry)) ++ goto out; ++ if (d_is_positive(path.dentry)) ++ vfsub_update_h_iattr(&path, /*did*/NULL); /*ignore*/ ++ ++out: ++ AuTraceErrPtr(path.dentry); ++ return path.dentry; ++} ++ ++struct dentry *vfsub_lookup_one_len(const char *name, struct dentry *parent, ++ int len) ++{ ++ struct path path = { ++ .mnt = NULL ++ }; ++ ++ /* VFS checks it too, but by WARN_ON_ONCE() */ ++ IMustLock(d_inode(parent)); ++ ++ path.dentry = lookup_one_len(name, parent, len); ++ if (IS_ERR(path.dentry)) ++ goto out; ++ if (d_is_positive(path.dentry)) ++ vfsub_update_h_iattr(&path, /*did*/NULL); /*ignore*/ ++ ++out: ++ AuTraceErrPtr(path.dentry); ++ return path.dentry; ++} ++ ++void vfsub_call_lkup_one(void *args) ++{ ++ struct vfsub_lkup_one_args *a = args; ++ *a->errp = vfsub_lkup_one(a->name, a->parent); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++struct dentry *vfsub_lock_rename(struct dentry *d1, struct au_hinode *hdir1, ++ struct dentry *d2, struct au_hinode *hdir2) ++{ ++ struct dentry *d; ++ ++ lockdep_off(); ++ d = lock_rename(d1, d2); ++ lockdep_on(); ++ au_hn_suspend(hdir1); ++ if (hdir1 != hdir2) ++ au_hn_suspend(hdir2); ++ ++ return d; ++} ++ ++void vfsub_unlock_rename(struct dentry *d1, struct au_hinode *hdir1, ++ struct dentry *d2, struct au_hinode *hdir2) ++{ ++ au_hn_resume(hdir1); ++ if (hdir1 != hdir2) ++ au_hn_resume(hdir2); ++ lockdep_off(); ++ unlock_rename(d1, d2); ++ lockdep_on(); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++int vfsub_create(struct inode *dir, struct path *path, int mode, bool want_excl) ++{ ++ int err; ++ struct dentry *d; ++ ++ IMustLock(dir); ++ ++ d = path->dentry; ++ path->dentry = d->d_parent; ++ err = security_path_mknod(path, d, mode, 0); ++ path->dentry = d; ++ if (unlikely(err)) ++ goto out; ++ ++ lockdep_off(); ++ err = vfs_create(dir, path->dentry, mode, want_excl); ++ lockdep_on(); ++ if (!err) { ++ struct path tmp = *path; ++ int did; ++ ++ vfsub_update_h_iattr(&tmp, &did); ++ if (did) { ++ tmp.dentry = path->dentry->d_parent; ++ vfsub_update_h_iattr(&tmp, /*did*/NULL); ++ } ++ /*ignore*/ ++ } ++ ++out: ++ return err; ++} ++ ++int vfsub_symlink(struct inode *dir, struct path *path, const char *symname) ++{ ++ int err; ++ struct dentry *d; ++ ++ IMustLock(dir); ++ ++ d = path->dentry; ++ path->dentry = d->d_parent; ++ err = security_path_symlink(path, d, symname); ++ path->dentry = d; ++ if (unlikely(err)) ++ goto out; ++ ++ lockdep_off(); ++ err = vfs_symlink(dir, path->dentry, symname); ++ lockdep_on(); ++ if (!err) { ++ struct path tmp = *path; ++ int did; ++ ++ vfsub_update_h_iattr(&tmp, &did); ++ if (did) { ++ tmp.dentry = path->dentry->d_parent; ++ vfsub_update_h_iattr(&tmp, /*did*/NULL); ++ } ++ /*ignore*/ ++ } ++ ++out: ++ return err; ++} ++ ++int vfsub_mknod(struct inode *dir, struct path *path, int mode, dev_t dev) ++{ ++ int err; ++ struct dentry *d; ++ ++ IMustLock(dir); ++ ++ d = path->dentry; ++ path->dentry = d->d_parent; ++ err = security_path_mknod(path, d, mode, new_encode_dev(dev)); ++ path->dentry = d; ++ if (unlikely(err)) ++ goto out; ++ ++ lockdep_off(); ++ err = vfs_mknod(dir, path->dentry, mode, dev); ++ lockdep_on(); ++ if (!err) { ++ struct path tmp = *path; ++ int did; ++ ++ vfsub_update_h_iattr(&tmp, &did); ++ if (did) { ++ tmp.dentry = path->dentry->d_parent; ++ vfsub_update_h_iattr(&tmp, /*did*/NULL); ++ } ++ /*ignore*/ ++ } ++ ++out: ++ return err; ++} ++ ++static int au_test_nlink(struct inode *inode) ++{ ++ const unsigned int link_max = UINT_MAX >> 1; /* rough margin */ ++ ++ if (!au_test_fs_no_limit_nlink(inode->i_sb) ++ || inode->i_nlink < link_max) ++ return 0; ++ return -EMLINK; ++} ++ ++int vfsub_link(struct dentry *src_dentry, struct inode *dir, struct path *path, ++ struct inode **delegated_inode) ++{ ++ int err; ++ struct dentry *d; ++ ++ IMustLock(dir); ++ ++ err = au_test_nlink(d_inode(src_dentry)); ++ if (unlikely(err)) ++ return err; ++ ++ /* we don't call may_linkat() */ ++ d = path->dentry; ++ path->dentry = d->d_parent; ++ err = security_path_link(src_dentry, path, d); ++ path->dentry = d; ++ if (unlikely(err)) ++ goto out; ++ ++ lockdep_off(); ++ err = vfs_link(src_dentry, dir, path->dentry, delegated_inode); ++ lockdep_on(); ++ if (!err) { ++ struct path tmp = *path; ++ int did; ++ ++ /* fuse has different memory inode for the same inumber */ ++ vfsub_update_h_iattr(&tmp, &did); ++ if (did) { ++ tmp.dentry = path->dentry->d_parent; ++ vfsub_update_h_iattr(&tmp, /*did*/NULL); ++ tmp.dentry = src_dentry; ++ vfsub_update_h_iattr(&tmp, /*did*/NULL); ++ } ++ /*ignore*/ ++ } ++ ++out: ++ return err; ++} ++ ++int vfsub_rename(struct inode *src_dir, struct dentry *src_dentry, ++ struct inode *dir, struct path *path, ++ struct inode **delegated_inode, unsigned int flags) ++{ ++ int err; ++ struct path tmp = { ++ .mnt = path->mnt ++ }; ++ struct dentry *d; ++ ++ IMustLock(dir); ++ IMustLock(src_dir); ++ ++ d = path->dentry; ++ path->dentry = d->d_parent; ++ tmp.dentry = src_dentry->d_parent; ++ err = security_path_rename(&tmp, src_dentry, path, d, /*flags*/0); ++ path->dentry = d; ++ if (unlikely(err)) ++ goto out; ++ ++ lockdep_off(); ++ err = vfs_rename(src_dir, src_dentry, dir, path->dentry, ++ delegated_inode, flags); ++ lockdep_on(); ++ if (!err) { ++ int did; ++ ++ tmp.dentry = d->d_parent; ++ vfsub_update_h_iattr(&tmp, &did); ++ if (did) { ++ tmp.dentry = src_dentry; ++ vfsub_update_h_iattr(&tmp, /*did*/NULL); ++ tmp.dentry = src_dentry->d_parent; ++ vfsub_update_h_iattr(&tmp, /*did*/NULL); ++ } ++ /*ignore*/ ++ } ++ ++out: ++ return err; ++} ++ ++int vfsub_mkdir(struct inode *dir, struct path *path, int mode) ++{ ++ int err; ++ struct dentry *d; ++ ++ IMustLock(dir); ++ ++ d = path->dentry; ++ path->dentry = d->d_parent; ++ err = security_path_mkdir(path, d, mode); ++ path->dentry = d; ++ if (unlikely(err)) ++ goto out; ++ ++ lockdep_off(); ++ err = vfs_mkdir(dir, path->dentry, mode); ++ lockdep_on(); ++ if (!err) { ++ struct path tmp = *path; ++ int did; ++ ++ vfsub_update_h_iattr(&tmp, &did); ++ if (did) { ++ tmp.dentry = path->dentry->d_parent; ++ vfsub_update_h_iattr(&tmp, /*did*/NULL); ++ } ++ /*ignore*/ ++ } ++ ++out: ++ return err; ++} ++ ++int vfsub_rmdir(struct inode *dir, struct path *path) ++{ ++ int err; ++ struct dentry *d; ++ ++ IMustLock(dir); ++ ++ d = path->dentry; ++ path->dentry = d->d_parent; ++ err = security_path_rmdir(path, d); ++ path->dentry = d; ++ if (unlikely(err)) ++ goto out; ++ ++ lockdep_off(); ++ err = vfs_rmdir(dir, path->dentry); ++ lockdep_on(); ++ if (!err) { ++ struct path tmp = { ++ .dentry = path->dentry->d_parent, ++ .mnt = path->mnt ++ }; ++ ++ vfsub_update_h_iattr(&tmp, /*did*/NULL); /*ignore*/ ++ } ++ ++out: ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* todo: support mmap_sem? */ ++ssize_t vfsub_read_u(struct file *file, char __user *ubuf, size_t count, ++ loff_t *ppos) ++{ ++ ssize_t err; ++ ++ lockdep_off(); ++ err = vfs_read(file, ubuf, count, ppos); ++ lockdep_on(); ++ if (err >= 0) ++ vfsub_update_h_iattr(&file->f_path, /*did*/NULL); /*ignore*/ ++ return err; ++} ++ ++/* todo: kernel_read()? */ ++ssize_t vfsub_read_k(struct file *file, void *kbuf, size_t count, ++ loff_t *ppos) ++{ ++ ssize_t err; ++ mm_segment_t oldfs; ++ union { ++ void *k; ++ char __user *u; ++ } buf; ++ ++ buf.k = kbuf; ++ oldfs = get_fs(); ++ set_fs(KERNEL_DS); ++ err = vfsub_read_u(file, buf.u, count, ppos); ++ set_fs(oldfs); ++ return err; ++} ++ ++ssize_t vfsub_write_u(struct file *file, const char __user *ubuf, size_t count, ++ loff_t *ppos) ++{ ++ ssize_t err; ++ ++ lockdep_off(); ++ err = vfs_write(file, ubuf, count, ppos); ++ lockdep_on(); ++ if (err >= 0) ++ vfsub_update_h_iattr(&file->f_path, /*did*/NULL); /*ignore*/ ++ return err; ++} ++ ++ssize_t vfsub_write_k(struct file *file, void *kbuf, size_t count, loff_t *ppos) ++{ ++ ssize_t err; ++ mm_segment_t oldfs; ++ union { ++ void *k; ++ const char __user *u; ++ } buf; ++ ++ buf.k = kbuf; ++ oldfs = get_fs(); ++ set_fs(KERNEL_DS); ++ err = vfsub_write_u(file, buf.u, count, ppos); ++ set_fs(oldfs); ++ return err; ++} ++ ++int vfsub_flush(struct file *file, fl_owner_t id) ++{ ++ int err; ++ ++ err = 0; ++ if (file->f_op->flush) { ++ if (!au_test_nfs(file->f_path.dentry->d_sb)) ++ err = file->f_op->flush(file, id); ++ else { ++ lockdep_off(); ++ err = file->f_op->flush(file, id); ++ lockdep_on(); ++ } ++ if (!err) ++ vfsub_update_h_iattr(&file->f_path, /*did*/NULL); ++ /*ignore*/ ++ } ++ return err; ++} ++ ++int vfsub_iterate_dir(struct file *file, struct dir_context *ctx) ++{ ++ int err; ++ ++ AuDbg("%pD, ctx{%pf, %llu}\n", file, ctx->actor, ctx->pos); ++ ++ lockdep_off(); ++ err = iterate_dir(file, ctx); ++ lockdep_on(); ++ if (err >= 0) ++ vfsub_update_h_iattr(&file->f_path, /*did*/NULL); /*ignore*/ ++ ++ return err; ++} ++ ++long vfsub_splice_to(struct file *in, loff_t *ppos, ++ struct pipe_inode_info *pipe, size_t len, ++ unsigned int flags) ++{ ++ long err; ++ ++ lockdep_off(); ++ err = do_splice_to(in, ppos, pipe, len, flags); ++ lockdep_on(); ++ file_accessed(in); ++ if (err >= 0) ++ vfsub_update_h_iattr(&in->f_path, /*did*/NULL); /*ignore*/ ++ return err; ++} ++ ++long vfsub_splice_from(struct pipe_inode_info *pipe, struct file *out, ++ loff_t *ppos, size_t len, unsigned int flags) ++{ ++ long err; ++ ++ lockdep_off(); ++ err = do_splice_from(pipe, out, ppos, len, flags); ++ lockdep_on(); ++ if (err >= 0) ++ vfsub_update_h_iattr(&out->f_path, /*did*/NULL); /*ignore*/ ++ return err; ++} ++ ++int vfsub_fsync(struct file *file, struct path *path, int datasync) ++{ ++ int err; ++ ++ /* file can be NULL */ ++ lockdep_off(); ++ err = vfs_fsync(file, datasync); ++ lockdep_on(); ++ if (!err) { ++ if (!path) { ++ AuDebugOn(!file); ++ path = &file->f_path; ++ } ++ vfsub_update_h_iattr(path, /*did*/NULL); /*ignore*/ ++ } ++ return err; ++} ++ ++/* cf. open.c:do_sys_truncate() and do_sys_ftruncate() */ ++int vfsub_trunc(struct path *h_path, loff_t length, unsigned int attr, ++ struct file *h_file) ++{ ++ int err; ++ struct inode *h_inode; ++ struct super_block *h_sb; ++ ++ if (!h_file) { ++ err = vfsub_truncate(h_path, length); ++ goto out; ++ } ++ ++ h_inode = d_inode(h_path->dentry); ++ h_sb = h_inode->i_sb; ++ lockdep_off(); ++ sb_start_write(h_sb); ++ lockdep_on(); ++ err = locks_verify_truncate(h_inode, h_file, length); ++ if (!err) ++ err = security_path_truncate(h_path); ++ if (!err) { ++ lockdep_off(); ++ err = do_truncate(h_path->dentry, length, attr, h_file); ++ lockdep_on(); ++ } ++ lockdep_off(); ++ sb_end_write(h_sb); ++ lockdep_on(); ++ ++out: ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++struct au_vfsub_mkdir_args { ++ int *errp; ++ struct inode *dir; ++ struct path *path; ++ int mode; ++}; ++ ++static void au_call_vfsub_mkdir(void *args) ++{ ++ struct au_vfsub_mkdir_args *a = args; ++ *a->errp = vfsub_mkdir(a->dir, a->path, a->mode); ++} ++ ++int vfsub_sio_mkdir(struct inode *dir, struct path *path, int mode) ++{ ++ int err, do_sio, wkq_err; ++ ++ do_sio = au_test_h_perm_sio(dir, MAY_EXEC | MAY_WRITE); ++ if (!do_sio) { ++ lockdep_off(); ++ err = vfsub_mkdir(dir, path, mode); ++ lockdep_on(); ++ } else { ++ struct au_vfsub_mkdir_args args = { ++ .errp = &err, ++ .dir = dir, ++ .path = path, ++ .mode = mode ++ }; ++ wkq_err = au_wkq_wait(au_call_vfsub_mkdir, &args); ++ if (unlikely(wkq_err)) ++ err = wkq_err; ++ } ++ ++ return err; ++} ++ ++struct au_vfsub_rmdir_args { ++ int *errp; ++ struct inode *dir; ++ struct path *path; ++}; ++ ++static void au_call_vfsub_rmdir(void *args) ++{ ++ struct au_vfsub_rmdir_args *a = args; ++ *a->errp = vfsub_rmdir(a->dir, a->path); ++} ++ ++int vfsub_sio_rmdir(struct inode *dir, struct path *path) ++{ ++ int err, do_sio, wkq_err; ++ ++ do_sio = au_test_h_perm_sio(dir, MAY_EXEC | MAY_WRITE); ++ if (!do_sio) { ++ lockdep_off(); ++ err = vfsub_rmdir(dir, path); ++ lockdep_on(); ++ } else { ++ struct au_vfsub_rmdir_args args = { ++ .errp = &err, ++ .dir = dir, ++ .path = path ++ }; ++ wkq_err = au_wkq_wait(au_call_vfsub_rmdir, &args); ++ if (unlikely(wkq_err)) ++ err = wkq_err; ++ } ++ ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++struct notify_change_args { ++ int *errp; ++ struct path *path; ++ struct iattr *ia; ++ struct inode **delegated_inode; ++}; ++ ++static void call_notify_change(void *args) ++{ ++ struct notify_change_args *a = args; ++ struct inode *h_inode; ++ ++ h_inode = d_inode(a->path->dentry); ++ IMustLock(h_inode); ++ ++ *a->errp = -EPERM; ++ if (!IS_IMMUTABLE(h_inode) && !IS_APPEND(h_inode)) { ++ lockdep_off(); ++ *a->errp = notify_change(a->path->dentry, a->ia, ++ a->delegated_inode); ++ lockdep_on(); ++ if (!*a->errp) ++ vfsub_update_h_iattr(a->path, /*did*/NULL); /*ignore*/ ++ } ++ AuTraceErr(*a->errp); ++} ++ ++int vfsub_notify_change(struct path *path, struct iattr *ia, ++ struct inode **delegated_inode) ++{ ++ int err; ++ struct notify_change_args args = { ++ .errp = &err, ++ .path = path, ++ .ia = ia, ++ .delegated_inode = delegated_inode ++ }; ++ ++ call_notify_change(&args); ++ ++ return err; ++} ++ ++int vfsub_sio_notify_change(struct path *path, struct iattr *ia, ++ struct inode **delegated_inode) ++{ ++ int err, wkq_err; ++ struct notify_change_args args = { ++ .errp = &err, ++ .path = path, ++ .ia = ia, ++ .delegated_inode = delegated_inode ++ }; ++ ++ wkq_err = au_wkq_wait(call_notify_change, &args); ++ if (unlikely(wkq_err)) ++ err = wkq_err; ++ ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++struct unlink_args { ++ int *errp; ++ struct inode *dir; ++ struct path *path; ++ struct inode **delegated_inode; ++}; ++ ++static void call_unlink(void *args) ++{ ++ struct unlink_args *a = args; ++ struct dentry *d = a->path->dentry; ++ struct inode *h_inode; ++ const int stop_sillyrename = (au_test_nfs(d->d_sb) ++ && au_dcount(d) == 1); ++ ++ IMustLock(a->dir); ++ ++ a->path->dentry = d->d_parent; ++ *a->errp = security_path_unlink(a->path, d); ++ a->path->dentry = d; ++ if (unlikely(*a->errp)) ++ return; ++ ++ if (!stop_sillyrename) ++ dget(d); ++ h_inode = NULL; ++ if (d_is_positive(d)) { ++ h_inode = d_inode(d); ++ ihold(h_inode); ++ } ++ ++ lockdep_off(); ++ *a->errp = vfs_unlink(a->dir, d, a->delegated_inode); ++ lockdep_on(); ++ if (!*a->errp) { ++ struct path tmp = { ++ .dentry = d->d_parent, ++ .mnt = a->path->mnt ++ }; ++ vfsub_update_h_iattr(&tmp, /*did*/NULL); /*ignore*/ ++ } ++ ++ if (!stop_sillyrename) ++ dput(d); ++ if (h_inode) ++ iput(h_inode); ++ ++ AuTraceErr(*a->errp); ++} ++ ++/* ++ * @dir: must be locked. ++ * @dentry: target dentry. ++ */ ++int vfsub_unlink(struct inode *dir, struct path *path, ++ struct inode **delegated_inode, int force) ++{ ++ int err; ++ struct unlink_args args = { ++ .errp = &err, ++ .dir = dir, ++ .path = path, ++ .delegated_inode = delegated_inode ++ }; ++ ++ if (!force) ++ call_unlink(&args); ++ else { ++ int wkq_err; ++ ++ wkq_err = au_wkq_wait(call_unlink, &args); ++ if (unlikely(wkq_err)) ++ err = wkq_err; ++ } ++ ++ return err; ++} +diff -Naur null/fs/aufs/vfsub.h linux-4.15/fs/aufs/vfsub.h +--- /dev/null ++++ linux-4.15/fs/aufs/vfsub.h 2018-02-25 02:38:09.205738221 +0100 +@@ -0,0 +1,360 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * sub-routines for VFS ++ */ ++ ++#ifndef __AUFS_VFSUB_H__ ++#define __AUFS_VFSUB_H__ ++ ++#ifdef __KERNEL__ ++ ++#include ++#include ++#include ++#include ++#include "debug.h" ++ ++/* copied from linux/fs/internal.h */ ++/* todo: BAD approach!! */ ++extern void __mnt_drop_write(struct vfsmount *); ++extern int open_check_o_direct(struct file *f); ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* lock subclass for lower inode */ ++/* default MAX_LOCKDEP_SUBCLASSES(8) is not enough */ ++/* reduce? gave up. */ ++enum { ++ AuLsc_I_Begin = I_MUTEX_PARENT2, /* 5 */ ++ AuLsc_I_PARENT, /* lower inode, parent first */ ++ AuLsc_I_PARENT2, /* copyup dirs */ ++ AuLsc_I_PARENT3, /* copyup wh */ ++ AuLsc_I_CHILD, ++ AuLsc_I_CHILD2, ++ AuLsc_I_End ++}; ++ ++/* to debug easier, do not make them inlined functions */ ++#define MtxMustLock(mtx) AuDebugOn(!mutex_is_locked(mtx)) ++#define IMustLock(i) AuDebugOn(!inode_is_locked(i)) ++ ++/* why VFS doesn't define it? */ ++static inline ++void vfsub_inode_lock_shared_nested(struct inode *inode, unsigned int sc) ++{ ++ down_read_nested(&inode->i_rwsem, sc); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static inline void vfsub_drop_nlink(struct inode *inode) ++{ ++ AuDebugOn(!inode->i_nlink); ++ drop_nlink(inode); ++} ++ ++static inline void vfsub_dead_dir(struct inode *inode) ++{ ++ AuDebugOn(!S_ISDIR(inode->i_mode)); ++ inode->i_flags |= S_DEAD; ++ clear_nlink(inode); ++} ++ ++static inline int vfsub_native_ro(struct inode *inode) ++{ ++ return sb_rdonly(inode->i_sb) ++ || IS_RDONLY(inode) ++ /* || IS_APPEND(inode) */ ++ || IS_IMMUTABLE(inode); ++} ++ ++#ifdef CONFIG_AUFS_BR_FUSE ++int vfsub_test_mntns(struct vfsmount *mnt, struct super_block *h_sb); ++#else ++AuStubInt0(vfsub_test_mntns, struct vfsmount *mnt, struct super_block *h_sb); ++#endif ++ ++int vfsub_sync_filesystem(struct super_block *h_sb, int wait); ++ ++/* ---------------------------------------------------------------------- */ ++ ++int vfsub_update_h_iattr(struct path *h_path, int *did); ++struct file *vfsub_dentry_open(struct path *path, int flags); ++struct file *vfsub_filp_open(const char *path, int oflags, int mode); ++struct vfsub_aopen_args { ++ struct file *file; ++ unsigned int open_flag; ++ umode_t create_mode; ++ int *opened; ++}; ++struct au_branch; ++int vfsub_atomic_open(struct inode *dir, struct dentry *dentry, ++ struct vfsub_aopen_args *args, struct au_branch *br); ++int vfsub_kern_path(const char *name, unsigned int flags, struct path *path); ++ ++struct dentry *vfsub_lookup_one_len_unlocked(const char *name, ++ struct dentry *parent, int len); ++struct dentry *vfsub_lookup_one_len(const char *name, struct dentry *parent, ++ int len); ++ ++struct vfsub_lkup_one_args { ++ struct dentry **errp; ++ struct qstr *name; ++ struct dentry *parent; ++}; ++ ++static inline struct dentry *vfsub_lkup_one(struct qstr *name, ++ struct dentry *parent) ++{ ++ return vfsub_lookup_one_len(name->name, parent, name->len); ++} ++ ++void vfsub_call_lkup_one(void *args); ++ ++/* ---------------------------------------------------------------------- */ ++ ++static inline int vfsub_mnt_want_write(struct vfsmount *mnt) ++{ ++ int err; ++ ++ lockdep_off(); ++ err = mnt_want_write(mnt); ++ lockdep_on(); ++ return err; ++} ++ ++static inline void vfsub_mnt_drop_write(struct vfsmount *mnt) ++{ ++ lockdep_off(); ++ mnt_drop_write(mnt); ++ lockdep_on(); ++} ++ ++#if 0 /* reserved */ ++static inline void vfsub_mnt_drop_write_file(struct file *file) ++{ ++ lockdep_off(); ++ mnt_drop_write_file(file); ++ lockdep_on(); ++} ++#endif ++ ++/* ---------------------------------------------------------------------- */ ++ ++struct au_hinode; ++struct dentry *vfsub_lock_rename(struct dentry *d1, struct au_hinode *hdir1, ++ struct dentry *d2, struct au_hinode *hdir2); ++void vfsub_unlock_rename(struct dentry *d1, struct au_hinode *hdir1, ++ struct dentry *d2, struct au_hinode *hdir2); ++ ++int vfsub_create(struct inode *dir, struct path *path, int mode, ++ bool want_excl); ++int vfsub_symlink(struct inode *dir, struct path *path, ++ const char *symname); ++int vfsub_mknod(struct inode *dir, struct path *path, int mode, dev_t dev); ++int vfsub_link(struct dentry *src_dentry, struct inode *dir, ++ struct path *path, struct inode **delegated_inode); ++int vfsub_rename(struct inode *src_hdir, struct dentry *src_dentry, ++ struct inode *hdir, struct path *path, ++ struct inode **delegated_inode, unsigned int flags); ++int vfsub_mkdir(struct inode *dir, struct path *path, int mode); ++int vfsub_rmdir(struct inode *dir, struct path *path); ++ ++/* ---------------------------------------------------------------------- */ ++ ++ssize_t vfsub_read_u(struct file *file, char __user *ubuf, size_t count, ++ loff_t *ppos); ++ssize_t vfsub_read_k(struct file *file, void *kbuf, size_t count, ++ loff_t *ppos); ++ssize_t vfsub_write_u(struct file *file, const char __user *ubuf, size_t count, ++ loff_t *ppos); ++ssize_t vfsub_write_k(struct file *file, void *kbuf, size_t count, ++ loff_t *ppos); ++int vfsub_flush(struct file *file, fl_owner_t id); ++int vfsub_iterate_dir(struct file *file, struct dir_context *ctx); ++ ++static inline loff_t vfsub_f_size_read(struct file *file) ++{ ++ return i_size_read(file_inode(file)); ++} ++ ++static inline unsigned int vfsub_file_flags(struct file *file) ++{ ++ unsigned int flags; ++ ++ spin_lock(&file->f_lock); ++ flags = file->f_flags; ++ spin_unlock(&file->f_lock); ++ ++ return flags; ++} ++ ++static inline int vfsub_file_execed(struct file *file) ++{ ++ /* todo: direct access f_flags */ ++ return !!(vfsub_file_flags(file) & __FMODE_EXEC); ++} ++ ++#if 0 /* reserved */ ++static inline void vfsub_file_accessed(struct file *h_file) ++{ ++ file_accessed(h_file); ++ vfsub_update_h_iattr(&h_file->f_path, /*did*/NULL); /*ignore*/ ++} ++#endif ++ ++#if 0 /* reserved */ ++static inline void vfsub_touch_atime(struct vfsmount *h_mnt, ++ struct dentry *h_dentry) ++{ ++ struct path h_path = { ++ .dentry = h_dentry, ++ .mnt = h_mnt ++ }; ++ touch_atime(&h_path); ++ vfsub_update_h_iattr(&h_path, /*did*/NULL); /*ignore*/ ++} ++#endif ++ ++static inline int vfsub_update_time(struct inode *h_inode, struct timespec *ts, ++ int flags) ++{ ++ return update_time(h_inode, ts, flags); ++ /* no vfsub_update_h_iattr() since we don't have struct path */ ++} ++ ++#ifdef CONFIG_FS_POSIX_ACL ++static inline int vfsub_acl_chmod(struct inode *h_inode, umode_t h_mode) ++{ ++ int err; ++ ++ err = posix_acl_chmod(h_inode, h_mode); ++ if (err == -EOPNOTSUPP) ++ err = 0; ++ return err; ++} ++#else ++AuStubInt0(vfsub_acl_chmod, struct inode *h_inode, umode_t h_mode); ++#endif ++ ++long vfsub_splice_to(struct file *in, loff_t *ppos, ++ struct pipe_inode_info *pipe, size_t len, ++ unsigned int flags); ++long vfsub_splice_from(struct pipe_inode_info *pipe, struct file *out, ++ loff_t *ppos, size_t len, unsigned int flags); ++ ++static inline long vfsub_truncate(struct path *path, loff_t length) ++{ ++ long err; ++ ++ lockdep_off(); ++ err = vfs_truncate(path, length); ++ lockdep_on(); ++ return err; ++} ++ ++int vfsub_trunc(struct path *h_path, loff_t length, unsigned int attr, ++ struct file *h_file); ++int vfsub_fsync(struct file *file, struct path *path, int datasync); ++ ++/* ++ * re-use branch fs's ioctl(FICLONE) while aufs itself doesn't support such ++ * ioctl. ++ */ ++static inline int vfsub_clone_file_range(struct file *src, struct file *dst, ++ u64 len) ++{ ++ int err; ++ ++ lockdep_off(); ++ err = vfs_clone_file_range(src, 0, dst, 0, len); ++ lockdep_on(); ++ ++ return err; ++} ++ ++/* copy_file_range(2) is a systemcall */ ++static inline ssize_t vfsub_copy_file_range(struct file *src, loff_t src_pos, ++ struct file *dst, loff_t dst_pos, ++ size_t len, unsigned int flags) ++{ ++ ssize_t ssz; ++ ++ lockdep_off(); ++ ssz = vfs_copy_file_range(src, src_pos, dst, dst_pos, len, flags); ++ lockdep_on(); ++ ++ return ssz; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static inline loff_t vfsub_llseek(struct file *file, loff_t offset, int origin) ++{ ++ loff_t err; ++ ++ lockdep_off(); ++ err = vfs_llseek(file, offset, origin); ++ lockdep_on(); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++int vfsub_sio_mkdir(struct inode *dir, struct path *path, int mode); ++int vfsub_sio_rmdir(struct inode *dir, struct path *path); ++int vfsub_sio_notify_change(struct path *path, struct iattr *ia, ++ struct inode **delegated_inode); ++int vfsub_notify_change(struct path *path, struct iattr *ia, ++ struct inode **delegated_inode); ++int vfsub_unlink(struct inode *dir, struct path *path, ++ struct inode **delegated_inode, int force); ++ ++static inline int vfsub_getattr(const struct path *path, struct kstat *st) ++{ ++ return vfs_getattr(path, st, STATX_BASIC_STATS, AT_STATX_SYNC_AS_STAT); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static inline int vfsub_setxattr(struct dentry *dentry, const char *name, ++ const void *value, size_t size, int flags) ++{ ++ int err; ++ ++ lockdep_off(); ++ err = vfs_setxattr(dentry, name, value, size, flags); ++ lockdep_on(); ++ ++ return err; ++} ++ ++static inline int vfsub_removexattr(struct dentry *dentry, const char *name) ++{ ++ int err; ++ ++ lockdep_off(); ++ err = vfs_removexattr(dentry, name); ++ lockdep_on(); ++ ++ return err; ++} ++ ++#endif /* __KERNEL__ */ ++#endif /* __AUFS_VFSUB_H__ */ +diff -Naur null/fs/aufs/wbr_policy.c linux-4.15/fs/aufs/wbr_policy.c +--- /dev/null ++++ linux-4.15/fs/aufs/wbr_policy.c 2018-02-25 02:38:09.206738328 +0100 +@@ -0,0 +1,830 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * policies for selecting one among multiple writable branches ++ */ ++ ++#include ++#include "aufs.h" ++ ++/* subset of cpup_attr() */ ++static noinline_for_stack ++int au_cpdown_attr(struct path *h_path, struct dentry *h_src) ++{ ++ int err, sbits; ++ struct iattr ia; ++ struct inode *h_isrc; ++ ++ h_isrc = d_inode(h_src); ++ ia.ia_valid = ATTR_FORCE | ATTR_MODE | ATTR_UID | ATTR_GID; ++ ia.ia_mode = h_isrc->i_mode; ++ ia.ia_uid = h_isrc->i_uid; ++ ia.ia_gid = h_isrc->i_gid; ++ sbits = !!(ia.ia_mode & (S_ISUID | S_ISGID)); ++ au_cpup_attr_flags(d_inode(h_path->dentry), h_isrc->i_flags); ++ /* no delegation since it is just created */ ++ err = vfsub_sio_notify_change(h_path, &ia, /*delegated*/NULL); ++ ++ /* is this nfs only? */ ++ if (!err && sbits && au_test_nfs(h_path->dentry->d_sb)) { ++ ia.ia_valid = ATTR_FORCE | ATTR_MODE; ++ ia.ia_mode = h_isrc->i_mode; ++ err = vfsub_sio_notify_change(h_path, &ia, /*delegated*/NULL); ++ } ++ ++ return err; ++} ++ ++#define AuCpdown_PARENT_OPQ 1 ++#define AuCpdown_WHED (1 << 1) ++#define AuCpdown_MADE_DIR (1 << 2) ++#define AuCpdown_DIROPQ (1 << 3) ++#define au_ftest_cpdown(flags, name) ((flags) & AuCpdown_##name) ++#define au_fset_cpdown(flags, name) \ ++ do { (flags) |= AuCpdown_##name; } while (0) ++#define au_fclr_cpdown(flags, name) \ ++ do { (flags) &= ~AuCpdown_##name; } while (0) ++ ++static int au_cpdown_dir_opq(struct dentry *dentry, aufs_bindex_t bdst, ++ unsigned int *flags) ++{ ++ int err; ++ struct dentry *opq_dentry; ++ ++ opq_dentry = au_diropq_create(dentry, bdst); ++ err = PTR_ERR(opq_dentry); ++ if (IS_ERR(opq_dentry)) ++ goto out; ++ dput(opq_dentry); ++ au_fset_cpdown(*flags, DIROPQ); ++ ++out: ++ return err; ++} ++ ++static int au_cpdown_dir_wh(struct dentry *dentry, struct dentry *h_parent, ++ struct inode *dir, aufs_bindex_t bdst) ++{ ++ int err; ++ struct path h_path; ++ struct au_branch *br; ++ ++ br = au_sbr(dentry->d_sb, bdst); ++ h_path.dentry = au_wh_lkup(h_parent, &dentry->d_name, br); ++ err = PTR_ERR(h_path.dentry); ++ if (IS_ERR(h_path.dentry)) ++ goto out; ++ ++ err = 0; ++ if (d_is_positive(h_path.dentry)) { ++ h_path.mnt = au_br_mnt(br); ++ err = au_wh_unlink_dentry(au_h_iptr(dir, bdst), &h_path, ++ dentry); ++ } ++ dput(h_path.dentry); ++ ++out: ++ return err; ++} ++ ++static int au_cpdown_dir(struct dentry *dentry, aufs_bindex_t bdst, ++ struct au_pin *pin, ++ struct dentry *h_parent, void *arg) ++{ ++ int err, rerr; ++ aufs_bindex_t bopq, btop; ++ struct path h_path; ++ struct dentry *parent; ++ struct inode *h_dir, *h_inode, *inode, *dir; ++ unsigned int *flags = arg; ++ ++ btop = au_dbtop(dentry); ++ /* dentry is di-locked */ ++ parent = dget_parent(dentry); ++ dir = d_inode(parent); ++ h_dir = d_inode(h_parent); ++ AuDebugOn(h_dir != au_h_iptr(dir, bdst)); ++ IMustLock(h_dir); ++ ++ err = au_lkup_neg(dentry, bdst, /*wh*/0); ++ if (unlikely(err < 0)) ++ goto out; ++ h_path.dentry = au_h_dptr(dentry, bdst); ++ h_path.mnt = au_sbr_mnt(dentry->d_sb, bdst); ++ err = vfsub_sio_mkdir(au_h_iptr(dir, bdst), &h_path, ++ S_IRWXU | S_IRUGO | S_IXUGO); ++ if (unlikely(err)) ++ goto out_put; ++ au_fset_cpdown(*flags, MADE_DIR); ++ ++ bopq = au_dbdiropq(dentry); ++ au_fclr_cpdown(*flags, WHED); ++ au_fclr_cpdown(*flags, DIROPQ); ++ if (au_dbwh(dentry) == bdst) ++ au_fset_cpdown(*flags, WHED); ++ if (!au_ftest_cpdown(*flags, PARENT_OPQ) && bopq <= bdst) ++ au_fset_cpdown(*flags, PARENT_OPQ); ++ h_inode = d_inode(h_path.dentry); ++ inode_lock_nested(h_inode, AuLsc_I_CHILD); ++ if (au_ftest_cpdown(*flags, WHED)) { ++ err = au_cpdown_dir_opq(dentry, bdst, flags); ++ if (unlikely(err)) { ++ inode_unlock(h_inode); ++ goto out_dir; ++ } ++ } ++ ++ err = au_cpdown_attr(&h_path, au_h_dptr(dentry, btop)); ++ inode_unlock(h_inode); ++ if (unlikely(err)) ++ goto out_opq; ++ ++ if (au_ftest_cpdown(*flags, WHED)) { ++ err = au_cpdown_dir_wh(dentry, h_parent, dir, bdst); ++ if (unlikely(err)) ++ goto out_opq; ++ } ++ ++ inode = d_inode(dentry); ++ if (au_ibbot(inode) < bdst) ++ au_set_ibbot(inode, bdst); ++ au_set_h_iptr(inode, bdst, au_igrab(h_inode), ++ au_hi_flags(inode, /*isdir*/1)); ++ au_fhsm_wrote(dentry->d_sb, bdst, /*force*/0); ++ goto out; /* success */ ++ ++ /* revert */ ++out_opq: ++ if (au_ftest_cpdown(*flags, DIROPQ)) { ++ inode_lock_nested(h_inode, AuLsc_I_CHILD); ++ rerr = au_diropq_remove(dentry, bdst); ++ inode_unlock(h_inode); ++ if (unlikely(rerr)) { ++ AuIOErr("failed removing diropq for %pd b%d (%d)\n", ++ dentry, bdst, rerr); ++ err = -EIO; ++ goto out; ++ } ++ } ++out_dir: ++ if (au_ftest_cpdown(*flags, MADE_DIR)) { ++ rerr = vfsub_sio_rmdir(au_h_iptr(dir, bdst), &h_path); ++ if (unlikely(rerr)) { ++ AuIOErr("failed removing %pd b%d (%d)\n", ++ dentry, bdst, rerr); ++ err = -EIO; ++ } ++ } ++out_put: ++ au_set_h_dptr(dentry, bdst, NULL); ++ if (au_dbbot(dentry) == bdst) ++ au_update_dbbot(dentry); ++out: ++ dput(parent); ++ return err; ++} ++ ++int au_cpdown_dirs(struct dentry *dentry, aufs_bindex_t bdst) ++{ ++ int err; ++ unsigned int flags; ++ ++ flags = 0; ++ err = au_cp_dirs(dentry, bdst, au_cpdown_dir, &flags); ++ ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* policies for create */ ++ ++int au_wbr_nonopq(struct dentry *dentry, aufs_bindex_t bindex) ++{ ++ int err, i, j, ndentry; ++ aufs_bindex_t bopq; ++ struct au_dcsub_pages dpages; ++ struct au_dpage *dpage; ++ struct dentry **dentries, *parent, *d; ++ ++ err = au_dpages_init(&dpages, GFP_NOFS); ++ if (unlikely(err)) ++ goto out; ++ parent = dget_parent(dentry); ++ err = au_dcsub_pages_rev_aufs(&dpages, parent, /*do_include*/0); ++ if (unlikely(err)) ++ goto out_free; ++ ++ err = bindex; ++ for (i = 0; i < dpages.ndpage; i++) { ++ dpage = dpages.dpages + i; ++ dentries = dpage->dentries; ++ ndentry = dpage->ndentry; ++ for (j = 0; j < ndentry; j++) { ++ d = dentries[j]; ++ di_read_lock_parent2(d, !AuLock_IR); ++ bopq = au_dbdiropq(d); ++ di_read_unlock(d, !AuLock_IR); ++ if (bopq >= 0 && bopq < err) ++ err = bopq; ++ } ++ } ++ ++out_free: ++ dput(parent); ++ au_dpages_free(&dpages); ++out: ++ return err; ++} ++ ++static int au_wbr_bu(struct super_block *sb, aufs_bindex_t bindex) ++{ ++ for (; bindex >= 0; bindex--) ++ if (!au_br_rdonly(au_sbr(sb, bindex))) ++ return bindex; ++ return -EROFS; ++} ++ ++/* top down parent */ ++static int au_wbr_create_tdp(struct dentry *dentry, ++ unsigned int flags __maybe_unused) ++{ ++ int err; ++ aufs_bindex_t btop, bindex; ++ struct super_block *sb; ++ struct dentry *parent, *h_parent; ++ ++ sb = dentry->d_sb; ++ btop = au_dbtop(dentry); ++ err = btop; ++ if (!au_br_rdonly(au_sbr(sb, btop))) ++ goto out; ++ ++ err = -EROFS; ++ parent = dget_parent(dentry); ++ for (bindex = au_dbtop(parent); bindex < btop; bindex++) { ++ h_parent = au_h_dptr(parent, bindex); ++ if (!h_parent || d_is_negative(h_parent)) ++ continue; ++ ++ if (!au_br_rdonly(au_sbr(sb, bindex))) { ++ err = bindex; ++ break; ++ } ++ } ++ dput(parent); ++ ++ /* bottom up here */ ++ if (unlikely(err < 0)) { ++ err = au_wbr_bu(sb, btop - 1); ++ if (err >= 0) ++ err = au_wbr_nonopq(dentry, err); ++ } ++ ++out: ++ AuDbg("b%d\n", err); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* an exception for the policy other than tdp */ ++static int au_wbr_create_exp(struct dentry *dentry) ++{ ++ int err; ++ aufs_bindex_t bwh, bdiropq; ++ struct dentry *parent; ++ ++ err = -1; ++ bwh = au_dbwh(dentry); ++ parent = dget_parent(dentry); ++ bdiropq = au_dbdiropq(parent); ++ if (bwh >= 0) { ++ if (bdiropq >= 0) ++ err = min(bdiropq, bwh); ++ else ++ err = bwh; ++ AuDbg("%d\n", err); ++ } else if (bdiropq >= 0) { ++ err = bdiropq; ++ AuDbg("%d\n", err); ++ } ++ dput(parent); ++ ++ if (err >= 0) ++ err = au_wbr_nonopq(dentry, err); ++ ++ if (err >= 0 && au_br_rdonly(au_sbr(dentry->d_sb, err))) ++ err = -1; ++ ++ AuDbg("%d\n", err); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* round robin */ ++static int au_wbr_create_init_rr(struct super_block *sb) ++{ ++ int err; ++ ++ err = au_wbr_bu(sb, au_sbbot(sb)); ++ atomic_set(&au_sbi(sb)->si_wbr_rr_next, -err); /* less important */ ++ /* smp_mb(); */ ++ ++ AuDbg("b%d\n", err); ++ return err; ++} ++ ++static int au_wbr_create_rr(struct dentry *dentry, unsigned int flags) ++{ ++ int err, nbr; ++ unsigned int u; ++ aufs_bindex_t bindex, bbot; ++ struct super_block *sb; ++ atomic_t *next; ++ ++ err = au_wbr_create_exp(dentry); ++ if (err >= 0) ++ goto out; ++ ++ sb = dentry->d_sb; ++ next = &au_sbi(sb)->si_wbr_rr_next; ++ bbot = au_sbbot(sb); ++ nbr = bbot + 1; ++ for (bindex = 0; bindex <= bbot; bindex++) { ++ if (!au_ftest_wbr(flags, DIR)) { ++ err = atomic_dec_return(next) + 1; ++ /* modulo for 0 is meaningless */ ++ if (unlikely(!err)) ++ err = atomic_dec_return(next) + 1; ++ } else ++ err = atomic_read(next); ++ AuDbg("%d\n", err); ++ u = err; ++ err = u % nbr; ++ AuDbg("%d\n", err); ++ if (!au_br_rdonly(au_sbr(sb, err))) ++ break; ++ err = -EROFS; ++ } ++ ++ if (err >= 0) ++ err = au_wbr_nonopq(dentry, err); ++ ++out: ++ AuDbg("%d\n", err); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* most free space */ ++static void au_mfs(struct dentry *dentry, struct dentry *parent) ++{ ++ struct super_block *sb; ++ struct au_branch *br; ++ struct au_wbr_mfs *mfs; ++ struct dentry *h_parent; ++ aufs_bindex_t bindex, bbot; ++ int err; ++ unsigned long long b, bavail; ++ struct path h_path; ++ /* reduce the stack usage */ ++ struct kstatfs *st; ++ ++ st = kmalloc(sizeof(*st), GFP_NOFS); ++ if (unlikely(!st)) { ++ AuWarn1("failed updating mfs(%d), ignored\n", -ENOMEM); ++ return; ++ } ++ ++ bavail = 0; ++ sb = dentry->d_sb; ++ mfs = &au_sbi(sb)->si_wbr_mfs; ++ MtxMustLock(&mfs->mfs_lock); ++ mfs->mfs_bindex = -EROFS; ++ mfs->mfsrr_bytes = 0; ++ if (!parent) { ++ bindex = 0; ++ bbot = au_sbbot(sb); ++ } else { ++ bindex = au_dbtop(parent); ++ bbot = au_dbtaildir(parent); ++ } ++ ++ for (; bindex <= bbot; bindex++) { ++ if (parent) { ++ h_parent = au_h_dptr(parent, bindex); ++ if (!h_parent || d_is_negative(h_parent)) ++ continue; ++ } ++ br = au_sbr(sb, bindex); ++ if (au_br_rdonly(br)) ++ continue; ++ ++ /* sb->s_root for NFS is unreliable */ ++ h_path.mnt = au_br_mnt(br); ++ h_path.dentry = h_path.mnt->mnt_root; ++ err = vfs_statfs(&h_path, st); ++ if (unlikely(err)) { ++ AuWarn1("failed statfs, b%d, %d\n", bindex, err); ++ continue; ++ } ++ ++ /* when the available size is equal, select the lower one */ ++ BUILD_BUG_ON(sizeof(b) < sizeof(st->f_bavail) ++ || sizeof(b) < sizeof(st->f_bsize)); ++ b = st->f_bavail * st->f_bsize; ++ br->br_wbr->wbr_bytes = b; ++ if (b >= bavail) { ++ bavail = b; ++ mfs->mfs_bindex = bindex; ++ mfs->mfs_jiffy = jiffies; ++ } ++ } ++ ++ mfs->mfsrr_bytes = bavail; ++ AuDbg("b%d\n", mfs->mfs_bindex); ++ kfree(st); ++} ++ ++static int au_wbr_create_mfs(struct dentry *dentry, unsigned int flags) ++{ ++ int err; ++ struct dentry *parent; ++ struct super_block *sb; ++ struct au_wbr_mfs *mfs; ++ ++ err = au_wbr_create_exp(dentry); ++ if (err >= 0) ++ goto out; ++ ++ sb = dentry->d_sb; ++ parent = NULL; ++ if (au_ftest_wbr(flags, PARENT)) ++ parent = dget_parent(dentry); ++ mfs = &au_sbi(sb)->si_wbr_mfs; ++ mutex_lock(&mfs->mfs_lock); ++ if (time_after(jiffies, mfs->mfs_jiffy + mfs->mfs_expire) ++ || mfs->mfs_bindex < 0 ++ || au_br_rdonly(au_sbr(sb, mfs->mfs_bindex))) ++ au_mfs(dentry, parent); ++ mutex_unlock(&mfs->mfs_lock); ++ err = mfs->mfs_bindex; ++ dput(parent); ++ ++ if (err >= 0) ++ err = au_wbr_nonopq(dentry, err); ++ ++out: ++ AuDbg("b%d\n", err); ++ return err; ++} ++ ++static int au_wbr_create_init_mfs(struct super_block *sb) ++{ ++ struct au_wbr_mfs *mfs; ++ ++ mfs = &au_sbi(sb)->si_wbr_mfs; ++ mutex_init(&mfs->mfs_lock); ++ mfs->mfs_jiffy = 0; ++ mfs->mfs_bindex = -EROFS; ++ ++ return 0; ++} ++ ++static int au_wbr_create_fin_mfs(struct super_block *sb __maybe_unused) ++{ ++ mutex_destroy(&au_sbi(sb)->si_wbr_mfs.mfs_lock); ++ return 0; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* top down regardless parent, and then mfs */ ++static int au_wbr_create_tdmfs(struct dentry *dentry, ++ unsigned int flags __maybe_unused) ++{ ++ int err; ++ aufs_bindex_t bwh, btail, bindex, bfound, bmfs; ++ unsigned long long watermark; ++ struct super_block *sb; ++ struct au_wbr_mfs *mfs; ++ struct au_branch *br; ++ struct dentry *parent; ++ ++ sb = dentry->d_sb; ++ mfs = &au_sbi(sb)->si_wbr_mfs; ++ mutex_lock(&mfs->mfs_lock); ++ if (time_after(jiffies, mfs->mfs_jiffy + mfs->mfs_expire) ++ || mfs->mfs_bindex < 0) ++ au_mfs(dentry, /*parent*/NULL); ++ watermark = mfs->mfsrr_watermark; ++ bmfs = mfs->mfs_bindex; ++ mutex_unlock(&mfs->mfs_lock); ++ ++ /* another style of au_wbr_create_exp() */ ++ bwh = au_dbwh(dentry); ++ parent = dget_parent(dentry); ++ btail = au_dbtaildir(parent); ++ if (bwh >= 0 && bwh < btail) ++ btail = bwh; ++ ++ err = au_wbr_nonopq(dentry, btail); ++ if (unlikely(err < 0)) ++ goto out; ++ btail = err; ++ bfound = -1; ++ for (bindex = 0; bindex <= btail; bindex++) { ++ br = au_sbr(sb, bindex); ++ if (au_br_rdonly(br)) ++ continue; ++ if (br->br_wbr->wbr_bytes > watermark) { ++ bfound = bindex; ++ break; ++ } ++ } ++ err = bfound; ++ if (err < 0) ++ err = bmfs; ++ ++out: ++ dput(parent); ++ AuDbg("b%d\n", err); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* most free space and then round robin */ ++static int au_wbr_create_mfsrr(struct dentry *dentry, unsigned int flags) ++{ ++ int err; ++ struct au_wbr_mfs *mfs; ++ ++ err = au_wbr_create_mfs(dentry, flags); ++ if (err >= 0) { ++ mfs = &au_sbi(dentry->d_sb)->si_wbr_mfs; ++ mutex_lock(&mfs->mfs_lock); ++ if (mfs->mfsrr_bytes < mfs->mfsrr_watermark) ++ err = au_wbr_create_rr(dentry, flags); ++ mutex_unlock(&mfs->mfs_lock); ++ } ++ ++ AuDbg("b%d\n", err); ++ return err; ++} ++ ++static int au_wbr_create_init_mfsrr(struct super_block *sb) ++{ ++ int err; ++ ++ au_wbr_create_init_mfs(sb); /* ignore */ ++ err = au_wbr_create_init_rr(sb); ++ ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* top down parent and most free space */ ++static int au_wbr_create_pmfs(struct dentry *dentry, unsigned int flags) ++{ ++ int err, e2; ++ unsigned long long b; ++ aufs_bindex_t bindex, btop, bbot; ++ struct super_block *sb; ++ struct dentry *parent, *h_parent; ++ struct au_branch *br; ++ ++ err = au_wbr_create_tdp(dentry, flags); ++ if (unlikely(err < 0)) ++ goto out; ++ parent = dget_parent(dentry); ++ btop = au_dbtop(parent); ++ bbot = au_dbtaildir(parent); ++ if (btop == bbot) ++ goto out_parent; /* success */ ++ ++ e2 = au_wbr_create_mfs(dentry, flags); ++ if (e2 < 0) ++ goto out_parent; /* success */ ++ ++ /* when the available size is equal, select upper one */ ++ sb = dentry->d_sb; ++ br = au_sbr(sb, err); ++ b = br->br_wbr->wbr_bytes; ++ AuDbg("b%d, %llu\n", err, b); ++ ++ for (bindex = btop; bindex <= bbot; bindex++) { ++ h_parent = au_h_dptr(parent, bindex); ++ if (!h_parent || d_is_negative(h_parent)) ++ continue; ++ ++ br = au_sbr(sb, bindex); ++ if (!au_br_rdonly(br) && br->br_wbr->wbr_bytes > b) { ++ b = br->br_wbr->wbr_bytes; ++ err = bindex; ++ AuDbg("b%d, %llu\n", err, b); ++ } ++ } ++ ++ if (err >= 0) ++ err = au_wbr_nonopq(dentry, err); ++ ++out_parent: ++ dput(parent); ++out: ++ AuDbg("b%d\n", err); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* ++ * - top down parent ++ * - most free space with parent ++ * - most free space round-robin regardless parent ++ */ ++static int au_wbr_create_pmfsrr(struct dentry *dentry, unsigned int flags) ++{ ++ int err; ++ unsigned long long watermark; ++ struct super_block *sb; ++ struct au_branch *br; ++ struct au_wbr_mfs *mfs; ++ ++ err = au_wbr_create_pmfs(dentry, flags | AuWbr_PARENT); ++ if (unlikely(err < 0)) ++ goto out; ++ ++ sb = dentry->d_sb; ++ br = au_sbr(sb, err); ++ mfs = &au_sbi(sb)->si_wbr_mfs; ++ mutex_lock(&mfs->mfs_lock); ++ watermark = mfs->mfsrr_watermark; ++ mutex_unlock(&mfs->mfs_lock); ++ if (br->br_wbr->wbr_bytes < watermark) ++ /* regardless the parent dir */ ++ err = au_wbr_create_mfsrr(dentry, flags); ++ ++out: ++ AuDbg("b%d\n", err); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* policies for copyup */ ++ ++/* top down parent */ ++static int au_wbr_copyup_tdp(struct dentry *dentry) ++{ ++ return au_wbr_create_tdp(dentry, /*flags, anything is ok*/0); ++} ++ ++/* bottom up parent */ ++static int au_wbr_copyup_bup(struct dentry *dentry) ++{ ++ int err; ++ aufs_bindex_t bindex, btop; ++ struct dentry *parent, *h_parent; ++ struct super_block *sb; ++ ++ err = -EROFS; ++ sb = dentry->d_sb; ++ parent = dget_parent(dentry); ++ btop = au_dbtop(parent); ++ for (bindex = au_dbtop(dentry); bindex >= btop; bindex--) { ++ h_parent = au_h_dptr(parent, bindex); ++ if (!h_parent || d_is_negative(h_parent)) ++ continue; ++ ++ if (!au_br_rdonly(au_sbr(sb, bindex))) { ++ err = bindex; ++ break; ++ } ++ } ++ dput(parent); ++ ++ /* bottom up here */ ++ if (unlikely(err < 0)) ++ err = au_wbr_bu(sb, btop - 1); ++ ++ AuDbg("b%d\n", err); ++ return err; ++} ++ ++/* bottom up */ ++int au_wbr_do_copyup_bu(struct dentry *dentry, aufs_bindex_t btop) ++{ ++ int err; ++ ++ err = au_wbr_bu(dentry->d_sb, btop); ++ AuDbg("b%d\n", err); ++ if (err > btop) ++ err = au_wbr_nonopq(dentry, err); ++ ++ AuDbg("b%d\n", err); ++ return err; ++} ++ ++static int au_wbr_copyup_bu(struct dentry *dentry) ++{ ++ int err; ++ aufs_bindex_t btop; ++ ++ btop = au_dbtop(dentry); ++ err = au_wbr_do_copyup_bu(dentry, btop); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++struct au_wbr_copyup_operations au_wbr_copyup_ops[] = { ++ [AuWbrCopyup_TDP] = { ++ .copyup = au_wbr_copyup_tdp ++ }, ++ [AuWbrCopyup_BUP] = { ++ .copyup = au_wbr_copyup_bup ++ }, ++ [AuWbrCopyup_BU] = { ++ .copyup = au_wbr_copyup_bu ++ } ++}; ++ ++struct au_wbr_create_operations au_wbr_create_ops[] = { ++ [AuWbrCreate_TDP] = { ++ .create = au_wbr_create_tdp ++ }, ++ [AuWbrCreate_RR] = { ++ .create = au_wbr_create_rr, ++ .init = au_wbr_create_init_rr ++ }, ++ [AuWbrCreate_MFS] = { ++ .create = au_wbr_create_mfs, ++ .init = au_wbr_create_init_mfs, ++ .fin = au_wbr_create_fin_mfs ++ }, ++ [AuWbrCreate_MFSV] = { ++ .create = au_wbr_create_mfs, ++ .init = au_wbr_create_init_mfs, ++ .fin = au_wbr_create_fin_mfs ++ }, ++ [AuWbrCreate_MFSRR] = { ++ .create = au_wbr_create_mfsrr, ++ .init = au_wbr_create_init_mfsrr, ++ .fin = au_wbr_create_fin_mfs ++ }, ++ [AuWbrCreate_MFSRRV] = { ++ .create = au_wbr_create_mfsrr, ++ .init = au_wbr_create_init_mfsrr, ++ .fin = au_wbr_create_fin_mfs ++ }, ++ [AuWbrCreate_TDMFS] = { ++ .create = au_wbr_create_tdmfs, ++ .init = au_wbr_create_init_mfs, ++ .fin = au_wbr_create_fin_mfs ++ }, ++ [AuWbrCreate_TDMFSV] = { ++ .create = au_wbr_create_tdmfs, ++ .init = au_wbr_create_init_mfs, ++ .fin = au_wbr_create_fin_mfs ++ }, ++ [AuWbrCreate_PMFS] = { ++ .create = au_wbr_create_pmfs, ++ .init = au_wbr_create_init_mfs, ++ .fin = au_wbr_create_fin_mfs ++ }, ++ [AuWbrCreate_PMFSV] = { ++ .create = au_wbr_create_pmfs, ++ .init = au_wbr_create_init_mfs, ++ .fin = au_wbr_create_fin_mfs ++ }, ++ [AuWbrCreate_PMFSRR] = { ++ .create = au_wbr_create_pmfsrr, ++ .init = au_wbr_create_init_mfsrr, ++ .fin = au_wbr_create_fin_mfs ++ }, ++ [AuWbrCreate_PMFSRRV] = { ++ .create = au_wbr_create_pmfsrr, ++ .init = au_wbr_create_init_mfsrr, ++ .fin = au_wbr_create_fin_mfs ++ } ++}; +diff -Naur null/fs/aufs/whout.c linux-4.15/fs/aufs/whout.c +--- /dev/null ++++ linux-4.15/fs/aufs/whout.c 2018-02-25 02:38:09.206738328 +0100 +@@ -0,0 +1,1061 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * whiteout for logical deletion and opaque directory ++ */ ++ ++#include "aufs.h" ++ ++#define WH_MASK S_IRUGO ++ ++/* ++ * If a directory contains this file, then it is opaque. We start with the ++ * .wh. flag so that it is blocked by lookup. ++ */ ++static struct qstr diropq_name = QSTR_INIT(AUFS_WH_DIROPQ, ++ sizeof(AUFS_WH_DIROPQ) - 1); ++ ++/* ++ * generate whiteout name, which is NOT terminated by NULL. ++ * @name: original d_name.name ++ * @len: original d_name.len ++ * @wh: whiteout qstr ++ * returns zero when succeeds, otherwise error. ++ * succeeded value as wh->name should be freed by kfree(). ++ */ ++int au_wh_name_alloc(struct qstr *wh, const struct qstr *name) ++{ ++ char *p; ++ ++ if (unlikely(name->len > PATH_MAX - AUFS_WH_PFX_LEN)) ++ return -ENAMETOOLONG; ++ ++ wh->len = name->len + AUFS_WH_PFX_LEN; ++ p = kmalloc(wh->len, GFP_NOFS); ++ wh->name = p; ++ if (p) { ++ memcpy(p, AUFS_WH_PFX, AUFS_WH_PFX_LEN); ++ memcpy(p + AUFS_WH_PFX_LEN, name->name, name->len); ++ /* smp_mb(); */ ++ return 0; ++ } ++ return -ENOMEM; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* ++ * test if the @wh_name exists under @h_parent. ++ * @try_sio specifies the necessary of super-io. ++ */ ++int au_wh_test(struct dentry *h_parent, struct qstr *wh_name, int try_sio) ++{ ++ int err; ++ struct dentry *wh_dentry; ++ ++ if (!try_sio) ++ wh_dentry = vfsub_lkup_one(wh_name, h_parent); ++ else ++ wh_dentry = au_sio_lkup_one(wh_name, h_parent); ++ err = PTR_ERR(wh_dentry); ++ if (IS_ERR(wh_dentry)) { ++ if (err == -ENAMETOOLONG) ++ err = 0; ++ goto out; ++ } ++ ++ err = 0; ++ if (d_is_negative(wh_dentry)) ++ goto out_wh; /* success */ ++ ++ err = 1; ++ if (d_is_reg(wh_dentry)) ++ goto out_wh; /* success */ ++ ++ err = -EIO; ++ AuIOErr("%pd Invalid whiteout entry type 0%o.\n", ++ wh_dentry, d_inode(wh_dentry)->i_mode); ++ ++out_wh: ++ dput(wh_dentry); ++out: ++ return err; ++} ++ ++/* ++ * test if the @h_dentry sets opaque or not. ++ */ ++int au_diropq_test(struct dentry *h_dentry) ++{ ++ int err; ++ struct inode *h_dir; ++ ++ h_dir = d_inode(h_dentry); ++ err = au_wh_test(h_dentry, &diropq_name, ++ au_test_h_perm_sio(h_dir, MAY_EXEC)); ++ return err; ++} ++ ++/* ++ * returns a negative dentry whose name is unique and temporary. ++ */ ++struct dentry *au_whtmp_lkup(struct dentry *h_parent, struct au_branch *br, ++ struct qstr *prefix) ++{ ++ struct dentry *dentry; ++ int i; ++ char defname[NAME_MAX - AUFS_MAX_NAMELEN + DNAME_INLINE_LEN + 1], ++ *name, *p; ++ /* strict atomic_t is unnecessary here */ ++ static unsigned short cnt; ++ struct qstr qs; ++ ++ BUILD_BUG_ON(sizeof(cnt) * 2 > AUFS_WH_TMP_LEN); ++ ++ name = defname; ++ qs.len = sizeof(defname) - DNAME_INLINE_LEN + prefix->len - 1; ++ if (unlikely(prefix->len > DNAME_INLINE_LEN)) { ++ dentry = ERR_PTR(-ENAMETOOLONG); ++ if (unlikely(qs.len > NAME_MAX)) ++ goto out; ++ dentry = ERR_PTR(-ENOMEM); ++ name = kmalloc(qs.len + 1, GFP_NOFS); ++ if (unlikely(!name)) ++ goto out; ++ } ++ ++ /* doubly whiteout-ed */ ++ memcpy(name, AUFS_WH_PFX AUFS_WH_PFX, AUFS_WH_PFX_LEN * 2); ++ p = name + AUFS_WH_PFX_LEN * 2; ++ memcpy(p, prefix->name, prefix->len); ++ p += prefix->len; ++ *p++ = '.'; ++ AuDebugOn(name + qs.len + 1 - p <= AUFS_WH_TMP_LEN); ++ ++ qs.name = name; ++ for (i = 0; i < 3; i++) { ++ sprintf(p, "%.*x", AUFS_WH_TMP_LEN, cnt++); ++ dentry = au_sio_lkup_one(&qs, h_parent); ++ if (IS_ERR(dentry) || d_is_negative(dentry)) ++ goto out_name; ++ dput(dentry); ++ } ++ /* pr_warn("could not get random name\n"); */ ++ dentry = ERR_PTR(-EEXIST); ++ AuDbg("%.*s\n", AuLNPair(&qs)); ++ BUG(); ++ ++out_name: ++ if (name != defname) ++ kfree(name); ++out: ++ AuTraceErrPtr(dentry); ++ return dentry; ++} ++ ++/* ++ * rename the @h_dentry on @br to the whiteouted temporary name. ++ */ ++int au_whtmp_ren(struct dentry *h_dentry, struct au_branch *br) ++{ ++ int err; ++ struct path h_path = { ++ .mnt = au_br_mnt(br) ++ }; ++ struct inode *h_dir, *delegated; ++ struct dentry *h_parent; ++ ++ h_parent = h_dentry->d_parent; /* dir inode is locked */ ++ h_dir = d_inode(h_parent); ++ IMustLock(h_dir); ++ ++ h_path.dentry = au_whtmp_lkup(h_parent, br, &h_dentry->d_name); ++ err = PTR_ERR(h_path.dentry); ++ if (IS_ERR(h_path.dentry)) ++ goto out; ++ ++ /* under the same dir, no need to lock_rename() */ ++ delegated = NULL; ++ err = vfsub_rename(h_dir, h_dentry, h_dir, &h_path, &delegated, ++ /*flags*/0); ++ AuTraceErr(err); ++ if (unlikely(err == -EWOULDBLOCK)) { ++ pr_warn("cannot retry for NFSv4 delegation" ++ " for an internal rename\n"); ++ iput(delegated); ++ } ++ dput(h_path.dentry); ++ ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++/* ++ * functions for removing a whiteout ++ */ ++ ++static int do_unlink_wh(struct inode *h_dir, struct path *h_path) ++{ ++ int err, force; ++ struct inode *delegated; ++ ++ /* ++ * forces superio when the dir has a sticky bit. ++ * this may be a violation of unix fs semantics. ++ */ ++ force = (h_dir->i_mode & S_ISVTX) ++ && !uid_eq(current_fsuid(), d_inode(h_path->dentry)->i_uid); ++ delegated = NULL; ++ err = vfsub_unlink(h_dir, h_path, &delegated, force); ++ if (unlikely(err == -EWOULDBLOCK)) { ++ pr_warn("cannot retry for NFSv4 delegation" ++ " for an internal unlink\n"); ++ iput(delegated); ++ } ++ return err; ++} ++ ++int au_wh_unlink_dentry(struct inode *h_dir, struct path *h_path, ++ struct dentry *dentry) ++{ ++ int err; ++ ++ err = do_unlink_wh(h_dir, h_path); ++ if (!err && dentry) ++ au_set_dbwh(dentry, -1); ++ ++ return err; ++} ++ ++static int unlink_wh_name(struct dentry *h_parent, struct qstr *wh, ++ struct au_branch *br) ++{ ++ int err; ++ struct path h_path = { ++ .mnt = au_br_mnt(br) ++ }; ++ ++ err = 0; ++ h_path.dentry = vfsub_lkup_one(wh, h_parent); ++ if (IS_ERR(h_path.dentry)) ++ err = PTR_ERR(h_path.dentry); ++ else { ++ if (d_is_reg(h_path.dentry)) ++ err = do_unlink_wh(d_inode(h_parent), &h_path); ++ dput(h_path.dentry); ++ } ++ ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++/* ++ * initialize/clean whiteout for a branch ++ */ ++ ++static void au_wh_clean(struct inode *h_dir, struct path *whpath, ++ const int isdir) ++{ ++ int err; ++ struct inode *delegated; ++ ++ if (d_is_negative(whpath->dentry)) ++ return; ++ ++ if (isdir) ++ err = vfsub_rmdir(h_dir, whpath); ++ else { ++ delegated = NULL; ++ err = vfsub_unlink(h_dir, whpath, &delegated, /*force*/0); ++ if (unlikely(err == -EWOULDBLOCK)) { ++ pr_warn("cannot retry for NFSv4 delegation" ++ " for an internal unlink\n"); ++ iput(delegated); ++ } ++ } ++ if (unlikely(err)) ++ pr_warn("failed removing %pd (%d), ignored.\n", ++ whpath->dentry, err); ++} ++ ++static int test_linkable(struct dentry *h_root) ++{ ++ struct inode *h_dir = d_inode(h_root); ++ ++ if (h_dir->i_op->link) ++ return 0; ++ ++ pr_err("%pd (%s) doesn't support link(2), use noplink and rw+nolwh\n", ++ h_root, au_sbtype(h_root->d_sb)); ++ return -ENOSYS; ++} ++ ++/* todo: should this mkdir be done in /sbin/mount.aufs helper? */ ++static int au_whdir(struct inode *h_dir, struct path *path) ++{ ++ int err; ++ ++ err = -EEXIST; ++ if (d_is_negative(path->dentry)) { ++ int mode = S_IRWXU; ++ ++ if (au_test_nfs(path->dentry->d_sb)) ++ mode |= S_IXUGO; ++ err = vfsub_mkdir(h_dir, path, mode); ++ } else if (d_is_dir(path->dentry)) ++ err = 0; ++ else ++ pr_err("unknown %pd exists\n", path->dentry); ++ ++ return err; ++} ++ ++struct au_wh_base { ++ const struct qstr *name; ++ struct dentry *dentry; ++}; ++ ++static void au_wh_init_ro(struct inode *h_dir, struct au_wh_base base[], ++ struct path *h_path) ++{ ++ h_path->dentry = base[AuBrWh_BASE].dentry; ++ au_wh_clean(h_dir, h_path, /*isdir*/0); ++ h_path->dentry = base[AuBrWh_PLINK].dentry; ++ au_wh_clean(h_dir, h_path, /*isdir*/1); ++ h_path->dentry = base[AuBrWh_ORPH].dentry; ++ au_wh_clean(h_dir, h_path, /*isdir*/1); ++} ++ ++/* ++ * returns tri-state, ++ * minus: error, caller should print the message ++ * zero: succuess ++ * plus: error, caller should NOT print the message ++ */ ++static int au_wh_init_rw_nolink(struct dentry *h_root, struct au_wbr *wbr, ++ int do_plink, struct au_wh_base base[], ++ struct path *h_path) ++{ ++ int err; ++ struct inode *h_dir; ++ ++ h_dir = d_inode(h_root); ++ h_path->dentry = base[AuBrWh_BASE].dentry; ++ au_wh_clean(h_dir, h_path, /*isdir*/0); ++ h_path->dentry = base[AuBrWh_PLINK].dentry; ++ if (do_plink) { ++ err = test_linkable(h_root); ++ if (unlikely(err)) { ++ err = 1; ++ goto out; ++ } ++ ++ err = au_whdir(h_dir, h_path); ++ if (unlikely(err)) ++ goto out; ++ wbr->wbr_plink = dget(base[AuBrWh_PLINK].dentry); ++ } else ++ au_wh_clean(h_dir, h_path, /*isdir*/1); ++ h_path->dentry = base[AuBrWh_ORPH].dentry; ++ err = au_whdir(h_dir, h_path); ++ if (unlikely(err)) ++ goto out; ++ wbr->wbr_orph = dget(base[AuBrWh_ORPH].dentry); ++ ++out: ++ return err; ++} ++ ++/* ++ * for the moment, aufs supports the branch filesystem which does not support ++ * link(2). testing on FAT which does not support i_op->setattr() fully either, ++ * copyup failed. finally, such filesystem will not be used as the writable ++ * branch. ++ * ++ * returns tri-state, see above. ++ */ ++static int au_wh_init_rw(struct dentry *h_root, struct au_wbr *wbr, ++ int do_plink, struct au_wh_base base[], ++ struct path *h_path) ++{ ++ int err; ++ struct inode *h_dir; ++ ++ WbrWhMustWriteLock(wbr); ++ ++ err = test_linkable(h_root); ++ if (unlikely(err)) { ++ err = 1; ++ goto out; ++ } ++ ++ /* ++ * todo: should this create be done in /sbin/mount.aufs helper? ++ */ ++ err = -EEXIST; ++ h_dir = d_inode(h_root); ++ if (d_is_negative(base[AuBrWh_BASE].dentry)) { ++ h_path->dentry = base[AuBrWh_BASE].dentry; ++ err = vfsub_create(h_dir, h_path, WH_MASK, /*want_excl*/true); ++ } else if (d_is_reg(base[AuBrWh_BASE].dentry)) ++ err = 0; ++ else ++ pr_err("unknown %pd2 exists\n", base[AuBrWh_BASE].dentry); ++ if (unlikely(err)) ++ goto out; ++ ++ h_path->dentry = base[AuBrWh_PLINK].dentry; ++ if (do_plink) { ++ err = au_whdir(h_dir, h_path); ++ if (unlikely(err)) ++ goto out; ++ wbr->wbr_plink = dget(base[AuBrWh_PLINK].dentry); ++ } else ++ au_wh_clean(h_dir, h_path, /*isdir*/1); ++ wbr->wbr_whbase = dget(base[AuBrWh_BASE].dentry); ++ ++ h_path->dentry = base[AuBrWh_ORPH].dentry; ++ err = au_whdir(h_dir, h_path); ++ if (unlikely(err)) ++ goto out; ++ wbr->wbr_orph = dget(base[AuBrWh_ORPH].dentry); ++ ++out: ++ return err; ++} ++ ++/* ++ * initialize the whiteout base file/dir for @br. ++ */ ++int au_wh_init(struct au_branch *br, struct super_block *sb) ++{ ++ int err, i; ++ const unsigned char do_plink ++ = !!au_opt_test(au_mntflags(sb), PLINK); ++ struct inode *h_dir; ++ struct path path = br->br_path; ++ struct dentry *h_root = path.dentry; ++ struct au_wbr *wbr = br->br_wbr; ++ static const struct qstr base_name[] = { ++ [AuBrWh_BASE] = QSTR_INIT(AUFS_BASE_NAME, ++ sizeof(AUFS_BASE_NAME) - 1), ++ [AuBrWh_PLINK] = QSTR_INIT(AUFS_PLINKDIR_NAME, ++ sizeof(AUFS_PLINKDIR_NAME) - 1), ++ [AuBrWh_ORPH] = QSTR_INIT(AUFS_ORPHDIR_NAME, ++ sizeof(AUFS_ORPHDIR_NAME) - 1) ++ }; ++ struct au_wh_base base[] = { ++ [AuBrWh_BASE] = { ++ .name = base_name + AuBrWh_BASE, ++ .dentry = NULL ++ }, ++ [AuBrWh_PLINK] = { ++ .name = base_name + AuBrWh_PLINK, ++ .dentry = NULL ++ }, ++ [AuBrWh_ORPH] = { ++ .name = base_name + AuBrWh_ORPH, ++ .dentry = NULL ++ } ++ }; ++ ++ if (wbr) ++ WbrWhMustWriteLock(wbr); ++ ++ for (i = 0; i < AuBrWh_Last; i++) { ++ /* doubly whiteouted */ ++ struct dentry *d; ++ ++ d = au_wh_lkup(h_root, (void *)base[i].name, br); ++ err = PTR_ERR(d); ++ if (IS_ERR(d)) ++ goto out; ++ ++ base[i].dentry = d; ++ AuDebugOn(wbr ++ && wbr->wbr_wh[i] ++ && wbr->wbr_wh[i] != base[i].dentry); ++ } ++ ++ if (wbr) ++ for (i = 0; i < AuBrWh_Last; i++) { ++ dput(wbr->wbr_wh[i]); ++ wbr->wbr_wh[i] = NULL; ++ } ++ ++ err = 0; ++ if (!au_br_writable(br->br_perm)) { ++ h_dir = d_inode(h_root); ++ au_wh_init_ro(h_dir, base, &path); ++ } else if (!au_br_wh_linkable(br->br_perm)) { ++ err = au_wh_init_rw_nolink(h_root, wbr, do_plink, base, &path); ++ if (err > 0) ++ goto out; ++ else if (err) ++ goto out_err; ++ } else { ++ err = au_wh_init_rw(h_root, wbr, do_plink, base, &path); ++ if (err > 0) ++ goto out; ++ else if (err) ++ goto out_err; ++ } ++ goto out; /* success */ ++ ++out_err: ++ pr_err("an error(%d) on the writable branch %pd(%s)\n", ++ err, h_root, au_sbtype(h_root->d_sb)); ++out: ++ for (i = 0; i < AuBrWh_Last; i++) ++ dput(base[i].dentry); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++/* ++ * whiteouts are all hard-linked usually. ++ * when its link count reaches a ceiling, we create a new whiteout base ++ * asynchronously. ++ */ ++ ++struct reinit_br_wh { ++ struct super_block *sb; ++ struct au_branch *br; ++}; ++ ++static void reinit_br_wh(void *arg) ++{ ++ int err; ++ aufs_bindex_t bindex; ++ struct path h_path; ++ struct reinit_br_wh *a = arg; ++ struct au_wbr *wbr; ++ struct inode *dir, *delegated; ++ struct dentry *h_root; ++ struct au_hinode *hdir; ++ ++ err = 0; ++ wbr = a->br->br_wbr; ++ /* big aufs lock */ ++ si_noflush_write_lock(a->sb); ++ if (!au_br_writable(a->br->br_perm)) ++ goto out; ++ bindex = au_br_index(a->sb, a->br->br_id); ++ if (unlikely(bindex < 0)) ++ goto out; ++ ++ di_read_lock_parent(a->sb->s_root, AuLock_IR); ++ dir = d_inode(a->sb->s_root); ++ hdir = au_hi(dir, bindex); ++ h_root = au_h_dptr(a->sb->s_root, bindex); ++ AuDebugOn(h_root != au_br_dentry(a->br)); ++ ++ au_hn_inode_lock_nested(hdir, AuLsc_I_PARENT); ++ wbr_wh_write_lock(wbr); ++ err = au_h_verify(wbr->wbr_whbase, au_opt_udba(a->sb), hdir->hi_inode, ++ h_root, a->br); ++ if (!err) { ++ h_path.dentry = wbr->wbr_whbase; ++ h_path.mnt = au_br_mnt(a->br); ++ delegated = NULL; ++ err = vfsub_unlink(hdir->hi_inode, &h_path, &delegated, ++ /*force*/0); ++ if (unlikely(err == -EWOULDBLOCK)) { ++ pr_warn("cannot retry for NFSv4 delegation" ++ " for an internal unlink\n"); ++ iput(delegated); ++ } ++ } else { ++ pr_warn("%pd is moved, ignored\n", wbr->wbr_whbase); ++ err = 0; ++ } ++ dput(wbr->wbr_whbase); ++ wbr->wbr_whbase = NULL; ++ if (!err) ++ err = au_wh_init(a->br, a->sb); ++ wbr_wh_write_unlock(wbr); ++ au_hn_inode_unlock(hdir); ++ di_read_unlock(a->sb->s_root, AuLock_IR); ++ if (!err) ++ au_fhsm_wrote(a->sb, bindex, /*force*/0); ++ ++out: ++ if (wbr) ++ atomic_dec(&wbr->wbr_wh_running); ++ au_br_put(a->br); ++ si_write_unlock(a->sb); ++ au_nwt_done(&au_sbi(a->sb)->si_nowait); ++ kfree(arg); ++ if (unlikely(err)) ++ AuIOErr("err %d\n", err); ++} ++ ++static void kick_reinit_br_wh(struct super_block *sb, struct au_branch *br) ++{ ++ int do_dec, wkq_err; ++ struct reinit_br_wh *arg; ++ ++ do_dec = 1; ++ if (atomic_inc_return(&br->br_wbr->wbr_wh_running) != 1) ++ goto out; ++ ++ /* ignore ENOMEM */ ++ arg = kmalloc(sizeof(*arg), GFP_NOFS); ++ if (arg) { ++ /* ++ * dec(wh_running), kfree(arg) and dec(br_count) ++ * in reinit function ++ */ ++ arg->sb = sb; ++ arg->br = br; ++ au_br_get(br); ++ wkq_err = au_wkq_nowait(reinit_br_wh, arg, sb, /*flags*/0); ++ if (unlikely(wkq_err)) { ++ atomic_dec(&br->br_wbr->wbr_wh_running); ++ au_br_put(br); ++ kfree(arg); ++ } ++ do_dec = 0; ++ } ++ ++out: ++ if (do_dec) ++ atomic_dec(&br->br_wbr->wbr_wh_running); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* ++ * create the whiteout @wh. ++ */ ++static int link_or_create_wh(struct super_block *sb, aufs_bindex_t bindex, ++ struct dentry *wh) ++{ ++ int err; ++ struct path h_path = { ++ .dentry = wh ++ }; ++ struct au_branch *br; ++ struct au_wbr *wbr; ++ struct dentry *h_parent; ++ struct inode *h_dir, *delegated; ++ ++ h_parent = wh->d_parent; /* dir inode is locked */ ++ h_dir = d_inode(h_parent); ++ IMustLock(h_dir); ++ ++ br = au_sbr(sb, bindex); ++ h_path.mnt = au_br_mnt(br); ++ wbr = br->br_wbr; ++ wbr_wh_read_lock(wbr); ++ if (wbr->wbr_whbase) { ++ delegated = NULL; ++ err = vfsub_link(wbr->wbr_whbase, h_dir, &h_path, &delegated); ++ if (unlikely(err == -EWOULDBLOCK)) { ++ pr_warn("cannot retry for NFSv4 delegation" ++ " for an internal link\n"); ++ iput(delegated); ++ } ++ if (!err || err != -EMLINK) ++ goto out; ++ ++ /* link count full. re-initialize br_whbase. */ ++ kick_reinit_br_wh(sb, br); ++ } ++ ++ /* return this error in this context */ ++ err = vfsub_create(h_dir, &h_path, WH_MASK, /*want_excl*/true); ++ if (!err) ++ au_fhsm_wrote(sb, bindex, /*force*/0); ++ ++out: ++ wbr_wh_read_unlock(wbr); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* ++ * create or remove the diropq. ++ */ ++static struct dentry *do_diropq(struct dentry *dentry, aufs_bindex_t bindex, ++ unsigned int flags) ++{ ++ struct dentry *opq_dentry, *h_dentry; ++ struct super_block *sb; ++ struct au_branch *br; ++ int err; ++ ++ sb = dentry->d_sb; ++ br = au_sbr(sb, bindex); ++ h_dentry = au_h_dptr(dentry, bindex); ++ opq_dentry = vfsub_lkup_one(&diropq_name, h_dentry); ++ if (IS_ERR(opq_dentry)) ++ goto out; ++ ++ if (au_ftest_diropq(flags, CREATE)) { ++ err = link_or_create_wh(sb, bindex, opq_dentry); ++ if (!err) { ++ au_set_dbdiropq(dentry, bindex); ++ goto out; /* success */ ++ } ++ } else { ++ struct path tmp = { ++ .dentry = opq_dentry, ++ .mnt = au_br_mnt(br) ++ }; ++ err = do_unlink_wh(au_h_iptr(d_inode(dentry), bindex), &tmp); ++ if (!err) ++ au_set_dbdiropq(dentry, -1); ++ } ++ dput(opq_dentry); ++ opq_dentry = ERR_PTR(err); ++ ++out: ++ return opq_dentry; ++} ++ ++struct do_diropq_args { ++ struct dentry **errp; ++ struct dentry *dentry; ++ aufs_bindex_t bindex; ++ unsigned int flags; ++}; ++ ++static void call_do_diropq(void *args) ++{ ++ struct do_diropq_args *a = args; ++ *a->errp = do_diropq(a->dentry, a->bindex, a->flags); ++} ++ ++struct dentry *au_diropq_sio(struct dentry *dentry, aufs_bindex_t bindex, ++ unsigned int flags) ++{ ++ struct dentry *diropq, *h_dentry; ++ ++ h_dentry = au_h_dptr(dentry, bindex); ++ if (!au_test_h_perm_sio(d_inode(h_dentry), MAY_EXEC | MAY_WRITE)) ++ diropq = do_diropq(dentry, bindex, flags); ++ else { ++ int wkq_err; ++ struct do_diropq_args args = { ++ .errp = &diropq, ++ .dentry = dentry, ++ .bindex = bindex, ++ .flags = flags ++ }; ++ ++ wkq_err = au_wkq_wait(call_do_diropq, &args); ++ if (unlikely(wkq_err)) ++ diropq = ERR_PTR(wkq_err); ++ } ++ ++ return diropq; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* ++ * lookup whiteout dentry. ++ * @h_parent: lower parent dentry which must exist and be locked ++ * @base_name: name of dentry which will be whiteouted ++ * returns dentry for whiteout. ++ */ ++struct dentry *au_wh_lkup(struct dentry *h_parent, struct qstr *base_name, ++ struct au_branch *br) ++{ ++ int err; ++ struct qstr wh_name; ++ struct dentry *wh_dentry; ++ ++ err = au_wh_name_alloc(&wh_name, base_name); ++ wh_dentry = ERR_PTR(err); ++ if (!err) { ++ wh_dentry = vfsub_lkup_one(&wh_name, h_parent); ++ kfree(wh_name.name); ++ } ++ return wh_dentry; ++} ++ ++/* ++ * link/create a whiteout for @dentry on @bindex. ++ */ ++struct dentry *au_wh_create(struct dentry *dentry, aufs_bindex_t bindex, ++ struct dentry *h_parent) ++{ ++ struct dentry *wh_dentry; ++ struct super_block *sb; ++ int err; ++ ++ sb = dentry->d_sb; ++ wh_dentry = au_wh_lkup(h_parent, &dentry->d_name, au_sbr(sb, bindex)); ++ if (!IS_ERR(wh_dentry) && d_is_negative(wh_dentry)) { ++ err = link_or_create_wh(sb, bindex, wh_dentry); ++ if (!err) { ++ au_set_dbwh(dentry, bindex); ++ au_fhsm_wrote(sb, bindex, /*force*/0); ++ } else { ++ dput(wh_dentry); ++ wh_dentry = ERR_PTR(err); ++ } ++ } ++ ++ return wh_dentry; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* Delete all whiteouts in this directory on branch bindex. */ ++static int del_wh_children(struct dentry *h_dentry, struct au_nhash *whlist, ++ aufs_bindex_t bindex, struct au_branch *br) ++{ ++ int err; ++ unsigned long ul, n; ++ struct qstr wh_name; ++ char *p; ++ struct hlist_head *head; ++ struct au_vdir_wh *pos; ++ struct au_vdir_destr *str; ++ ++ err = -ENOMEM; ++ p = (void *)__get_free_page(GFP_NOFS); ++ wh_name.name = p; ++ if (unlikely(!wh_name.name)) ++ goto out; ++ ++ err = 0; ++ memcpy(p, AUFS_WH_PFX, AUFS_WH_PFX_LEN); ++ p += AUFS_WH_PFX_LEN; ++ n = whlist->nh_num; ++ head = whlist->nh_head; ++ for (ul = 0; !err && ul < n; ul++, head++) { ++ hlist_for_each_entry(pos, head, wh_hash) { ++ if (pos->wh_bindex != bindex) ++ continue; ++ ++ str = &pos->wh_str; ++ if (str->len + AUFS_WH_PFX_LEN <= PATH_MAX) { ++ memcpy(p, str->name, str->len); ++ wh_name.len = AUFS_WH_PFX_LEN + str->len; ++ err = unlink_wh_name(h_dentry, &wh_name, br); ++ if (!err) ++ continue; ++ break; ++ } ++ AuIOErr("whiteout name too long %.*s\n", ++ str->len, str->name); ++ err = -EIO; ++ break; ++ } ++ } ++ free_page((unsigned long)wh_name.name); ++ ++out: ++ return err; ++} ++ ++struct del_wh_children_args { ++ int *errp; ++ struct dentry *h_dentry; ++ struct au_nhash *whlist; ++ aufs_bindex_t bindex; ++ struct au_branch *br; ++}; ++ ++static void call_del_wh_children(void *args) ++{ ++ struct del_wh_children_args *a = args; ++ *a->errp = del_wh_children(a->h_dentry, a->whlist, a->bindex, a->br); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++struct au_whtmp_rmdir *au_whtmp_rmdir_alloc(struct super_block *sb, gfp_t gfp) ++{ ++ struct au_whtmp_rmdir *whtmp; ++ int err; ++ unsigned int rdhash; ++ ++ SiMustAnyLock(sb); ++ ++ whtmp = kzalloc(sizeof(*whtmp), gfp); ++ if (unlikely(!whtmp)) { ++ whtmp = ERR_PTR(-ENOMEM); ++ goto out; ++ } ++ ++ /* no estimation for dir size */ ++ rdhash = au_sbi(sb)->si_rdhash; ++ if (!rdhash) ++ rdhash = AUFS_RDHASH_DEF; ++ err = au_nhash_alloc(&whtmp->whlist, rdhash, gfp); ++ if (unlikely(err)) { ++ kfree(whtmp); ++ whtmp = ERR_PTR(err); ++ } ++ ++out: ++ return whtmp; ++} ++ ++void au_whtmp_rmdir_free(struct au_whtmp_rmdir *whtmp) ++{ ++ if (whtmp->br) ++ au_br_put(whtmp->br); ++ dput(whtmp->wh_dentry); ++ iput(whtmp->dir); ++ au_nhash_wh_free(&whtmp->whlist); ++ kfree(whtmp); ++} ++ ++/* ++ * rmdir the whiteouted temporary named dir @h_dentry. ++ * @whlist: whiteouted children. ++ */ ++int au_whtmp_rmdir(struct inode *dir, aufs_bindex_t bindex, ++ struct dentry *wh_dentry, struct au_nhash *whlist) ++{ ++ int err; ++ unsigned int h_nlink; ++ struct path h_tmp; ++ struct inode *wh_inode, *h_dir; ++ struct au_branch *br; ++ ++ h_dir = d_inode(wh_dentry->d_parent); /* dir inode is locked */ ++ IMustLock(h_dir); ++ ++ br = au_sbr(dir->i_sb, bindex); ++ wh_inode = d_inode(wh_dentry); ++ inode_lock_nested(wh_inode, AuLsc_I_CHILD); ++ ++ /* ++ * someone else might change some whiteouts while we were sleeping. ++ * it means this whlist may have an obsoleted entry. ++ */ ++ if (!au_test_h_perm_sio(wh_inode, MAY_EXEC | MAY_WRITE)) ++ err = del_wh_children(wh_dentry, whlist, bindex, br); ++ else { ++ int wkq_err; ++ struct del_wh_children_args args = { ++ .errp = &err, ++ .h_dentry = wh_dentry, ++ .whlist = whlist, ++ .bindex = bindex, ++ .br = br ++ }; ++ ++ wkq_err = au_wkq_wait(call_del_wh_children, &args); ++ if (unlikely(wkq_err)) ++ err = wkq_err; ++ } ++ inode_unlock(wh_inode); ++ ++ if (!err) { ++ h_tmp.dentry = wh_dentry; ++ h_tmp.mnt = au_br_mnt(br); ++ h_nlink = h_dir->i_nlink; ++ err = vfsub_rmdir(h_dir, &h_tmp); ++ /* some fs doesn't change the parent nlink in some cases */ ++ h_nlink -= h_dir->i_nlink; ++ } ++ ++ if (!err) { ++ if (au_ibtop(dir) == bindex) { ++ /* todo: dir->i_mutex is necessary */ ++ au_cpup_attr_timesizes(dir); ++ if (h_nlink) ++ vfsub_drop_nlink(dir); ++ } ++ return 0; /* success */ ++ } ++ ++ pr_warn("failed removing %pd(%d), ignored\n", wh_dentry, err); ++ return err; ++} ++ ++static void call_rmdir_whtmp(void *args) ++{ ++ int err; ++ aufs_bindex_t bindex; ++ struct au_whtmp_rmdir *a = args; ++ struct super_block *sb; ++ struct dentry *h_parent; ++ struct inode *h_dir; ++ struct au_hinode *hdir; ++ ++ /* rmdir by nfsd may cause deadlock with this i_mutex */ ++ /* inode_lock(a->dir); */ ++ err = -EROFS; ++ sb = a->dir->i_sb; ++ si_read_lock(sb, !AuLock_FLUSH); ++ if (!au_br_writable(a->br->br_perm)) ++ goto out; ++ bindex = au_br_index(sb, a->br->br_id); ++ if (unlikely(bindex < 0)) ++ goto out; ++ ++ err = -EIO; ++ ii_write_lock_parent(a->dir); ++ h_parent = dget_parent(a->wh_dentry); ++ h_dir = d_inode(h_parent); ++ hdir = au_hi(a->dir, bindex); ++ err = vfsub_mnt_want_write(au_br_mnt(a->br)); ++ if (unlikely(err)) ++ goto out_mnt; ++ au_hn_inode_lock_nested(hdir, AuLsc_I_PARENT); ++ err = au_h_verify(a->wh_dentry, au_opt_udba(sb), h_dir, h_parent, ++ a->br); ++ if (!err) ++ err = au_whtmp_rmdir(a->dir, bindex, a->wh_dentry, &a->whlist); ++ au_hn_inode_unlock(hdir); ++ vfsub_mnt_drop_write(au_br_mnt(a->br)); ++ ++out_mnt: ++ dput(h_parent); ++ ii_write_unlock(a->dir); ++out: ++ /* inode_unlock(a->dir); */ ++ au_whtmp_rmdir_free(a); ++ si_read_unlock(sb); ++ au_nwt_done(&au_sbi(sb)->si_nowait); ++ if (unlikely(err)) ++ AuIOErr("err %d\n", err); ++} ++ ++void au_whtmp_kick_rmdir(struct inode *dir, aufs_bindex_t bindex, ++ struct dentry *wh_dentry, struct au_whtmp_rmdir *args) ++{ ++ int wkq_err; ++ struct super_block *sb; ++ ++ IMustLock(dir); ++ ++ /* all post-process will be done in do_rmdir_whtmp(). */ ++ sb = dir->i_sb; ++ args->dir = au_igrab(dir); ++ args->br = au_sbr(sb, bindex); ++ au_br_get(args->br); ++ args->wh_dentry = dget(wh_dentry); ++ wkq_err = au_wkq_nowait(call_rmdir_whtmp, args, sb, /*flags*/0); ++ if (unlikely(wkq_err)) { ++ pr_warn("rmdir error %pd (%d), ignored\n", wh_dentry, wkq_err); ++ au_whtmp_rmdir_free(args); ++ } ++} +diff -Naur null/fs/aufs/whout.h linux-4.15/fs/aufs/whout.h +--- /dev/null ++++ linux-4.15/fs/aufs/whout.h 2018-02-25 02:38:09.206738328 +0100 +@@ -0,0 +1,85 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * whiteout for logical deletion and opaque directory ++ */ ++ ++#ifndef __AUFS_WHOUT_H__ ++#define __AUFS_WHOUT_H__ ++ ++#ifdef __KERNEL__ ++ ++#include "dir.h" ++ ++/* whout.c */ ++int au_wh_name_alloc(struct qstr *wh, const struct qstr *name); ++int au_wh_test(struct dentry *h_parent, struct qstr *wh_name, int try_sio); ++int au_diropq_test(struct dentry *h_dentry); ++struct au_branch; ++struct dentry *au_whtmp_lkup(struct dentry *h_parent, struct au_branch *br, ++ struct qstr *prefix); ++int au_whtmp_ren(struct dentry *h_dentry, struct au_branch *br); ++int au_wh_unlink_dentry(struct inode *h_dir, struct path *h_path, ++ struct dentry *dentry); ++int au_wh_init(struct au_branch *br, struct super_block *sb); ++ ++/* diropq flags */ ++#define AuDiropq_CREATE 1 ++#define au_ftest_diropq(flags, name) ((flags) & AuDiropq_##name) ++#define au_fset_diropq(flags, name) \ ++ do { (flags) |= AuDiropq_##name; } while (0) ++#define au_fclr_diropq(flags, name) \ ++ do { (flags) &= ~AuDiropq_##name; } while (0) ++ ++struct dentry *au_diropq_sio(struct dentry *dentry, aufs_bindex_t bindex, ++ unsigned int flags); ++struct dentry *au_wh_lkup(struct dentry *h_parent, struct qstr *base_name, ++ struct au_branch *br); ++struct dentry *au_wh_create(struct dentry *dentry, aufs_bindex_t bindex, ++ struct dentry *h_parent); ++ ++/* real rmdir for the whiteout-ed dir */ ++struct au_whtmp_rmdir { ++ struct inode *dir; ++ struct au_branch *br; ++ struct dentry *wh_dentry; ++ struct au_nhash whlist; ++}; ++ ++struct au_whtmp_rmdir *au_whtmp_rmdir_alloc(struct super_block *sb, gfp_t gfp); ++void au_whtmp_rmdir_free(struct au_whtmp_rmdir *whtmp); ++int au_whtmp_rmdir(struct inode *dir, aufs_bindex_t bindex, ++ struct dentry *wh_dentry, struct au_nhash *whlist); ++void au_whtmp_kick_rmdir(struct inode *dir, aufs_bindex_t bindex, ++ struct dentry *wh_dentry, struct au_whtmp_rmdir *args); ++ ++/* ---------------------------------------------------------------------- */ ++ ++static inline struct dentry *au_diropq_create(struct dentry *dentry, ++ aufs_bindex_t bindex) ++{ ++ return au_diropq_sio(dentry, bindex, AuDiropq_CREATE); ++} ++ ++static inline int au_diropq_remove(struct dentry *dentry, aufs_bindex_t bindex) ++{ ++ return PTR_ERR(au_diropq_sio(dentry, bindex, !AuDiropq_CREATE)); ++} ++ ++#endif /* __KERNEL__ */ ++#endif /* __AUFS_WHOUT_H__ */ +diff -Naur null/fs/aufs/wkq.c linux-4.15/fs/aufs/wkq.c +--- /dev/null ++++ linux-4.15/fs/aufs/wkq.c 2018-02-25 02:38:09.206738328 +0100 +@@ -0,0 +1,390 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * workqueue for asynchronous/super-io operations ++ * todo: try new dredential scheme ++ */ ++ ++#include ++#include "aufs.h" ++ ++/* internal workqueue named AUFS_WKQ_NAME */ ++ ++static struct workqueue_struct *au_wkq; ++ ++struct au_wkinfo { ++ struct work_struct wk; ++ struct kobject *kobj; ++ ++ unsigned int flags; /* see wkq.h */ ++ ++ au_wkq_func_t func; ++ void *args; ++ ++#ifdef CONFIG_LOCKDEP ++ int dont_check; ++ struct held_lock **hlock; ++#endif ++ ++ struct completion *comp; ++}; ++ ++/* ---------------------------------------------------------------------- */ ++/* ++ * Aufs passes some operations to the workqueue such as the internal copyup. ++ * This scheme looks rather unnatural for LOCKDEP debugging feature, since the ++ * job run by workqueue depends upon the locks acquired in the other task. ++ * Delegating a small operation to the workqueue, aufs passes its lockdep ++ * information too. And the job in the workqueue restores the info in order to ++ * pretend as if it acquired those locks. This is just to make LOCKDEP work ++ * correctly and expectedly. ++ */ ++ ++#ifndef CONFIG_LOCKDEP ++AuStubInt0(au_wkq_lockdep_alloc, struct au_wkinfo *wkinfo); ++AuStubVoid(au_wkq_lockdep_free, struct au_wkinfo *wkinfo); ++AuStubVoid(au_wkq_lockdep_pre, struct au_wkinfo *wkinfo); ++AuStubVoid(au_wkq_lockdep_post, struct au_wkinfo *wkinfo); ++AuStubVoid(au_wkq_lockdep_init, struct au_wkinfo *wkinfo); ++#else ++static void au_wkq_lockdep_init(struct au_wkinfo *wkinfo) ++{ ++ wkinfo->hlock = NULL; ++ wkinfo->dont_check = 0; ++} ++ ++/* ++ * 1: matched ++ * 0: unmatched ++ */ ++static int au_wkq_lockdep_test(struct lock_class_key *key, const char *name) ++{ ++ static DEFINE_SPINLOCK(spin); ++ static struct { ++ char *name; ++ struct lock_class_key *key; ++ } a[] = { ++ { .name = "&sbinfo->si_rwsem" }, ++ { .name = "&finfo->fi_rwsem" }, ++ { .name = "&dinfo->di_rwsem" }, ++ { .name = "&iinfo->ii_rwsem" } ++ }; ++ static int set; ++ int i; ++ ++ /* lockless read from 'set.' see below */ ++ if (set == ARRAY_SIZE(a)) { ++ for (i = 0; i < ARRAY_SIZE(a); i++) ++ if (a[i].key == key) ++ goto match; ++ goto unmatch; ++ } ++ ++ spin_lock(&spin); ++ if (set) ++ for (i = 0; i < ARRAY_SIZE(a); i++) ++ if (a[i].key == key) { ++ spin_unlock(&spin); ++ goto match; ++ } ++ for (i = 0; i < ARRAY_SIZE(a); i++) { ++ if (a[i].key) { ++ if (unlikely(a[i].key == key)) { /* rare but possible */ ++ spin_unlock(&spin); ++ goto match; ++ } else ++ continue; ++ } ++ if (strstr(a[i].name, name)) { ++ /* ++ * the order of these three lines is important for the ++ * lockless read above. ++ */ ++ a[i].key = key; ++ spin_unlock(&spin); ++ set++; ++ /* AuDbg("%d, %s\n", set, name); */ ++ goto match; ++ } ++ } ++ spin_unlock(&spin); ++ goto unmatch; ++ ++match: ++ return 1; ++unmatch: ++ return 0; ++} ++ ++static int au_wkq_lockdep_alloc(struct au_wkinfo *wkinfo) ++{ ++ int err, n; ++ struct task_struct *curr; ++ struct held_lock **hl, *held_locks, *p; ++ ++ err = 0; ++ curr = current; ++ wkinfo->dont_check = lockdep_recursing(curr); ++ if (wkinfo->dont_check) ++ goto out; ++ n = curr->lockdep_depth; ++ if (!n) ++ goto out; ++ ++ err = -ENOMEM; ++ wkinfo->hlock = kmalloc_array(n + 1, sizeof(*wkinfo->hlock), GFP_NOFS); ++ if (unlikely(!wkinfo->hlock)) ++ goto out; ++ ++ err = 0; ++#if 0 ++ if (0 && au_debug_test()) /* left for debugging */ ++ lockdep_print_held_locks(curr); ++#endif ++ held_locks = curr->held_locks; ++ hl = wkinfo->hlock; ++ while (n--) { ++ p = held_locks++; ++ if (au_wkq_lockdep_test(p->instance->key, p->instance->name)) ++ *hl++ = p; ++ } ++ *hl = NULL; ++ ++out: ++ return err; ++} ++ ++static void au_wkq_lockdep_free(struct au_wkinfo *wkinfo) ++{ ++ kfree(wkinfo->hlock); ++} ++ ++static void au_wkq_lockdep_pre(struct au_wkinfo *wkinfo) ++{ ++ struct held_lock *p, **hl = wkinfo->hlock; ++ int subclass; ++ ++ if (wkinfo->dont_check) ++ lockdep_off(); ++ if (!hl) ++ return; ++ while ((p = *hl++)) { /* assignment */ ++ subclass = lockdep_hlock_class(p)->subclass; ++ /* AuDbg("%s, %d\n", p->instance->name, subclass); */ ++ if (p->read) ++ rwsem_acquire_read(p->instance, subclass, 0, ++ /*p->acquire_ip*/_RET_IP_); ++ else ++ rwsem_acquire(p->instance, subclass, 0, ++ /*p->acquire_ip*/_RET_IP_); ++ } ++} ++ ++static void au_wkq_lockdep_post(struct au_wkinfo *wkinfo) ++{ ++ struct held_lock *p, **hl = wkinfo->hlock; ++ ++ if (wkinfo->dont_check) ++ lockdep_on(); ++ if (!hl) ++ return; ++ while ((p = *hl++)) /* assignment */ ++ rwsem_release(p->instance, 0, /*p->acquire_ip*/_RET_IP_); ++} ++#endif ++ ++static void wkq_func(struct work_struct *wk) ++{ ++ struct au_wkinfo *wkinfo = container_of(wk, struct au_wkinfo, wk); ++ ++ AuDebugOn(!uid_eq(current_fsuid(), GLOBAL_ROOT_UID)); ++ AuDebugOn(rlimit(RLIMIT_FSIZE) != RLIM_INFINITY); ++ ++ au_wkq_lockdep_pre(wkinfo); ++ wkinfo->func(wkinfo->args); ++ au_wkq_lockdep_post(wkinfo); ++ if (au_ftest_wkq(wkinfo->flags, WAIT)) ++ complete(wkinfo->comp); ++ else { ++ kobject_put(wkinfo->kobj); ++ module_put(THIS_MODULE); /* todo: ?? */ ++ kfree(wkinfo); ++ } ++} ++ ++/* ++ * Since struct completion is large, try allocating it dynamically. ++ */ ++#if 1 /* defined(CONFIG_4KSTACKS) || defined(AuTest4KSTACKS) */ ++#define AuWkqCompDeclare(name) struct completion *comp = NULL ++ ++static int au_wkq_comp_alloc(struct au_wkinfo *wkinfo, struct completion **comp) ++{ ++ *comp = kmalloc(sizeof(**comp), GFP_NOFS); ++ if (*comp) { ++ init_completion(*comp); ++ wkinfo->comp = *comp; ++ return 0; ++ } ++ return -ENOMEM; ++} ++ ++static void au_wkq_comp_free(struct completion *comp) ++{ ++ kfree(comp); ++} ++ ++#else ++ ++/* no braces */ ++#define AuWkqCompDeclare(name) \ ++ DECLARE_COMPLETION_ONSTACK(_ ## name); \ ++ struct completion *comp = &_ ## name ++ ++static int au_wkq_comp_alloc(struct au_wkinfo *wkinfo, struct completion **comp) ++{ ++ wkinfo->comp = *comp; ++ return 0; ++} ++ ++static void au_wkq_comp_free(struct completion *comp __maybe_unused) ++{ ++ /* empty */ ++} ++#endif /* 4KSTACKS */ ++ ++static void au_wkq_run(struct au_wkinfo *wkinfo) ++{ ++ if (au_ftest_wkq(wkinfo->flags, NEST)) { ++ if (au_wkq_test()) { ++ AuWarn1("wkq from wkq, unless silly-rename on NFS," ++ " due to a dead dir by UDBA?\n"); ++ AuDebugOn(au_ftest_wkq(wkinfo->flags, WAIT)); ++ } ++ } else ++ au_dbg_verify_kthread(); ++ ++ if (au_ftest_wkq(wkinfo->flags, WAIT)) { ++ INIT_WORK_ONSTACK(&wkinfo->wk, wkq_func); ++ queue_work(au_wkq, &wkinfo->wk); ++ } else { ++ INIT_WORK(&wkinfo->wk, wkq_func); ++ schedule_work(&wkinfo->wk); ++ } ++} ++ ++/* ++ * Be careful. It is easy to make deadlock happen. ++ * processA: lock, wkq and wait ++ * processB: wkq and wait, lock in wkq ++ * --> deadlock ++ */ ++int au_wkq_do_wait(unsigned int flags, au_wkq_func_t func, void *args) ++{ ++ int err; ++ AuWkqCompDeclare(comp); ++ struct au_wkinfo wkinfo = { ++ .flags = flags, ++ .func = func, ++ .args = args ++ }; ++ ++ err = au_wkq_comp_alloc(&wkinfo, &comp); ++ if (unlikely(err)) ++ goto out; ++ err = au_wkq_lockdep_alloc(&wkinfo); ++ if (unlikely(err)) ++ goto out_comp; ++ if (!err) { ++ au_wkq_run(&wkinfo); ++ /* no timeout, no interrupt */ ++ wait_for_completion(wkinfo.comp); ++ } ++ au_wkq_lockdep_free(&wkinfo); ++ ++out_comp: ++ au_wkq_comp_free(comp); ++out: ++ destroy_work_on_stack(&wkinfo.wk); ++ return err; ++} ++ ++/* ++ * Note: dget/dput() in func for aufs dentries are not supported. It will be a ++ * problem in a concurrent umounting. ++ */ ++int au_wkq_nowait(au_wkq_func_t func, void *args, struct super_block *sb, ++ unsigned int flags) ++{ ++ int err; ++ struct au_wkinfo *wkinfo; ++ ++ atomic_inc(&au_sbi(sb)->si_nowait.nw_len); ++ ++ /* ++ * wkq_func() must free this wkinfo. ++ * it highly depends upon the implementation of workqueue. ++ */ ++ err = 0; ++ wkinfo = kmalloc(sizeof(*wkinfo), GFP_NOFS); ++ if (wkinfo) { ++ wkinfo->kobj = &au_sbi(sb)->si_kobj; ++ wkinfo->flags = flags & ~AuWkq_WAIT; ++ wkinfo->func = func; ++ wkinfo->args = args; ++ wkinfo->comp = NULL; ++ au_wkq_lockdep_init(wkinfo); ++ kobject_get(wkinfo->kobj); ++ __module_get(THIS_MODULE); /* todo: ?? */ ++ ++ au_wkq_run(wkinfo); ++ } else { ++ err = -ENOMEM; ++ au_nwt_done(&au_sbi(sb)->si_nowait); ++ } ++ ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++void au_nwt_init(struct au_nowait_tasks *nwt) ++{ ++ atomic_set(&nwt->nw_len, 0); ++ /* smp_mb(); */ /* atomic_set */ ++ init_waitqueue_head(&nwt->nw_wq); ++} ++ ++void au_wkq_fin(void) ++{ ++ destroy_workqueue(au_wkq); ++} ++ ++int __init au_wkq_init(void) ++{ ++ int err; ++ ++ err = 0; ++ au_wkq = alloc_workqueue(AUFS_WKQ_NAME, 0, WQ_DFL_ACTIVE); ++ if (IS_ERR(au_wkq)) ++ err = PTR_ERR(au_wkq); ++ else if (!au_wkq) ++ err = -ENOMEM; ++ ++ return err; ++} +diff -Naur null/fs/aufs/wkq.h linux-4.15/fs/aufs/wkq.h +--- /dev/null ++++ linux-4.15/fs/aufs/wkq.h 2018-02-25 02:38:09.206738328 +0100 +@@ -0,0 +1,93 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * workqueue for asynchronous/super-io operations ++ * todo: try new credentials management scheme ++ */ ++ ++#ifndef __AUFS_WKQ_H__ ++#define __AUFS_WKQ_H__ ++ ++#ifdef __KERNEL__ ++ ++#include ++ ++struct super_block; ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* ++ * in the next operation, wait for the 'nowait' tasks in system-wide workqueue ++ */ ++struct au_nowait_tasks { ++ atomic_t nw_len; ++ wait_queue_head_t nw_wq; ++}; ++ ++/* ---------------------------------------------------------------------- */ ++ ++typedef void (*au_wkq_func_t)(void *args); ++ ++/* wkq flags */ ++#define AuWkq_WAIT 1 ++#define AuWkq_NEST (1 << 1) ++#define au_ftest_wkq(flags, name) ((flags) & AuWkq_##name) ++#define au_fset_wkq(flags, name) \ ++ do { (flags) |= AuWkq_##name; } while (0) ++#define au_fclr_wkq(flags, name) \ ++ do { (flags) &= ~AuWkq_##name; } while (0) ++ ++#ifndef CONFIG_AUFS_HNOTIFY ++#undef AuWkq_NEST ++#define AuWkq_NEST 0 ++#endif ++ ++/* wkq.c */ ++int au_wkq_do_wait(unsigned int flags, au_wkq_func_t func, void *args); ++int au_wkq_nowait(au_wkq_func_t func, void *args, struct super_block *sb, ++ unsigned int flags); ++void au_nwt_init(struct au_nowait_tasks *nwt); ++int __init au_wkq_init(void); ++void au_wkq_fin(void); ++ ++/* ---------------------------------------------------------------------- */ ++ ++static inline int au_wkq_test(void) ++{ ++ return current->flags & PF_WQ_WORKER; ++} ++ ++static inline int au_wkq_wait(au_wkq_func_t func, void *args) ++{ ++ return au_wkq_do_wait(AuWkq_WAIT, func, args); ++} ++ ++static inline void au_nwt_done(struct au_nowait_tasks *nwt) ++{ ++ if (atomic_dec_and_test(&nwt->nw_len)) ++ wake_up_all(&nwt->nw_wq); ++} ++ ++static inline int au_nwt_flush(struct au_nowait_tasks *nwt) ++{ ++ wait_event(nwt->nw_wq, !atomic_read(&nwt->nw_len)); ++ return 0; ++} ++ ++#endif /* __KERNEL__ */ ++#endif /* __AUFS_WKQ_H__ */ +diff -Naur null/fs/aufs/xattr.c linux-4.15/fs/aufs/xattr.c +--- /dev/null ++++ linux-4.15/fs/aufs/xattr.c 2018-02-25 02:38:09.206738328 +0100 +@@ -0,0 +1,355 @@ ++/* ++ * Copyright (C) 2014-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * handling xattr functions ++ */ ++ ++#include ++#include ++#include ++#include "aufs.h" ++ ++static int au_xattr_ignore(int err, char *name, unsigned int ignore_flags) ++{ ++ if (!ignore_flags) ++ goto out; ++ switch (err) { ++ case -ENOMEM: ++ case -EDQUOT: ++ goto out; ++ } ++ ++ if ((ignore_flags & AuBrAttr_ICEX) == AuBrAttr_ICEX) { ++ err = 0; ++ goto out; ++ } ++ ++#define cmp(brattr, prefix) do { \ ++ if (!strncmp(name, XATTR_##prefix##_PREFIX, \ ++ XATTR_##prefix##_PREFIX_LEN)) { \ ++ if (ignore_flags & AuBrAttr_ICEX_##brattr) \ ++ err = 0; \ ++ goto out; \ ++ } \ ++ } while (0) ++ ++ cmp(SEC, SECURITY); ++ cmp(SYS, SYSTEM); ++ cmp(TR, TRUSTED); ++ cmp(USR, USER); ++#undef cmp ++ ++ if (ignore_flags & AuBrAttr_ICEX_OTH) ++ err = 0; ++ ++out: ++ return err; ++} ++ ++static const int au_xattr_out_of_list = AuBrAttr_ICEX_OTH << 1; ++ ++static int au_do_cpup_xattr(struct dentry *h_dst, struct dentry *h_src, ++ char *name, char **buf, unsigned int ignore_flags, ++ unsigned int verbose) ++{ ++ int err; ++ ssize_t ssz; ++ struct inode *h_idst; ++ ++ ssz = vfs_getxattr_alloc(h_src, name, buf, 0, GFP_NOFS); ++ err = ssz; ++ if (unlikely(err <= 0)) { ++ if (err == -ENODATA ++ || (err == -EOPNOTSUPP ++ && ((ignore_flags & au_xattr_out_of_list) ++ || (au_test_nfs_noacl(d_inode(h_src)) ++ && (!strcmp(name, XATTR_NAME_POSIX_ACL_ACCESS) ++ || !strcmp(name, ++ XATTR_NAME_POSIX_ACL_DEFAULT)))) ++ )) ++ err = 0; ++ if (err && (verbose || au_debug_test())) ++ pr_err("%s, err %d\n", name, err); ++ goto out; ++ } ++ ++ /* unlock it temporary */ ++ h_idst = d_inode(h_dst); ++ inode_unlock(h_idst); ++ err = vfsub_setxattr(h_dst, name, *buf, ssz, /*flags*/0); ++ inode_lock_nested(h_idst, AuLsc_I_CHILD2); ++ if (unlikely(err)) { ++ if (verbose || au_debug_test()) ++ pr_err("%s, err %d\n", name, err); ++ err = au_xattr_ignore(err, name, ignore_flags); ++ } ++ ++out: ++ return err; ++} ++ ++int au_cpup_xattr(struct dentry *h_dst, struct dentry *h_src, int ignore_flags, ++ unsigned int verbose) ++{ ++ int err, unlocked, acl_access, acl_default; ++ ssize_t ssz; ++ struct inode *h_isrc, *h_idst; ++ char *value, *p, *o, *e; ++ ++ /* try stopping to update the source inode while we are referencing */ ++ /* there should not be the parent-child relationship between them */ ++ h_isrc = d_inode(h_src); ++ h_idst = d_inode(h_dst); ++ inode_unlock(h_idst); ++ vfsub_inode_lock_shared_nested(h_isrc, AuLsc_I_CHILD); ++ inode_lock_nested(h_idst, AuLsc_I_CHILD2); ++ unlocked = 0; ++ ++ /* some filesystems don't list POSIX ACL, for example tmpfs */ ++ ssz = vfs_listxattr(h_src, NULL, 0); ++ err = ssz; ++ if (unlikely(err < 0)) { ++ AuTraceErr(err); ++ if (err == -ENODATA ++ || err == -EOPNOTSUPP) ++ err = 0; /* ignore */ ++ goto out; ++ } ++ ++ err = 0; ++ p = NULL; ++ o = NULL; ++ if (ssz) { ++ err = -ENOMEM; ++ p = kmalloc(ssz, GFP_NOFS); ++ o = p; ++ if (unlikely(!p)) ++ goto out; ++ err = vfs_listxattr(h_src, p, ssz); ++ } ++ inode_unlock_shared(h_isrc); ++ unlocked = 1; ++ AuDbg("err %d, ssz %zd\n", err, ssz); ++ if (unlikely(err < 0)) ++ goto out_free; ++ ++ err = 0; ++ e = p + ssz; ++ value = NULL; ++ acl_access = 0; ++ acl_default = 0; ++ while (!err && p < e) { ++ acl_access |= !strncmp(p, XATTR_NAME_POSIX_ACL_ACCESS, ++ sizeof(XATTR_NAME_POSIX_ACL_ACCESS) - 1); ++ acl_default |= !strncmp(p, XATTR_NAME_POSIX_ACL_DEFAULT, ++ sizeof(XATTR_NAME_POSIX_ACL_DEFAULT) ++ - 1); ++ err = au_do_cpup_xattr(h_dst, h_src, p, &value, ignore_flags, ++ verbose); ++ p += strlen(p) + 1; ++ } ++ AuTraceErr(err); ++ ignore_flags |= au_xattr_out_of_list; ++ if (!err && !acl_access) { ++ err = au_do_cpup_xattr(h_dst, h_src, ++ XATTR_NAME_POSIX_ACL_ACCESS, &value, ++ ignore_flags, verbose); ++ AuTraceErr(err); ++ } ++ if (!err && !acl_default) { ++ err = au_do_cpup_xattr(h_dst, h_src, ++ XATTR_NAME_POSIX_ACL_DEFAULT, &value, ++ ignore_flags, verbose); ++ AuTraceErr(err); ++ } ++ ++ kfree(value); ++ ++out_free: ++ kfree(o); ++out: ++ if (!unlocked) ++ inode_unlock_shared(h_isrc); ++ AuTraceErr(err); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static int au_smack_reentering(struct super_block *sb) ++{ ++#if IS_ENABLED(CONFIG_SECURITY_SMACK) ++ /* ++ * as a part of lookup, smack_d_instantiate() is called, and it calls ++ * i_op->getxattr(). ouch. ++ */ ++ return si_pid_test(sb); ++#else ++ return 0; ++#endif ++} ++ ++enum { ++ AU_XATTR_LIST, ++ AU_XATTR_GET ++}; ++ ++struct au_lgxattr { ++ int type; ++ union { ++ struct { ++ char *list; ++ size_t size; ++ } list; ++ struct { ++ const char *name; ++ void *value; ++ size_t size; ++ } get; ++ } u; ++}; ++ ++static ssize_t au_lgxattr(struct dentry *dentry, struct au_lgxattr *arg) ++{ ++ ssize_t err; ++ int reenter; ++ struct path h_path; ++ struct super_block *sb; ++ ++ sb = dentry->d_sb; ++ reenter = au_smack_reentering(sb); ++ if (!reenter) { ++ err = si_read_lock(sb, AuLock_FLUSH | AuLock_NOPLM); ++ if (unlikely(err)) ++ goto out; ++ } ++ err = au_h_path_getattr(dentry, /*force*/1, &h_path, reenter); ++ if (unlikely(err)) ++ goto out_si; ++ if (unlikely(!h_path.dentry)) ++ /* illegally overlapped or something */ ++ goto out_di; /* pretending success */ ++ ++ /* always topmost entry only */ ++ switch (arg->type) { ++ case AU_XATTR_LIST: ++ err = vfs_listxattr(h_path.dentry, ++ arg->u.list.list, arg->u.list.size); ++ break; ++ case AU_XATTR_GET: ++ AuDebugOn(d_is_negative(h_path.dentry)); ++ err = vfs_getxattr(h_path.dentry, ++ arg->u.get.name, arg->u.get.value, ++ arg->u.get.size); ++ break; ++ } ++ ++out_di: ++ if (!reenter) ++ di_read_unlock(dentry, AuLock_IR); ++out_si: ++ if (!reenter) ++ si_read_unlock(sb); ++out: ++ AuTraceErr(err); ++ return err; ++} ++ ++ssize_t aufs_listxattr(struct dentry *dentry, char *list, size_t size) ++{ ++ struct au_lgxattr arg = { ++ .type = AU_XATTR_LIST, ++ .u.list = { ++ .list = list, ++ .size = size ++ }, ++ }; ++ ++ return au_lgxattr(dentry, &arg); ++} ++ ++static ssize_t au_getxattr(struct dentry *dentry, ++ struct inode *inode __maybe_unused, ++ const char *name, void *value, size_t size) ++{ ++ struct au_lgxattr arg = { ++ .type = AU_XATTR_GET, ++ .u.get = { ++ .name = name, ++ .value = value, ++ .size = size ++ }, ++ }; ++ ++ return au_lgxattr(dentry, &arg); ++} ++ ++static int au_setxattr(struct dentry *dentry, struct inode *inode, ++ const char *name, const void *value, size_t size, ++ int flags) ++{ ++ struct au_sxattr arg = { ++ .type = AU_XATTR_SET, ++ .u.set = { ++ .name = name, ++ .value = value, ++ .size = size, ++ .flags = flags ++ }, ++ }; ++ ++ return au_sxattr(dentry, inode, &arg); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static int au_xattr_get(const struct xattr_handler *handler, ++ struct dentry *dentry, struct inode *inode, ++ const char *name, void *buffer, size_t size) ++{ ++ return au_getxattr(dentry, inode, name, buffer, size); ++} ++ ++static int au_xattr_set(const struct xattr_handler *handler, ++ struct dentry *dentry, struct inode *inode, ++ const char *name, const void *value, size_t size, ++ int flags) ++{ ++ return au_setxattr(dentry, inode, name, value, size, flags); ++} ++ ++static const struct xattr_handler au_xattr_handler = { ++ .name = "", ++ .prefix = "", ++ .get = au_xattr_get, ++ .set = au_xattr_set ++}; ++ ++static const struct xattr_handler *au_xattr_handlers[] = { ++#ifdef CONFIG_FS_POSIX_ACL ++ &posix_acl_access_xattr_handler, ++ &posix_acl_default_xattr_handler, ++#endif ++ &au_xattr_handler, /* must be last */ ++ NULL ++}; ++ ++void au_xattr_init(struct super_block *sb) ++{ ++ sb->s_xattr = au_xattr_handlers; ++} +diff -Naur null/fs/aufs/xino.c linux-4.15/fs/aufs/xino.c +--- /dev/null ++++ linux-4.15/fs/aufs/xino.c 2018-02-25 02:38:09.207738436 +0100 +@@ -0,0 +1,1469 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++/* ++ * external inode number translation table and bitmap ++ */ ++ ++#include ++#include ++#include "aufs.h" ++ ++static ssize_t xino_fread_wkq(vfs_readf_t func, struct file *file, void *buf, ++ size_t size, loff_t *pos); ++ ++/* todo: unnecessary to support mmap_sem since kernel-space? */ ++ssize_t xino_fread(vfs_readf_t func, struct file *file, void *kbuf, size_t size, ++ loff_t *pos) ++{ ++ ssize_t err; ++ mm_segment_t oldfs; ++ union { ++ void *k; ++ char __user *u; ++ } buf; ++ int i; ++ const int prevent_endless = 10; ++ ++ i = 0; ++ buf.k = kbuf; ++ oldfs = get_fs(); ++ set_fs(KERNEL_DS); ++ do { ++ err = func(file, buf.u, size, pos); ++ if (err == -EINTR ++ && !au_wkq_test() ++ && fatal_signal_pending(current)) { ++ set_fs(oldfs); ++ err = xino_fread_wkq(func, file, kbuf, size, pos); ++ BUG_ON(err == -EINTR); ++ oldfs = get_fs(); ++ set_fs(KERNEL_DS); ++ } ++ } while (i++ < prevent_endless ++ && (err == -EAGAIN || err == -EINTR)); ++ set_fs(oldfs); ++ ++#if 0 /* reserved for future use */ ++ if (err > 0) ++ fsnotify_access(file->f_path.dentry); ++#endif ++ ++ return err; ++} ++ ++struct xino_fread_args { ++ ssize_t *errp; ++ vfs_readf_t func; ++ struct file *file; ++ void *buf; ++ size_t size; ++ loff_t *pos; ++}; ++ ++static void call_xino_fread(void *args) ++{ ++ struct xino_fread_args *a = args; ++ *a->errp = xino_fread(a->func, a->file, a->buf, a->size, a->pos); ++} ++ ++static ssize_t xino_fread_wkq(vfs_readf_t func, struct file *file, void *buf, ++ size_t size, loff_t *pos) ++{ ++ ssize_t err; ++ int wkq_err; ++ struct xino_fread_args args = { ++ .errp = &err, ++ .func = func, ++ .file = file, ++ .buf = buf, ++ .size = size, ++ .pos = pos ++ }; ++ ++ wkq_err = au_wkq_wait(call_xino_fread, &args); ++ if (unlikely(wkq_err)) ++ err = wkq_err; ++ ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static ssize_t xino_fwrite_wkq(vfs_writef_t func, struct file *file, void *buf, ++ size_t size, loff_t *pos); ++ ++static ssize_t do_xino_fwrite(vfs_writef_t func, struct file *file, void *kbuf, ++ size_t size, loff_t *pos) ++{ ++ ssize_t err; ++ mm_segment_t oldfs; ++ union { ++ void *k; ++ const char __user *u; ++ } buf; ++ int i; ++ const int prevent_endless = 10; ++ ++ i = 0; ++ buf.k = kbuf; ++ oldfs = get_fs(); ++ set_fs(KERNEL_DS); ++ do { ++ err = func(file, buf.u, size, pos); ++ if (err == -EINTR ++ && !au_wkq_test() ++ && fatal_signal_pending(current)) { ++ set_fs(oldfs); ++ err = xino_fwrite_wkq(func, file, kbuf, size, pos); ++ BUG_ON(err == -EINTR); ++ oldfs = get_fs(); ++ set_fs(KERNEL_DS); ++ } ++ } while (i++ < prevent_endless ++ && (err == -EAGAIN || err == -EINTR)); ++ set_fs(oldfs); ++ ++#if 0 /* reserved for future use */ ++ if (err > 0) ++ fsnotify_modify(file->f_path.dentry); ++#endif ++ ++ return err; ++} ++ ++struct do_xino_fwrite_args { ++ ssize_t *errp; ++ vfs_writef_t func; ++ struct file *file; ++ void *buf; ++ size_t size; ++ loff_t *pos; ++}; ++ ++static void call_do_xino_fwrite(void *args) ++{ ++ struct do_xino_fwrite_args *a = args; ++ *a->errp = do_xino_fwrite(a->func, a->file, a->buf, a->size, a->pos); ++} ++ ++static ssize_t xino_fwrite_wkq(vfs_writef_t func, struct file *file, void *buf, ++ size_t size, loff_t *pos) ++{ ++ ssize_t err; ++ int wkq_err; ++ struct do_xino_fwrite_args args = { ++ .errp = &err, ++ .func = func, ++ .file = file, ++ .buf = buf, ++ .size = size, ++ .pos = pos ++ }; ++ ++ /* ++ * it breaks RLIMIT_FSIZE and normal user's limit, ++ * users should care about quota and real 'filesystem full.' ++ */ ++ wkq_err = au_wkq_wait(call_do_xino_fwrite, &args); ++ if (unlikely(wkq_err)) ++ err = wkq_err; ++ ++ return err; ++} ++ ++ssize_t xino_fwrite(vfs_writef_t func, struct file *file, void *buf, ++ size_t size, loff_t *pos) ++{ ++ ssize_t err; ++ ++ if (rlimit(RLIMIT_FSIZE) == RLIM_INFINITY) { ++ lockdep_off(); ++ err = do_xino_fwrite(func, file, buf, size, pos); ++ lockdep_on(); ++ } else { ++ lockdep_off(); ++ err = xino_fwrite_wkq(func, file, buf, size, pos); ++ lockdep_on(); ++ } ++ ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* ++ * create a new xinofile at the same place/path as @base_file. ++ */ ++struct file *au_xino_create2(struct file *base_file, struct file *copy_src) ++{ ++ struct file *file; ++ struct dentry *base, *parent; ++ struct inode *dir, *delegated; ++ struct qstr *name; ++ struct path path; ++ int err; ++ ++ base = base_file->f_path.dentry; ++ parent = base->d_parent; /* dir inode is locked */ ++ dir = d_inode(parent); ++ IMustLock(dir); ++ ++ file = ERR_PTR(-EINVAL); ++ name = &base->d_name; ++ path.dentry = vfsub_lookup_one_len(name->name, parent, name->len); ++ if (IS_ERR(path.dentry)) { ++ file = (void *)path.dentry; ++ pr_err("%pd lookup err %ld\n", ++ base, PTR_ERR(path.dentry)); ++ goto out; ++ } ++ ++ /* no need to mnt_want_write() since we call dentry_open() later */ ++ err = vfs_create(dir, path.dentry, S_IRUGO | S_IWUGO, NULL); ++ if (unlikely(err)) { ++ file = ERR_PTR(err); ++ pr_err("%pd create err %d\n", base, err); ++ goto out_dput; ++ } ++ ++ path.mnt = base_file->f_path.mnt; ++ file = vfsub_dentry_open(&path, ++ O_RDWR | O_CREAT | O_EXCL | O_LARGEFILE ++ /* | __FMODE_NONOTIFY */); ++ if (IS_ERR(file)) { ++ pr_err("%pd open err %ld\n", base, PTR_ERR(file)); ++ goto out_dput; ++ } ++ ++ delegated = NULL; ++ err = vfsub_unlink(dir, &file->f_path, &delegated, /*force*/0); ++ if (unlikely(err == -EWOULDBLOCK)) { ++ pr_warn("cannot retry for NFSv4 delegation" ++ " for an internal unlink\n"); ++ iput(delegated); ++ } ++ if (unlikely(err)) { ++ pr_err("%pd unlink err %d\n", base, err); ++ goto out_fput; ++ } ++ ++ if (copy_src) { ++ /* no one can touch copy_src xino */ ++ err = au_copy_file(file, copy_src, vfsub_f_size_read(copy_src)); ++ if (unlikely(err)) { ++ pr_err("%pd copy err %d\n", base, err); ++ goto out_fput; ++ } ++ } ++ goto out_dput; /* success */ ++ ++out_fput: ++ fput(file); ++ file = ERR_PTR(err); ++out_dput: ++ dput(path.dentry); ++out: ++ return file; ++} ++ ++struct au_xino_lock_dir { ++ struct au_hinode *hdir; ++ struct dentry *parent; ++ struct inode *dir; ++}; ++ ++static void au_xino_lock_dir(struct super_block *sb, struct file *xino, ++ struct au_xino_lock_dir *ldir) ++{ ++ aufs_bindex_t brid, bindex; ++ ++ ldir->hdir = NULL; ++ bindex = -1; ++ brid = au_xino_brid(sb); ++ if (brid >= 0) ++ bindex = au_br_index(sb, brid); ++ if (bindex >= 0) { ++ ldir->hdir = au_hi(d_inode(sb->s_root), bindex); ++ au_hn_inode_lock_nested(ldir->hdir, AuLsc_I_PARENT); ++ } else { ++ ldir->parent = dget_parent(xino->f_path.dentry); ++ ldir->dir = d_inode(ldir->parent); ++ inode_lock_nested(ldir->dir, AuLsc_I_PARENT); ++ } ++} ++ ++static void au_xino_unlock_dir(struct au_xino_lock_dir *ldir) ++{ ++ if (ldir->hdir) ++ au_hn_inode_unlock(ldir->hdir); ++ else { ++ inode_unlock(ldir->dir); ++ dput(ldir->parent); ++ } ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* trucate xino files asynchronously */ ++ ++int au_xino_trunc(struct super_block *sb, aufs_bindex_t bindex) ++{ ++ int err; ++ unsigned long jiffy; ++ blkcnt_t blocks; ++ aufs_bindex_t bi, bbot; ++ struct kstatfs *st; ++ struct au_branch *br; ++ struct file *new_xino, *file; ++ struct super_block *h_sb; ++ struct au_xino_lock_dir ldir; ++ ++ err = -ENOMEM; ++ st = kmalloc(sizeof(*st), GFP_NOFS); ++ if (unlikely(!st)) ++ goto out; ++ ++ err = -EINVAL; ++ bbot = au_sbbot(sb); ++ if (unlikely(bindex < 0 || bbot < bindex)) ++ goto out_st; ++ br = au_sbr(sb, bindex); ++ file = br->br_xino.xi_file; ++ if (!file) ++ goto out_st; ++ ++ err = vfs_statfs(&file->f_path, st); ++ if (unlikely(err)) ++ AuErr1("statfs err %d, ignored\n", err); ++ jiffy = jiffies; ++ blocks = file_inode(file)->i_blocks; ++ pr_info("begin truncating xino(b%d), ib%llu, %llu/%llu free blks\n", ++ bindex, (u64)blocks, st->f_bfree, st->f_blocks); ++ ++ au_xino_lock_dir(sb, file, &ldir); ++ /* mnt_want_write() is unnecessary here */ ++ new_xino = au_xino_create2(file, file); ++ au_xino_unlock_dir(&ldir); ++ err = PTR_ERR(new_xino); ++ if (IS_ERR(new_xino)) { ++ pr_err("err %d, ignored\n", err); ++ goto out_st; ++ } ++ err = 0; ++ fput(file); ++ br->br_xino.xi_file = new_xino; ++ ++ h_sb = au_br_sb(br); ++ for (bi = 0; bi <= bbot; bi++) { ++ if (unlikely(bi == bindex)) ++ continue; ++ br = au_sbr(sb, bi); ++ if (au_br_sb(br) != h_sb) ++ continue; ++ ++ fput(br->br_xino.xi_file); ++ br->br_xino.xi_file = new_xino; ++ get_file(new_xino); ++ } ++ ++ err = vfs_statfs(&new_xino->f_path, st); ++ if (!err) { ++ pr_info("end truncating xino(b%d), ib%llu, %llu/%llu free blks\n", ++ bindex, (u64)file_inode(new_xino)->i_blocks, ++ st->f_bfree, st->f_blocks); ++ if (file_inode(new_xino)->i_blocks < blocks) ++ au_sbi(sb)->si_xino_jiffy = jiffy; ++ } else ++ AuErr1("statfs err %d, ignored\n", err); ++ ++out_st: ++ kfree(st); ++out: ++ return err; ++} ++ ++struct xino_do_trunc_args { ++ struct super_block *sb; ++ struct au_branch *br; ++}; ++ ++static void xino_do_trunc(void *_args) ++{ ++ struct xino_do_trunc_args *args = _args; ++ struct super_block *sb; ++ struct au_branch *br; ++ struct inode *dir; ++ int err; ++ aufs_bindex_t bindex; ++ ++ err = 0; ++ sb = args->sb; ++ dir = d_inode(sb->s_root); ++ br = args->br; ++ ++ si_noflush_write_lock(sb); ++ ii_read_lock_parent(dir); ++ bindex = au_br_index(sb, br->br_id); ++ err = au_xino_trunc(sb, bindex); ++ ii_read_unlock(dir); ++ if (unlikely(err)) ++ pr_warn("err b%d, (%d)\n", bindex, err); ++ atomic_dec(&br->br_xino_running); ++ au_br_put(br); ++ si_write_unlock(sb); ++ au_nwt_done(&au_sbi(sb)->si_nowait); ++ kfree(args); ++} ++ ++static int xino_trunc_test(struct super_block *sb, struct au_branch *br) ++{ ++ int err; ++ struct kstatfs st; ++ struct au_sbinfo *sbinfo; ++ ++ /* todo: si_xino_expire and the ratio should be customizable */ ++ sbinfo = au_sbi(sb); ++ if (time_before(jiffies, ++ sbinfo->si_xino_jiffy + sbinfo->si_xino_expire)) ++ return 0; ++ ++ /* truncation border */ ++ err = vfs_statfs(&br->br_xino.xi_file->f_path, &st); ++ if (unlikely(err)) { ++ AuErr1("statfs err %d, ignored\n", err); ++ return 0; ++ } ++ if (div64_u64(st.f_bfree * 100, st.f_blocks) >= AUFS_XINO_DEF_TRUNC) ++ return 0; ++ ++ return 1; ++} ++ ++static void xino_try_trunc(struct super_block *sb, struct au_branch *br) ++{ ++ struct xino_do_trunc_args *args; ++ int wkq_err; ++ ++ if (!xino_trunc_test(sb, br)) ++ return; ++ ++ if (atomic_inc_return(&br->br_xino_running) > 1) ++ goto out; ++ ++ /* lock and kfree() will be called in trunc_xino() */ ++ args = kmalloc(sizeof(*args), GFP_NOFS); ++ if (unlikely(!args)) { ++ AuErr1("no memory\n"); ++ goto out; ++ } ++ ++ au_br_get(br); ++ args->sb = sb; ++ args->br = br; ++ wkq_err = au_wkq_nowait(xino_do_trunc, args, sb, /*flags*/0); ++ if (!wkq_err) ++ return; /* success */ ++ ++ pr_err("wkq %d\n", wkq_err); ++ au_br_put(br); ++ kfree(args); ++ ++out: ++ atomic_dec(&br->br_xino_running); ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static int au_xino_do_write(vfs_writef_t write, struct file *file, ++ ino_t h_ino, ino_t ino) ++{ ++ loff_t pos; ++ ssize_t sz; ++ ++ pos = h_ino; ++ if (unlikely(au_loff_max / sizeof(ino) - 1 < pos)) { ++ AuIOErr1("too large hi%lu\n", (unsigned long)h_ino); ++ return -EFBIG; ++ } ++ pos *= sizeof(ino); ++ sz = xino_fwrite(write, file, &ino, sizeof(ino), &pos); ++ if (sz == sizeof(ino)) ++ return 0; /* success */ ++ ++ AuIOErr("write failed (%zd)\n", sz); ++ return -EIO; ++} ++ ++/* ++ * write @ino to the xinofile for the specified branch{@sb, @bindex} ++ * at the position of @h_ino. ++ * even if @ino is zero, it is written to the xinofile and means no entry. ++ * if the size of the xino file on a specific filesystem exceeds the watermark, ++ * try truncating it. ++ */ ++int au_xino_write(struct super_block *sb, aufs_bindex_t bindex, ino_t h_ino, ++ ino_t ino) ++{ ++ int err; ++ unsigned int mnt_flags; ++ struct au_branch *br; ++ ++ BUILD_BUG_ON(sizeof(long long) != sizeof(au_loff_max) ++ || ((loff_t)-1) > 0); ++ SiMustAnyLock(sb); ++ ++ mnt_flags = au_mntflags(sb); ++ if (!au_opt_test(mnt_flags, XINO)) ++ return 0; ++ ++ br = au_sbr(sb, bindex); ++ err = au_xino_do_write(au_sbi(sb)->si_xwrite, br->br_xino.xi_file, ++ h_ino, ino); ++ if (!err) { ++ if (au_opt_test(mnt_flags, TRUNC_XINO) ++ && au_test_fs_trunc_xino(au_br_sb(br))) ++ xino_try_trunc(sb, br); ++ return 0; /* success */ ++ } ++ ++ AuIOErr("write failed (%d)\n", err); ++ return -EIO; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* aufs inode number bitmap */ ++ ++static const int page_bits = (int)PAGE_SIZE * BITS_PER_BYTE; ++static ino_t xib_calc_ino(unsigned long pindex, int bit) ++{ ++ ino_t ino; ++ ++ AuDebugOn(bit < 0 || page_bits <= bit); ++ ino = AUFS_FIRST_INO + pindex * page_bits + bit; ++ return ino; ++} ++ ++static void xib_calc_bit(ino_t ino, unsigned long *pindex, int *bit) ++{ ++ AuDebugOn(ino < AUFS_FIRST_INO); ++ ino -= AUFS_FIRST_INO; ++ *pindex = ino / page_bits; ++ *bit = ino % page_bits; ++} ++ ++static int xib_pindex(struct super_block *sb, unsigned long pindex) ++{ ++ int err; ++ loff_t pos; ++ ssize_t sz; ++ struct au_sbinfo *sbinfo; ++ struct file *xib; ++ unsigned long *p; ++ ++ sbinfo = au_sbi(sb); ++ MtxMustLock(&sbinfo->si_xib_mtx); ++ AuDebugOn(pindex > ULONG_MAX / PAGE_SIZE ++ || !au_opt_test(sbinfo->si_mntflags, XINO)); ++ ++ if (pindex == sbinfo->si_xib_last_pindex) ++ return 0; ++ ++ xib = sbinfo->si_xib; ++ p = sbinfo->si_xib_buf; ++ pos = sbinfo->si_xib_last_pindex; ++ pos *= PAGE_SIZE; ++ sz = xino_fwrite(sbinfo->si_xwrite, xib, p, PAGE_SIZE, &pos); ++ if (unlikely(sz != PAGE_SIZE)) ++ goto out; ++ ++ pos = pindex; ++ pos *= PAGE_SIZE; ++ if (vfsub_f_size_read(xib) >= pos + PAGE_SIZE) ++ sz = xino_fread(sbinfo->si_xread, xib, p, PAGE_SIZE, &pos); ++ else { ++ memset(p, 0, PAGE_SIZE); ++ sz = xino_fwrite(sbinfo->si_xwrite, xib, p, PAGE_SIZE, &pos); ++ } ++ if (sz == PAGE_SIZE) { ++ sbinfo->si_xib_last_pindex = pindex; ++ return 0; /* success */ ++ } ++ ++out: ++ AuIOErr1("write failed (%zd)\n", sz); ++ err = sz; ++ if (sz >= 0) ++ err = -EIO; ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++static void au_xib_clear_bit(struct inode *inode) ++{ ++ int err, bit; ++ unsigned long pindex; ++ struct super_block *sb; ++ struct au_sbinfo *sbinfo; ++ ++ AuDebugOn(inode->i_nlink); ++ ++ sb = inode->i_sb; ++ xib_calc_bit(inode->i_ino, &pindex, &bit); ++ AuDebugOn(page_bits <= bit); ++ sbinfo = au_sbi(sb); ++ mutex_lock(&sbinfo->si_xib_mtx); ++ err = xib_pindex(sb, pindex); ++ if (!err) { ++ clear_bit(bit, sbinfo->si_xib_buf); ++ sbinfo->si_xib_next_bit = bit; ++ } ++ mutex_unlock(&sbinfo->si_xib_mtx); ++} ++ ++/* for s_op->delete_inode() */ ++void au_xino_delete_inode(struct inode *inode, const int unlinked) ++{ ++ int err; ++ unsigned int mnt_flags; ++ aufs_bindex_t bindex, bbot, bi; ++ unsigned char try_trunc; ++ struct au_iinfo *iinfo; ++ struct super_block *sb; ++ struct au_hinode *hi; ++ struct inode *h_inode; ++ struct au_branch *br; ++ vfs_writef_t xwrite; ++ ++ AuDebugOn(au_is_bad_inode(inode)); ++ ++ sb = inode->i_sb; ++ mnt_flags = au_mntflags(sb); ++ if (!au_opt_test(mnt_flags, XINO) ++ || inode->i_ino == AUFS_ROOT_INO) ++ return; ++ ++ if (unlinked) { ++ au_xigen_inc(inode); ++ au_xib_clear_bit(inode); ++ } ++ ++ iinfo = au_ii(inode); ++ bindex = iinfo->ii_btop; ++ if (bindex < 0) ++ return; ++ ++ xwrite = au_sbi(sb)->si_xwrite; ++ try_trunc = !!au_opt_test(mnt_flags, TRUNC_XINO); ++ hi = au_hinode(iinfo, bindex); ++ bbot = iinfo->ii_bbot; ++ for (; bindex <= bbot; bindex++, hi++) { ++ h_inode = hi->hi_inode; ++ if (!h_inode ++ || (!unlinked && h_inode->i_nlink)) ++ continue; ++ ++ /* inode may not be revalidated */ ++ bi = au_br_index(sb, hi->hi_id); ++ if (bi < 0) ++ continue; ++ ++ br = au_sbr(sb, bi); ++ err = au_xino_do_write(xwrite, br->br_xino.xi_file, ++ h_inode->i_ino, /*ino*/0); ++ if (!err && try_trunc ++ && au_test_fs_trunc_xino(au_br_sb(br))) ++ xino_try_trunc(sb, br); ++ } ++} ++ ++/* get an unused inode number from bitmap */ ++ino_t au_xino_new_ino(struct super_block *sb) ++{ ++ ino_t ino; ++ unsigned long *p, pindex, ul, pend; ++ struct au_sbinfo *sbinfo; ++ struct file *file; ++ int free_bit, err; ++ ++ if (!au_opt_test(au_mntflags(sb), XINO)) ++ return iunique(sb, AUFS_FIRST_INO); ++ ++ sbinfo = au_sbi(sb); ++ mutex_lock(&sbinfo->si_xib_mtx); ++ p = sbinfo->si_xib_buf; ++ free_bit = sbinfo->si_xib_next_bit; ++ if (free_bit < page_bits && !test_bit(free_bit, p)) ++ goto out; /* success */ ++ free_bit = find_first_zero_bit(p, page_bits); ++ if (free_bit < page_bits) ++ goto out; /* success */ ++ ++ pindex = sbinfo->si_xib_last_pindex; ++ for (ul = pindex - 1; ul < ULONG_MAX; ul--) { ++ err = xib_pindex(sb, ul); ++ if (unlikely(err)) ++ goto out_err; ++ free_bit = find_first_zero_bit(p, page_bits); ++ if (free_bit < page_bits) ++ goto out; /* success */ ++ } ++ ++ file = sbinfo->si_xib; ++ pend = vfsub_f_size_read(file) / PAGE_SIZE; ++ for (ul = pindex + 1; ul <= pend; ul++) { ++ err = xib_pindex(sb, ul); ++ if (unlikely(err)) ++ goto out_err; ++ free_bit = find_first_zero_bit(p, page_bits); ++ if (free_bit < page_bits) ++ goto out; /* success */ ++ } ++ BUG(); ++ ++out: ++ set_bit(free_bit, p); ++ sbinfo->si_xib_next_bit = free_bit + 1; ++ pindex = sbinfo->si_xib_last_pindex; ++ mutex_unlock(&sbinfo->si_xib_mtx); ++ ino = xib_calc_ino(pindex, free_bit); ++ AuDbg("i%lu\n", (unsigned long)ino); ++ return ino; ++out_err: ++ mutex_unlock(&sbinfo->si_xib_mtx); ++ AuDbg("i0\n"); ++ return 0; ++} ++ ++/* ++ * read @ino from xinofile for the specified branch{@sb, @bindex} ++ * at the position of @h_ino. ++ * if @ino does not exist and @do_new is true, get new one. ++ */ ++int au_xino_read(struct super_block *sb, aufs_bindex_t bindex, ino_t h_ino, ++ ino_t *ino) ++{ ++ int err; ++ ssize_t sz; ++ loff_t pos; ++ struct file *file; ++ struct au_sbinfo *sbinfo; ++ ++ *ino = 0; ++ if (!au_opt_test(au_mntflags(sb), XINO)) ++ return 0; /* no xino */ ++ ++ err = 0; ++ sbinfo = au_sbi(sb); ++ pos = h_ino; ++ if (unlikely(au_loff_max / sizeof(*ino) - 1 < pos)) { ++ AuIOErr1("too large hi%lu\n", (unsigned long)h_ino); ++ return -EFBIG; ++ } ++ pos *= sizeof(*ino); ++ ++ file = au_sbr(sb, bindex)->br_xino.xi_file; ++ if (vfsub_f_size_read(file) < pos + sizeof(*ino)) ++ return 0; /* no ino */ ++ ++ sz = xino_fread(sbinfo->si_xread, file, ino, sizeof(*ino), &pos); ++ if (sz == sizeof(*ino)) ++ return 0; /* success */ ++ ++ err = sz; ++ if (unlikely(sz >= 0)) { ++ err = -EIO; ++ AuIOErr("xino read error (%zd)\n", sz); ++ } ++ ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* create and set a new xino file */ ++ ++struct file *au_xino_create(struct super_block *sb, char *fname, int silent) ++{ ++ struct file *file; ++ struct dentry *h_parent, *d; ++ struct inode *h_dir, *inode; ++ int err; ++ ++ /* ++ * at mount-time, and the xino file is the default path, ++ * hnotify is disabled so we have no notify events to ignore. ++ * when a user specified the xino, we cannot get au_hdir to be ignored. ++ */ ++ file = vfsub_filp_open(fname, O_RDWR | O_CREAT | O_EXCL | O_LARGEFILE ++ /* | __FMODE_NONOTIFY */, ++ S_IRUGO | S_IWUGO); ++ if (IS_ERR(file)) { ++ if (!silent) ++ pr_err("open %s(%ld)\n", fname, PTR_ERR(file)); ++ return file; ++ } ++ ++ /* keep file count */ ++ err = 0; ++ inode = file_inode(file); ++ h_parent = dget_parent(file->f_path.dentry); ++ h_dir = d_inode(h_parent); ++ inode_lock_nested(h_dir, AuLsc_I_PARENT); ++ /* mnt_want_write() is unnecessary here */ ++ /* no delegation since it is just created */ ++ if (inode->i_nlink) ++ err = vfsub_unlink(h_dir, &file->f_path, /*delegated*/NULL, ++ /*force*/0); ++ inode_unlock(h_dir); ++ dput(h_parent); ++ if (unlikely(err)) { ++ if (!silent) ++ pr_err("unlink %s(%d)\n", fname, err); ++ goto out; ++ } ++ ++ err = -EINVAL; ++ d = file->f_path.dentry; ++ if (unlikely(sb == d->d_sb)) { ++ if (!silent) ++ pr_err("%s must be outside\n", fname); ++ goto out; ++ } ++ if (unlikely(au_test_fs_bad_xino(d->d_sb))) { ++ if (!silent) ++ pr_err("xino doesn't support %s(%s)\n", ++ fname, au_sbtype(d->d_sb)); ++ goto out; ++ } ++ return file; /* success */ ++ ++out: ++ fput(file); ++ file = ERR_PTR(err); ++ return file; ++} ++ ++/* ++ * find another branch who is on the same filesystem of the specified ++ * branch{@btgt}. search until @bbot. ++ */ ++static int is_sb_shared(struct super_block *sb, aufs_bindex_t btgt, ++ aufs_bindex_t bbot) ++{ ++ aufs_bindex_t bindex; ++ struct super_block *tgt_sb = au_sbr_sb(sb, btgt); ++ ++ for (bindex = 0; bindex < btgt; bindex++) ++ if (unlikely(tgt_sb == au_sbr_sb(sb, bindex))) ++ return bindex; ++ for (bindex++; bindex <= bbot; bindex++) ++ if (unlikely(tgt_sb == au_sbr_sb(sb, bindex))) ++ return bindex; ++ return -1; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* ++ * initialize the xinofile for the specified branch @br ++ * at the place/path where @base_file indicates. ++ * test whether another branch is on the same filesystem or not, ++ * if @do_test is true. ++ */ ++int au_xino_br(struct super_block *sb, struct au_branch *br, ino_t h_ino, ++ struct file *base_file, int do_test) ++{ ++ int err; ++ ino_t ino; ++ aufs_bindex_t bbot, bindex; ++ struct au_branch *shared_br, *b; ++ struct file *file; ++ struct super_block *tgt_sb; ++ ++ shared_br = NULL; ++ bbot = au_sbbot(sb); ++ if (do_test) { ++ tgt_sb = au_br_sb(br); ++ for (bindex = 0; bindex <= bbot; bindex++) { ++ b = au_sbr(sb, bindex); ++ if (tgt_sb == au_br_sb(b)) { ++ shared_br = b; ++ break; ++ } ++ } ++ } ++ ++ if (!shared_br || !shared_br->br_xino.xi_file) { ++ struct au_xino_lock_dir ldir; ++ ++ au_xino_lock_dir(sb, base_file, &ldir); ++ /* mnt_want_write() is unnecessary here */ ++ file = au_xino_create2(base_file, NULL); ++ au_xino_unlock_dir(&ldir); ++ err = PTR_ERR(file); ++ if (IS_ERR(file)) ++ goto out; ++ br->br_xino.xi_file = file; ++ } else { ++ br->br_xino.xi_file = shared_br->br_xino.xi_file; ++ get_file(br->br_xino.xi_file); ++ } ++ ++ ino = AUFS_ROOT_INO; ++ err = au_xino_do_write(au_sbi(sb)->si_xwrite, br->br_xino.xi_file, ++ h_ino, ino); ++ if (unlikely(err)) { ++ fput(br->br_xino.xi_file); ++ br->br_xino.xi_file = NULL; ++ } ++ ++out: ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* trucate a xino bitmap file */ ++ ++/* todo: slow */ ++static int do_xib_restore(struct super_block *sb, struct file *file, void *page) ++{ ++ int err, bit; ++ ssize_t sz; ++ unsigned long pindex; ++ loff_t pos, pend; ++ struct au_sbinfo *sbinfo; ++ vfs_readf_t func; ++ ino_t *ino; ++ unsigned long *p; ++ ++ err = 0; ++ sbinfo = au_sbi(sb); ++ MtxMustLock(&sbinfo->si_xib_mtx); ++ p = sbinfo->si_xib_buf; ++ func = sbinfo->si_xread; ++ pend = vfsub_f_size_read(file); ++ pos = 0; ++ while (pos < pend) { ++ sz = xino_fread(func, file, page, PAGE_SIZE, &pos); ++ err = sz; ++ if (unlikely(sz <= 0)) ++ goto out; ++ ++ err = 0; ++ for (ino = page; sz > 0; ino++, sz -= sizeof(ino)) { ++ if (unlikely(*ino < AUFS_FIRST_INO)) ++ continue; ++ ++ xib_calc_bit(*ino, &pindex, &bit); ++ AuDebugOn(page_bits <= bit); ++ err = xib_pindex(sb, pindex); ++ if (!err) ++ set_bit(bit, p); ++ else ++ goto out; ++ } ++ } ++ ++out: ++ return err; ++} ++ ++static int xib_restore(struct super_block *sb) ++{ ++ int err; ++ aufs_bindex_t bindex, bbot; ++ void *page; ++ ++ err = -ENOMEM; ++ page = (void *)__get_free_page(GFP_NOFS); ++ if (unlikely(!page)) ++ goto out; ++ ++ err = 0; ++ bbot = au_sbbot(sb); ++ for (bindex = 0; !err && bindex <= bbot; bindex++) ++ if (!bindex || is_sb_shared(sb, bindex, bindex - 1) < 0) ++ err = do_xib_restore ++ (sb, au_sbr(sb, bindex)->br_xino.xi_file, page); ++ else ++ AuDbg("b%d\n", bindex); ++ free_page((unsigned long)page); ++ ++out: ++ return err; ++} ++ ++int au_xib_trunc(struct super_block *sb) ++{ ++ int err; ++ ssize_t sz; ++ loff_t pos; ++ struct au_xino_lock_dir ldir; ++ struct au_sbinfo *sbinfo; ++ unsigned long *p; ++ struct file *file; ++ ++ SiMustWriteLock(sb); ++ ++ err = 0; ++ sbinfo = au_sbi(sb); ++ if (!au_opt_test(sbinfo->si_mntflags, XINO)) ++ goto out; ++ ++ file = sbinfo->si_xib; ++ if (vfsub_f_size_read(file) <= PAGE_SIZE) ++ goto out; ++ ++ au_xino_lock_dir(sb, file, &ldir); ++ /* mnt_want_write() is unnecessary here */ ++ file = au_xino_create2(sbinfo->si_xib, NULL); ++ au_xino_unlock_dir(&ldir); ++ err = PTR_ERR(file); ++ if (IS_ERR(file)) ++ goto out; ++ fput(sbinfo->si_xib); ++ sbinfo->si_xib = file; ++ ++ p = sbinfo->si_xib_buf; ++ memset(p, 0, PAGE_SIZE); ++ pos = 0; ++ sz = xino_fwrite(sbinfo->si_xwrite, sbinfo->si_xib, p, PAGE_SIZE, &pos); ++ if (unlikely(sz != PAGE_SIZE)) { ++ err = sz; ++ AuIOErr("err %d\n", err); ++ if (sz >= 0) ++ err = -EIO; ++ goto out; ++ } ++ ++ mutex_lock(&sbinfo->si_xib_mtx); ++ /* mnt_want_write() is unnecessary here */ ++ err = xib_restore(sb); ++ mutex_unlock(&sbinfo->si_xib_mtx); ++ ++out: ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* ++ * xino mount option handlers ++ */ ++ ++/* xino bitmap */ ++static void xino_clear_xib(struct super_block *sb) ++{ ++ struct au_sbinfo *sbinfo; ++ ++ SiMustWriteLock(sb); ++ ++ sbinfo = au_sbi(sb); ++ sbinfo->si_xread = NULL; ++ sbinfo->si_xwrite = NULL; ++ if (sbinfo->si_xib) ++ fput(sbinfo->si_xib); ++ sbinfo->si_xib = NULL; ++ if (sbinfo->si_xib_buf) ++ free_page((unsigned long)sbinfo->si_xib_buf); ++ sbinfo->si_xib_buf = NULL; ++} ++ ++static int au_xino_set_xib(struct super_block *sb, struct file *base) ++{ ++ int err; ++ loff_t pos; ++ struct au_sbinfo *sbinfo; ++ struct file *file; ++ ++ SiMustWriteLock(sb); ++ ++ sbinfo = au_sbi(sb); ++ file = au_xino_create2(base, sbinfo->si_xib); ++ err = PTR_ERR(file); ++ if (IS_ERR(file)) ++ goto out; ++ if (sbinfo->si_xib) ++ fput(sbinfo->si_xib); ++ sbinfo->si_xib = file; ++ sbinfo->si_xread = vfs_readf(file); ++ sbinfo->si_xwrite = vfs_writef(file); ++ ++ err = -ENOMEM; ++ if (!sbinfo->si_xib_buf) ++ sbinfo->si_xib_buf = (void *)get_zeroed_page(GFP_NOFS); ++ if (unlikely(!sbinfo->si_xib_buf)) ++ goto out_unset; ++ ++ sbinfo->si_xib_last_pindex = 0; ++ sbinfo->si_xib_next_bit = 0; ++ if (vfsub_f_size_read(file) < PAGE_SIZE) { ++ pos = 0; ++ err = xino_fwrite(sbinfo->si_xwrite, file, sbinfo->si_xib_buf, ++ PAGE_SIZE, &pos); ++ if (unlikely(err != PAGE_SIZE)) ++ goto out_free; ++ } ++ err = 0; ++ goto out; /* success */ ++ ++out_free: ++ if (sbinfo->si_xib_buf) ++ free_page((unsigned long)sbinfo->si_xib_buf); ++ sbinfo->si_xib_buf = NULL; ++ if (err >= 0) ++ err = -EIO; ++out_unset: ++ fput(sbinfo->si_xib); ++ sbinfo->si_xib = NULL; ++ sbinfo->si_xread = NULL; ++ sbinfo->si_xwrite = NULL; ++out: ++ return err; ++} ++ ++/* xino for each branch */ ++static void xino_clear_br(struct super_block *sb) ++{ ++ aufs_bindex_t bindex, bbot; ++ struct au_branch *br; ++ ++ bbot = au_sbbot(sb); ++ for (bindex = 0; bindex <= bbot; bindex++) { ++ br = au_sbr(sb, bindex); ++ if (!br || !br->br_xino.xi_file) ++ continue; ++ ++ fput(br->br_xino.xi_file); ++ br->br_xino.xi_file = NULL; ++ } ++} ++ ++static int au_xino_set_br(struct super_block *sb, struct file *base) ++{ ++ int err; ++ ino_t ino; ++ aufs_bindex_t bindex, bbot, bshared; ++ struct { ++ struct file *old, *new; ++ } *fpair, *p; ++ struct au_branch *br; ++ struct inode *inode; ++ vfs_writef_t writef; ++ ++ SiMustWriteLock(sb); ++ ++ err = -ENOMEM; ++ bbot = au_sbbot(sb); ++ fpair = kcalloc(bbot + 1, sizeof(*fpair), GFP_NOFS); ++ if (unlikely(!fpair)) ++ goto out; ++ ++ inode = d_inode(sb->s_root); ++ ino = AUFS_ROOT_INO; ++ writef = au_sbi(sb)->si_xwrite; ++ for (bindex = 0, p = fpair; bindex <= bbot; bindex++, p++) { ++ bshared = is_sb_shared(sb, bindex, bindex - 1); ++ if (bshared >= 0) { ++ /* shared xino */ ++ *p = fpair[bshared]; ++ get_file(p->new); ++ } ++ ++ if (!p->new) { ++ /* new xino */ ++ br = au_sbr(sb, bindex); ++ p->old = br->br_xino.xi_file; ++ p->new = au_xino_create2(base, br->br_xino.xi_file); ++ err = PTR_ERR(p->new); ++ if (IS_ERR(p->new)) { ++ p->new = NULL; ++ goto out_pair; ++ } ++ } ++ ++ err = au_xino_do_write(writef, p->new, ++ au_h_iptr(inode, bindex)->i_ino, ino); ++ if (unlikely(err)) ++ goto out_pair; ++ } ++ ++ for (bindex = 0, p = fpair; bindex <= bbot; bindex++, p++) { ++ br = au_sbr(sb, bindex); ++ if (br->br_xino.xi_file) ++ fput(br->br_xino.xi_file); ++ get_file(p->new); ++ br->br_xino.xi_file = p->new; ++ } ++ ++out_pair: ++ for (bindex = 0, p = fpair; bindex <= bbot; bindex++, p++) ++ if (p->new) ++ fput(p->new); ++ else ++ break; ++ kfree(fpair); ++out: ++ return err; ++} ++ ++void au_xino_clr(struct super_block *sb) ++{ ++ struct au_sbinfo *sbinfo; ++ ++ au_xigen_clr(sb); ++ xino_clear_xib(sb); ++ xino_clear_br(sb); ++ sbinfo = au_sbi(sb); ++ /* lvalue, do not call au_mntflags() */ ++ au_opt_clr(sbinfo->si_mntflags, XINO); ++} ++ ++int au_xino_set(struct super_block *sb, struct au_opt_xino *xino, int remount) ++{ ++ int err, skip; ++ struct dentry *parent, *cur_parent; ++ struct qstr *dname, *cur_name; ++ struct file *cur_xino; ++ struct inode *dir; ++ struct au_sbinfo *sbinfo; ++ ++ SiMustWriteLock(sb); ++ ++ err = 0; ++ sbinfo = au_sbi(sb); ++ parent = dget_parent(xino->file->f_path.dentry); ++ if (remount) { ++ skip = 0; ++ dname = &xino->file->f_path.dentry->d_name; ++ cur_xino = sbinfo->si_xib; ++ if (cur_xino) { ++ cur_parent = dget_parent(cur_xino->f_path.dentry); ++ cur_name = &cur_xino->f_path.dentry->d_name; ++ skip = (cur_parent == parent ++ && au_qstreq(dname, cur_name)); ++ dput(cur_parent); ++ } ++ if (skip) ++ goto out; ++ } ++ ++ au_opt_set(sbinfo->si_mntflags, XINO); ++ dir = d_inode(parent); ++ inode_lock_nested(dir, AuLsc_I_PARENT); ++ /* mnt_want_write() is unnecessary here */ ++ err = au_xino_set_xib(sb, xino->file); ++ if (!err) ++ err = au_xigen_set(sb, xino->file); ++ if (!err) ++ err = au_xino_set_br(sb, xino->file); ++ inode_unlock(dir); ++ if (!err) ++ goto out; /* success */ ++ ++ /* reset all */ ++ AuIOErr("failed creating xino(%d).\n", err); ++ au_xigen_clr(sb); ++ xino_clear_xib(sb); ++ ++out: ++ dput(parent); ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* ++ * create a xinofile at the default place/path. ++ */ ++struct file *au_xino_def(struct super_block *sb) ++{ ++ struct file *file; ++ char *page, *p; ++ struct au_branch *br; ++ struct super_block *h_sb; ++ struct path path; ++ aufs_bindex_t bbot, bindex, bwr; ++ ++ br = NULL; ++ bbot = au_sbbot(sb); ++ bwr = -1; ++ for (bindex = 0; bindex <= bbot; bindex++) { ++ br = au_sbr(sb, bindex); ++ if (au_br_writable(br->br_perm) ++ && !au_test_fs_bad_xino(au_br_sb(br))) { ++ bwr = bindex; ++ break; ++ } ++ } ++ ++ if (bwr >= 0) { ++ file = ERR_PTR(-ENOMEM); ++ page = (void *)__get_free_page(GFP_NOFS); ++ if (unlikely(!page)) ++ goto out; ++ path.mnt = au_br_mnt(br); ++ path.dentry = au_h_dptr(sb->s_root, bwr); ++ p = d_path(&path, page, PATH_MAX - sizeof(AUFS_XINO_FNAME)); ++ file = (void *)p; ++ if (!IS_ERR(p)) { ++ strcat(p, "/" AUFS_XINO_FNAME); ++ AuDbg("%s\n", p); ++ file = au_xino_create(sb, p, /*silent*/0); ++ if (!IS_ERR(file)) ++ au_xino_brid_set(sb, br->br_id); ++ } ++ free_page((unsigned long)page); ++ } else { ++ file = au_xino_create(sb, AUFS_XINO_DEFPATH, /*silent*/0); ++ if (IS_ERR(file)) ++ goto out; ++ h_sb = file->f_path.dentry->d_sb; ++ if (unlikely(au_test_fs_bad_xino(h_sb))) { ++ pr_err("xino doesn't support %s(%s)\n", ++ AUFS_XINO_DEFPATH, au_sbtype(h_sb)); ++ fput(file); ++ file = ERR_PTR(-EINVAL); ++ } ++ if (!IS_ERR(file)) ++ au_xino_brid_set(sb, -1); ++ } ++ ++out: ++ return file; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++int au_xino_path(struct seq_file *seq, struct file *file) ++{ ++ int err; ++ ++ err = au_seq_path(seq, &file->f_path); ++ if (unlikely(err)) ++ goto out; ++ ++#define Deleted "\\040(deleted)" ++ seq->count -= sizeof(Deleted) - 1; ++ AuDebugOn(memcmp(seq->buf + seq->count, Deleted, ++ sizeof(Deleted) - 1)); ++#undef Deleted ++ ++out: ++ return err; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++void au_xinondir_leave(struct super_block *sb, aufs_bindex_t bindex, ++ ino_t h_ino, int idx) ++{ ++ struct au_xino_file *xino; ++ ++ AuDebugOn(!au_opt_test(au_mntflags(sb), XINO)); ++ xino = &au_sbr(sb, bindex)->br_xino; ++ AuDebugOn(idx < 0 || xino->xi_nondir.total <= idx); ++ ++ spin_lock(&xino->xi_nondir.spin); ++ AuDebugOn(xino->xi_nondir.array[idx] != h_ino); ++ xino->xi_nondir.array[idx] = 0; ++ spin_unlock(&xino->xi_nondir.spin); ++ wake_up_all(&xino->xi_nondir.wqh); ++} ++ ++static int au_xinondir_find(struct au_xino_file *xino, ino_t h_ino) ++{ ++ int found, total, i; ++ ++ found = -1; ++ total = xino->xi_nondir.total; ++ for (i = 0; i < total; i++) { ++ if (xino->xi_nondir.array[i] != h_ino) ++ continue; ++ found = i; ++ break; ++ } ++ ++ return found; ++} ++ ++static int au_xinondir_expand(struct au_xino_file *xino) ++{ ++ int err, sz; ++ ino_t *p; ++ ++ BUILD_BUG_ON(KMALLOC_MAX_SIZE > INT_MAX); ++ ++ err = -ENOMEM; ++ sz = xino->xi_nondir.total * sizeof(ino_t); ++ if (unlikely(sz > KMALLOC_MAX_SIZE / 2)) ++ goto out; ++ p = au_kzrealloc(xino->xi_nondir.array, sz, sz << 1, GFP_ATOMIC, ++ /*may_shrink*/0); ++ if (p) { ++ xino->xi_nondir.array = p; ++ xino->xi_nondir.total <<= 1; ++ AuDbg("xi_nondir.total %d\n", xino->xi_nondir.total); ++ err = 0; ++ } ++ ++out: ++ return err; ++} ++ ++int au_xinondir_enter(struct super_block *sb, aufs_bindex_t bindex, ino_t h_ino, ++ int *idx) ++{ ++ int err, found, empty; ++ struct au_xino_file *xino; ++ ++ err = 0; ++ *idx = -1; ++ if (!au_opt_test(au_mntflags(sb), XINO)) ++ goto out; /* no xino */ ++ ++ xino = &au_sbr(sb, bindex)->br_xino; ++ ++again: ++ spin_lock(&xino->xi_nondir.spin); ++ found = au_xinondir_find(xino, h_ino); ++ if (found == -1) { ++ empty = au_xinondir_find(xino, /*h_ino*/0); ++ if (empty == -1) { ++ empty = xino->xi_nondir.total; ++ err = au_xinondir_expand(xino); ++ if (unlikely(err)) ++ goto out_unlock; ++ } ++ xino->xi_nondir.array[empty] = h_ino; ++ *idx = empty; ++ } else { ++ spin_unlock(&xino->xi_nondir.spin); ++ wait_event(xino->xi_nondir.wqh, ++ xino->xi_nondir.array[found] != h_ino); ++ goto again; ++ } ++ ++out_unlock: ++ spin_unlock(&xino->xi_nondir.spin); ++out: ++ return err; ++} +diff -Naur null/include/uapi/linux/aufs_type.h linux-4.15/include/uapi/linux/aufs_type.h +--- /dev/null ++++ linux-4.15/include/uapi/linux/aufs_type.h 2018-02-25 02:38:09.207738436 +0100 +@@ -0,0 +1,447 @@ ++/* ++ * Copyright (C) 2005-2017 Junjiro R. Okajima ++ * ++ * This program, aufs is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program. If not, see . ++ */ ++ ++#ifndef __AUFS_TYPE_H__ ++#define __AUFS_TYPE_H__ ++ ++#define AUFS_NAME "aufs" ++ ++#ifdef __KERNEL__ ++/* ++ * define it before including all other headers. ++ * sched.h may use pr_* macros before defining "current", so define the ++ * no-current version first, and re-define later. ++ */ ++#define pr_fmt(fmt) AUFS_NAME " %s:%d: " fmt, __func__, __LINE__ ++#include ++#undef pr_fmt ++#define pr_fmt(fmt) \ ++ AUFS_NAME " %s:%d:%.*s[%d]: " fmt, __func__, __LINE__, \ ++ (int)sizeof(current->comm), current->comm, current->pid ++#else ++#include ++#include ++#endif /* __KERNEL__ */ ++ ++#include ++ ++#define AUFS_VERSION "4.15-20180219" ++ ++/* todo? move this to linux-2.6.19/include/magic.h */ ++#define AUFS_SUPER_MAGIC ('a' << 24 | 'u' << 16 | 'f' << 8 | 's') ++ ++/* ---------------------------------------------------------------------- */ ++ ++#ifdef CONFIG_AUFS_BRANCH_MAX_127 ++typedef int8_t aufs_bindex_t; ++#define AUFS_BRANCH_MAX 127 ++#else ++typedef int16_t aufs_bindex_t; ++#ifdef CONFIG_AUFS_BRANCH_MAX_511 ++#define AUFS_BRANCH_MAX 511 ++#elif defined(CONFIG_AUFS_BRANCH_MAX_1023) ++#define AUFS_BRANCH_MAX 1023 ++#elif defined(CONFIG_AUFS_BRANCH_MAX_32767) ++#define AUFS_BRANCH_MAX 32767 ++#endif ++#endif ++ ++#ifdef __KERNEL__ ++#ifndef AUFS_BRANCH_MAX ++#error unknown CONFIG_AUFS_BRANCH_MAX value ++#endif ++#endif /* __KERNEL__ */ ++ ++/* ---------------------------------------------------------------------- */ ++ ++#define AUFS_FSTYPE AUFS_NAME ++ ++#define AUFS_ROOT_INO 2 ++#define AUFS_FIRST_INO 11 ++ ++#define AUFS_WH_PFX ".wh." ++#define AUFS_WH_PFX_LEN ((int)sizeof(AUFS_WH_PFX) - 1) ++#define AUFS_WH_TMP_LEN 4 ++/* a limit for rmdir/rename a dir and copyup */ ++#define AUFS_MAX_NAMELEN (NAME_MAX \ ++ - AUFS_WH_PFX_LEN * 2 /* doubly whiteouted */\ ++ - 1 /* dot */\ ++ - AUFS_WH_TMP_LEN) /* hex */ ++#define AUFS_XINO_FNAME "." AUFS_NAME ".xino" ++#define AUFS_XINO_DEFPATH "/tmp/" AUFS_XINO_FNAME ++#define AUFS_XINO_DEF_SEC 30 /* seconds */ ++#define AUFS_XINO_DEF_TRUNC 45 /* percentage */ ++#define AUFS_DIRWH_DEF 3 ++#define AUFS_RDCACHE_DEF 10 /* seconds */ ++#define AUFS_RDCACHE_MAX 3600 /* seconds */ ++#define AUFS_RDBLK_DEF 512 /* bytes */ ++#define AUFS_RDHASH_DEF 32 ++#define AUFS_WKQ_NAME AUFS_NAME "d" ++#define AUFS_MFS_DEF_SEC 30 /* seconds */ ++#define AUFS_MFS_MAX_SEC 3600 /* seconds */ ++#define AUFS_FHSM_CACHE_DEF_SEC 30 /* seconds */ ++#define AUFS_PLINK_WARN 50 /* number of plinks in a single bucket */ ++ ++/* pseudo-link maintenace under /proc */ ++#define AUFS_PLINK_MAINT_NAME "plink_maint" ++#define AUFS_PLINK_MAINT_DIR "fs/" AUFS_NAME ++#define AUFS_PLINK_MAINT_PATH AUFS_PLINK_MAINT_DIR "/" AUFS_PLINK_MAINT_NAME ++ ++/* dirren, renamed dir */ ++#define AUFS_DR_INFO_PFX AUFS_WH_PFX ".dr." ++#define AUFS_DR_BRHINO_NAME AUFS_WH_PFX "hino" ++/* whiteouted doubly */ ++#define AUFS_WH_DR_INFO_PFX AUFS_WH_PFX AUFS_DR_INFO_PFX ++#define AUFS_WH_DR_BRHINO AUFS_WH_PFX AUFS_DR_BRHINO_NAME ++ ++#define AUFS_DIROPQ_NAME AUFS_WH_PFX ".opq" /* whiteouted doubly */ ++#define AUFS_WH_DIROPQ AUFS_WH_PFX AUFS_DIROPQ_NAME ++ ++#define AUFS_BASE_NAME AUFS_WH_PFX AUFS_NAME ++#define AUFS_PLINKDIR_NAME AUFS_WH_PFX "plnk" ++#define AUFS_ORPHDIR_NAME AUFS_WH_PFX "orph" ++ ++/* doubly whiteouted */ ++#define AUFS_WH_BASE AUFS_WH_PFX AUFS_BASE_NAME ++#define AUFS_WH_PLINKDIR AUFS_WH_PFX AUFS_PLINKDIR_NAME ++#define AUFS_WH_ORPHDIR AUFS_WH_PFX AUFS_ORPHDIR_NAME ++ ++/* branch permissions and attributes */ ++#define AUFS_BRPERM_RW "rw" ++#define AUFS_BRPERM_RO "ro" ++#define AUFS_BRPERM_RR "rr" ++#define AUFS_BRATTR_COO_REG "coo_reg" ++#define AUFS_BRATTR_COO_ALL "coo_all" ++#define AUFS_BRATTR_FHSM "fhsm" ++#define AUFS_BRATTR_UNPIN "unpin" ++#define AUFS_BRATTR_ICEX "icex" ++#define AUFS_BRATTR_ICEX_SEC "icexsec" ++#define AUFS_BRATTR_ICEX_SYS "icexsys" ++#define AUFS_BRATTR_ICEX_TR "icextr" ++#define AUFS_BRATTR_ICEX_USR "icexusr" ++#define AUFS_BRATTR_ICEX_OTH "icexoth" ++#define AUFS_BRRATTR_WH "wh" ++#define AUFS_BRWATTR_NLWH "nolwh" ++#define AUFS_BRWATTR_MOO "moo" ++ ++#define AuBrPerm_RW 1 /* writable, hardlinkable wh */ ++#define AuBrPerm_RO (1 << 1) /* readonly */ ++#define AuBrPerm_RR (1 << 2) /* natively readonly */ ++#define AuBrPerm_Mask (AuBrPerm_RW | AuBrPerm_RO | AuBrPerm_RR) ++ ++#define AuBrAttr_COO_REG (1 << 3) /* copy-up on open */ ++#define AuBrAttr_COO_ALL (1 << 4) ++#define AuBrAttr_COO_Mask (AuBrAttr_COO_REG | AuBrAttr_COO_ALL) ++ ++#define AuBrAttr_FHSM (1 << 5) /* file-based hsm */ ++#define AuBrAttr_UNPIN (1 << 6) /* rename-able top dir of ++ branch. meaningless since ++ linux-3.18-rc1 */ ++ ++/* ignore error in copying XATTR */ ++#define AuBrAttr_ICEX_SEC (1 << 7) ++#define AuBrAttr_ICEX_SYS (1 << 8) ++#define AuBrAttr_ICEX_TR (1 << 9) ++#define AuBrAttr_ICEX_USR (1 << 10) ++#define AuBrAttr_ICEX_OTH (1 << 11) ++#define AuBrAttr_ICEX (AuBrAttr_ICEX_SEC \ ++ | AuBrAttr_ICEX_SYS \ ++ | AuBrAttr_ICEX_TR \ ++ | AuBrAttr_ICEX_USR \ ++ | AuBrAttr_ICEX_OTH) ++ ++#define AuBrRAttr_WH (1 << 12) /* whiteout-able */ ++#define AuBrRAttr_Mask AuBrRAttr_WH ++ ++#define AuBrWAttr_NoLinkWH (1 << 13) /* un-hardlinkable whiteouts */ ++#define AuBrWAttr_MOO (1 << 14) /* move-up on open */ ++#define AuBrWAttr_Mask (AuBrWAttr_NoLinkWH | AuBrWAttr_MOO) ++ ++#define AuBrAttr_CMOO_Mask (AuBrAttr_COO_Mask | AuBrWAttr_MOO) ++ ++/* #warning test userspace */ ++#ifdef __KERNEL__ ++#ifndef CONFIG_AUFS_FHSM ++#undef AuBrAttr_FHSM ++#define AuBrAttr_FHSM 0 ++#endif ++#ifndef CONFIG_AUFS_XATTR ++#undef AuBrAttr_ICEX ++#define AuBrAttr_ICEX 0 ++#undef AuBrAttr_ICEX_SEC ++#define AuBrAttr_ICEX_SEC 0 ++#undef AuBrAttr_ICEX_SYS ++#define AuBrAttr_ICEX_SYS 0 ++#undef AuBrAttr_ICEX_TR ++#define AuBrAttr_ICEX_TR 0 ++#undef AuBrAttr_ICEX_USR ++#define AuBrAttr_ICEX_USR 0 ++#undef AuBrAttr_ICEX_OTH ++#define AuBrAttr_ICEX_OTH 0 ++#endif ++#endif ++ ++/* the longest combination */ ++/* AUFS_BRATTR_ICEX and AUFS_BRATTR_ICEX_TR don't affect here */ ++#define AuBrPermStrSz sizeof(AUFS_BRPERM_RW \ ++ "+" AUFS_BRATTR_COO_REG \ ++ "+" AUFS_BRATTR_FHSM \ ++ "+" AUFS_BRATTR_UNPIN \ ++ "+" AUFS_BRATTR_ICEX_SEC \ ++ "+" AUFS_BRATTR_ICEX_SYS \ ++ "+" AUFS_BRATTR_ICEX_USR \ ++ "+" AUFS_BRATTR_ICEX_OTH \ ++ "+" AUFS_BRWATTR_NLWH) ++ ++typedef struct { ++ char a[AuBrPermStrSz]; ++} au_br_perm_str_t; ++ ++static inline int au_br_writable(int brperm) ++{ ++ return brperm & AuBrPerm_RW; ++} ++ ++static inline int au_br_whable(int brperm) ++{ ++ return brperm & (AuBrPerm_RW | AuBrRAttr_WH); ++} ++ ++static inline int au_br_wh_linkable(int brperm) ++{ ++ return !(brperm & AuBrWAttr_NoLinkWH); ++} ++ ++static inline int au_br_cmoo(int brperm) ++{ ++ return brperm & AuBrAttr_CMOO_Mask; ++} ++ ++static inline int au_br_fhsm(int brperm) ++{ ++ return brperm & AuBrAttr_FHSM; ++} ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* ioctl */ ++enum { ++ /* readdir in userspace */ ++ AuCtl_RDU, ++ AuCtl_RDU_INO, ++ ++ AuCtl_WBR_FD, /* pathconf wrapper */ ++ AuCtl_IBUSY, /* busy inode */ ++ AuCtl_MVDOWN, /* move-down */ ++ AuCtl_BR, /* info about branches */ ++ AuCtl_FHSM_FD /* connection for fhsm */ ++}; ++ ++/* borrowed from linux/include/linux/kernel.h */ ++#ifndef ALIGN ++#define ALIGN(x, a) __ALIGN_MASK(x, (typeof(x))(a)-1) ++#define __ALIGN_MASK(x, mask) (((x)+(mask))&~(mask)) ++#endif ++ ++/* borrowed from linux/include/linux/compiler-gcc3.h */ ++#ifndef __aligned ++#define __aligned(x) __attribute__((aligned(x))) ++#endif ++ ++#ifdef __KERNEL__ ++#ifndef __packed ++#define __packed __attribute__((packed)) ++#endif ++#endif ++ ++struct au_rdu_cookie { ++ uint64_t h_pos; ++ int16_t bindex; ++ uint8_t flags; ++ uint8_t pad; ++ uint32_t generation; ++} __aligned(8); ++ ++struct au_rdu_ent { ++ uint64_t ino; ++ int16_t bindex; ++ uint8_t type; ++ uint8_t nlen; ++ uint8_t wh; ++ char name[0]; ++} __aligned(8); ++ ++static inline int au_rdu_len(int nlen) ++{ ++ /* include the terminating NULL */ ++ return ALIGN(sizeof(struct au_rdu_ent) + nlen + 1, ++ sizeof(uint64_t)); ++} ++ ++union au_rdu_ent_ul { ++ struct au_rdu_ent __user *e; ++ uint64_t ul; ++}; ++ ++enum { ++ AufsCtlRduV_SZ, ++ AufsCtlRduV_End ++}; ++ ++struct aufs_rdu { ++ /* input */ ++ union { ++ uint64_t sz; /* AuCtl_RDU */ ++ uint64_t nent; /* AuCtl_RDU_INO */ ++ }; ++ union au_rdu_ent_ul ent; ++ uint16_t verify[AufsCtlRduV_End]; ++ ++ /* input/output */ ++ uint32_t blk; ++ ++ /* output */ ++ union au_rdu_ent_ul tail; ++ /* number of entries which were added in a single call */ ++ uint64_t rent; ++ uint8_t full; ++ uint8_t shwh; ++ ++ struct au_rdu_cookie cookie; ++} __aligned(8); ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* dirren. the branch is identified by the filename who contains this */ ++struct au_drinfo { ++ uint64_t ino; ++ union { ++ uint8_t oldnamelen; ++ uint64_t _padding; ++ }; ++ uint8_t oldname[0]; ++} __aligned(8); ++ ++struct au_drinfo_fdata { ++ uint32_t magic; ++ struct au_drinfo drinfo; ++} __aligned(8); ++ ++#define AUFS_DRINFO_MAGIC_V1 ('a' << 24 | 'd' << 16 | 'r' << 8 | 0x01) ++/* future */ ++#define AUFS_DRINFO_MAGIC_V2 ('a' << 24 | 'd' << 16 | 'r' << 8 | 0x02) ++ ++/* ---------------------------------------------------------------------- */ ++ ++struct aufs_wbr_fd { ++ uint32_t oflags; ++ int16_t brid; ++} __aligned(8); ++ ++/* ---------------------------------------------------------------------- */ ++ ++struct aufs_ibusy { ++ uint64_t ino, h_ino; ++ int16_t bindex; ++} __aligned(8); ++ ++/* ---------------------------------------------------------------------- */ ++ ++/* error code for move-down */ ++/* the actual message strings are implemented in aufs-util.git */ ++enum { ++ EAU_MVDOWN_OPAQUE = 1, ++ EAU_MVDOWN_WHITEOUT, ++ EAU_MVDOWN_UPPER, ++ EAU_MVDOWN_BOTTOM, ++ EAU_MVDOWN_NOUPPER, ++ EAU_MVDOWN_NOLOWERBR, ++ EAU_Last ++}; ++ ++/* flags for move-down */ ++#define AUFS_MVDOWN_DMSG 1 ++#define AUFS_MVDOWN_OWLOWER (1 << 1) /* overwrite lower */ ++#define AUFS_MVDOWN_KUPPER (1 << 2) /* keep upper */ ++#define AUFS_MVDOWN_ROLOWER (1 << 3) /* do even if lower is RO */ ++#define AUFS_MVDOWN_ROLOWER_R (1 << 4) /* did on lower RO */ ++#define AUFS_MVDOWN_ROUPPER (1 << 5) /* do even if upper is RO */ ++#define AUFS_MVDOWN_ROUPPER_R (1 << 6) /* did on upper RO */ ++#define AUFS_MVDOWN_BRID_UPPER (1 << 7) /* upper brid */ ++#define AUFS_MVDOWN_BRID_LOWER (1 << 8) /* lower brid */ ++#define AUFS_MVDOWN_FHSM_LOWER (1 << 9) /* find fhsm attr for lower */ ++#define AUFS_MVDOWN_STFS (1 << 10) /* req. stfs */ ++#define AUFS_MVDOWN_STFS_FAILED (1 << 11) /* output: stfs is unusable */ ++#define AUFS_MVDOWN_BOTTOM (1 << 12) /* output: no more lowers */ ++ ++/* index for move-down */ ++enum { ++ AUFS_MVDOWN_UPPER, ++ AUFS_MVDOWN_LOWER, ++ AUFS_MVDOWN_NARRAY ++}; ++ ++/* ++ * additional info of move-down ++ * number of free blocks and inodes. ++ * subset of struct kstatfs, but smaller and always 64bit. ++ */ ++struct aufs_stfs { ++ uint64_t f_blocks; ++ uint64_t f_bavail; ++ uint64_t f_files; ++ uint64_t f_ffree; ++}; ++ ++struct aufs_stbr { ++ int16_t brid; /* optional input */ ++ int16_t bindex; /* output */ ++ struct aufs_stfs stfs; /* output when AUFS_MVDOWN_STFS set */ ++} __aligned(8); ++ ++struct aufs_mvdown { ++ uint32_t flags; /* input/output */ ++ struct aufs_stbr stbr[AUFS_MVDOWN_NARRAY]; /* input/output */ ++ int8_t au_errno; /* output */ ++} __aligned(8); ++ ++/* ---------------------------------------------------------------------- */ ++ ++union aufs_brinfo { ++ /* PATH_MAX may differ between kernel-space and user-space */ ++ char _spacer[4096]; ++ struct { ++ int16_t id; ++ int perm; ++ char path[0]; ++ }; ++} __aligned(8); ++ ++/* ---------------------------------------------------------------------- */ ++ ++#define AuCtlType 'A' ++#define AUFS_CTL_RDU _IOWR(AuCtlType, AuCtl_RDU, struct aufs_rdu) ++#define AUFS_CTL_RDU_INO _IOWR(AuCtlType, AuCtl_RDU_INO, struct aufs_rdu) ++#define AUFS_CTL_WBR_FD _IOW(AuCtlType, AuCtl_WBR_FD, \ ++ struct aufs_wbr_fd) ++#define AUFS_CTL_IBUSY _IOWR(AuCtlType, AuCtl_IBUSY, struct aufs_ibusy) ++#define AUFS_CTL_MVDOWN _IOWR(AuCtlType, AuCtl_MVDOWN, \ ++ struct aufs_mvdown) ++#define AUFS_CTL_BRINFO _IOW(AuCtlType, AuCtl_BR, union aufs_brinfo) ++#define AUFS_CTL_FHSM_FD _IOW(AuCtlType, AuCtl_FHSM_FD, int) ++ ++#endif /* __AUFS_TYPE_H__ */ diff --git a/talimatname/genel/k/kernel/config b/talimatname/genel/k/kernel/config new file mode 100644 index 000000000..b838acbb2 --- /dev/null +++ b/talimatname/genel/k/kernel/config @@ -0,0 +1,8658 @@ +# +# Automatically generated file; DO NOT EDIT. +# Linux/x86 4.15.4-1 Kernel Configuration +# +CONFIG_64BIT=y +CONFIG_X86_64=y +CONFIG_X86=y +CONFIG_INSTRUCTION_DECODER=y +CONFIG_OUTPUT_FORMAT="elf64-x86-64" +CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" +CONFIG_LOCKDEP_SUPPORT=y +CONFIG_STACKTRACE_SUPPORT=y +CONFIG_MMU=y +CONFIG_ARCH_MMAP_RND_BITS_MIN=28 +CONFIG_ARCH_MMAP_RND_BITS_MAX=32 +CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 +CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 +CONFIG_NEED_DMA_MAP_STATE=y +CONFIG_NEED_SG_DMA_LENGTH=y +CONFIG_GENERIC_ISA_DMA=y +CONFIG_GENERIC_BUG=y +CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y +CONFIG_GENERIC_HWEIGHT=y +CONFIG_ARCH_MAY_HAVE_PC_FDC=y +CONFIG_RWSEM_XCHGADD_ALGORITHM=y +CONFIG_GENERIC_CALIBRATE_DELAY=y +CONFIG_ARCH_HAS_CPU_RELAX=y +CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y +CONFIG_HAVE_SETUP_PER_CPU_AREA=y +CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y +CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y +CONFIG_ARCH_HIBERNATION_POSSIBLE=y +CONFIG_ARCH_SUSPEND_POSSIBLE=y +CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y +CONFIG_ARCH_WANT_GENERAL_HUGETLB=y +CONFIG_ZONE_DMA32=y +CONFIG_AUDIT_ARCH=y +CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y +CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y +CONFIG_HAVE_INTEL_TXT=y +CONFIG_X86_64_SMP=y +CONFIG_ARCH_SUPPORTS_UPROBES=y +CONFIG_FIX_EARLYCON_MEM=y +CONFIG_PGTABLE_LEVELS=4 +CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" +CONFIG_IRQ_WORK=y +CONFIG_BUILDTIME_EXTABLE_SORT=y +CONFIG_THREAD_INFO_IN_TASK=y + +# +# General setup +# +CONFIG_INIT_ENV_ARG_LIMIT=32 +CONFIG_CROSS_COMPILE="" +# CONFIG_COMPILE_TEST is not set +CONFIG_LOCALVERSION="-milis" +CONFIG_LOCALVERSION_AUTO=y +CONFIG_HAVE_KERNEL_GZIP=y +CONFIG_HAVE_KERNEL_BZIP2=y +CONFIG_HAVE_KERNEL_LZMA=y +CONFIG_HAVE_KERNEL_XZ=y +CONFIG_HAVE_KERNEL_LZO=y +CONFIG_HAVE_KERNEL_LZ4=y +CONFIG_KERNEL_GZIP=y +# CONFIG_KERNEL_BZIP2 is not set +# CONFIG_KERNEL_LZMA is not set +# CONFIG_KERNEL_XZ is not set +# CONFIG_KERNEL_LZO is not set +# CONFIG_KERNEL_LZ4 is not set +CONFIG_DEFAULT_HOSTNAME="milis" +CONFIG_SWAP=y +CONFIG_SYSVIPC=y +CONFIG_SYSVIPC_SYSCTL=y +CONFIG_POSIX_MQUEUE=y +CONFIG_POSIX_MQUEUE_SYSCTL=y +CONFIG_CROSS_MEMORY_ATTACH=y +# CONFIG_USELIB is not set +CONFIG_AUDIT=y +CONFIG_HAVE_ARCH_AUDITSYSCALL=y +CONFIG_AUDITSYSCALL=y +CONFIG_AUDIT_WATCH=y +CONFIG_AUDIT_TREE=y + +# +# IRQ subsystem +# +CONFIG_GENERIC_IRQ_PROBE=y +CONFIG_GENERIC_IRQ_SHOW=y +CONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK=y +CONFIG_GENERIC_PENDING_IRQ=y +CONFIG_GENERIC_IRQ_MIGRATION=y +CONFIG_IRQ_DOMAIN=y +CONFIG_IRQ_DOMAIN_HIERARCHY=y +CONFIG_GENERIC_MSI_IRQ=y +CONFIG_GENERIC_MSI_IRQ_DOMAIN=y +CONFIG_GENERIC_IRQ_MATRIX_ALLOCATOR=y +CONFIG_GENERIC_IRQ_RESERVATION_MODE=y +# CONFIG_IRQ_DOMAIN_DEBUG is not set +CONFIG_IRQ_FORCED_THREADING=y +CONFIG_SPARSE_IRQ=y +# CONFIG_GENERIC_IRQ_DEBUGFS is not set +CONFIG_CLOCKSOURCE_WATCHDOG=y +CONFIG_ARCH_CLOCKSOURCE_DATA=y +CONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE=y +CONFIG_GENERIC_TIME_VSYSCALL=y +CONFIG_GENERIC_CLOCKEVENTS=y +CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y +CONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=y +CONFIG_GENERIC_CMOS_UPDATE=y + +# +# Timers subsystem +# +CONFIG_TICK_ONESHOT=y +CONFIG_NO_HZ_COMMON=y +# CONFIG_HZ_PERIODIC is not set +CONFIG_NO_HZ_IDLE=y +# CONFIG_NO_HZ_FULL is not set +# CONFIG_NO_HZ is not set +CONFIG_HIGH_RES_TIMERS=y + +# +# CPU/Task time and stats accounting +# +CONFIG_TICK_CPU_ACCOUNTING=y +# CONFIG_VIRT_CPU_ACCOUNTING_GEN is not set +# CONFIG_IRQ_TIME_ACCOUNTING is not set +CONFIG_BSD_PROCESS_ACCT=y +CONFIG_BSD_PROCESS_ACCT_V3=y +CONFIG_TASKSTATS=y +CONFIG_TASK_DELAY_ACCT=y +CONFIG_TASK_XACCT=y +CONFIG_TASK_IO_ACCOUNTING=y +CONFIG_CPU_ISOLATION=y + +# +# RCU Subsystem +# +CONFIG_PREEMPT_RCU=y +# CONFIG_RCU_EXPERT is not set +CONFIG_SRCU=y +CONFIG_TREE_SRCU=y +CONFIG_TASKS_RCU=y +CONFIG_RCU_STALL_COMMON=y +CONFIG_RCU_NEED_SEGCBLIST=y +CONFIG_BUILD_BIN2C=y +CONFIG_IKCONFIG=y +CONFIG_IKCONFIG_PROC=y +CONFIG_LOG_BUF_SHIFT=19 +CONFIG_LOG_CPU_MAX_BUF_SHIFT=12 +CONFIG_PRINTK_SAFE_LOG_BUF_SHIFT=12 +CONFIG_HAVE_UNSTABLE_SCHED_CLOCK=y +CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=y +CONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH=y +CONFIG_ARCH_SUPPORTS_INT128=y +CONFIG_NUMA_BALANCING=y +CONFIG_NUMA_BALANCING_DEFAULT_ENABLED=y +CONFIG_CGROUPS=y +CONFIG_PAGE_COUNTER=y +CONFIG_MEMCG=y +CONFIG_MEMCG_SWAP=y +CONFIG_MEMCG_SWAP_ENABLED=y +CONFIG_BLK_CGROUP=y +# CONFIG_DEBUG_BLK_CGROUP is not set +CONFIG_CGROUP_WRITEBACK=y +CONFIG_CGROUP_SCHED=y +CONFIG_FAIR_GROUP_SCHED=y +CONFIG_CFS_BANDWIDTH=y +# CONFIG_RT_GROUP_SCHED is not set +CONFIG_CGROUP_PIDS=y +# CONFIG_CGROUP_RDMA is not set +CONFIG_CGROUP_FREEZER=y +# CONFIG_CGROUP_HUGETLB is not set +CONFIG_CPUSETS=y +CONFIG_PROC_PID_CPUSET=y +CONFIG_CGROUP_DEVICE=y +CONFIG_CGROUP_CPUACCT=y +CONFIG_CGROUP_PERF=y +CONFIG_CGROUP_BPF=y +# CONFIG_CGROUP_DEBUG is not set +CONFIG_SOCK_CGROUP_DATA=y +CONFIG_NAMESPACES=y +CONFIG_UTS_NS=y +CONFIG_IPC_NS=y +# CONFIG_USER_NS is not set +CONFIG_PID_NS=y +CONFIG_NET_NS=y +CONFIG_SCHED_AUTOGROUP=y +# CONFIG_SYSFS_DEPRECATED is not set +CONFIG_RELAY=y +CONFIG_BLK_DEV_INITRD=y +CONFIG_INITRAMFS_SOURCE="" +CONFIG_RD_GZIP=y +CONFIG_RD_BZIP2=y +CONFIG_RD_LZMA=y +CONFIG_RD_XZ=y +CONFIG_RD_LZO=y +CONFIG_RD_LZ4=y +CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y +# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set +CONFIG_SYSCTL=y +CONFIG_ANON_INODES=y +CONFIG_HAVE_UID16=y +CONFIG_SYSCTL_EXCEPTION_TRACE=y +CONFIG_HAVE_PCSPKR_PLATFORM=y +CONFIG_BPF=y +# CONFIG_EXPERT is not set +CONFIG_UID16=y +CONFIG_MULTIUSER=y +CONFIG_SGETMASK_SYSCALL=y +CONFIG_SYSFS_SYSCALL=y +# CONFIG_SYSCTL_SYSCALL is not set +CONFIG_FHANDLE=y +CONFIG_POSIX_TIMERS=y +CONFIG_PRINTK=y +CONFIG_PRINTK_NMI=y +CONFIG_BUG=y +CONFIG_ELF_CORE=y +CONFIG_PCSPKR_PLATFORM=y +CONFIG_BASE_FULL=y +CONFIG_FUTEX=y +CONFIG_FUTEX_PI=y +CONFIG_EPOLL=y +CONFIG_SIGNALFD=y +CONFIG_TIMERFD=y +CONFIG_EVENTFD=y +CONFIG_SHMEM=y +CONFIG_AIO=y +CONFIG_ADVISE_SYSCALLS=y +CONFIG_MEMBARRIER=y +# CONFIG_CHECKPOINT_RESTORE is not set +CONFIG_KALLSYMS=y +# CONFIG_KALLSYMS_ALL is not set +CONFIG_KALLSYMS_ABSOLUTE_PERCPU=y +CONFIG_KALLSYMS_BASE_RELATIVE=y +CONFIG_BPF_SYSCALL=y +CONFIG_BPF_JIT_ALWAYS_ON=y +CONFIG_USERFAULTFD=y +# CONFIG_EMBEDDED is not set +CONFIG_HAVE_PERF_EVENTS=y +# CONFIG_PC104 is not set + +# +# Kernel Performance Events And Counters +# +CONFIG_PERF_EVENTS=y +# CONFIG_DEBUG_PERF_USE_VMALLOC is not set +CONFIG_VM_EVENT_COUNTERS=y +CONFIG_SLUB_DEBUG=y +# CONFIG_SLUB_MEMCG_SYSFS_ON is not set +# CONFIG_COMPAT_BRK is not set +# CONFIG_SLAB is not set +CONFIG_SLUB=y +CONFIG_SLAB_MERGE_DEFAULT=y +CONFIG_SLAB_FREELIST_RANDOM=y +CONFIG_SLAB_FREELIST_HARDENED=y +CONFIG_SLUB_CPU_PARTIAL=y +CONFIG_SYSTEM_DATA_VERIFICATION=y +CONFIG_PROFILING=y +CONFIG_TRACEPOINTS=y +CONFIG_CRASH_CORE=y +CONFIG_KEXEC_CORE=y +CONFIG_OPROFILE=m +# CONFIG_OPROFILE_EVENT_MULTIPLEX is not set +CONFIG_HAVE_OPROFILE=y +CONFIG_OPROFILE_NMI_TIMER=y +CONFIG_KPROBES=y +CONFIG_JUMP_LABEL=y +# CONFIG_STATIC_KEYS_SELFTEST is not set +CONFIG_OPTPROBES=y +CONFIG_KPROBES_ON_FTRACE=y +# CONFIG_UPROBES is not set +# CONFIG_HAVE_64BIT_ALIGNED_ACCESS is not set +CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y +CONFIG_ARCH_USE_BUILTIN_BSWAP=y +CONFIG_KRETPROBES=y +CONFIG_USER_RETURN_NOTIFIER=y +CONFIG_HAVE_IOREMAP_PROT=y +CONFIG_HAVE_KPROBES=y +CONFIG_HAVE_KRETPROBES=y +CONFIG_HAVE_OPTPROBES=y +CONFIG_HAVE_KPROBES_ON_FTRACE=y +CONFIG_HAVE_NMI=y +CONFIG_HAVE_ARCH_TRACEHOOK=y +CONFIG_HAVE_DMA_CONTIGUOUS=y +CONFIG_GENERIC_SMP_IDLE_THREAD=y +CONFIG_ARCH_HAS_FORTIFY_SOURCE=y +CONFIG_ARCH_HAS_SET_MEMORY=y +CONFIG_ARCH_WANTS_DYNAMIC_TASK_STRUCT=y +CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y +CONFIG_HAVE_CLK=y +CONFIG_HAVE_DMA_API_DEBUG=y +CONFIG_HAVE_HW_BREAKPOINT=y +CONFIG_HAVE_MIXED_BREAKPOINTS_REGS=y +CONFIG_HAVE_USER_RETURN_NOTIFIER=y +CONFIG_HAVE_PERF_EVENTS_NMI=y +CONFIG_HAVE_HARDLOCKUP_DETECTOR_PERF=y +CONFIG_HAVE_PERF_REGS=y +CONFIG_HAVE_PERF_USER_STACK_DUMP=y +CONFIG_HAVE_ARCH_JUMP_LABEL=y +CONFIG_HAVE_RCU_TABLE_FREE=y +CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=y +CONFIG_HAVE_ALIGNED_STRUCT_PAGE=y +CONFIG_HAVE_CMPXCHG_LOCAL=y +CONFIG_HAVE_CMPXCHG_DOUBLE=y +CONFIG_ARCH_WANT_COMPAT_IPC_PARSE_VERSION=y +CONFIG_ARCH_WANT_OLD_COMPAT_IPC=y +CONFIG_HAVE_ARCH_SECCOMP_FILTER=y +CONFIG_SECCOMP_FILTER=y +CONFIG_HAVE_GCC_PLUGINS=y +# CONFIG_GCC_PLUGINS is not set +CONFIG_HAVE_CC_STACKPROTECTOR=y +CONFIG_CC_STACKPROTECTOR=y +# CONFIG_CC_STACKPROTECTOR_NONE is not set +CONFIG_CC_STACKPROTECTOR_REGULAR=y +# CONFIG_CC_STACKPROTECTOR_STRONG is not set +CONFIG_THIN_ARCHIVES=y +CONFIG_HAVE_ARCH_WITHIN_STACK_FRAMES=y +CONFIG_HAVE_CONTEXT_TRACKING=y +CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y +CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y +CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE=y +CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD=y +CONFIG_HAVE_ARCH_HUGE_VMAP=y +CONFIG_HAVE_ARCH_SOFT_DIRTY=y +CONFIG_HAVE_MOD_ARCH_SPECIFIC=y +CONFIG_MODULES_USE_ELF_RELA=y +CONFIG_HAVE_IRQ_EXIT_ON_IRQ_STACK=y +CONFIG_ARCH_HAS_ELF_RANDOMIZE=y +CONFIG_HAVE_ARCH_MMAP_RND_BITS=y +CONFIG_HAVE_EXIT_THREAD=y +CONFIG_ARCH_MMAP_RND_BITS=28 +CONFIG_HAVE_ARCH_MMAP_RND_COMPAT_BITS=y +CONFIG_ARCH_MMAP_RND_COMPAT_BITS=8 +CONFIG_HAVE_ARCH_COMPAT_MMAP_BASES=y +CONFIG_HAVE_COPY_THREAD_TLS=y +CONFIG_HAVE_STACK_VALIDATION=y +# CONFIG_HAVE_ARCH_HASH is not set +# CONFIG_ISA_BUS_API is not set +CONFIG_OLD_SIGSUSPEND3=y +CONFIG_COMPAT_OLD_SIGACTION=y +# CONFIG_CPU_NO_EFFICIENT_FFS is not set +CONFIG_HAVE_ARCH_VMAP_STACK=y +CONFIG_VMAP_STACK=y +# CONFIG_ARCH_OPTIONAL_KERNEL_RWX is not set +# CONFIG_ARCH_OPTIONAL_KERNEL_RWX_DEFAULT is not set +CONFIG_ARCH_HAS_STRICT_KERNEL_RWX=y +CONFIG_STRICT_KERNEL_RWX=y +CONFIG_ARCH_HAS_STRICT_MODULE_RWX=y +CONFIG_STRICT_MODULE_RWX=y +CONFIG_ARCH_HAS_REFCOUNT=y +# CONFIG_REFCOUNT_FULL is not set + +# +# GCOV-based kernel profiling +# +# CONFIG_GCOV_KERNEL is not set +CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y +# CONFIG_HAVE_GENERIC_DMA_COHERENT is not set +CONFIG_RT_MUTEXES=y +CONFIG_BASE_SMALL=0 +CONFIG_MODULES=y +CONFIG_MODULE_FORCE_LOAD=y +CONFIG_MODULE_UNLOAD=y +CONFIG_MODULE_FORCE_UNLOAD=y +CONFIG_MODVERSIONS=y +# CONFIG_MODULE_SRCVERSION_ALL is not set +# CONFIG_MODULE_SIG is not set +CONFIG_MODULE_COMPRESS=y +CONFIG_MODULE_COMPRESS_GZIP=y +# CONFIG_MODULE_COMPRESS_XZ is not set +CONFIG_MODULES_TREE_LOOKUP=y +CONFIG_BLOCK=y +CONFIG_BLK_SCSI_REQUEST=y +CONFIG_BLK_DEV_BSG=y +CONFIG_BLK_DEV_BSGLIB=y +CONFIG_BLK_DEV_INTEGRITY=y +CONFIG_BLK_DEV_ZONED=y +CONFIG_BLK_DEV_THROTTLING=y +CONFIG_BLK_DEV_THROTTLING_LOW=y +# CONFIG_BLK_CMDLINE_PARSER is not set +CONFIG_BLK_WBT=y +CONFIG_BLK_WBT_SQ=y +CONFIG_BLK_WBT_MQ=y +CONFIG_BLK_DEBUG_FS=y +CONFIG_BLK_SED_OPAL=y + +# +# Partition Types +# +CONFIG_PARTITION_ADVANCED=y +# CONFIG_ACORN_PARTITION is not set +CONFIG_AIX_PARTITION=y +# CONFIG_OSF_PARTITION is not set +# CONFIG_AMIGA_PARTITION is not set +# CONFIG_ATARI_PARTITION is not set +CONFIG_MAC_PARTITION=y +CONFIG_MSDOS_PARTITION=y +CONFIG_BSD_DISKLABEL=y +CONFIG_MINIX_SUBPARTITION=y +CONFIG_SOLARIS_X86_PARTITION=y +# CONFIG_UNIXWARE_DISKLABEL is not set +CONFIG_LDM_PARTITION=y +# CONFIG_LDM_DEBUG is not set +# CONFIG_SGI_PARTITION is not set +# CONFIG_ULTRIX_PARTITION is not set +# CONFIG_SUN_PARTITION is not set +CONFIG_KARMA_PARTITION=y +CONFIG_EFI_PARTITION=y +# CONFIG_SYSV68_PARTITION is not set +# CONFIG_CMDLINE_PARTITION is not set +CONFIG_BLOCK_COMPAT=y +CONFIG_BLK_MQ_PCI=y +CONFIG_BLK_MQ_VIRTIO=y +CONFIG_BLK_MQ_RDMA=y + +# +# IO Schedulers +# +CONFIG_IOSCHED_NOOP=y +CONFIG_IOSCHED_DEADLINE=y +CONFIG_IOSCHED_CFQ=y +CONFIG_CFQ_GROUP_IOSCHED=y +# CONFIG_DEFAULT_DEADLINE is not set +CONFIG_DEFAULT_CFQ=y +# CONFIG_DEFAULT_NOOP is not set +CONFIG_DEFAULT_IOSCHED="cfq" +CONFIG_MQ_IOSCHED_DEADLINE=y +CONFIG_MQ_IOSCHED_KYBER=y +CONFIG_IOSCHED_BFQ=m +CONFIG_BFQ_GROUP_IOSCHED=y +CONFIG_PREEMPT_NOTIFIERS=y +CONFIG_PADATA=y +CONFIG_ASN1=y +CONFIG_UNINLINE_SPIN_UNLOCK=y +CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y +CONFIG_MUTEX_SPIN_ON_OWNER=y +CONFIG_RWSEM_SPIN_ON_OWNER=y +CONFIG_LOCK_SPIN_ON_OWNER=y +CONFIG_ARCH_USE_QUEUED_SPINLOCKS=y +CONFIG_QUEUED_SPINLOCKS=y +CONFIG_ARCH_USE_QUEUED_RWLOCKS=y +CONFIG_QUEUED_RWLOCKS=y +CONFIG_FREEZER=y + +# +# Processor type and features +# +CONFIG_ZONE_DMA=y +CONFIG_SMP=y +CONFIG_X86_FEATURE_NAMES=y +CONFIG_X86_FAST_FEATURE_TESTS=y +CONFIG_X86_X2APIC=y +CONFIG_X86_MPPARSE=y +# CONFIG_GOLDFISH is not set +CONFIG_RETPOLINE=y +CONFIG_INTEL_RDT=y +# CONFIG_X86_EXTENDED_PLATFORM is not set +CONFIG_X86_INTEL_LPSS=y +CONFIG_X86_AMD_PLATFORM_DEVICE=y +CONFIG_IOSF_MBI=y +# CONFIG_IOSF_MBI_DEBUG is not set +CONFIG_X86_SUPPORTS_MEMORY_FAILURE=y +CONFIG_SCHED_OMIT_FRAME_POINTER=y +CONFIG_HYPERVISOR_GUEST=y +CONFIG_PARAVIRT=y +# CONFIG_PARAVIRT_DEBUG is not set +# CONFIG_PARAVIRT_SPINLOCKS is not set +CONFIG_XEN=y +CONFIG_XEN_PV=y +CONFIG_XEN_PV_SMP=y +CONFIG_XEN_DOM0=y +CONFIG_XEN_PVHVM=y +CONFIG_XEN_PVHVM_SMP=y +CONFIG_XEN_512GB=y +CONFIG_XEN_SAVE_RESTORE=y +# CONFIG_XEN_DEBUG_FS is not set +# CONFIG_XEN_PVH is not set +CONFIG_KVM_GUEST=y +# CONFIG_KVM_DEBUG_FS is not set +CONFIG_PARAVIRT_TIME_ACCOUNTING=y +CONFIG_PARAVIRT_CLOCK=y +CONFIG_NO_BOOTMEM=y +# CONFIG_MK8 is not set +# CONFIG_MPSC is not set +# CONFIG_MCORE2 is not set +# CONFIG_MATOM is not set +CONFIG_GENERIC_CPU=y +CONFIG_X86_INTERNODE_CACHE_SHIFT=6 +CONFIG_X86_L1_CACHE_SHIFT=6 +CONFIG_X86_TSC=y +CONFIG_X86_CMPXCHG64=y +CONFIG_X86_CMOV=y +CONFIG_X86_MINIMUM_CPU_FAMILY=64 +CONFIG_X86_DEBUGCTLMSR=y +CONFIG_CPU_SUP_INTEL=y +CONFIG_CPU_SUP_AMD=y +CONFIG_CPU_SUP_CENTAUR=y +CONFIG_HPET_TIMER=y +CONFIG_HPET_EMULATE_RTC=y +CONFIG_DMI=y +CONFIG_GART_IOMMU=y +CONFIG_CALGARY_IOMMU=y +CONFIG_CALGARY_IOMMU_ENABLED_BY_DEFAULT=y +CONFIG_SWIOTLB=y +CONFIG_IOMMU_HELPER=y +# CONFIG_MAXSMP is not set +CONFIG_NR_CPUS=128 +CONFIG_SCHED_SMT=y +CONFIG_SCHED_MC=y +CONFIG_SCHED_MC_PRIO=y +# CONFIG_PREEMPT_NONE is not set +# CONFIG_PREEMPT_VOLUNTARY is not set +CONFIG_PREEMPT=y +CONFIG_PREEMPT_COUNT=y +CONFIG_X86_LOCAL_APIC=y +CONFIG_X86_IO_APIC=y +CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS=y +CONFIG_X86_MCE=y +# CONFIG_X86_MCELOG_LEGACY is not set +CONFIG_X86_MCE_INTEL=y +CONFIG_X86_MCE_AMD=y +CONFIG_X86_MCE_THRESHOLD=y +# CONFIG_X86_MCE_INJECT is not set +CONFIG_X86_THERMAL_VECTOR=y + +# +# Performance monitoring +# +CONFIG_PERF_EVENTS_INTEL_UNCORE=y +CONFIG_PERF_EVENTS_INTEL_RAPL=m +CONFIG_PERF_EVENTS_INTEL_CSTATE=m +CONFIG_PERF_EVENTS_AMD_POWER=m +# CONFIG_VM86 is not set +CONFIG_X86_16BIT=y +CONFIG_X86_ESPFIX64=y +CONFIG_X86_VSYSCALL_EMULATION=y +CONFIG_I8K=m +CONFIG_MICROCODE=y +CONFIG_MICROCODE_INTEL=y +CONFIG_MICROCODE_AMD=y +CONFIG_MICROCODE_OLD_INTERFACE=y +CONFIG_X86_MSR=m +CONFIG_X86_CPUID=m +# CONFIG_X86_5LEVEL is not set +CONFIG_ARCH_PHYS_ADDR_T_64BIT=y +CONFIG_ARCH_DMA_ADDR_T_64BIT=y +CONFIG_X86_DIRECT_GBPAGES=y +CONFIG_ARCH_HAS_MEM_ENCRYPT=y +# CONFIG_AMD_MEM_ENCRYPT is not set +CONFIG_NUMA=y +CONFIG_AMD_NUMA=y +CONFIG_X86_64_ACPI_NUMA=y +CONFIG_NODES_SPAN_OTHER_NODES=y +# CONFIG_NUMA_EMU is not set +CONFIG_NODES_SHIFT=6 +CONFIG_ARCH_SPARSEMEM_ENABLE=y +CONFIG_ARCH_SPARSEMEM_DEFAULT=y +CONFIG_ARCH_SELECT_MEMORY_MODEL=y +CONFIG_ARCH_MEMORY_PROBE=y +CONFIG_ARCH_PROC_KCORE_TEXT=y +CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000 +CONFIG_SELECT_MEMORY_MODEL=y +CONFIG_SPARSEMEM_MANUAL=y +CONFIG_SPARSEMEM=y +CONFIG_NEED_MULTIPLE_NODES=y +CONFIG_HAVE_MEMORY_PRESENT=y +CONFIG_SPARSEMEM_EXTREME=y +CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y +CONFIG_SPARSEMEM_ALLOC_MEM_MAP_TOGETHER=y +CONFIG_SPARSEMEM_VMEMMAP=y +CONFIG_HAVE_MEMBLOCK=y +CONFIG_HAVE_MEMBLOCK_NODE_MAP=y +CONFIG_HAVE_GENERIC_GUP=y +CONFIG_ARCH_DISCARD_MEMBLOCK=y +CONFIG_MEMORY_ISOLATION=y +CONFIG_HAVE_BOOTMEM_INFO_NODE=y +CONFIG_MEMORY_HOTPLUG=y +CONFIG_MEMORY_HOTPLUG_SPARSE=y +CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE=y +CONFIG_MEMORY_HOTREMOVE=y +CONFIG_SPLIT_PTLOCK_CPUS=4 +CONFIG_ARCH_ENABLE_SPLIT_PMD_PTLOCK=y +CONFIG_MEMORY_BALLOON=y +CONFIG_BALLOON_COMPACTION=y +CONFIG_COMPACTION=y +CONFIG_MIGRATION=y +CONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION=y +CONFIG_ARCH_ENABLE_THP_MIGRATION=y +CONFIG_PHYS_ADDR_T_64BIT=y +CONFIG_BOUNCE=y +CONFIG_VIRT_TO_BUS=y +CONFIG_MMU_NOTIFIER=y +CONFIG_KSM=y +CONFIG_DEFAULT_MMAP_MIN_ADDR=65536 +CONFIG_ARCH_SUPPORTS_MEMORY_FAILURE=y +CONFIG_MEMORY_FAILURE=y +CONFIG_HWPOISON_INJECT=m +CONFIG_TRANSPARENT_HUGEPAGE=y +CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y +# CONFIG_TRANSPARENT_HUGEPAGE_MADVISE is not set +CONFIG_ARCH_WANTS_THP_SWAP=y +CONFIG_THP_SWAP=y +CONFIG_TRANSPARENT_HUGE_PAGECACHE=y +CONFIG_CLEANCACHE=y +CONFIG_FRONTSWAP=y +# CONFIG_CMA is not set +CONFIG_ZSWAP=y +CONFIG_ZPOOL=y +CONFIG_ZBUD=y +CONFIG_Z3FOLD=y +CONFIG_ZSMALLOC=y +# CONFIG_PGTABLE_MAPPING is not set +# CONFIG_ZSMALLOC_STAT is not set +CONFIG_GENERIC_EARLY_IOREMAP=y +CONFIG_ARCH_SUPPORTS_DEFERRED_STRUCT_PAGE_INIT=y +# CONFIG_DEFERRED_STRUCT_PAGE_INIT is not set +# CONFIG_IDLE_PAGE_TRACKING is not set +CONFIG_ARCH_HAS_ZONE_DEVICE=y +CONFIG_ZONE_DEVICE=y +CONFIG_ARCH_HAS_HMM=y +CONFIG_MIGRATE_VMA_HELPER=y +CONFIG_HMM=y +CONFIG_HMM_MIRROR=y +CONFIG_DEVICE_PRIVATE=y +CONFIG_DEVICE_PUBLIC=y +CONFIG_FRAME_VECTOR=y +CONFIG_ARCH_USES_HIGH_VMA_FLAGS=y +CONFIG_ARCH_HAS_PKEYS=y +# CONFIG_PERCPU_STATS is not set +CONFIG_GUP_BENCHMARK=y +# CONFIG_X86_PMEM_LEGACY is not set +CONFIG_X86_CHECK_BIOS_CORRUPTION=y +CONFIG_X86_BOOTPARAM_MEMORY_CORRUPTION_CHECK=y +CONFIG_X86_RESERVE_LOW=64 +CONFIG_MTRR=y +CONFIG_MTRR_SANITIZER=y +CONFIG_MTRR_SANITIZER_ENABLE_DEFAULT=0 +CONFIG_MTRR_SANITIZER_SPARE_REG_NR_DEFAULT=1 +CONFIG_X86_PAT=y +CONFIG_ARCH_USES_PG_UNCACHED=y +CONFIG_ARCH_RANDOM=y +CONFIG_X86_SMAP=y +CONFIG_X86_INTEL_UMIP=y +CONFIG_X86_INTEL_MPX=y +CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS=y +CONFIG_EFI=y +CONFIG_EFI_STUB=y +CONFIG_EFI_MIXED=y +CONFIG_SECCOMP=y +# CONFIG_HZ_100 is not set +# CONFIG_HZ_250 is not set +# CONFIG_HZ_300 is not set +CONFIG_HZ_1000=y +CONFIG_HZ=1000 +CONFIG_SCHED_HRTICK=y +CONFIG_KEXEC=y +CONFIG_KEXEC_FILE=y +# CONFIG_KEXEC_VERIFY_SIG is not set +CONFIG_CRASH_DUMP=y +CONFIG_KEXEC_JUMP=y +CONFIG_PHYSICAL_START=0x1000000 +CONFIG_RELOCATABLE=y +CONFIG_RANDOMIZE_BASE=y +CONFIG_X86_NEED_RELOCS=y +CONFIG_PHYSICAL_ALIGN=0x1000000 +CONFIG_RANDOMIZE_MEMORY=y +CONFIG_RANDOMIZE_MEMORY_PHYSICAL_PADDING=0xa +CONFIG_HOTPLUG_CPU=y +# CONFIG_BOOTPARAM_HOTPLUG_CPU0 is not set +# CONFIG_DEBUG_HOTPLUG_CPU0 is not set +# CONFIG_COMPAT_VDSO is not set +# CONFIG_LEGACY_VSYSCALL_NATIVE is not set +CONFIG_LEGACY_VSYSCALL_EMULATE=y +# CONFIG_LEGACY_VSYSCALL_NONE is not set +# CONFIG_CMDLINE_BOOL is not set +CONFIG_MODIFY_LDT_SYSCALL=y +CONFIG_HAVE_LIVEPATCH=y +CONFIG_ARCH_HAS_ADD_PAGES=y +CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y +CONFIG_ARCH_ENABLE_MEMORY_HOTREMOVE=y +CONFIG_USE_PERCPU_NUMA_NODE_ID=y + +# +# Power management and ACPI options +# +CONFIG_ARCH_HIBERNATION_HEADER=y +CONFIG_SUSPEND=y +CONFIG_SUSPEND_FREEZER=y +CONFIG_HIBERNATE_CALLBACKS=y +CONFIG_HIBERNATION=y +CONFIG_PM_STD_PARTITION="" +CONFIG_PM_SLEEP=y +CONFIG_PM_SLEEP_SMP=y +CONFIG_PM_AUTOSLEEP=y +CONFIG_PM_WAKELOCKS=y +CONFIG_PM_WAKELOCKS_LIMIT=100 +CONFIG_PM_WAKELOCKS_GC=y +CONFIG_PM=y +CONFIG_PM_DEBUG=y +CONFIG_PM_ADVANCED_DEBUG=y +# CONFIG_PM_TEST_SUSPEND is not set +CONFIG_PM_SLEEP_DEBUG=y +CONFIG_PM_TRACE=y +CONFIG_PM_TRACE_RTC=y +CONFIG_PM_CLK=y +CONFIG_PM_GENERIC_DOMAINS=y +# CONFIG_WQ_POWER_EFFICIENT_DEFAULT is not set +CONFIG_PM_GENERIC_DOMAINS_SLEEP=y +CONFIG_ACPI=y +CONFIG_ACPI_LEGACY_TABLES_LOOKUP=y +CONFIG_ARCH_MIGHT_HAVE_ACPI_PDC=y +CONFIG_ACPI_SYSTEM_POWER_STATES_SUPPORT=y +# CONFIG_ACPI_DEBUGGER is not set +CONFIG_ACPI_LPIT=y +CONFIG_ACPI_SLEEP=y +# CONFIG_ACPI_PROCFS_POWER is not set +CONFIG_ACPI_REV_OVERRIDE_POSSIBLE=y +CONFIG_ACPI_EC_DEBUGFS=m +CONFIG_ACPI_AC=m +CONFIG_ACPI_BATTERY=m +CONFIG_ACPI_BUTTON=m +CONFIG_ACPI_VIDEO=m +CONFIG_ACPI_FAN=m +CONFIG_ACPI_DOCK=y +CONFIG_ACPI_CPU_FREQ_PSS=y +CONFIG_ACPI_PROCESSOR_CSTATE=y +CONFIG_ACPI_PROCESSOR_IDLE=y +CONFIG_ACPI_CPPC_LIB=y +CONFIG_ACPI_PROCESSOR=y +CONFIG_ACPI_IPMI=m +CONFIG_ACPI_HOTPLUG_CPU=y +CONFIG_ACPI_PROCESSOR_AGGREGATOR=m +CONFIG_ACPI_THERMAL=m +CONFIG_ACPI_NUMA=y +# CONFIG_ACPI_CUSTOM_DSDT is not set +CONFIG_ARCH_HAS_ACPI_TABLE_UPGRADE=y +CONFIG_ACPI_TABLE_UPGRADE=y +# CONFIG_ACPI_DEBUG is not set +CONFIG_ACPI_PCI_SLOT=y +CONFIG_X86_PM_TIMER=y +CONFIG_ACPI_CONTAINER=y +CONFIG_ACPI_HOTPLUG_MEMORY=y +CONFIG_ACPI_HOTPLUG_IOAPIC=y +CONFIG_ACPI_SBS=m +CONFIG_ACPI_HED=y +CONFIG_ACPI_CUSTOM_METHOD=m +CONFIG_ACPI_BGRT=y +# CONFIG_ACPI_REDUCED_HARDWARE_ONLY is not set +CONFIG_ACPI_NFIT=m +CONFIG_HAVE_ACPI_APEI=y +CONFIG_HAVE_ACPI_APEI_NMI=y +CONFIG_ACPI_APEI=y +CONFIG_ACPI_APEI_GHES=y +CONFIG_ACPI_APEI_PCIEAER=y +CONFIG_ACPI_APEI_MEMORY_FAILURE=y +CONFIG_ACPI_APEI_EINJ=m +CONFIG_ACPI_APEI_ERST_DEBUG=m +CONFIG_DPTF_POWER=m +CONFIG_ACPI_EXTLOG=m +CONFIG_PMIC_OPREGION=y +# CONFIG_CRC_PMIC_OPREGION is not set +# CONFIG_XPOWER_PMIC_OPREGION is not set +# CONFIG_BXT_WC_PMIC_OPREGION is not set +CONFIG_CHT_DC_TI_PMIC_OPREGION=y +CONFIG_ACPI_CONFIGFS=m +CONFIG_TPS68470_PMIC_OPREGION=y +CONFIG_SFI=y + +# +# CPU Frequency scaling +# +CONFIG_CPU_FREQ=y +CONFIG_CPU_FREQ_GOV_ATTR_SET=y +CONFIG_CPU_FREQ_GOV_COMMON=y +CONFIG_CPU_FREQ_STAT=y +# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set +# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set +# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set +CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y +# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set +# CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL is not set +CONFIG_CPU_FREQ_GOV_PERFORMANCE=y +CONFIG_CPU_FREQ_GOV_POWERSAVE=m +CONFIG_CPU_FREQ_GOV_USERSPACE=m +CONFIG_CPU_FREQ_GOV_ONDEMAND=y +CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m +# CONFIG_CPU_FREQ_GOV_SCHEDUTIL is not set + +# +# CPU frequency scaling drivers +# +CONFIG_X86_INTEL_PSTATE=y +CONFIG_X86_PCC_CPUFREQ=m +CONFIG_X86_ACPI_CPUFREQ=m +CONFIG_X86_ACPI_CPUFREQ_CPB=y +CONFIG_X86_POWERNOW_K8=m +CONFIG_X86_AMD_FREQ_SENSITIVITY=m +# CONFIG_X86_SPEEDSTEP_CENTRINO is not set +CONFIG_X86_P4_CLOCKMOD=m + +# +# shared options +# +CONFIG_X86_SPEEDSTEP_LIB=m + +# +# CPU Idle +# +CONFIG_CPU_IDLE=y +CONFIG_CPU_IDLE_GOV_LADDER=y +CONFIG_CPU_IDLE_GOV_MENU=y +# CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED is not set +CONFIG_INTEL_IDLE=y + +# +# Bus options (PCI etc.) +# +CONFIG_PCI=y +CONFIG_PCI_DIRECT=y +CONFIG_PCI_MMCONFIG=y +CONFIG_PCI_XEN=y +CONFIG_PCI_DOMAINS=y +CONFIG_PCIEPORTBUS=y +CONFIG_HOTPLUG_PCI_PCIE=y +CONFIG_PCIEAER=y +# CONFIG_PCIE_ECRC is not set +# CONFIG_PCIEAER_INJECT is not set +CONFIG_PCIEASPM=y +# CONFIG_PCIEASPM_DEBUG is not set +CONFIG_PCIEASPM_DEFAULT=y +# CONFIG_PCIEASPM_POWERSAVE is not set +# CONFIG_PCIEASPM_POWER_SUPERSAVE is not set +# CONFIG_PCIEASPM_PERFORMANCE is not set +CONFIG_PCIE_PME=y +CONFIG_PCIE_DPC=y +# CONFIG_PCIE_PTM is not set +CONFIG_PCI_BUS_ADDR_T_64BIT=y +CONFIG_PCI_MSI=y +CONFIG_PCI_MSI_IRQ_DOMAIN=y +CONFIG_PCI_QUIRKS=y +# CONFIG_PCI_DEBUG is not set +CONFIG_PCI_REALLOC_ENABLE_AUTO=y +CONFIG_PCI_STUB=m +CONFIG_XEN_PCIDEV_FRONTEND=m +CONFIG_PCI_ATS=y +CONFIG_PCI_LOCKLESS_CONFIG=y +CONFIG_PCI_IOV=y +CONFIG_PCI_PRI=y +CONFIG_PCI_PASID=y +CONFIG_PCI_LABEL=y +CONFIG_PCI_HYPERV=m +CONFIG_HOTPLUG_PCI=y +CONFIG_HOTPLUG_PCI_ACPI=y +CONFIG_HOTPLUG_PCI_ACPI_IBM=m +CONFIG_HOTPLUG_PCI_CPCI=y +CONFIG_HOTPLUG_PCI_CPCI_ZT5550=m +CONFIG_HOTPLUG_PCI_CPCI_GENERIC=m +CONFIG_HOTPLUG_PCI_SHPC=m + +# +# DesignWare PCI Core Support +# +# CONFIG_PCIE_DW_PLAT is not set + +# +# PCI host controller drivers +# +CONFIG_VMD=m + +# +# PCI Endpoint +# +# CONFIG_PCI_ENDPOINT is not set + +# +# PCI switch controller drivers +# +CONFIG_PCI_SW_SWITCHTEC=m +CONFIG_ISA_DMA_API=y +CONFIG_AMD_NB=y +CONFIG_PCCARD=m +CONFIG_PCMCIA=m +CONFIG_PCMCIA_LOAD_CIS=y +CONFIG_CARDBUS=y + +# +# PC-card bridges +# +CONFIG_YENTA=m +CONFIG_YENTA_O2=y +CONFIG_YENTA_RICOH=y +CONFIG_YENTA_TI=y +CONFIG_YENTA_ENE_TUNE=y +CONFIG_YENTA_TOSHIBA=y +CONFIG_PD6729=m +CONFIG_I82092=m +CONFIG_PCCARD_NONSTATIC=y +CONFIG_RAPIDIO=m +CONFIG_RAPIDIO_TSI721=m +CONFIG_RAPIDIO_DISC_TIMEOUT=30 +# CONFIG_RAPIDIO_ENABLE_RX_TX_PORTS is not set +CONFIG_RAPIDIO_DMA_ENGINE=y +CONFIG_RAPIDIO_DEBUG=y +CONFIG_RAPIDIO_ENUM_BASIC=m +CONFIG_RAPIDIO_CHMAN=m +CONFIG_RAPIDIO_MPORT_CDEV=m + +# +# RapidIO Switch drivers +# +CONFIG_RAPIDIO_TSI57X=m +CONFIG_RAPIDIO_CPS_XX=m +CONFIG_RAPIDIO_TSI568=m +CONFIG_RAPIDIO_CPS_GEN2=m +CONFIG_RAPIDIO_RXS_GEN3=m +# CONFIG_X86_SYSFB is not set + +# +# Executable file formats / Emulations +# +CONFIG_BINFMT_ELF=y +CONFIG_COMPAT_BINFMT_ELF=y +CONFIG_ELFCORE=y +CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=y +CONFIG_BINFMT_SCRIPT=y +# CONFIG_HAVE_AOUT is not set +CONFIG_BINFMT_MISC=y +CONFIG_COREDUMP=y +CONFIG_IA32_EMULATION=y +# CONFIG_IA32_AOUT is not set +# CONFIG_X86_X32 is not set +CONFIG_COMPAT_32=y +CONFIG_COMPAT=y +CONFIG_COMPAT_FOR_U64_ALIGNMENT=y +CONFIG_SYSVIPC_COMPAT=y +CONFIG_X86_DEV_DMA_OPS=y +CONFIG_NET=y +CONFIG_COMPAT_NETLINK_MESSAGES=y +CONFIG_NET_INGRESS=y +CONFIG_NET_EGRESS=y + +# +# Networking options +# +CONFIG_PACKET=y +CONFIG_PACKET_DIAG=m +CONFIG_UNIX=y +CONFIG_UNIX_DIAG=m +# CONFIG_TLS is not set +CONFIG_XFRM=y +CONFIG_XFRM_OFFLOAD=y +CONFIG_XFRM_ALGO=m +CONFIG_XFRM_USER=m +# CONFIG_XFRM_SUB_POLICY is not set +# CONFIG_XFRM_MIGRATE is not set +# CONFIG_XFRM_STATISTICS is not set +CONFIG_XFRM_IPCOMP=m +CONFIG_NET_KEY=m +# CONFIG_NET_KEY_MIGRATE is not set +# CONFIG_SMC is not set +CONFIG_INET=y +CONFIG_IP_MULTICAST=y +CONFIG_IP_ADVANCED_ROUTER=y +CONFIG_IP_FIB_TRIE_STATS=y +CONFIG_IP_MULTIPLE_TABLES=y +CONFIG_IP_ROUTE_MULTIPATH=y +CONFIG_IP_ROUTE_VERBOSE=y +CONFIG_IP_ROUTE_CLASSID=y +# CONFIG_IP_PNP is not set +CONFIG_NET_IPIP=m +CONFIG_NET_IPGRE_DEMUX=m +CONFIG_NET_IP_TUNNEL=m +CONFIG_NET_IPGRE=m +# CONFIG_NET_IPGRE_BROADCAST is not set +CONFIG_IP_MROUTE=y +CONFIG_IP_MROUTE_MULTIPLE_TABLES=y +CONFIG_IP_PIMSM_V1=y +CONFIG_IP_PIMSM_V2=y +CONFIG_SYN_COOKIES=y +CONFIG_NET_IPVTI=m +CONFIG_NET_UDP_TUNNEL=m +CONFIG_NET_FOU=m +CONFIG_NET_FOU_IP_TUNNELS=y +CONFIG_INET_AH=m +CONFIG_INET_ESP=m +CONFIG_INET_ESP_OFFLOAD=m +CONFIG_INET_IPCOMP=m +CONFIG_INET_XFRM_TUNNEL=m +CONFIG_INET_TUNNEL=m +CONFIG_INET_XFRM_MODE_TRANSPORT=m +CONFIG_INET_XFRM_MODE_TUNNEL=m +CONFIG_INET_XFRM_MODE_BEET=m +CONFIG_INET_DIAG=m +CONFIG_INET_TCP_DIAG=m +CONFIG_INET_UDP_DIAG=m +CONFIG_INET_RAW_DIAG=m +CONFIG_INET_DIAG_DESTROY=y +CONFIG_TCP_CONG_ADVANCED=y +CONFIG_TCP_CONG_BIC=m +CONFIG_TCP_CONG_CUBIC=y +CONFIG_TCP_CONG_WESTWOOD=m +CONFIG_TCP_CONG_HTCP=m +CONFIG_TCP_CONG_HSTCP=m +CONFIG_TCP_CONG_HYBLA=m +CONFIG_TCP_CONG_VEGAS=m +CONFIG_TCP_CONG_NV=m +CONFIG_TCP_CONG_SCALABLE=m +CONFIG_TCP_CONG_LP=m +CONFIG_TCP_CONG_VENO=m +CONFIG_TCP_CONG_YEAH=m +CONFIG_TCP_CONG_ILLINOIS=m +CONFIG_TCP_CONG_DCTCP=m +CONFIG_TCP_CONG_CDG=m +CONFIG_TCP_CONG_BBR=y +CONFIG_DEFAULT_CUBIC=y +# CONFIG_DEFAULT_BBR is not set +# CONFIG_DEFAULT_RENO is not set +CONFIG_DEFAULT_TCP_CONG="cubic" +CONFIG_TCP_MD5SIG=y +CONFIG_IPV6=y +CONFIG_IPV6_ROUTER_PREF=y +CONFIG_IPV6_ROUTE_INFO=y +CONFIG_IPV6_OPTIMISTIC_DAD=y +CONFIG_INET6_AH=m +CONFIG_INET6_ESP=m +# CONFIG_INET6_ESP_OFFLOAD is not set +CONFIG_INET6_IPCOMP=m +CONFIG_IPV6_MIP6=m +CONFIG_IPV6_ILA=m +CONFIG_INET6_XFRM_TUNNEL=m +CONFIG_INET6_TUNNEL=m +CONFIG_INET6_XFRM_MODE_TRANSPORT=m +CONFIG_INET6_XFRM_MODE_TUNNEL=m +CONFIG_INET6_XFRM_MODE_BEET=m +CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION=m +CONFIG_IPV6_VTI=m +CONFIG_IPV6_SIT=m +CONFIG_IPV6_SIT_6RD=y +CONFIG_IPV6_NDISC_NODETYPE=y +CONFIG_IPV6_TUNNEL=m +CONFIG_IPV6_GRE=m +CONFIG_IPV6_FOU=m +CONFIG_IPV6_FOU_TUNNEL=m +CONFIG_IPV6_MULTIPLE_TABLES=y +CONFIG_IPV6_SUBTREES=y +CONFIG_IPV6_MROUTE=y +CONFIG_IPV6_MROUTE_MULTIPLE_TABLES=y +CONFIG_IPV6_PIMSM_V2=y +CONFIG_IPV6_SEG6_LWTUNNEL=y +CONFIG_IPV6_SEG6_HMAC=y +CONFIG_NETLABEL=y +CONFIG_NETWORK_SECMARK=y +CONFIG_NET_PTP_CLASSIFY=y +CONFIG_NETWORK_PHY_TIMESTAMPING=y +CONFIG_NETFILTER=y +CONFIG_NETFILTER_ADVANCED=y +CONFIG_BRIDGE_NETFILTER=m + +# +# Core Netfilter Configuration +# +CONFIG_NETFILTER_INGRESS=y +CONFIG_NETFILTER_NETLINK=m +CONFIG_NETFILTER_NETLINK_ACCT=m +CONFIG_NETFILTER_NETLINK_QUEUE=m +CONFIG_NETFILTER_NETLINK_LOG=m +CONFIG_NF_CONNTRACK=m +CONFIG_NF_LOG_COMMON=m +CONFIG_NF_LOG_NETDEV=m +CONFIG_NF_CONNTRACK_MARK=y +CONFIG_NF_CONNTRACK_SECMARK=y +CONFIG_NF_CONNTRACK_ZONES=y +CONFIG_NF_CONNTRACK_PROCFS=y +CONFIG_NF_CONNTRACK_EVENTS=y +CONFIG_NF_CONNTRACK_TIMEOUT=y +CONFIG_NF_CONNTRACK_TIMESTAMP=y +CONFIG_NF_CONNTRACK_LABELS=y +CONFIG_NF_CT_PROTO_DCCP=y +CONFIG_NF_CT_PROTO_GRE=m +CONFIG_NF_CT_PROTO_SCTP=y +CONFIG_NF_CT_PROTO_UDPLITE=y +CONFIG_NF_CONNTRACK_AMANDA=m +CONFIG_NF_CONNTRACK_FTP=m +CONFIG_NF_CONNTRACK_H323=m +CONFIG_NF_CONNTRACK_IRC=m +CONFIG_NF_CONNTRACK_BROADCAST=m +CONFIG_NF_CONNTRACK_NETBIOS_NS=m +CONFIG_NF_CONNTRACK_SNMP=m +CONFIG_NF_CONNTRACK_PPTP=m +CONFIG_NF_CONNTRACK_SANE=m +CONFIG_NF_CONNTRACK_SIP=m +CONFIG_NF_CONNTRACK_TFTP=m +CONFIG_NF_CT_NETLINK=m +CONFIG_NF_CT_NETLINK_TIMEOUT=m +CONFIG_NF_CT_NETLINK_HELPER=m +CONFIG_NETFILTER_NETLINK_GLUE_CT=y +CONFIG_NF_NAT=m +CONFIG_NF_NAT_NEEDED=y +CONFIG_NF_NAT_PROTO_DCCP=y +CONFIG_NF_NAT_PROTO_UDPLITE=y +CONFIG_NF_NAT_PROTO_SCTP=y +CONFIG_NF_NAT_AMANDA=m +CONFIG_NF_NAT_FTP=m +CONFIG_NF_NAT_IRC=m +CONFIG_NF_NAT_SIP=m +CONFIG_NF_NAT_TFTP=m +CONFIG_NF_NAT_REDIRECT=m +CONFIG_NETFILTER_SYNPROXY=m +CONFIG_NF_TABLES=m +CONFIG_NF_TABLES_INET=m +CONFIG_NF_TABLES_NETDEV=m +CONFIG_NFT_EXTHDR=m +CONFIG_NFT_META=m +CONFIG_NFT_RT=m +# CONFIG_NFT_NUMGEN is not set +CONFIG_NFT_CT=m +# CONFIG_NFT_SET_RBTREE is not set +# CONFIG_NFT_SET_HASH is not set +# CONFIG_NFT_SET_BITMAP is not set +CONFIG_NFT_COUNTER=m +CONFIG_NFT_LOG=m +CONFIG_NFT_LIMIT=m +CONFIG_NFT_MASQ=m +CONFIG_NFT_REDIR=m +CONFIG_NFT_NAT=m +CONFIG_NFT_OBJREF=m +CONFIG_NFT_QUEUE=m +# CONFIG_NFT_QUOTA is not set +CONFIG_NFT_REJECT=m +CONFIG_NFT_REJECT_INET=m +CONFIG_NFT_COMPAT=m +CONFIG_NFT_HASH=m +CONFIG_NF_DUP_NETDEV=m +CONFIG_NFT_DUP_NETDEV=m +CONFIG_NFT_FWD_NETDEV=m +CONFIG_NETFILTER_XTABLES=m + +# +# Xtables combined modules +# +CONFIG_NETFILTER_XT_MARK=m +CONFIG_NETFILTER_XT_CONNMARK=m +CONFIG_NETFILTER_XT_SET=m + +# +# Xtables targets +# +CONFIG_NETFILTER_XT_TARGET_AUDIT=m +CONFIG_NETFILTER_XT_TARGET_CHECKSUM=m +CONFIG_NETFILTER_XT_TARGET_CLASSIFY=m +CONFIG_NETFILTER_XT_TARGET_CONNMARK=m +CONFIG_NETFILTER_XT_TARGET_CONNSECMARK=m +CONFIG_NETFILTER_XT_TARGET_CT=m +CONFIG_NETFILTER_XT_TARGET_DSCP=m +CONFIG_NETFILTER_XT_TARGET_HL=m +CONFIG_NETFILTER_XT_TARGET_HMARK=m +CONFIG_NETFILTER_XT_TARGET_IDLETIMER=m +CONFIG_NETFILTER_XT_TARGET_LED=m +CONFIG_NETFILTER_XT_TARGET_LOG=m +CONFIG_NETFILTER_XT_TARGET_MARK=m +CONFIG_NETFILTER_XT_NAT=m +CONFIG_NETFILTER_XT_TARGET_NETMAP=m +CONFIG_NETFILTER_XT_TARGET_NFLOG=m +CONFIG_NETFILTER_XT_TARGET_NFQUEUE=m +CONFIG_NETFILTER_XT_TARGET_NOTRACK=m +CONFIG_NETFILTER_XT_TARGET_RATEEST=m +CONFIG_NETFILTER_XT_TARGET_REDIRECT=m +CONFIG_NETFILTER_XT_TARGET_TEE=m +CONFIG_NETFILTER_XT_TARGET_TPROXY=m +CONFIG_NETFILTER_XT_TARGET_TRACE=m +CONFIG_NETFILTER_XT_TARGET_SECMARK=m +CONFIG_NETFILTER_XT_TARGET_TCPMSS=m +CONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP=m + +# +# Xtables matches +# +CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=m +CONFIG_NETFILTER_XT_MATCH_BPF=m +CONFIG_NETFILTER_XT_MATCH_CGROUP=m +CONFIG_NETFILTER_XT_MATCH_CLUSTER=m +CONFIG_NETFILTER_XT_MATCH_COMMENT=m +CONFIG_NETFILTER_XT_MATCH_CONNBYTES=m +CONFIG_NETFILTER_XT_MATCH_CONNLABEL=m +CONFIG_NETFILTER_XT_MATCH_CONNLIMIT=m +CONFIG_NETFILTER_XT_MATCH_CONNMARK=m +CONFIG_NETFILTER_XT_MATCH_CONNTRACK=m +CONFIG_NETFILTER_XT_MATCH_CPU=m +CONFIG_NETFILTER_XT_MATCH_DCCP=m +CONFIG_NETFILTER_XT_MATCH_DEVGROUP=m +CONFIG_NETFILTER_XT_MATCH_DSCP=m +CONFIG_NETFILTER_XT_MATCH_ECN=m +CONFIG_NETFILTER_XT_MATCH_ESP=m +CONFIG_NETFILTER_XT_MATCH_HASHLIMIT=m +CONFIG_NETFILTER_XT_MATCH_HELPER=m +CONFIG_NETFILTER_XT_MATCH_HL=m +CONFIG_NETFILTER_XT_MATCH_IPCOMP=m +CONFIG_NETFILTER_XT_MATCH_IPRANGE=m +CONFIG_NETFILTER_XT_MATCH_IPVS=m +CONFIG_NETFILTER_XT_MATCH_L2TP=m +CONFIG_NETFILTER_XT_MATCH_LENGTH=m +CONFIG_NETFILTER_XT_MATCH_LIMIT=m +CONFIG_NETFILTER_XT_MATCH_MAC=m +CONFIG_NETFILTER_XT_MATCH_MARK=m +CONFIG_NETFILTER_XT_MATCH_MULTIPORT=m +CONFIG_NETFILTER_XT_MATCH_NFACCT=m +CONFIG_NETFILTER_XT_MATCH_OSF=m +CONFIG_NETFILTER_XT_MATCH_OWNER=m +CONFIG_NETFILTER_XT_MATCH_POLICY=m +CONFIG_NETFILTER_XT_MATCH_PHYSDEV=m +CONFIG_NETFILTER_XT_MATCH_PKTTYPE=m +CONFIG_NETFILTER_XT_MATCH_QUOTA=m +CONFIG_NETFILTER_XT_MATCH_RATEEST=m +CONFIG_NETFILTER_XT_MATCH_REALM=m +CONFIG_NETFILTER_XT_MATCH_RECENT=m +CONFIG_NETFILTER_XT_MATCH_SCTP=m +CONFIG_NETFILTER_XT_MATCH_SOCKET=m +CONFIG_NETFILTER_XT_MATCH_STATE=m +CONFIG_NETFILTER_XT_MATCH_STATISTIC=m +CONFIG_NETFILTER_XT_MATCH_STRING=m +CONFIG_NETFILTER_XT_MATCH_TCPMSS=m +CONFIG_NETFILTER_XT_MATCH_TIME=m +CONFIG_NETFILTER_XT_MATCH_U32=m +CONFIG_IP_SET=m +CONFIG_IP_SET_MAX=256 +CONFIG_IP_SET_BITMAP_IP=m +CONFIG_IP_SET_BITMAP_IPMAC=m +CONFIG_IP_SET_BITMAP_PORT=m +CONFIG_IP_SET_HASH_IP=m +CONFIG_IP_SET_HASH_IPMARK=m +CONFIG_IP_SET_HASH_IPPORT=m +CONFIG_IP_SET_HASH_IPPORTIP=m +CONFIG_IP_SET_HASH_IPPORTNET=m +CONFIG_IP_SET_HASH_IPMAC=m +CONFIG_IP_SET_HASH_MAC=m +CONFIG_IP_SET_HASH_NETPORTNET=m +CONFIG_IP_SET_HASH_NET=m +CONFIG_IP_SET_HASH_NETNET=m +CONFIG_IP_SET_HASH_NETPORT=m +CONFIG_IP_SET_HASH_NETIFACE=m +CONFIG_IP_SET_LIST_SET=m +CONFIG_IP_VS=m +CONFIG_IP_VS_IPV6=y +# CONFIG_IP_VS_DEBUG is not set +CONFIG_IP_VS_TAB_BITS=12 + +# +# IPVS transport protocol load balancing support +# +CONFIG_IP_VS_PROTO_TCP=y +CONFIG_IP_VS_PROTO_UDP=y +CONFIG_IP_VS_PROTO_AH_ESP=y +CONFIG_IP_VS_PROTO_ESP=y +CONFIG_IP_VS_PROTO_AH=y +CONFIG_IP_VS_PROTO_SCTP=y + +# +# IPVS scheduler +# +CONFIG_IP_VS_RR=m +CONFIG_IP_VS_WRR=m +CONFIG_IP_VS_LC=m +CONFIG_IP_VS_WLC=m +CONFIG_IP_VS_FO=m +CONFIG_IP_VS_OVF=m +CONFIG_IP_VS_LBLC=m +CONFIG_IP_VS_LBLCR=m +CONFIG_IP_VS_DH=m +CONFIG_IP_VS_SH=m +CONFIG_IP_VS_SED=m +CONFIG_IP_VS_NQ=m + +# +# IPVS SH scheduler +# +CONFIG_IP_VS_SH_TAB_BITS=8 + +# +# IPVS application helper +# +CONFIG_IP_VS_FTP=m +CONFIG_IP_VS_NFCT=y +CONFIG_IP_VS_PE_SIP=m + +# +# IP: Netfilter Configuration +# +CONFIG_NF_DEFRAG_IPV4=m +CONFIG_NF_CONNTRACK_IPV4=m +CONFIG_NF_SOCKET_IPV4=m +CONFIG_NF_TABLES_IPV4=m +CONFIG_NFT_CHAIN_ROUTE_IPV4=m +CONFIG_NFT_REJECT_IPV4=m +CONFIG_NFT_DUP_IPV4=m +# CONFIG_NFT_FIB_IPV4 is not set +CONFIG_NF_TABLES_ARP=m +CONFIG_NF_DUP_IPV4=m +CONFIG_NF_LOG_ARP=m +CONFIG_NF_LOG_IPV4=m +CONFIG_NF_REJECT_IPV4=m +CONFIG_NF_NAT_IPV4=m +CONFIG_NFT_CHAIN_NAT_IPV4=m +CONFIG_NF_NAT_MASQUERADE_IPV4=m +CONFIG_NFT_MASQ_IPV4=m +CONFIG_NFT_REDIR_IPV4=m +CONFIG_NF_NAT_SNMP_BASIC=m +CONFIG_NF_NAT_PROTO_GRE=m +CONFIG_NF_NAT_PPTP=m +CONFIG_NF_NAT_H323=m +CONFIG_IP_NF_IPTABLES=m +CONFIG_IP_NF_MATCH_AH=m +CONFIG_IP_NF_MATCH_ECN=m +CONFIG_IP_NF_MATCH_RPFILTER=m +CONFIG_IP_NF_MATCH_TTL=m +CONFIG_IP_NF_FILTER=m +CONFIG_IP_NF_TARGET_REJECT=m +CONFIG_IP_NF_TARGET_SYNPROXY=m +CONFIG_IP_NF_NAT=m +CONFIG_IP_NF_TARGET_MASQUERADE=m +CONFIG_IP_NF_TARGET_NETMAP=m +CONFIG_IP_NF_TARGET_REDIRECT=m +CONFIG_IP_NF_MANGLE=m +CONFIG_IP_NF_TARGET_CLUSTERIP=m +CONFIG_IP_NF_TARGET_ECN=m +CONFIG_IP_NF_TARGET_TTL=m +CONFIG_IP_NF_RAW=m +CONFIG_IP_NF_SECURITY=m +CONFIG_IP_NF_ARPTABLES=m +CONFIG_IP_NF_ARPFILTER=m +CONFIG_IP_NF_ARP_MANGLE=m + +# +# IPv6: Netfilter Configuration +# +CONFIG_NF_DEFRAG_IPV6=m +CONFIG_NF_CONNTRACK_IPV6=m +CONFIG_NF_SOCKET_IPV6=m +CONFIG_NF_TABLES_IPV6=m +CONFIG_NFT_CHAIN_ROUTE_IPV6=m +CONFIG_NFT_REJECT_IPV6=m +CONFIG_NFT_DUP_IPV6=m +# CONFIG_NFT_FIB_IPV6 is not set +CONFIG_NF_DUP_IPV6=m +CONFIG_NF_REJECT_IPV6=m +CONFIG_NF_LOG_IPV6=m +CONFIG_NF_NAT_IPV6=m +CONFIG_NFT_CHAIN_NAT_IPV6=m +CONFIG_NF_NAT_MASQUERADE_IPV6=m +CONFIG_NFT_MASQ_IPV6=m +CONFIG_NFT_REDIR_IPV6=m +CONFIG_IP6_NF_IPTABLES=m +CONFIG_IP6_NF_MATCH_AH=m +CONFIG_IP6_NF_MATCH_EUI64=m +CONFIG_IP6_NF_MATCH_FRAG=m +CONFIG_IP6_NF_MATCH_OPTS=m +CONFIG_IP6_NF_MATCH_HL=m +CONFIG_IP6_NF_MATCH_IPV6HEADER=m +CONFIG_IP6_NF_MATCH_MH=m +CONFIG_IP6_NF_MATCH_RPFILTER=m +CONFIG_IP6_NF_MATCH_RT=m +CONFIG_IP6_NF_TARGET_HL=m +CONFIG_IP6_NF_FILTER=m +CONFIG_IP6_NF_TARGET_REJECT=m +CONFIG_IP6_NF_TARGET_SYNPROXY=m +CONFIG_IP6_NF_MANGLE=m +CONFIG_IP6_NF_RAW=m +CONFIG_IP6_NF_SECURITY=m +CONFIG_IP6_NF_NAT=m +CONFIG_IP6_NF_TARGET_MASQUERADE=m +CONFIG_IP6_NF_TARGET_NPT=m +CONFIG_NF_TABLES_BRIDGE=m +CONFIG_NFT_BRIDGE_META=m +CONFIG_NFT_BRIDGE_REJECT=m +CONFIG_NF_LOG_BRIDGE=m +CONFIG_BRIDGE_NF_EBTABLES=m +CONFIG_BRIDGE_EBT_BROUTE=m +CONFIG_BRIDGE_EBT_T_FILTER=m +CONFIG_BRIDGE_EBT_T_NAT=m +CONFIG_BRIDGE_EBT_802_3=m +CONFIG_BRIDGE_EBT_AMONG=m +CONFIG_BRIDGE_EBT_ARP=m +CONFIG_BRIDGE_EBT_IP=m +CONFIG_BRIDGE_EBT_IP6=m +CONFIG_BRIDGE_EBT_LIMIT=m +CONFIG_BRIDGE_EBT_MARK=m +CONFIG_BRIDGE_EBT_PKTTYPE=m +CONFIG_BRIDGE_EBT_STP=m +CONFIG_BRIDGE_EBT_VLAN=m +CONFIG_BRIDGE_EBT_ARPREPLY=m +CONFIG_BRIDGE_EBT_DNAT=m +CONFIG_BRIDGE_EBT_MARK_T=m +CONFIG_BRIDGE_EBT_REDIRECT=m +CONFIG_BRIDGE_EBT_SNAT=m +CONFIG_BRIDGE_EBT_LOG=m +CONFIG_BRIDGE_EBT_NFLOG=m +CONFIG_IP_DCCP=m +CONFIG_INET_DCCP_DIAG=m + +# +# DCCP CCIDs Configuration +# +# CONFIG_IP_DCCP_CCID2_DEBUG is not set +CONFIG_IP_DCCP_CCID3=y +# CONFIG_IP_DCCP_CCID3_DEBUG is not set +CONFIG_IP_DCCP_TFRC_LIB=y + +# +# DCCP Kernel Hacking +# +# CONFIG_IP_DCCP_DEBUG is not set +CONFIG_NET_DCCPPROBE=m +CONFIG_IP_SCTP=m +CONFIG_NET_SCTPPROBE=m +# CONFIG_SCTP_DBG_OBJCNT is not set +# CONFIG_SCTP_DEFAULT_COOKIE_HMAC_MD5 is not set +CONFIG_SCTP_DEFAULT_COOKIE_HMAC_SHA1=y +# CONFIG_SCTP_DEFAULT_COOKIE_HMAC_NONE is not set +CONFIG_SCTP_COOKIE_HMAC_MD5=y +CONFIG_SCTP_COOKIE_HMAC_SHA1=y +CONFIG_INET_SCTP_DIAG=m +# CONFIG_RDS is not set +# CONFIG_TIPC is not set +CONFIG_ATM=m +CONFIG_ATM_CLIP=m +# CONFIG_ATM_CLIP_NO_ICMP is not set +CONFIG_ATM_LANE=m +CONFIG_ATM_MPOA=m +CONFIG_ATM_BR2684=m +# CONFIG_ATM_BR2684_IPFILTER is not set +CONFIG_L2TP=m +# CONFIG_L2TP_DEBUGFS is not set +CONFIG_L2TP_V3=y +CONFIG_L2TP_IP=m +CONFIG_L2TP_ETH=m +CONFIG_STP=m +CONFIG_MRP=m +CONFIG_BRIDGE=m +CONFIG_BRIDGE_IGMP_SNOOPING=y +CONFIG_BRIDGE_VLAN_FILTERING=y +CONFIG_HAVE_NET_DSA=y +CONFIG_NET_DSA=m +CONFIG_NET_DSA_TAG_BRCM=y +CONFIG_NET_DSA_TAG_BRCM_PREPEND=y +CONFIG_NET_DSA_TAG_DSA=y +CONFIG_NET_DSA_TAG_EDSA=y +CONFIG_NET_DSA_TAG_LAN9303=y +CONFIG_NET_DSA_TAG_MTK=y +CONFIG_NET_DSA_TAG_TRAILER=y +CONFIG_NET_DSA_TAG_QCA=y +CONFIG_VLAN_8021Q=m +# CONFIG_VLAN_8021Q_GVRP is not set +CONFIG_VLAN_8021Q_MVRP=y +# CONFIG_DECNET is not set +CONFIG_LLC=m +CONFIG_LLC2=m +# CONFIG_IPX is not set +# CONFIG_ATALK is not set +# CONFIG_X25 is not set +# CONFIG_LAPB is not set +CONFIG_PHONET=m +CONFIG_6LOWPAN=m +# CONFIG_6LOWPAN_DEBUGFS is not set +CONFIG_6LOWPAN_NHC=m +CONFIG_6LOWPAN_NHC_DEST=m +CONFIG_6LOWPAN_NHC_FRAGMENT=m +CONFIG_6LOWPAN_NHC_HOP=m +CONFIG_6LOWPAN_NHC_IPV6=m +CONFIG_6LOWPAN_NHC_MOBILITY=m +CONFIG_6LOWPAN_NHC_ROUTING=m +CONFIG_6LOWPAN_NHC_UDP=m +CONFIG_6LOWPAN_GHC_EXT_HDR_HOP=m +CONFIG_6LOWPAN_GHC_UDP=m +CONFIG_6LOWPAN_GHC_ICMPV6=m +CONFIG_6LOWPAN_GHC_EXT_HDR_DEST=m +CONFIG_6LOWPAN_GHC_EXT_HDR_FRAG=m +CONFIG_6LOWPAN_GHC_EXT_HDR_ROUTE=m +CONFIG_IEEE802154=m +# CONFIG_IEEE802154_NL802154_EXPERIMENTAL is not set +CONFIG_IEEE802154_SOCKET=m +CONFIG_IEEE802154_6LOWPAN=m +CONFIG_MAC802154=m +CONFIG_NET_SCHED=y + +# +# Queueing/Scheduling +# +CONFIG_NET_SCH_CBQ=m +CONFIG_NET_SCH_HTB=m +CONFIG_NET_SCH_HFSC=m +CONFIG_NET_SCH_ATM=m +CONFIG_NET_SCH_PRIO=m +CONFIG_NET_SCH_MULTIQ=m +CONFIG_NET_SCH_RED=m +CONFIG_NET_SCH_SFB=m +CONFIG_NET_SCH_SFQ=m +CONFIG_NET_SCH_TEQL=m +CONFIG_NET_SCH_TBF=m +CONFIG_NET_SCH_CBS=m +CONFIG_NET_SCH_GRED=m +CONFIG_NET_SCH_DSMARK=m +CONFIG_NET_SCH_NETEM=m +CONFIG_NET_SCH_DRR=m +CONFIG_NET_SCH_MQPRIO=m +CONFIG_NET_SCH_CHOKE=m +CONFIG_NET_SCH_QFQ=m +CONFIG_NET_SCH_CODEL=m +CONFIG_NET_SCH_FQ_CODEL=m +CONFIG_NET_SCH_FQ=m +CONFIG_NET_SCH_HHF=m +CONFIG_NET_SCH_PIE=m +CONFIG_NET_SCH_INGRESS=m +CONFIG_NET_SCH_PLUG=m +# CONFIG_NET_SCH_DEFAULT is not set + +# +# Classification +# +CONFIG_NET_CLS=y +CONFIG_NET_CLS_BASIC=m +CONFIG_NET_CLS_TCINDEX=m +CONFIG_NET_CLS_ROUTE4=m +CONFIG_NET_CLS_FW=m +CONFIG_NET_CLS_U32=m +# CONFIG_CLS_U32_PERF is not set +# CONFIG_CLS_U32_MARK is not set +CONFIG_NET_CLS_RSVP=m +CONFIG_NET_CLS_RSVP6=m +CONFIG_NET_CLS_FLOW=m +CONFIG_NET_CLS_CGROUP=m +CONFIG_NET_CLS_BPF=m +CONFIG_NET_CLS_FLOWER=m +CONFIG_NET_CLS_MATCHALL=m +# CONFIG_NET_EMATCH is not set +CONFIG_NET_CLS_ACT=y +CONFIG_NET_ACT_POLICE=m +CONFIG_NET_ACT_GACT=m +CONFIG_GACT_PROB=y +CONFIG_NET_ACT_MIRRED=m +CONFIG_NET_ACT_SAMPLE=m +CONFIG_NET_ACT_IPT=m +CONFIG_NET_ACT_NAT=m +CONFIG_NET_ACT_PEDIT=m +CONFIG_NET_ACT_SIMP=m +CONFIG_NET_ACT_SKBEDIT=m +CONFIG_NET_ACT_CSUM=m +CONFIG_NET_ACT_VLAN=m +CONFIG_NET_ACT_BPF=m +CONFIG_NET_ACT_CONNMARK=m +# CONFIG_NET_ACT_SKBMOD is not set +CONFIG_NET_ACT_IFE=m +# CONFIG_NET_ACT_TUNNEL_KEY is not set +CONFIG_NET_IFE_SKBMARK=m +CONFIG_NET_IFE_SKBPRIO=m +# CONFIG_NET_IFE_SKBTCINDEX is not set +CONFIG_NET_CLS_IND=y +CONFIG_NET_SCH_FIFO=y +# CONFIG_DCB is not set +CONFIG_DNS_RESOLVER=m +CONFIG_BATMAN_ADV=m +# CONFIG_BATMAN_ADV_BATMAN_V is not set +CONFIG_BATMAN_ADV_BLA=y +CONFIG_BATMAN_ADV_DAT=y +CONFIG_BATMAN_ADV_NC=y +CONFIG_BATMAN_ADV_MCAST=y +CONFIG_BATMAN_ADV_DEBUGFS=y +# CONFIG_BATMAN_ADV_DEBUG is not set +CONFIG_OPENVSWITCH=m +CONFIG_OPENVSWITCH_GRE=m +CONFIG_OPENVSWITCH_VXLAN=m +CONFIG_OPENVSWITCH_GENEVE=m +CONFIG_VSOCKETS=m +CONFIG_VSOCKETS_DIAG=m +CONFIG_VMWARE_VMCI_VSOCKETS=m +CONFIG_VIRTIO_VSOCKETS=m +CONFIG_VIRTIO_VSOCKETS_COMMON=m +CONFIG_HYPERV_VSOCKETS=m +CONFIG_NETLINK_DIAG=m +CONFIG_MPLS=y +CONFIG_NET_MPLS_GSO=m +CONFIG_MPLS_ROUTING=m +CONFIG_MPLS_IPTUNNEL=m +CONFIG_NET_NSH=m +CONFIG_HSR=m +CONFIG_NET_SWITCHDEV=y +CONFIG_NET_L3_MASTER_DEV=y +CONFIG_NET_NCSI=y +CONFIG_RPS=y +CONFIG_RFS_ACCEL=y +CONFIG_XPS=y +CONFIG_CGROUP_NET_PRIO=y +CONFIG_CGROUP_NET_CLASSID=y +CONFIG_NET_RX_BUSY_POLL=y +CONFIG_BQL=y +CONFIG_BPF_JIT=y +CONFIG_BPF_STREAM_PARSER=y +CONFIG_NET_FLOW_LIMIT=y + +# +# Network testing +# +CONFIG_NET_PKTGEN=m +CONFIG_NET_TCPPROBE=m +CONFIG_NET_DROP_MONITOR=m +CONFIG_HAMRADIO=y + +# +# Packet Radio protocols +# +CONFIG_AX25=m +CONFIG_AX25_DAMA_SLAVE=y +CONFIG_NETROM=m +CONFIG_ROSE=m + +# +# AX.25 network device drivers +# +CONFIG_MKISS=m +CONFIG_6PACK=m +CONFIG_BPQETHER=m +CONFIG_BAYCOM_SER_FDX=m +CONFIG_BAYCOM_SER_HDX=m +CONFIG_BAYCOM_PAR=m +CONFIG_YAM=m +CONFIG_CAN=m +CONFIG_CAN_RAW=m +CONFIG_CAN_BCM=m +CONFIG_CAN_GW=m + +# +# CAN Device Drivers +# +CONFIG_CAN_VCAN=m +CONFIG_CAN_VXCAN=m +CONFIG_CAN_SLCAN=m +CONFIG_CAN_DEV=m +CONFIG_CAN_CALC_BITTIMING=y +CONFIG_CAN_LEDS=y +CONFIG_CAN_C_CAN=m +CONFIG_CAN_C_CAN_PLATFORM=m +CONFIG_CAN_C_CAN_PCI=m +CONFIG_CAN_CC770=m +# CONFIG_CAN_CC770_ISA is not set +CONFIG_CAN_CC770_PLATFORM=m +CONFIG_CAN_IFI_CANFD=m +CONFIG_CAN_M_CAN=m +CONFIG_CAN_PEAK_PCIEFD=m +CONFIG_CAN_SJA1000=m +# CONFIG_CAN_SJA1000_ISA is not set +CONFIG_CAN_SJA1000_PLATFORM=m +# CONFIG_CAN_EMS_PCMCIA is not set +CONFIG_CAN_EMS_PCI=m +# CONFIG_CAN_PEAK_PCMCIA is not set +CONFIG_CAN_PEAK_PCI=m +CONFIG_CAN_PEAK_PCIEC=y +CONFIG_CAN_KVASER_PCI=m +CONFIG_CAN_PLX_PCI=m +CONFIG_CAN_SOFTING=m +# CONFIG_CAN_SOFTING_CS is not set + +# +# CAN SPI interfaces +# +# CONFIG_CAN_HI311X is not set +# CONFIG_CAN_MCP251X is not set + +# +# CAN USB interfaces +# +CONFIG_CAN_EMS_USB=m +CONFIG_CAN_ESD_USB2=m +CONFIG_CAN_GS_USB=m +CONFIG_CAN_KVASER_USB=m +CONFIG_CAN_PEAK_USB=m +CONFIG_CAN_8DEV_USB=m +CONFIG_CAN_MCBA_USB=m +# CONFIG_CAN_DEBUG_DEVICES is not set +CONFIG_BT=m +CONFIG_BT_BREDR=y +CONFIG_BT_RFCOMM=m +CONFIG_BT_RFCOMM_TTY=y +CONFIG_BT_BNEP=m +CONFIG_BT_BNEP_MC_FILTER=y +CONFIG_BT_BNEP_PROTO_FILTER=y +CONFIG_BT_CMTP=m +CONFIG_BT_HIDP=m +CONFIG_BT_HS=y +CONFIG_BT_LE=y +CONFIG_BT_6LOWPAN=m +CONFIG_BT_LEDS=y +# CONFIG_BT_SELFTEST is not set +CONFIG_BT_DEBUGFS=y + +# +# Bluetooth device drivers +# +CONFIG_BT_INTEL=m +CONFIG_BT_BCM=m +CONFIG_BT_RTL=m +CONFIG_BT_QCA=m +CONFIG_BT_HCIBTUSB=m +CONFIG_BT_HCIBTUSB_BCM=y +CONFIG_BT_HCIBTUSB_RTL=y +CONFIG_BT_HCIBTSDIO=m +CONFIG_BT_HCIUART=m +CONFIG_BT_HCIUART_H4=y +CONFIG_BT_HCIUART_BCSP=y +CONFIG_BT_HCIUART_ATH3K=y +CONFIG_BT_HCIUART_3WIRE=y +CONFIG_BT_HCIUART_INTEL=y +CONFIG_BT_HCIUART_QCA=y +CONFIG_BT_HCIUART_AG6XX=y +CONFIG_BT_HCIUART_MRVL=y +CONFIG_BT_HCIBCM203X=m +CONFIG_BT_HCIBPA10X=m +CONFIG_BT_HCIBFUSB=m +CONFIG_BT_HCIDTL1=m +CONFIG_BT_HCIBT3C=m +CONFIG_BT_HCIBLUECARD=m +CONFIG_BT_HCIBTUART=m +CONFIG_BT_HCIVHCI=m +CONFIG_BT_MRVL=m +CONFIG_BT_MRVL_SDIO=m +CONFIG_BT_ATH3K=m +CONFIG_BT_WILINK=m +CONFIG_AF_RXRPC=m +CONFIG_AF_RXRPC_IPV6=y +CONFIG_AF_RXRPC_INJECT_LOSS=y +# CONFIG_AF_RXRPC_DEBUG is not set +# CONFIG_RXKAD is not set +CONFIG_AF_KCM=m +CONFIG_STREAM_PARSER=y +CONFIG_FIB_RULES=y +CONFIG_WIRELESS=y +CONFIG_WIRELESS_EXT=y +CONFIG_WEXT_CORE=y +CONFIG_WEXT_PROC=y +CONFIG_WEXT_SPY=y +CONFIG_WEXT_PRIV=y +CONFIG_CFG80211=m +# CONFIG_NL80211_TESTMODE is not set +# CONFIG_CFG80211_DEVELOPER_WARNINGS is not set +CONFIG_CFG80211_REQUIRE_SIGNED_REGDB=y +CONFIG_CFG80211_USE_KERNEL_REGDB_KEYS=y +CONFIG_CFG80211_DEFAULT_PS=y +# CONFIG_CFG80211_DEBUGFS is not set +CONFIG_CFG80211_CRDA_SUPPORT=y +CONFIG_CFG80211_WEXT=y +CONFIG_CFG80211_WEXT_EXPORT=y +CONFIG_LIB80211=m +CONFIG_LIB80211_CRYPT_WEP=m +CONFIG_LIB80211_CRYPT_CCMP=m +CONFIG_LIB80211_CRYPT_TKIP=m +# CONFIG_LIB80211_DEBUG is not set +CONFIG_MAC80211=m +CONFIG_MAC80211_HAS_RC=y +CONFIG_MAC80211_RC_MINSTREL=y +CONFIG_MAC80211_RC_MINSTREL_HT=y +# CONFIG_MAC80211_RC_MINSTREL_VHT is not set +CONFIG_MAC80211_RC_DEFAULT_MINSTREL=y +CONFIG_MAC80211_RC_DEFAULT="minstrel_ht" +CONFIG_MAC80211_MESH=y +CONFIG_MAC80211_LEDS=y +CONFIG_MAC80211_DEBUGFS=y +# CONFIG_MAC80211_MESSAGE_TRACING is not set +# CONFIG_MAC80211_DEBUG_MENU is not set +CONFIG_MAC80211_STA_HASH_MAX_SIZE=0 +CONFIG_WIMAX=m +CONFIG_WIMAX_DEBUG_LEVEL=8 +CONFIG_RFKILL=m +CONFIG_RFKILL_LEDS=y +CONFIG_RFKILL_INPUT=y +CONFIG_RFKILL_GPIO=m +CONFIG_NET_9P=m +CONFIG_NET_9P_VIRTIO=m +CONFIG_NET_9P_XEN=m +# CONFIG_NET_9P_RDMA is not set +# CONFIG_NET_9P_DEBUG is not set +CONFIG_CAIF=m +# CONFIG_CAIF_DEBUG is not set +CONFIG_CAIF_NETDEV=m +CONFIG_CAIF_USB=m +CONFIG_CEPH_LIB=m +# CONFIG_CEPH_LIB_PRETTYDEBUG is not set +# CONFIG_CEPH_LIB_USE_DNS_RESOLVER is not set +CONFIG_NFC=m +CONFIG_NFC_DIGITAL=m +CONFIG_NFC_NCI=m +# CONFIG_NFC_NCI_SPI is not set +# CONFIG_NFC_NCI_UART is not set +CONFIG_NFC_HCI=m +# CONFIG_NFC_SHDLC is not set + +# +# Near Field Communication (NFC) devices +# +CONFIG_NFC_TRF7970A=m +CONFIG_NFC_MEI_PHY=m +CONFIG_NFC_SIM=m +CONFIG_NFC_PORT100=m +CONFIG_NFC_FDP=m +CONFIG_NFC_FDP_I2C=m +CONFIG_NFC_PN544=m +CONFIG_NFC_PN544_MEI=m +CONFIG_NFC_PN533=m +CONFIG_NFC_PN533_USB=m +CONFIG_NFC_PN533_I2C=m +CONFIG_NFC_MICROREAD=m +CONFIG_NFC_MICROREAD_MEI=m +CONFIG_NFC_MRVL=m +CONFIG_NFC_MRVL_USB=m +CONFIG_NFC_MRVL_I2C=m +CONFIG_NFC_ST_NCI=m +CONFIG_NFC_ST_NCI_I2C=m +# CONFIG_NFC_ST_NCI_SPI is not set +# CONFIG_NFC_NXP_NCI is not set +# CONFIG_NFC_S3FWRN5_I2C is not set +CONFIG_NFC_ST95HF=m +CONFIG_PSAMPLE=m +CONFIG_NET_IFE=m +CONFIG_LWTUNNEL=y +CONFIG_LWTUNNEL_BPF=y +CONFIG_DST_CACHE=y +CONFIG_GRO_CELLS=y +CONFIG_NET_DEVLINK=m +CONFIG_MAY_USE_DEVLINK=m +CONFIG_HAVE_EBPF_JIT=y + +# +# Device Drivers +# + +# +# Generic Driver Options +# +# CONFIG_UEVENT_HELPER is not set +CONFIG_DEVTMPFS=y +# CONFIG_DEVTMPFS_MOUNT is not set +CONFIG_STANDALONE=y +CONFIG_PREVENT_FIRMWARE_BUILD=y +CONFIG_FW_LOADER=y +CONFIG_FIRMWARE_IN_KERNEL=y +CONFIG_EXTRA_FIRMWARE="amd-ucode/microcode_amd.bin amd-ucode/microcode_amd_fam15h.bin amd-ucode/microcode_amd_fam16h.bin amd-ucode/microcode_amd_fam17h.bin intel-ucode/06-03-02 intel-ucode/06-06-05 intel-ucode/06-7a-01 intel-ucode/06-08-01 intel-ucode/06-0a-01 intel-ucode/06-0f-02 intel-ucode/06-16-01 intel-ucode/06-1c-02 intel-ucode/06-25-05 intel-ucode/06-3a-09 intel-ucode/06-3f-02 intel-ucode/0f-00-0a intel-ucode/0f-02-09 intel-ucode/0f-04-04 intel-ucode/0f-06-04 intel-ucode/06-05-00 intel-ucode/06-06-0a intel-ucode/06-08-03 intel-ucode/06-0b-01 intel-ucode/06-0f-06 intel-ucode/06-17-06 intel-ucode/06-1c-0a intel-ucode/06-26-01 intel-ucode/06-3c-03 intel-ucode/06-3f-04 intel-ucode/0f-01-02 intel-ucode/0f-03-02 intel-ucode/0f-04-07 intel-ucode/0f-06-05 intel-ucode/06-05-01 intel-ucode/06-06-0d intel-ucode/06-08-06 intel-ucode/06-0b-04 intel-ucode/06-0f-07 intel-ucode/06-17-07 intel-ucode/06-1d-01 intel-ucode/06-2a-07 intel-ucode/06-3d-04 intel-ucode/06-45-01 intel-ucode/0f-02-04 intel-ucode/0f-03-03 intel-ucode/0f-04-08 intel-ucode/0f-06-08 intel-ucode/06-8e-0a intel-ucode/06-8e-09 intel-ucode/06-9e-09 intel-ucode/06-05-02 intel-ucode/06-07-01 intel-ucode/06-08-0a intel-ucode/06-0d-06 intel-ucode/06-0f-0a intel-ucode/06-17-0a intel-ucode/06-2d-06 intel-ucode/06-3e-04 intel-ucode/06-46-01 intel-ucode/0f-02-05 intel-ucode/0f-03-04 intel-ucode/0f-04-09 intel-ucode/06-05-03 intel-ucode/06-07-02 intel-ucode/06-09-05 intel-ucode/06-9e-0a intel-ucode/06-9e-0b intel-ucode/06-0e-08 intel-ucode/06-0f-0b intel-ucode/06-1a-04 intel-ucode/06-1e-05 intel-ucode/06-2d-07 intel-ucode/06-3e-06 intel-ucode/06-47-01 intel-ucode/06-55-04 intel-ucode/06-56-02 intel-ucode/06-56-03 intel-ucode/06-56-04 intel-ucode/0f-02-06 intel-ucode/0f-04-01 intel-ucode/0f-04-0a intel-ucode/06-5c-09 intel-ucode/06-5e-03 intel-ucode/06-06-00 intel-ucode/06-07-03 intel-ucode/06-0a-00 intel-ucode/06-0e-0c intel-ucode/06-0f-0d intel-ucode/06-1a-05 intel-ucode/06-25-02 intel-ucode/06-2f-02 intel-ucode/06-3e-07 intel-ucode/0f-00-07 intel-ucode/0f-02-07 intel-ucode/0f-04-03 intel-ucode/0f-06-02" +CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware" +CONFIG_FW_LOADER_USER_HELPER=y +# CONFIG_FW_LOADER_USER_HELPER_FALLBACK is not set +CONFIG_WANT_DEV_COREDUMP=y +CONFIG_ALLOW_DEV_COREDUMP=y +CONFIG_DEV_COREDUMP=y +# CONFIG_DEBUG_DRIVER is not set +# CONFIG_DEBUG_DEVRES is not set +# CONFIG_DEBUG_TEST_DRIVER_REMOVE is not set +# CONFIG_TEST_ASYNC_DRIVER_PROBE is not set +CONFIG_SYS_HYPERVISOR=y +# CONFIG_GENERIC_CPU_DEVICES is not set +CONFIG_GENERIC_CPU_AUTOPROBE=y +CONFIG_GENERIC_CPU_VULNERABILITIES=y +CONFIG_REGMAP=y +CONFIG_REGMAP_I2C=y +CONFIG_REGMAP_SPI=y +CONFIG_REGMAP_MMIO=y +CONFIG_REGMAP_IRQ=y +CONFIG_DMA_SHARED_BUFFER=y +# CONFIG_DMA_FENCE_TRACE is not set + +# +# Bus devices +# +CONFIG_CONNECTOR=y +CONFIG_PROC_EVENTS=y +CONFIG_MTD=m +CONFIG_MTD_TESTS=m +CONFIG_MTD_REDBOOT_PARTS=m +CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK=-1 +# CONFIG_MTD_REDBOOT_PARTS_UNALLOCATED is not set +# CONFIG_MTD_REDBOOT_PARTS_READONLY is not set +CONFIG_MTD_CMDLINE_PARTS=m +CONFIG_MTD_AR7_PARTS=m + +# +# Partition parsers +# + +# +# User Modules And Translation Layers +# +CONFIG_MTD_BLKDEVS=m +CONFIG_MTD_BLOCK=m +CONFIG_MTD_BLOCK_RO=m +CONFIG_FTL=m +CONFIG_NFTL=m +CONFIG_NFTL_RW=y +CONFIG_INFTL=m +CONFIG_RFD_FTL=m +CONFIG_SSFDC=m +# CONFIG_SM_FTL is not set +CONFIG_MTD_OOPS=m +CONFIG_MTD_SWAP=m +# CONFIG_MTD_PARTITIONED_MASTER is not set + +# +# RAM/ROM/Flash chip drivers +# +CONFIG_MTD_CFI=m +CONFIG_MTD_JEDECPROBE=m +CONFIG_MTD_GEN_PROBE=m +# CONFIG_MTD_CFI_ADV_OPTIONS is not set +CONFIG_MTD_MAP_BANK_WIDTH_1=y +CONFIG_MTD_MAP_BANK_WIDTH_2=y +CONFIG_MTD_MAP_BANK_WIDTH_4=y +# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set +# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set +# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set +CONFIG_MTD_CFI_I1=y +CONFIG_MTD_CFI_I2=y +# CONFIG_MTD_CFI_I4 is not set +# CONFIG_MTD_CFI_I8 is not set +CONFIG_MTD_CFI_INTELEXT=m +CONFIG_MTD_CFI_AMDSTD=m +CONFIG_MTD_CFI_STAA=m +CONFIG_MTD_CFI_UTIL=m +CONFIG_MTD_RAM=m +CONFIG_MTD_ROM=m +CONFIG_MTD_ABSENT=m + +# +# Mapping drivers for chip access +# +CONFIG_MTD_COMPLEX_MAPPINGS=y +# CONFIG_MTD_PHYSMAP is not set +# CONFIG_MTD_SBC_GXX is not set +# CONFIG_MTD_AMD76XROM is not set +# CONFIG_MTD_ICHXROM is not set +# CONFIG_MTD_ESB2ROM is not set +# CONFIG_MTD_CK804XROM is not set +CONFIG_MTD_SCB2_FLASH=m +# CONFIG_MTD_NETtel is not set +# CONFIG_MTD_L440GX is not set +CONFIG_MTD_PCI=m +# CONFIG_MTD_PCMCIA is not set +# CONFIG_MTD_GPIO_ADDR is not set +# CONFIG_MTD_INTEL_VR_NOR is not set +CONFIG_MTD_PLATRAM=m +# CONFIG_MTD_LATCH_ADDR is not set + +# +# Self-contained MTD device drivers +# +CONFIG_MTD_PMC551=m +# CONFIG_MTD_PMC551_BUGFIX is not set +# CONFIG_MTD_PMC551_DEBUG is not set +# CONFIG_MTD_DATAFLASH is not set +# CONFIG_MTD_MCHP23K256 is not set +# CONFIG_MTD_SST25L is not set +CONFIG_MTD_SLRAM=m +CONFIG_MTD_PHRAM=m +CONFIG_MTD_MTDRAM=m +CONFIG_MTDRAM_TOTAL_SIZE=4096 +CONFIG_MTDRAM_ERASE_SIZE=128 +CONFIG_MTD_BLOCK2MTD=m + +# +# Disk-On-Chip Device Drivers +# +# CONFIG_MTD_DOCG3 is not set +# CONFIG_MTD_NAND is not set +# CONFIG_MTD_ONENAND is not set + +# +# LPDDR & LPDDR2 PCM memory drivers +# +CONFIG_MTD_LPDDR=m +CONFIG_MTD_QINFO_PROBE=m +# CONFIG_MTD_SPI_NOR is not set +CONFIG_MTD_UBI=m +CONFIG_MTD_UBI_WL_THRESHOLD=4096 +CONFIG_MTD_UBI_BEB_LIMIT=20 +# CONFIG_MTD_UBI_FASTMAP is not set +# CONFIG_MTD_UBI_GLUEBI is not set +# CONFIG_MTD_UBI_BLOCK is not set +# CONFIG_OF is not set +CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y +CONFIG_PARPORT=m +CONFIG_PARPORT_PC=m +CONFIG_PARPORT_SERIAL=m +# CONFIG_PARPORT_PC_FIFO is not set +# CONFIG_PARPORT_PC_SUPERIO is not set +CONFIG_PARPORT_PC_PCMCIA=m +# CONFIG_PARPORT_GSC is not set +CONFIG_PARPORT_AX88796=m +CONFIG_PARPORT_1284=y +CONFIG_PARPORT_NOT_PC=y +CONFIG_PNP=y +# CONFIG_PNP_DEBUG_MESSAGES is not set + +# +# Protocols +# +CONFIG_PNPACPI=y +CONFIG_BLK_DEV=y +# CONFIG_BLK_DEV_NULL_BLK is not set +CONFIG_BLK_DEV_FD=m +CONFIG_CDROM=m +# CONFIG_PARIDE is not set +CONFIG_BLK_DEV_PCIESSD_MTIP32XX=m +CONFIG_ZRAM=m +CONFIG_ZRAM_WRITEBACK=y +CONFIG_BLK_DEV_DAC960=m +# CONFIG_BLK_DEV_UMEM is not set +# CONFIG_BLK_DEV_COW_COMMON is not set +CONFIG_BLK_DEV_LOOP=m +CONFIG_BLK_DEV_LOOP_MIN_COUNT=8 +CONFIG_BLK_DEV_CRYPTOLOOP=m +CONFIG_BLK_DEV_DRBD=m +# CONFIG_DRBD_FAULT_INJECTION is not set +CONFIG_BLK_DEV_NBD=m +CONFIG_BLK_DEV_SKD=m +CONFIG_BLK_DEV_SX8=m +CONFIG_BLK_DEV_RAM=m +CONFIG_BLK_DEV_RAM_COUNT=16 +CONFIG_BLK_DEV_RAM_SIZE=16384 +CONFIG_CDROM_PKTCDVD=m +CONFIG_CDROM_PKTCDVD_BUFFERS=8 +# CONFIG_CDROM_PKTCDVD_WCACHE is not set +CONFIG_ATA_OVER_ETH=m +CONFIG_XEN_BLKDEV_FRONTEND=m +CONFIG_XEN_BLKDEV_BACKEND=m +CONFIG_VIRTIO_BLK=m +# CONFIG_VIRTIO_BLK_SCSI is not set +CONFIG_BLK_DEV_RBD=m +CONFIG_BLK_DEV_RSXX=m + +# +# NVME Support +# +CONFIG_NVME_CORE=y +CONFIG_BLK_DEV_NVME=y +CONFIG_NVME_MULTIPATH=y +CONFIG_NVME_FABRICS=m +CONFIG_NVME_RDMA=m +CONFIG_NVME_FC=m +CONFIG_NVME_TARGET=m +CONFIG_NVME_TARGET_LOOP=m +CONFIG_NVME_TARGET_RDMA=m +CONFIG_NVME_TARGET_FC=m +CONFIG_NVME_TARGET_FCLOOP=m + +# +# Misc devices +# +CONFIG_SENSORS_LIS3LV02D=m +CONFIG_AD525X_DPOT=m +CONFIG_AD525X_DPOT_I2C=m +# CONFIG_AD525X_DPOT_SPI is not set +# CONFIG_DUMMY_IRQ is not set +# CONFIG_IBM_ASM is not set +CONFIG_PHANTOM=m +CONFIG_SGI_IOC4=m +CONFIG_TIFM_CORE=m +CONFIG_TIFM_7XX1=m +CONFIG_ICS932S401=m +CONFIG_ENCLOSURE_SERVICES=m +CONFIG_HP_ILO=m +CONFIG_APDS9802ALS=m +CONFIG_ISL29003=m +CONFIG_ISL29020=m +CONFIG_SENSORS_TSL2550=m +CONFIG_SENSORS_BH1770=m +CONFIG_SENSORS_APDS990X=m +CONFIG_HMC6352=m +CONFIG_DS1682=m +CONFIG_VMWARE_BALLOON=m +CONFIG_USB_SWITCH_FSA9480=m +# CONFIG_LATTICE_ECP3_CONFIG is not set +# CONFIG_SRAM is not set +CONFIG_PCI_ENDPOINT_TEST=m +CONFIG_C2PORT=m +CONFIG_C2PORT_DURAMAR_2150=m + +# +# EEPROM support +# +CONFIG_EEPROM_AT24=m +# CONFIG_EEPROM_AT25 is not set +CONFIG_EEPROM_LEGACY=m +CONFIG_EEPROM_MAX6875=m +CONFIG_EEPROM_93CX6=m +# CONFIG_EEPROM_93XX46 is not set +CONFIG_EEPROM_IDT_89HPESX=m +CONFIG_CB710_CORE=m +# CONFIG_CB710_DEBUG is not set +CONFIG_CB710_DEBUG_ASSUMPTIONS=y + +# +# Texas Instruments shared transport line discipline +# +CONFIG_TI_ST=m +CONFIG_SENSORS_LIS3_I2C=m +CONFIG_ALTERA_STAPL=m +CONFIG_INTEL_MEI=m +CONFIG_INTEL_MEI_ME=m +CONFIG_INTEL_MEI_TXE=m +CONFIG_VMWARE_VMCI=m + +# +# Intel MIC & related support +# + +# +# Intel MIC Bus Driver +# +CONFIG_INTEL_MIC_BUS=m + +# +# SCIF Bus Driver +# +CONFIG_SCIF_BUS=m + +# +# VOP Bus Driver +# +CONFIG_VOP_BUS=m + +# +# Intel MIC Host Driver +# +CONFIG_INTEL_MIC_HOST=m + +# +# Intel MIC Card Driver +# +CONFIG_INTEL_MIC_CARD=m + +# +# SCIF Driver +# +CONFIG_SCIF=m + +# +# Intel MIC Coprocessor State Management (COSM) Drivers +# +CONFIG_MIC_COSM=m + +# +# VOP Driver +# +CONFIG_VOP=m +CONFIG_VHOST_RING=m +CONFIG_GENWQE=m +CONFIG_GENWQE_PLATFORM_ERROR_RECOVERY=0 +CONFIG_ECHO=m +# CONFIG_CXL_BASE is not set +# CONFIG_CXL_AFU_DRIVER_OPS is not set +# CONFIG_CXL_LIB is not set +CONFIG_HAVE_IDE=y +# CONFIG_IDE is not set + +# +# SCSI device support +# +CONFIG_SCSI_MOD=m +CONFIG_RAID_ATTRS=m +CONFIG_SCSI=m +CONFIG_SCSI_DMA=y +CONFIG_SCSI_NETLINK=y +# CONFIG_SCSI_MQ_DEFAULT is not set +CONFIG_SCSI_PROC_FS=y + +# +# SCSI support type (disk, tape, CD-ROM) +# +CONFIG_BLK_DEV_SD=m +CONFIG_CHR_DEV_ST=m +CONFIG_CHR_DEV_OSST=m +CONFIG_BLK_DEV_SR=m +CONFIG_BLK_DEV_SR_VENDOR=y +CONFIG_CHR_DEV_SG=m +CONFIG_CHR_DEV_SCH=m +CONFIG_SCSI_ENCLOSURE=m +# CONFIG_SCSI_CONSTANTS is not set +# CONFIG_SCSI_LOGGING is not set +CONFIG_SCSI_SCAN_ASYNC=y + +# +# SCSI Transports +# +CONFIG_SCSI_SPI_ATTRS=m +CONFIG_SCSI_FC_ATTRS=m +CONFIG_SCSI_ISCSI_ATTRS=m +CONFIG_SCSI_SAS_ATTRS=m +CONFIG_SCSI_SAS_LIBSAS=m +CONFIG_SCSI_SAS_ATA=y +CONFIG_SCSI_SAS_HOST_SMP=y +CONFIG_SCSI_SRP_ATTRS=m +CONFIG_SCSI_LOWLEVEL=y +CONFIG_ISCSI_TCP=m +CONFIG_ISCSI_BOOT_SYSFS=m +CONFIG_SCSI_CXGB3_ISCSI=m +CONFIG_SCSI_CXGB4_ISCSI=m +CONFIG_SCSI_BNX2_ISCSI=m +CONFIG_SCSI_BNX2X_FCOE=m +CONFIG_BE2ISCSI=m +CONFIG_BLK_DEV_3W_XXXX_RAID=m +CONFIG_SCSI_HPSA=m +CONFIG_SCSI_3W_9XXX=m +CONFIG_SCSI_3W_SAS=m +CONFIG_SCSI_ACARD=m +CONFIG_SCSI_AACRAID=m +CONFIG_SCSI_AIC7XXX=m +CONFIG_AIC7XXX_CMDS_PER_DEVICE=32 +CONFIG_AIC7XXX_RESET_DELAY_MS=15000 +# CONFIG_AIC7XXX_DEBUG_ENABLE is not set +CONFIG_AIC7XXX_DEBUG_MASK=0 +CONFIG_AIC7XXX_REG_PRETTY_PRINT=y +CONFIG_SCSI_AIC79XX=m +CONFIG_AIC79XX_CMDS_PER_DEVICE=32 +CONFIG_AIC79XX_RESET_DELAY_MS=15000 +# CONFIG_AIC79XX_DEBUG_ENABLE is not set +CONFIG_AIC79XX_DEBUG_MASK=0 +CONFIG_AIC79XX_REG_PRETTY_PRINT=y +CONFIG_SCSI_AIC94XX=m +# CONFIG_AIC94XX_DEBUG is not set +CONFIG_SCSI_MVSAS=m +# CONFIG_SCSI_MVSAS_DEBUG is not set +CONFIG_SCSI_MVSAS_TASKLET=y +CONFIG_SCSI_MVUMI=m +CONFIG_SCSI_DPT_I2O=m +CONFIG_SCSI_ADVANSYS=m +CONFIG_SCSI_ARCMSR=m +CONFIG_SCSI_ESAS2R=m +CONFIG_MEGARAID_NEWGEN=y +CONFIG_MEGARAID_MM=m +CONFIG_MEGARAID_MAILBOX=m +CONFIG_MEGARAID_LEGACY=m +CONFIG_MEGARAID_SAS=m +CONFIG_SCSI_MPT3SAS=m +CONFIG_SCSI_MPT2SAS_MAX_SGE=128 +CONFIG_SCSI_MPT3SAS_MAX_SGE=128 +CONFIG_SCSI_MPT2SAS=m +CONFIG_SCSI_SMARTPQI=m +CONFIG_SCSI_UFSHCD=m +CONFIG_SCSI_UFSHCD_PCI=m +CONFIG_SCSI_UFS_DWC_TC_PCI=m +CONFIG_SCSI_UFSHCD_PLATFORM=m +CONFIG_SCSI_UFS_DWC_TC_PLATFORM=m +CONFIG_SCSI_HPTIOP=m +CONFIG_SCSI_BUSLOGIC=m +CONFIG_SCSI_FLASHPOINT=y +CONFIG_VMWARE_PVSCSI=m +# CONFIG_XEN_SCSI_FRONTEND is not set +CONFIG_HYPERV_STORAGE=m +CONFIG_LIBFC=m +CONFIG_LIBFCOE=m +CONFIG_FCOE=m +CONFIG_FCOE_FNIC=m +CONFIG_SCSI_SNIC=m +# CONFIG_SCSI_SNIC_DEBUG_FS is not set +CONFIG_SCSI_DMX3191D=m +CONFIG_SCSI_EATA=m +# CONFIG_SCSI_EATA_TAGGED_QUEUE is not set +# CONFIG_SCSI_EATA_LINKED_COMMANDS is not set +CONFIG_SCSI_EATA_MAX_TAGS=16 +CONFIG_SCSI_FUTURE_DOMAIN=m +CONFIG_SCSI_GDTH=m +CONFIG_SCSI_ISCI=m +CONFIG_SCSI_IPS=m +CONFIG_SCSI_INITIO=m +CONFIG_SCSI_INIA100=m +CONFIG_SCSI_PPA=m +CONFIG_SCSI_IMM=m +# CONFIG_SCSI_IZIP_EPP16 is not set +# CONFIG_SCSI_IZIP_SLOW_CTR is not set +CONFIG_SCSI_STEX=m +CONFIG_SCSI_SYM53C8XX_2=m +CONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE=1 +CONFIG_SCSI_SYM53C8XX_DEFAULT_TAGS=16 +CONFIG_SCSI_SYM53C8XX_MAX_TAGS=64 +CONFIG_SCSI_SYM53C8XX_MMIO=y +CONFIG_SCSI_IPR=m +# CONFIG_SCSI_IPR_TRACE is not set +# CONFIG_SCSI_IPR_DUMP is not set +CONFIG_SCSI_QLOGIC_1280=m +CONFIG_SCSI_QLA_FC=m +CONFIG_TCM_QLA2XXX=m +# CONFIG_TCM_QLA2XXX_DEBUG is not set +CONFIG_SCSI_QLA_ISCSI=m +CONFIG_QEDI=m +CONFIG_QEDF=m +CONFIG_SCSI_LPFC=m +# CONFIG_SCSI_LPFC_DEBUG_FS is not set +CONFIG_SCSI_DC395x=m +CONFIG_SCSI_AM53C974=m +CONFIG_SCSI_WD719X=m +# CONFIG_SCSI_DEBUG is not set +CONFIG_SCSI_PMCRAID=m +CONFIG_SCSI_PM8001=m +CONFIG_SCSI_BFA_FC=m +CONFIG_SCSI_VIRTIO=m +CONFIG_SCSI_CHELSIO_FCOE=m +CONFIG_SCSI_LOWLEVEL_PCMCIA=y +CONFIG_PCMCIA_AHA152X=m +CONFIG_PCMCIA_FDOMAIN=m +CONFIG_PCMCIA_QLOGIC=m +CONFIG_PCMCIA_SYM53C500=m +CONFIG_SCSI_DH=y +CONFIG_SCSI_DH_RDAC=m +CONFIG_SCSI_DH_HP_SW=m +CONFIG_SCSI_DH_EMC=m +CONFIG_SCSI_DH_ALUA=m +CONFIG_SCSI_OSD_INITIATOR=m +CONFIG_SCSI_OSD_ULD=m +CONFIG_SCSI_OSD_DPRINT_SENSE=0 +# CONFIG_SCSI_OSD_DEBUG is not set +CONFIG_ATA=m +# CONFIG_ATA_NONSTANDARD is not set +CONFIG_ATA_VERBOSE_ERROR=y +CONFIG_ATA_ACPI=y +CONFIG_SATA_ZPODD=y +CONFIG_SATA_PMP=y + +# +# Controllers with non-SFF native interface +# +CONFIG_SATA_AHCI=m +CONFIG_SATA_AHCI_PLATFORM=m +CONFIG_SATA_INIC162X=m +CONFIG_SATA_ACARD_AHCI=m +CONFIG_SATA_SIL24=m +CONFIG_ATA_SFF=y + +# +# SFF controllers with custom DMA interface +# +CONFIG_PDC_ADMA=m +CONFIG_SATA_QSTOR=m +CONFIG_SATA_SX4=m +CONFIG_ATA_BMDMA=y + +# +# SATA SFF controllers with BMDMA +# +CONFIG_ATA_PIIX=m +CONFIG_SATA_DWC=m +# CONFIG_SATA_DWC_OLD_DMA is not set +# CONFIG_SATA_DWC_DEBUG is not set +CONFIG_SATA_MV=m +CONFIG_SATA_NV=m +CONFIG_SATA_PROMISE=m +CONFIG_SATA_SIL=m +CONFIG_SATA_SIS=m +CONFIG_SATA_SVW=m +CONFIG_SATA_ULI=m +CONFIG_SATA_VIA=m +CONFIG_SATA_VITESSE=m + +# +# PATA SFF controllers with BMDMA +# +CONFIG_PATA_ALI=m +CONFIG_PATA_AMD=m +CONFIG_PATA_ARTOP=m +CONFIG_PATA_ATIIXP=m +CONFIG_PATA_ATP867X=m +CONFIG_PATA_CMD64X=m +CONFIG_PATA_CYPRESS=m +CONFIG_PATA_EFAR=m +CONFIG_PATA_HPT366=m +CONFIG_PATA_HPT37X=m +CONFIG_PATA_HPT3X2N=m +CONFIG_PATA_HPT3X3=m +# CONFIG_PATA_HPT3X3_DMA is not set +CONFIG_PATA_IT8213=m +CONFIG_PATA_IT821X=m +CONFIG_PATA_JMICRON=m +CONFIG_PATA_MARVELL=m +CONFIG_PATA_NETCELL=m +CONFIG_PATA_NINJA32=m +CONFIG_PATA_NS87415=m +CONFIG_PATA_OLDPIIX=m +CONFIG_PATA_OPTIDMA=m +CONFIG_PATA_PDC2027X=m +CONFIG_PATA_PDC_OLD=m +CONFIG_PATA_RADISYS=m +CONFIG_PATA_RDC=m +CONFIG_PATA_SCH=m +CONFIG_PATA_SERVERWORKS=m +CONFIG_PATA_SIL680=m +CONFIG_PATA_SIS=m +CONFIG_PATA_TOSHIBA=m +CONFIG_PATA_TRIFLEX=m +CONFIG_PATA_VIA=m +CONFIG_PATA_WINBOND=m + +# +# PIO-only SFF controllers +# +CONFIG_PATA_CMD640_PCI=m +CONFIG_PATA_MPIIX=m +CONFIG_PATA_NS87410=m +CONFIG_PATA_OPTI=m +CONFIG_PATA_PCMCIA=m +CONFIG_PATA_RZ1000=m + +# +# Generic fallback / legacy drivers +# +CONFIG_PATA_ACPI=m +CONFIG_ATA_GENERIC=m +CONFIG_PATA_LEGACY=m +CONFIG_MD=y +CONFIG_BLK_DEV_MD=m +CONFIG_MD_LINEAR=m +CONFIG_MD_RAID0=m +CONFIG_MD_RAID1=m +CONFIG_MD_RAID10=m +CONFIG_MD_RAID456=m +CONFIG_MD_MULTIPATH=m +CONFIG_MD_FAULTY=m +# CONFIG_MD_CLUSTER is not set +CONFIG_BCACHE=m +# CONFIG_BCACHE_DEBUG is not set +# CONFIG_BCACHE_CLOSURES_DEBUG is not set +CONFIG_BLK_DEV_DM_BUILTIN=y +CONFIG_BLK_DEV_DM=m +# CONFIG_DM_MQ_DEFAULT is not set +# CONFIG_DM_DEBUG is not set +CONFIG_DM_BUFIO=m +# CONFIG_DM_DEBUG_BLOCK_MANAGER_LOCKING is not set +CONFIG_DM_BIO_PRISON=m +CONFIG_DM_PERSISTENT_DATA=m +CONFIG_DM_CRYPT=m +CONFIG_DM_SNAPSHOT=m +CONFIG_DM_THIN_PROVISIONING=m +CONFIG_DM_CACHE=m +CONFIG_DM_CACHE_SMQ=m +CONFIG_DM_ERA=m +CONFIG_DM_MIRROR=m +CONFIG_DM_LOG_USERSPACE=m +CONFIG_DM_RAID=m +CONFIG_DM_ZERO=m +CONFIG_DM_MULTIPATH=m +CONFIG_DM_MULTIPATH_QL=m +CONFIG_DM_MULTIPATH_ST=m +CONFIG_DM_DELAY=m +CONFIG_DM_UEVENT=y +CONFIG_DM_FLAKEY=m +CONFIG_DM_VERITY=m +CONFIG_DM_VERITY_FEC=y +CONFIG_DM_SWITCH=m +CONFIG_DM_LOG_WRITES=m +CONFIG_DM_INTEGRITY=m +# CONFIG_DM_ZONED is not set +CONFIG_TARGET_CORE=m +CONFIG_TCM_IBLOCK=m +CONFIG_TCM_FILEIO=m +CONFIG_TCM_PSCSI=m +CONFIG_TCM_USER2=m +CONFIG_LOOPBACK_TARGET=m +CONFIG_TCM_FC=m +CONFIG_ISCSI_TARGET=m +CONFIG_ISCSI_TARGET_CXGB4=m +CONFIG_SBP_TARGET=m +CONFIG_FUSION=y +CONFIG_FUSION_SPI=m +CONFIG_FUSION_FC=m +CONFIG_FUSION_SAS=m +CONFIG_FUSION_MAX_SGE=128 +CONFIG_FUSION_CTL=m +# CONFIG_FUSION_LOGGING is not set + +# +# IEEE 1394 (FireWire) support +# +CONFIG_FIREWIRE=m +CONFIG_FIREWIRE_OHCI=m +CONFIG_FIREWIRE_SBP2=m +CONFIG_FIREWIRE_NET=m +CONFIG_FIREWIRE_NOSY=m +CONFIG_MACINTOSH_DRIVERS=y +CONFIG_MAC_EMUMOUSEBTN=m +CONFIG_NETDEVICES=y +CONFIG_MII=m +CONFIG_NET_CORE=y +CONFIG_BONDING=m +CONFIG_DUMMY=m +CONFIG_EQUALIZER=m +# CONFIG_NET_FC is not set +CONFIG_IFB=m +CONFIG_NET_TEAM=m +CONFIG_NET_TEAM_MODE_BROADCAST=m +CONFIG_NET_TEAM_MODE_ROUNDROBIN=m +CONFIG_NET_TEAM_MODE_RANDOM=m +CONFIG_NET_TEAM_MODE_ACTIVEBACKUP=m +CONFIG_NET_TEAM_MODE_LOADBALANCE=m +CONFIG_MACVLAN=m +CONFIG_MACVTAP=m +CONFIG_IPVLAN=m +CONFIG_IPVTAP=m +CONFIG_VXLAN=m +CONFIG_GENEVE=m +CONFIG_GTP=m +CONFIG_MACSEC=m +CONFIG_NETCONSOLE=m +CONFIG_NETCONSOLE_DYNAMIC=y +CONFIG_NETPOLL=y +CONFIG_NET_POLL_CONTROLLER=y +CONFIG_RIONET=m +CONFIG_RIONET_TX_SIZE=128 +CONFIG_RIONET_RX_SIZE=128 +CONFIG_TUN=m +CONFIG_TAP=m +# CONFIG_TUN_VNET_CROSS_LE is not set +CONFIG_VETH=m +CONFIG_VIRTIO_NET=m +CONFIG_NLMON=m +CONFIG_NET_VRF=m +CONFIG_VSOCKMON=m +CONFIG_SUNGEM_PHY=m +# CONFIG_ARCNET is not set +CONFIG_ATM_DRIVERS=y +# CONFIG_ATM_DUMMY is not set +CONFIG_ATM_TCP=m +CONFIG_ATM_LANAI=m +CONFIG_ATM_ENI=m +# CONFIG_ATM_ENI_DEBUG is not set +# CONFIG_ATM_ENI_TUNE_BURST is not set +CONFIG_ATM_FIRESTREAM=m +CONFIG_ATM_ZATM=m +# CONFIG_ATM_ZATM_DEBUG is not set +CONFIG_ATM_NICSTAR=m +# CONFIG_ATM_NICSTAR_USE_SUNI is not set +# CONFIG_ATM_NICSTAR_USE_IDT77105 is not set +CONFIG_ATM_IDT77252=m +# CONFIG_ATM_IDT77252_DEBUG is not set +# CONFIG_ATM_IDT77252_RCV_ALL is not set +CONFIG_ATM_IDT77252_USE_SUNI=y +CONFIG_ATM_AMBASSADOR=m +# CONFIG_ATM_AMBASSADOR_DEBUG is not set +CONFIG_ATM_HORIZON=m +# CONFIG_ATM_HORIZON_DEBUG is not set +CONFIG_ATM_IA=m +# CONFIG_ATM_IA_DEBUG is not set +CONFIG_ATM_FORE200E=m +# CONFIG_ATM_FORE200E_USE_TASKLET is not set +CONFIG_ATM_FORE200E_TX_RETRY=16 +CONFIG_ATM_FORE200E_DEBUG=0 +CONFIG_ATM_HE=m +# CONFIG_ATM_HE_USE_SUNI is not set +CONFIG_ATM_SOLOS=m + +# +# CAIF transport drivers +# +CONFIG_CAIF_TTY=m +CONFIG_CAIF_SPI_SLAVE=m +CONFIG_CAIF_SPI_SYNC=y +CONFIG_CAIF_HSI=m +CONFIG_CAIF_VIRTIO=m + +# +# Distributed Switch Architecture drivers +# +CONFIG_B53=m +CONFIG_B53_SPI_DRIVER=m +CONFIG_B53_MDIO_DRIVER=m +CONFIG_B53_MMAP_DRIVER=m +CONFIG_B53_SRAB_DRIVER=m +CONFIG_NET_DSA_LOOP=m +CONFIG_NET_DSA_MT7530=m +CONFIG_NET_DSA_MV88E6060=m +# CONFIG_MICROCHIP_KSZ is not set +CONFIG_NET_DSA_MV88E6XXX=m +CONFIG_NET_DSA_MV88E6XXX_GLOBAL2=y +CONFIG_NET_DSA_QCA8K=m +CONFIG_NET_DSA_SMSC_LAN9303=m +CONFIG_NET_DSA_SMSC_LAN9303_I2C=m +CONFIG_NET_DSA_SMSC_LAN9303_MDIO=m +CONFIG_ETHERNET=y +CONFIG_MDIO=m +CONFIG_NET_VENDOR_3COM=y +CONFIG_PCMCIA_3C574=m +CONFIG_PCMCIA_3C589=m +CONFIG_VORTEX=m +CONFIG_TYPHOON=m +CONFIG_NET_VENDOR_ADAPTEC=y +CONFIG_ADAPTEC_STARFIRE=m +CONFIG_NET_VENDOR_AGERE=y +CONFIG_ET131X=m +CONFIG_NET_VENDOR_ALACRITECH=y +CONFIG_SLICOSS=m +CONFIG_NET_VENDOR_ALTEON=y +CONFIG_ACENIC=m +# CONFIG_ACENIC_OMIT_TIGON_I is not set +CONFIG_ALTERA_TSE=m +CONFIG_NET_VENDOR_AMAZON=y +CONFIG_ENA_ETHERNET=m +CONFIG_NET_VENDOR_AMD=y +CONFIG_AMD8111_ETH=m +CONFIG_PCNET32=m +CONFIG_PCMCIA_NMCLAN=m +CONFIG_AMD_XGBE=m +CONFIG_AMD_XGBE_HAVE_ECC=y +CONFIG_NET_VENDOR_AQUANTIA=y +CONFIG_AQTION=m +CONFIG_NET_VENDOR_ARC=y +CONFIG_NET_VENDOR_ATHEROS=y +CONFIG_ATL2=m +CONFIG_ATL1=m +CONFIG_ATL1E=m +CONFIG_ATL1C=m +CONFIG_ALX=m +CONFIG_NET_VENDOR_AURORA=y +CONFIG_AURORA_NB8800=m +CONFIG_NET_CADENCE=y +CONFIG_MACB=m +CONFIG_MACB_USE_HWSTAMP=y +CONFIG_MACB_PCI=m +CONFIG_NET_VENDOR_BROADCOM=y +CONFIG_B44=m +CONFIG_B44_PCI_AUTOSELECT=y +CONFIG_B44_PCICORE_AUTOSELECT=y +CONFIG_B44_PCI=y +CONFIG_BNX2=m +CONFIG_CNIC=m +CONFIG_TIGON3=m +CONFIG_TIGON3_HWMON=y +CONFIG_BNX2X=m +CONFIG_BNX2X_SRIOV=y +CONFIG_BNXT=m +CONFIG_BNXT_SRIOV=y +CONFIG_BNXT_FLOWER_OFFLOAD=y +CONFIG_NET_VENDOR_BROCADE=y +CONFIG_BNA=m +# CONFIG_NET_VENDOR_CAVIUM is not set +CONFIG_NET_VENDOR_CHELSIO=y +CONFIG_CHELSIO_T1=m +CONFIG_CHELSIO_T1_1G=y +CONFIG_CHELSIO_T3=m +CONFIG_CHELSIO_T4=m +CONFIG_CHELSIO_T4VF=m +CONFIG_CHELSIO_LIB=m +CONFIG_NET_VENDOR_CISCO=y +CONFIG_ENIC=m +CONFIG_CX_ECAT=m +CONFIG_DNET=m +CONFIG_NET_VENDOR_DEC=y +CONFIG_NET_TULIP=y +CONFIG_DE2104X=m +CONFIG_DE2104X_DSL=0 +CONFIG_TULIP=m +# CONFIG_TULIP_MWI is not set +# CONFIG_TULIP_MMIO is not set +# CONFIG_TULIP_NAPI is not set +CONFIG_DE4X5=m +CONFIG_WINBOND_840=m +CONFIG_DM9102=m +CONFIG_ULI526X=m +CONFIG_PCMCIA_XIRCOM=m +CONFIG_NET_VENDOR_DLINK=y +CONFIG_DL2K=m +CONFIG_SUNDANCE=m +# CONFIG_SUNDANCE_MMIO is not set +CONFIG_NET_VENDOR_EMULEX=y +CONFIG_BE2NET=m +CONFIG_BE2NET_HWMON=y +# CONFIG_NET_VENDOR_EZCHIP is not set +CONFIG_NET_VENDOR_EXAR=y +CONFIG_S2IO=m +CONFIG_VXGE=m +# CONFIG_VXGE_DEBUG_TRACE_ALL is not set +CONFIG_NET_VENDOR_FUJITSU=y +CONFIG_PCMCIA_FMVJ18X=m +CONFIG_NET_VENDOR_HP=y +CONFIG_HP100=m +CONFIG_NET_VENDOR_HUAWEI=y +CONFIG_HINIC=m +CONFIG_NET_VENDOR_INTEL=y +CONFIG_E100=m +CONFIG_E1000=m +CONFIG_E1000E=m +CONFIG_E1000E_HWTS=y +CONFIG_IGB=m +CONFIG_IGB_HWMON=y +CONFIG_IGB_DCA=y +CONFIG_IGBVF=m +CONFIG_IXGB=m +CONFIG_IXGBE=m +CONFIG_IXGBE_HWMON=y +CONFIG_IXGBE_DCA=y +CONFIG_IXGBEVF=m +CONFIG_I40E=m +CONFIG_I40EVF=m +CONFIG_FM10K=m +CONFIG_NET_VENDOR_I825XX=y +CONFIG_JME=m +CONFIG_NET_VENDOR_MARVELL=y +CONFIG_MVMDIO=m +CONFIG_SKGE=m +# CONFIG_SKGE_DEBUG is not set +CONFIG_SKGE_GENESIS=y +CONFIG_SKY2=m +# CONFIG_SKY2_DEBUG is not set +CONFIG_NET_VENDOR_MELLANOX=y +CONFIG_MLX4_EN=m +CONFIG_MLX4_CORE=m +CONFIG_MLX4_DEBUG=y +CONFIG_MLX4_CORE_GEN2=y +CONFIG_MLX5_CORE=m +# CONFIG_MLX5_FPGA is not set +CONFIG_MLX5_CORE_EN=y +CONFIG_MLX5_MPFS=y +CONFIG_MLX5_ESWITCH=y +# CONFIG_MLX5_CORE_IPOIB is not set +CONFIG_MLXSW_CORE=m +CONFIG_MLXSW_CORE_HWMON=y +CONFIG_MLXSW_CORE_THERMAL=y +CONFIG_MLXSW_PCI=m +CONFIG_MLXSW_I2C=m +CONFIG_MLXSW_SWITCHIB=m +CONFIG_MLXSW_SWITCHX2=m +CONFIG_MLXSW_SPECTRUM=m +CONFIG_MLXSW_MINIMAL=m +CONFIG_MLXFW=m +CONFIG_NET_VENDOR_MICREL=y +CONFIG_KS8842=m +CONFIG_KS8851=m +CONFIG_KS8851_MLL=m +CONFIG_KSZ884X_PCI=m +CONFIG_NET_VENDOR_MICROCHIP=y +CONFIG_ENC28J60=m +# CONFIG_ENC28J60_WRITEVERIFY is not set +CONFIG_ENCX24J600=m +CONFIG_NET_VENDOR_MYRI=y +CONFIG_MYRI10GE=m +CONFIG_MYRI10GE_DCA=y +CONFIG_FEALNX=m +CONFIG_NET_VENDOR_NATSEMI=y +CONFIG_NATSEMI=m +CONFIG_NS83820=m +CONFIG_NET_VENDOR_NETRONOME=y +CONFIG_NFP=m +# CONFIG_NFP_APP_FLOWER is not set +# CONFIG_NFP_DEBUG is not set +CONFIG_NET_VENDOR_8390=y +CONFIG_PCMCIA_AXNET=m +CONFIG_NE2K_PCI=m +CONFIG_PCMCIA_PCNET=m +CONFIG_NET_VENDOR_NVIDIA=y +CONFIG_FORCEDETH=m +CONFIG_NET_VENDOR_OKI=y +CONFIG_ETHOC=m +CONFIG_NET_PACKET_ENGINE=y +CONFIG_HAMACHI=m +CONFIG_YELLOWFIN=m +CONFIG_NET_VENDOR_QLOGIC=y +CONFIG_QLA3XXX=m +CONFIG_QLCNIC=m +CONFIG_QLCNIC_SRIOV=y +CONFIG_QLCNIC_HWMON=y +CONFIG_QLGE=m +CONFIG_NETXEN_NIC=m +CONFIG_QED=m +CONFIG_QED_LL2=y +CONFIG_QED_SRIOV=y +CONFIG_QEDE=m +CONFIG_QED_RDMA=y +CONFIG_QED_ISCSI=y +CONFIG_QED_FCOE=y +CONFIG_QED_OOO=y +CONFIG_NET_VENDOR_QUALCOMM=y +CONFIG_QCOM_EMAC=m +CONFIG_RMNET=m +CONFIG_NET_VENDOR_REALTEK=y +CONFIG_ATP=m +CONFIG_8139CP=m +CONFIG_8139TOO=m +# CONFIG_8139TOO_PIO is not set +CONFIG_8139TOO_TUNE_TWISTER=y +CONFIG_8139TOO_8129=y +# CONFIG_8139_OLD_RX_RESET is not set +CONFIG_R8169=m +# CONFIG_NET_VENDOR_RENESAS is not set +CONFIG_NET_VENDOR_RDC=y +CONFIG_R6040=m +CONFIG_NET_VENDOR_ROCKER=y +CONFIG_ROCKER=m +CONFIG_NET_VENDOR_SAMSUNG=y +CONFIG_SXGBE_ETH=m +CONFIG_NET_VENDOR_SEEQ=y +CONFIG_NET_VENDOR_SILAN=y +CONFIG_SC92031=m +CONFIG_NET_VENDOR_SIS=y +CONFIG_SIS900=m +CONFIG_SIS190=m +CONFIG_NET_VENDOR_SOLARFLARE=y +CONFIG_SFC=m +CONFIG_SFC_MTD=y +CONFIG_SFC_MCDI_MON=y +CONFIG_SFC_SRIOV=y +CONFIG_SFC_MCDI_LOGGING=y +CONFIG_SFC_FALCON=m +CONFIG_SFC_FALCON_MTD=y +CONFIG_NET_VENDOR_SMSC=y +CONFIG_PCMCIA_SMC91C92=m +CONFIG_EPIC100=m +CONFIG_SMSC911X=m +# CONFIG_SMSC911X_ARCH_HOOKS is not set +CONFIG_SMSC9420=m +CONFIG_NET_VENDOR_STMICRO=y +CONFIG_STMMAC_ETH=m +# CONFIG_STMMAC_PLATFORM is not set +CONFIG_STMMAC_PCI=m +CONFIG_NET_VENDOR_SUN=y +CONFIG_HAPPYMEAL=m +CONFIG_SUNGEM=m +CONFIG_CASSINI=m +CONFIG_NIU=m +CONFIG_NET_VENDOR_TEHUTI=y +CONFIG_TEHUTI=m +CONFIG_NET_VENDOR_TI=y +CONFIG_TI_CPSW_ALE=m +CONFIG_TLAN=m +CONFIG_NET_VENDOR_VIA=y +CONFIG_VIA_RHINE=m +# CONFIG_VIA_RHINE_MMIO is not set +CONFIG_VIA_VELOCITY=m +CONFIG_NET_VENDOR_WIZNET=y +CONFIG_WIZNET_W5100=m +CONFIG_WIZNET_W5300=m +# CONFIG_WIZNET_BUS_DIRECT is not set +# CONFIG_WIZNET_BUS_INDIRECT is not set +CONFIG_WIZNET_BUS_ANY=y +CONFIG_WIZNET_W5100_SPI=m +CONFIG_NET_VENDOR_XIRCOM=y +CONFIG_PCMCIA_XIRC2PS=m +CONFIG_NET_VENDOR_SYNOPSYS=y +CONFIG_DWC_XLGMAC=m +CONFIG_DWC_XLGMAC_PCI=m +# CONFIG_FDDI is not set +# CONFIG_HIPPI is not set +CONFIG_NET_SB1000=m +CONFIG_MDIO_DEVICE=m +CONFIG_MDIO_BUS=m +CONFIG_MDIO_BITBANG=m +CONFIG_MDIO_CAVIUM=m +# CONFIG_MDIO_GPIO is not set +CONFIG_MDIO_THUNDER=m +CONFIG_PHYLIB=m +CONFIG_SWPHY=y +# CONFIG_LED_TRIGGER_PHY is not set + +# +# MII PHY device drivers +# +CONFIG_AMD_PHY=m +CONFIG_AQUANTIA_PHY=m +CONFIG_AT803X_PHY=m +CONFIG_BCM7XXX_PHY=m +CONFIG_BCM87XX_PHY=m +CONFIG_BCM_NET_PHYLIB=m +CONFIG_BROADCOM_PHY=m +CONFIG_CICADA_PHY=m +# CONFIG_CORTINA_PHY is not set +CONFIG_DAVICOM_PHY=m +CONFIG_DP83822_PHY=m +CONFIG_DP83848_PHY=m +CONFIG_DP83867_PHY=m +CONFIG_FIXED_PHY=m +CONFIG_ICPLUS_PHY=m +CONFIG_INTEL_XWAY_PHY=m +CONFIG_LSI_ET1011C_PHY=m +CONFIG_LXT_PHY=m +CONFIG_MARVELL_PHY=m +# CONFIG_MARVELL_10G_PHY is not set +CONFIG_MICREL_PHY=m +CONFIG_MICROCHIP_PHY=m +CONFIG_MICROSEMI_PHY=m +CONFIG_NATIONAL_PHY=m +CONFIG_QSEMI_PHY=m +CONFIG_REALTEK_PHY=m +CONFIG_RENESAS_PHY=m +CONFIG_ROCKCHIP_PHY=m +CONFIG_SMSC_PHY=m +CONFIG_STE10XP=m +CONFIG_TERANETICS_PHY=m +CONFIG_VITESSE_PHY=m +CONFIG_XILINX_GMII2RGMII=m +# CONFIG_MICREL_KS8995MA is not set +CONFIG_PLIP=m +CONFIG_PPP=m +CONFIG_PPP_BSDCOMP=m +CONFIG_PPP_DEFLATE=m +CONFIG_PPP_FILTER=y +CONFIG_PPP_MPPE=m +CONFIG_PPP_MULTILINK=y +CONFIG_PPPOATM=m +CONFIG_PPPOE=m +CONFIG_PPTP=m +CONFIG_PPPOL2TP=m +CONFIG_PPP_ASYNC=m +CONFIG_PPP_SYNC_TTY=m +CONFIG_SLIP=m +CONFIG_SLHC=m +# CONFIG_SLIP_COMPRESSED is not set +# CONFIG_SLIP_SMART is not set +# CONFIG_SLIP_MODE_SLIP6 is not set + +# +# Host-side USB support is needed for USB Network Adapter support +# +CONFIG_USB_NET_DRIVERS=m +CONFIG_USB_CATC=m +CONFIG_USB_KAWETH=m +CONFIG_USB_PEGASUS=m +CONFIG_USB_RTL8150=m +CONFIG_USB_RTL8152=m +CONFIG_USB_LAN78XX=m +CONFIG_USB_USBNET=m +CONFIG_USB_NET_AX8817X=m +CONFIG_USB_NET_AX88179_178A=m +CONFIG_USB_NET_CDCETHER=m +CONFIG_USB_NET_CDC_EEM=m +CONFIG_USB_NET_CDC_NCM=m +CONFIG_USB_NET_HUAWEI_CDC_NCM=m +CONFIG_USB_NET_CDC_MBIM=m +CONFIG_USB_NET_DM9601=m +CONFIG_USB_NET_SR9700=m +CONFIG_USB_NET_SR9800=m +CONFIG_USB_NET_SMSC75XX=m +CONFIG_USB_NET_SMSC95XX=m +CONFIG_USB_NET_GL620A=m +CONFIG_USB_NET_NET1080=m +CONFIG_USB_NET_PLUSB=m +CONFIG_USB_NET_MCS7830=m +CONFIG_USB_NET_RNDIS_HOST=m +CONFIG_USB_NET_CDC_SUBSET_ENABLE=m +CONFIG_USB_NET_CDC_SUBSET=m +CONFIG_USB_ALI_M5632=y +CONFIG_USB_AN2720=y +CONFIG_USB_BELKIN=y +CONFIG_USB_ARMLINUX=y +CONFIG_USB_EPSON2888=y +CONFIG_USB_KC2190=y +CONFIG_USB_NET_ZAURUS=m +CONFIG_USB_NET_CX82310_ETH=m +CONFIG_USB_NET_KALMIA=m +CONFIG_USB_NET_QMI_WWAN=m +CONFIG_USB_HSO=m +CONFIG_USB_NET_INT51X1=m +CONFIG_USB_CDC_PHONET=m +CONFIG_USB_IPHETH=m +CONFIG_USB_SIERRA_NET=m +CONFIG_USB_VL600=m +CONFIG_USB_NET_CH9200=m +CONFIG_WLAN=y +CONFIG_WLAN_VENDOR_ADMTEK=y +CONFIG_ADM8211=m +CONFIG_ATH_COMMON=m +CONFIG_WLAN_VENDOR_ATH=y +# CONFIG_ATH_DEBUG is not set +CONFIG_ATH5K=m +# CONFIG_ATH5K_DEBUG is not set +# CONFIG_ATH5K_TRACER is not set +CONFIG_ATH5K_PCI=y +CONFIG_ATH9K_HW=m +CONFIG_ATH9K_COMMON=m +CONFIG_ATH9K_COMMON_DEBUG=y +CONFIG_ATH9K_BTCOEX_SUPPORT=y +CONFIG_ATH9K=m +CONFIG_ATH9K_PCI=y +CONFIG_ATH9K_AHB=y +CONFIG_ATH9K_DEBUGFS=y +CONFIG_ATH9K_STATION_STATISTICS=y +# CONFIG_ATH9K_DYNACK is not set +CONFIG_ATH9K_WOW=y +CONFIG_ATH9K_RFKILL=y +# CONFIG_ATH9K_CHANNEL_CONTEXT is not set +CONFIG_ATH9K_PCOEM=y +CONFIG_ATH9K_HTC=m +# CONFIG_ATH9K_HTC_DEBUGFS is not set +CONFIG_ATH9K_HWRNG=y +CONFIG_CARL9170=m +CONFIG_CARL9170_LEDS=y +# CONFIG_CARL9170_DEBUGFS is not set +CONFIG_CARL9170_WPC=y +# CONFIG_CARL9170_HWRNG is not set +CONFIG_ATH6KL=m +CONFIG_ATH6KL_SDIO=m +CONFIG_ATH6KL_USB=m +# CONFIG_ATH6KL_DEBUG is not set +# CONFIG_ATH6KL_TRACING is not set +CONFIG_AR5523=m +CONFIG_WIL6210=m +CONFIG_WIL6210_ISR_COR=y +# CONFIG_WIL6210_TRACING is not set +CONFIG_WIL6210_DEBUGFS=y +CONFIG_ATH10K=m +CONFIG_ATH10K_PCI=m +# CONFIG_ATH10K_SDIO is not set +# CONFIG_ATH10K_USB is not set +# CONFIG_ATH10K_DEBUG is not set +CONFIG_ATH10K_DEBUGFS=y +# CONFIG_ATH10K_TRACING is not set +CONFIG_WCN36XX=m +# CONFIG_WCN36XX_DEBUGFS is not set +CONFIG_WLAN_VENDOR_ATMEL=y +CONFIG_ATMEL=m +CONFIG_PCI_ATMEL=m +CONFIG_PCMCIA_ATMEL=m +CONFIG_AT76C50X_USB=m +CONFIG_WLAN_VENDOR_BROADCOM=y +CONFIG_B43=m +CONFIG_B43_BCMA=y +CONFIG_B43_SSB=y +CONFIG_B43_BUSES_BCMA_AND_SSB=y +# CONFIG_B43_BUSES_BCMA is not set +# CONFIG_B43_BUSES_SSB is not set +CONFIG_B43_PCI_AUTOSELECT=y +CONFIG_B43_PCICORE_AUTOSELECT=y +CONFIG_B43_SDIO=y +CONFIG_B43_BCMA_PIO=y +CONFIG_B43_PIO=y +CONFIG_B43_PHY_G=y +CONFIG_B43_PHY_N=y +CONFIG_B43_PHY_LP=y +CONFIG_B43_PHY_HT=y +CONFIG_B43_LEDS=y +CONFIG_B43_HWRNG=y +# CONFIG_B43_DEBUG is not set +CONFIG_B43LEGACY=m +CONFIG_B43LEGACY_PCI_AUTOSELECT=y +CONFIG_B43LEGACY_PCICORE_AUTOSELECT=y +CONFIG_B43LEGACY_LEDS=y +CONFIG_B43LEGACY_HWRNG=y +# CONFIG_B43LEGACY_DEBUG is not set +CONFIG_B43LEGACY_DMA=y +CONFIG_B43LEGACY_PIO=y +CONFIG_B43LEGACY_DMA_AND_PIO_MODE=y +# CONFIG_B43LEGACY_DMA_MODE is not set +# CONFIG_B43LEGACY_PIO_MODE is not set +CONFIG_BRCMUTIL=m +CONFIG_BRCMSMAC=m +CONFIG_BRCMFMAC=m +CONFIG_BRCMFMAC_PROTO_BCDC=y +CONFIG_BRCMFMAC_PROTO_MSGBUF=y +CONFIG_BRCMFMAC_SDIO=y +CONFIG_BRCMFMAC_USB=y +CONFIG_BRCMFMAC_PCIE=y +# CONFIG_BRCM_TRACING is not set +# CONFIG_BRCMDBG is not set +CONFIG_WLAN_VENDOR_CISCO=y +CONFIG_AIRO=m +CONFIG_AIRO_CS=m +CONFIG_WLAN_VENDOR_INTEL=y +CONFIG_IPW2100=m +CONFIG_IPW2100_MONITOR=y +# CONFIG_IPW2100_DEBUG is not set +CONFIG_IPW2200=m +CONFIG_IPW2200_MONITOR=y +CONFIG_IPW2200_RADIOTAP=y +CONFIG_IPW2200_PROMISCUOUS=y +CONFIG_IPW2200_QOS=y +# CONFIG_IPW2200_DEBUG is not set +CONFIG_LIBIPW=m +# CONFIG_LIBIPW_DEBUG is not set +CONFIG_IWLEGACY=m +CONFIG_IWL4965=m +CONFIG_IWL3945=m + +# +# iwl3945 / iwl4965 Debugging Options +# +# CONFIG_IWLEGACY_DEBUG is not set +# CONFIG_IWLEGACY_DEBUGFS is not set +CONFIG_IWLWIFI=m +CONFIG_IWLWIFI_LEDS=y +CONFIG_IWLDVM=m +CONFIG_IWLMVM=m +CONFIG_IWLWIFI_OPMODE_MODULAR=y +# CONFIG_IWLWIFI_BCAST_FILTERING is not set + +# +# Debugging Options +# +# CONFIG_IWLWIFI_DEBUG is not set +# CONFIG_IWLWIFI_DEBUGFS is not set +CONFIG_IWLWIFI_DEVICE_TRACING=y +CONFIG_WLAN_VENDOR_INTERSIL=y +CONFIG_HOSTAP=m +CONFIG_HOSTAP_FIRMWARE=y +# CONFIG_HOSTAP_FIRMWARE_NVRAM is not set +CONFIG_HOSTAP_PLX=m +CONFIG_HOSTAP_PCI=m +CONFIG_HOSTAP_CS=m +CONFIG_HERMES=m +CONFIG_HERMES_PRISM=y +CONFIG_HERMES_CACHE_FW_ON_INIT=y +CONFIG_PLX_HERMES=m +CONFIG_TMD_HERMES=m +CONFIG_NORTEL_HERMES=m +CONFIG_PCI_HERMES=m +CONFIG_PCMCIA_HERMES=m +CONFIG_PCMCIA_SPECTRUM=m +CONFIG_ORINOCO_USB=m +CONFIG_P54_COMMON=m +CONFIG_P54_USB=m +CONFIG_P54_PCI=m +CONFIG_P54_SPI=m +# CONFIG_P54_SPI_DEFAULT_EEPROM is not set +CONFIG_P54_LEDS=y +CONFIG_PRISM54=m +CONFIG_WLAN_VENDOR_MARVELL=y +CONFIG_LIBERTAS=m +CONFIG_LIBERTAS_USB=m +CONFIG_LIBERTAS_CS=m +CONFIG_LIBERTAS_SDIO=m +CONFIG_LIBERTAS_SPI=m +# CONFIG_LIBERTAS_DEBUG is not set +CONFIG_LIBERTAS_MESH=y +CONFIG_LIBERTAS_THINFIRM=m +# CONFIG_LIBERTAS_THINFIRM_DEBUG is not set +CONFIG_LIBERTAS_THINFIRM_USB=m +CONFIG_MWIFIEX=m +CONFIG_MWIFIEX_SDIO=m +CONFIG_MWIFIEX_PCIE=m +CONFIG_MWIFIEX_USB=m +CONFIG_MWL8K=m +CONFIG_WLAN_VENDOR_MEDIATEK=y +CONFIG_MT7601U=m +CONFIG_WLAN_VENDOR_RALINK=y +CONFIG_RT2X00=m +CONFIG_RT2400PCI=m +CONFIG_RT2500PCI=m +CONFIG_RT61PCI=m +CONFIG_RT2800PCI=m +CONFIG_RT2800PCI_RT33XX=y +CONFIG_RT2800PCI_RT35XX=y +CONFIG_RT2800PCI_RT53XX=y +CONFIG_RT2800PCI_RT3290=y +CONFIG_RT2500USB=m +CONFIG_RT73USB=m +CONFIG_RT2800USB=m +CONFIG_RT2800USB_RT33XX=y +CONFIG_RT2800USB_RT35XX=y +CONFIG_RT2800USB_RT3573=y +CONFIG_RT2800USB_RT53XX=y +CONFIG_RT2800USB_RT55XX=y +CONFIG_RT2800USB_UNKNOWN=y +CONFIG_RT2800_LIB=m +CONFIG_RT2800_LIB_MMIO=m +CONFIG_RT2X00_LIB_MMIO=m +CONFIG_RT2X00_LIB_PCI=m +CONFIG_RT2X00_LIB_USB=m +CONFIG_RT2X00_LIB=m +CONFIG_RT2X00_LIB_FIRMWARE=y +CONFIG_RT2X00_LIB_CRYPTO=y +CONFIG_RT2X00_LIB_LEDS=y +# CONFIG_RT2X00_LIB_DEBUGFS is not set +# CONFIG_RT2X00_DEBUG is not set +CONFIG_WLAN_VENDOR_REALTEK=y +CONFIG_RTL8180=m +CONFIG_RTL8187=m +CONFIG_RTL8187_LEDS=y +CONFIG_RTL_CARDS=m +CONFIG_RTL8192CE=m +CONFIG_RTL8192SE=m +CONFIG_RTL8192DE=m +CONFIG_RTL8723AE=m +CONFIG_RTL8723BE=m +CONFIG_RTL8188EE=m +CONFIG_RTL8192EE=m +CONFIG_RTL8821AE=m +CONFIG_RTL8192CU=m +CONFIG_RTLWIFI=m +CONFIG_RTLWIFI_PCI=m +CONFIG_RTLWIFI_USB=m +# CONFIG_RTLWIFI_DEBUG is not set +CONFIG_RTL8192C_COMMON=m +CONFIG_RTL8723_COMMON=m +CONFIG_RTLBTCOEXIST=m +CONFIG_RTL8XXXU=m +# CONFIG_RTL8XXXU_UNTESTED is not set +CONFIG_WLAN_VENDOR_RSI=y +CONFIG_RSI_91X=m +# CONFIG_RSI_DEBUGFS is not set +CONFIG_RSI_SDIO=m +CONFIG_RSI_USB=m +CONFIG_WLAN_VENDOR_ST=y +CONFIG_CW1200=m +CONFIG_CW1200_WLAN_SDIO=m +CONFIG_CW1200_WLAN_SPI=m +CONFIG_WLAN_VENDOR_TI=y +CONFIG_WL1251=m +# CONFIG_WL1251_SPI is not set +CONFIG_WL1251_SDIO=m +CONFIG_WL12XX=m +CONFIG_WL18XX=m +CONFIG_WLCORE=m +CONFIG_WLCORE_SDIO=m +CONFIG_WILINK_PLATFORM_DATA=y +CONFIG_WLAN_VENDOR_ZYDAS=y +CONFIG_USB_ZD1201=m +CONFIG_ZD1211RW=m +# CONFIG_ZD1211RW_DEBUG is not set +CONFIG_WLAN_VENDOR_QUANTENNA=y +# CONFIG_QTNFMAC_PEARL_PCIE is not set +CONFIG_PCMCIA_RAYCS=m +CONFIG_PCMCIA_WL3501=m +CONFIG_MAC80211_HWSIM=m +CONFIG_USB_NET_RNDIS_WLAN=m + +# +# WiMAX Wireless Broadband devices +# +CONFIG_WIMAX_I2400M=m +CONFIG_WIMAX_I2400M_USB=m +CONFIG_WIMAX_I2400M_DEBUG_LEVEL=8 +# CONFIG_WAN is not set +CONFIG_IEEE802154_DRIVERS=m +CONFIG_IEEE802154_FAKELB=m +CONFIG_IEEE802154_AT86RF230=m +# CONFIG_IEEE802154_AT86RF230_DEBUGFS is not set +# CONFIG_IEEE802154_MRF24J40 is not set +# CONFIG_IEEE802154_CC2520 is not set +CONFIG_IEEE802154_ATUSB=m +CONFIG_IEEE802154_ADF7242=m +CONFIG_IEEE802154_CA8210=m +# CONFIG_IEEE802154_CA8210_DEBUGFS is not set +CONFIG_XEN_NETDEV_FRONTEND=m +CONFIG_XEN_NETDEV_BACKEND=m +CONFIG_VMXNET3=m +CONFIG_FUJITSU_ES=m +CONFIG_THUNDERBOLT_NET=m +CONFIG_HYPERV_NET=m +CONFIG_ISDN=y +CONFIG_ISDN_I4L=m +CONFIG_ISDN_PPP=y +CONFIG_ISDN_PPP_VJ=y +CONFIG_ISDN_MPP=y +CONFIG_IPPP_FILTER=y +CONFIG_ISDN_PPP_BSDCOMP=m +CONFIG_ISDN_AUDIO=y +CONFIG_ISDN_TTY_FAX=y + +# +# ISDN feature submodules +# +CONFIG_ISDN_DIVERSION=m + +# +# ISDN4Linux hardware drivers +# + +# +# Passive cards +# +CONFIG_ISDN_DRV_HISAX=m + +# +# D-channel protocol features +# +CONFIG_HISAX_EURO=y +CONFIG_DE_AOC=y +# CONFIG_HISAX_NO_SENDCOMPLETE is not set +# CONFIG_HISAX_NO_LLC is not set +# CONFIG_HISAX_NO_KEYPAD is not set +CONFIG_HISAX_1TR6=y +CONFIG_HISAX_NI1=y +CONFIG_HISAX_MAX_CARDS=8 + +# +# HiSax supported cards +# +CONFIG_HISAX_16_3=y +CONFIG_HISAX_TELESPCI=y +CONFIG_HISAX_S0BOX=y +CONFIG_HISAX_FRITZPCI=y +CONFIG_HISAX_AVM_A1_PCMCIA=y +CONFIG_HISAX_ELSA=y +CONFIG_HISAX_DIEHLDIVA=y +CONFIG_HISAX_SEDLBAUER=y +CONFIG_HISAX_NETJET=y +CONFIG_HISAX_NETJET_U=y +CONFIG_HISAX_NICCY=y +CONFIG_HISAX_BKM_A4T=y +CONFIG_HISAX_SCT_QUADRO=y +CONFIG_HISAX_GAZEL=y +CONFIG_HISAX_HFC_PCI=y +CONFIG_HISAX_W6692=y +CONFIG_HISAX_HFC_SX=y +CONFIG_HISAX_ENTERNOW_PCI=y +# CONFIG_HISAX_DEBUG is not set + +# +# HiSax PCMCIA card service modules +# +CONFIG_HISAX_SEDLBAUER_CS=m +CONFIG_HISAX_ELSA_CS=m +CONFIG_HISAX_AVM_A1_CS=m +CONFIG_HISAX_TELES_CS=m + +# +# HiSax sub driver modules +# +CONFIG_HISAX_ST5481=m +CONFIG_HISAX_HFCUSB=m +CONFIG_HISAX_HFC4S8S=m +CONFIG_HISAX_FRITZ_PCIPNP=m +CONFIG_ISDN_CAPI=m +CONFIG_CAPI_TRACE=y +CONFIG_ISDN_CAPI_CAPI20=m +CONFIG_ISDN_CAPI_MIDDLEWARE=y +CONFIG_ISDN_CAPI_CAPIDRV=m +# CONFIG_ISDN_CAPI_CAPIDRV_VERBOSE is not set + +# +# CAPI hardware drivers +# +CONFIG_CAPI_AVM=y +CONFIG_ISDN_DRV_AVMB1_B1PCI=m +CONFIG_ISDN_DRV_AVMB1_B1PCIV4=y +CONFIG_ISDN_DRV_AVMB1_B1PCMCIA=m +CONFIG_ISDN_DRV_AVMB1_AVM_CS=m +CONFIG_ISDN_DRV_AVMB1_T1PCI=m +CONFIG_ISDN_DRV_AVMB1_C4=m +CONFIG_CAPI_EICON=y +CONFIG_ISDN_DIVAS=m +CONFIG_ISDN_DIVAS_BRIPCI=y +CONFIG_ISDN_DIVAS_PRIPCI=y +CONFIG_ISDN_DIVAS_DIVACAPI=m +CONFIG_ISDN_DIVAS_USERIDI=m +CONFIG_ISDN_DIVAS_MAINT=m +CONFIG_ISDN_DRV_GIGASET=m +CONFIG_GIGASET_CAPI=y +# CONFIG_GIGASET_I4L is not set +# CONFIG_GIGASET_DUMMYLL is not set +CONFIG_GIGASET_BASE=m +CONFIG_GIGASET_M105=m +CONFIG_GIGASET_M101=m +# CONFIG_GIGASET_DEBUG is not set +CONFIG_HYSDN=m +CONFIG_HYSDN_CAPI=y +CONFIG_MISDN=m +CONFIG_MISDN_DSP=m +CONFIG_MISDN_L1OIP=m + +# +# mISDN hardware drivers +# +CONFIG_MISDN_HFCPCI=m +CONFIG_MISDN_HFCMULTI=m +CONFIG_MISDN_HFCUSB=m +CONFIG_MISDN_AVMFRITZ=m +CONFIG_MISDN_SPEEDFAX=m +CONFIG_MISDN_INFINEON=m +CONFIG_MISDN_W6692=m +CONFIG_MISDN_NETJET=m +CONFIG_MISDN_IPAC=m +CONFIG_MISDN_ISAR=m +CONFIG_ISDN_HDLC=m +CONFIG_NVM=y +# CONFIG_NVM_DEBUG is not set +CONFIG_NVM_RRPC=m +CONFIG_NVM_PBLK=m + +# +# Input device support +# +CONFIG_INPUT=y +CONFIG_INPUT_LEDS=m +CONFIG_INPUT_FF_MEMLESS=m +CONFIG_INPUT_POLLDEV=m +CONFIG_INPUT_SPARSEKMAP=m +CONFIG_INPUT_MATRIXKMAP=m + +# +# Userland interfaces +# +CONFIG_INPUT_MOUSEDEV=m +CONFIG_INPUT_MOUSEDEV_PSAUX=y +CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 +CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 +CONFIG_INPUT_JOYDEV=m +CONFIG_INPUT_EVDEV=m +# CONFIG_INPUT_EVBUG is not set + +# +# Input Device Drivers +# +CONFIG_INPUT_KEYBOARD=y +CONFIG_KEYBOARD_ADC=m +CONFIG_KEYBOARD_ADP5588=m +CONFIG_KEYBOARD_ADP5589=m +CONFIG_KEYBOARD_ATKBD=m +CONFIG_KEYBOARD_QT1070=m +CONFIG_KEYBOARD_QT2160=m +# CONFIG_KEYBOARD_DLINK_DIR685 is not set +# CONFIG_KEYBOARD_LKKBD is not set +# CONFIG_KEYBOARD_GPIO is not set +# CONFIG_KEYBOARD_GPIO_POLLED is not set +CONFIG_KEYBOARD_TCA6416=m +CONFIG_KEYBOARD_TCA8418=m +CONFIG_KEYBOARD_MATRIX=m +# CONFIG_KEYBOARD_LM8323 is not set +CONFIG_KEYBOARD_LM8333=m +# CONFIG_KEYBOARD_MAX7359 is not set +CONFIG_KEYBOARD_MCS=m +CONFIG_KEYBOARD_MPR121=m +# CONFIG_KEYBOARD_NEWTON is not set +# CONFIG_KEYBOARD_OPENCORES is not set +# CONFIG_KEYBOARD_SAMSUNG is not set +# CONFIG_KEYBOARD_STOWAWAY is not set +# CONFIG_KEYBOARD_SUNKBD is not set +# CONFIG_KEYBOARD_TM2_TOUCHKEY is not set +# CONFIG_KEYBOARD_XTKBD is not set +# CONFIG_KEYBOARD_CROS_EC is not set +CONFIG_INPUT_MOUSE=y +CONFIG_MOUSE_PS2=m +CONFIG_MOUSE_PS2_ALPS=y +CONFIG_MOUSE_PS2_BYD=y +CONFIG_MOUSE_PS2_LOGIPS2PP=y +CONFIG_MOUSE_PS2_SYNAPTICS=y +CONFIG_MOUSE_PS2_SYNAPTICS_SMBUS=y +CONFIG_MOUSE_PS2_CYPRESS=y +CONFIG_MOUSE_PS2_LIFEBOOK=y +CONFIG_MOUSE_PS2_TRACKPOINT=y +CONFIG_MOUSE_PS2_ELANTECH=y +CONFIG_MOUSE_PS2_SENTELIC=y +CONFIG_MOUSE_PS2_TOUCHKIT=y +CONFIG_MOUSE_PS2_FOCALTECH=y +CONFIG_MOUSE_PS2_VMMOUSE=y +CONFIG_MOUSE_PS2_SMBUS=y +CONFIG_MOUSE_SERIAL=m +CONFIG_MOUSE_APPLETOUCH=m +CONFIG_MOUSE_BCM5974=m +CONFIG_MOUSE_CYAPA=m +CONFIG_MOUSE_ELAN_I2C=m +CONFIG_MOUSE_ELAN_I2C_I2C=y +CONFIG_MOUSE_ELAN_I2C_SMBUS=y +CONFIG_MOUSE_VSXXXAA=m +CONFIG_MOUSE_GPIO=m +CONFIG_MOUSE_SYNAPTICS_I2C=m +CONFIG_MOUSE_SYNAPTICS_USB=m +CONFIG_INPUT_JOYSTICK=y +CONFIG_JOYSTICK_ANALOG=m +CONFIG_JOYSTICK_A3D=m +CONFIG_JOYSTICK_ADI=m +CONFIG_JOYSTICK_COBRA=m +CONFIG_JOYSTICK_GF2K=m +CONFIG_JOYSTICK_GRIP=m +CONFIG_JOYSTICK_GRIP_MP=m +CONFIG_JOYSTICK_GUILLEMOT=m +CONFIG_JOYSTICK_INTERACT=m +CONFIG_JOYSTICK_SIDEWINDER=m +CONFIG_JOYSTICK_TMDC=m +CONFIG_JOYSTICK_IFORCE=m +CONFIG_JOYSTICK_IFORCE_USB=y +CONFIG_JOYSTICK_IFORCE_232=y +CONFIG_JOYSTICK_WARRIOR=m +CONFIG_JOYSTICK_MAGELLAN=m +CONFIG_JOYSTICK_SPACEORB=m +CONFIG_JOYSTICK_SPACEBALL=m +CONFIG_JOYSTICK_STINGER=m +CONFIG_JOYSTICK_TWIDJOY=m +CONFIG_JOYSTICK_ZHENHUA=m +CONFIG_JOYSTICK_DB9=m +CONFIG_JOYSTICK_GAMECON=m +CONFIG_JOYSTICK_TURBOGRAFX=m +CONFIG_JOYSTICK_AS5011=m +CONFIG_JOYSTICK_JOYDUMP=m +CONFIG_JOYSTICK_XPAD=m +CONFIG_JOYSTICK_XPAD_FF=y +CONFIG_JOYSTICK_XPAD_LEDS=y +CONFIG_JOYSTICK_WALKERA0701=m +CONFIG_JOYSTICK_PSXPAD_SPI=m +# CONFIG_JOYSTICK_PSXPAD_SPI_FF is not set +CONFIG_INPUT_TABLET=y +CONFIG_TABLET_USB_ACECAD=m +CONFIG_TABLET_USB_AIPTEK=m +CONFIG_TABLET_USB_GTCO=m +CONFIG_TABLET_USB_HANWANG=m +CONFIG_TABLET_USB_KBTAB=m +CONFIG_TABLET_USB_PEGASUS=m +CONFIG_TABLET_SERIAL_WACOM4=m +CONFIG_INPUT_TOUCHSCREEN=y +CONFIG_TOUCHSCREEN_PROPERTIES=y +# CONFIG_TOUCHSCREEN_ADS7846 is not set +# CONFIG_TOUCHSCREEN_AD7877 is not set +CONFIG_TOUCHSCREEN_AD7879=m +CONFIG_TOUCHSCREEN_AD7879_I2C=m +# CONFIG_TOUCHSCREEN_AD7879_SPI is not set +CONFIG_TOUCHSCREEN_ATMEL_MXT=m +CONFIG_TOUCHSCREEN_ATMEL_MXT_T37=y +CONFIG_TOUCHSCREEN_AUO_PIXCIR=m +CONFIG_TOUCHSCREEN_BU21013=m +CONFIG_TOUCHSCREEN_CY8CTMG110=m +CONFIG_TOUCHSCREEN_CYTTSP_CORE=m +CONFIG_TOUCHSCREEN_CYTTSP_I2C=m +# CONFIG_TOUCHSCREEN_CYTTSP_SPI is not set +CONFIG_TOUCHSCREEN_CYTTSP4_CORE=m +CONFIG_TOUCHSCREEN_CYTTSP4_I2C=m +CONFIG_TOUCHSCREEN_CYTTSP4_SPI=m +CONFIG_TOUCHSCREEN_DYNAPRO=m +CONFIG_TOUCHSCREEN_HAMPSHIRE=m +CONFIG_TOUCHSCREEN_EETI=m +CONFIG_TOUCHSCREEN_EGALAX_SERIAL=m +CONFIG_TOUCHSCREEN_EXC3000=m +CONFIG_TOUCHSCREEN_FUJITSU=m +CONFIG_TOUCHSCREEN_GOODIX=m +CONFIG_TOUCHSCREEN_HIDEEP=m +CONFIG_TOUCHSCREEN_ILI210X=m +CONFIG_TOUCHSCREEN_S6SY761=m +CONFIG_TOUCHSCREEN_GUNZE=m +CONFIG_TOUCHSCREEN_EKTF2127=y +CONFIG_TOUCHSCREEN_ELAN=m +CONFIG_TOUCHSCREEN_ELO=m +CONFIG_TOUCHSCREEN_WACOM_W8001=m +CONFIG_TOUCHSCREEN_WACOM_I2C=m +CONFIG_TOUCHSCREEN_MAX11801=m +CONFIG_TOUCHSCREEN_MCS5000=m +CONFIG_TOUCHSCREEN_MMS114=m +CONFIG_TOUCHSCREEN_MELFAS_MIP4=m +CONFIG_TOUCHSCREEN_MTOUCH=m +CONFIG_TOUCHSCREEN_INEXIO=m +CONFIG_TOUCHSCREEN_MK712=m +CONFIG_TOUCHSCREEN_PENMOUNT=m +CONFIG_TOUCHSCREEN_EDT_FT5X06=m +CONFIG_TOUCHSCREEN_TOUCHRIGHT=m +CONFIG_TOUCHSCREEN_TOUCHWIN=m +CONFIG_TOUCHSCREEN_TI_AM335X_TSC=m +CONFIG_TOUCHSCREEN_UCB1400=m +CONFIG_TOUCHSCREEN_PIXCIR=m +CONFIG_TOUCHSCREEN_WDT87XX_I2C=m +CONFIG_TOUCHSCREEN_WM97XX=m +CONFIG_TOUCHSCREEN_WM9705=y +CONFIG_TOUCHSCREEN_WM9712=y +CONFIG_TOUCHSCREEN_WM9713=y +CONFIG_TOUCHSCREEN_USB_COMPOSITE=m +CONFIG_TOUCHSCREEN_MC13783=m +CONFIG_TOUCHSCREEN_USB_EGALAX=y +CONFIG_TOUCHSCREEN_USB_PANJIT=y +CONFIG_TOUCHSCREEN_USB_3M=y +CONFIG_TOUCHSCREEN_USB_ITM=y +CONFIG_TOUCHSCREEN_USB_ETURBO=y +CONFIG_TOUCHSCREEN_USB_GUNZE=y +CONFIG_TOUCHSCREEN_USB_DMC_TSC10=y +CONFIG_TOUCHSCREEN_USB_IRTOUCH=y +CONFIG_TOUCHSCREEN_USB_IDEALTEK=y +CONFIG_TOUCHSCREEN_USB_GENERAL_TOUCH=y +CONFIG_TOUCHSCREEN_USB_GOTOP=y +CONFIG_TOUCHSCREEN_USB_JASTEC=y +CONFIG_TOUCHSCREEN_USB_ELO=y +CONFIG_TOUCHSCREEN_USB_E2I=y +CONFIG_TOUCHSCREEN_USB_ZYTRONIC=y +CONFIG_TOUCHSCREEN_USB_ETT_TC45USB=y +CONFIG_TOUCHSCREEN_USB_NEXIO=y +CONFIG_TOUCHSCREEN_USB_EASYTOUCH=y +CONFIG_TOUCHSCREEN_TOUCHIT213=m +CONFIG_TOUCHSCREEN_TSC_SERIO=m +CONFIG_TOUCHSCREEN_TSC200X_CORE=m +CONFIG_TOUCHSCREEN_TSC2004=m +# CONFIG_TOUCHSCREEN_TSC2005 is not set +CONFIG_TOUCHSCREEN_TSC2007=m +# CONFIG_TOUCHSCREEN_TSC2007_IIO is not set +CONFIG_TOUCHSCREEN_RM_TS=m +CONFIG_TOUCHSCREEN_SILEAD=m +CONFIG_TOUCHSCREEN_SIS_I2C=m +CONFIG_TOUCHSCREEN_ST1232=m +# CONFIG_TOUCHSCREEN_STMFTS is not set +CONFIG_TOUCHSCREEN_SUR40=m +CONFIG_TOUCHSCREEN_SURFACE3_SPI=m +CONFIG_TOUCHSCREEN_SX8654=m +CONFIG_TOUCHSCREEN_TPS6507X=m +CONFIG_TOUCHSCREEN_ZET6223=m +CONFIG_TOUCHSCREEN_ZFORCE=m +CONFIG_TOUCHSCREEN_ROHM_BU21023=m +CONFIG_INPUT_MISC=y +CONFIG_INPUT_AD714X=m +CONFIG_INPUT_AD714X_I2C=m +CONFIG_INPUT_AD714X_SPI=m +CONFIG_INPUT_ARIZONA_HAPTICS=m +CONFIG_INPUT_BMA150=m +CONFIG_INPUT_E3X0_BUTTON=m +CONFIG_INPUT_PCSPKR=m +CONFIG_INPUT_MC13783_PWRBUTTON=m +CONFIG_INPUT_MMA8450=m +CONFIG_INPUT_APANEL=m +CONFIG_INPUT_GP2A=m +# CONFIG_INPUT_GPIO_BEEPER is not set +# CONFIG_INPUT_GPIO_TILT_POLLED is not set +CONFIG_INPUT_GPIO_DECODER=m +CONFIG_INPUT_ATLAS_BTNS=m +CONFIG_INPUT_ATI_REMOTE2=m +CONFIG_INPUT_KEYSPAN_REMOTE=m +CONFIG_INPUT_KXTJ9=m +# CONFIG_INPUT_KXTJ9_POLLED_MODE is not set +CONFIG_INPUT_POWERMATE=m +CONFIG_INPUT_YEALINK=m +CONFIG_INPUT_CM109=m +CONFIG_INPUT_RETU_PWRBUTTON=m +CONFIG_INPUT_AXP20X_PEK=m +CONFIG_INPUT_UINPUT=m +CONFIG_INPUT_PCF50633_PMU=m +CONFIG_INPUT_PCF8574=m +CONFIG_INPUT_GPIO_ROTARY_ENCODER=m +CONFIG_INPUT_ADXL34X=m +CONFIG_INPUT_ADXL34X_I2C=m +CONFIG_INPUT_ADXL34X_SPI=m +# CONFIG_INPUT_IMS_PCU is not set +CONFIG_INPUT_CMA3000=m +CONFIG_INPUT_CMA3000_I2C=m +CONFIG_INPUT_XEN_KBDDEV_FRONTEND=m +CONFIG_INPUT_IDEAPAD_SLIDEBAR=m +# CONFIG_INPUT_DRV260X_HAPTICS is not set +CONFIG_INPUT_DRV2665_HAPTICS=m +# CONFIG_INPUT_DRV2667_HAPTICS is not set +CONFIG_RMI4_CORE=m +CONFIG_RMI4_I2C=m +CONFIG_RMI4_SPI=m +CONFIG_RMI4_SMB=m +CONFIG_RMI4_F03=y +CONFIG_RMI4_F03_SERIO=m +CONFIG_RMI4_2D_SENSOR=y +CONFIG_RMI4_F11=y +CONFIG_RMI4_F12=y +CONFIG_RMI4_F30=y +CONFIG_RMI4_F34=y +# CONFIG_RMI4_F54 is not set +CONFIG_RMI4_F55=y + +# +# Hardware I/O ports +# +CONFIG_SERIO=m +CONFIG_ARCH_MIGHT_HAVE_PC_SERIO=y +CONFIG_SERIO_I8042=m +CONFIG_SERIO_SERPORT=m +CONFIG_SERIO_CT82C710=m +CONFIG_SERIO_PARKBD=m +CONFIG_SERIO_PCIPS2=m +CONFIG_SERIO_LIBPS2=m +CONFIG_SERIO_RAW=m +CONFIG_SERIO_ALTERA_PS2=m +CONFIG_SERIO_PS2MULT=m +CONFIG_SERIO_ARC_PS2=m +CONFIG_HYPERV_KEYBOARD=m +CONFIG_SERIO_GPIO_PS2=m +# CONFIG_USERIO is not set +CONFIG_GAMEPORT=m +CONFIG_GAMEPORT_NS558=m +CONFIG_GAMEPORT_L4=m +CONFIG_GAMEPORT_EMU10K1=m +CONFIG_GAMEPORT_FM801=m + +# +# Character devices +# +CONFIG_TTY=y +CONFIG_VT=y +CONFIG_CONSOLE_TRANSLATIONS=y +CONFIG_VT_CONSOLE=y +CONFIG_VT_CONSOLE_SLEEP=y +CONFIG_HW_CONSOLE=y +CONFIG_VT_HW_CONSOLE_BINDING=y +CONFIG_UNIX98_PTYS=y +# CONFIG_LEGACY_PTYS is not set +CONFIG_SERIAL_NONSTANDARD=y +CONFIG_ROCKETPORT=m +CONFIG_CYCLADES=m +# CONFIG_CYZ_INTR is not set +# CONFIG_MOXA_INTELLIO is not set +# CONFIG_MOXA_SMARTIO is not set +CONFIG_SYNCLINK=m +CONFIG_SYNCLINKMP=m +# CONFIG_SYNCLINK_GT is not set +CONFIG_NOZOMI=m +# CONFIG_ISI is not set +CONFIG_N_HDLC=m +CONFIG_N_GSM=m +CONFIG_TRACE_ROUTER=m +CONFIG_TRACE_SINK=m +CONFIG_DEVMEM=y +# CONFIG_DEVKMEM is not set + +# +# Serial drivers +# +CONFIG_SERIAL_EARLYCON=y +CONFIG_SERIAL_8250=y +# CONFIG_SERIAL_8250_DEPRECATED_OPTIONS is not set +CONFIG_SERIAL_8250_PNP=y +# CONFIG_SERIAL_8250_FINTEK is not set +CONFIG_SERIAL_8250_CONSOLE=y +CONFIG_SERIAL_8250_DMA=y +CONFIG_SERIAL_8250_PCI=y +CONFIG_SERIAL_8250_EXAR=y +CONFIG_SERIAL_8250_CS=m +CONFIG_SERIAL_8250_NR_UARTS=32 +CONFIG_SERIAL_8250_RUNTIME_UARTS=4 +# CONFIG_SERIAL_8250_EXTENDED is not set +# CONFIG_SERIAL_8250_FSL is not set +CONFIG_SERIAL_8250_DW=m +CONFIG_SERIAL_8250_RT288X=y +CONFIG_SERIAL_8250_LPSS=y +CONFIG_SERIAL_8250_MID=y +CONFIG_SERIAL_8250_MOXA=m + +# +# Non-8250 serial port support +# +# CONFIG_SERIAL_MAX3100 is not set +# CONFIG_SERIAL_MAX310X is not set +# CONFIG_SERIAL_UARTLITE is not set +CONFIG_SERIAL_CORE=y +CONFIG_SERIAL_CORE_CONSOLE=y +CONFIG_SERIAL_JSM=m +CONFIG_SERIAL_SCCNXP=m +CONFIG_SERIAL_SC16IS7XX_CORE=m +CONFIG_SERIAL_SC16IS7XX=m +CONFIG_SERIAL_SC16IS7XX_I2C=y +# CONFIG_SERIAL_SC16IS7XX_SPI is not set +CONFIG_SERIAL_ALTERA_JTAGUART=m +CONFIG_SERIAL_ALTERA_UART=m +CONFIG_SERIAL_ALTERA_UART_MAXPORTS=4 +CONFIG_SERIAL_ALTERA_UART_BAUDRATE=115200 +# CONFIG_SERIAL_IFX6X60 is not set +CONFIG_SERIAL_ARC=m +CONFIG_SERIAL_ARC_NR_PORTS=1 +CONFIG_SERIAL_RP2=m +CONFIG_SERIAL_RP2_NR_UARTS=32 +CONFIG_SERIAL_FSL_LPUART=m +# CONFIG_SERIAL_DEV_BUS is not set +CONFIG_PRINTER=m +# CONFIG_LP_CONSOLE is not set +CONFIG_PPDEV=m +CONFIG_HVC_DRIVER=y +CONFIG_HVC_IRQ=y +CONFIG_HVC_XEN=y +CONFIG_HVC_XEN_FRONTEND=y +CONFIG_VIRTIO_CONSOLE=m +CONFIG_IPMI_HANDLER=m +CONFIG_IPMI_DMI_DECODE=y +# CONFIG_IPMI_PROC_INTERFACE is not set +# CONFIG_IPMI_PANIC_EVENT is not set +CONFIG_IPMI_DEVICE_INTERFACE=m +CONFIG_IPMI_SI=m +CONFIG_IPMI_SSIF=m +CONFIG_IPMI_WATCHDOG=m +CONFIG_IPMI_POWEROFF=m +CONFIG_HW_RANDOM=m +CONFIG_HW_RANDOM_TIMERIOMEM=m +CONFIG_HW_RANDOM_INTEL=m +CONFIG_HW_RANDOM_AMD=m +CONFIG_HW_RANDOM_VIA=m +CONFIG_HW_RANDOM_VIRTIO=m +CONFIG_HW_RANDOM_TPM=m +CONFIG_NVRAM=m +CONFIG_R3964=m +CONFIG_APPLICOM=m + +# +# PCMCIA character devices +# +CONFIG_SYNCLINK_CS=m +CONFIG_CARDMAN_4000=m +CONFIG_CARDMAN_4040=m +# CONFIG_SCR24X is not set +CONFIG_IPWIRELESS=m +CONFIG_MWAVE=m +CONFIG_RAW_DRIVER=m +CONFIG_MAX_RAW_DEVS=256 +CONFIG_HPET=y +CONFIG_HPET_MMAP=y +CONFIG_HPET_MMAP_DEFAULT=y +CONFIG_HANGCHECK_TIMER=m +CONFIG_TCG_TPM=m +CONFIG_TCG_TIS_CORE=m +CONFIG_TCG_TIS=m +CONFIG_TCG_TIS_SPI=m +CONFIG_TCG_TIS_I2C_ATMEL=m +CONFIG_TCG_TIS_I2C_INFINEON=m +CONFIG_TCG_TIS_I2C_NUVOTON=m +CONFIG_TCG_NSC=m +CONFIG_TCG_ATMEL=m +CONFIG_TCG_INFINEON=m +CONFIG_TCG_XEN=m +CONFIG_TCG_CRB=m +CONFIG_TCG_VTPM_PROXY=m +CONFIG_TCG_TIS_ST33ZP24=m +CONFIG_TCG_TIS_ST33ZP24_I2C=m +CONFIG_TCG_TIS_ST33ZP24_SPI=m +CONFIG_TELCLOCK=m +CONFIG_DEVPORT=y +# CONFIG_XILLYBUS is not set + +# +# I2C support +# +CONFIG_I2C=y +CONFIG_ACPI_I2C_OPREGION=y +CONFIG_I2C_BOARDINFO=y +CONFIG_I2C_COMPAT=y +CONFIG_I2C_CHARDEV=m +CONFIG_I2C_MUX=m + +# +# Multiplexer I2C Chip support +# +# CONFIG_I2C_MUX_GPIO is not set +# CONFIG_I2C_MUX_LTC4306 is not set +CONFIG_I2C_MUX_PCA9541=m +CONFIG_I2C_MUX_PCA954x=m +# CONFIG_I2C_MUX_REG is not set +# CONFIG_I2C_MUX_MLXCPLD is not set +CONFIG_I2C_HELPER_AUTO=y +CONFIG_I2C_SMBUS=m +CONFIG_I2C_ALGOBIT=m +CONFIG_I2C_ALGOPCA=m + +# +# I2C Hardware Bus support +# + +# +# PC SMBus host controller drivers +# +CONFIG_I2C_ALI1535=m +CONFIG_I2C_ALI1563=m +CONFIG_I2C_ALI15X3=m +CONFIG_I2C_AMD756=m +CONFIG_I2C_AMD756_S4882=m +CONFIG_I2C_AMD8111=m +CONFIG_I2C_I801=m +CONFIG_I2C_ISCH=m +CONFIG_I2C_ISMT=m +CONFIG_I2C_PIIX4=m +CONFIG_I2C_NFORCE2=m +CONFIG_I2C_NFORCE2_S4985=m +CONFIG_I2C_SIS5595=m +CONFIG_I2C_SIS630=m +CONFIG_I2C_SIS96X=m +CONFIG_I2C_VIA=m +CONFIG_I2C_VIAPRO=m + +# +# ACPI drivers +# +CONFIG_I2C_SCMI=m + +# +# I2C system bus drivers (mostly embedded / system-on-chip) +# +# CONFIG_I2C_CBUS_GPIO is not set +CONFIG_I2C_DESIGNWARE_CORE=y +CONFIG_I2C_DESIGNWARE_PLATFORM=y +# CONFIG_I2C_DESIGNWARE_SLAVE is not set +CONFIG_I2C_DESIGNWARE_PCI=m +CONFIG_I2C_DESIGNWARE_BAYTRAIL=y +# CONFIG_I2C_EMEV2 is not set +# CONFIG_I2C_GPIO is not set +CONFIG_I2C_OCORES=m +CONFIG_I2C_PCA_PLATFORM=m +# CONFIG_I2C_PXA_PCI is not set +CONFIG_I2C_SIMTEC=m +CONFIG_I2C_XILINX=m + +# +# External I2C/SMBus adapter drivers +# +CONFIG_I2C_DIOLAN_U2C=m +CONFIG_I2C_PARPORT=m +CONFIG_I2C_PARPORT_LIGHT=m +CONFIG_I2C_ROBOTFUZZ_OSIF=m +CONFIG_I2C_TAOS_EVM=m +CONFIG_I2C_TINY_USB=m +CONFIG_I2C_VIPERBOARD=m + +# +# Other I2C/SMBus bus drivers +# +# CONFIG_I2C_MLXCPLD is not set +# CONFIG_I2C_CROS_EC_TUNNEL is not set +# CONFIG_I2C_STUB is not set +CONFIG_I2C_SLAVE=y +CONFIG_I2C_SLAVE_EEPROM=m +# CONFIG_I2C_DEBUG_CORE is not set +# CONFIG_I2C_DEBUG_ALGO is not set +# CONFIG_I2C_DEBUG_BUS is not set +CONFIG_SPI=y +# CONFIG_SPI_DEBUG is not set +CONFIG_SPI_MASTER=y + +# +# SPI Master Controller Drivers +# +CONFIG_SPI_ALTERA=m +CONFIG_SPI_AXI_SPI_ENGINE=m +CONFIG_SPI_BITBANG=m +CONFIG_SPI_BUTTERFLY=m +# CONFIG_SPI_CADENCE is not set +CONFIG_SPI_DESIGNWARE=m +CONFIG_SPI_DW_PCI=m +# CONFIG_SPI_DW_MID_DMA is not set +CONFIG_SPI_DW_MMIO=m +CONFIG_SPI_GPIO=m +CONFIG_SPI_LM70_LLP=m +CONFIG_SPI_OC_TINY=m +CONFIG_SPI_PXA2XX=m +CONFIG_SPI_PXA2XX_PCI=m +CONFIG_SPI_ROCKCHIP=m +CONFIG_SPI_SC18IS602=m +CONFIG_SPI_XCOMM=m +CONFIG_SPI_XILINX=m +CONFIG_SPI_ZYNQMP_GQSPI=m + +# +# SPI Protocol Masters +# +CONFIG_SPI_SPIDEV=m +CONFIG_SPI_LOOPBACK_TEST=m +CONFIG_SPI_TLE62X0=m +# CONFIG_SPI_SLAVE is not set +CONFIG_SPMI=m +# CONFIG_HSI is not set +CONFIG_PPS=m +# CONFIG_PPS_DEBUG is not set + +# +# PPS clients support +# +CONFIG_PPS_CLIENT_KTIMER=m +CONFIG_PPS_CLIENT_LDISC=m +CONFIG_PPS_CLIENT_PARPORT=m +CONFIG_PPS_CLIENT_GPIO=m + +# +# PPS generators support +# + +# +# PTP clock support +# +CONFIG_PTP_1588_CLOCK=m +CONFIG_DP83640_PHY=m +CONFIG_PTP_1588_CLOCK_KVM=m +CONFIG_PINCTRL=y +CONFIG_PINMUX=y +CONFIG_PINCONF=y +CONFIG_GENERIC_PINCONF=y +# CONFIG_DEBUG_PINCTRL is not set +# CONFIG_PINCTRL_AMD is not set +# CONFIG_PINCTRL_MCP23S08 is not set +# CONFIG_PINCTRL_SX150X is not set +CONFIG_PINCTRL_BAYTRAIL=y +CONFIG_PINCTRL_CHERRYVIEW=m +CONFIG_PINCTRL_INTEL=m +CONFIG_PINCTRL_BROXTON=m +# CONFIG_PINCTRL_CANNONLAKE is not set +# CONFIG_PINCTRL_CEDARFORK is not set +# CONFIG_PINCTRL_DENVERTON is not set +CONFIG_PINCTRL_GEMINILAKE=m +CONFIG_PINCTRL_LEWISBURG=m +CONFIG_PINCTRL_SUNRISEPOINT=m +CONFIG_GPIOLIB=y +CONFIG_GPIO_ACPI=y +CONFIG_GPIOLIB_IRQCHIP=y +# CONFIG_DEBUG_GPIO is not set +CONFIG_GPIO_SYSFS=y +CONFIG_GPIO_GENERIC=m + +# +# Memory mapped GPIO drivers +# +CONFIG_GPIO_AMDPT=m +CONFIG_GPIO_AXP209=m +# CONFIG_GPIO_DWAPB is not set +CONFIG_GPIO_EXAR=m +# CONFIG_GPIO_GENERIC_PLATFORM is not set +CONFIG_GPIO_ICH=m +CONFIG_GPIO_LYNXPOINT=y +CONFIG_GPIO_MB86S7X=m +# CONFIG_GPIO_MOCKUP is not set +# CONFIG_GPIO_VX855 is not set + +# +# Port-mapped I/O GPIO drivers +# +# CONFIG_GPIO_F7188X is not set +# CONFIG_GPIO_IT87 is not set +CONFIG_GPIO_SCH=m +CONFIG_GPIO_SCH311X=m + +# +# I2C GPIO expanders +# +# CONFIG_GPIO_ADP5588 is not set +# CONFIG_GPIO_MAX7300 is not set +# CONFIG_GPIO_MAX732X is not set +# CONFIG_GPIO_PCA953X is not set +# CONFIG_GPIO_PCF857X is not set +# CONFIG_GPIO_TPIC2810 is not set + +# +# MFD GPIO expanders +# +# CONFIG_GPIO_ARIZONA is not set +# CONFIG_GPIO_BD9571MWV is not set +CONFIG_GPIO_CRYSTAL_COVE=y +# CONFIG_GPIO_LP3943 is not set +# CONFIG_GPIO_LP873X is not set +# CONFIG_GPIO_TPS68470 is not set +# CONFIG_GPIO_UCB1400 is not set +CONFIG_GPIO_WHISKEY_COVE=m + +# +# PCI GPIO expanders +# +CONFIG_GPIO_AMD8111=m +# CONFIG_GPIO_ML_IOH is not set +# CONFIG_GPIO_PCI_IDIO_16 is not set +# CONFIG_GPIO_RDC321X is not set + +# +# SPI GPIO expanders +# +CONFIG_GPIO_MAX3191X=m +# CONFIG_GPIO_MAX7301 is not set +# CONFIG_GPIO_MC33880 is not set +# CONFIG_GPIO_PISOSR is not set +# CONFIG_GPIO_XRA1403 is not set + +# +# USB GPIO expanders +# +CONFIG_GPIO_VIPERBOARD=m +# CONFIG_W1 is not set +CONFIG_POWER_AVS=y +CONFIG_POWER_RESET=y +# CONFIG_POWER_RESET_RESTART is not set +CONFIG_POWER_SUPPLY=y +# CONFIG_POWER_SUPPLY_DEBUG is not set +CONFIG_PDA_POWER=m +CONFIG_GENERIC_ADC_BATTERY=m +CONFIG_TEST_POWER=m +# CONFIG_BATTERY_DS2780 is not set +# CONFIG_BATTERY_DS2781 is not set +# CONFIG_BATTERY_DS2782 is not set +CONFIG_BATTERY_SBS=m +CONFIG_CHARGER_SBS=m +CONFIG_MANAGER_SBS=m +CONFIG_BATTERY_BQ27XXX=m +CONFIG_BATTERY_BQ27XXX_I2C=m +# CONFIG_BATTERY_BQ27XXX_DT_UPDATES_NVM is not set +CONFIG_CHARGER_AXP20X=m +CONFIG_BATTERY_AXP20X=m +CONFIG_AXP20X_POWER=m +CONFIG_AXP288_FUEL_GAUGE=m +CONFIG_BATTERY_MAX17040=m +CONFIG_BATTERY_MAX17042=m +# CONFIG_CHARGER_PCF50633 is not set +# CONFIG_CHARGER_ISP1704 is not set +# CONFIG_CHARGER_MAX8903 is not set +# CONFIG_CHARGER_LP8727 is not set +CONFIG_CHARGER_GPIO=m +# CONFIG_CHARGER_LTC3651 is not set +# CONFIG_CHARGER_BQ2415X is not set +# CONFIG_CHARGER_BQ24190 is not set +# CONFIG_CHARGER_BQ24257 is not set +CONFIG_CHARGER_BQ24735=m +# CONFIG_CHARGER_BQ25890 is not set +# CONFIG_CHARGER_SMB347 is not set +# CONFIG_BATTERY_GAUGE_LTC2941 is not set +# CONFIG_BATTERY_RT5033 is not set +# CONFIG_CHARGER_RT9455 is not set +CONFIG_HWMON=y +CONFIG_HWMON_VID=m +# CONFIG_HWMON_DEBUG_CHIP is not set + +# +# Native drivers +# +CONFIG_SENSORS_ABITUGURU=m +CONFIG_SENSORS_ABITUGURU3=m +CONFIG_SENSORS_AD7314=m +CONFIG_SENSORS_AD7414=m +CONFIG_SENSORS_AD7418=m +CONFIG_SENSORS_ADM1021=m +CONFIG_SENSORS_ADM1025=m +CONFIG_SENSORS_ADM1026=m +CONFIG_SENSORS_ADM1029=m +CONFIG_SENSORS_ADM1031=m +CONFIG_SENSORS_ADM9240=m +CONFIG_SENSORS_ADT7X10=m +CONFIG_SENSORS_ADT7310=m +CONFIG_SENSORS_ADT7410=m +CONFIG_SENSORS_ADT7411=m +CONFIG_SENSORS_ADT7462=m +CONFIG_SENSORS_ADT7470=m +CONFIG_SENSORS_ADT7475=m +CONFIG_SENSORS_ASC7621=m +CONFIG_SENSORS_K8TEMP=m +CONFIG_SENSORS_K10TEMP=m +CONFIG_SENSORS_FAM15H_POWER=m +CONFIG_SENSORS_APPLESMC=m +CONFIG_SENSORS_ASB100=m +CONFIG_SENSORS_ASPEED=m +CONFIG_SENSORS_ATXP1=m +CONFIG_SENSORS_DS620=m +CONFIG_SENSORS_DS1621=m +CONFIG_SENSORS_DELL_SMM=m +CONFIG_SENSORS_I5K_AMB=m +CONFIG_SENSORS_F71805F=m +CONFIG_SENSORS_F71882FG=m +CONFIG_SENSORS_F75375S=m +CONFIG_SENSORS_MC13783_ADC=m +CONFIG_SENSORS_FSCHMD=m +CONFIG_SENSORS_FTSTEUTATES=m +CONFIG_SENSORS_GL518SM=m +CONFIG_SENSORS_GL520SM=m +CONFIG_SENSORS_G760A=m +CONFIG_SENSORS_G762=m +CONFIG_SENSORS_HIH6130=m +CONFIG_SENSORS_IBMAEM=m +CONFIG_SENSORS_IBMPEX=m +# CONFIG_SENSORS_IIO_HWMON is not set +CONFIG_SENSORS_I5500=m +CONFIG_SENSORS_CORETEMP=m +CONFIG_SENSORS_IT87=m +CONFIG_SENSORS_JC42=m +CONFIG_SENSORS_POWR1220=m +CONFIG_SENSORS_LINEAGE=m +CONFIG_SENSORS_LTC2945=m +# CONFIG_SENSORS_LTC2990 is not set +CONFIG_SENSORS_LTC4151=m +CONFIG_SENSORS_LTC4215=m +CONFIG_SENSORS_LTC4222=m +CONFIG_SENSORS_LTC4245=m +CONFIG_SENSORS_LTC4260=m +CONFIG_SENSORS_LTC4261=m +CONFIG_SENSORS_MAX1111=m +CONFIG_SENSORS_MAX16065=m +CONFIG_SENSORS_MAX1619=m +CONFIG_SENSORS_MAX1668=m +CONFIG_SENSORS_MAX197=m +CONFIG_SENSORS_MAX31722=m +CONFIG_SENSORS_MAX6621=m +CONFIG_SENSORS_MAX6639=m +CONFIG_SENSORS_MAX6642=m +CONFIG_SENSORS_MAX6650=m +CONFIG_SENSORS_MAX6697=m +CONFIG_SENSORS_MAX31790=m +CONFIG_SENSORS_MCP3021=m +CONFIG_SENSORS_TC654=m +CONFIG_SENSORS_ADCXX=m +CONFIG_SENSORS_LM63=m +CONFIG_SENSORS_LM70=m +CONFIG_SENSORS_LM73=m +CONFIG_SENSORS_LM75=m +CONFIG_SENSORS_LM77=m +CONFIG_SENSORS_LM78=m +CONFIG_SENSORS_LM80=m +CONFIG_SENSORS_LM83=m +CONFIG_SENSORS_LM85=m +CONFIG_SENSORS_LM87=m +CONFIG_SENSORS_LM90=m +CONFIG_SENSORS_LM92=m +CONFIG_SENSORS_LM93=m +CONFIG_SENSORS_LM95234=m +CONFIG_SENSORS_LM95241=m +CONFIG_SENSORS_LM95245=m +CONFIG_SENSORS_PC87360=m +CONFIG_SENSORS_PC87427=m +CONFIG_SENSORS_NTC_THERMISTOR=m +CONFIG_SENSORS_NCT6683=m +CONFIG_SENSORS_NCT6775=m +CONFIG_SENSORS_NCT7802=m +# CONFIG_SENSORS_NCT7904 is not set +CONFIG_SENSORS_PCF8591=m +CONFIG_PMBUS=m +CONFIG_SENSORS_PMBUS=m +CONFIG_SENSORS_ADM1275=m +CONFIG_SENSORS_IBM_CFFPS=m +# CONFIG_SENSORS_IR35221 is not set +CONFIG_SENSORS_LM25066=m +CONFIG_SENSORS_LTC2978=m +CONFIG_SENSORS_LTC3815=m +CONFIG_SENSORS_MAX16064=m +CONFIG_SENSORS_MAX20751=m +CONFIG_SENSORS_MAX31785=m +CONFIG_SENSORS_MAX34440=m +CONFIG_SENSORS_MAX8688=m +CONFIG_SENSORS_TPS40422=m +CONFIG_SENSORS_TPS53679=m +CONFIG_SENSORS_UCD9000=m +CONFIG_SENSORS_UCD9200=m +CONFIG_SENSORS_ZL6100=m +CONFIG_SENSORS_SHT15=m +CONFIG_SENSORS_SHT21=m +CONFIG_SENSORS_SHT3x=m +CONFIG_SENSORS_SHTC1=m +CONFIG_SENSORS_SIS5595=m +CONFIG_SENSORS_DME1737=m +CONFIG_SENSORS_EMC1403=m +CONFIG_SENSORS_EMC2103=m +CONFIG_SENSORS_EMC6W201=m +CONFIG_SENSORS_SMSC47M1=m +CONFIG_SENSORS_SMSC47M192=m +CONFIG_SENSORS_SMSC47B397=m +CONFIG_SENSORS_SCH56XX_COMMON=m +CONFIG_SENSORS_SCH5627=m +CONFIG_SENSORS_SCH5636=m +CONFIG_SENSORS_STTS751=m +CONFIG_SENSORS_SMM665=m +CONFIG_SENSORS_ADC128D818=m +CONFIG_SENSORS_ADS1015=m +CONFIG_SENSORS_ADS7828=m +CONFIG_SENSORS_ADS7871=m +CONFIG_SENSORS_AMC6821=m +CONFIG_SENSORS_INA209=m +CONFIG_SENSORS_INA2XX=m +CONFIG_SENSORS_INA3221=m +CONFIG_SENSORS_TC74=m +CONFIG_SENSORS_THMC50=m +CONFIG_SENSORS_TMP102=m +CONFIG_SENSORS_TMP103=m +CONFIG_SENSORS_TMP108=m +CONFIG_SENSORS_TMP401=m +CONFIG_SENSORS_TMP421=m +CONFIG_SENSORS_VIA_CPUTEMP=m +CONFIG_SENSORS_VIA686A=m +CONFIG_SENSORS_VT1211=m +CONFIG_SENSORS_VT8231=m +CONFIG_SENSORS_W83781D=m +CONFIG_SENSORS_W83791D=m +CONFIG_SENSORS_W83792D=m +CONFIG_SENSORS_W83793=m +CONFIG_SENSORS_W83795=m +# CONFIG_SENSORS_W83795_FANCTRL is not set +CONFIG_SENSORS_W83L785TS=m +CONFIG_SENSORS_W83L786NG=m +CONFIG_SENSORS_W83627HF=m +CONFIG_SENSORS_W83627EHF=m +CONFIG_SENSORS_XGENE=m + +# +# ACPI drivers +# +CONFIG_SENSORS_ACPI_POWER=m +CONFIG_SENSORS_ATK0110=m +CONFIG_THERMAL=y +CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS=0 +CONFIG_THERMAL_HWMON=y +CONFIG_THERMAL_WRITABLE_TRIPS=y +CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE=y +# CONFIG_THERMAL_DEFAULT_GOV_FAIR_SHARE is not set +# CONFIG_THERMAL_DEFAULT_GOV_USER_SPACE is not set +# CONFIG_THERMAL_DEFAULT_GOV_POWER_ALLOCATOR is not set +CONFIG_THERMAL_GOV_FAIR_SHARE=y +CONFIG_THERMAL_GOV_STEP_WISE=y +CONFIG_THERMAL_GOV_BANG_BANG=y +CONFIG_THERMAL_GOV_USER_SPACE=y +# CONFIG_THERMAL_GOV_POWER_ALLOCATOR is not set +# CONFIG_CLOCK_THERMAL is not set +# CONFIG_DEVFREQ_THERMAL is not set +# CONFIG_THERMAL_EMULATION is not set +CONFIG_INTEL_POWERCLAMP=m +CONFIG_X86_PKG_TEMP_THERMAL=m +CONFIG_INTEL_SOC_DTS_IOSF_CORE=m +CONFIG_INTEL_SOC_DTS_THERMAL=m + +# +# ACPI INT340X thermal drivers +# +CONFIG_INT340X_THERMAL=m +CONFIG_ACPI_THERMAL_REL=m +CONFIG_INT3406_THERMAL=m +CONFIG_INTEL_BXT_PMIC_THERMAL=m +CONFIG_INTEL_PCH_THERMAL=m +CONFIG_GENERIC_ADC_THERMAL=m +CONFIG_WATCHDOG=y +CONFIG_WATCHDOG_CORE=y +# CONFIG_WATCHDOG_NOWAYOUT is not set +# CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED is not set +# CONFIG_WATCHDOG_SYSFS is not set + +# +# Watchdog Device Drivers +# +CONFIG_SOFT_WATCHDOG=m +# CONFIG_WDAT_WDT is not set +CONFIG_XILINX_WATCHDOG=m +CONFIG_ZIIRAVE_WATCHDOG=m +# CONFIG_CADENCE_WATCHDOG is not set +CONFIG_DW_WATCHDOG=m +# CONFIG_MAX63XX_WATCHDOG is not set +CONFIG_RETU_WATCHDOG=m +CONFIG_ACQUIRE_WDT=m +CONFIG_ADVANTECH_WDT=m +CONFIG_ALIM1535_WDT=m +CONFIG_ALIM7101_WDT=m +CONFIG_F71808E_WDT=m +# CONFIG_SP5100_TCO is not set +CONFIG_SBC_FITPC2_WATCHDOG=m +CONFIG_EUROTECH_WDT=m +CONFIG_IB700_WDT=m +CONFIG_IBMASR=m +CONFIG_WAFER_WDT=m +CONFIG_I6300ESB_WDT=m +CONFIG_IE6XX_WDT=m +CONFIG_ITCO_WDT=m +CONFIG_ITCO_VENDOR_SUPPORT=y +CONFIG_IT8712F_WDT=m +CONFIG_IT87_WDT=m +CONFIG_HP_WATCHDOG=m +CONFIG_HPWDT_NMI_DECODING=y +CONFIG_SC1200_WDT=m +CONFIG_PC87413_WDT=m +CONFIG_NV_TCO=m +CONFIG_60XX_WDT=m +CONFIG_CPU5_WDT=m +CONFIG_SMSC_SCH311X_WDT=m +CONFIG_SMSC37B787_WDT=m +CONFIG_VIA_WDT=m +CONFIG_W83627HF_WDT=m +CONFIG_W83877F_WDT=m +CONFIG_W83977F_WDT=m +CONFIG_MACHZ_WDT=m +CONFIG_SBC_EPX_C3_WATCHDOG=m +# CONFIG_INTEL_MEI_WDT is not set +# CONFIG_NI903X_WDT is not set +# CONFIG_NIC7018_WDT is not set +CONFIG_MEN_A21_WDT=m +CONFIG_XEN_WDT=m + +# +# PCI-based Watchdog Cards +# +CONFIG_PCIPCWATCHDOG=m +CONFIG_WDTPCI=m + +# +# USB-based Watchdog Cards +# +CONFIG_USBPCWATCHDOG=m + +# +# Watchdog Pretimeout Governors +# +# CONFIG_WATCHDOG_PRETIMEOUT_GOV is not set +CONFIG_SSB_POSSIBLE=y + +# +# Sonics Silicon Backplane +# +CONFIG_SSB=m +CONFIG_SSB_SPROM=y +CONFIG_SSB_BLOCKIO=y +CONFIG_SSB_PCIHOST_POSSIBLE=y +CONFIG_SSB_PCIHOST=y +CONFIG_SSB_B43_PCI_BRIDGE=y +CONFIG_SSB_PCMCIAHOST_POSSIBLE=y +CONFIG_SSB_PCMCIAHOST=y +CONFIG_SSB_SDIOHOST_POSSIBLE=y +CONFIG_SSB_SDIOHOST=y +# CONFIG_SSB_DEBUG is not set +CONFIG_SSB_DRIVER_PCICORE_POSSIBLE=y +CONFIG_SSB_DRIVER_PCICORE=y +CONFIG_SSB_DRIVER_GPIO=y +CONFIG_BCMA_POSSIBLE=y +CONFIG_BCMA=m +CONFIG_BCMA_BLOCKIO=y +CONFIG_BCMA_HOST_PCI_POSSIBLE=y +CONFIG_BCMA_HOST_PCI=y +# CONFIG_BCMA_HOST_SOC is not set +CONFIG_BCMA_DRIVER_PCI=y +CONFIG_BCMA_DRIVER_GMAC_CMN=y +CONFIG_BCMA_DRIVER_GPIO=y +# CONFIG_BCMA_DEBUG is not set + +# +# Multifunction device drivers +# +CONFIG_MFD_CORE=y +# CONFIG_MFD_AS3711 is not set +# CONFIG_PMIC_ADP5520 is not set +# CONFIG_MFD_AAT2870_CORE is not set +CONFIG_MFD_BCM590XX=m +CONFIG_MFD_BD9571MWV=m +CONFIG_MFD_AXP20X=m +CONFIG_MFD_AXP20X_I2C=m +CONFIG_MFD_CROS_EC=m +CONFIG_MFD_CROS_EC_I2C=m +CONFIG_MFD_CROS_EC_SPI=m +# CONFIG_PMIC_DA903X is not set +# CONFIG_MFD_DA9052_SPI is not set +# CONFIG_MFD_DA9052_I2C is not set +# CONFIG_MFD_DA9055 is not set +# CONFIG_MFD_DA9062 is not set +# CONFIG_MFD_DA9063 is not set +# CONFIG_MFD_DA9150 is not set +# CONFIG_MFD_DLN2 is not set +CONFIG_MFD_MC13XXX=m +# CONFIG_MFD_MC13XXX_SPI is not set +CONFIG_MFD_MC13XXX_I2C=m +CONFIG_HTC_PASIC3=m +# CONFIG_HTC_I2CPLD is not set +CONFIG_MFD_INTEL_QUARK_I2C_GPIO=m +CONFIG_LPC_ICH=m +CONFIG_LPC_SCH=m +CONFIG_INTEL_SOC_PMIC=y +CONFIG_INTEL_SOC_PMIC_BXTWC=m +# CONFIG_INTEL_SOC_PMIC_CHTWC is not set +CONFIG_INTEL_SOC_PMIC_CHTDC_TI=y +CONFIG_MFD_INTEL_LPSS=m +CONFIG_MFD_INTEL_LPSS_ACPI=m +CONFIG_MFD_INTEL_LPSS_PCI=m +# CONFIG_MFD_JANZ_CMODIO is not set +# CONFIG_MFD_KEMPLD is not set +# CONFIG_MFD_88PM800 is not set +# CONFIG_MFD_88PM805 is not set +# CONFIG_MFD_88PM860X is not set +# CONFIG_MFD_MAX14577 is not set +# CONFIG_MFD_MAX77693 is not set +# CONFIG_MFD_MAX77843 is not set +# CONFIG_MFD_MAX8907 is not set +# CONFIG_MFD_MAX8925 is not set +# CONFIG_MFD_MAX8997 is not set +# CONFIG_MFD_MAX8998 is not set +# CONFIG_MFD_MT6397 is not set +# CONFIG_MFD_MENF21BMC is not set +# CONFIG_EZX_PCAP is not set +CONFIG_MFD_VIPERBOARD=m +CONFIG_MFD_RETU=m +CONFIG_MFD_PCF50633=m +CONFIG_PCF50633_ADC=m +CONFIG_PCF50633_GPIO=m +CONFIG_UCB1400_CORE=m +CONFIG_MFD_RDC321X=m +CONFIG_MFD_RTSX_PCI=m +CONFIG_MFD_RT5033=m +CONFIG_MFD_RTSX_USB=m +# CONFIG_MFD_RC5T583 is not set +# CONFIG_MFD_SEC_CORE is not set +CONFIG_MFD_SI476X_CORE=m +CONFIG_MFD_SM501=m +CONFIG_MFD_SM501_GPIO=y +# CONFIG_MFD_SKY81452 is not set +# CONFIG_MFD_SMSC is not set +CONFIG_ABX500_CORE=y +# CONFIG_AB3100_CORE is not set +CONFIG_MFD_SYSCON=y +CONFIG_MFD_TI_AM335X_TSCADC=m +CONFIG_MFD_LP3943=m +# CONFIG_MFD_LP8788 is not set +# CONFIG_MFD_TI_LMU is not set +# CONFIG_MFD_PALMAS is not set +# CONFIG_TPS6105X is not set +CONFIG_TPS65010=m +CONFIG_TPS6507X=m +# CONFIG_MFD_TPS65086 is not set +# CONFIG_MFD_TPS65090 is not set +CONFIG_MFD_TPS68470=y +CONFIG_MFD_TI_LP873X=m +# CONFIG_MFD_TPS6586X is not set +# CONFIG_MFD_TPS65910 is not set +# CONFIG_MFD_TPS65912_I2C is not set +# CONFIG_MFD_TPS65912_SPI is not set +# CONFIG_MFD_TPS80031 is not set +# CONFIG_TWL4030_CORE is not set +# CONFIG_TWL6040_CORE is not set +CONFIG_MFD_WL1273_CORE=m +CONFIG_MFD_LM3533=m +# CONFIG_MFD_TMIO is not set +CONFIG_MFD_VX855=m +CONFIG_MFD_ARIZONA=y +CONFIG_MFD_ARIZONA_I2C=m +# CONFIG_MFD_ARIZONA_SPI is not set +# CONFIG_MFD_CS47L24 is not set +CONFIG_MFD_WM5102=y +CONFIG_MFD_WM5110=y +# CONFIG_MFD_WM8997 is not set +# CONFIG_MFD_WM8998 is not set +# CONFIG_MFD_WM8400 is not set +# CONFIG_MFD_WM831X_I2C is not set +# CONFIG_MFD_WM831X_SPI is not set +# CONFIG_MFD_WM8350_I2C is not set +# CONFIG_MFD_WM8994 is not set +# CONFIG_REGULATOR is not set +CONFIG_CEC_CORE=m +CONFIG_CEC_PIN=y +CONFIG_RC_CORE=m +CONFIG_RC_MAP=m +CONFIG_RC_DECODERS=y +CONFIG_LIRC=m +CONFIG_IR_LIRC_CODEC=m +CONFIG_IR_NEC_DECODER=m +CONFIG_IR_RC5_DECODER=m +CONFIG_IR_RC6_DECODER=m +CONFIG_IR_JVC_DECODER=m +CONFIG_IR_SONY_DECODER=m +CONFIG_IR_SANYO_DECODER=m +CONFIG_IR_SHARP_DECODER=m +CONFIG_IR_MCE_KBD_DECODER=m +CONFIG_IR_XMP_DECODER=m +CONFIG_RC_DEVICES=y +CONFIG_RC_ATI_REMOTE=m +CONFIG_IR_ENE=m +CONFIG_IR_IMON=m +CONFIG_IR_MCEUSB=m +CONFIG_IR_ITE_CIR=m +CONFIG_IR_FINTEK=m +CONFIG_IR_NUVOTON=m +CONFIG_IR_REDRAT3=m +CONFIG_IR_STREAMZAP=m +CONFIG_IR_WINBOND_CIR=m +CONFIG_IR_IGORPLUGUSB=m +CONFIG_IR_IGUANA=m +CONFIG_IR_TTUSBIR=m +CONFIG_RC_LOOPBACK=m +CONFIG_IR_SERIAL=m +CONFIG_IR_SERIAL_TRANSMITTER=y +CONFIG_IR_SIR=m +CONFIG_MEDIA_SUPPORT=m + +# +# Multimedia core support +# +CONFIG_MEDIA_CAMERA_SUPPORT=y +CONFIG_MEDIA_ANALOG_TV_SUPPORT=y +CONFIG_MEDIA_DIGITAL_TV_SUPPORT=y +CONFIG_MEDIA_RADIO_SUPPORT=y +CONFIG_MEDIA_SDR_SUPPORT=y +CONFIG_MEDIA_CEC_SUPPORT=y +CONFIG_MEDIA_CEC_RC=y +CONFIG_MEDIA_CONTROLLER=y +# CONFIG_MEDIA_CONTROLLER_DVB is not set +CONFIG_VIDEO_DEV=m +CONFIG_VIDEO_V4L2_SUBDEV_API=y +CONFIG_VIDEO_V4L2=m +# CONFIG_VIDEO_ADV_DEBUG is not set +# CONFIG_VIDEO_FIXED_MINOR_RANGES is not set +CONFIG_VIDEO_PCI_SKELETON=m +CONFIG_VIDEO_TUNER=m +CONFIG_V4L2_MEM2MEM_DEV=m +# CONFIG_V4L2_FLASH_LED_CLASS is not set +CONFIG_V4L2_FWNODE=m +CONFIG_VIDEOBUF_GEN=m +CONFIG_VIDEOBUF_DMA_SG=m +CONFIG_VIDEOBUF_VMALLOC=m +CONFIG_VIDEOBUF_DVB=m +CONFIG_VIDEOBUF2_CORE=m +CONFIG_VIDEOBUF2_MEMOPS=m +CONFIG_VIDEOBUF2_DMA_CONTIG=m +CONFIG_VIDEOBUF2_VMALLOC=m +CONFIG_VIDEOBUF2_DMA_SG=m +CONFIG_VIDEOBUF2_DVB=m +CONFIG_DVB_CORE=m +CONFIG_DVB_NET=y +CONFIG_TTPCI_EEPROM=m +CONFIG_DVB_MAX_ADAPTERS=16 +# CONFIG_DVB_DYNAMIC_MINORS is not set +# CONFIG_DVB_DEMUX_SECTION_LOSS_LOG is not set + +# +# Media drivers +# +CONFIG_MEDIA_USB_SUPPORT=y + +# +# Webcam devices +# +CONFIG_USB_VIDEO_CLASS=m +CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y +CONFIG_USB_GSPCA=m +CONFIG_USB_M5602=m +CONFIG_USB_STV06XX=m +CONFIG_USB_GL860=m +CONFIG_USB_GSPCA_BENQ=m +CONFIG_USB_GSPCA_CONEX=m +CONFIG_USB_GSPCA_CPIA1=m +CONFIG_USB_GSPCA_DTCS033=m +CONFIG_USB_GSPCA_ETOMS=m +CONFIG_USB_GSPCA_FINEPIX=m +CONFIG_USB_GSPCA_JEILINJ=m +CONFIG_USB_GSPCA_JL2005BCD=m +CONFIG_USB_GSPCA_KINECT=m +CONFIG_USB_GSPCA_KONICA=m +CONFIG_USB_GSPCA_MARS=m +CONFIG_USB_GSPCA_MR97310A=m +CONFIG_USB_GSPCA_NW80X=m +CONFIG_USB_GSPCA_OV519=m +CONFIG_USB_GSPCA_OV534=m +CONFIG_USB_GSPCA_OV534_9=m +CONFIG_USB_GSPCA_PAC207=m +CONFIG_USB_GSPCA_PAC7302=m +CONFIG_USB_GSPCA_PAC7311=m +CONFIG_USB_GSPCA_SE401=m +CONFIG_USB_GSPCA_SN9C2028=m +CONFIG_USB_GSPCA_SN9C20X=m +CONFIG_USB_GSPCA_SONIXB=m +CONFIG_USB_GSPCA_SONIXJ=m +CONFIG_USB_GSPCA_SPCA500=m +CONFIG_USB_GSPCA_SPCA501=m +CONFIG_USB_GSPCA_SPCA505=m +CONFIG_USB_GSPCA_SPCA506=m +CONFIG_USB_GSPCA_SPCA508=m +CONFIG_USB_GSPCA_SPCA561=m +CONFIG_USB_GSPCA_SPCA1528=m +CONFIG_USB_GSPCA_SQ905=m +CONFIG_USB_GSPCA_SQ905C=m +CONFIG_USB_GSPCA_SQ930X=m +CONFIG_USB_GSPCA_STK014=m +CONFIG_USB_GSPCA_STK1135=m +CONFIG_USB_GSPCA_STV0680=m +CONFIG_USB_GSPCA_SUNPLUS=m +CONFIG_USB_GSPCA_T613=m +CONFIG_USB_GSPCA_TOPRO=m +CONFIG_USB_GSPCA_TOUPTEK=m +CONFIG_USB_GSPCA_TV8532=m +CONFIG_USB_GSPCA_VC032X=m +CONFIG_USB_GSPCA_VICAM=m +CONFIG_USB_GSPCA_XIRLINK_CIT=m +CONFIG_USB_GSPCA_ZC3XX=m +CONFIG_USB_PWC=m +# CONFIG_USB_PWC_DEBUG is not set +CONFIG_USB_PWC_INPUT_EVDEV=y +CONFIG_VIDEO_CPIA2=m +CONFIG_USB_ZR364XX=m +CONFIG_USB_STKWEBCAM=m +CONFIG_USB_S2255=m +CONFIG_VIDEO_USBTV=m + +# +# Analog TV USB devices +# +CONFIG_VIDEO_PVRUSB2=m +CONFIG_VIDEO_PVRUSB2_SYSFS=y +CONFIG_VIDEO_PVRUSB2_DVB=y +# CONFIG_VIDEO_PVRUSB2_DEBUGIFC is not set +CONFIG_VIDEO_HDPVR=m +CONFIG_VIDEO_USBVISION=m +CONFIG_VIDEO_STK1160_COMMON=m +CONFIG_VIDEO_STK1160=m +CONFIG_VIDEO_GO7007=m +CONFIG_VIDEO_GO7007_USB=m +CONFIG_VIDEO_GO7007_LOADER=m +# CONFIG_VIDEO_GO7007_USB_S2250_BOARD is not set + +# +# Analog/digital TV USB devices +# +CONFIG_VIDEO_AU0828=m +CONFIG_VIDEO_AU0828_V4L2=y +CONFIG_VIDEO_AU0828_RC=y +CONFIG_VIDEO_CX231XX=m +CONFIG_VIDEO_CX231XX_RC=y +CONFIG_VIDEO_CX231XX_ALSA=m +CONFIG_VIDEO_CX231XX_DVB=m +CONFIG_VIDEO_TM6000=m +CONFIG_VIDEO_TM6000_ALSA=m +CONFIG_VIDEO_TM6000_DVB=m + +# +# Digital TV USB devices +# +CONFIG_DVB_USB=m +# CONFIG_DVB_USB_DEBUG is not set +CONFIG_DVB_USB_DIB3000MC=m +CONFIG_DVB_USB_A800=m +CONFIG_DVB_USB_DIBUSB_MB=m +CONFIG_DVB_USB_DIBUSB_MB_FAULTY=y +CONFIG_DVB_USB_DIBUSB_MC=m +CONFIG_DVB_USB_DIB0700=m +CONFIG_DVB_USB_UMT_010=m +CONFIG_DVB_USB_CXUSB=m +CONFIG_DVB_USB_M920X=m +CONFIG_DVB_USB_DIGITV=m +CONFIG_DVB_USB_VP7045=m +CONFIG_DVB_USB_VP702X=m +CONFIG_DVB_USB_GP8PSK=m +CONFIG_DVB_USB_NOVA_T_USB2=m +CONFIG_DVB_USB_TTUSB2=m +CONFIG_DVB_USB_DTT200U=m +CONFIG_DVB_USB_OPERA1=m +CONFIG_DVB_USB_AF9005=m +CONFIG_DVB_USB_AF9005_REMOTE=m +CONFIG_DVB_USB_PCTV452E=m +CONFIG_DVB_USB_DW2102=m +CONFIG_DVB_USB_CINERGY_T2=m +CONFIG_DVB_USB_DTV5100=m +CONFIG_DVB_USB_FRIIO=m +CONFIG_DVB_USB_AZ6027=m +CONFIG_DVB_USB_TECHNISAT_USB2=m +CONFIG_DVB_USB_V2=m +CONFIG_DVB_USB_AF9015=m +CONFIG_DVB_USB_AF9035=m +CONFIG_DVB_USB_ANYSEE=m +CONFIG_DVB_USB_AU6610=m +CONFIG_DVB_USB_AZ6007=m +CONFIG_DVB_USB_CE6230=m +CONFIG_DVB_USB_EC168=m +CONFIG_DVB_USB_GL861=m +CONFIG_DVB_USB_LME2510=m +CONFIG_DVB_USB_MXL111SF=m +CONFIG_DVB_USB_RTL28XXU=m +CONFIG_DVB_USB_DVBSKY=m +CONFIG_DVB_USB_ZD1301=m +CONFIG_DVB_TTUSB_BUDGET=m +CONFIG_DVB_TTUSB_DEC=m +CONFIG_SMS_USB_DRV=m +CONFIG_DVB_B2C2_FLEXCOP_USB=m +# CONFIG_DVB_B2C2_FLEXCOP_USB_DEBUG is not set +CONFIG_DVB_AS102=m + +# +# Webcam, TV (analog/digital) USB devices +# +CONFIG_VIDEO_EM28XX=m +CONFIG_VIDEO_EM28XX_V4L2=m +CONFIG_VIDEO_EM28XX_ALSA=m +CONFIG_VIDEO_EM28XX_DVB=m +CONFIG_VIDEO_EM28XX_RC=m + +# +# Software defined radio USB devices +# +CONFIG_USB_AIRSPY=m +CONFIG_USB_HACKRF=m +CONFIG_USB_MSI2500=m + +# +# USB HDMI CEC adapters +# +CONFIG_USB_PULSE8_CEC=m +CONFIG_USB_RAINSHADOW_CEC=m +CONFIG_MEDIA_PCI_SUPPORT=y + +# +# Media capture support +# +CONFIG_VIDEO_MEYE=m +CONFIG_VIDEO_SOLO6X10=m +CONFIG_VIDEO_TW5864=m +CONFIG_VIDEO_TW68=m +CONFIG_VIDEO_TW686X=m +CONFIG_VIDEO_ZORAN=m +CONFIG_VIDEO_ZORAN_DC30=m +CONFIG_VIDEO_ZORAN_ZR36060=m +CONFIG_VIDEO_ZORAN_BUZ=m +CONFIG_VIDEO_ZORAN_DC10=m +CONFIG_VIDEO_ZORAN_LML33=m +CONFIG_VIDEO_ZORAN_LML33R10=m +CONFIG_VIDEO_ZORAN_AVS6EYES=m + +# +# Media capture/analog TV support +# +CONFIG_VIDEO_IVTV=m +# CONFIG_VIDEO_IVTV_DEPRECATED_IOCTLS is not set +CONFIG_VIDEO_IVTV_ALSA=m +CONFIG_VIDEO_FB_IVTV=m +CONFIG_VIDEO_HEXIUM_GEMINI=m +CONFIG_VIDEO_HEXIUM_ORION=m +CONFIG_VIDEO_MXB=m +CONFIG_VIDEO_DT3155=m + +# +# Media capture/analog/hybrid TV support +# +CONFIG_VIDEO_CX18=m +CONFIG_VIDEO_CX18_ALSA=m +CONFIG_VIDEO_CX23885=m +CONFIG_MEDIA_ALTERA_CI=m +CONFIG_VIDEO_CX25821=m +CONFIG_VIDEO_CX25821_ALSA=m +CONFIG_VIDEO_CX88=m +CONFIG_VIDEO_CX88_ALSA=m +CONFIG_VIDEO_CX88_BLACKBIRD=m +CONFIG_VIDEO_CX88_DVB=m +CONFIG_VIDEO_CX88_ENABLE_VP3054=y +CONFIG_VIDEO_CX88_VP3054=m +CONFIG_VIDEO_CX88_MPEG=m +CONFIG_VIDEO_BT848=m +CONFIG_DVB_BT8XX=m +CONFIG_VIDEO_SAA7134=m +CONFIG_VIDEO_SAA7134_ALSA=m +CONFIG_VIDEO_SAA7134_RC=y +CONFIG_VIDEO_SAA7134_DVB=m +CONFIG_VIDEO_SAA7134_GO7007=m +CONFIG_VIDEO_SAA7164=m +CONFIG_VIDEO_COBALT=m + +# +# Media digital TV PCI Adapters +# +CONFIG_DVB_AV7110_IR=y +CONFIG_DVB_AV7110=m +CONFIG_DVB_AV7110_OSD=y +CONFIG_DVB_BUDGET_CORE=m +CONFIG_DVB_BUDGET=m +CONFIG_DVB_BUDGET_CI=m +CONFIG_DVB_BUDGET_AV=m +CONFIG_DVB_BUDGET_PATCH=m +CONFIG_DVB_B2C2_FLEXCOP_PCI=m +# CONFIG_DVB_B2C2_FLEXCOP_PCI_DEBUG is not set +CONFIG_DVB_PLUTO2=m +CONFIG_DVB_DM1105=m +CONFIG_DVB_PT1=m +CONFIG_DVB_PT3=m +CONFIG_MANTIS_CORE=m +CONFIG_DVB_MANTIS=m +CONFIG_DVB_HOPPER=m +CONFIG_DVB_NGENE=m +CONFIG_DVB_DDBRIDGE=m +# CONFIG_DVB_DDBRIDGE_MSIENABLE is not set +CONFIG_DVB_SMIPCIE=m +CONFIG_DVB_NETUP_UNIDVB=m +CONFIG_V4L_PLATFORM_DRIVERS=y +CONFIG_VIDEO_CAFE_CCIC=m +CONFIG_VIDEO_VIA_CAMERA=m +CONFIG_SOC_CAMERA=m +CONFIG_SOC_CAMERA_PLATFORM=m +CONFIG_V4L_MEM2MEM_DRIVERS=y +CONFIG_VIDEO_MEM2MEM_DEINTERLACE=m +CONFIG_VIDEO_SH_VEU=m +CONFIG_V4L_TEST_DRIVERS=y +# CONFIG_VIDEO_VIMC is not set +# CONFIG_VIDEO_VIVID is not set +# CONFIG_VIDEO_VIM2M is not set +CONFIG_DVB_PLATFORM_DRIVERS=y +CONFIG_CEC_PLATFORM_DRIVERS=y +CONFIG_CEC_GPIO=m +# CONFIG_SDR_PLATFORM_DRIVERS is not set + +# +# Supported MMC/SDIO adapters +# +CONFIG_SMS_SDIO_DRV=m +CONFIG_RADIO_ADAPTERS=y +CONFIG_RADIO_TEA575X=m +CONFIG_RADIO_SI470X=y +CONFIG_USB_SI470X=m +CONFIG_I2C_SI470X=m +CONFIG_RADIO_SI4713=m +CONFIG_USB_SI4713=m +CONFIG_PLATFORM_SI4713=m +CONFIG_I2C_SI4713=m +CONFIG_RADIO_SI476X=m +CONFIG_USB_MR800=m +CONFIG_USB_DSBR=m +CONFIG_RADIO_MAXIRADIO=m +CONFIG_RADIO_SHARK=m +CONFIG_RADIO_SHARK2=m +CONFIG_USB_KEENE=m +CONFIG_USB_RAREMONO=m +CONFIG_USB_MA901=m +CONFIG_RADIO_TEA5764=m +CONFIG_RADIO_SAA7706H=m +CONFIG_RADIO_TEF6862=m +CONFIG_RADIO_WL1273=m + +# +# Texas Instruments WL128x FM driver (ST based) +# +CONFIG_RADIO_WL128X=m + +# +# Supported FireWire (IEEE 1394) Adapters +# +CONFIG_DVB_FIREDTV=m +CONFIG_DVB_FIREDTV_INPUT=y +CONFIG_MEDIA_COMMON_OPTIONS=y + +# +# common driver options +# +CONFIG_VIDEO_CX2341X=m +CONFIG_VIDEO_TVEEPROM=m +CONFIG_CYPRESS_FIRMWARE=m +CONFIG_DVB_B2C2_FLEXCOP=m +CONFIG_VIDEO_SAA7146=m +CONFIG_VIDEO_SAA7146_VV=m +CONFIG_SMS_SIANO_MDTV=m +CONFIG_SMS_SIANO_RC=y +# CONFIG_SMS_SIANO_DEBUGFS is not set + +# +# Media ancillary drivers (tuners, sensors, i2c, spi, frontends) +# +CONFIG_MEDIA_SUBDRV_AUTOSELECT=y +CONFIG_MEDIA_ATTACH=y +CONFIG_VIDEO_IR_I2C=m + +# +# Audio decoders, processors and mixers +# +CONFIG_VIDEO_TVAUDIO=m +CONFIG_VIDEO_TDA7432=m +CONFIG_VIDEO_TDA9840=m +CONFIG_VIDEO_TEA6415C=m +CONFIG_VIDEO_TEA6420=m +CONFIG_VIDEO_MSP3400=m +CONFIG_VIDEO_CS3308=m +CONFIG_VIDEO_CS5345=m +CONFIG_VIDEO_CS53L32A=m +CONFIG_VIDEO_UDA1342=m +CONFIG_VIDEO_WM8775=m +CONFIG_VIDEO_WM8739=m +CONFIG_VIDEO_VP27SMPX=m +CONFIG_VIDEO_SONY_BTF_MPX=m + +# +# RDS decoders +# +CONFIG_VIDEO_SAA6588=m + +# +# Video decoders +# +CONFIG_VIDEO_ADV7604=m +CONFIG_VIDEO_ADV7842=m +CONFIG_VIDEO_BT819=m +CONFIG_VIDEO_BT856=m +CONFIG_VIDEO_BT866=m +CONFIG_VIDEO_KS0127=m +CONFIG_VIDEO_SAA7110=m +CONFIG_VIDEO_SAA711X=m +CONFIG_VIDEO_TVP5150=m +CONFIG_VIDEO_TW2804=m +CONFIG_VIDEO_TW9903=m +CONFIG_VIDEO_TW9906=m +CONFIG_VIDEO_VPX3220=m + +# +# Video and audio decoders +# +CONFIG_VIDEO_SAA717X=m +CONFIG_VIDEO_CX25840=m + +# +# Video encoders +# +CONFIG_VIDEO_SAA7127=m +CONFIG_VIDEO_SAA7185=m +CONFIG_VIDEO_ADV7170=m +CONFIG_VIDEO_ADV7175=m +CONFIG_VIDEO_ADV7511=m + +# +# Camera sensor devices +# +CONFIG_VIDEO_OV2640=m +CONFIG_VIDEO_OV7640=m +CONFIG_VIDEO_OV7670=m +CONFIG_VIDEO_MT9M111=m +CONFIG_VIDEO_MT9V011=m + +# +# Flash devices +# + +# +# Video improvement chips +# +CONFIG_VIDEO_UPD64031A=m +CONFIG_VIDEO_UPD64083=m + +# +# Audio/Video compression chips +# +CONFIG_VIDEO_SAA6752HS=m + +# +# SDR tuner chips +# + +# +# Miscellaneous helper chips +# +CONFIG_VIDEO_M52790=m + +# +# Sensors used on soc_camera driver +# + +# +# soc_camera sensor drivers +# +CONFIG_SOC_CAMERA_IMX074=m +CONFIG_SOC_CAMERA_MT9M001=m +CONFIG_SOC_CAMERA_MT9M111=m +CONFIG_SOC_CAMERA_MT9T031=m +CONFIG_SOC_CAMERA_MT9T112=m +CONFIG_SOC_CAMERA_MT9V022=m +CONFIG_SOC_CAMERA_OV5642=m +CONFIG_SOC_CAMERA_OV772X=m +CONFIG_SOC_CAMERA_OV9640=m +CONFIG_SOC_CAMERA_OV9740=m +CONFIG_SOC_CAMERA_RJ54N1=m +CONFIG_SOC_CAMERA_TW9910=m +CONFIG_MEDIA_TUNER=m +CONFIG_MEDIA_TUNER_SIMPLE=m +CONFIG_MEDIA_TUNER_TDA8290=m +CONFIG_MEDIA_TUNER_TDA827X=m +CONFIG_MEDIA_TUNER_TDA18271=m +CONFIG_MEDIA_TUNER_TDA9887=m +CONFIG_MEDIA_TUNER_TEA5761=m +CONFIG_MEDIA_TUNER_TEA5767=m +CONFIG_MEDIA_TUNER_MSI001=m +CONFIG_MEDIA_TUNER_MT20XX=m +CONFIG_MEDIA_TUNER_MT2060=m +CONFIG_MEDIA_TUNER_MT2063=m +CONFIG_MEDIA_TUNER_MT2266=m +CONFIG_MEDIA_TUNER_MT2131=m +CONFIG_MEDIA_TUNER_QT1010=m +CONFIG_MEDIA_TUNER_XC2028=m +CONFIG_MEDIA_TUNER_XC5000=m +CONFIG_MEDIA_TUNER_XC4000=m +CONFIG_MEDIA_TUNER_MXL5005S=m +CONFIG_MEDIA_TUNER_MXL5007T=m +CONFIG_MEDIA_TUNER_MC44S803=m +CONFIG_MEDIA_TUNER_MAX2165=m +CONFIG_MEDIA_TUNER_TDA18218=m +CONFIG_MEDIA_TUNER_FC0011=m +CONFIG_MEDIA_TUNER_FC0012=m +CONFIG_MEDIA_TUNER_FC0013=m +CONFIG_MEDIA_TUNER_TDA18212=m +CONFIG_MEDIA_TUNER_E4000=m +CONFIG_MEDIA_TUNER_FC2580=m +CONFIG_MEDIA_TUNER_M88RS6000T=m +CONFIG_MEDIA_TUNER_TUA9001=m +CONFIG_MEDIA_TUNER_SI2157=m +CONFIG_MEDIA_TUNER_IT913X=m +CONFIG_MEDIA_TUNER_R820T=m +CONFIG_MEDIA_TUNER_MXL301RF=m +CONFIG_MEDIA_TUNER_QM1D1C0042=m + +# +# Multistandard (satellite) frontends +# +CONFIG_DVB_STB0899=m +CONFIG_DVB_STB6100=m +CONFIG_DVB_STV090x=m +CONFIG_DVB_STV0910=m +CONFIG_DVB_STV6110x=m +CONFIG_DVB_STV6111=m +CONFIG_DVB_MXL5XX=m +CONFIG_DVB_M88DS3103=m + +# +# Multistandard (cable + terrestrial) frontends +# +CONFIG_DVB_DRXK=m +CONFIG_DVB_TDA18271C2DD=m +CONFIG_DVB_SI2165=m +CONFIG_DVB_MN88472=m +CONFIG_DVB_MN88473=m + +# +# DVB-S (satellite) frontends +# +CONFIG_DVB_CX24110=m +CONFIG_DVB_CX24123=m +CONFIG_DVB_MT312=m +CONFIG_DVB_ZL10036=m +CONFIG_DVB_ZL10039=m +CONFIG_DVB_S5H1420=m +CONFIG_DVB_STV0288=m +CONFIG_DVB_STB6000=m +CONFIG_DVB_STV0299=m +CONFIG_DVB_STV6110=m +CONFIG_DVB_STV0900=m +CONFIG_DVB_TDA8083=m +CONFIG_DVB_TDA10086=m +CONFIG_DVB_TDA8261=m +CONFIG_DVB_VES1X93=m +CONFIG_DVB_TUNER_ITD1000=m +CONFIG_DVB_TUNER_CX24113=m +CONFIG_DVB_TDA826X=m +CONFIG_DVB_TUA6100=m +CONFIG_DVB_CX24116=m +CONFIG_DVB_CX24117=m +CONFIG_DVB_CX24120=m +CONFIG_DVB_SI21XX=m +CONFIG_DVB_TS2020=m +CONFIG_DVB_DS3000=m +CONFIG_DVB_MB86A16=m +CONFIG_DVB_TDA10071=m + +# +# DVB-T (terrestrial) frontends +# +CONFIG_DVB_SP8870=m +CONFIG_DVB_SP887X=m +CONFIG_DVB_CX22700=m +CONFIG_DVB_CX22702=m +CONFIG_DVB_DRXD=m +CONFIG_DVB_L64781=m +CONFIG_DVB_TDA1004X=m +CONFIG_DVB_NXT6000=m +CONFIG_DVB_MT352=m +CONFIG_DVB_ZL10353=m +CONFIG_DVB_DIB3000MB=m +CONFIG_DVB_DIB3000MC=m +CONFIG_DVB_DIB7000M=m +CONFIG_DVB_DIB7000P=m +CONFIG_DVB_TDA10048=m +CONFIG_DVB_AF9013=m +CONFIG_DVB_EC100=m +CONFIG_DVB_STV0367=m +CONFIG_DVB_CXD2820R=m +CONFIG_DVB_CXD2841ER=m +CONFIG_DVB_RTL2830=m +CONFIG_DVB_RTL2832=m +CONFIG_DVB_RTL2832_SDR=m +CONFIG_DVB_SI2168=m +CONFIG_DVB_AS102_FE=m +CONFIG_DVB_ZD1301_DEMOD=m +CONFIG_DVB_GP8PSK_FE=m + +# +# DVB-C (cable) frontends +# +CONFIG_DVB_VES1820=m +CONFIG_DVB_TDA10021=m +CONFIG_DVB_TDA10023=m +CONFIG_DVB_STV0297=m + +# +# ATSC (North American/Korean Terrestrial/Cable DTV) frontends +# +CONFIG_DVB_NXT200X=m +CONFIG_DVB_OR51211=m +CONFIG_DVB_OR51132=m +CONFIG_DVB_BCM3510=m +CONFIG_DVB_LGDT330X=m +CONFIG_DVB_LGDT3305=m +CONFIG_DVB_LGDT3306A=m +CONFIG_DVB_LG2160=m +CONFIG_DVB_S5H1409=m +CONFIG_DVB_AU8522=m +CONFIG_DVB_AU8522_DTV=m +CONFIG_DVB_AU8522_V4L=m +CONFIG_DVB_S5H1411=m + +# +# ISDB-T (terrestrial) frontends +# +CONFIG_DVB_S921=m +CONFIG_DVB_DIB8000=m +CONFIG_DVB_MB86A20S=m + +# +# ISDB-S (satellite) & ISDB-T (terrestrial) frontends +# +CONFIG_DVB_TC90522=m + +# +# Digital terrestrial only tuners/PLL +# +CONFIG_DVB_PLL=m +CONFIG_DVB_TUNER_DIB0070=m +CONFIG_DVB_TUNER_DIB0090=m + +# +# SEC control devices for DVB-S +# +CONFIG_DVB_DRX39XYJ=m +CONFIG_DVB_LNBH25=m +CONFIG_DVB_LNBP21=m +CONFIG_DVB_LNBP22=m +CONFIG_DVB_ISL6405=m +CONFIG_DVB_ISL6421=m +CONFIG_DVB_ISL6423=m +CONFIG_DVB_A8293=m +CONFIG_DVB_SP2=m +CONFIG_DVB_LGS8GXX=m +CONFIG_DVB_ATBM8830=m +CONFIG_DVB_TDA665x=m +CONFIG_DVB_IX2505V=m +CONFIG_DVB_M88RS2000=m +CONFIG_DVB_AF9033=m +CONFIG_DVB_HORUS3A=m +CONFIG_DVB_ASCOT2E=m +CONFIG_DVB_HELENE=m + +# +# Tools to develop new frontends +# +# CONFIG_DVB_DUMMY_FE is not set + +# +# Graphics support +# +CONFIG_AGP=y +CONFIG_AGP_AMD64=m +CONFIG_AGP_INTEL=m +CONFIG_AGP_SIS=m +CONFIG_AGP_VIA=m +CONFIG_INTEL_GTT=m +CONFIG_VGA_ARB=y +CONFIG_VGA_ARB_MAX_GPUS=16 +CONFIG_VGA_SWITCHEROO=y +CONFIG_DRM=m +CONFIG_DRM_MIPI_DSI=y +CONFIG_DRM_DP_AUX_CHARDEV=y +# CONFIG_DRM_DEBUG_MM_SELFTEST is not set +CONFIG_DRM_KMS_HELPER=m +CONFIG_DRM_KMS_FB_HELPER=y +CONFIG_DRM_FBDEV_EMULATION=y +CONFIG_DRM_FBDEV_OVERALLOC=100 +CONFIG_DRM_LOAD_EDID_FIRMWARE=y +CONFIG_DRM_TTM=m +CONFIG_DRM_GEM_CMA_HELPER=y +CONFIG_DRM_KMS_CMA_HELPER=y +CONFIG_DRM_VM=y + +# +# I2C encoder or helper chips +# +CONFIG_DRM_I2C_CH7006=m +CONFIG_DRM_I2C_SIL164=m +CONFIG_DRM_I2C_NXP_TDA998X=m +CONFIG_DRM_RADEON=m +# CONFIG_DRM_RADEON_USERPTR is not set +CONFIG_DRM_AMDGPU=m +CONFIG_DRM_AMDGPU_SI=y +CONFIG_DRM_AMDGPU_CIK=y +CONFIG_DRM_AMDGPU_USERPTR=y +# CONFIG_DRM_AMDGPU_GART_DEBUGFS is not set + +# +# ACP (Audio CoProcessor) Configuration +# +CONFIG_DRM_AMD_ACP=y + +# +# Display Engine Configuration +# +CONFIG_DRM_AMD_DC=y +CONFIG_DRM_AMD_DC_PRE_VEGA=y +CONFIG_DRM_AMD_DC_FBC=y +CONFIG_DRM_AMD_DC_DCN1_0=y +# CONFIG_DEBUG_KERNEL_DC is not set + +# +# AMD Library routines +# +CONFIG_CHASH=m +CONFIG_CHASH_STATS=y +# CONFIG_CHASH_SELFTEST is not set +CONFIG_DRM_NOUVEAU=m +CONFIG_NOUVEAU_DEBUG=5 +CONFIG_NOUVEAU_DEBUG_DEFAULT=3 +# CONFIG_NOUVEAU_DEBUG_MMU is not set +CONFIG_DRM_NOUVEAU_BACKLIGHT=y +CONFIG_DRM_I915=m +CONFIG_DRM_I915_ALPHA_SUPPORT=y +CONFIG_DRM_I915_CAPTURE_ERROR=y +CONFIG_DRM_I915_COMPRESS_ERROR=y +CONFIG_DRM_I915_USERPTR=y +CONFIG_DRM_I915_GVT=y +CONFIG_DRM_VGEM=m +CONFIG_DRM_VMWGFX=m +CONFIG_DRM_VMWGFX_FBCON=y +CONFIG_DRM_GMA500=m +CONFIG_DRM_GMA600=y +CONFIG_DRM_GMA3600=y +CONFIG_DRM_UDL=m +CONFIG_DRM_AST=m +CONFIG_DRM_MGAG200=m +CONFIG_DRM_CIRRUS_QEMU=m +CONFIG_DRM_QXL=m +CONFIG_DRM_BOCHS=m +CONFIG_DRM_VIRTIO_GPU=m +CONFIG_DRM_PANEL=y + +# +# Display Panels +# +# CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN is not set +CONFIG_DRM_BRIDGE=y +CONFIG_DRM_PANEL_BRIDGE=y + +# +# Display Interface Bridges +# +CONFIG_DRM_ANALOGIX_ANX78XX=m +CONFIG_HSA_AMD=m +CONFIG_DRM_HISI_HIBMC=m +CONFIG_DRM_TINYDRM=m +CONFIG_TINYDRM_MIPI_DBI=m +CONFIG_TINYDRM_MI0283QT=m +CONFIG_TINYDRM_REPAPER=m +CONFIG_TINYDRM_ST7586=m +# CONFIG_DRM_LEGACY is not set +# CONFIG_DRM_LIB_RANDOM is not set + +# +# Frame buffer Devices +# +CONFIG_FB=y +CONFIG_FIRMWARE_EDID=y +CONFIG_FB_CMDLINE=y +CONFIG_FB_NOTIFY=y +# CONFIG_FB_DDC is not set +CONFIG_FB_BOOT_VESA_SUPPORT=y +CONFIG_FB_CFB_FILLRECT=y +CONFIG_FB_CFB_COPYAREA=y +CONFIG_FB_CFB_IMAGEBLIT=y +# CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set +CONFIG_FB_SYS_FILLRECT=m +CONFIG_FB_SYS_COPYAREA=m +CONFIG_FB_SYS_IMAGEBLIT=m +# CONFIG_FB_PROVIDE_GET_FB_UNMAPPED_AREA is not set +# CONFIG_FB_FOREIGN_ENDIAN is not set +CONFIG_FB_SYS_FOPS=m +CONFIG_FB_DEFERRED_IO=y +# CONFIG_FB_SVGALIB is not set +# CONFIG_FB_MACMODES is not set +CONFIG_FB_BACKLIGHT=y +CONFIG_FB_MODE_HELPERS=y +CONFIG_FB_TILEBLITTING=y + +# +# Frame buffer hardware drivers +# +# CONFIG_FB_CIRRUS is not set +# CONFIG_FB_PM2 is not set +# CONFIG_FB_CYBER2000 is not set +# CONFIG_FB_ARC is not set +# CONFIG_FB_ASILIANT is not set +# CONFIG_FB_IMSTT is not set +CONFIG_FB_VGA16=m +CONFIG_FB_UVESA=m +CONFIG_FB_VESA=y +CONFIG_FB_EFI=y +# CONFIG_FB_N411 is not set +# CONFIG_FB_HGA is not set +CONFIG_FB_OPENCORES=m +# CONFIG_FB_S1D13XXX is not set +# CONFIG_FB_NVIDIA is not set +# CONFIG_FB_RIVA is not set +# CONFIG_FB_I740 is not set +# CONFIG_FB_LE80578 is not set +# CONFIG_FB_MATROX is not set +# CONFIG_FB_RADEON is not set +# CONFIG_FB_ATY128 is not set +# CONFIG_FB_ATY is not set +# CONFIG_FB_S3 is not set +# CONFIG_FB_SAVAGE is not set +# CONFIG_FB_SIS is not set +CONFIG_FB_VIA=m +CONFIG_FB_VIA_DIRECT_PROCFS=y +CONFIG_FB_VIA_X_COMPATIBILITY=y +# CONFIG_FB_NEOMAGIC is not set +# CONFIG_FB_KYRO is not set +# CONFIG_FB_3DFX is not set +CONFIG_FB_VOODOO1=m +# CONFIG_FB_VT8623 is not set +# CONFIG_FB_TRIDENT is not set +# CONFIG_FB_ARK is not set +# CONFIG_FB_PM3 is not set +# CONFIG_FB_CARMINE is not set +# CONFIG_FB_SM501 is not set +# CONFIG_FB_SMSCUFX is not set +CONFIG_FB_UDL=m +CONFIG_FB_IBM_GXT4500=m +CONFIG_FB_VIRTUAL=m +CONFIG_XEN_FBDEV_FRONTEND=m +# CONFIG_FB_METRONOME is not set +# CONFIG_FB_MB862XX is not set +# CONFIG_FB_BROADSHEET is not set +# CONFIG_FB_AUO_K190X is not set +CONFIG_FB_HYPERV=m +# CONFIG_FB_SIMPLE is not set +# CONFIG_FB_SM712 is not set +CONFIG_BACKLIGHT_LCD_SUPPORT=y +CONFIG_LCD_CLASS_DEVICE=m +# CONFIG_LCD_L4F00242T03 is not set +# CONFIG_LCD_LMS283GF05 is not set +# CONFIG_LCD_LTV350QV is not set +# CONFIG_LCD_ILI922X is not set +# CONFIG_LCD_ILI9320 is not set +# CONFIG_LCD_TDO24M is not set +# CONFIG_LCD_VGG2432A4 is not set +CONFIG_LCD_PLATFORM=m +# CONFIG_LCD_S6E63M0 is not set +# CONFIG_LCD_LD9040 is not set +# CONFIG_LCD_AMS369FG06 is not set +# CONFIG_LCD_LMS501KF03 is not set +# CONFIG_LCD_HX8357 is not set +CONFIG_BACKLIGHT_CLASS_DEVICE=y +# CONFIG_BACKLIGHT_GENERIC is not set +CONFIG_BACKLIGHT_LM3533=m +CONFIG_BACKLIGHT_APPLE=m +# CONFIG_BACKLIGHT_PM8941_WLED is not set +# CONFIG_BACKLIGHT_SAHARA is not set +# CONFIG_BACKLIGHT_ADP8860 is not set +# CONFIG_BACKLIGHT_ADP8870 is not set +CONFIG_BACKLIGHT_PCF50633=m +# CONFIG_BACKLIGHT_LM3639 is not set +# CONFIG_BACKLIGHT_GPIO is not set +# CONFIG_BACKLIGHT_LV5207LP is not set +# CONFIG_BACKLIGHT_BD6107 is not set +# CONFIG_BACKLIGHT_ARCXCNN is not set +CONFIG_VGASTATE=m +CONFIG_HDMI=y + +# +# Console display driver support +# +CONFIG_VGA_CONSOLE=y +# CONFIG_VGACON_SOFT_SCROLLBACK is not set +CONFIG_DUMMY_CONSOLE=y +CONFIG_DUMMY_CONSOLE_COLUMNS=80 +CONFIG_DUMMY_CONSOLE_ROWS=25 +CONFIG_FRAMEBUFFER_CONSOLE=y +CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y +CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y +# CONFIG_LOGO is not set +CONFIG_SOUND=m +CONFIG_SOUND_OSS_CORE=y +# CONFIG_SOUND_OSS_CORE_PRECLAIM is not set +CONFIG_SND=m +CONFIG_SND_TIMER=m +CONFIG_SND_PCM=m +CONFIG_SND_PCM_ELD=y +CONFIG_SND_PCM_IEC958=y +CONFIG_SND_DMAENGINE_PCM=m +CONFIG_SND_HWDEP=m +CONFIG_SND_SEQ_DEVICE=m +CONFIG_SND_RAWMIDI=m +CONFIG_SND_COMPRESS_OFFLOAD=m +CONFIG_SND_JACK=y +CONFIG_SND_JACK_INPUT_DEV=y +CONFIG_SND_OSSEMUL=y +CONFIG_SND_MIXER_OSS=m +CONFIG_SND_PCM_OSS=m +CONFIG_SND_PCM_OSS_PLUGINS=y +CONFIG_SND_PCM_TIMER=y +CONFIG_SND_HRTIMER=m +CONFIG_SND_DYNAMIC_MINORS=y +CONFIG_SND_MAX_CARDS=32 +# CONFIG_SND_SUPPORT_OLD_API is not set +CONFIG_SND_PROC_FS=y +CONFIG_SND_VERBOSE_PROCFS=y +# CONFIG_SND_VERBOSE_PRINTK is not set +# CONFIG_SND_DEBUG is not set +CONFIG_SND_VMASTER=y +CONFIG_SND_DMA_SGBUF=y +CONFIG_SND_SEQUENCER=m +CONFIG_SND_SEQ_DUMMY=m +CONFIG_SND_SEQUENCER_OSS=m +CONFIG_SND_SEQ_HRTIMER_DEFAULT=y +CONFIG_SND_SEQ_MIDI_EVENT=m +CONFIG_SND_SEQ_MIDI=m +CONFIG_SND_SEQ_MIDI_EMUL=m +CONFIG_SND_SEQ_VIRMIDI=m +CONFIG_SND_MPU401_UART=m +CONFIG_SND_OPL3_LIB=m +CONFIG_SND_OPL3_LIB_SEQ=m +# CONFIG_SND_OPL4_LIB_SEQ is not set +CONFIG_SND_VX_LIB=m +CONFIG_SND_AC97_CODEC=m +CONFIG_SND_DRIVERS=y +# CONFIG_SND_PCSP is not set +CONFIG_SND_DUMMY=m +CONFIG_SND_ALOOP=m +CONFIG_SND_VIRMIDI=m +CONFIG_SND_MTPAV=m +CONFIG_SND_MTS64=m +CONFIG_SND_SERIAL_U16550=m +CONFIG_SND_MPU401=m +CONFIG_SND_PORTMAN2X4=m +CONFIG_SND_AC97_POWER_SAVE=y +CONFIG_SND_AC97_POWER_SAVE_DEFAULT=0 +CONFIG_SND_SB_COMMON=m +CONFIG_SND_PCI=y +CONFIG_SND_AD1889=m +CONFIG_SND_ALS300=m +CONFIG_SND_ALS4000=m +CONFIG_SND_ALI5451=m +CONFIG_SND_ASIHPI=m +CONFIG_SND_ATIIXP=m +CONFIG_SND_ATIIXP_MODEM=m +CONFIG_SND_AU8810=m +CONFIG_SND_AU8820=m +CONFIG_SND_AU8830=m +CONFIG_SND_AW2=m +CONFIG_SND_AZT3328=m +CONFIG_SND_BT87X=m +# CONFIG_SND_BT87X_OVERCLOCK is not set +CONFIG_SND_CA0106=m +CONFIG_SND_CMIPCI=m +CONFIG_SND_OXYGEN_LIB=m +CONFIG_SND_OXYGEN=m +CONFIG_SND_CS4281=m +CONFIG_SND_CS46XX=m +CONFIG_SND_CS46XX_NEW_DSP=y +CONFIG_SND_CTXFI=m +CONFIG_SND_DARLA20=m +CONFIG_SND_GINA20=m +CONFIG_SND_LAYLA20=m +CONFIG_SND_DARLA24=m +CONFIG_SND_GINA24=m +CONFIG_SND_LAYLA24=m +CONFIG_SND_MONA=m +CONFIG_SND_MIA=m +CONFIG_SND_ECHO3G=m +CONFIG_SND_INDIGO=m +CONFIG_SND_INDIGOIO=m +CONFIG_SND_INDIGODJ=m +CONFIG_SND_INDIGOIOX=m +CONFIG_SND_INDIGODJX=m +CONFIG_SND_EMU10K1=m +CONFIG_SND_EMU10K1_SEQ=m +CONFIG_SND_EMU10K1X=m +CONFIG_SND_ENS1370=m +CONFIG_SND_ENS1371=m +CONFIG_SND_ES1938=m +CONFIG_SND_ES1968=m +CONFIG_SND_ES1968_INPUT=y +CONFIG_SND_ES1968_RADIO=y +CONFIG_SND_FM801=m +CONFIG_SND_FM801_TEA575X_BOOL=y +CONFIG_SND_HDSP=m +CONFIG_SND_HDSPM=m +CONFIG_SND_ICE1712=m +CONFIG_SND_ICE1724=m +CONFIG_SND_INTEL8X0=m +CONFIG_SND_INTEL8X0M=m +CONFIG_SND_KORG1212=m +CONFIG_SND_LOLA=m +CONFIG_SND_LX6464ES=m +CONFIG_SND_MAESTRO3=m +CONFIG_SND_MAESTRO3_INPUT=y +CONFIG_SND_MIXART=m +CONFIG_SND_NM256=m +CONFIG_SND_PCXHR=m +CONFIG_SND_RIPTIDE=m +CONFIG_SND_RME32=m +CONFIG_SND_RME96=m +CONFIG_SND_RME9652=m +CONFIG_SND_SONICVIBES=m +CONFIG_SND_TRIDENT=m +CONFIG_SND_VIA82XX=m +CONFIG_SND_VIA82XX_MODEM=m +CONFIG_SND_VIRTUOSO=m +CONFIG_SND_VX222=m +CONFIG_SND_YMFPCI=m + +# +# HD-Audio +# +CONFIG_SND_HDA=m +CONFIG_SND_HDA_INTEL=m +CONFIG_SND_HDA_HWDEP=y +CONFIG_SND_HDA_RECONFIG=y +CONFIG_SND_HDA_INPUT_BEEP=y +CONFIG_SND_HDA_INPUT_BEEP_MODE=1 +CONFIG_SND_HDA_PATCH_LOADER=y +CONFIG_SND_HDA_CODEC_REALTEK=m +CONFIG_SND_HDA_CODEC_ANALOG=m +CONFIG_SND_HDA_CODEC_SIGMATEL=m +CONFIG_SND_HDA_CODEC_VIA=m +CONFIG_SND_HDA_CODEC_HDMI=m +CONFIG_SND_HDA_CODEC_CIRRUS=m +CONFIG_SND_HDA_CODEC_CONEXANT=m +CONFIG_SND_HDA_CODEC_CA0110=m +CONFIG_SND_HDA_CODEC_CA0132=m +CONFIG_SND_HDA_CODEC_CA0132_DSP=y +CONFIG_SND_HDA_CODEC_CMEDIA=m +CONFIG_SND_HDA_CODEC_SI3054=m +CONFIG_SND_HDA_GENERIC=m +CONFIG_SND_HDA_POWER_SAVE_DEFAULT=0 +CONFIG_SND_HDA_CORE=m +CONFIG_SND_HDA_DSP_LOADER=y +CONFIG_SND_HDA_I915=y +CONFIG_SND_HDA_EXT_CORE=m +CONFIG_SND_HDA_PREALLOC_SIZE=4096 +CONFIG_SND_SPI=y +CONFIG_SND_USB=y +CONFIG_SND_USB_AUDIO=m +CONFIG_SND_USB_UA101=m +CONFIG_SND_USB_USX2Y=m +CONFIG_SND_USB_CAIAQ=m +CONFIG_SND_USB_CAIAQ_INPUT=y +CONFIG_SND_USB_US122L=m +CONFIG_SND_USB_6FIRE=m +CONFIG_SND_USB_HIFACE=m +CONFIG_SND_BCD2000=m +CONFIG_SND_USB_LINE6=m +CONFIG_SND_USB_POD=m +CONFIG_SND_USB_PODHD=m +CONFIG_SND_USB_TONEPORT=m +CONFIG_SND_USB_VARIAX=m +CONFIG_SND_FIREWIRE=y +CONFIG_SND_FIREWIRE_LIB=m +CONFIG_SND_DICE=m +CONFIG_SND_OXFW=m +CONFIG_SND_ISIGHT=m +CONFIG_SND_FIREWORKS=m +CONFIG_SND_BEBOB=m +CONFIG_SND_FIREWIRE_DIGI00X=m +CONFIG_SND_FIREWIRE_TASCAM=m +CONFIG_SND_FIREWIRE_MOTU=m +CONFIG_SND_FIREFACE=m +CONFIG_SND_PCMCIA=y +CONFIG_SND_VXPOCKET=m +CONFIG_SND_PDAUDIOCF=m +CONFIG_SND_SOC=m +CONFIG_SND_SOC_AC97_BUS=y +CONFIG_SND_SOC_GENERIC_DMAENGINE_PCM=y +CONFIG_SND_SOC_COMPRESS=y +CONFIG_SND_SOC_TOPOLOGY=y +CONFIG_SND_SOC_ACPI=m +CONFIG_SND_SOC_AMD_ACP=m +CONFIG_SND_SOC_AMD_CZ_RT5645_MACH=m +CONFIG_SND_ATMEL_SOC=m +CONFIG_SND_DESIGNWARE_I2S=m +CONFIG_SND_DESIGNWARE_PCM=y + +# +# SoC Audio for Freescale CPUs +# + +# +# Common SoC Audio options for Freescale CPUs: +# +# CONFIG_SND_SOC_FSL_ASRC is not set +# CONFIG_SND_SOC_FSL_SAI is not set +# CONFIG_SND_SOC_FSL_SSI is not set +# CONFIG_SND_SOC_FSL_SPDIF is not set +# CONFIG_SND_SOC_FSL_ESAI is not set +# CONFIG_SND_SOC_IMX_AUDMUX is not set +CONFIG_SND_I2S_HI6210_I2S=m +CONFIG_SND_SOC_IMG=y +CONFIG_SND_SOC_IMG_I2S_IN=m +CONFIG_SND_SOC_IMG_I2S_OUT=m +CONFIG_SND_SOC_IMG_PARALLEL_OUT=m +CONFIG_SND_SOC_IMG_SPDIF_IN=m +CONFIG_SND_SOC_IMG_SPDIF_OUT=m +CONFIG_SND_SOC_IMG_PISTACHIO_INTERNAL_DAC=m +CONFIG_SND_SST_IPC=m +CONFIG_SND_SST_IPC_ACPI=m +CONFIG_SND_SOC_INTEL_COMMON=m +CONFIG_SND_SOC_INTEL_SST=m +CONFIG_SND_SOC_INTEL_SST_FIRMWARE=m +CONFIG_SND_SOC_INTEL_SST_ACPI=m +CONFIG_SND_SOC_ACPI_INTEL_MATCH=m +CONFIG_SND_SOC_INTEL_SST_TOPLEVEL=m +CONFIG_SND_SOC_INTEL_HASWELL=m +CONFIG_SND_SOC_INTEL_BAYTRAIL=m +CONFIG_SND_SST_ATOM_HIFI2_PLATFORM=m +CONFIG_SND_SOC_INTEL_SKYLAKE=m +CONFIG_SND_SOC_INTEL_MACH=m +CONFIG_SND_SOC_INTEL_HASWELL_MACH=m +CONFIG_SND_SOC_INTEL_BDW_RT5677_MACH=m +CONFIG_SND_SOC_INTEL_BROADWELL_MACH=m +CONFIG_SND_SOC_INTEL_BYTCR_RT5640_MACH=m +CONFIG_SND_SOC_INTEL_BYTCR_RT5651_MACH=m +CONFIG_SND_SOC_INTEL_CHT_BSW_RT5672_MACH=m +CONFIG_SND_SOC_INTEL_CHT_BSW_RT5645_MACH=m +CONFIG_SND_SOC_INTEL_CHT_BSW_MAX98090_TI_MACH=m +CONFIG_SND_SOC_INTEL_BYT_CHT_DA7213_MACH=m +CONFIG_SND_SOC_INTEL_BYT_CHT_ES8316_MACH=m +CONFIG_SND_SOC_INTEL_BYT_CHT_NOCODEC_MACH=m +CONFIG_SND_SOC_INTEL_SKL_RT286_MACH=m +CONFIG_SND_SOC_INTEL_SKL_NAU88L25_SSM4567_MACH=m +CONFIG_SND_SOC_INTEL_SKL_NAU88L25_MAX98357A_MACH=m +CONFIG_SND_SOC_INTEL_BXT_DA7219_MAX98357A_MACH=m +CONFIG_SND_SOC_INTEL_BXT_RT298_MACH=m +CONFIG_SND_SOC_INTEL_KBL_RT5663_MAX98927_MACH=m +CONFIG_SND_SOC_INTEL_KBL_RT5663_RT5514_MAX98927_MACH=m + +# +# STMicroelectronics STM32 SOC audio support +# +CONFIG_SND_SOC_XTFPGA_I2S=m +CONFIG_ZX_TDM=m +CONFIG_SND_SOC_I2C_AND_SPI=m + +# +# CODEC drivers +# +CONFIG_SND_SOC_AC97_CODEC=m +CONFIG_SND_SOC_ADAU_UTILS=m +CONFIG_SND_SOC_ADAU1701=m +CONFIG_SND_SOC_ADAU17X1=m +CONFIG_SND_SOC_ADAU1761=m +CONFIG_SND_SOC_ADAU1761_I2C=m +CONFIG_SND_SOC_ADAU1761_SPI=m +CONFIG_SND_SOC_ADAU7002=m +CONFIG_SND_SOC_AK4104=m +CONFIG_SND_SOC_AK4554=m +CONFIG_SND_SOC_AK4613=m +CONFIG_SND_SOC_AK4642=m +CONFIG_SND_SOC_AK5386=m +CONFIG_SND_SOC_ALC5623=m +# CONFIG_SND_SOC_BT_SCO is not set +# CONFIG_SND_SOC_CS35L32 is not set +# CONFIG_SND_SOC_CS35L33 is not set +# CONFIG_SND_SOC_CS35L34 is not set +# CONFIG_SND_SOC_CS35L35 is not set +# CONFIG_SND_SOC_CS42L42 is not set +# CONFIG_SND_SOC_CS42L51_I2C is not set +# CONFIG_SND_SOC_CS42L52 is not set +# CONFIG_SND_SOC_CS42L56 is not set +# CONFIG_SND_SOC_CS42L73 is not set +# CONFIG_SND_SOC_CS4265 is not set +# CONFIG_SND_SOC_CS4270 is not set +# CONFIG_SND_SOC_CS4271_I2C is not set +# CONFIG_SND_SOC_CS4271_SPI is not set +# CONFIG_SND_SOC_CS42XX8_I2C is not set +# CONFIG_SND_SOC_CS43130 is not set +# CONFIG_SND_SOC_CS4349 is not set +# CONFIG_SND_SOC_CS53L30 is not set +CONFIG_SND_SOC_DA7213=m +CONFIG_SND_SOC_DA7219=m +# CONFIG_SND_SOC_DIO2125 is not set +CONFIG_SND_SOC_DMIC=m +CONFIG_SND_SOC_HDMI_CODEC=m +# CONFIG_SND_SOC_ES7134 is not set +CONFIG_SND_SOC_ES8316=m +# CONFIG_SND_SOC_ES8328_I2C is not set +# CONFIG_SND_SOC_ES8328_SPI is not set +CONFIG_SND_SOC_GTM601=m +CONFIG_SND_SOC_HDAC_HDMI=m +CONFIG_SND_SOC_INNO_RK3036=m +CONFIG_SND_SOC_MAX98090=m +CONFIG_SND_SOC_MAX98357A=m +CONFIG_SND_SOC_MAX98504=m +CONFIG_SND_SOC_MAX98927=m +# CONFIG_SND_SOC_MAX9860 is not set +# CONFIG_SND_SOC_MSM8916_WCD_ANALOG is not set +# CONFIG_SND_SOC_MSM8916_WCD_DIGITAL is not set +# CONFIG_SND_SOC_PCM1681 is not set +# CONFIG_SND_SOC_PCM179X_I2C is not set +# CONFIG_SND_SOC_PCM179X_SPI is not set +# CONFIG_SND_SOC_PCM3168A_I2C is not set +# CONFIG_SND_SOC_PCM3168A_SPI is not set +# CONFIG_SND_SOC_PCM512x_I2C is not set +# CONFIG_SND_SOC_PCM512x_SPI is not set +CONFIG_SND_SOC_RL6231=m +CONFIG_SND_SOC_RL6347A=m +CONFIG_SND_SOC_RT286=m +CONFIG_SND_SOC_RT298=m +CONFIG_SND_SOC_RT5514=m +CONFIG_SND_SOC_RT5514_SPI=m +# CONFIG_SND_SOC_RT5514_SPI_BUILTIN is not set +CONFIG_SND_SOC_RT5616=m +CONFIG_SND_SOC_RT5631=m +CONFIG_SND_SOC_RT5640=m +CONFIG_SND_SOC_RT5645=m +CONFIG_SND_SOC_RT5651=m +CONFIG_SND_SOC_RT5663=m +CONFIG_SND_SOC_RT5670=m +CONFIG_SND_SOC_RT5677=m +CONFIG_SND_SOC_RT5677_SPI=m +# CONFIG_SND_SOC_SGTL5000 is not set +CONFIG_SND_SOC_SI476X=m +CONFIG_SND_SOC_SIGMADSP=m +CONFIG_SND_SOC_SIGMADSP_I2C=m +CONFIG_SND_SOC_SIGMADSP_REGMAP=m +# CONFIG_SND_SOC_SIRF_AUDIO_CODEC is not set +CONFIG_SND_SOC_SPDIF=m +# CONFIG_SND_SOC_SSM2602_SPI is not set +# CONFIG_SND_SOC_SSM2602_I2C is not set +CONFIG_SND_SOC_SSM4567=m +# CONFIG_SND_SOC_STA32X is not set +# CONFIG_SND_SOC_STA350 is not set +# CONFIG_SND_SOC_STI_SAS is not set +# CONFIG_SND_SOC_TAS2552 is not set +# CONFIG_SND_SOC_TAS5086 is not set +# CONFIG_SND_SOC_TAS571X is not set +# CONFIG_SND_SOC_TAS5720 is not set +# CONFIG_SND_SOC_TFA9879 is not set +# CONFIG_SND_SOC_TLV320AIC23_I2C is not set +# CONFIG_SND_SOC_TLV320AIC23_SPI is not set +# CONFIG_SND_SOC_TLV320AIC31XX is not set +# CONFIG_SND_SOC_TLV320AIC3X is not set +CONFIG_SND_SOC_TS3A227E=m +# CONFIG_SND_SOC_WM8510 is not set +# CONFIG_SND_SOC_WM8523 is not set +# CONFIG_SND_SOC_WM8524 is not set +# CONFIG_SND_SOC_WM8580 is not set +# CONFIG_SND_SOC_WM8711 is not set +# CONFIG_SND_SOC_WM8728 is not set +# CONFIG_SND_SOC_WM8731 is not set +# CONFIG_SND_SOC_WM8737 is not set +# CONFIG_SND_SOC_WM8741 is not set +# CONFIG_SND_SOC_WM8750 is not set +# CONFIG_SND_SOC_WM8753 is not set +# CONFIG_SND_SOC_WM8770 is not set +# CONFIG_SND_SOC_WM8776 is not set +# CONFIG_SND_SOC_WM8804_I2C is not set +# CONFIG_SND_SOC_WM8804_SPI is not set +# CONFIG_SND_SOC_WM8903 is not set +# CONFIG_SND_SOC_WM8960 is not set +# CONFIG_SND_SOC_WM8962 is not set +# CONFIG_SND_SOC_WM8974 is not set +# CONFIG_SND_SOC_WM8978 is not set +# CONFIG_SND_SOC_WM8985 is not set +CONFIG_SND_SOC_ZX_AUD96P22=m +# CONFIG_SND_SOC_NAU8540 is not set +# CONFIG_SND_SOC_NAU8810 is not set +# CONFIG_SND_SOC_NAU8824 is not set +CONFIG_SND_SOC_NAU8825=m +# CONFIG_SND_SOC_TPA6130A2 is not set +CONFIG_SND_SIMPLE_CARD_UTILS=m +CONFIG_SND_SIMPLE_CARD=m +CONFIG_SND_X86=y +# CONFIG_HDMI_LPE_AUDIO is not set +CONFIG_SND_SYNTH_EMUX=m +CONFIG_AC97_BUS=m + +# +# HID support +# +CONFIG_HID=m +CONFIG_HID_BATTERY_STRENGTH=y +CONFIG_HIDRAW=y +CONFIG_UHID=m +CONFIG_HID_GENERIC=m + +# +# Special HID drivers +# +CONFIG_HID_A4TECH=m +CONFIG_HID_ACCUTOUCH=m +CONFIG_HID_ACRUX=m +CONFIG_HID_ACRUX_FF=y +CONFIG_HID_APPLE=m +CONFIG_HID_APPLEIR=m +CONFIG_HID_ASUS=m +CONFIG_HID_AUREAL=m +CONFIG_HID_BELKIN=m +CONFIG_HID_BETOP_FF=m +CONFIG_HID_CHERRY=m +CONFIG_HID_CHICONY=m +CONFIG_HID_CORSAIR=m +CONFIG_HID_PRODIKEYS=m +# CONFIG_HID_CMEDIA is not set +CONFIG_HID_CP2112=m +CONFIG_HID_CYPRESS=m +CONFIG_HID_DRAGONRISE=m +CONFIG_DRAGONRISE_FF=y +CONFIG_HID_EMS_FF=m +CONFIG_HID_ELECOM=m +CONFIG_HID_ELO=m +CONFIG_HID_EZKEY=m +CONFIG_HID_GEMBIRD=m +CONFIG_HID_GFRM=m +CONFIG_HID_HOLTEK=m +CONFIG_HOLTEK_FF=y +CONFIG_HID_GT683R=m +CONFIG_HID_KEYTOUCH=m +CONFIG_HID_KYE=m +CONFIG_HID_UCLOGIC=m +CONFIG_HID_WALTOP=m +CONFIG_HID_GYRATION=m +CONFIG_HID_ICADE=m +CONFIG_HID_ITE=m +CONFIG_HID_TWINHAN=m +CONFIG_HID_KENSINGTON=m +CONFIG_HID_LCPOWER=m +CONFIG_HID_LED=m +CONFIG_HID_LENOVO=m +CONFIG_HID_LOGITECH=m +CONFIG_HID_LOGITECH_DJ=m +CONFIG_HID_LOGITECH_HIDPP=m +CONFIG_LOGITECH_FF=y +CONFIG_LOGIRUMBLEPAD2_FF=y +CONFIG_LOGIG940_FF=y +CONFIG_LOGIWHEELS_FF=y +CONFIG_HID_MAGICMOUSE=m +# CONFIG_HID_MAYFLASH is not set +CONFIG_HID_MICROSOFT=m +CONFIG_HID_MONTEREY=m +CONFIG_HID_MULTITOUCH=m +CONFIG_HID_NTI=m +CONFIG_HID_NTRIG=m +CONFIG_HID_ORTEK=m +CONFIG_HID_PANTHERLORD=m +CONFIG_PANTHERLORD_FF=y +CONFIG_HID_PENMOUNT=m +CONFIG_HID_PETALYNX=m +CONFIG_HID_PICOLCD=m +CONFIG_HID_PICOLCD_FB=y +CONFIG_HID_PICOLCD_BACKLIGHT=y +CONFIG_HID_PICOLCD_LCD=y +CONFIG_HID_PICOLCD_LEDS=y +CONFIG_HID_PICOLCD_CIR=y +CONFIG_HID_PLANTRONICS=m +CONFIG_HID_PRIMAX=m +# CONFIG_HID_RETRODE is not set +CONFIG_HID_ROCCAT=m +CONFIG_HID_SAITEK=m +CONFIG_HID_SAMSUNG=m +CONFIG_HID_SONY=m +CONFIG_SONY_FF=y +CONFIG_HID_SPEEDLINK=m +CONFIG_HID_STEELSERIES=m +CONFIG_HID_SUNPLUS=m +CONFIG_HID_RMI=m +CONFIG_HID_GREENASIA=m +CONFIG_GREENASIA_FF=y +CONFIG_HID_HYPERV_MOUSE=m +CONFIG_HID_SMARTJOYPLUS=m +CONFIG_SMARTJOYPLUS_FF=y +CONFIG_HID_TIVO=m +CONFIG_HID_TOPSEED=m +CONFIG_HID_THINGM=m +CONFIG_HID_THRUSTMASTER=m +CONFIG_THRUSTMASTER_FF=y +# CONFIG_HID_UDRAW_PS3 is not set +CONFIG_HID_WACOM=m +CONFIG_HID_WIIMOTE=m +CONFIG_HID_XINMO=m +CONFIG_HID_ZEROPLUS=m +CONFIG_ZEROPLUS_FF=y +CONFIG_HID_ZYDACRON=m +CONFIG_HID_SENSOR_HUB=m +# CONFIG_HID_SENSOR_CUSTOM_SENSOR is not set +CONFIG_HID_ALPS=m + +# +# USB HID support +# +CONFIG_USB_HID=m +CONFIG_HID_PID=y +CONFIG_USB_HIDDEV=y + +# +# I2C HID support +# +CONFIG_I2C_HID=m + +# +# Intel ISH HID support +# +# CONFIG_INTEL_ISH_HID is not set +CONFIG_USB_OHCI_LITTLE_ENDIAN=y +CONFIG_USB_SUPPORT=y +CONFIG_USB_COMMON=m +CONFIG_USB_ARCH_HAS_HCD=y +CONFIG_USB=m +CONFIG_USB_PCI=y +# CONFIG_USB_ANNOUNCE_NEW_DEVICES is not set + +# +# Miscellaneous USB options +# +CONFIG_USB_DEFAULT_PERSIST=y +CONFIG_USB_DYNAMIC_MINORS=y +# CONFIG_USB_OTG is not set +# CONFIG_USB_OTG_WHITELIST is not set +# CONFIG_USB_LEDS_TRIGGER_USBPORT is not set +CONFIG_USB_MON=m +CONFIG_USB_WUSB=m +CONFIG_USB_WUSB_CBAF=m +# CONFIG_USB_WUSB_CBAF_DEBUG is not set + +# +# USB Host Controller Drivers +# +CONFIG_USB_C67X00_HCD=m +CONFIG_USB_XHCI_HCD=m +CONFIG_USB_XHCI_PCI=m +# CONFIG_USB_XHCI_PLATFORM is not set +CONFIG_USB_EHCI_HCD=m +CONFIG_USB_EHCI_ROOT_HUB_TT=y +CONFIG_USB_EHCI_TT_NEWSCHED=y +CONFIG_USB_EHCI_PCI=m +# CONFIG_USB_EHCI_HCD_PLATFORM is not set +CONFIG_USB_OXU210HP_HCD=m +CONFIG_USB_ISP116X_HCD=m +CONFIG_USB_ISP1362_HCD=m +# CONFIG_USB_FOTG210_HCD is not set +CONFIG_USB_MAX3421_HCD=m +CONFIG_USB_OHCI_HCD=m +CONFIG_USB_OHCI_HCD_PCI=m +# CONFIG_USB_OHCI_HCD_SSB is not set +# CONFIG_USB_OHCI_HCD_PLATFORM is not set +CONFIG_USB_UHCI_HCD=m +CONFIG_USB_U132_HCD=m +CONFIG_USB_SL811_HCD=m +# CONFIG_USB_SL811_HCD_ISO is not set +CONFIG_USB_SL811_CS=m +CONFIG_USB_R8A66597_HCD=m +CONFIG_USB_WHCI_HCD=m +CONFIG_USB_HWA_HCD=m +# CONFIG_USB_HCD_BCMA is not set +# CONFIG_USB_HCD_SSB is not set +# CONFIG_USB_HCD_TEST_MODE is not set + +# +# USB Device Class drivers +# +CONFIG_USB_ACM=m +CONFIG_USB_PRINTER=m +CONFIG_USB_WDM=m +CONFIG_USB_TMC=m + +# +# NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may +# + +# +# also be needed; see USB_STORAGE Help for more info +# +CONFIG_USB_STORAGE=m +# CONFIG_USB_STORAGE_DEBUG is not set +CONFIG_USB_STORAGE_REALTEK=m +CONFIG_REALTEK_AUTOPM=y +CONFIG_USB_STORAGE_DATAFAB=m +CONFIG_USB_STORAGE_FREECOM=m +CONFIG_USB_STORAGE_ISD200=m +CONFIG_USB_STORAGE_USBAT=m +CONFIG_USB_STORAGE_SDDR09=m +CONFIG_USB_STORAGE_SDDR55=m +CONFIG_USB_STORAGE_JUMPSHOT=m +CONFIG_USB_STORAGE_ALAUDA=m +CONFIG_USB_STORAGE_ONETOUCH=m +CONFIG_USB_STORAGE_KARMA=m +CONFIG_USB_STORAGE_CYPRESS_ATACB=m +CONFIG_USB_STORAGE_ENE_UB6250=m +CONFIG_USB_UAS=m + +# +# USB Imaging devices +# +CONFIG_USB_MDC800=m +CONFIG_USB_MICROTEK=m +CONFIG_USBIP_CORE=m +CONFIG_USBIP_VHCI_HCD=m +CONFIG_USBIP_VHCI_HC_PORTS=8 +CONFIG_USBIP_VHCI_NR_HCS=1 +CONFIG_USBIP_HOST=m +CONFIG_USBIP_VUDC=m +# CONFIG_USBIP_DEBUG is not set +CONFIG_USB_MUSB_HDRC=m +# CONFIG_USB_MUSB_HOST is not set +# CONFIG_USB_MUSB_GADGET is not set +CONFIG_USB_MUSB_DUAL_ROLE=y + +# +# Platform Glue Layer +# + +# +# MUSB DMA mode +# +CONFIG_MUSB_PIO_ONLY=y +# CONFIG_USB_DWC3 is not set +# CONFIG_USB_DWC2 is not set +# CONFIG_USB_CHIPIDEA is not set +# CONFIG_USB_ISP1760 is not set + +# +# USB port drivers +# +CONFIG_USB_USS720=m +CONFIG_USB_SERIAL=m +CONFIG_USB_SERIAL_GENERIC=y +CONFIG_USB_SERIAL_SIMPLE=m +CONFIG_USB_SERIAL_AIRCABLE=m +CONFIG_USB_SERIAL_ARK3116=m +CONFIG_USB_SERIAL_BELKIN=m +CONFIG_USB_SERIAL_CH341=m +CONFIG_USB_SERIAL_WHITEHEAT=m +CONFIG_USB_SERIAL_DIGI_ACCELEPORT=m +CONFIG_USB_SERIAL_CP210X=m +CONFIG_USB_SERIAL_CYPRESS_M8=m +CONFIG_USB_SERIAL_EMPEG=m +CONFIG_USB_SERIAL_FTDI_SIO=m +CONFIG_USB_SERIAL_VISOR=m +CONFIG_USB_SERIAL_IPAQ=m +CONFIG_USB_SERIAL_IR=m +CONFIG_USB_SERIAL_EDGEPORT=m +CONFIG_USB_SERIAL_EDGEPORT_TI=m +CONFIG_USB_SERIAL_F81232=m +CONFIG_USB_SERIAL_F8153X=m +CONFIG_USB_SERIAL_GARMIN=m +CONFIG_USB_SERIAL_IPW=m +CONFIG_USB_SERIAL_IUU=m +CONFIG_USB_SERIAL_KEYSPAN_PDA=m +CONFIG_USB_SERIAL_KEYSPAN=m +# CONFIG_USB_SERIAL_KEYSPAN_MPR is not set +# CONFIG_USB_SERIAL_KEYSPAN_USA28 is not set +# CONFIG_USB_SERIAL_KEYSPAN_USA28X is not set +# CONFIG_USB_SERIAL_KEYSPAN_USA28XA is not set +# CONFIG_USB_SERIAL_KEYSPAN_USA28XB is not set +# CONFIG_USB_SERIAL_KEYSPAN_USA19 is not set +# CONFIG_USB_SERIAL_KEYSPAN_USA18X is not set +# CONFIG_USB_SERIAL_KEYSPAN_USA19W is not set +# CONFIG_USB_SERIAL_KEYSPAN_USA19QW is not set +# CONFIG_USB_SERIAL_KEYSPAN_USA19QI is not set +# CONFIG_USB_SERIAL_KEYSPAN_USA49W is not set +# CONFIG_USB_SERIAL_KEYSPAN_USA49WLC is not set +CONFIG_USB_SERIAL_KLSI=m +CONFIG_USB_SERIAL_KOBIL_SCT=m +CONFIG_USB_SERIAL_MCT_U232=m +CONFIG_USB_SERIAL_METRO=m +CONFIG_USB_SERIAL_MOS7720=m +CONFIG_USB_SERIAL_MOS7715_PARPORT=y +CONFIG_USB_SERIAL_MOS7840=m +CONFIG_USB_SERIAL_MXUPORT=m +CONFIG_USB_SERIAL_NAVMAN=m +CONFIG_USB_SERIAL_PL2303=m +CONFIG_USB_SERIAL_OTI6858=m +CONFIG_USB_SERIAL_QCAUX=m +CONFIG_USB_SERIAL_QUALCOMM=m +CONFIG_USB_SERIAL_SPCP8X5=m +CONFIG_USB_SERIAL_SAFE=m +# CONFIG_USB_SERIAL_SAFE_PADDED is not set +CONFIG_USB_SERIAL_SIERRAWIRELESS=m +CONFIG_USB_SERIAL_SYMBOL=m +CONFIG_USB_SERIAL_TI=m +CONFIG_USB_SERIAL_CYBERJACK=m +CONFIG_USB_SERIAL_XIRCOM=m +CONFIG_USB_SERIAL_WWAN=m +CONFIG_USB_SERIAL_OPTION=m +CONFIG_USB_SERIAL_OMNINET=m +CONFIG_USB_SERIAL_OPTICON=m +CONFIG_USB_SERIAL_XSENS_MT=m +CONFIG_USB_SERIAL_WISHBONE=m +CONFIG_USB_SERIAL_SSU100=m +CONFIG_USB_SERIAL_QT2=m +CONFIG_USB_SERIAL_UPD78F0730=m +# CONFIG_USB_SERIAL_DEBUG is not set + +# +# USB Miscellaneous drivers +# +CONFIG_USB_EMI62=m +CONFIG_USB_EMI26=m +CONFIG_USB_ADUTUX=m +CONFIG_USB_SEVSEG=m +CONFIG_USB_RIO500=m +CONFIG_USB_LEGOTOWER=m +CONFIG_USB_LCD=m +CONFIG_USB_CYPRESS_CY7C63=m +CONFIG_USB_CYTHERM=m +CONFIG_USB_IDMOUSE=m +CONFIG_USB_FTDI_ELAN=m +CONFIG_USB_APPLEDISPLAY=m +CONFIG_USB_SISUSBVGA=m +# CONFIG_USB_SISUSBVGA_CON is not set +CONFIG_USB_LD=m +CONFIG_USB_TRANCEVIBRATOR=m +CONFIG_USB_IOWARRIOR=m +CONFIG_USB_TEST=m +# CONFIG_USB_EHSET_TEST_FIXTURE is not set +CONFIG_USB_ISIGHTFW=m +CONFIG_USB_YUREX=m +CONFIG_USB_EZUSB_FX2=m +CONFIG_USB_HUB_USB251XB=m +CONFIG_USB_HSIC_USB3503=m +CONFIG_USB_HSIC_USB4604=m +CONFIG_USB_LINK_LAYER_TEST=m +CONFIG_USB_CHAOSKEY=m +CONFIG_USB_ATM=m +CONFIG_USB_SPEEDTOUCH=m +CONFIG_USB_CXACRU=m +CONFIG_USB_UEAGLEATM=m +CONFIG_USB_XUSBATM=m + +# +# USB Physical Layer drivers +# +CONFIG_USB_PHY=y +CONFIG_NOP_USB_XCEIV=m +# CONFIG_USB_GPIO_VBUS is not set +CONFIG_TAHVO_USB=m +# CONFIG_TAHVO_USB_HOST_BY_DEFAULT is not set +CONFIG_USB_ISP1301=m +CONFIG_USB_GADGET=m +# CONFIG_USB_GADGET_DEBUG is not set +# CONFIG_USB_GADGET_DEBUG_FILES is not set +# CONFIG_USB_GADGET_DEBUG_FS is not set +CONFIG_USB_GADGET_VBUS_DRAW=2 +CONFIG_USB_GADGET_STORAGE_NUM_BUFFERS=2 +CONFIG_U_SERIAL_CONSOLE=y + +# +# USB Peripheral Controller +# +# CONFIG_USB_FOTG210_UDC is not set +CONFIG_USB_GR_UDC=m +CONFIG_USB_R8A66597=m +CONFIG_USB_PXA27X=m +CONFIG_USB_MV_UDC=m +CONFIG_USB_MV_U3D=m +CONFIG_USB_SNP_CORE=m +CONFIG_USB_M66592=m +CONFIG_USB_BDC_UDC=m + +# +# Platform Support +# +CONFIG_USB_BDC_PCI=m +CONFIG_USB_AMD5536UDC=m +CONFIG_USB_NET2272=m +CONFIG_USB_NET2272_DMA=y +CONFIG_USB_NET2280=m +CONFIG_USB_GOKU=m +CONFIG_USB_EG20T=m +CONFIG_USB_DUMMY_HCD=m +CONFIG_USB_LIBCOMPOSITE=m +CONFIG_USB_F_ACM=m +CONFIG_USB_U_SERIAL=m +CONFIG_USB_U_ETHER=m +CONFIG_USB_U_AUDIO=m +CONFIG_USB_F_SERIAL=m +CONFIG_USB_F_OBEX=m +CONFIG_USB_F_NCM=m +CONFIG_USB_F_ECM=m +CONFIG_USB_F_SUBSET=m +CONFIG_USB_F_RNDIS=m +CONFIG_USB_F_MASS_STORAGE=m +CONFIG_USB_F_FS=m +CONFIG_USB_F_UAC2=m +CONFIG_USB_F_UVC=m +CONFIG_USB_F_MIDI=m +CONFIG_USB_F_HID=m +CONFIG_USB_F_PRINTER=m +CONFIG_USB_F_TCM=m +# CONFIG_USB_CONFIGFS is not set +# CONFIG_USB_ZERO is not set +CONFIG_USB_AUDIO=m +# CONFIG_GADGET_UAC1 is not set +CONFIG_USB_ETH=m +CONFIG_USB_ETH_RNDIS=y +# CONFIG_USB_ETH_EEM is not set +CONFIG_USB_G_NCM=m +CONFIG_USB_GADGETFS=m +CONFIG_USB_FUNCTIONFS=m +CONFIG_USB_FUNCTIONFS_ETH=y +CONFIG_USB_FUNCTIONFS_RNDIS=y +CONFIG_USB_FUNCTIONFS_GENERIC=y +CONFIG_USB_MASS_STORAGE=m +CONFIG_USB_GADGET_TARGET=m +CONFIG_USB_G_SERIAL=m +CONFIG_USB_MIDI_GADGET=m +CONFIG_USB_G_PRINTER=m +# CONFIG_USB_CDC_COMPOSITE is not set +# CONFIG_USB_G_NOKIA is not set +# CONFIG_USB_G_ACM_MS is not set +# CONFIG_USB_G_MULTI is not set +CONFIG_USB_G_HID=m +CONFIG_USB_G_DBGP=m +# CONFIG_USB_G_DBGP_PRINTK is not set +CONFIG_USB_G_DBGP_SERIAL=y +CONFIG_USB_G_WEBCAM=m +CONFIG_TYPEC=m +CONFIG_TYPEC_TCPM=m +CONFIG_TYPEC_FUSB302=m +# CONFIG_TYPEC_UCSI is not set +CONFIG_TYPEC_TPS6598X=m +CONFIG_USB_LED_TRIG=y +# CONFIG_USB_ULPI_BUS is not set +CONFIG_UWB=m +CONFIG_UWB_HWA=m +CONFIG_UWB_WHCI=m +CONFIG_UWB_I1480U=m +CONFIG_MMC=m +CONFIG_MMC_BLOCK=m +CONFIG_MMC_BLOCK_MINORS=8 +CONFIG_SDIO_UART=m +# CONFIG_MMC_TEST is not set + +# +# MMC/SD/SDIO Host Controller Drivers +# +# CONFIG_MMC_DEBUG is not set +CONFIG_MMC_SDHCI=m +CONFIG_MMC_SDHCI_PCI=m +CONFIG_MMC_RICOH_MMC=y +CONFIG_MMC_SDHCI_ACPI=m +CONFIG_MMC_SDHCI_PLTFM=m +CONFIG_MMC_WBSD=m +CONFIG_MMC_TIFM_SD=m +CONFIG_MMC_SPI=m +CONFIG_MMC_SDRICOH_CS=m +CONFIG_MMC_CB710=m +CONFIG_MMC_VIA_SDMMC=m +CONFIG_MMC_VUB300=m +CONFIG_MMC_USHC=m +CONFIG_MMC_USDHI6ROL0=m +CONFIG_MMC_REALTEK_PCI=m +CONFIG_MMC_REALTEK_USB=m +CONFIG_MMC_TOSHIBA_PCI=m +CONFIG_MMC_MTK=m +CONFIG_MMC_SDHCI_XENON=m +CONFIG_MEMSTICK=m +# CONFIG_MEMSTICK_DEBUG is not set + +# +# MemoryStick drivers +# +# CONFIG_MEMSTICK_UNSAFE_RESUME is not set +CONFIG_MSPRO_BLOCK=m +CONFIG_MS_BLOCK=m + +# +# MemoryStick Host Controller Drivers +# +CONFIG_MEMSTICK_TIFM_MS=m +CONFIG_MEMSTICK_JMICRON_38X=m +CONFIG_MEMSTICK_R592=m +CONFIG_MEMSTICK_REALTEK_PCI=m +CONFIG_MEMSTICK_REALTEK_USB=m +CONFIG_NEW_LEDS=y +CONFIG_LEDS_CLASS=m +CONFIG_LEDS_CLASS_FLASH=m +# CONFIG_LEDS_BRIGHTNESS_HW_CHANGED is not set + +# +# LED drivers +# +CONFIG_LEDS_APU=m +# CONFIG_LEDS_AS3645A is not set +CONFIG_LEDS_LM3530=m +CONFIG_LEDS_LM3533=m +CONFIG_LEDS_LM3642=m +CONFIG_LEDS_PCA9532=m +# CONFIG_LEDS_PCA9532_GPIO is not set +CONFIG_LEDS_GPIO=m +CONFIG_LEDS_LP3944=m +CONFIG_LEDS_LP3952=m +# CONFIG_LEDS_LP5521 is not set +# CONFIG_LEDS_LP5523 is not set +# CONFIG_LEDS_LP5562 is not set +# CONFIG_LEDS_LP8501 is not set +CONFIG_LEDS_LP8860=m +CONFIG_LEDS_CLEVO_MAIL=m +CONFIG_LEDS_PCA955X=m +# CONFIG_LEDS_PCA955X_GPIO is not set +CONFIG_LEDS_PCA963X=m +CONFIG_LEDS_DAC124S085=m +CONFIG_LEDS_BD2802=m +CONFIG_LEDS_INTEL_SS4200=m +CONFIG_LEDS_LT3593=m +CONFIG_LEDS_MC13783=m +CONFIG_LEDS_TCA6507=m +CONFIG_LEDS_TLC591XX=m +CONFIG_LEDS_LM355x=m + +# +# LED driver for blink(1) USB RGB LED is under Special HID drivers (HID_THINGM) +# +CONFIG_LEDS_BLINKM=m +CONFIG_LEDS_MLXCPLD=m +CONFIG_LEDS_USER=m +CONFIG_LEDS_NIC78BX=m + +# +# LED Triggers +# +CONFIG_LEDS_TRIGGERS=y +CONFIG_LEDS_TRIGGER_TIMER=m +CONFIG_LEDS_TRIGGER_ONESHOT=m +CONFIG_LEDS_TRIGGER_DISK=y +# CONFIG_LEDS_TRIGGER_MTD is not set +CONFIG_LEDS_TRIGGER_HEARTBEAT=m +CONFIG_LEDS_TRIGGER_BACKLIGHT=m +CONFIG_LEDS_TRIGGER_CPU=y +CONFIG_LEDS_TRIGGER_ACTIVITY=m +CONFIG_LEDS_TRIGGER_GPIO=m +CONFIG_LEDS_TRIGGER_DEFAULT_ON=m + +# +# iptables trigger is under Netfilter config (LED target) +# +CONFIG_LEDS_TRIGGER_TRANSIENT=m +CONFIG_LEDS_TRIGGER_CAMERA=m +CONFIG_LEDS_TRIGGER_PANIC=y +CONFIG_ACCESSIBILITY=y +CONFIG_A11Y_BRAILLE_CONSOLE=y +CONFIG_INFINIBAND=m +CONFIG_INFINIBAND_USER_MAD=m +CONFIG_INFINIBAND_USER_ACCESS=m +# CONFIG_INFINIBAND_EXP_USER_ACCESS is not set +CONFIG_INFINIBAND_USER_MEM=y +CONFIG_INFINIBAND_ON_DEMAND_PAGING=y +CONFIG_INFINIBAND_ADDR_TRANS=y +CONFIG_INFINIBAND_ADDR_TRANS_CONFIGFS=y +CONFIG_INFINIBAND_MTHCA=m +CONFIG_INFINIBAND_MTHCA_DEBUG=y +CONFIG_INFINIBAND_QIB=m +# CONFIG_INFINIBAND_QIB_DCA is not set +CONFIG_INFINIBAND_CXGB3=m +# CONFIG_INFINIBAND_CXGB3_DEBUG is not set +CONFIG_INFINIBAND_CXGB4=m +# CONFIG_INFINIBAND_I40IW is not set +CONFIG_MLX4_INFINIBAND=m +CONFIG_MLX5_INFINIBAND=m +CONFIG_INFINIBAND_NES=m +# CONFIG_INFINIBAND_NES_DEBUG is not set +CONFIG_INFINIBAND_OCRDMA=m +CONFIG_INFINIBAND_VMWARE_PVRDMA=m +CONFIG_INFINIBAND_USNIC=m +CONFIG_INFINIBAND_IPOIB=m +CONFIG_INFINIBAND_IPOIB_CM=y +CONFIG_INFINIBAND_IPOIB_DEBUG=y +# CONFIG_INFINIBAND_IPOIB_DEBUG_DATA is not set +CONFIG_INFINIBAND_SRP=m +CONFIG_INFINIBAND_SRPT=m +CONFIG_INFINIBAND_ISER=m +CONFIG_INFINIBAND_ISERT=m +CONFIG_INFINIBAND_OPA_VNIC=m +CONFIG_INFINIBAND_RDMAVT=m +CONFIG_RDMA_RXE=m +CONFIG_INFINIBAND_HFI1=m +# CONFIG_HFI1_DEBUG_SDMA_ORDER is not set +# CONFIG_SDMA_VERBOSITY is not set +CONFIG_INFINIBAND_QEDR=m +CONFIG_EDAC_ATOMIC_SCRUB=y +CONFIG_EDAC_SUPPORT=y +CONFIG_EDAC=y +CONFIG_EDAC_LEGACY_SYSFS=y +# CONFIG_EDAC_DEBUG is not set +CONFIG_EDAC_DECODE_MCE=m +CONFIG_EDAC_GHES=y +CONFIG_EDAC_AMD64=m +# CONFIG_EDAC_AMD64_ERROR_INJECTION is not set +CONFIG_EDAC_E752X=m +CONFIG_EDAC_I82975X=m +CONFIG_EDAC_I3000=m +CONFIG_EDAC_I3200=m +CONFIG_EDAC_IE31200=m +CONFIG_EDAC_X38=m +CONFIG_EDAC_I5400=m +CONFIG_EDAC_I7CORE=m +CONFIG_EDAC_I5000=m +CONFIG_EDAC_I5100=m +CONFIG_EDAC_I7300=m +CONFIG_EDAC_SBRIDGE=m +CONFIG_EDAC_SKX=m +CONFIG_EDAC_PND2=m +CONFIG_RTC_LIB=y +CONFIG_RTC_MC146818_LIB=y +CONFIG_RTC_CLASS=y +CONFIG_RTC_HCTOSYS=y +CONFIG_RTC_HCTOSYS_DEVICE="rtc0" +CONFIG_RTC_SYSTOHC=y +CONFIG_RTC_SYSTOHC_DEVICE="rtc0" +# CONFIG_RTC_DEBUG is not set +CONFIG_RTC_NVMEM=y + +# +# RTC interfaces +# +CONFIG_RTC_INTF_SYSFS=y +CONFIG_RTC_INTF_PROC=y +CONFIG_RTC_INTF_DEV=y +CONFIG_RTC_INTF_DEV_UIE_EMUL=y +CONFIG_RTC_DRV_TEST=m + +# +# I2C RTC drivers +# +CONFIG_RTC_DRV_ABB5ZES3=m +CONFIG_RTC_DRV_ABX80X=m +CONFIG_RTC_DRV_DS1307=m +CONFIG_RTC_DRV_DS1307_HWMON=y +CONFIG_RTC_DRV_DS1307_CENTURY=y +CONFIG_RTC_DRV_DS1374=m +CONFIG_RTC_DRV_DS1374_WDT=y +CONFIG_RTC_DRV_DS1672=m +CONFIG_RTC_DRV_MAX6900=m +CONFIG_RTC_DRV_RS5C372=m +CONFIG_RTC_DRV_ISL1208=m +CONFIG_RTC_DRV_ISL12022=m +CONFIG_RTC_DRV_X1205=m +CONFIG_RTC_DRV_PCF8523=m +CONFIG_RTC_DRV_PCF85063=m +CONFIG_RTC_DRV_PCF85363=m +CONFIG_RTC_DRV_PCF8563=m +CONFIG_RTC_DRV_PCF8583=m +CONFIG_RTC_DRV_M41T80=m +CONFIG_RTC_DRV_M41T80_WDT=y +CONFIG_RTC_DRV_BQ32K=m +CONFIG_RTC_DRV_S35390A=m +CONFIG_RTC_DRV_FM3130=m +CONFIG_RTC_DRV_RX8010=m +CONFIG_RTC_DRV_RX8581=m +CONFIG_RTC_DRV_RX8025=m +CONFIG_RTC_DRV_EM3027=m +CONFIG_RTC_DRV_RV8803=m + +# +# SPI RTC drivers +# +CONFIG_RTC_DRV_M41T93=m +CONFIG_RTC_DRV_M41T94=m +CONFIG_RTC_DRV_DS1302=m +CONFIG_RTC_DRV_DS1305=m +CONFIG_RTC_DRV_DS1343=m +CONFIG_RTC_DRV_DS1347=m +CONFIG_RTC_DRV_DS1390=m +CONFIG_RTC_DRV_MAX6916=m +CONFIG_RTC_DRV_R9701=m +CONFIG_RTC_DRV_RX4581=m +CONFIG_RTC_DRV_RX6110=m +CONFIG_RTC_DRV_RS5C348=m +CONFIG_RTC_DRV_MAX6902=m +CONFIG_RTC_DRV_PCF2123=m +CONFIG_RTC_DRV_MCP795=m +CONFIG_RTC_I2C_AND_SPI=y + +# +# SPI and I2C RTC drivers +# +CONFIG_RTC_DRV_DS3232=m +CONFIG_RTC_DRV_DS3232_HWMON=y +CONFIG_RTC_DRV_PCF2127=m +CONFIG_RTC_DRV_RV3029C2=m +CONFIG_RTC_DRV_RV3029_HWMON=y + +# +# Platform RTC drivers +# +CONFIG_RTC_DRV_CMOS=y +CONFIG_RTC_DRV_DS1286=m +CONFIG_RTC_DRV_DS1511=m +CONFIG_RTC_DRV_DS1553=m +CONFIG_RTC_DRV_DS1685_FAMILY=m +CONFIG_RTC_DRV_DS1685=y +# CONFIG_RTC_DRV_DS1689 is not set +# CONFIG_RTC_DRV_DS17285 is not set +# CONFIG_RTC_DRV_DS17485 is not set +# CONFIG_RTC_DRV_DS17885 is not set +CONFIG_RTC_DS1685_PROC_REGS=y +CONFIG_RTC_DS1685_SYSFS_REGS=y +CONFIG_RTC_DRV_DS1742=m +CONFIG_RTC_DRV_DS2404=m +CONFIG_RTC_DRV_STK17TA8=m +CONFIG_RTC_DRV_M48T86=m +CONFIG_RTC_DRV_M48T35=m +CONFIG_RTC_DRV_M48T59=m +CONFIG_RTC_DRV_MSM6242=m +CONFIG_RTC_DRV_BQ4802=m +CONFIG_RTC_DRV_RP5C01=m +CONFIG_RTC_DRV_V3020=m +CONFIG_RTC_DRV_PCF50633=m + +# +# on-CPU RTC drivers +# +CONFIG_RTC_DRV_FTRTC010=m +CONFIG_RTC_DRV_MC13XXX=m + +# +# HID Sensor RTC drivers +# +CONFIG_RTC_DRV_HID_SENSOR_TIME=m +CONFIG_DMADEVICES=y +# CONFIG_DMADEVICES_DEBUG is not set + +# +# DMA Devices +# +CONFIG_DMA_ENGINE=y +CONFIG_DMA_VIRTUAL_CHANNELS=y +CONFIG_DMA_ACPI=y +CONFIG_ALTERA_MSGDMA=m +CONFIG_INTEL_IDMA64=m +CONFIG_INTEL_IOATDMA=m +CONFIG_INTEL_MIC_X100_DMA=m +# CONFIG_QCOM_HIDMA_MGMT is not set +# CONFIG_QCOM_HIDMA is not set +CONFIG_DW_DMAC_CORE=y +CONFIG_DW_DMAC=y +CONFIG_DW_DMAC_PCI=y +CONFIG_HSU_DMA=y + +# +# DMA Clients +# +CONFIG_ASYNC_TX_DMA=y +# CONFIG_DMATEST is not set +CONFIG_DMA_ENGINE_RAID=y + +# +# DMABUF options +# +CONFIG_SYNC_FILE=y +# CONFIG_SW_SYNC is not set +CONFIG_DCA=m +CONFIG_AUXDISPLAY=y +CONFIG_CHARLCD=m +CONFIG_HD44780=m +CONFIG_KS0108=m +CONFIG_KS0108_PORT=0x378 +CONFIG_KS0108_DELAY=2 +CONFIG_CFAG12864B=m +CONFIG_CFAG12864B_RATE=20 +CONFIG_IMG_ASCII_LCD=m +# CONFIG_PANEL is not set +CONFIG_UIO=m +CONFIG_UIO_CIF=m +CONFIG_UIO_PDRV_GENIRQ=m +# CONFIG_UIO_DMEM_GENIRQ is not set +CONFIG_UIO_AEC=m +CONFIG_UIO_SERCOS3=m +CONFIG_UIO_PCI_GENERIC=m +CONFIG_UIO_NETX=m +CONFIG_UIO_PRUSS=m +# CONFIG_UIO_MF624 is not set +# CONFIG_UIO_HV_GENERIC is not set +CONFIG_VFIO_IOMMU_TYPE1=m +CONFIG_VFIO_VIRQFD=m +CONFIG_VFIO=m +CONFIG_VFIO_NOIOMMU=y +CONFIG_VFIO_PCI=m +CONFIG_VFIO_PCI_VGA=y +CONFIG_VFIO_PCI_MMAP=y +CONFIG_VFIO_PCI_INTX=y +CONFIG_VFIO_PCI_IGD=y +# CONFIG_VFIO_MDEV is not set +CONFIG_IRQ_BYPASS_MANAGER=m +CONFIG_VIRT_DRIVERS=y +CONFIG_VIRTIO=m + +# +# Virtio drivers +# +CONFIG_VIRTIO_PCI=m +CONFIG_VIRTIO_PCI_LEGACY=y +CONFIG_VIRTIO_BALLOON=m +CONFIG_VIRTIO_INPUT=m +CONFIG_VIRTIO_MMIO=m +CONFIG_VIRTIO_MMIO_CMDLINE_DEVICES=y + +# +# Microsoft Hyper-V guest support +# +CONFIG_HYPERV=m +CONFIG_HYPERV_TSCPAGE=y +CONFIG_HYPERV_UTILS=m +CONFIG_HYPERV_BALLOON=m + +# +# Xen driver support +# +CONFIG_XEN_BALLOON=y +# CONFIG_XEN_SELFBALLOONING is not set +CONFIG_XEN_BALLOON_MEMORY_HOTPLUG=y +CONFIG_XEN_BALLOON_MEMORY_HOTPLUG_LIMIT=512 +CONFIG_XEN_SCRUB_PAGES=y +CONFIG_XEN_DEV_EVTCHN=m +CONFIG_XEN_BACKEND=y +CONFIG_XENFS=m +CONFIG_XEN_COMPAT_XENFS=y +CONFIG_XEN_SYS_HYPERVISOR=y +CONFIG_XEN_XENBUS_FRONTEND=y +CONFIG_XEN_GNTDEV=m +CONFIG_XEN_GRANT_DEV_ALLOC=m +CONFIG_SWIOTLB_XEN=y +CONFIG_XEN_TMEM=m +CONFIG_XEN_PCIDEV_BACKEND=m +CONFIG_XEN_PVCALLS_FRONTEND=m +# CONFIG_XEN_PVCALLS_BACKEND is not set +# CONFIG_XEN_SCSI_BACKEND is not set +CONFIG_XEN_PRIVCMD=m +CONFIG_XEN_ACPI_PROCESSOR=m +# CONFIG_XEN_MCE_LOG is not set +CONFIG_XEN_HAVE_PVMMU=y +CONFIG_XEN_EFI=y +CONFIG_XEN_AUTO_XLATE=y +CONFIG_XEN_ACPI=y +CONFIG_XEN_SYMS=y +CONFIG_XEN_HAVE_VPMU=y +CONFIG_STAGING=y +CONFIG_IRDA=m + +# +# IrDA protocols +# +CONFIG_IRLAN=m +CONFIG_IRNET=m +CONFIG_IRCOMM=m +CONFIG_IRDA_ULTRA=y + +# +# IrDA options +# +CONFIG_IRDA_CACHE_LAST_LSAP=y +CONFIG_IRDA_FAST_RR=y +# CONFIG_IRDA_DEBUG is not set + +# +# Infrared-port device drivers +# + +# +# SIR device drivers +# +CONFIG_IRTTY_SIR=m + +# +# Dongle support +# +CONFIG_DONGLE=y +CONFIG_ESI_DONGLE=m +CONFIG_ACTISYS_DONGLE=m +CONFIG_TEKRAM_DONGLE=m +CONFIG_TOIM3232_DONGLE=m +CONFIG_LITELINK_DONGLE=m +CONFIG_MA600_DONGLE=m +CONFIG_GIRBIL_DONGLE=m +CONFIG_MCP2120_DONGLE=m +CONFIG_OLD_BELKIN_DONGLE=m +CONFIG_ACT200L_DONGLE=m +CONFIG_KINGSUN_DONGLE=m +CONFIG_KSDAZZLE_DONGLE=m +CONFIG_KS959_DONGLE=m + +# +# FIR device drivers +# +CONFIG_USB_IRDA=m +CONFIG_SIGMATEL_FIR=m +CONFIG_NSC_FIR=m +CONFIG_WINBOND_FIR=m +CONFIG_SMC_IRCC_FIR=m +CONFIG_ALI_FIR=m +CONFIG_VLSI_FIR=m +CONFIG_VIA_FIR=m +CONFIG_MCS_FIR=m +CONFIG_PRISM2_USB=m +CONFIG_COMEDI=m +# CONFIG_COMEDI_DEBUG is not set +CONFIG_COMEDI_DEFAULT_BUF_SIZE_KB=2048 +CONFIG_COMEDI_DEFAULT_BUF_MAXSIZE_KB=20480 +CONFIG_COMEDI_MISC_DRIVERS=y +CONFIG_COMEDI_BOND=m +CONFIG_COMEDI_TEST=m +CONFIG_COMEDI_PARPORT=m +CONFIG_COMEDI_SERIAL2002=m +# CONFIG_COMEDI_ISA_DRIVERS is not set +CONFIG_COMEDI_PCI_DRIVERS=m +CONFIG_COMEDI_8255_PCI=m +CONFIG_COMEDI_ADDI_WATCHDOG=m +CONFIG_COMEDI_ADDI_APCI_1032=m +CONFIG_COMEDI_ADDI_APCI_1500=m +CONFIG_COMEDI_ADDI_APCI_1516=m +CONFIG_COMEDI_ADDI_APCI_1564=m +CONFIG_COMEDI_ADDI_APCI_16XX=m +CONFIG_COMEDI_ADDI_APCI_2032=m +CONFIG_COMEDI_ADDI_APCI_2200=m +CONFIG_COMEDI_ADDI_APCI_3120=m +CONFIG_COMEDI_ADDI_APCI_3501=m +CONFIG_COMEDI_ADDI_APCI_3XXX=m +CONFIG_COMEDI_ADL_PCI6208=m +CONFIG_COMEDI_ADL_PCI7X3X=m +CONFIG_COMEDI_ADL_PCI8164=m +CONFIG_COMEDI_ADL_PCI9111=m +CONFIG_COMEDI_ADL_PCI9118=m +CONFIG_COMEDI_ADV_PCI1710=m +CONFIG_COMEDI_ADV_PCI1720=m +CONFIG_COMEDI_ADV_PCI1723=m +CONFIG_COMEDI_ADV_PCI1724=m +CONFIG_COMEDI_ADV_PCI1760=m +CONFIG_COMEDI_ADV_PCI_DIO=m +CONFIG_COMEDI_AMPLC_DIO200_PCI=m +CONFIG_COMEDI_AMPLC_PC236_PCI=m +CONFIG_COMEDI_AMPLC_PC263_PCI=m +CONFIG_COMEDI_AMPLC_PCI224=m +CONFIG_COMEDI_AMPLC_PCI230=m +CONFIG_COMEDI_CONTEC_PCI_DIO=m +CONFIG_COMEDI_DAS08_PCI=m +CONFIG_COMEDI_DT3000=m +CONFIG_COMEDI_DYNA_PCI10XX=m +CONFIG_COMEDI_GSC_HPDI=m +CONFIG_COMEDI_MF6X4=m +CONFIG_COMEDI_ICP_MULTI=m +CONFIG_COMEDI_DAQBOARD2000=m +CONFIG_COMEDI_JR3_PCI=m +CONFIG_COMEDI_KE_COUNTER=m +CONFIG_COMEDI_CB_PCIDAS64=m +CONFIG_COMEDI_CB_PCIDAS=m +CONFIG_COMEDI_CB_PCIDDA=m +CONFIG_COMEDI_CB_PCIMDAS=m +CONFIG_COMEDI_CB_PCIMDDA=m +CONFIG_COMEDI_ME4000=m +CONFIG_COMEDI_ME_DAQ=m +CONFIG_COMEDI_NI_6527=m +CONFIG_COMEDI_NI_65XX=m +CONFIG_COMEDI_NI_660X=m +CONFIG_COMEDI_NI_670X=m +CONFIG_COMEDI_NI_LABPC_PCI=m +CONFIG_COMEDI_NI_PCIDIO=m +CONFIG_COMEDI_NI_PCIMIO=m +CONFIG_COMEDI_RTD520=m +CONFIG_COMEDI_S626=m +CONFIG_COMEDI_MITE=m +CONFIG_COMEDI_NI_TIOCMD=m +CONFIG_COMEDI_PCMCIA_DRIVERS=m +CONFIG_COMEDI_CB_DAS16_CS=m +CONFIG_COMEDI_DAS08_CS=m +CONFIG_COMEDI_NI_DAQ_700_CS=m +CONFIG_COMEDI_NI_DAQ_DIO24_CS=m +CONFIG_COMEDI_NI_LABPC_CS=m +CONFIG_COMEDI_NI_MIO_CS=m +CONFIG_COMEDI_QUATECH_DAQP_CS=m +CONFIG_COMEDI_USB_DRIVERS=m +CONFIG_COMEDI_DT9812=m +CONFIG_COMEDI_NI_USB6501=m +CONFIG_COMEDI_USBDUX=m +CONFIG_COMEDI_USBDUXFAST=m +CONFIG_COMEDI_USBDUXSIGMA=m +CONFIG_COMEDI_VMK80XX=m +CONFIG_COMEDI_8254=m +CONFIG_COMEDI_8255=m +CONFIG_COMEDI_8255_SA=m +CONFIG_COMEDI_KCOMEDILIB=m +CONFIG_COMEDI_AMPLC_DIO200=m +CONFIG_COMEDI_AMPLC_PC236=m +CONFIG_COMEDI_DAS08=m +CONFIG_COMEDI_NI_LABPC=m +CONFIG_COMEDI_NI_TIO=m +CONFIG_RTL8192U=m +CONFIG_RTLLIB=m +CONFIG_RTLLIB_CRYPTO_CCMP=m +CONFIG_RTLLIB_CRYPTO_TKIP=m +CONFIG_RTLLIB_CRYPTO_WEP=m +CONFIG_RTL8192E=m +CONFIG_RTL8723BS=m +CONFIG_R8712U=m +CONFIG_R8188EU=m +CONFIG_88EU_AP_MODE=y +CONFIG_R8822BE=m +CONFIG_RTLHALMAC_ST=m +CONFIG_RTLPHYDM_ST=m +CONFIG_RTLWIFI_DEBUG_ST=y +CONFIG_RTS5208=m +CONFIG_VT6655=m +CONFIG_VT6656=m + +# +# IIO staging drivers +# + +# +# Accelerometers +# +# CONFIG_ADIS16201 is not set +# CONFIG_ADIS16203 is not set +# CONFIG_ADIS16209 is not set +# CONFIG_ADIS16240 is not set + +# +# Analog to digital converters +# +# CONFIG_AD7606 is not set +# CONFIG_AD7780 is not set +# CONFIG_AD7816 is not set +# CONFIG_AD7192 is not set +# CONFIG_AD7280 is not set + +# +# Analog digital bi-direction converters +# +# CONFIG_ADT7316 is not set + +# +# Capacitance to digital converters +# +# CONFIG_AD7150 is not set +# CONFIG_AD7152 is not set +# CONFIG_AD7746 is not set + +# +# Direct Digital Synthesis +# +# CONFIG_AD9832 is not set +# CONFIG_AD9834 is not set + +# +# Digital gyroscope sensors +# +# CONFIG_ADIS16060 is not set + +# +# Network Analyzer, Impedance Converters +# +# CONFIG_AD5933 is not set + +# +# Light sensors +# +# CONFIG_TSL2x7x is not set + +# +# Active energy metering IC +# +# CONFIG_ADE7753 is not set +# CONFIG_ADE7754 is not set +# CONFIG_ADE7758 is not set +# CONFIG_ADE7759 is not set +# CONFIG_ADE7854 is not set + +# +# Resolver to digital converters +# +# CONFIG_AD2S90 is not set +# CONFIG_AD2S1200 is not set +# CONFIG_AD2S1210 is not set + +# +# Triggers - standalone +# +# CONFIG_FB_SM750 is not set +CONFIG_FB_XGI=m + +# +# Speakup console speech +# +CONFIG_SPEAKUP=m +CONFIG_SPEAKUP_SYNTH_ACNTSA=m +CONFIG_SPEAKUP_SYNTH_APOLLO=m +CONFIG_SPEAKUP_SYNTH_AUDPTR=m +CONFIG_SPEAKUP_SYNTH_BNS=m +CONFIG_SPEAKUP_SYNTH_DECTLK=m +CONFIG_SPEAKUP_SYNTH_DECEXT=m +CONFIG_SPEAKUP_SYNTH_LTLK=m +CONFIG_SPEAKUP_SYNTH_SOFT=m +CONFIG_SPEAKUP_SYNTH_SPKOUT=m +CONFIG_SPEAKUP_SYNTH_TXPRT=m +CONFIG_SPEAKUP_SYNTH_DUMMY=m +CONFIG_STAGING_MEDIA=y +CONFIG_INTEL_ATOMISP=y +# CONFIG_VIDEO_ATOMISP is not set +# CONFIG_VIDEO_ATOMISP_OV5693 is not set +# CONFIG_VIDEO_ATOMISP_OV2722 is not set +# CONFIG_VIDEO_ATOMISP_GC2235 is not set +# CONFIG_VIDEO_ATOMISP_MSRLIST_HELPER is not set +# CONFIG_VIDEO_ATOMISP_MT9M114 is not set +# CONFIG_VIDEO_ATOMISP_GC0310 is not set +# CONFIG_VIDEO_ATOMISP_OV2680 is not set +# CONFIG_VIDEO_ATOMISP_LM3554 is not set +CONFIG_I2C_BCM2048=m +CONFIG_DVB_CXD2099=m +CONFIG_LIRC_STAGING=y +CONFIG_LIRC_ZILOG=m + +# +# Android +# +CONFIG_LTE_GDM724X=m +CONFIG_FIREWIRE_SERIAL=m +CONFIG_FWTTY_MAX_TOTAL_PORTS=64 +CONFIG_FWTTY_MAX_CARD_PORTS=32 +CONFIG_LNET=m +CONFIG_LNET_MAX_PAYLOAD=1048576 +CONFIG_LNET_SELFTEST=m +CONFIG_LNET_XPRT_IB=m +CONFIG_LUSTRE_FS=m +# CONFIG_LUSTRE_DEBUG_EXPENSIVE_CHECK is not set +CONFIG_DGNC=m +CONFIG_GS_FPGABOOT=m +CONFIG_CRYPTO_SKEIN=y +# CONFIG_UNISYSSPAR is not set +# CONFIG_FB_TFT is not set +CONFIG_WILC1000=m +CONFIG_WILC1000_SDIO=m +# CONFIG_WILC1000_SPI is not set +# CONFIG_WILC1000_HW_OOB_INTR is not set +# CONFIG_MOST is not set +# CONFIG_KS7010 is not set +# CONFIG_GREYBUS is not set + +# +# USB Power Delivery and Type-C drivers +# +CONFIG_TYPEC_TCPCI=m +# CONFIG_DRM_VBOXVIDEO is not set +# CONFIG_PI433 is not set +CONFIG_X86_PLATFORM_DEVICES=y +CONFIG_ACER_WMI=m +CONFIG_ACERHDF=m +CONFIG_ALIENWARE_WMI=m +CONFIG_ASUS_LAPTOP=m +CONFIG_DELL_SMBIOS=m +CONFIG_DELL_SMBIOS_WMI=m +CONFIG_DELL_SMBIOS_SMM=m +CONFIG_DELL_LAPTOP=m +CONFIG_DELL_WMI=m +CONFIG_DELL_WMI_DESCRIPTOR=m +CONFIG_DELL_WMI_AIO=m +CONFIG_DELL_WMI_LED=m +CONFIG_DELL_SMO8800=m +CONFIG_DELL_RBTN=m +CONFIG_FUJITSU_LAPTOP=m +CONFIG_FUJITSU_TABLET=m +CONFIG_AMILO_RFKILL=m +CONFIG_HP_ACCEL=m +CONFIG_HP_WIRELESS=m +CONFIG_HP_WMI=m +CONFIG_MSI_LAPTOP=m +CONFIG_PANASONIC_LAPTOP=m +CONFIG_COMPAL_LAPTOP=m +CONFIG_SONY_LAPTOP=m +# CONFIG_SONYPI_COMPAT is not set +CONFIG_IDEAPAD_LAPTOP=m +CONFIG_SURFACE3_WMI=m +CONFIG_THINKPAD_ACPI=m +CONFIG_THINKPAD_ACPI_ALSA_SUPPORT=y +# CONFIG_THINKPAD_ACPI_DEBUGFACILITIES is not set +# CONFIG_THINKPAD_ACPI_DEBUG is not set +# CONFIG_THINKPAD_ACPI_UNSAFE_LEDS is not set +CONFIG_THINKPAD_ACPI_VIDEO=y +CONFIG_THINKPAD_ACPI_HOTKEY_POLL=y +CONFIG_SENSORS_HDAPS=m +CONFIG_INTEL_MENLOW=m +CONFIG_EEEPC_LAPTOP=m +CONFIG_ASUS_WMI=m +CONFIG_ASUS_NB_WMI=m +CONFIG_EEEPC_WMI=m +CONFIG_ASUS_WIRELESS=m +CONFIG_ACPI_WMI=m +CONFIG_WMI_BMOF=m +CONFIG_INTEL_WMI_THUNDERBOLT=m +CONFIG_MSI_WMI=m +# CONFIG_PEAQ_WMI is not set +CONFIG_TOPSTAR_LAPTOP=m +CONFIG_ACPI_TOSHIBA=m +CONFIG_TOSHIBA_BT_RFKILL=m +CONFIG_TOSHIBA_HAPS=m +CONFIG_TOSHIBA_WMI=m +CONFIG_ACPI_CMPC=m +# CONFIG_INTEL_INT0002_VGPIO is not set +CONFIG_INTEL_HID_EVENT=m +CONFIG_INTEL_VBTN=m +CONFIG_INTEL_IPS=m +CONFIG_INTEL_PMC_CORE=y +CONFIG_IBM_RTL=m +CONFIG_SAMSUNG_LAPTOP=m +CONFIG_MXM_WMI=m +CONFIG_INTEL_OAKTRAIL=m +CONFIG_SAMSUNG_Q10=m +CONFIG_APPLE_GMUX=m +CONFIG_INTEL_RST=m +CONFIG_INTEL_SMARTCONNECT=m +CONFIG_PVPANIC=m +CONFIG_INTEL_PMC_IPC=m +CONFIG_INTEL_BXTWC_PMIC_TMU=m +CONFIG_SURFACE_PRO3_BUTTON=m +CONFIG_INTEL_PUNIT_IPC=m +CONFIG_INTEL_TELEMETRY=m +CONFIG_MLX_PLATFORM=m +CONFIG_MLX_CPLD_PLATFORM=m +CONFIG_INTEL_TURBO_MAX_3=y +CONFIG_SILEAD_DMI=y +CONFIG_PMC_ATOM=y +CONFIG_CHROME_PLATFORMS=y +CONFIG_CHROMEOS_LAPTOP=m +CONFIG_CHROMEOS_PSTORE=m +CONFIG_CROS_EC_CHARDEV=m +CONFIG_CROS_EC_LPC=m +# CONFIG_CROS_EC_LPC_MEC is not set +CONFIG_CROS_EC_PROTO=y +CONFIG_CROS_KBD_LED_BACKLIGHT=m +CONFIG_CLKDEV_LOOKUP=y +CONFIG_HAVE_CLK_PREPARE=y +CONFIG_COMMON_CLK=y + +# +# Common Clock Framework +# +# CONFIG_COMMON_CLK_SI5351 is not set +# CONFIG_COMMON_CLK_CDCE706 is not set +# CONFIG_COMMON_CLK_CS2000_CP is not set +# CONFIG_COMMON_CLK_NXP is not set +# CONFIG_COMMON_CLK_PXA is not set +# CONFIG_COMMON_CLK_PIC32 is not set +# CONFIG_HWSPINLOCK is not set + +# +# Clock Source drivers +# +CONFIG_CLKEVT_I8253=y +CONFIG_I8253_LOCK=y +CONFIG_CLKBLD_I8253=y +# CONFIG_ATMEL_PIT is not set +# CONFIG_SH_TIMER_CMT is not set +# CONFIG_SH_TIMER_MTU2 is not set +# CONFIG_SH_TIMER_TMU is not set +# CONFIG_EM_TIMER_STI is not set +CONFIG_MAILBOX=y +CONFIG_PCC=y +# CONFIG_ALTERA_MBOX is not set +CONFIG_IOMMU_API=y +CONFIG_IOMMU_SUPPORT=y + +# +# Generic IOMMU Pagetable Support +# +CONFIG_IOMMU_IOVA=y +CONFIG_AMD_IOMMU=y +CONFIG_AMD_IOMMU_V2=m +CONFIG_DMAR_TABLE=y +CONFIG_INTEL_IOMMU=y +# CONFIG_INTEL_IOMMU_SVM is not set +# CONFIG_INTEL_IOMMU_DEFAULT_ON is not set +CONFIG_INTEL_IOMMU_FLOPPY_WA=y +CONFIG_IRQ_REMAP=y + +# +# Remoteproc drivers +# +CONFIG_REMOTEPROC=m + +# +# Rpmsg drivers +# +# CONFIG_RPMSG_QCOM_GLINK_RPM is not set +# CONFIG_RPMSG_VIRTIO is not set + +# +# SOC (System On Chip) specific Drivers +# + +# +# Amlogic SoC drivers +# + +# +# Broadcom SoC drivers +# + +# +# i.MX SoC drivers +# + +# +# Qualcomm SoC drivers +# +# CONFIG_SUNXI_SRAM is not set +# CONFIG_SOC_TI is not set +CONFIG_PM_DEVFREQ=y + +# +# DEVFREQ Governors +# +CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND=m +CONFIG_DEVFREQ_GOV_PERFORMANCE=m +CONFIG_DEVFREQ_GOV_POWERSAVE=m +CONFIG_DEVFREQ_GOV_USERSPACE=m +CONFIG_DEVFREQ_GOV_PASSIVE=m + +# +# DEVFREQ Drivers +# +# CONFIG_PM_DEVFREQ_EVENT is not set +CONFIG_EXTCON=y + +# +# Extcon Device Drivers +# +CONFIG_EXTCON_ADC_JACK=m +CONFIG_EXTCON_ARIZONA=m +# CONFIG_EXTCON_AXP288 is not set +CONFIG_EXTCON_GPIO=m +CONFIG_EXTCON_INTEL_INT3496=m +CONFIG_EXTCON_MAX3355=m +CONFIG_EXTCON_RT8973A=m +CONFIG_EXTCON_SM5502=m +CONFIG_EXTCON_USB_GPIO=m +CONFIG_EXTCON_USBC_CROS_EC=m +CONFIG_MEMORY=y +CONFIG_IIO=m +CONFIG_IIO_BUFFER=y +CONFIG_IIO_BUFFER_CB=m +CONFIG_IIO_KFIFO_BUF=m +CONFIG_IIO_TRIGGERED_BUFFER=m +CONFIG_IIO_CONFIGFS=m +CONFIG_IIO_TRIGGER=y +CONFIG_IIO_CONSUMERS_PER_TRIGGER=2 +CONFIG_IIO_SW_DEVICE=m +CONFIG_IIO_SW_TRIGGER=m + +# +# Accelerometers +# +# CONFIG_BMA180 is not set +# CONFIG_BMA220 is not set +# CONFIG_BMC150_ACCEL is not set +# CONFIG_DA280 is not set +# CONFIG_DA311 is not set +# CONFIG_DMARD09 is not set +# CONFIG_DMARD10 is not set +CONFIG_HID_SENSOR_ACCEL_3D=m +# CONFIG_IIO_CROS_EC_ACCEL_LEGACY is not set +CONFIG_IIO_ST_ACCEL_3AXIS=m +CONFIG_IIO_ST_ACCEL_I2C_3AXIS=m +CONFIG_IIO_ST_ACCEL_SPI_3AXIS=m +# CONFIG_KXSD9 is not set +CONFIG_KXCJK1013=m +# CONFIG_MC3230 is not set +CONFIG_MMA7455=m +CONFIG_MMA7455_I2C=m +CONFIG_MMA7455_SPI=m +CONFIG_MMA7660=m +# CONFIG_MMA8452 is not set +# CONFIG_MMA9551 is not set +# CONFIG_MMA9553 is not set +CONFIG_MXC4005=m +CONFIG_MXC6255=m +# CONFIG_SCA3000 is not set +# CONFIG_STK8312 is not set +# CONFIG_STK8BA50 is not set + +# +# Analog to digital converters +# +# CONFIG_AD7266 is not set +# CONFIG_AD7291 is not set +# CONFIG_AD7298 is not set +# CONFIG_AD7476 is not set +# CONFIG_AD7766 is not set +# CONFIG_AD7791 is not set +# CONFIG_AD7793 is not set +# CONFIG_AD7887 is not set +# CONFIG_AD7923 is not set +# CONFIG_AD799X is not set +CONFIG_AXP20X_ADC=m +CONFIG_AXP288_ADC=m +# CONFIG_HI8435 is not set +# CONFIG_HX711 is not set +# CONFIG_INA2XX_ADC is not set +# CONFIG_LTC2471 is not set +# CONFIG_LTC2485 is not set +# CONFIG_LTC2497 is not set +# CONFIG_MAX1027 is not set +# CONFIG_MAX11100 is not set +# CONFIG_MAX1118 is not set +# CONFIG_MAX1363 is not set +# CONFIG_MAX9611 is not set +# CONFIG_MCP320X is not set +# CONFIG_MCP3422 is not set +# CONFIG_NAU7802 is not set +# CONFIG_QCOM_SPMI_IADC is not set +# CONFIG_QCOM_SPMI_VADC is not set +# CONFIG_TI_ADC081C is not set +# CONFIG_TI_ADC0832 is not set +# CONFIG_TI_ADC084S021 is not set +# CONFIG_TI_ADC12138 is not set +# CONFIG_TI_ADC108S102 is not set +# CONFIG_TI_ADC128S052 is not set +# CONFIG_TI_ADC161S626 is not set +# CONFIG_TI_ADS1015 is not set +# CONFIG_TI_ADS7950 is not set +# CONFIG_TI_AM335X_ADC is not set +# CONFIG_TI_TLC4541 is not set +# CONFIG_VIPERBOARD_ADC is not set + +# +# Amplifiers +# +# CONFIG_AD8366 is not set + +# +# Chemical Sensors +# +# CONFIG_ATLAS_PH_SENSOR is not set +# CONFIG_CCS811 is not set +# CONFIG_IAQCORE is not set +# CONFIG_VZ89X is not set +CONFIG_IIO_CROS_EC_SENSORS_CORE=m +CONFIG_IIO_CROS_EC_SENSORS=m + +# +# Hid Sensor IIO Common +# +CONFIG_HID_SENSOR_IIO_COMMON=m +CONFIG_HID_SENSOR_IIO_TRIGGER=m + +# +# SSP Sensor Common +# +# CONFIG_IIO_SSP_SENSORHUB is not set +CONFIG_IIO_ST_SENSORS_I2C=m +CONFIG_IIO_ST_SENSORS_SPI=m +CONFIG_IIO_ST_SENSORS_CORE=m + +# +# Counters +# + +# +# Digital to analog converters +# +# CONFIG_AD5064 is not set +# CONFIG_AD5360 is not set +# CONFIG_AD5380 is not set +# CONFIG_AD5421 is not set +# CONFIG_AD5446 is not set +# CONFIG_AD5449 is not set +# CONFIG_AD5592R is not set +# CONFIG_AD5593R is not set +# CONFIG_AD5504 is not set +# CONFIG_AD5624R_SPI is not set +# CONFIG_LTC2632 is not set +# CONFIG_AD5686 is not set +# CONFIG_AD5755 is not set +# CONFIG_AD5761 is not set +# CONFIG_AD5764 is not set +# CONFIG_AD5791 is not set +# CONFIG_AD7303 is not set +# CONFIG_AD8801 is not set +# CONFIG_DS4424 is not set +# CONFIG_M62332 is not set +# CONFIG_MAX517 is not set +# CONFIG_MCP4725 is not set +# CONFIG_MCP4922 is not set +# CONFIG_TI_DAC082S085 is not set + +# +# IIO dummy driver +# +# CONFIG_IIO_SIMPLE_DUMMY is not set + +# +# Frequency Synthesizers DDS/PLL +# + +# +# Clock Generator/Distribution +# +# CONFIG_AD9523 is not set + +# +# Phase-Locked Loop (PLL) frequency synthesizers +# +# CONFIG_ADF4350 is not set + +# +# Digital gyroscope sensors +# +# CONFIG_ADIS16080 is not set +# CONFIG_ADIS16130 is not set +# CONFIG_ADIS16136 is not set +# CONFIG_ADIS16260 is not set +# CONFIG_ADXRS450 is not set +# CONFIG_BMG160 is not set +CONFIG_HID_SENSOR_GYRO_3D=m +# CONFIG_MPU3050_I2C is not set +CONFIG_IIO_ST_GYRO_3AXIS=m +CONFIG_IIO_ST_GYRO_I2C_3AXIS=m +CONFIG_IIO_ST_GYRO_SPI_3AXIS=m +# CONFIG_ITG3200 is not set + +# +# Health Sensors +# + +# +# Heart Rate Monitors +# +# CONFIG_AFE4403 is not set +# CONFIG_AFE4404 is not set +# CONFIG_MAX30100 is not set +# CONFIG_MAX30102 is not set + +# +# Humidity sensors +# +# CONFIG_AM2315 is not set +# CONFIG_DHT11 is not set +# CONFIG_HDC100X is not set +# CONFIG_HID_SENSOR_HUMIDITY is not set +# CONFIG_HTS221 is not set +# CONFIG_HTU21 is not set +# CONFIG_SI7005 is not set +# CONFIG_SI7020 is not set + +# +# Inertial measurement units +# +# CONFIG_ADIS16400 is not set +# CONFIG_ADIS16480 is not set +# CONFIG_BMI160_I2C is not set +# CONFIG_BMI160_SPI is not set +# CONFIG_KMX61 is not set +# CONFIG_INV_MPU6050_I2C is not set +# CONFIG_INV_MPU6050_SPI is not set +# CONFIG_IIO_ST_LSM6DSX is not set + +# +# Light sensors +# +CONFIG_ACPI_ALS=m +# CONFIG_ADJD_S311 is not set +# CONFIG_AL3320A is not set +# CONFIG_APDS9300 is not set +# CONFIG_APDS9960 is not set +CONFIG_BH1750=m +CONFIG_BH1780=m +# CONFIG_CM32181 is not set +# CONFIG_CM3232 is not set +# CONFIG_CM3323 is not set +# CONFIG_CM36651 is not set +# CONFIG_IIO_CROS_EC_LIGHT_PROX is not set +# CONFIG_GP2AP020A00F is not set +# CONFIG_SENSORS_ISL29018 is not set +# CONFIG_SENSORS_ISL29028 is not set +# CONFIG_ISL29125 is not set +CONFIG_HID_SENSOR_ALS=m +# CONFIG_HID_SENSOR_PROX is not set +# CONFIG_JSA1212 is not set +CONFIG_RPR0521=m +# CONFIG_SENSORS_LM3533 is not set +# CONFIG_LTR501 is not set +# CONFIG_MAX44000 is not set +CONFIG_OPT3001=m +CONFIG_PA12203001=m +# CONFIG_SI1145 is not set +CONFIG_STK3310=m +# CONFIG_TCS3414 is not set +# CONFIG_TCS3472 is not set +# CONFIG_SENSORS_TSL2563 is not set +# CONFIG_TSL2583 is not set +# CONFIG_TSL4531 is not set +# CONFIG_US5182D is not set +# CONFIG_VCNL4000 is not set +# CONFIG_VEML6070 is not set +# CONFIG_VL6180 is not set + +# +# Magnetometer sensors +# +# CONFIG_AK8975 is not set +# CONFIG_AK09911 is not set +# CONFIG_BMC150_MAGN_I2C is not set +# CONFIG_BMC150_MAGN_SPI is not set +# CONFIG_MAG3110 is not set +CONFIG_HID_SENSOR_MAGNETOMETER_3D=m +# CONFIG_MMC35240 is not set +CONFIG_IIO_ST_MAGN_3AXIS=m +CONFIG_IIO_ST_MAGN_I2C_3AXIS=m +CONFIG_IIO_ST_MAGN_SPI_3AXIS=m +CONFIG_SENSORS_HMC5843=m +CONFIG_SENSORS_HMC5843_I2C=m +CONFIG_SENSORS_HMC5843_SPI=m + +# +# Multiplexers +# + +# +# Inclinometer sensors +# +CONFIG_HID_SENSOR_INCLINOMETER_3D=m +CONFIG_HID_SENSOR_DEVICE_ROTATION=m + +# +# Triggers - standalone +# +# CONFIG_IIO_HRTIMER_TRIGGER is not set +CONFIG_IIO_INTERRUPT_TRIGGER=m +# CONFIG_IIO_TIGHTLOOP_TRIGGER is not set +# CONFIG_IIO_SYSFS_TRIGGER is not set + +# +# Digital potentiometers +# +# CONFIG_DS1803 is not set +# CONFIG_MAX5481 is not set +# CONFIG_MAX5487 is not set +# CONFIG_MCP4131 is not set +# CONFIG_MCP4531 is not set +# CONFIG_TPL0102 is not set + +# +# Digital potentiostats +# +# CONFIG_LMP91000 is not set + +# +# Pressure sensors +# +# CONFIG_ABP060MG is not set +CONFIG_BMP280=m +CONFIG_BMP280_I2C=m +CONFIG_BMP280_SPI=m +# CONFIG_IIO_CROS_EC_BARO is not set +# CONFIG_HID_SENSOR_PRESS is not set +# CONFIG_HP03 is not set +# CONFIG_MPL115_I2C is not set +# CONFIG_MPL115_SPI is not set +# CONFIG_MPL3115 is not set +CONFIG_MS5611=m +CONFIG_MS5611_I2C=m +CONFIG_MS5611_SPI=m +# CONFIG_MS5637 is not set +# CONFIG_IIO_ST_PRESS is not set +# CONFIG_T5403 is not set +# CONFIG_HP206C is not set +CONFIG_ZPA2326=m +CONFIG_ZPA2326_I2C=m +CONFIG_ZPA2326_SPI=m + +# +# Lightning sensors +# +# CONFIG_AS3935 is not set + +# +# Proximity and distance sensors +# +# CONFIG_LIDAR_LITE_V2 is not set +# CONFIG_RFD77402 is not set +# CONFIG_SRF04 is not set +# CONFIG_SX9500 is not set +# CONFIG_SRF08 is not set + +# +# Temperature sensors +# +# CONFIG_MAXIM_THERMOCOUPLE is not set +# CONFIG_HID_SENSOR_TEMP is not set +# CONFIG_MLX90614 is not set +# CONFIG_TMP006 is not set +# CONFIG_TMP007 is not set +# CONFIG_TSYS01 is not set +# CONFIG_TSYS02D is not set +# CONFIG_NTB is not set +# CONFIG_VME_BUS is not set +# CONFIG_PWM is not set + +# +# IRQ chip support +# +CONFIG_ARM_GIC_MAX_NR=1 +# CONFIG_ARM_GIC_V3_ITS is not set +CONFIG_IPACK_BUS=m +CONFIG_BOARD_TPCI200=m +CONFIG_SERIAL_IPOCTAL=m +CONFIG_RESET_CONTROLLER=y +# CONFIG_RESET_ATH79 is not set +# CONFIG_RESET_AXS10X is not set +# CONFIG_RESET_BERLIN is not set +# CONFIG_RESET_IMX7 is not set +# CONFIG_RESET_LANTIQ is not set +# CONFIG_RESET_LPC18XX is not set +# CONFIG_RESET_MESON is not set +# CONFIG_RESET_PISTACHIO is not set +# CONFIG_RESET_SIMPLE is not set +# CONFIG_RESET_SUNXI is not set +# CONFIG_RESET_TI_SYSCON is not set +# CONFIG_RESET_ZYNQ is not set +# CONFIG_RESET_TEGRA_BPMP is not set +CONFIG_FMC=m +CONFIG_FMC_FAKEDEV=m +CONFIG_FMC_TRIVIAL=m +CONFIG_FMC_WRITE_EEPROM=m +CONFIG_FMC_CHARDEV=m + +# +# PHY Subsystem +# +CONFIG_GENERIC_PHY=y +CONFIG_BCM_KONA_USB2_PHY=m +# CONFIG_PHY_PXA_28NM_HSIC is not set +# CONFIG_PHY_PXA_28NM_USB2 is not set +# CONFIG_PHY_CPCAP_USB is not set +CONFIG_POWERCAP=y +CONFIG_INTEL_RAPL=m +# CONFIG_MCB is not set + +# +# Performance monitor support +# +CONFIG_RAS=y +# CONFIG_RAS_CEC is not set +CONFIG_THUNDERBOLT=m + +# +# Android +# +# CONFIG_ANDROID is not set +CONFIG_LIBNVDIMM=m +CONFIG_BLK_DEV_PMEM=m +CONFIG_ND_BLK=m +CONFIG_ND_CLAIM=y +CONFIG_ND_BTT=m +CONFIG_BTT=y +CONFIG_ND_PFN=m +CONFIG_NVDIMM_PFN=y +CONFIG_NVDIMM_DAX=y +CONFIG_DAX=m +CONFIG_DEV_DAX=m +CONFIG_DEV_DAX_PMEM=m +CONFIG_NVMEM=y +CONFIG_STM=m +CONFIG_STM_DUMMY=m +CONFIG_STM_SOURCE_CONSOLE=m +# CONFIG_STM_SOURCE_HEARTBEAT is not set +# CONFIG_STM_SOURCE_FTRACE is not set +CONFIG_INTEL_TH=m +CONFIG_INTEL_TH_PCI=m +CONFIG_INTEL_TH_GTH=m +CONFIG_INTEL_TH_STH=m +CONFIG_INTEL_TH_MSU=m +CONFIG_INTEL_TH_PTI=m +# CONFIG_INTEL_TH_DEBUG is not set +CONFIG_FPGA=m +CONFIG_FPGA_MGR_ALTERA_CVP=m +CONFIG_FPGA_MGR_ALTERA_PS_SPI=m +CONFIG_FPGA_MGR_XILINX_SPI=m +CONFIG_ALTERA_PR_IP_CORE=m + +# +# FSI support +# +CONFIG_FSI=m +# CONFIG_FSI_MASTER_GPIO is not set +# CONFIG_FSI_MASTER_HUB is not set +# CONFIG_FSI_SCOM is not set +CONFIG_PM_OPP=y + +# +# Firmware Drivers +# +CONFIG_EDD=m +# CONFIG_EDD_OFF is not set +CONFIG_FIRMWARE_MEMMAP=y +CONFIG_DELL_RBU=m +CONFIG_DCDBAS=m +CONFIG_DMIID=y +CONFIG_DMI_SYSFS=m +CONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y +CONFIG_ISCSI_IBFT_FIND=y +CONFIG_ISCSI_IBFT=m +# CONFIG_FW_CFG_SYSFS is not set +# CONFIG_GOOGLE_FIRMWARE is not set + +# +# EFI (Extensible Firmware Interface) Support +# +# CONFIG_EFI_VARS is not set +CONFIG_EFI_ESRT=y +CONFIG_EFI_RUNTIME_MAP=y +# CONFIG_EFI_FAKE_MEMMAP is not set +CONFIG_EFI_RUNTIME_WRAPPERS=y +# CONFIG_EFI_CAPSULE_LOADER is not set +# CONFIG_EFI_TEST is not set +CONFIG_APPLE_PROPERTIES=y +CONFIG_RESET_ATTACK_MITIGATION=y +CONFIG_UEFI_CPER=y +CONFIG_EFI_DEV_PATH_PARSER=y + +# +# Tegra firmware driver +# + +# +# File systems +# +CONFIG_DCACHE_WORD_ACCESS=y +CONFIG_FS_IOMAP=y +# CONFIG_EXT2_FS is not set +# CONFIG_EXT3_FS is not set +CONFIG_EXT4_FS=m +CONFIG_EXT4_USE_FOR_EXT2=y +CONFIG_EXT4_FS_POSIX_ACL=y +CONFIG_EXT4_FS_SECURITY=y +CONFIG_EXT4_ENCRYPTION=y +CONFIG_EXT4_FS_ENCRYPTION=y +# CONFIG_EXT4_DEBUG is not set +CONFIG_JBD2=m +# CONFIG_JBD2_DEBUG is not set +CONFIG_FS_MBCACHE=m +CONFIG_REISERFS_FS=m +# CONFIG_REISERFS_CHECK is not set +CONFIG_REISERFS_PROC_INFO=y +CONFIG_REISERFS_FS_XATTR=y +CONFIG_REISERFS_FS_POSIX_ACL=y +CONFIG_REISERFS_FS_SECURITY=y +CONFIG_JFS_FS=m +CONFIG_JFS_POSIX_ACL=y +CONFIG_JFS_SECURITY=y +# CONFIG_JFS_DEBUG is not set +CONFIG_JFS_STATISTICS=y +CONFIG_XFS_FS=m +CONFIG_XFS_QUOTA=y +CONFIG_XFS_POSIX_ACL=y +CONFIG_XFS_RT=y +CONFIG_XFS_ONLINE_SCRUB=y +# CONFIG_XFS_WARN is not set +# CONFIG_XFS_DEBUG is not set +CONFIG_GFS2_FS=m +CONFIG_GFS2_FS_LOCKING_DLM=y +CONFIG_OCFS2_FS=m +CONFIG_OCFS2_FS_O2CB=m +CONFIG_OCFS2_FS_USERSPACE_CLUSTER=m +CONFIG_OCFS2_FS_STATS=y +# CONFIG_OCFS2_DEBUG_MASKLOG is not set +# CONFIG_OCFS2_DEBUG_FS is not set +CONFIG_BTRFS_FS=m +CONFIG_BTRFS_FS_POSIX_ACL=y +# CONFIG_BTRFS_FS_CHECK_INTEGRITY is not set +# CONFIG_BTRFS_FS_RUN_SANITY_TESTS is not set +# CONFIG_BTRFS_DEBUG is not set +# CONFIG_BTRFS_ASSERT is not set +CONFIG_BTRFS_FS_REF_VERIFY=y +CONFIG_NILFS2_FS=m +CONFIG_F2FS_FS=m +CONFIG_F2FS_STAT_FS=y +CONFIG_F2FS_FS_XATTR=y +CONFIG_F2FS_FS_POSIX_ACL=y +CONFIG_F2FS_FS_SECURITY=y +CONFIG_F2FS_CHECK_FS=y +CONFIG_F2FS_FS_ENCRYPTION=y +# CONFIG_F2FS_IO_TRACE is not set +# CONFIG_F2FS_FAULT_INJECTION is not set +# CONFIG_FS_DAX is not set +CONFIG_FS_POSIX_ACL=y +CONFIG_EXPORTFS=y +# CONFIG_EXPORTFS_BLOCK_OPS is not set +CONFIG_FILE_LOCKING=y +CONFIG_MANDATORY_FILE_LOCKING=y +CONFIG_FS_ENCRYPTION=m +CONFIG_FSNOTIFY=y +CONFIG_DNOTIFY=y +CONFIG_INOTIFY_USER=y +CONFIG_FANOTIFY=y +CONFIG_FANOTIFY_ACCESS_PERMISSIONS=y +CONFIG_QUOTA=y +CONFIG_QUOTA_NETLINK_INTERFACE=y +# CONFIG_PRINT_QUOTA_WARNING is not set +# CONFIG_QUOTA_DEBUG is not set +CONFIG_QUOTA_TREE=m +CONFIG_QFMT_V1=m +CONFIG_QFMT_V2=m +CONFIG_QUOTACTL=y +CONFIG_QUOTACTL_COMPAT=y +CONFIG_AUTOFS4_FS=y +CONFIG_FUSE_FS=m +CONFIG_CUSE=m +CONFIG_OVERLAY_FS=m +# CONFIG_OVERLAY_FS_REDIRECT_DIR is not set +CONFIG_OVERLAY_FS_REDIRECT_ALWAYS_FOLLOW=y +# CONFIG_OVERLAY_FS_INDEX is not set + +# +# Caches +# +CONFIG_FSCACHE=m +CONFIG_FSCACHE_STATS=y +CONFIG_FSCACHE_HISTOGRAM=y +# CONFIG_FSCACHE_DEBUG is not set +# CONFIG_FSCACHE_OBJECT_LIST is not set +CONFIG_CACHEFILES=m +# CONFIG_CACHEFILES_DEBUG is not set +# CONFIG_CACHEFILES_HISTOGRAM is not set + +# +# CD-ROM/DVD Filesystems +# +CONFIG_ISO9660_FS=m +CONFIG_JOLIET=y +CONFIG_ZISOFS=y +CONFIG_UDF_FS=m +CONFIG_UDF_NLS=y + +# +# DOS/FAT/NT Filesystems +# +CONFIG_FAT_FS=m +CONFIG_MSDOS_FS=m +CONFIG_VFAT_FS=m +CONFIG_FAT_DEFAULT_CODEPAGE=437 +CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" +# CONFIG_FAT_DEFAULT_UTF8 is not set +CONFIG_NTFS_FS=m +# CONFIG_NTFS_DEBUG is not set +CONFIG_NTFS_RW=y + +# +# Pseudo filesystems +# +CONFIG_PROC_FS=y +CONFIG_PROC_KCORE=y +CONFIG_PROC_VMCORE=y +CONFIG_PROC_SYSCTL=y +CONFIG_PROC_PAGE_MONITOR=y +CONFIG_PROC_CHILDREN=y +CONFIG_KERNFS=y +CONFIG_SYSFS=y +CONFIG_TMPFS=y +CONFIG_TMPFS_POSIX_ACL=y +CONFIG_TMPFS_XATTR=y +CONFIG_HUGETLBFS=y +CONFIG_HUGETLB_PAGE=y +CONFIG_ARCH_HAS_GIGANTIC_PAGE=y +CONFIG_CONFIGFS_FS=y +CONFIG_EFIVAR_FS=y +CONFIG_MISC_FILESYSTEMS=y +# CONFIG_ORANGEFS_FS is not set +# CONFIG_ADFS_FS is not set +CONFIG_AFFS_FS=m +CONFIG_ECRYPT_FS=m +# CONFIG_ECRYPT_FS_MESSAGING is not set +CONFIG_HFS_FS=m +CONFIG_HFSPLUS_FS=m +CONFIG_HFSPLUS_FS_POSIX_ACL=y +CONFIG_BEFS_FS=m +# CONFIG_BEFS_DEBUG is not set +# CONFIG_BFS_FS is not set +# CONFIG_EFS_FS is not set +CONFIG_JFFS2_FS=m +CONFIG_JFFS2_FS_DEBUG=0 +CONFIG_JFFS2_FS_WRITEBUFFER=y +# CONFIG_JFFS2_FS_WBUF_VERIFY is not set +# CONFIG_JFFS2_SUMMARY is not set +# CONFIG_JFFS2_FS_XATTR is not set +# CONFIG_JFFS2_COMPRESSION_OPTIONS is not set +CONFIG_JFFS2_ZLIB=y +# CONFIG_JFFS2_LZO is not set +CONFIG_JFFS2_RTIME=y +# CONFIG_JFFS2_RUBIN is not set +CONFIG_UBIFS_FS=m +# CONFIG_UBIFS_FS_ADVANCED_COMPR is not set +CONFIG_UBIFS_FS_LZO=y +CONFIG_UBIFS_FS_ZLIB=y +# CONFIG_UBIFS_ATIME_SUPPORT is not set +# CONFIG_UBIFS_FS_ENCRYPTION is not set +CONFIG_UBIFS_FS_SECURITY=y +CONFIG_CRAMFS=m +CONFIG_CRAMFS_BLOCKDEV=y +# CONFIG_CRAMFS_MTD is not set +CONFIG_SQUASHFS=m +# CONFIG_SQUASHFS_FILE_CACHE is not set +CONFIG_SQUASHFS_FILE_DIRECT=y +# CONFIG_SQUASHFS_DECOMP_SINGLE is not set +# CONFIG_SQUASHFS_DECOMP_MULTI is not set +CONFIG_SQUASHFS_DECOMP_MULTI_PERCPU=y +CONFIG_SQUASHFS_XATTR=y +CONFIG_SQUASHFS_ZLIB=y +CONFIG_SQUASHFS_LZ4=y +CONFIG_SQUASHFS_LZO=y +CONFIG_SQUASHFS_XZ=y +CONFIG_SQUASHFS_ZSTD=y +# CONFIG_SQUASHFS_4K_DEVBLK_SIZE is not set +# CONFIG_SQUASHFS_EMBEDDED is not set +CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3 +# CONFIG_VXFS_FS is not set +CONFIG_MINIX_FS=m +CONFIG_OMFS_FS=m +# CONFIG_HPFS_FS is not set +# CONFIG_QNX4FS_FS is not set +# CONFIG_QNX6FS_FS is not set +CONFIG_ROMFS_FS=m +CONFIG_ROMFS_BACKED_BY_BLOCK=y +# CONFIG_ROMFS_BACKED_BY_MTD is not set +# CONFIG_ROMFS_BACKED_BY_BOTH is not set +CONFIG_ROMFS_ON_BLOCK=y +CONFIG_PSTORE=y +CONFIG_PSTORE_ZLIB_COMPRESS=y +# CONFIG_PSTORE_LZO_COMPRESS is not set +# CONFIG_PSTORE_LZ4_COMPRESS is not set +# CONFIG_PSTORE_CONSOLE is not set +# CONFIG_PSTORE_PMSG is not set +# CONFIG_PSTORE_FTRACE is not set +CONFIG_PSTORE_RAM=y +# CONFIG_SYSV_FS is not set +CONFIG_UFS_FS=m +# CONFIG_UFS_FS_WRITE is not set +# CONFIG_UFS_DEBUG is not set +CONFIG_EXOFS_FS=m +# CONFIG_EXOFS_DEBUG is not set +CONFIG_ORE=m +CONFIG_NETWORK_FILESYSTEMS=y +CONFIG_NFS_FS=m +CONFIG_NFS_V2=m +CONFIG_NFS_V3=m +CONFIG_NFS_V3_ACL=y +CONFIG_NFS_V4=m +CONFIG_NFS_SWAP=y +CONFIG_NFS_V4_1=y +CONFIG_NFS_V4_2=y +CONFIG_PNFS_FILE_LAYOUT=m +CONFIG_PNFS_BLOCK=m +CONFIG_PNFS_FLEXFILE_LAYOUT=m +CONFIG_NFS_V4_1_IMPLEMENTATION_ID_DOMAIN="kernel.org" +CONFIG_NFS_V4_1_MIGRATION=y +CONFIG_NFS_V4_SECURITY_LABEL=y +CONFIG_NFS_FSCACHE=y +# CONFIG_NFS_USE_LEGACY_DNS is not set +CONFIG_NFS_USE_KERNEL_DNS=y +CONFIG_NFS_DEBUG=y +CONFIG_NFSD=m +CONFIG_NFSD_V2_ACL=y +CONFIG_NFSD_V3=y +CONFIG_NFSD_V3_ACL=y +CONFIG_NFSD_V4=y +# CONFIG_NFSD_BLOCKLAYOUT is not set +# CONFIG_NFSD_SCSILAYOUT is not set +# CONFIG_NFSD_FLEXFILELAYOUT is not set +CONFIG_NFSD_V4_SECURITY_LABEL=y +# CONFIG_NFSD_FAULT_INJECTION is not set +CONFIG_GRACE_PERIOD=m +CONFIG_LOCKD=m +CONFIG_LOCKD_V4=y +CONFIG_NFS_ACL_SUPPORT=m +CONFIG_NFS_COMMON=y +CONFIG_SUNRPC=m +CONFIG_SUNRPC_GSS=m +CONFIG_SUNRPC_BACKCHANNEL=y +CONFIG_SUNRPC_SWAP=y +CONFIG_RPCSEC_GSS_KRB5=m +CONFIG_SUNRPC_DEBUG=y +CONFIG_SUNRPC_XPRT_RDMA=m +CONFIG_CEPH_FS=m +CONFIG_CEPH_FSCACHE=y +CONFIG_CEPH_FS_POSIX_ACL=y +CONFIG_CIFS=m +CONFIG_CIFS_STATS=y +# CONFIG_CIFS_STATS2 is not set +CONFIG_CIFS_WEAK_PW_HASH=y +CONFIG_CIFS_UPCALL=y +CONFIG_CIFS_XATTR=y +CONFIG_CIFS_POSIX=y +CONFIG_CIFS_ACL=y +# CONFIG_CIFS_DEBUG is not set +CONFIG_CIFS_DFS_UPCALL=y +CONFIG_CIFS_SMB311=y +CONFIG_CIFS_FSCACHE=y +CONFIG_NCP_FS=m +# CONFIG_NCPFS_PACKET_SIGNING is not set +# CONFIG_NCPFS_IOCTL_LOCKING is not set +# CONFIG_NCPFS_STRONG is not set +CONFIG_NCPFS_NFS_NS=y +CONFIG_NCPFS_OS2_NS=y +CONFIG_NCPFS_SMALLDOS=y +CONFIG_NCPFS_NLS=y +# CONFIG_NCPFS_EXTRAS is not set +CONFIG_CODA_FS=m +CONFIG_AFS_FS=m +# CONFIG_AFS_DEBUG is not set +CONFIG_AFS_FSCACHE=y +CONFIG_9P_FS=m +CONFIG_9P_FSCACHE=y +CONFIG_9P_FS_POSIX_ACL=y +CONFIG_9P_FS_SECURITY=y +CONFIG_NLS=y +CONFIG_NLS_DEFAULT="utf8" +CONFIG_NLS_CODEPAGE_437=m +CONFIG_NLS_CODEPAGE_737=m +CONFIG_NLS_CODEPAGE_775=m +CONFIG_NLS_CODEPAGE_850=m +CONFIG_NLS_CODEPAGE_852=m +CONFIG_NLS_CODEPAGE_855=m +CONFIG_NLS_CODEPAGE_857=m +CONFIG_NLS_CODEPAGE_860=m +CONFIG_NLS_CODEPAGE_861=m +CONFIG_NLS_CODEPAGE_862=m +CONFIG_NLS_CODEPAGE_863=m +CONFIG_NLS_CODEPAGE_864=m +CONFIG_NLS_CODEPAGE_865=m +CONFIG_NLS_CODEPAGE_866=m +CONFIG_NLS_CODEPAGE_869=m +CONFIG_NLS_CODEPAGE_936=m +CONFIG_NLS_CODEPAGE_950=m +CONFIG_NLS_CODEPAGE_932=m +CONFIG_NLS_CODEPAGE_949=m +CONFIG_NLS_CODEPAGE_874=m +CONFIG_NLS_ISO8859_8=m +CONFIG_NLS_CODEPAGE_1250=m +CONFIG_NLS_CODEPAGE_1251=m +CONFIG_NLS_ASCII=m +CONFIG_NLS_ISO8859_1=m +CONFIG_NLS_ISO8859_2=m +CONFIG_NLS_ISO8859_3=m +CONFIG_NLS_ISO8859_4=m +CONFIG_NLS_ISO8859_5=m +CONFIG_NLS_ISO8859_6=m +CONFIG_NLS_ISO8859_7=m +CONFIG_NLS_ISO8859_9=m +CONFIG_NLS_ISO8859_13=m +CONFIG_NLS_ISO8859_14=m +CONFIG_NLS_ISO8859_15=m +CONFIG_NLS_KOI8_R=m +CONFIG_NLS_KOI8_U=m +CONFIG_NLS_MAC_ROMAN=m +CONFIG_NLS_MAC_CELTIC=m +CONFIG_NLS_MAC_CENTEURO=m +CONFIG_NLS_MAC_CROATIAN=m +CONFIG_NLS_MAC_CYRILLIC=m +CONFIG_NLS_MAC_GAELIC=m +CONFIG_NLS_MAC_GREEK=m +CONFIG_NLS_MAC_ICELAND=m +CONFIG_NLS_MAC_INUIT=m +CONFIG_NLS_MAC_ROMANIAN=m +CONFIG_NLS_MAC_TURKISH=m +CONFIG_NLS_UTF8=m +CONFIG_DLM=m +# CONFIG_DLM_DEBUG is not set + +# +# Kernel hacking +# +CONFIG_TRACE_IRQFLAGS_SUPPORT=y + +# +# printk and dmesg options +# +CONFIG_PRINTK_TIME=y +CONFIG_CONSOLE_LOGLEVEL_DEFAULT=4 +CONFIG_MESSAGE_LOGLEVEL_DEFAULT=4 +# CONFIG_BOOT_PRINTK_DELAY is not set +CONFIG_DYNAMIC_DEBUG=y + +# +# Compile-time checks and compiler options +# +# CONFIG_DEBUG_INFO is not set +CONFIG_ENABLE_WARN_DEPRECATED=y +# CONFIG_ENABLE_MUST_CHECK is not set +CONFIG_FRAME_WARN=2048 +CONFIG_STRIP_ASM_SYMS=y +# CONFIG_READABLE_ASM is not set +CONFIG_UNUSED_SYMBOLS=y +# CONFIG_PAGE_OWNER is not set +CONFIG_DEBUG_FS=y +# CONFIG_HEADERS_CHECK is not set +# CONFIG_DEBUG_SECTION_MISMATCH is not set +CONFIG_SECTION_MISMATCH_WARN_ONLY=y +CONFIG_FRAME_POINTER=y +# CONFIG_STACK_VALIDATION is not set +# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set +CONFIG_MAGIC_SYSRQ=y +CONFIG_MAGIC_SYSRQ_DEFAULT_ENABLE=0x0 +CONFIG_MAGIC_SYSRQ_SERIAL=y +CONFIG_DEBUG_KERNEL=y + +# +# Memory Debugging +# +# CONFIG_PAGE_EXTENSION is not set +# CONFIG_DEBUG_PAGEALLOC is not set +# CONFIG_PAGE_POISONING is not set +# CONFIG_DEBUG_PAGE_REF is not set +# CONFIG_DEBUG_RODATA_TEST is not set +# CONFIG_DEBUG_OBJECTS is not set +# CONFIG_SLUB_DEBUG_ON is not set +# CONFIG_SLUB_STATS is not set +CONFIG_HAVE_DEBUG_KMEMLEAK=y +# CONFIG_DEBUG_KMEMLEAK is not set +# CONFIG_DEBUG_STACK_USAGE is not set +# CONFIG_DEBUG_VM is not set +CONFIG_ARCH_HAS_DEBUG_VIRTUAL=y +# CONFIG_DEBUG_VIRTUAL is not set +CONFIG_DEBUG_MEMORY_INIT=y +# CONFIG_DEBUG_PER_CPU_MAPS is not set +CONFIG_HAVE_DEBUG_STACKOVERFLOW=y +# CONFIG_DEBUG_STACKOVERFLOW is not set +CONFIG_HAVE_ARCH_KASAN=y +# CONFIG_KASAN is not set +CONFIG_ARCH_HAS_KCOV=y +# CONFIG_KCOV is not set +# CONFIG_DEBUG_SHIRQ is not set + +# +# Debug Lockups and Hangs +# +CONFIG_LOCKUP_DETECTOR=y +CONFIG_SOFTLOCKUP_DETECTOR=y +CONFIG_HARDLOCKUP_DETECTOR_PERF=y +CONFIG_HARDLOCKUP_CHECK_TIMESTAMP=y +CONFIG_HARDLOCKUP_DETECTOR=y +# CONFIG_BOOTPARAM_HARDLOCKUP_PANIC is not set +CONFIG_BOOTPARAM_HARDLOCKUP_PANIC_VALUE=0 +# CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set +CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0 +CONFIG_DETECT_HUNG_TASK=y +CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=120 +# CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set +CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0 +# CONFIG_WQ_WATCHDOG is not set +# CONFIG_PANIC_ON_OOPS is not set +CONFIG_PANIC_ON_OOPS_VALUE=0 +CONFIG_PANIC_TIMEOUT=0 +CONFIG_SCHED_DEBUG=y +CONFIG_SCHED_INFO=y +CONFIG_SCHEDSTATS=y +# CONFIG_SCHED_STACK_END_CHECK is not set +# CONFIG_DEBUG_TIMEKEEPING is not set +# CONFIG_DEBUG_PREEMPT is not set + +# +# Lock Debugging (spinlocks, mutexes, etc...) +# +# CONFIG_DEBUG_RT_MUTEXES is not set +# CONFIG_DEBUG_SPINLOCK is not set +# CONFIG_DEBUG_MUTEXES is not set +# CONFIG_DEBUG_WW_MUTEX_SLOWPATH is not set +# CONFIG_DEBUG_LOCK_ALLOC is not set +# CONFIG_PROVE_LOCKING is not set +# CONFIG_LOCK_STAT is not set +# CONFIG_DEBUG_ATOMIC_SLEEP is not set +# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set +# CONFIG_LOCK_TORTURE_TEST is not set +# CONFIG_WW_MUTEX_SELFTEST is not set +CONFIG_STACKTRACE=y +# CONFIG_WARN_ALL_UNSEEDED_RANDOM is not set +# CONFIG_DEBUG_KOBJECT is not set +CONFIG_DEBUG_BUGVERBOSE=y +# CONFIG_DEBUG_LIST is not set +# CONFIG_DEBUG_PI_LIST is not set +# CONFIG_DEBUG_SG is not set +# CONFIG_DEBUG_NOTIFIERS is not set +# CONFIG_DEBUG_CREDENTIALS is not set + +# +# RCU Debugging +# +# CONFIG_PROVE_RCU is not set +# CONFIG_TORTURE_TEST is not set +# CONFIG_RCU_PERF_TEST is not set +# CONFIG_RCU_TORTURE_TEST is not set +CONFIG_RCU_CPU_STALL_TIMEOUT=60 +# CONFIG_RCU_TRACE is not set +# CONFIG_RCU_EQS_DEBUG is not set +# CONFIG_DEBUG_WQ_FORCE_RR_CPU is not set +# CONFIG_DEBUG_BLOCK_EXT_DEVT is not set +# CONFIG_CPU_HOTPLUG_STATE_CONTROL is not set +# CONFIG_NOTIFIER_ERROR_INJECTION is not set +# CONFIG_FAULT_INJECTION is not set +# CONFIG_LATENCYTOP is not set +CONFIG_USER_STACKTRACE_SUPPORT=y +CONFIG_NOP_TRACER=y +CONFIG_HAVE_FUNCTION_TRACER=y +CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y +CONFIG_HAVE_DYNAMIC_FTRACE=y +CONFIG_HAVE_DYNAMIC_FTRACE_WITH_REGS=y +CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y +CONFIG_HAVE_SYSCALL_TRACEPOINTS=y +CONFIG_HAVE_FENTRY=y +CONFIG_HAVE_C_RECORDMCOUNT=y +CONFIG_TRACER_MAX_TRACE=y +CONFIG_TRACE_CLOCK=y +CONFIG_RING_BUFFER=y +CONFIG_EVENT_TRACING=y +CONFIG_CONTEXT_SWITCH_TRACER=y +CONFIG_RING_BUFFER_ALLOW_SWAP=y +CONFIG_TRACING=y +CONFIG_GENERIC_TRACER=y +CONFIG_TRACING_SUPPORT=y +CONFIG_FTRACE=y +CONFIG_FUNCTION_TRACER=y +CONFIG_FUNCTION_GRAPH_TRACER=y +# CONFIG_PREEMPTIRQ_EVENTS is not set +# CONFIG_IRQSOFF_TRACER is not set +# CONFIG_PREEMPT_TRACER is not set +CONFIG_SCHED_TRACER=y +# CONFIG_HWLAT_TRACER is not set +CONFIG_FTRACE_SYSCALLS=y +CONFIG_TRACER_SNAPSHOT=y +# CONFIG_TRACER_SNAPSHOT_PER_CPU_SWAP is not set +CONFIG_BRANCH_PROFILE_NONE=y +# CONFIG_PROFILE_ANNOTATED_BRANCHES is not set +# CONFIG_PROFILE_ALL_BRANCHES is not set +CONFIG_STACK_TRACER=y +CONFIG_BLK_DEV_IO_TRACE=y +CONFIG_KPROBE_EVENTS=y +# CONFIG_UPROBE_EVENTS is not set +CONFIG_BPF_EVENTS=y +CONFIG_PROBE_EVENTS=y +CONFIG_DYNAMIC_FTRACE=y +CONFIG_DYNAMIC_FTRACE_WITH_REGS=y +CONFIG_FUNCTION_PROFILER=y +CONFIG_FTRACE_MCOUNT_RECORD=y +# CONFIG_FTRACE_STARTUP_TEST is not set +CONFIG_MMIOTRACE=y +# CONFIG_HIST_TRIGGERS is not set +# CONFIG_MMIOTRACE_TEST is not set +# CONFIG_TRACEPOINT_BENCHMARK is not set +CONFIG_RING_BUFFER_BENCHMARK=m +# CONFIG_RING_BUFFER_STARTUP_TEST is not set +# CONFIG_TRACE_EVAL_MAP_FILE is not set +CONFIG_TRACING_EVENTS_GPIO=y +# CONFIG_PROVIDE_OHCI1394_DMA_INIT is not set +# CONFIG_DMA_API_DEBUG is not set + +# +# Runtime Testing +# +CONFIG_LKDTM=m +# CONFIG_TEST_LIST_SORT is not set +# CONFIG_TEST_SORT is not set +# CONFIG_KPROBES_SANITY_TEST is not set +# CONFIG_BACKTRACE_SELF_TEST is not set +# CONFIG_RBTREE_TEST is not set +# CONFIG_INTERVAL_TREE_TEST is not set +CONFIG_PERCPU_TEST=m +# CONFIG_ATOMIC64_SELFTEST is not set +CONFIG_ASYNC_RAID6_TEST=m +# CONFIG_TEST_HEXDUMP is not set +# CONFIG_TEST_STRING_HELPERS is not set +CONFIG_TEST_KSTRTOX=m +# CONFIG_TEST_PRINTF is not set +# CONFIG_TEST_BITMAP is not set +# CONFIG_TEST_UUID is not set +# CONFIG_TEST_RHASHTABLE is not set +# CONFIG_TEST_HASH is not set +# CONFIG_TEST_PARMAN is not set +# CONFIG_TEST_LKM is not set +# CONFIG_TEST_USER_COPY is not set +# CONFIG_TEST_BPF is not set +# CONFIG_TEST_FIND_BIT is not set +# CONFIG_TEST_FIRMWARE is not set +# CONFIG_TEST_SYSCTL is not set +# CONFIG_TEST_UDELAY is not set +# CONFIG_TEST_STATIC_KEYS is not set +# CONFIG_TEST_KMOD is not set +# CONFIG_MEMTEST is not set +# CONFIG_BUG_ON_DATA_CORRUPTION is not set +# CONFIG_SAMPLES is not set +CONFIG_HAVE_ARCH_KGDB=y +# CONFIG_KGDB is not set +CONFIG_ARCH_HAS_UBSAN_SANITIZE_ALL=y +# CONFIG_ARCH_WANTS_UBSAN_NO_NULL is not set +# CONFIG_UBSAN is not set +CONFIG_ARCH_HAS_DEVMEM_IS_ALLOWED=y +CONFIG_STRICT_DEVMEM=y +# CONFIG_IO_STRICT_DEVMEM is not set +CONFIG_EARLY_PRINTK_USB=y +CONFIG_X86_VERBOSE_BOOTUP=y +CONFIG_EARLY_PRINTK=y +# CONFIG_EARLY_PRINTK_DBGP is not set +CONFIG_EARLY_PRINTK_EFI=y +CONFIG_EARLY_PRINTK_USB_XDBC=y +# CONFIG_X86_PTDUMP_CORE is not set +# CONFIG_X86_PTDUMP is not set +# CONFIG_EFI_PGT_DUMP is not set +# CONFIG_DEBUG_WX is not set +CONFIG_DOUBLEFAULT=y +# CONFIG_DEBUG_TLBFLUSH is not set +# CONFIG_IOMMU_DEBUG is not set +# CONFIG_IOMMU_STRESS is not set +CONFIG_HAVE_MMIOTRACE_SUPPORT=y +# CONFIG_X86_DECODER_SELFTEST is not set +CONFIG_IO_DELAY_TYPE_0X80=0 +CONFIG_IO_DELAY_TYPE_0XED=1 +CONFIG_IO_DELAY_TYPE_UDELAY=2 +CONFIG_IO_DELAY_TYPE_NONE=3 +CONFIG_IO_DELAY_0X80=y +# CONFIG_IO_DELAY_0XED is not set +# CONFIG_IO_DELAY_UDELAY is not set +# CONFIG_IO_DELAY_NONE is not set +CONFIG_DEFAULT_IO_DELAY_TYPE=0 +# CONFIG_DEBUG_BOOT_PARAMS is not set +# CONFIG_CPA_DEBUG is not set +CONFIG_OPTIMIZE_INLINING=y +# CONFIG_DEBUG_ENTRY is not set +# CONFIG_DEBUG_NMI_SELFTEST is not set +# CONFIG_X86_DEBUG_FPU is not set +# CONFIG_PUNIT_ATOM_DEBUG is not set +# CONFIG_UNWINDER_ORC is not set +CONFIG_UNWINDER_FRAME_POINTER=y + +# +# Security options +# +CONFIG_KEYS=y +CONFIG_KEYS_COMPAT=y +CONFIG_PERSISTENT_KEYRINGS=y +# CONFIG_BIG_KEYS is not set +CONFIG_TRUSTED_KEYS=m +CONFIG_ENCRYPTED_KEYS=m +CONFIG_KEY_DH_OPERATIONS=y +# CONFIG_SECURITY_DMESG_RESTRICT is not set +CONFIG_SECURITY=y +# CONFIG_SECURITY_WRITABLE_HOOKS is not set +CONFIG_SECURITYFS=y +CONFIG_SECURITY_NETWORK=y +CONFIG_PAGE_TABLE_ISOLATION=y +# CONFIG_SECURITY_INFINIBAND is not set +CONFIG_SECURITY_NETWORK_XFRM=y +CONFIG_SECURITY_PATH=y +# CONFIG_INTEL_TXT is not set +CONFIG_HAVE_HARDENED_USERCOPY_ALLOCATOR=y +# CONFIG_HARDENED_USERCOPY is not set +CONFIG_FORTIFY_SOURCE=y +# CONFIG_STATIC_USERMODEHELPER is not set +# CONFIG_SECURITY_SELINUX is not set +# CONFIG_SECURITY_SMACK is not set +CONFIG_SECURITY_TOMOYO=y +CONFIG_SECURITY_TOMOYO_MAX_ACCEPT_ENTRY=2048 +CONFIG_SECURITY_TOMOYO_MAX_AUDIT_LOG=1024 +# CONFIG_SECURITY_TOMOYO_OMIT_USERSPACE_LOADER is not set +CONFIG_SECURITY_TOMOYO_POLICY_LOADER="/sbin/tomoyo-init" +CONFIG_SECURITY_TOMOYO_ACTIVATION_TRIGGER="/usr/lib/systemd/systemd" +# CONFIG_SECURITY_APPARMOR is not set +# CONFIG_SECURITY_LOADPIN is not set +CONFIG_SECURITY_YAMA=y +CONFIG_INTEGRITY=y +# CONFIG_INTEGRITY_SIGNATURE is not set +CONFIG_INTEGRITY_AUDIT=y +# CONFIG_IMA is not set +# CONFIG_EVM is not set +# CONFIG_DEFAULT_SECURITY_TOMOYO is not set +CONFIG_DEFAULT_SECURITY_DAC=y +CONFIG_DEFAULT_SECURITY="" +CONFIG_XOR_BLOCKS=m +CONFIG_ASYNC_CORE=m +CONFIG_ASYNC_MEMCPY=m +CONFIG_ASYNC_XOR=m +CONFIG_ASYNC_PQ=m +CONFIG_ASYNC_RAID6_RECOV=m +CONFIG_CRYPTO=y + +# +# Crypto core or helper +# +CONFIG_CRYPTO_ALGAPI=y +CONFIG_CRYPTO_ALGAPI2=y +CONFIG_CRYPTO_AEAD=m +CONFIG_CRYPTO_AEAD2=y +CONFIG_CRYPTO_BLKCIPHER=y +CONFIG_CRYPTO_BLKCIPHER2=y +CONFIG_CRYPTO_HASH=y +CONFIG_CRYPTO_HASH2=y +CONFIG_CRYPTO_RNG=m +CONFIG_CRYPTO_RNG2=y +CONFIG_CRYPTO_RNG_DEFAULT=m +CONFIG_CRYPTO_AKCIPHER2=y +CONFIG_CRYPTO_AKCIPHER=y +CONFIG_CRYPTO_KPP2=y +CONFIG_CRYPTO_KPP=y +CONFIG_CRYPTO_ACOMP2=y +CONFIG_CRYPTO_RSA=y +CONFIG_CRYPTO_DH=y +CONFIG_CRYPTO_ECDH=m +CONFIG_CRYPTO_MANAGER=y +CONFIG_CRYPTO_MANAGER2=y +CONFIG_CRYPTO_USER=m +CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y +CONFIG_CRYPTO_GF128MUL=m +CONFIG_CRYPTO_NULL=m +CONFIG_CRYPTO_NULL2=y +CONFIG_CRYPTO_PCRYPT=m +CONFIG_CRYPTO_WORKQUEUE=y +CONFIG_CRYPTO_CRYPTD=m +CONFIG_CRYPTO_MCRYPTD=m +CONFIG_CRYPTO_AUTHENC=m +CONFIG_CRYPTO_TEST=m +CONFIG_CRYPTO_ABLK_HELPER=m +CONFIG_CRYPTO_SIMD=m +CONFIG_CRYPTO_GLUE_HELPER_X86=m +CONFIG_CRYPTO_ENGINE=m + +# +# Authenticated Encryption with Associated Data +# +CONFIG_CRYPTO_CCM=m +CONFIG_CRYPTO_GCM=m +CONFIG_CRYPTO_CHACHA20POLY1305=m +CONFIG_CRYPTO_SEQIV=m +CONFIG_CRYPTO_ECHAINIV=m + +# +# Block modes +# +CONFIG_CRYPTO_CBC=m +CONFIG_CRYPTO_CTR=m +CONFIG_CRYPTO_CTS=m +CONFIG_CRYPTO_ECB=y +CONFIG_CRYPTO_LRW=m +CONFIG_CRYPTO_PCBC=m +CONFIG_CRYPTO_XTS=m +CONFIG_CRYPTO_KEYWRAP=m + +# +# Hash modes +# +CONFIG_CRYPTO_CMAC=m +CONFIG_CRYPTO_HMAC=y +CONFIG_CRYPTO_XCBC=m +CONFIG_CRYPTO_VMAC=m + +# +# Digest +# +CONFIG_CRYPTO_CRC32C=m +CONFIG_CRYPTO_CRC32C_INTEL=m +CONFIG_CRYPTO_CRC32=m +CONFIG_CRYPTO_CRC32_PCLMUL=m +CONFIG_CRYPTO_CRCT10DIF=y +CONFIG_CRYPTO_CRCT10DIF_PCLMUL=m +CONFIG_CRYPTO_GHASH=m +CONFIG_CRYPTO_POLY1305=m +CONFIG_CRYPTO_POLY1305_X86_64=m +CONFIG_CRYPTO_MD4=m +CONFIG_CRYPTO_MD5=y +CONFIG_CRYPTO_MICHAEL_MIC=m +CONFIG_CRYPTO_RMD128=m +CONFIG_CRYPTO_RMD160=m +CONFIG_CRYPTO_RMD256=m +CONFIG_CRYPTO_RMD320=m +CONFIG_CRYPTO_SHA1=y +CONFIG_CRYPTO_SHA1_SSSE3=m +CONFIG_CRYPTO_SHA256_SSSE3=m +CONFIG_CRYPTO_SHA512_SSSE3=m +CONFIG_CRYPTO_SHA1_MB=m +CONFIG_CRYPTO_SHA256_MB=m +CONFIG_CRYPTO_SHA512_MB=m +CONFIG_CRYPTO_SHA256=y +CONFIG_CRYPTO_SHA512=m +CONFIG_CRYPTO_SHA3=m +# CONFIG_CRYPTO_SM3 is not set +CONFIG_CRYPTO_TGR192=m +CONFIG_CRYPTO_WP512=m +CONFIG_CRYPTO_GHASH_CLMUL_NI_INTEL=m + +# +# Ciphers +# +CONFIG_CRYPTO_AES=y +CONFIG_CRYPTO_AES_TI=m +CONFIG_CRYPTO_AES_X86_64=m +CONFIG_CRYPTO_AES_NI_INTEL=m +CONFIG_CRYPTO_ANUBIS=m +CONFIG_CRYPTO_ARC4=m +CONFIG_CRYPTO_BLOWFISH=m +CONFIG_CRYPTO_BLOWFISH_COMMON=m +CONFIG_CRYPTO_BLOWFISH_X86_64=m +CONFIG_CRYPTO_CAMELLIA=m +CONFIG_CRYPTO_CAMELLIA_X86_64=m +CONFIG_CRYPTO_CAMELLIA_AESNI_AVX_X86_64=m +CONFIG_CRYPTO_CAMELLIA_AESNI_AVX2_X86_64=m +CONFIG_CRYPTO_CAST_COMMON=m +CONFIG_CRYPTO_CAST5=m +CONFIG_CRYPTO_CAST5_AVX_X86_64=m +CONFIG_CRYPTO_CAST6=m +CONFIG_CRYPTO_CAST6_AVX_X86_64=m +CONFIG_CRYPTO_DES=m +CONFIG_CRYPTO_DES3_EDE_X86_64=m +CONFIG_CRYPTO_FCRYPT=m +CONFIG_CRYPTO_KHAZAD=m +CONFIG_CRYPTO_SALSA20=m +CONFIG_CRYPTO_SALSA20_X86_64=m +CONFIG_CRYPTO_CHACHA20=m +CONFIG_CRYPTO_CHACHA20_X86_64=m +CONFIG_CRYPTO_SEED=m +CONFIG_CRYPTO_SERPENT=m +CONFIG_CRYPTO_SERPENT_SSE2_X86_64=m +CONFIG_CRYPTO_SERPENT_AVX_X86_64=m +CONFIG_CRYPTO_SERPENT_AVX2_X86_64=m +CONFIG_CRYPTO_TEA=m +CONFIG_CRYPTO_TWOFISH=m +CONFIG_CRYPTO_TWOFISH_COMMON=m +CONFIG_CRYPTO_TWOFISH_X86_64=m +CONFIG_CRYPTO_TWOFISH_X86_64_3WAY=m +CONFIG_CRYPTO_TWOFISH_AVX_X86_64=m + +# +# Compression +# +CONFIG_CRYPTO_DEFLATE=m +CONFIG_CRYPTO_LZO=y +CONFIG_CRYPTO_842=m +CONFIG_CRYPTO_LZ4=m +CONFIG_CRYPTO_LZ4HC=m + +# +# Random Number Generation +# +CONFIG_CRYPTO_ANSI_CPRNG=m +CONFIG_CRYPTO_DRBG_MENU=m +CONFIG_CRYPTO_DRBG_HMAC=y +CONFIG_CRYPTO_DRBG_HASH=y +CONFIG_CRYPTO_DRBG_CTR=y +CONFIG_CRYPTO_DRBG=m +CONFIG_CRYPTO_JITTERENTROPY=m +CONFIG_CRYPTO_USER_API=m +CONFIG_CRYPTO_USER_API_HASH=m +CONFIG_CRYPTO_USER_API_SKCIPHER=m +CONFIG_CRYPTO_USER_API_RNG=m +CONFIG_CRYPTO_USER_API_AEAD=m +CONFIG_CRYPTO_HASH_INFO=y +CONFIG_CRYPTO_HW=y +CONFIG_CRYPTO_DEV_PADLOCK=m +CONFIG_CRYPTO_DEV_PADLOCK_AES=m +CONFIG_CRYPTO_DEV_PADLOCK_SHA=m +# CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API_DESC is not set +CONFIG_CRYPTO_DEV_CCP=y +CONFIG_CRYPTO_DEV_CCP_DD=m +CONFIG_CRYPTO_DEV_SP_CCP=y +CONFIG_CRYPTO_DEV_CCP_CRYPTO=m +CONFIG_CRYPTO_DEV_QAT=m +CONFIG_CRYPTO_DEV_QAT_DH895xCC=m +CONFIG_CRYPTO_DEV_QAT_C3XXX=m +CONFIG_CRYPTO_DEV_QAT_C62X=m +CONFIG_CRYPTO_DEV_QAT_DH895xCCVF=m +CONFIG_CRYPTO_DEV_QAT_C3XXXVF=m +CONFIG_CRYPTO_DEV_QAT_C62XVF=m +# CONFIG_CRYPTO_DEV_NITROX_CNN55XX is not set +# CONFIG_CRYPTO_DEV_CHELSIO is not set +CONFIG_CRYPTO_DEV_VIRTIO=m +CONFIG_ASYMMETRIC_KEY_TYPE=y +CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE=y +CONFIG_X509_CERTIFICATE_PARSER=y +CONFIG_PKCS7_MESSAGE_PARSER=y +# CONFIG_PKCS7_TEST_KEY is not set +# CONFIG_SIGNED_PE_FILE_VERIFICATION is not set + +# +# Certificates for signature checking +# +CONFIG_SYSTEM_TRUSTED_KEYRING=y +CONFIG_SYSTEM_TRUSTED_KEYS="" +# CONFIG_SYSTEM_EXTRA_CERTIFICATE is not set +# CONFIG_SECONDARY_TRUSTED_KEYRING is not set +# CONFIG_SYSTEM_BLACKLIST_KEYRING is not set +CONFIG_HAVE_KVM=y +CONFIG_HAVE_KVM_IRQCHIP=y +CONFIG_HAVE_KVM_IRQFD=y +CONFIG_HAVE_KVM_IRQ_ROUTING=y +CONFIG_HAVE_KVM_EVENTFD=y +CONFIG_KVM_MMIO=y +CONFIG_KVM_ASYNC_PF=y +CONFIG_HAVE_KVM_MSI=y +CONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT=y +CONFIG_KVM_VFIO=y +CONFIG_KVM_GENERIC_DIRTYLOG_READ_PROTECT=y +CONFIG_KVM_COMPAT=y +CONFIG_HAVE_KVM_IRQ_BYPASS=y +CONFIG_VIRTUALIZATION=y +CONFIG_KVM=m +CONFIG_KVM_INTEL=m +CONFIG_KVM_AMD=m +CONFIG_KVM_MMU_AUDIT=y +CONFIG_VHOST_NET=m +CONFIG_VHOST_SCSI=m +CONFIG_VHOST_VSOCK=m +CONFIG_VHOST=m +# CONFIG_VHOST_CROSS_ENDIAN_LEGACY is not set +CONFIG_BINARY_PRINTF=y + +# +# Library routines +# +CONFIG_RAID6_PQ=m +CONFIG_BITREVERSE=y +# CONFIG_HAVE_ARCH_BITREVERSE is not set +CONFIG_RATIONAL=y +CONFIG_GENERIC_STRNCPY_FROM_USER=y +CONFIG_GENERIC_STRNLEN_USER=y +CONFIG_GENERIC_NET_UTILS=y +CONFIG_GENERIC_FIND_FIRST_BIT=y +CONFIG_GENERIC_PCI_IOMAP=y +CONFIG_GENERIC_IOMAP=y +CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y +CONFIG_ARCH_HAS_FAST_MULTIPLIER=y +CONFIG_CRC_CCITT=y +CONFIG_CRC16=m +CONFIG_CRC_T10DIF=y +CONFIG_CRC_ITU_T=m +CONFIG_CRC32=y +# CONFIG_CRC32_SELFTEST is not set +CONFIG_CRC32_SLICEBY8=y +# CONFIG_CRC32_SLICEBY4 is not set +# CONFIG_CRC32_SARWATE is not set +# CONFIG_CRC32_BIT is not set +CONFIG_CRC4=m +CONFIG_CRC7=m +CONFIG_LIBCRC32C=m +CONFIG_CRC8=m +CONFIG_XXHASH=m +# CONFIG_AUDIT_ARCH_COMPAT_GENERIC is not set +# CONFIG_RANDOM32_SELFTEST is not set +CONFIG_842_COMPRESS=m +CONFIG_842_DECOMPRESS=m +CONFIG_ZLIB_INFLATE=y +CONFIG_ZLIB_DEFLATE=y +CONFIG_LZO_COMPRESS=y +CONFIG_LZO_DECOMPRESS=y +CONFIG_LZ4_COMPRESS=m +CONFIG_LZ4HC_COMPRESS=m +CONFIG_LZ4_DECOMPRESS=y +CONFIG_ZSTD_COMPRESS=m +CONFIG_ZSTD_DECOMPRESS=m +CONFIG_XZ_DEC=y +CONFIG_XZ_DEC_X86=y +CONFIG_XZ_DEC_POWERPC=y +CONFIG_XZ_DEC_IA64=y +CONFIG_XZ_DEC_ARM=y +CONFIG_XZ_DEC_ARMTHUMB=y +CONFIG_XZ_DEC_SPARC=y +CONFIG_XZ_DEC_BCJ=y +# CONFIG_XZ_DEC_TEST is not set +CONFIG_DECOMPRESS_GZIP=y +CONFIG_DECOMPRESS_BZIP2=y +CONFIG_DECOMPRESS_LZMA=y +CONFIG_DECOMPRESS_XZ=y +CONFIG_DECOMPRESS_LZO=y +CONFIG_DECOMPRESS_LZ4=y +CONFIG_GENERIC_ALLOCATOR=y +CONFIG_REED_SOLOMON=y +CONFIG_REED_SOLOMON_ENC8=y +CONFIG_REED_SOLOMON_DEC8=y +CONFIG_TEXTSEARCH=y +CONFIG_TEXTSEARCH_KMP=m +CONFIG_TEXTSEARCH_BM=m +CONFIG_TEXTSEARCH_FSM=m +CONFIG_BTREE=y +CONFIG_INTERVAL_TREE=y +CONFIG_RADIX_TREE_MULTIORDER=y +CONFIG_ASSOCIATIVE_ARRAY=y +CONFIG_HAS_IOMEM=y +CONFIG_HAS_IOPORT_MAP=y +CONFIG_HAS_DMA=y +# CONFIG_DMA_NOOP_OPS is not set +CONFIG_DMA_VIRT_OPS=y +CONFIG_CHECK_SIGNATURE=y +CONFIG_CPU_RMAP=y +CONFIG_DQL=y +CONFIG_GLOB=y +# CONFIG_GLOB_SELFTEST is not set +CONFIG_NLATTR=y +CONFIG_LRU_CACHE=m +CONFIG_CLZ_TAB=y +CONFIG_CORDIC=m +CONFIG_DDR=y +CONFIG_IRQ_POLL=y +CONFIG_MPILIB=y +CONFIG_OID_REGISTRY=y +CONFIG_UCS2_STRING=y +CONFIG_FONT_SUPPORT=y +CONFIG_FONTS=y +# CONFIG_FONT_8x8 is not set +CONFIG_FONT_8x16=y +# CONFIG_FONT_6x11 is not set +# CONFIG_FONT_7x14 is not set +# CONFIG_FONT_PEARL_8x8 is not set +# CONFIG_FONT_ACORN_8x8 is not set +# CONFIG_FONT_MINI_4x6 is not set +# CONFIG_FONT_6x10 is not set +# CONFIG_FONT_10x18 is not set +# CONFIG_FONT_SUN8x16 is not set +# CONFIG_FONT_SUN12x22 is not set +CONFIG_FONT_AUTOSELECT=y +# CONFIG_SG_SPLIT is not set +CONFIG_SG_POOL=y +CONFIG_ARCH_HAS_SG_CHAIN=y +CONFIG_ARCH_HAS_PMEM_API=y +CONFIG_ARCH_HAS_UACCESS_FLUSHCACHE=y +CONFIG_SBITMAP=y +CONFIG_PARMAN=m +# CONFIG_STRING_SELFTEST is not set diff --git a/talimatname/genel/k/kernel/config.aufs b/talimatname/genel/k/kernel/config.aufs new file mode 100644 index 000000000..faec0f9a1 --- /dev/null +++ b/talimatname/genel/k/kernel/config.aufs @@ -0,0 +1,21 @@ +CONFIG_AUFS_FS=m +CONFIG_AUFS_BRANCH_MAX_127=y +# CONFIG_AUFS_BRANCH_MAX_511 is not set +# CONFIG_AUFS_BRANCH_MAX_1023 is not set +# CONFIG_AUFS_BRANCH_MAX_32767 is not set +CONFIG_AUFS_SBILIST=y +CONFIG_AUFS_HNOTIFY=y +CONFIG_AUFS_HFSNOTIFY=y +CONFIG_AUFS_EXPORT=y +CONFIG_AUFS_INO_T_64=y +# CONFIG_AUFS_FHSM is not set +# CONFIG_AUFS_XATTR is not set +CONFIG_AUFS_RDU=y +# CONFIG_AUFS_DIRREN is not set +CONFIG_AUFS_SHWH=y +CONFIG_AUFS_BR_RAMFS=y +CONFIG_AUFS_BR_FUSE=y +CONFIG_AUFS_POLL=y +CONFIG_AUFS_BR_HFSPLUS=y +CONFIG_AUFS_BDEV_LOOP=y +# CONFIG_AUFS_DEBUG is not set diff --git a/talimatname/genel/k/kernel/create-aufs.sh b/talimatname/genel/k/kernel/create-aufs.sh new file mode 100755 index 000000000..b9871c72c --- /dev/null +++ b/talimatname/genel/k/kernel/create-aufs.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +rm -Rf aufs4-standalone +# clone the aufs repository to the local disk +git clone git://github.com/sfjro/aufs4-standalone.git aufs4-standalone +cd aufs4-standalone +git branch -r +git checkout origin/aufs4.13 + +# modify what you want + +# and after +# create the patch with the directories: fs, include and Documentation + +rm -v $(find . -type f -name '*.orig') +grep -qse 'EXPORT_SYMBOL(' aufs4-standalone.patch && \ +sed -i-old -e 's|EXPORT_SYMBOL(|EXPORT_SYMBOL_GPL(|' aufs4-standalone.patch +rm -rf ../tmp/linux-4.13 +mkdir -p ../tmp/linux-4.13 +cp -a fs ../tmp/linux-4.13 +cp -a include ../tmp/linux-4.13 +cp -a Documentation ../tmp/linux-4.13 +rm ../tmp/linux-4.13/include/uapi/linux/Kbuild +cd ../tmp +diff -Naur null linux-4.13 | filterdiff | \ +sed -e 's|null\(/include/uapi/linux/Kbuild\)|linux-4.13-old\1|;s|^--- null.*|--- /dev/null|;\|linux-4.13/include/uapi/linux/Kbuild|,${\|@@ -0,0 +1 @@|,$d}' \ +| bzip2 > aufs$(sed -ne 's|#define.*AUFS_VERSION.*"\(.*\)"|\1|p' linux-4.13/include/uapi/linux/aufs_type.h).patch.bz2 +mv *.bz2 $OLDPWD +cd $OLDPWD +mv *patch* .. +cd .. +rm -rf tmp aufs4-standalone + + +# the patch is created in ../tmp +# the other patches needed to compile are in the base directory diff --git a/talimatname/genel/k/kernel/kernel.kos-sil b/talimatname/genel/k/kernel/kernel.kos-sil new file mode 100644 index 000000000..b7b10b372 --- /dev/null +++ b/talimatname/genel/k/kernel/kernel.kos-sil @@ -0,0 +1,8 @@ +#!/bin/sh +for _kurtar in \ +'/boot/grub' ; \ +do +# -sz ve -g den sonra /tmp/$paket.sil dikkate alınır +sed -i '\|'\'$_kurtar\''|d' /tmp/kernel.sil + +done diff --git a/talimatname/genel/k/kernel/kernel.kur-kos b/talimatname/genel/k/kernel/kernel.kur-kos new file mode 100644 index 000000000..58f3a6f27 --- /dev/null +++ b/talimatname/genel/k/kernel/kernel.kur-kos @@ -0,0 +1,24 @@ +#!/bin/bash +surum=4.15.7 +sonek=milis +depmod ${surum}-$sonek +cd /boot +[ -L /boot/kernel ] && rm -rf /boot/kernel +ln -s kernel-$surum kernel +if [ -f initramfs ];then + mv initramfs initramfs_eski +fi + +[ -f /usr/bin/dracut ] && dracut -N --force --xz --omit systemd --add-drivers "ahci" -f /boot/initramfs $surum-$sonek +[ -f /usr/bin/os-prober ] && os-prober + +mkdir -p /boot/grub +if [ -f /boot/grub/grub.cfg ];then + mv /boot/grub/grub.cfg /boot/grub/grub.cfg.eski +fi +[ ! -f /boot/grub/grub.cfg.new ] && cp /etc/default/grub/grub.cfg /boot/grub/grub.cfg.new +[ ! -d /boot/grub/i386-pc ] && cp -r /usr/lib/grub/i386-pc /boot/grub/ +[ ! -f /boot/grub/unicode.pf2 ] && cp /usr/share/grub/unicode.pf2 /boot/grub/ +grub-mkconfig -o /boot/grub/grub.cfg + +cd - diff --git a/talimatname/genel/k/kernel/talimat b/talimatname/genel/k/kernel/talimat new file mode 100644 index 000000000..a45cccea0 --- /dev/null +++ b/talimatname/genel/k/kernel/talimat @@ -0,0 +1,212 @@ +# Tanım: Kararli kernel sürümü +# URL: http://www.kernel.org +# Paketçi: milisarge +# Gerekler: linux-firmware intel-ucode + +isim=kernel +_basekernel=4.15 +surum=4.15.7 +devir=1 + +kaynak=(http://www.kernel.org/pub/linux/kernel/v4.x/linux-$_basekernel.tar.xz + http://www.kernel.org/pub/linux/kernel/v4.x/patch-${surum}.xz + config + aufs4-loopback.patch + aufs4-base.patch + aufs4-mmap.patch + aufs4-standalone.patch + aufs4-kbuild.patch + aufs4.patch + config.aufs + tmpfs-idr.patch + vfs-ino.patch) + + +derle() { + + cd "${SRC}/linux-$_basekernel" + cp "${SRC}/patch-$surum.xz" . + unxz patch-$surum.xz + # güncel kernel yama + patch -p1 -i "patch-${surum}" + + # güvenli kernel yaması + #patch -p1 -i "${SRC}/linux-hardened-${surum}.a.patch" + + #çalışan sistem aufs yamaları + patch -p1 -i "${SRC}/aufs4.patch" + patch -p1 -i "${SRC}/aufs4-base.patch" + patch -p1 -i "${SRC}/aufs4-kbuild.patch" + patch -p1 -i "${SRC}/aufs4-loopback.patch" + patch -p1 -i "${SRC}/aufs4-mmap.patch" + patch -p1 -i "${SRC}/aufs4-standalone.patch" + patch -p1 -i "${SRC}/tmpfs-idr.patch" + patch -p1 -i "${SRC}/vfs-ino.patch" + + cat "${SRC}/config" > ./.config + + cat "${SRC}/config.aufs" >> ./.config + + # kernel sürümüne devir sayısı eklemek için + # set extraversion to release + #sed -ri "s|^(EXTRAVERSION =).*|\1 -${devir}|" Makefile + + cd "${SRC}/linux-${_basekernel}" + + export KBUILD_BUILD_USER="milisarge" + export KBUILD_BUILD_HOST="`uname -m`.milislinux.org" + + # ayarları onaylama + yes "" | make oldconfig >/dev/null + + # derleme + make ${MAKEFLAGS} bzImage modules || make ${MAKEFLAGS} bzImage modules + + KARCH=x86 + + # get kernel version + #_kernver="$(make kernelrelease)" + #KERNEL_VERSION="${surum}-milis" + _kernver="${surum}-milis" + mkdir -p "${PKG}"/{lib/modules,lib/firmware,boot} + make INSTALL_MOD_PATH="${PKG}" modules_install + cp arch/$KARCH/boot/bzImage "${PKG}/boot/kernel-${surum}" + + # vmlinux un source a eklenmesi,modül derlerken bu geçici silinecek + install -D -m644 vmlinux "${PKG}/usr/src/linux-${_kernver}/vmlinux" + + # derleme kalıntılarının temizlenmesi + rm -f "${PKG}"/lib/modules/${_kernver}/{source,build} + # firmwarelerin temizlenmesi + rm -rf "${PKG}/lib/firmware" + # modüllerin sıkıştırılarak ek yer kazanılması + find "${PKG}" -name '*.ko' -exec gzip -9 {} \; + + #linux-headers / linux modülleri + + install -dm755 "${PKG}/lib/modules/${_kernver}" + + cd "${PKG}/lib/modules/${_kernver}" + ln -sf ../../../usr/src/linux-${_kernver} build + + cd "${SRC}/linux-${_basekernel}" + install -D -m644 Makefile \ + "${PKG}/usr/src/linux-${_kernver}/Makefile" + install -D -m644 kernel/Makefile \ + "${PKG}/usr/src/linux-${_kernver}/kernel/Makefile" + install -D -m644 .config \ + "${PKG}/usr/src/linux-${_kernver}/.config" + + ###################### + mkdir -p "${PKG}/usr/src/linux-${_kernver}/include" + + for i in acpi asm-generic config crypto drm generated linux math-emu \ + media net pcmcia scsi rdma soc sound trace uapi video xen; do + cp -a include/${i} "${PKG}/usr/src/linux-${_kernver}/include/" + done + + # copy arch includes for external modules + mkdir -p "${PKG}/usr/src/linux-${_kernver}/arch/x86" + cp -a arch/x86/include "${PKG}/usr/src/linux-${_kernver}/arch/x86/" + + # copy files necessary for later builds, like nvidia and vmware + cp Module.symvers "${PKG}/usr/src/linux-${_kernver}" + cp -a scripts "${PKG}/usr/src/linux-${_kernver}" + + # fix permissions on scripts dir + chmod og-w -R "${PKG}/usr/src/linux-${_kernver}/scripts" + mkdir -p "${PKG}/usr/src/linux-${_kernver}/.tmp_versions" + + mkdir -p "${PKG}/usr/src/linux-${_kernver}/arch/${KARCH}/kernel" + + cp arch/${KARCH}/Makefile "${PKG}/usr/src/linux-${_kernver}/arch/${KARCH}/" + + cp arch/${KARCH}/kernel/asm-offsets.s "${PKG}/usr/src/linux-${_kernver}/arch/${KARCH}/kernel/" + + # add headers for lirc package + # pci + for i in bt8xx cx88 saa7134; do + mkdir -p "${PKG}/usr/src/linux-${_kernver}/drivers/media/pci/${i}" + cp -a drivers/media/pci/${i}/*.h "${PKG}/usr/src/linux-${_kernver}/drivers/media/pci/${i}" + done + # usb + for i in cpia2 em28xx pwc; do + mkdir -p "${PKG}/usr/src/linux-${_kernver}/drivers/media/usb/${i}" + cp -a drivers/media/usb/${i}/*.h "${PKG}/usr/src/linux-${_kernver}/drivers/media/usb/${i}" + done + # i2c + mkdir -p "${PKG}/usr/src/linux-${_kernver}/drivers/media/i2c" + cp drivers/media/i2c/*.h "${PKG}/usr/src/linux-${_kernver}/drivers/media/i2c/" + for i in cx25840; do + mkdir -p "${PKG}/usr/src/linux-${_kernver}/drivers/media/i2c/${i}" + cp -a drivers/media/i2c/${i}/*.h "${PKG}/usr/src/linux-${_kernver}/drivers/media/i2c/${i}" + done + + # add docbook makefile + #install -D -m644 Documentation/DocBook/Makefile \ + # "${PKG}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile" + + # add dm headers + mkdir -p "${PKG}/usr/src/linux-${_kernver}/drivers/md" + cp drivers/md/*.h "${PKG}/usr/src/linux-${_kernver}/drivers/md" + + # add inotify.h + mkdir -p "${PKG}/usr/src/linux-${_kernver}/include/linux" + cp include/linux/inotify.h "${PKG}/usr/src/linux-${_kernver}/include/linux/" + + # add wireless headers + mkdir -p "${PKG}/usr/src/linux-${_kernver}/net/mac80211/" + cp net/mac80211/*.h "${PKG}/usr/src/linux-${_kernver}/net/mac80211/" + + # add dvb headers for external modules + mkdir -p "${PKG}/usr/src/linux-${_kernver}/drivers/media/dvb-core" + cp drivers/media/dvb-core/*.h "${PKG}/usr/src/linux-${_kernver}/drivers/media/dvb-core/" + # and... + mkdir -p "${PKG}/usr/src/linux-${_kernver}/include/config/dvb/" + cp include/config/dvb/*.h "${PKG}/usr/src/linux-${_kernver}/include/config/dvb/" + + # add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new + mkdir -p "${PKG}/usr/src/linux-${_kernver}/drivers/media/dvb-frontends/" + cp drivers/media/dvb-frontends/lgdt330x.h "${PKG}/usr/src/linux-${_kernver}/drivers/media/dvb-frontends/" + cp drivers/media/i2c/msp3400-driver.h "${PKG}/usr/src/linux-${_kernver}/drivers/media/i2c/" + + # add dvb headers + mkdir -p "${PKG}/usr/src/linux-${_kernver}/drivers/media/usb/dvb-usb" + cp drivers/media/usb/dvb-usb/*.h "${PKG}/usr/src/linux-${_kernver}/drivers/media/usb/dvb-usb/" + mkdir -p "${PKG}/usr/src/linux-${_kernver}/drivers/media/dvb-frontends" + cp drivers/media/dvb-frontends/*.h "${PKG}/usr/src/linux-${_kernver}/drivers/media/dvb-frontends/" + mkdir -p "${PKG}/usr/src/linux-${_kernver}/drivers/media/tuners" + cp drivers/media/tuners/*.h "${PKG}/usr/src/linux-${_kernver}/drivers/media/tuners/" + + # add xfs and shmem for aufs building + mkdir -p "${PKG}/usr/src/linux-${_kernver}/fs/xfs/libxfs" + mkdir -p "${PKG}/usr/src/linux-${_kernver}/mm" + cp fs/xfs/libxfs/xfs_sb.h "${PKG}/usr/src/linux-${_kernver}/fs/xfs/libxfs/xfs_sb.h" + + #aufs4-util need + sed -i "s:__user::g" "${PKG}/usr/src/linux-${_kernver}/include/uapi/linux/aufs_type.h" + + # copy in Kconfig files + for i in `find . -name "Kconfig*"`; do + mkdir -p "${PKG}"/usr/src/linux-${_kernver}/`echo ${i} | sed 's|/Kconfig.*||'` + cp ${i} "${PKG}/usr/src/linux-${_kernver}/${i}" + done + + chown -R root.root "${PKG}/usr/src/linux-${_kernver}" + find "${PKG}/usr/src/linux-${_kernver}" -type d -exec chmod 755 {} \; + + # strip scripts directory + find "${PKG}/usr/src/linux-${_kernver}/scripts" -type f -perm -u+w 2>/dev/null | while read binary ; do + case "$(file -bi "${binary}")" in + *application/x-sharedlib*) # Libraries (.so) + /usr/bin/strip ${STRIP_SHARED} "${binary}";; + *application/x-archive*) # Libraries (.a) + /usr/bin/strip ${STRIP_STATIC} "${binary}";; + *application/x-executable*) # Binaries + /usr/bin/strip ${STRIP_BINARIES} "${binary}";; + esac + done + + # remove unneeded architectures + rm -rf "${PKG}"/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,arm64,avr32,blackfin,c6x,cris,frv,h8300,hexagon,ia64,m32r,m68k,m68knommu,mips,microblaze,mn10300,openrisc,parisc,powerpc,ppc,s390,score,sh,sh64,sparc,sparc64,tile,unicore32,um,v850,xtensa} +} diff --git a/talimatname/genel/k/kernel/tmpfs-idr.patch b/talimatname/genel/k/kernel/tmpfs-idr.patch new file mode 100644 index 000000000..ec610557a --- /dev/null +++ b/talimatname/genel/k/kernel/tmpfs-idr.patch @@ -0,0 +1,225 @@ +SPDX-License-Identifier: GPL-2.0 +diff --git a/include/linux/shmem_fs.h b/include/linux/shmem_fs.h +index 06b295b..45e4de6 100644 +--- a/include/linux/shmem_fs.h ++++ b/include/linux/shmem_fs.h +@@ -25,10 +25,13 @@ struct shmem_inode_info { + }; + + struct shmem_sb_info { ++ struct mutex idr_lock; ++ bool idr_nouse; ++ struct idr idr; /* manages inode-number */ + unsigned long max_blocks; /* How many blocks are allowed */ + struct percpu_counter used_blocks; /* How many are allocated */ +- unsigned long max_inodes; /* How many inodes are allowed */ +- unsigned long free_inodes; /* How many are left for allocation */ ++ int max_inodes; /* How many inodes are allowed */ ++ int free_inodes; /* How many are left for allocation */ + spinlock_t stat_lock; /* Serialize shmem_sb_info changes */ + umode_t mode; /* Mount mode for root directory */ + unsigned char huge; /* Whether to try for hugepages */ +diff --git a/mm/shmem.c b/mm/shmem.c +index 7fbe67b..f6695c1 100644 +--- a/mm/shmem.c ++++ b/mm/shmem.c +@@ -111,9 +111,13 @@ static unsigned long shmem_default_max_blocks(void) + return totalram_pages / 2; + } + +-static unsigned long shmem_default_max_inodes(void) ++static int shmem_default_max_inodes(void) + { +- return min(totalram_pages - totalhigh_pages, totalram_pages / 2); ++ unsigned long ul; ++ ++ ul = INT_MAX; ++ ul = min3(ul, totalram_pages - totalhigh_pages, totalram_pages / 2); ++ return ul; + } + #endif + +@@ -1082,6 +1086,11 @@ static void shmem_evict_inode(struct inode *inode) + + simple_xattrs_free(&info->xattrs); + WARN_ON(inode->i_blocks); ++ if (!sbinfo->idr_nouse && inode->i_ino) { ++ mutex_lock(&sbinfo->idr_lock); ++ idr_remove(&sbinfo->idr, inode->i_ino); ++ mutex_unlock(&sbinfo->idr_lock); ++ } + shmem_free_inode(inode->i_sb); + clear_inode(inode); + } +@@ -2150,13 +2159,13 @@ static struct inode *shmem_get_inode(struct super_block *sb, const struct inode + struct inode *inode; + struct shmem_inode_info *info; + struct shmem_sb_info *sbinfo = SHMEM_SB(sb); ++ int ino; + + if (shmem_reserve_inode(sb)) + return NULL; + + inode = new_inode(sb); + if (inode) { +- inode->i_ino = get_next_ino(); + inode_init_owner(inode, dir, mode); + inode->i_blocks = 0; + inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); +@@ -2198,6 +2207,25 @@ static struct inode *shmem_get_inode(struct super_block *sb, const struct inode + mpol_shared_policy_init(&info->policy, NULL); + break; + } ++ ++ if (!sbinfo->idr_nouse) { ++ /* inum 0 and 1 are unused */ ++ mutex_lock(&sbinfo->idr_lock); ++ ino = idr_alloc(&sbinfo->idr, inode, 2, INT_MAX, ++ GFP_NOFS); ++ if (ino > 0) { ++ inode->i_ino = ino; ++ mutex_unlock(&sbinfo->idr_lock); ++ __insert_inode_hash(inode, inode->i_ino); ++ } else { ++ inode->i_ino = 0; ++ mutex_unlock(&sbinfo->idr_lock); ++ iput(inode); ++ /* shmem_free_inode() will be called */ ++ inode = NULL; ++ } ++ } else ++ inode->i_ino = get_next_ino(); + } else + shmem_free_inode(sb); + return inode; +@@ -3397,8 +3425,7 @@ static struct dentry *shmem_get_parent(struct dentry *child) + static int shmem_match(struct inode *ino, void *vfh) + { + __u32 *fh = vfh; +- __u64 inum = fh[2]; +- inum = (inum << 32) | fh[1]; ++ __u64 inum = fh[1]; + return ino->i_ino == inum && fh[0] == ino->i_generation; + } + +@@ -3409,14 +3436,11 @@ static struct dentry *shmem_fh_to_dentry(struct super_block *sb, + struct dentry *dentry = NULL; + u64 inum; + +- if (fh_len < 3) ++ if (fh_len < 2) + return NULL; + +- inum = fid->raw[2]; +- inum = (inum << 32) | fid->raw[1]; +- +- inode = ilookup5(sb, (unsigned long)(inum + fid->raw[0]), +- shmem_match, fid->raw); ++ inum = fid->raw[1]; ++ inode = ilookup5(sb, inum, shmem_match, fid->raw); + if (inode) { + dentry = d_find_alias(inode); + iput(inode); +@@ -3428,30 +3452,15 @@ static struct dentry *shmem_fh_to_dentry(struct super_block *sb, + static int shmem_encode_fh(struct inode *inode, __u32 *fh, int *len, + struct inode *parent) + { +- if (*len < 3) { +- *len = 3; ++ if (*len < 2) { ++ *len = 2; + return FILEID_INVALID; + } + +- if (inode_unhashed(inode)) { +- /* Unfortunately insert_inode_hash is not idempotent, +- * so as we hash inodes here rather than at creation +- * time, we need a lock to ensure we only try +- * to do it once +- */ +- static DEFINE_SPINLOCK(lock); +- spin_lock(&lock); +- if (inode_unhashed(inode)) +- __insert_inode_hash(inode, +- inode->i_ino + inode->i_generation); +- spin_unlock(&lock); +- } +- + fh[0] = inode->i_generation; + fh[1] = inode->i_ino; +- fh[2] = ((__u64)inode->i_ino) >> 32; + +- *len = 3; ++ *len = 2; + return 1; + } + +@@ -3515,7 +3524,7 @@ static int shmem_parse_options(char *options, struct shmem_sb_info *sbinfo, + goto bad_val; + } else if (!strcmp(this_char,"nr_inodes")) { + sbinfo->max_inodes = memparse(value, &rest); +- if (*rest) ++ if (*rest || sbinfo->max_inodes < 2) + goto bad_val; + } else if (!strcmp(this_char,"mode")) { + if (remount) +@@ -3580,7 +3589,7 @@ static int shmem_remount_fs(struct super_block *sb, int *flags, char *data) + { + struct shmem_sb_info *sbinfo = SHMEM_SB(sb); + struct shmem_sb_info config = *sbinfo; +- unsigned long inodes; ++ int inodes; + int error = -EINVAL; + + config.mpol = NULL; +@@ -3629,7 +3638,7 @@ static int shmem_show_options(struct seq_file *seq, struct dentry *root) + seq_printf(seq, ",size=%luk", + sbinfo->max_blocks << (PAGE_SHIFT - 10)); + if (sbinfo->max_inodes != shmem_default_max_inodes()) +- seq_printf(seq, ",nr_inodes=%lu", sbinfo->max_inodes); ++ seq_printf(seq, ",nr_inodes=%d", sbinfo->max_inodes); + if (sbinfo->mode != (S_IRWXUGO | S_ISVTX)) + seq_printf(seq, ",mode=%03ho", sbinfo->mode); + if (!uid_eq(sbinfo->uid, GLOBAL_ROOT_UID)) +@@ -3747,6 +3756,8 @@ static void shmem_put_super(struct super_block *sb) + { + struct shmem_sb_info *sbinfo = SHMEM_SB(sb); + ++ if (!sbinfo->idr_nouse) ++ idr_destroy(&sbinfo->idr); + percpu_counter_destroy(&sbinfo->used_blocks); + mpol_put(sbinfo->mpol); + kfree(sbinfo); +@@ -3765,6 +3776,8 @@ int shmem_fill_super(struct super_block *sb, void *data, int silent) + if (!sbinfo) + return -ENOMEM; + ++ mutex_init(&sbinfo->idr_lock); ++ idr_init(&sbinfo->idr); + sbinfo->mode = S_IRWXUGO | S_ISVTX; + sbinfo->uid = current_fsuid(); + sbinfo->gid = current_fsgid(); +@@ -3872,6 +3885,15 @@ static void shmem_destroy_inodecache(void) + kmem_cache_destroy(shmem_inode_cachep); + } + ++static __init void shmem_no_idr(struct super_block *sb) ++{ ++ struct shmem_sb_info *sbinfo; ++ ++ sbinfo = SHMEM_SB(sb); ++ sbinfo->idr_nouse = true; ++ idr_destroy(&sbinfo->idr); ++} ++ + static const struct address_space_operations shmem_aops = { + .writepage = shmem_writepage, + .set_page_dirty = __set_page_dirty_no_writeback, +@@ -4002,6 +4024,7 @@ int __init shmem_init(void) + pr_err("Could not kern_mount tmpfs\n"); + goto out1; + } ++ shmem_no_idr(shm_mnt->mnt_sb); + + #ifdef CONFIG_TRANSPARENT_HUGE_PAGECACHE + if (has_transparent_hugepage() && shmem_huge > SHMEM_HUGE_DENY) diff --git a/talimatname/genel/k/kernel/vfs-ino.patch b/talimatname/genel/k/kernel/vfs-ino.patch new file mode 100644 index 000000000..4b7b944d3 --- /dev/null +++ b/talimatname/genel/k/kernel/vfs-ino.patch @@ -0,0 +1,23 @@ +SPDX-License-Identifier: GPL-2.0 +diff --git a/fs/inode.c b/fs/inode.c +index 03102d6..a0b03c7 100644 +--- a/fs/inode.c ++++ b/fs/inode.c +@@ -856,6 +856,8 @@ unsigned int get_next_ino(void) + unsigned int *p = &get_cpu_var(last_ino); + unsigned int res = *p; + ++start: ++ + #ifdef CONFIG_SMP + if (unlikely((res & (LAST_INO_BATCH-1)) == 0)) { + static atomic_t shared_last_ino; +@@ -868,7 +870,7 @@ unsigned int get_next_ino(void) + res++; + /* get_next_ino should not provide a 0 inode number */ + if (unlikely(!res)) +- res++; ++ goto start; + *p = res; + put_cpu_var(last_ino); + return res; diff --git a/talimatname/genel/k/keybinder/talimat b/talimatname/genel/k/keybinder/talimat new file mode 100644 index 000000000..22427d78c --- /dev/null +++ b/talimatname/genel/k/keybinder/talimat @@ -0,0 +1,18 @@ +# Tanım: Genel tuş vuruşlarını kaydetmek için bir kütüphane +# URL: https://github.com/engla/keybinder +# Paketçi: milisarge +# Gerekler: gtk2 python-gtk gobject-introspection + +isim=keybinder +surum=0.3.1 +devir=1 + +kaynak=(https://github.com/engla/$isim/releases/download/v$surum/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --libexecdir=/usr/lib/$isim --sysconfdir=/etc + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/gtk-doc +} diff --git a/talimatname/genel/k/keybinder3/talimat b/talimatname/genel/k/keybinder3/talimat new file mode 100644 index 000000000..b23e1d7dd --- /dev/null +++ b/talimatname/genel/k/keybinder3/talimat @@ -0,0 +1,18 @@ +# Tanım: Genel klavye kısayollarını kaydetmek için bir kütüphane +# URL: https://github.com/engla/keybinder/tree/keybinder-3.0 +# Paketçi: Cihan_Alkan +# Gerekler: gobject-introspection gtk3 +# Grup: kütüphane + +isim=keybinder3 +surum=0.3.2 +devir=1 +kaynak=(https://github.com/kupferlauncher/keybinder/releases/download/keybinder-3.0-v$surum/keybinder-3.0-$surum.tar.gz) + +derle() { + cd keybinder-3.0-$surum + ./configure --prefix=/usr + make + make DESTDIR="$PKG" install + install -Dm644 COPYING "$PKG/usr/share/licenses/$isim/LICENSE" +} diff --git a/talimatname/genel/k/keyutils/talimat b/talimatname/genel/k/keyutils/talimat new file mode 100644 index 000000000..8a1df4e0d --- /dev/null +++ b/talimatname/genel/k/keyutils/talimat @@ -0,0 +1,18 @@ +# Tanım: Keyutils, çekirdekte anahtar tutma yerini yönetmek için kullanılan bir dizi araçtır. +# URL: https://rhn.redhat.com/errata/RHEA-2006-0090.html +# Paketçi: milisarge +# Gerekler: + +isim=keyutils +surum=1.5.9 +devir=1 + +kaynak=( http://people.redhat.com/~dhowells/$isim/$isim-$surum.tar.bz2 ) + +derle() { + unset MAKEFLAGS + cd $isim-$surum + sed -i "s/-O2/${CFLAGS}/" Makefile + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kf5-attica/talimat b/talimatname/genel/k/kf5-attica/talimat new file mode 100644 index 000000000..42d98b0ea --- /dev/null +++ b/talimatname/genel/k/kf5-attica/talimat @@ -0,0 +1,24 @@ +# Tanım: Açık İşbirliği Hizmetleri API'sı +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules qt5 +# Grup: kde + +isim=kf5-attica +surum=5.41.0 +devir=1 +_isim=attica +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-baloo/kf5-baloo.kur-kos b/talimatname/genel/k/kf5-baloo/kf5-baloo.kur-kos new file mode 100644 index 000000000..297ac603c --- /dev/null +++ b/talimatname/genel/k/kf5-baloo/kf5-baloo.kur-kos @@ -0,0 +1,2 @@ +[[ -x xdg-icon-resource ]] && xdg-icon-resource forceupdate --theme hicolor &> /dev/null || true + diff --git a/talimatname/genel/k/kf5-baloo/talimat b/talimatname/genel/k/kf5-baloo/talimat new file mode 100644 index 000000000..a519175a5 --- /dev/null +++ b/talimatname/genel/k/kf5-baloo/talimat @@ -0,0 +1,25 @@ +# Tanım: Meta verileri aramak ve yönetmek için bir çerçeve +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: lmdb attr kf5-kauth kf5-kcrash kf5-kconfig kf5-kcoreaddons kf5-kcrash kf5-kdbusaddons kf5-kfilemetadata kf5-ki18n kf5-kidletime kf5-kio kf5-solid hicolor-icon-theme xdg-utils +# Grup: kde + +isim=kf5-baloo +surum=5.41.0 +devir=1 +_isim=baloo +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-bluez-qt/talimat b/talimatname/genel/k/kf5-bluez-qt/talimat new file mode 100644 index 000000000..52d5d094b --- /dev/null +++ b/talimatname/genel/k/kf5-bluez-qt/talimat @@ -0,0 +1,25 @@ +# Tanım: BlueZ 5 DBus API için Qt sarmalayıcı +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules qt5 +# Grup: kde + +isim=kf5-bluez-qt +surum=5.41.0 +devir=1 +_isim=bluez-qt +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-breeze-icons/talimat b/talimatname/genel/k/kf5-breeze-icons/talimat new file mode 100644 index 000000000..4ce49a6f7 --- /dev/null +++ b/talimatname/genel/k/kf5-breeze-icons/talimat @@ -0,0 +1,24 @@ +# Tanım: Kf5 için Breeze Icon Teması +# URL: https://www.kde.org/ +# Paketçi: milisarge +# Gerekler: cmake, qt5, kf5-extra-cmake-modules +# Grup: kde + +isim=kf5-breeze-icons +surum=5.41.0 +devir=1 +_isim=breeze-icons +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-extra-cmake-modules/talimat b/talimatname/genel/k/kf5-extra-cmake-modules/talimat new file mode 100644 index 000000000..463f19536 --- /dev/null +++ b/talimatname/genel/k/kf5-extra-cmake-modules/talimat @@ -0,0 +1,21 @@ +# Tanım: Tüm KDE Framework'ler tarafından kullanılan ekstra CMake modülleri 5 paketi +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: cmake + +isim=kf5-extra-cmake-modules +surum=5.41.0 +devir=1 +_isim=extra-cmake-modules +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DECM_MKSPECS_INSTALL_DIR=/usr/lib/qt5/mkspecs + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kf5-frameworkintegration/talimat b/talimatname/genel/k/kf5-frameworkintegration/talimat new file mode 100644 index 000000000..d0939efee --- /dev/null +++ b/talimatname/genel/k/kf5-frameworkintegration/talimat @@ -0,0 +1,24 @@ +# Tanım: Uygulamaların bir KDE Çalışma Alanıyla bütünleşmesine izin veren bileşenler sağlayan çerçeve +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kcompletion kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-ki18n kf5-kiconthemes kf5-kio kf5-kjobwidgets kf5-knotifications kf5-kwidgetsaddons kf5-kxmlgui qt5 libxcb xorg-libxcursor noto-fonts + +isim=kf5-frameworkintegration +surum=5.41.0 +devir=1 +_isim=frameworkintegration +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kactivities-stats/talimat b/talimatname/genel/k/kf5-kactivities-stats/talimat new file mode 100644 index 000000000..99f25eb58 --- /dev/null +++ b/talimatname/genel/k/kf5-kactivities-stats/talimat @@ -0,0 +1,27 @@ +# Tanım: Aktivite sistemi tarafından toplanan kullanım verilerine erişmek için bir kütüphane +# URL: https://community.kde.org/Frameworks +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules boost kf5-kactivities +# Grup: kde + +isim=kf5-kactivities-stats +surum=5.41.0 +devir=1 +_isim=kactivities-stats +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +mkdir build +cd build +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev .. +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kactivities/talimat b/talimatname/genel/k/kf5-kactivities/talimat new file mode 100644 index 000000000..407c6f2e1 --- /dev/null +++ b/talimatname/genel/k/kf5-kactivities/talimat @@ -0,0 +1,27 @@ +# Tanım: Çalışma zamanını ve kütüphaneyi kullanıcı faaliyetlerini ayrı etkinlikler halinde organize etmek için +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: qt5 boost kf5-kcmutils kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-kdbusaddons kf5-kdeclarative kf5-kglobalaccel kf5-ki18n kf5-kio kf5-kservice kf5-kwindowsystem kf5-kxmlgui +# Grup: kde + +isim=kf5-kactivities +surum=5.41.0 +devir=1 +_isim=kactivities +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +mkdir build +cd build +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev .. +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kapidox/talimat b/talimatname/genel/k/kf5-kapidox/talimat new file mode 100644 index 000000000..a8682f8ce --- /dev/null +++ b/talimatname/genel/k/kf5-kapidox/talimat @@ -0,0 +1,23 @@ +# Tanım: Çerçeveler API Belgeleri Araçları +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-attica doxygen python-pyyaml +# Grup: kde + +isim=kf5-kapidox +surum=5.41.0 +devir=1 +_isim=kapidox +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -Wno-dev +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-karchive/talimat b/talimatname/genel/k/kf5-karchive/talimat new file mode 100644 index 000000000..a163f7443 --- /dev/null +++ b/talimatname/genel/k/kf5-karchive/talimat @@ -0,0 +1,24 @@ +# Tanım: Çeşitli arşiv türlerine erişim sağlayan Qt 5 eklentisi +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules qt5 bzip2 xz zlib + +isim=kf5-karchive +surum=5.41.0 +devir=1 +_isim=karchive +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kauth/talimat b/talimatname/genel/k/kf5-kauth/talimat new file mode 100644 index 000000000..56e925f29 --- /dev/null +++ b/talimatname/genel/k/kf5-kauth/talimat @@ -0,0 +1,24 @@ +# Tanım: Sistem politikası ve kimlik doğrulama özelliklerinin soyutlanması +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kcoreaddons polkit-qt5 + +isim=kf5-kauth +surum=5.41.0 +devir=1 +_isim=kauth +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kbookmarks/talimat b/talimatname/genel/k/kf5-kbookmarks/talimat new file mode 100644 index 000000000..b319e0145 --- /dev/null +++ b/talimatname/genel/k/kf5-kbookmarks/talimat @@ -0,0 +1,25 @@ +# Tanım: Yer imleri ve XBEL formatı desteği +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: qt5 kf5-kcodecs kf5-kconfig kf5-kcoreaddons kf5-kiconthemes kf5-kwidgetsaddons kf5-kconfigwidgets kf5-kxmlgui +# Grup: kde + +isim=kf5-kbookmarks +surum=5.41.0 +devir=1 +_isim=kbookmarks +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kcmutils/talimat b/talimatname/genel/k/kf5-kcmutils/talimat new file mode 100644 index 000000000..6e86f7f40 --- /dev/null +++ b/talimatname/genel/k/kf5-kcmutils/talimat @@ -0,0 +1,27 @@ +# Tanım: KCModules ile etkileşim kurmak için kullanılan yardımcı programlar +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: qt5 kf5-kauth kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-kdeclarative kf5-ki18n kf5-kiconthemes kf5-kitemviews kf5-kservice kf5-kwidgetsaddons kf5-kxmlgui pciutils +# Grup: kde + +isim=kf5-kcmutils +surum=5.41.0 +devir=1 +_isim=kcmutils +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kcodecs/talimat b/talimatname/genel/k/kf5-kcodecs/talimat new file mode 100644 index 000000000..d4ce9337a --- /dev/null +++ b/talimatname/genel/k/kf5-kcodecs/talimat @@ -0,0 +1,25 @@ +# Tanım: Çeşitli kodlamaları kullanarak dizeleri işlemek için bir yöntem koleksiyonu sağlayın +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules qt5 + +isim=kf5-kcodecs +surum=5.41.0 +devir=1 +_isim=kcodecs +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kcompletion/talimat b/talimatname/genel/k/kf5-kcompletion/talimat new file mode 100644 index 000000000..ea3da07ad --- /dev/null +++ b/talimatname/genel/k/kf5-kcompletion/talimat @@ -0,0 +1,26 @@ +# Tanım: Metin tamamlama yardımcıları ve widget'ları +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: qt5 kf5-kconfig kf5-kwidgetsaddons +# Grup: kde + +isim=kf5-kcompletion +surum=5.41.0 +devir=1 +_isim=kcompletion +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum + +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kconfig/talimat b/talimatname/genel/k/kf5-kconfig/talimat new file mode 100644 index 000000000..7a46c6107 --- /dev/null +++ b/talimatname/genel/k/kf5-kconfig/talimat @@ -0,0 +1,25 @@ +# Tanım: Konfigürasyon sistemi +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules qt5 + +isim=kf5-kconfig +surum=5.41.0 +devir=1 +_isim=kconfig +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kconfigwidgets/talimat b/talimatname/genel/k/kf5-kconfigwidgets/talimat new file mode 100644 index 000000000..2ef0df656 --- /dev/null +++ b/talimatname/genel/k/kf5-kconfigwidgets/talimat @@ -0,0 +1,26 @@ +# Tanım: KConfig için Widget'lar +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kauth kf5-kcodecs kf5-kconfig kf5-kcoreaddons kf5-kguiaddons kf5-ki18n kf5-kwidgetsaddons kf5-kdoctools +# Grup: kde + +isim=kf5-kconfigwidgets +surum=5.41.0 +devir=1 +_isim=kconfigwidgets +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kcoreaddons/kf5-kcoreaddons.kur-kos b/talimatname/genel/k/kf5-kcoreaddons/kf5-kcoreaddons.kur-kos new file mode 100644 index 000000000..7a6305a73 --- /dev/null +++ b/talimatname/genel/k/kf5-kcoreaddons/kf5-kcoreaddons.kur-kos @@ -0,0 +1 @@ +update-mime-database /usr/share/mime > /dev/null diff --git a/talimatname/genel/k/kf5-kcoreaddons/talimat b/talimatname/genel/k/kf5-kcoreaddons/talimat new file mode 100644 index 000000000..07a20df29 --- /dev/null +++ b/talimatname/genel/k/kf5-kcoreaddons/talimat @@ -0,0 +1,25 @@ +# Tanım: QtCore'a Eklentiler +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules qt5 shared-mime-info + +isim=kf5-kcoreaddons +surum=5.41.0 +devir=1 +_isim=kcoreaddons +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kcrash/talimat b/talimatname/genel/k/kf5-kcrash/talimat new file mode 100644 index 000000000..b90ff3f4e --- /dev/null +++ b/talimatname/genel/k/kf5-kcrash/talimat @@ -0,0 +1,26 @@ +# Tanım: Uygulamalardan gelen uygulama çöküş analizi ve hata raporu için destek +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kcoreaddons kf5-kwindowsystem + +isim=kf5-kcrash +surum=5.41.0 +devir=1 +_isim=kcrash +_surum=5.41 + +kaynak=(http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { + + cd ${_isim}-$surum + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kdbusaddons/talimat b/talimatname/genel/k/kf5-kdbusaddons/talimat new file mode 100644 index 000000000..978e4183e --- /dev/null +++ b/talimatname/genel/k/kf5-kdbusaddons/talimat @@ -0,0 +1,25 @@ +# Tanım: QtDBus'a eklentiler +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules qt5 + +isim=kf5-kdbusaddons +surum=5.41.0 +devir=1 +_isim=kdbusaddons +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kdeclarative/talimat b/talimatname/genel/k/kf5-kdeclarative/talimat new file mode 100644 index 000000000..4edb9bea2 --- /dev/null +++ b/talimatname/genel/k/kf5-kdeclarative/talimat @@ -0,0 +1,26 @@ +# Tanım: QML ve KDE Framework'lerin entegrasyonunu sağlar +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kconfig kf5-kcoreaddons kf5-kglobalaccel kf5-ki18n kf5-kiconthemes kf5-kio kf5-kpackage kf5-kservice kf5-kwidgetsaddons kf5-kwindowsystem kf5-kcompletion libepoxy +# Grup: kde + +isim=kf5-kdeclarative +surum=5.41.0 +devir=1 +_isim=kdeclarative +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kded/talimat b/talimatname/genel/k/kf5-kded/talimat new file mode 100644 index 000000000..2fec43b89 --- /dev/null +++ b/talimatname/genel/k/kf5-kded/talimat @@ -0,0 +1,26 @@ +# Tanım: Sistem düzeyinde hizmetler sağlamak için genişletilebilir arka plan programı +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kconfig kf5-kcoreaddons kf5-kcrash kf5-kdbusaddons kf5-kinit kf5-kservice kf5-kdoctools +# Grup: kde + +isim=kf5-kded +surum=5.41.0 +devir=1 +_isim=kded +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kdelibs4support/talimat b/talimatname/genel/k/kf5-kdelibs4support/talimat new file mode 100644 index 000000000..34b3134db --- /dev/null +++ b/talimatname/genel/k/kf5-kdelibs4support/talimat @@ -0,0 +1,29 @@ +# Tanım: KDELibs4'ten yardım taşıma. +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kded kf5-kauth kf5-kcodecs kf5-kcompletion kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-kcrash kf5-kdbusaddons kf5-kdesignerplugin kf5-kglobalaccel kf5-kguiaddons kf5-ki18n kf5-kiconthemes kf5-kio kf5-kitemviews kf5-kjobwidgets kf5-knotifications kf5-kparts kf5-kservice kf5-ktextwidgets kf5-kunitconversion kf5-kwidgetsaddons kf5-kwindowsystem kf5-kxmlgui kf5-solid kf5-kdoctools kf5-kemoticons kf5-kinit kf5-kitemmodels kf5-kdoctools openssl perl-uri +# Grup: kde + +isim=kf5-kdelibs4support +surum=5.41.0 +devir=1 +_isim=kdelibs4support +_surum=5.41 +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/portingAids/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum + +sed -i "s:4.2:4.5:g" cmake/FindDocBookXML4.cmake + +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install + +} + diff --git a/talimatname/genel/k/kf5-kdesignerplugin/talimat b/talimatname/genel/k/kf5-kdesignerplugin/talimat new file mode 100644 index 000000000..a45514bd6 --- /dev/null +++ b/talimatname/genel/k/kf5-kdesignerplugin/talimat @@ -0,0 +1,26 @@ +# Tanım: Frameworks widget'larının Qt Tasarım/Oluşturucu'da entegrasyonu. +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kcompletion kf5-kconfigwidgets kf5-kiconthemes kf5-kio kf5-kitemviews kf5-kplotting kf5-ktextwidgets kf5-kxmlgui kf5-sonnet kf5-kdewebkit kf5-kdoctools +# Grup: kde + +isim=kf5-kdesignerplugin +surum=5.41.0 +devir=1 +_isim=kdesignerplugin +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kdesu/talimat b/talimatname/genel/k/kf5-kdesu/talimat new file mode 100644 index 000000000..0e048c5c6 --- /dev/null +++ b/talimatname/genel/k/kf5-kdesu/talimat @@ -0,0 +1,26 @@ +# Tanım: Yüksek ayrıcalıklar için su ile entegrasyon +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kconfig kf5-kcoreaddons kf5-ki18n kf5-kservice kf5-kpty +# Grup: kde + +isim=kf5-kdesu +surum=5.41.0 +devir=1 +_isim=kdesu +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kdewebkit/talimat b/talimatname/genel/k/kf5-kdewebkit/talimat new file mode 100644 index 000000000..43c10175b --- /dev/null +++ b/talimatname/genel/k/kf5-kdewebkit/talimat @@ -0,0 +1,27 @@ +# Tanım: QtWebKit için KDE Entegrasyonu +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: qt5-webkit kf5-kconfig kf5-kcoreaddons kf5-kio kf5-kjobwidgets kf5-kparts kf5-kservice kf5-kwallet +# Grup: kde + +isim=kf5-kdewebkit +surum=5.41.0 +devir=1 +_isim=kdewebkit +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kdnssd/talimat b/talimatname/genel/k/kf5-kdnssd/talimat new file mode 100644 index 000000000..433c9d375 --- /dev/null +++ b/talimatname/genel/k/kf5-kdnssd/talimat @@ -0,0 +1,26 @@ +# Tanım: Sistem DNSSD özelliklerinin soyutlanması +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules qt5 avahi +# Grup: kde + +isim=kf5-kdnssd +surum=5.41.0 +devir=1 +_isim=kdnssd +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kdoctools/talimat b/talimatname/genel/k/kf5-kdoctools/talimat new file mode 100644 index 000000000..8aa65cf0a --- /dev/null +++ b/talimatname/genel/k/kf5-kdoctools/talimat @@ -0,0 +1,26 @@ +# Tanım: DocBook'tan dokümantasyon yarat +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-karchive docbook-xml docbook-xsl libxslt perl-uri kf5-ki18n +# Grup: kde + +isim=kf5-kdoctools +surum=5.41.0 +devir=1 +_isim=kdoctools +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kemoticons/talimat b/talimatname/genel/k/kf5-kemoticons/talimat new file mode 100644 index 000000000..e62fff36a --- /dev/null +++ b/talimatname/genel/k/kf5-kemoticons/talimat @@ -0,0 +1,25 @@ +# Tanım: İfadeler ve ifade temaları için destek +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-karchive kf5-kconfig kf5-kcoreaddons kf5-kservice + +isim=kf5-kemoticons +surum=5.41.0 +devir=1 +_isim=kemoticons +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kfilemetadata/talimat b/talimatname/genel/k/kf5-kfilemetadata/talimat new file mode 100644 index 000000000..a79cc6da2 --- /dev/null +++ b/talimatname/genel/k/kf5-kfilemetadata/talimat @@ -0,0 +1,25 @@ +# Tanım: Dosya meta verilerini ayıklamak için bir kütüphane +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-karchive kf5-ki18n ebook-tools exiv2 ffmpeg poppler-qt5 taglib +# Grup: kde + +isim=kf5-kfilemetadata +surum=5.41.0 +devir=1 +_isim=kfilemetadata +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd $_isim-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kf5-kglobalaccel/talimat b/talimatname/genel/k/kf5-kglobalaccel/talimat new file mode 100644 index 000000000..58fffb2cf --- /dev/null +++ b/talimatname/genel/k/kf5-kglobalaccel/talimat @@ -0,0 +1,25 @@ +# Tanım: Genel çalışma alanı kısayolları için destek ekleyin +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kconfig kf5-kcoreaddons kf5-kcrash kf5-kdbusaddons kf5-kwindowsystem libxcb xcb-util-keysyms + +isim=kf5-kglobalaccel +surum=5.41.0 +devir=1 +_isim=kglobalaccel +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kguiaddons/talimat b/talimatname/genel/k/kf5-kguiaddons/talimat new file mode 100644 index 000000000..13f3f3069 --- /dev/null +++ b/talimatname/genel/k/kf5-kguiaddons/talimat @@ -0,0 +1,25 @@ +# Tanım: QtGui'ye eklentiler +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules qt5 + +isim=kf5-kguiaddons +surum=5.41.0 +devir=1 +_isim=kguiaddons +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-khtml/talimat b/talimatname/genel/k/kf5-khtml/talimat new file mode 100644 index 000000000..91107132d --- /dev/null +++ b/talimatname/genel/k/kf5-khtml/talimat @@ -0,0 +1,26 @@ +# Tanım: KHTML API'leri +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-karchive kf5-kcodecs kf5-kcompletion kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-kglobalaccel kf5-ki18n kf5-kiconthemes kf5-kio kf5-kjobwidgets kf5-kjs kf5-knotifications kf5-kparts kf5-kservice kf5-ktextwidgets kf5-kwallet kf5-kwidgetsaddons kf5-kwindowsystem kf5-kxmlgui kf5-sonnet giflib libjpeg-turbo libpng phonon-qt5 giflib openssl +# Grup: kde + +isim=kf5-khtml +surum=5.41.0 +devir=1 +_isim=khtml +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/portingAids/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-ki18n/kf5-ki18n.kos-kur b/talimatname/genel/k/kf5-ki18n/kf5-ki18n.kos-kur new file mode 100644 index 000000000..ac1fee209 --- /dev/null +++ b/talimatname/genel/k/kf5-ki18n/kf5-ki18n.kos-kur @@ -0,0 +1 @@ +mkdir -p /usr/share/locale diff --git a/talimatname/genel/k/kf5-ki18n/talimat b/talimatname/genel/k/kf5-ki18n/talimat new file mode 100644 index 000000000..06bee63ad --- /dev/null +++ b/talimatname/genel/k/kf5-ki18n/talimat @@ -0,0 +1,25 @@ +# Tanım: Gelişmiş uluslararasılaşma çerçevesi +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules qt5 + +isim=kf5-ki18n +surum=5.41.0 +devir=1 +_isim=ki18n +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kiconthemes/talimat b/talimatname/genel/k/kf5-kiconthemes/talimat new file mode 100644 index 000000000..c8f33648b --- /dev/null +++ b/talimatname/genel/k/kf5-kiconthemes/talimat @@ -0,0 +1,26 @@ +# Tanım: Simge temaları için destek +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-ki18n kf5-kitemviews kf5-kwidgetsaddons +# Grup: kde + +isim=kf5-kiconthemes +surum=5.41.0 +devir=1 +_isim=kiconthemes +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kidletime/talimat b/talimatname/genel/k/kf5-kidletime/talimat new file mode 100644 index 000000000..06018f48f --- /dev/null +++ b/talimatname/genel/k/kf5-kidletime/talimat @@ -0,0 +1,26 @@ +# Tanım: Kullanıcı etkinliğini izleme +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules qt5 +# Grup: kde + +isim=kf5-kidletime +surum=5.41.0 +devir=1 +_isim=kidletime +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kimageformats/talimat b/talimatname/genel/k/kf5-kimageformats/talimat new file mode 100644 index 000000000..abd190952 --- /dev/null +++ b/talimatname/genel/k/kf5-kimageformats/talimat @@ -0,0 +1,26 @@ +# Tanım: Qt5 için görüntü formatı eklentileri +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules qt5 jasper openexr kf5-karchive +# Grup: kde + +isim=kf5-kimageformats +surum=5.41.0 +devir=1 +_isim=kimageformats +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kinit/talimat b/talimatname/genel/k/kf5-kinit/talimat new file mode 100644 index 000000000..fdfe2172f --- /dev/null +++ b/talimatname/genel/k/kf5-kinit/talimat @@ -0,0 +1,26 @@ +# Tanım: KDE uygulamalarını başlatmayı hızlandırmak için işlem başlatıcısı +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kconfig kf5-kcoreaddons kf5-kcrash kf5-ki18n kf5-kservice kf5-kwindowsystem libcap kf5-kio +# Grup: kde + +isim=kf5-kinit +surum=5.41.0 +devir=1 +_isim=kinit +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kio/kf5-kio.kur-kos b/talimatname/genel/k/kf5-kio/kf5-kio.kur-kos new file mode 100644 index 000000000..ede5eb8d0 --- /dev/null +++ b/talimatname/genel/k/kf5-kio/kf5-kio.kur-kos @@ -0,0 +1,2 @@ +update-desktop-database -q + diff --git a/talimatname/genel/k/kf5-kio/talimat b/talimatname/genel/k/kf5-kio/talimat new file mode 100644 index 000000000..2aaa58e7e --- /dev/null +++ b/talimatname/genel/k/kf5-kio/talimat @@ -0,0 +1,26 @@ +# Tanım: Kaynak ve ağ erişimi soyutlama +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: desktop-file-utils kf5-attica kf5-kbookmarks kf5-kjobwidgets kf5-kwallet kf5-solid kerberos +# Grup: kde + +isim=kf5-kio +surum=5.41.0 +devir=1 +_isim=kio +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kitemmodels/talimat b/talimatname/genel/k/kf5-kitemmodels/talimat new file mode 100644 index 000000000..51a74f059 --- /dev/null +++ b/talimatname/genel/k/kf5-kitemmodels/talimat @@ -0,0 +1,26 @@ +# Tanım: Qt Model / Görünüm sistemi için modeller +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules qt5 +# Grup: kde + +isim=kf5-kitemmodels +surum=5.41.0 +devir=1 +_isim=kitemmodels +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kitemviews/talimat b/talimatname/genel/k/kf5-kitemviews/talimat new file mode 100644 index 000000000..f4acde9cb --- /dev/null +++ b/talimatname/genel/k/kf5-kitemviews/talimat @@ -0,0 +1,26 @@ +# Tanım: Qt Model / Görünüm için Widget eklentileri +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules qt5 +# Grup: kde + +isim=kf5-kitemviews +surum=5.41.0 +devir=1 +_isim=kitemviews +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kjobwidgets/talimat b/talimatname/genel/k/kf5-kjobwidgets/talimat new file mode 100644 index 000000000..575f2bf1a --- /dev/null +++ b/talimatname/genel/k/kf5-kjobwidgets/talimat @@ -0,0 +1,26 @@ +# Tanım: İş örneklerini izlemek için kullanılan widget'lar +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kcoreaddons kf5-kwidgetsaddons +# Grup: kde + +isim=kf5-kjobwidgets +surum=5.41.0 +devir=1 +_isim=kjobwidgets +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kjs/talimat b/talimatname/genel/k/kf5-kjs/talimat new file mode 100644 index 000000000..4aeb36f7b --- /dev/null +++ b/talimatname/genel/k/kf5-kjs/talimat @@ -0,0 +1,26 @@ +# Tanım: Uygulamalarda JS betiğini destekleme +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kdoctools pcre +# Grup: kde + +isim=kf5-kjs +surum=5.41.0 +devir=1 +_isim=kjs +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/portingAids/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kjsembed/talimat b/talimatname/genel/k/kf5-kjsembed/talimat new file mode 100644 index 000000000..43c1957ae --- /dev/null +++ b/talimatname/genel/k/kf5-kjsembed/talimat @@ -0,0 +1,26 @@ +# Tanım: KSJEmbed, JavaScript nesnelerini QObjects'e bağlama yöntemi sunar, böylece uygulamalarınızı komut dosyasına yazabilirsiniz. +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-ki18n kf5-kjs kf5-kdoctools +# Grup: kde + +isim=kf5-kjsembed +surum=5.41.0 +devir=1 +_isim=kjsembed +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/portingAids/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kmediaplayer/talimat b/talimatname/genel/k/kf5-kmediaplayer/talimat new file mode 100644 index 000000000..d073c3144 --- /dev/null +++ b/talimatname/genel/k/kf5-kmediaplayer/talimat @@ -0,0 +1,26 @@ +# Tanım: Medya oynatıcı özellikleri için eklenti arayüzü +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kparts kf5-kxmlgui +# Grup: kde + +isim=kf5-kmediaplayer +surum=5.41.0 +devir=1 +_isim=kmediaplayer +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/portingAids/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-knewstuff/talimat b/talimatname/genel/k/kf5-knewstuff/talimat new file mode 100644 index 000000000..a7474db1c --- /dev/null +++ b/talimatname/genel/k/kf5-knewstuff/talimat @@ -0,0 +1,26 @@ +# Tanım: Uygulama varlıklarını ağdan indirmeye destek +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-attica kf5-karchive kf5-kcompletion kf5-kconfig kf5-kcoreaddons kf5-ki18n kf5-kiconthemes kf5-kio kf5-kitemviews kf5-kservice kf5-ktextwidgets kf5-kxmlgui +# Grup: kde + +isim=kf5-knewstuff +surum=5.41.0 +devir=1 +_isim=knewstuff +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-knotifications/talimat b/talimatname/genel/k/kf5-knotifications/talimat new file mode 100644 index 000000000..61b048a13 --- /dev/null +++ b/talimatname/genel/k/kf5-knotifications/talimat @@ -0,0 +1,26 @@ +# Tanım: Sistem bildirimleri için soyutlama +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kcodecs kf5-kconfig kf5-kcoreaddons kf5-kwindowsystem phonon-qt5 libdbusmenu-qt5 +# Grup: kde + +isim=kf5-knotifications +surum=5.41.0 +devir=1 +_isim=knotifications +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-knotifyconfig/talimat b/talimatname/genel/k/kf5-knotifyconfig/talimat new file mode 100644 index 000000000..02b4c0f3f --- /dev/null +++ b/talimatname/genel/k/kf5-knotifyconfig/talimat @@ -0,0 +1,26 @@ +# Tanım: KNotify için yapılandırma sistemi +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kcompletion kf5-kconfig kf5-ki18n kf5-kio phonon-qt5 +# Grup: kde + +isim=kf5-knotifyconfig +surum=5.41.0 +devir=1 +_isim=knotifyconfig +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kpackage/talimat b/talimatname/genel/k/kf5-kpackage/talimat new file mode 100644 index 000000000..f0f48885a --- /dev/null +++ b/talimatname/genel/k/kf5-kpackage/talimat @@ -0,0 +1,26 @@ +# Tanım: Uygulamaların, ikili olmayan öğelerin kullanıcı tarafından kurulabilir paketlerini yönetmesine olanak sağlayan çerçeve +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kdoctools kf5-karchive kf5-ki18n kf5-kcoreaddons kf5-kconfig +# Grup: kde + +isim=kf5-kpackage +surum=5.41.0 +devir=1 +_isim=kpackage +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kparts/talimat b/talimatname/genel/k/kf5-kparts/talimat new file mode 100644 index 000000000..0ec36fb80 --- /dev/null +++ b/talimatname/genel/k/kf5-kparts/talimat @@ -0,0 +1,26 @@ +# Tanım: Doküman merkezli eklenti sistemi +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kconfig kf5-kcoreaddons kf5-ki18n kf5-kiconthemes kf5-kio kf5-kjobwidgets kf5-knotifications kf5-kservice kf5-kwidgetsaddons kf5-kxmlgui kf5-ktextwidgets +# Grup: kde + +isim=kf5-kparts +surum=5.41.0 +devir=1 +_isim=kparts +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kpeople/talimat b/talimatname/genel/k/kf5-kpeople/talimat new file mode 100644 index 000000000..31dc44248 --- /dev/null +++ b/talimatname/genel/k/kf5-kpeople/talimat @@ -0,0 +1,25 @@ +# Tanım: Tüm kişilere ve onları tutan insanlara erişimi sağlayan bir kütüphane +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kconfig kf5-kcoreaddons kf5-ki18n kf5-kitemviews kf5-kservice kf5-kwidgetsaddons + +isim=kf5-kpeople +surum=5.41.0 +devir=1 +_isim=kpeople +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kplotting/talimat b/talimatname/genel/k/kf5-kplotting/talimat new file mode 100644 index 000000000..00836a512 --- /dev/null +++ b/talimatname/genel/k/kf5-kplotting/talimat @@ -0,0 +1,26 @@ +# Tanım: Hafif plotlama çerçevesi +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules qt5 +# Grup: kde + +isim=kf5-kplotting +surum=5.41.0 +devir=1 +_isim=kplotting +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kprison/talimat b/talimatname/genel/k/kf5-kprison/talimat new file mode 100644 index 000000000..21d3ff979 --- /dev/null +++ b/talimatname/genel/k/kf5-kprison/talimat @@ -0,0 +1,24 @@ +# Tanım: QRCode barkodları ve DataMatrix barkodları üretmek için bir barkod API sı +# URL: https://www.kde.org/ +# Paketçi: Cihan_Alkan +# Gerekler: libdmtx qrencode kf5-extra-cmake-modules doxygen qt5 +# Grup: kde + +isim=kf5-kprison +surum=5.41.0 +devir=1 +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/prison-$surum.tar.xz) + +derle() { +cd prison-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kf5-kpty/talimat b/talimatname/genel/k/kf5-kpty/talimat new file mode 100644 index 000000000..836d8c48b --- /dev/null +++ b/talimatname/genel/k/kf5-kpty/talimat @@ -0,0 +1,25 @@ +# Tanım: Pty soyutlama +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28 +# Gerekler: kf5-kcoreaddons kf5-ki18n + +isim=kf5-kpty +surum=5.41.0 +devir=1 +_isim=kpty +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kross/talimat b/talimatname/genel/k/kf5-kross/talimat new file mode 100644 index 000000000..198d3499f --- /dev/null +++ b/talimatname/genel/k/kf5-kross/talimat @@ -0,0 +1,26 @@ +# Tanım: Çok dilli uygulama betiği +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kcompletion kf5-kcoreaddons kf5-ki18n kf5-kiconthemes kf5-kio kf5-kparts kf5-kwidgetsaddons kf5-kxmlgui kf5-kdoctools +# Grup: kde + +isim=kf5-kross +surum=5.41.0 +devir=1 +_isim=kross +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/portingAids/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-krunner/talimat b/talimatname/genel/k/kf5-krunner/talimat new file mode 100644 index 000000000..54687f558 --- /dev/null +++ b/talimatname/genel/k/kf5-krunner/talimat @@ -0,0 +1,25 @@ +# Tanım: Bir dize sorgusu verilen farklı eylemler sağlamak için çerçeve +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kconfig kf5-kcoreaddons kf5-ki18n kf5-kio kf5-kservice kf5-plasma-framework kf5-solid kf5-threadweaver +# Grup: kde + +isim=kf5-krunner +surum=5.41.0 +devir=1 +_isim=krunner +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kf5-kservice/talimat b/talimatname/genel/k/kf5-kservice/talimat new file mode 100644 index 000000000..ed39179ea --- /dev/null +++ b/talimatname/genel/k/kf5-kservice/talimat @@ -0,0 +1,26 @@ +# Tanım: Gelişmiş eklenti ve servis içgözlemi +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kconfig kf5-kcoreaddons kf5-kcrash kf5-kdbusaddons kf5-ki18n kf5-kdoctools +# Grup: kde + +isim=kf5-kservice +surum=5.41.0 +devir=1 +_isim=kservice +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-ktexteditor/talimat b/talimatname/genel/k/kf5-ktexteditor/talimat new file mode 100644 index 000000000..5a3120af3 --- /dev/null +++ b/talimatname/genel/k/kf5-ktexteditor/talimat @@ -0,0 +1,26 @@ +# Tanım: Gelişmiş gömülebilir metin editörü +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28 +# Gerekler: kf5-karchive kf5-kcodecs kf5-kcompletion kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-kguiaddons kf5-ki18n kf5-kiconthemes kf5-kio kf5-kitemviews kf5-kjobwidgets kf5-kparts kf5-ktextwidgets kf5-kwidgetsaddons kf5-kxmlgui kf5-sonnet +# Grup: kde + +isim=kf5-ktexteditor +surum=5.41.0 +devir=1 +_isim=ktexteditor +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-ktextwidgets/talimat b/talimatname/genel/k/kf5-ktextwidgets/talimat new file mode 100644 index 000000000..7634e3ee7 --- /dev/null +++ b/talimatname/genel/k/kf5-ktextwidgets/talimat @@ -0,0 +1,26 @@ +# Tanım: Gelişmiş metin düzenleme widget'ları +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kcompletion kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-ki18n kf5-kiconthemes kf5-kservice kf5-kwidgetsaddons kf5-kwindowsystem kf5-sonnet +# Grup: kde + +isim=kf5-ktextwidgets +surum=5.41.0 +devir=1 +_isim=ktextwidgets +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kunitconversion/talimat b/talimatname/genel/k/kf5-kunitconversion/talimat new file mode 100644 index 000000000..e64b7103f --- /dev/null +++ b/talimatname/genel/k/kf5-kunitconversion/talimat @@ -0,0 +1,26 @@ +# Tanım: Birim dönüştürme desteği +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-ki18n +# Grup: kde + +isim=kf5-kunitconversion +surum=5.41.0 +devir=1 +_isim=kunitconversion +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kwallet/talimat b/talimatname/genel/k/kf5-kwallet/talimat new file mode 100644 index 000000000..1bcbd2efb --- /dev/null +++ b/talimatname/genel/k/kf5-kwallet/talimat @@ -0,0 +1,26 @@ +# Tanım: Kullanıcı şifreleri için güvenli ve birleşik konteyner +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: gpgmepp kf5-kconfig kf5-kcoreaddons kf5-kdbusaddons kf5-ki18n kf5-kiconthemes kf5-knotifications kf5-kservice kf5-kwidgetsaddons kf5-kwindowsystem libgcrypt gnupg +# Grup: kde + +isim=kf5-kwallet +surum=5.41.0 +devir=1 +_isim=kwallet +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kwayland/talimat b/talimatname/genel/k/kf5-kwayland/talimat new file mode 100644 index 000000000..33c0ec376 --- /dev/null +++ b/talimatname/genel/k/kf5-kwayland/talimat @@ -0,0 +1,24 @@ +# Tanım: Wayland kütüphaneleri için Qt tarzı İstemci ve Sunucu kitaplığı sarmalayıcı +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules qt5 wayland +# Grup: kde + +isim=kf5-kwayland +surum=5.41.0 +devir=1 +_isim=kwayland +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kf5-kwidgetsaddons/talimat b/talimatname/genel/k/kf5-kwidgetsaddons/talimat new file mode 100644 index 000000000..396ec4908 --- /dev/null +++ b/talimatname/genel/k/kf5-kwidgetsaddons/talimat @@ -0,0 +1,25 @@ +# Tanım: QtWidgets'a eklentiler +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules qt5 + +isim=kf5-kwidgetsaddons +surum=5.41.0 +devir=1 +_isim=kwidgetsaddons +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kwindowsystem/talimat b/talimatname/genel/k/kf5-kwindowsystem/talimat new file mode 100644 index 000000000..b208b3180 --- /dev/null +++ b/talimatname/genel/k/kf5-kwindowsystem/talimat @@ -0,0 +1,25 @@ +# Tanım: Pencere sistemine erişim +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules qt5 + +isim=kf5-kwindowsystem +surum=5.41.0 +devir=1 +_isim=kwindowsystem +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kxmlgui/talimat b/talimatname/genel/k/kf5-kxmlgui/talimat new file mode 100644 index 000000000..0ad6cd998 --- /dev/null +++ b/talimatname/genel/k/kf5-kxmlgui/talimat @@ -0,0 +1,26 @@ +# Tanım: Kullanıcı tarafından konfigüre edilebilir ana pencereler +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-kglobalaccel kf5-ki18n kf5-kiconthemes kf5-kitemviews kf5-ktextwidgets kf5-kwidgetsaddons kf5-kwindowsystem kf5-attica +# Grup: kde + +isim=kf5-kxmlgui +surum=5.41.0 +devir=1 +_isim=kxmlgui +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-kxmlrpcclient/talimat b/talimatname/genel/k/kf5-kxmlrpcclient/talimat new file mode 100644 index 000000000..7cfed3437 --- /dev/null +++ b/talimatname/genel/k/kf5-kxmlrpcclient/talimat @@ -0,0 +1,26 @@ +# Tanım: KDE için XML-RPC istemci kütüphanesi +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28 +# Gerekler: kf5-kcoreaddons kf5-ki18n kf5-kio +# Grup: kde + +isim=kf5-kxmlrpcclient +surum=5.41.0 +devir=1 +_isim=kxmlrpcclient +_surum=5.41 + +kaynak=(http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-modemmanager-qt/talimat b/talimatname/genel/k/kf5-modemmanager-qt/talimat new file mode 100644 index 000000000..57cfe27c8 --- /dev/null +++ b/talimatname/genel/k/kf5-modemmanager-qt/talimat @@ -0,0 +1,25 @@ +# Tanım: ModemManager DBus API için Qt sarıcı. +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules modemmanager qt5 + +isim=kf5-modemmanager-qt +surum=5.41.0 +devir=1 +_isim=modemmanager-qt +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-networkmanager-qt/talimat b/talimatname/genel/k/kf5-networkmanager-qt/talimat new file mode 100644 index 000000000..e336c2670 --- /dev/null +++ b/talimatname/genel/k/kf5-networkmanager-qt/talimat @@ -0,0 +1,25 @@ +# Tanım: NetworkManager API için Qt sarmalayıcı +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kwindowsystem networkmanager +# Grup: kde + +isim=kf5-networkmanager-qt +surum=5.41.0 +devir=1 +_isim=networkmanager-qt +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-oxygen-icons5/talimat b/talimatname/genel/k/kf5-oxygen-icons5/talimat new file mode 100644 index 000000000..3ee57f7b6 --- /dev/null +++ b/talimatname/genel/k/kf5-oxygen-icons5/talimat @@ -0,0 +1,23 @@ +# Tanım: Kf5 için Oksijen simge teması +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: cmake, qt5, kf5-extra-cmake-modules +# Grup: kde + +isim=kf5-oxygen-icons5 +surum=5.41.0 +devir=1 +_isim=oxygen-icons5 +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kf5-plasma-framework/talimat b/talimatname/genel/k/kf5-plasma-framework/talimat new file mode 100644 index 000000000..6e02314c8 --- /dev/null +++ b/talimatname/genel/k/kf5-plasma-framework/talimat @@ -0,0 +1,26 @@ +# Tanım: KF5 ve Qt5'e dayanan plazma kitaplığı ve çalışma zamanı bileşenleri +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kactivities kf5-karchive kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-kdbusaddons kf5-kdeclarative kf5-kglobalaccel kf5-kguiaddons kf5-ki18n kf5-kiconthemes kf5-kio kf5-knotifications kf5-kpackage kf5-kservice kf5-kwindowsystem kf5-kxmlgui xorg-mesa libxcb +# Grup: kde + +isim=kf5-plasma-framework +surum=5.41.0 +devir=1 +_isim=plasma-framework +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-solid/talimat b/talimatname/genel/k/kf5-solid/talimat new file mode 100644 index 000000000..fc297971d --- /dev/null +++ b/talimatname/genel/k/kf5-solid/talimat @@ -0,0 +1,25 @@ +# Tanım: Donanım entegrasyonu ve algılama +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: qt5 kf5-extra-cmake-modules eudev udisks udisks2 upower media-player-info gvfs + +isim=kf5-solid +surum=5.41.0 +devir=1 +_isim=solid +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-sonnet/talimat b/talimatname/genel/k/kf5-sonnet/talimat new file mode 100644 index 000000000..ca58e15f2 --- /dev/null +++ b/talimatname/genel/k/kf5-sonnet/talimat @@ -0,0 +1,27 @@ +# Tanım: Qt5 için yazım çerçevesi +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules qt5 aspell aspell-tr hunspell +# Grup: kde + +isim=kf5-sonnet +surum=5.41.0 +devir=1 +_isim=sonnet +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5-threadweaver/talimat b/talimatname/genel/k/kf5-threadweaver/talimat new file mode 100644 index 000000000..8eef52e8a --- /dev/null +++ b/talimatname/genel/k/kf5-threadweaver/talimat @@ -0,0 +1,26 @@ +# Tanım: Üst düzey çok iş parçacıklı çerçeve +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules qt5 +# Grup: kde + +isim=kf5-threadweaver +surum=5.41.0 +devir=1 +_isim=threadweaver +_surum=5.41 + +kaynak=( http://download.kde.org/stable/frameworks/${_surum}/${_isim}-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kf5/talimat b/talimatname/genel/k/kf5/talimat new file mode 100644 index 000000000..a9c65d459 --- /dev/null +++ b/talimatname/genel/k/kf5/talimat @@ -0,0 +1,15 @@ +# Tanım: Bu paket KDE Frameworks 5'i yüklemektedir. +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-attica kf5-baloo kf5-bluez-qt kf5-breeze-icons kf5-frameworkintegration kf5-kactivities kf5-kactivities-stats kf5-kapidox kf5-karchive kf5-kauth kf5-kbookmarks kf5-kcmutils kf5-kcodecs kf5-kcompletion kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-kcrash kf5-kdbusaddons kf5-kdeclarative kf5-kded kf5-kdelibs4support kf5-kdesignerplugin kf5-kdesu kf5-kdewebkit kf5-kdnssd kf5-kdoctools kf5-kemoticons kf5-kfilemetadata kf5-kglobalaccel kf5-kguiaddons kf5-khtml kf5-ki18n kf5-kiconthemes kf5-kidletime kf5-kimageformats kf5-kinit kf5-kio kf5-kitemmodels kf5-kitemviews kf5-kjobwidgets kf5-kjs kf5-kjsembed kf5-kmediaplayer kf5-knewstuff kf5-knotifications kf5-knotifyconfig kf5-kpackage kf5-kparts kf5-kpeople kf5-kplotting kf5-kpty kf5-kross kf5-krunner kf5-kservice kf5-ktexteditor kf5-ktextwidgets kf5-kunitconversion kf5-kwallet kf5-kwayland kf5-kwidgetsaddons kf5-kwindowsystem kf5-kxmlgui kf5-kxmlrpcclient kf5-modemmanager-qt kf5-networkmanager-qt kf5-oxygen-icons5 kf5-plasma-framework kf5-solid kf5-sonnet kf5-threadweaver +# Grup: kde + +isim=kf5 +surum=5.41.0 +devir=1 + +kaynak=(talimat) + +derle() { +echo "KDE Frameworks 5" +} diff --git a/talimatname/genel/k/khelpcenter/talimat b/talimatname/genel/k/khelpcenter/talimat new file mode 100644 index 000000000..ffd2a8283 --- /dev/null +++ b/talimatname/genel/k/khelpcenter/talimat @@ -0,0 +1,23 @@ +# Tanım: KDE Uygulamalarının belgelerini göstermek için uygulama +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kcmutils kf5-kcodecs kf5-kcompletion kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-kdbusaddons kf5-kdelibs4support kf5-khtml kf5-ki18n kf5-kiconthemes kf5-kinit kf5-kio kf5-kparts kf5-kservice kf5-kwidgetsaddons kf5-kwindowsystem kf5-kxmlgui plasma-kde-cli-tools grantlee-qt5 xapian +# Grup: kde + +isim=khelpcenter +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kholidays/talimat b/talimatname/genel/k/kholidays/talimat new file mode 100644 index 000000000..9c97ffeca --- /dev/null +++ b/talimatname/genel/k/kholidays/talimat @@ -0,0 +1,21 @@ +# Tanım: Coğrafi bölge için tatil ve diğer özel olayları belirleyen C ++ API'si +# URL : https://projects.kde.org/projects/kde/pim +# Paketçi: cihanAlkan +# Gerekler: kf5-extra-cmake-modules python kf5-kdoctools kf5-kdelibs4support kf5-kitemviews qt5 + +isim=kholidays +surum=17.12.0 +devir=1 + +kaynak=( http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kidentitymanagement/talimat b/talimatname/genel/k/kidentitymanagement/talimat new file mode 100644 index 000000000..77d1cba77 --- /dev/null +++ b/talimatname/genel/k/kidentitymanagement/talimat @@ -0,0 +1,21 @@ +# Tanım: KDE PIM kitaplıkları +# URL: https://projects.kde.org/projects/kde/pim/ +# Paketçi: cihanAlkan +# Gerekler: kf5-extra-cmake-modules python kf5-kdoctools kf5-kdelibs4support kf5-kcoreaddons kpimtextedit + +isim=kidentitymanagement +surum=17.12.0 +devir=1 + +kaynak=( http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kimap/talimat b/talimatname/genel/k/kimap/talimat new file mode 100644 index 000000000..055321cd4 --- /dev/null +++ b/talimatname/genel/k/kimap/talimat @@ -0,0 +1,21 @@ +# Tanım: IMAP sunucularıyla etkileşim kurmak için iş tabanlı API +# URL: https://projects.kde.org/projects/kde/pim/ +# Paketçi: cihanAlkan +# Gerekler: kf5-extra-cmake-modules python kf5-kdoctools kf5-kdelibs4support kmime boost cyrus-sasl + +isim=kimap +surum=17.12.0 +devir=1 + +kaynak=( http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kio-extras/kio-extras.kur-kos b/talimatname/genel/k/kio-extras/kio-extras.kur-kos new file mode 100644 index 000000000..7d330dd27 --- /dev/null +++ b/talimatname/genel/k/kio-extras/kio-extras.kur-kos @@ -0,0 +1 @@ +update-mime-database /usr/share/mime &> /dev/null diff --git a/talimatname/genel/k/kio-extras/talimat b/talimatname/genel/k/kio-extras/talimat new file mode 100644 index 000000000..fd4edb565 --- /dev/null +++ b/talimatname/genel/k/kio-extras/talimat @@ -0,0 +1,22 @@ +# Tanım: KIO'nun işlevselliğini artırmak için ek bileşenler +# URL: https://www.kde.org/ +# Paketçi: cihanAlkan +# Gerekler: qt5 kf5-karchive kf5-kbookmarks kf5-kcodecs kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-kdbusaddons kf5-kdelibs4support kf5-kdnssd kf5-kguiaddons kf5-khtml kf5-ki18n kf5-kiconthemes kf5-kio kf5-kparts kf5-kpty kf5-kservice kf5-kxmlgui kf5-solid libjpeg-turbo exiv2 libmtp phonon-qt5 samba shared-mime-info kf5-kactivities openexr + +isim=kio-extras +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/kio-extras-$surum.tar.xz) + +derle() { +cd $isim-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kirigami/talimat b/talimatname/genel/k/kirigami/talimat new file mode 100644 index 000000000..09ca82128 --- /dev/null +++ b/talimatname/genel/k/kirigami/talimat @@ -0,0 +1,22 @@ +# Tanım: QtQuick tabanlı bileşenler seti +# URL: https://community.kde.org/Frameworks +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: qt5 kf5-extra-cmake-modules kf5-plasma-framework +# Grup: + +isim=kirigami +surum=1.1.0 +devir=1 +kaynak=(http://download.kde.org/stable/$isim/$isim-$surum.tar.xz) + +derle() { + mkdir build + cd build + cmake ../$isim-$surum \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DKDE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/klavaro/klavaro.mo b/talimatname/genel/k/klavaro/klavaro.mo new file mode 100644 index 000000000..926f8b18f Binary files /dev/null and b/talimatname/genel/k/klavaro/klavaro.mo differ diff --git a/talimatname/genel/k/klavaro/talimat b/talimatname/genel/k/klavaro/talimat new file mode 100644 index 000000000..19e905baa --- /dev/null +++ b/talimatname/genel/k/klavaro/talimat @@ -0,0 +1,18 @@ +# Tanım: Hızlı klavye yazma uygulaması +# URL: http://klavaro.sourceforge.net/ +# Paketçi: Cihan Alkan +# Gerekler: curl intltool gtk3 + +isim=klavaro +surum=3.03 +devir=1 +kaynak=(https://sourceforge.net/projects/klavaro/files/klavaro-3.03.tar.bz2 +klavaro.mo) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make +make DESTDIR=$PKG install +cp -f $SRC/klavaro.mo /usr/share/locale/tr/LC_MESSAGES/ +} diff --git a/talimatname/genel/k/kldap/talimat b/talimatname/genel/k/kldap/talimat new file mode 100644 index 000000000..b06a7dce2 --- /dev/null +++ b/talimatname/genel/k/kldap/talimat @@ -0,0 +1,22 @@ +# Tanım: KDE için LDAP erişim API'sı +# URL: https://projects.kde.org/kldap +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules python kf5-ki18n kf5-kcompletion cyrus-sasl kf5-kio kmbox +# Grup: kde + +isim=kldap +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kmahjongg/talimat b/talimatname/genel/k/kmahjongg/talimat new file mode 100644 index 000000000..4e95a9bec --- /dev/null +++ b/talimatname/genel/k/kmahjongg/talimat @@ -0,0 +1,21 @@ +# Tanım: kmahjongg oyunu +# URL: http://kde.org/applications/games/kpatience/ +# Paketçi: cihanAlkan +# Gerekler: kf5-extra-cmake-modules kf5-kdoctools libkdegames libkmahjongg kf5-knotifyconfig xdg-utils + +isim=kmahjongg +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/${surum}/src/${isim}-${surum}.tar.xz) + +derle() { +cd ${isim}-${surum} +cmake -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_TESTING=OFF \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kmailtransport/talimat b/talimatname/genel/k/kmailtransport/talimat new file mode 100644 index 000000000..191af46a7 --- /dev/null +++ b/talimatname/genel/k/kmailtransport/talimat @@ -0,0 +1,21 @@ +# Tanım: Posta Taşıma Hizmeti +# URL: https://projects.kde.org/projects/kde/pim/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules boost python kf5-kdoctools kf5-kdelibs4support kf5-kcmutils akonadi-mime + +isim=kmailtransport +surum=16.08.2 +devir=1 + +kaynak=( http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kmbox/talimat b/talimatname/genel/k/kmbox/talimat new file mode 100644 index 000000000..30436e27f --- /dev/null +++ b/talimatname/genel/k/kmbox/talimat @@ -0,0 +1,22 @@ +# Tanım: MBox formatında posta depolarına erişmek için kullanılan kütüphane +# URL: https://projects.kde.org/kmbox +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules python boost kf5-kdoctools kf5-kdelibs4support kmime +# Grup: kde + +isim=kmbox +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kmime/talimat b/talimatname/genel/k/kmime/talimat new file mode 100644 index 000000000..cdf43bf93 --- /dev/null +++ b/talimatname/genel/k/kmime/talimat @@ -0,0 +1,21 @@ +# Tanım: Posta mesajları ve haber grubu makaleleri için kitaplık +# URL: https://projects.kde.org/kmime +# Paketçi: cihanAlkan +# Gerekler: kf5-extra-cmake-modules python boost kf5-ki18n kf5-kcodecs + +isim=kmime +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kmix/talimat b/talimatname/genel/k/kmix/talimat new file mode 100644 index 000000000..dad12a3b6 --- /dev/null +++ b/talimatname/genel/k/kmix/talimat @@ -0,0 +1,26 @@ +# Tanım: KDE ses kontrol programı +# URL: http://kde.org/applications/multimedia/kmix/ +# Paketçi: cihanAlkan +# Gerekler: kf5-kcmutils kf5-kcompletion kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-kdbusaddons kf5-kdelibs4support kf5-kglobalaccel kf5-ki18n kf5-kiconthemes kf5-knotifications kf5-kwidgetsaddons kf5-kwindowsystem kf5-kxmlgui alsa-lib pulseaudio libcanberra kf5-plasma-framework + +isim=kmix +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/kmix-$surum.tar.xz) + +derle() { +cd kmix-$surum + +sed -e 's|${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR}|${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_SOURCE_DIR}/cmake/modules|' -i CMakeLists.txt + +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DKMIX_KF5_BUILD=ON \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kolourpaint/talimat b/talimatname/genel/k/kolourpaint/talimat new file mode 100644 index 000000000..6f961f1dd --- /dev/null +++ b/talimatname/genel/k/kolourpaint/talimat @@ -0,0 +1,24 @@ +# Tanım: Boyama programı +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules hicolor-icon-theme kf5-kdelibs4support libksane + +isim=kolourpaint +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +mkdir build +cd build +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev .. +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kompare/talimat b/talimatname/genel/k/kompare/talimat new file mode 100644 index 000000000..b8e45e02b --- /dev/null +++ b/talimatname/genel/k/kompare/talimat @@ -0,0 +1,24 @@ +# Tanım: Grafiksel dosya farklılıkları aracı +# URL: http://www.kde.org/ +# Paketçi: Cihan_Alkan +# Gerekler: kf5-extra-cmake-modules kf5-kcodecs kf5-kconfig kf5-kcoreaddons kf5-kdoctools kf5-kiconthemes kf5-kjobwidgets kf5-kparts kf5-ktexteditor kf5-kwidgetsaddons libkomparediff2 qt5 syntax-highlighting +# Grup: kde + + +isim=kompare +surum=17.12.0 +devir=1 +kaynak=(https://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + + mkdir build + cd build + cmake ../$isim-$surum \ + -DCMAKE_BUILD_TYPE=RELEASE \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_TESTING=OFF \ + -Wno-dev + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/komutan/komutan.kur-kos b/talimatname/genel/k/komutan/komutan.kur-kos new file mode 100644 index 000000000..37fa16f7c --- /dev/null +++ b/talimatname/genel/k/komutan/komutan.kur-kos @@ -0,0 +1,22 @@ +pip2 install flask +pip2 install psutil +pip2 install /opt/komutan/gerekliler/python-stdnum-1.1.tar.gz + +if [ -d /home/$USER ];then + evdizin=/home/$USER +else + evdizin=/$USER +fi + +if [ -d $evdizin/Desktop/ ]; then + masa="Desktop" +else + masa="Masaüstü" +fi + +cp /opt/komutan/mps.desktop $evdizin/$masa/ +cp /opt/komutan/komutan.desktop $evdizin/$masa/ + +cd /opt/komutan +git pull +cd - diff --git a/talimatname/genel/k/komutan/talimat b/talimatname/genel/k/komutan/talimat new file mode 100644 index 000000000..2e7c561fe --- /dev/null +++ b/talimatname/genel/k/komutan/talimat @@ -0,0 +1,25 @@ +# Tanım: milis işletim sistemi web tabanlı yönetim programı +# URL: https://github.com/milisarge/komutan +# Paketçi: milisarge +# Gerekler: python python-pip python-yaml gunicorn +isim=komutan +name2=mps +surum=git +devir=5 + +kaynak=() +derle() { +if [ ! -d $DERLEME_KAYNAKDIZIN/$isim ];then + git clone https://github.com/milisarge/$isim.git $DERLEME_KAYNAKDIZIN/$isim +else + cd $DERLEME_KAYNAKDIZIN/$isim + git pull + cd - +fi +mkdir $PKG/opt +cp -r $DERLEME_KAYNAKDIZIN/$isim $PKG/opt/ +install -D -m644 $DERLEME_KAYNAKDIZIN/$isim/$isim.desktop "${PKG}"/usr/share/applications/$isim.desktop +install -D -m644 $DERLEME_KAYNAKDIZIN/$isim/$isim.svg "${PKG}"/usr/share/pixmaps/$isim.svg +install -D -m644 $DERLEME_KAYNAKDIZIN/$isim/$isim2.desktop "${PKG}"/usr/share/applications/$isim2.desktop +install -D -m644 $DERLEME_KAYNAKDIZIN/$isim/$isim2.svg "${PKG}"/usr/share/pixmaps/$isim2.svg +} diff --git a/talimatname/genel/k/konsole/talimat b/talimatname/genel/k/konsole/talimat new file mode 100644 index 000000000..0f304953f --- /dev/null +++ b/talimatname/genel/k/konsole/talimat @@ -0,0 +1,23 @@ +# Tanım: Terminal +# URL: https://www.kde.org/ +# Paketçi: CihanAlkan +# Gerekler: kf5-kdelibs4support kf5-knotifyconfig kf5-kpty kf5-extra-cmake-modules kf5-kdoctools kf5-knotifyconfig kf5-kpty + +isim=konsole +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/kontactinterface/talimat b/talimatname/genel/k/kontactinterface/talimat new file mode 100644 index 000000000..3e203c9bf --- /dev/null +++ b/talimatname/genel/k/kontactinterface/talimat @@ -0,0 +1,22 @@ +# Tanım: Uygulama parçalarının Kontact bileşeni olarak gömülmesi için gereken yapıştırıcıyı sağlar +# URL: https://projects.kde.org/kontactinterface +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules boost kf5-kdoctools kf5-kdelibs4support kf5-kparts xorg-libx11 +# Grup: kde + +isim=kontactinterface +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/konversation/talimat b/talimatname/genel/k/konversation/talimat new file mode 100644 index 000000000..200dfc89b --- /dev/null +++ b/talimatname/genel/k/konversation/talimat @@ -0,0 +1,20 @@ +# Tanım: KDE için kullanıcı dostu bir IRC istemcisi +# URL: http://konversation.kde.org +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-knotifyconfig kf5-kemoticons kf5-kparts kf5-kidletime qca-qt5 hicolor-icon-theme kf5-extra-cmake-modules kf5-kdoctools + +isim=konversation +surum=1.6.2 +devir=1 + +kaynak=(http://download.kde.org/stable/$isim/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DKDE_INSTALL_LIBDIR=lib + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kpat/kpat.kur-kos b/talimatname/genel/k/kpat/kpat.kur-kos new file mode 100644 index 000000000..2d1029009 --- /dev/null +++ b/talimatname/genel/k/kpat/kpat.kur-kos @@ -0,0 +1,3 @@ +xdg-icon-resource forceupdate --theme hicolor &> /dev/null +update-desktop-database -q +update-mime-database /usr/share/mime &> /dev/null diff --git a/talimatname/genel/k/kpat/talimat b/talimatname/genel/k/kpat/talimat new file mode 100644 index 000000000..810f9ece7 --- /dev/null +++ b/talimatname/genel/k/kpat/talimat @@ -0,0 +1,22 @@ +# Tanım: Solitaire kart oyunları seçenekleri sunuyor +# URL: http://kde.org/applications/games/kpatience/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules kf5-kdoctools libkdegames kf5-knotifyconfig xdg-utils +# Grup: kde + +isim=kpat +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/${surum}/src/${isim}-${surum}.tar.xz) + +derle() { +cd ${isim}-${surum} +cmake -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_TESTING=OFF \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kpimtextedit/talimat b/talimatname/genel/k/kpimtextedit/talimat new file mode 100644 index 000000000..608d1b17b --- /dev/null +++ b/talimatname/genel/k/kpimtextedit/talimat @@ -0,0 +1,21 @@ +# Tanım: PIM'e özgü özelliklere sahip bir metin düzenlemesi. +# URL: https://projects.kde.org/projects/kde/pim/ +# Paketçi: cihanAlkan +# Gerekler: kf5-extra-cmake-modules python kf5-kdoctools kf5-kdelibs4support kf5-kcoreaddons grantlee-qt5 syntax-highlighting + +isim=kpimtextedit +surum=17.12.0 +devir=1 + +kaynak=( http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kpmcore/talimat b/talimatname/genel/k/kpmcore/talimat new file mode 100644 index 000000000..9a07ffde5 --- /dev/null +++ b/talimatname/genel/k/kpmcore/talimat @@ -0,0 +1,23 @@ +# Tanım: Bölümleri yönetmek için kütüphane +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules qt5 kf5-kauth kf5-ki18n kf5-kiconthemes kf5-kio kf5-kservice kf5-kwidgetsaddons xfsprogs reiserfsprogs ntfs-3g jfsutils e2fsprogs dosfstools parted + +isim=kpmcore +surum=2.2.1 +devir=1 + +kaynak=( http://download.kde.org/stable/$isim/$surum/src/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/k/krb5/krb5-config_LDFLAGS.patch b/talimatname/genel/k/krb5/krb5-config_LDFLAGS.patch new file mode 100644 index 000000000..826f721e5 --- /dev/null +++ b/talimatname/genel/k/krb5/krb5-config_LDFLAGS.patch @@ -0,0 +1,13 @@ +diff --git a/krb5-config.in b/krb5-config.in +index c950b36..fb6520e 100755 +--- a/krb5-config.in ++++ b/krb5-config.in +@@ -31,7 +31,7 @@ prefix=@prefix@ + exec_prefix=@exec_prefix@ + includedir=@includedir@ + libdir=@libdir@ +-CC_LINK='@CC_LINK@' ++CC_LINK='$(PROG_LIBPATH) $(PROG_RPATH_FLAGS)' + KDB5_DB_LIB=@KDB5_DB_LIB@ + LDFLAGS='@LDFLAGS@' + RPATH_FLAG='@RPATH_FLAG@' diff --git a/talimatname/genel/k/krb5/talimat b/talimatname/genel/k/krb5/talimat new file mode 100644 index 000000000..098cf2397 --- /dev/null +++ b/talimatname/genel/k/krb5/talimat @@ -0,0 +1,38 @@ +# Tanım: Ağ Kimlik Doğrulama İletişim Kuralı +# URL: http://web.mit.edu/kerberos +# Maintainer: Jose V Beneyto, sepen at crux dot nu +# Paketçi: Alan Mizrahi, alan at mizrahi dot com dot ve +# Gerekler: openldap e2fsprogs + +isim=krb5 +surum=1.14 +devir=1 +kaynak=(http://web.mit.edu/kerberos/dist/$isim/$surum/$isim-$surum.tar.gz \ + $isim-config_LDFLAGS.patch) + +derle() { + cd $isim-$surum/src/build-tools + patch -p1 -i $SRC/$isim-config_LDFLAGS.patch + + cd $SRC/$isim-$surum/src + sed -e '/KRB5ROOT=/ s/\/local//' -i util/ac_check_krb5.m4 + + export CFLAGS="${CFLAGS/-Os/-O2} -I/usr/include/et" + + ./configure --prefix=/usr \ + --localstatedir=/var \ + --enable-shared \ + --disable-rpath \ + --without-tcl \ + --with-ldap \ + --with-system-et \ + --with-system-ss \ + --without-system-verto + + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share $PKG/usr/man/cat* $PKG/usr/man5/.* + + # comment this if you want kerberized versions of ftp and telnet + rm -rf $PKG/usr/bin/{ftp,telnet} $PKG/usr/man/man1/{ftp,telnet}.1 +} diff --git a/talimatname/genel/k/krita/talimat b/talimatname/genel/k/krita/talimat new file mode 100644 index 000000000..53b9cb158 --- /dev/null +++ b/talimatname/genel/k/krita/talimat @@ -0,0 +1,23 @@ +# Tanım: Resim düzenleme ve boyama programı +# URL: https://krita.org +# Paketçi: Cihan_Alkan +# Gerekler: kf5-kio kf5-kitemmodels gsl libraw exiv2 openexr fftw curl boost hicolor-icon-theme kf5-extra-cmake-modules kf5-kdoctools python eigen3 poppler-qt5 opencolorio +# Grup: kde + +isim=krita +surum=3.3.3 +devir=1 +kaynak=(https://download.kde.org/stable/krita/$surum/$isim-$surum.tar.gz) + +derle() { + + mkdir -p build + cd build + cmake ../$isim-$surum \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + make + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/k/ktnef/talimat b/talimatname/genel/k/ktnef/talimat new file mode 100644 index 000000000..b25a55acc --- /dev/null +++ b/talimatname/genel/k/ktnef/talimat @@ -0,0 +1,22 @@ +# Tanım: TNEF verilerini işleme API'si +# URL: https://projects.kde.org/projects/kde/pim/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules python kf5-kdoctools kcalutils kcontacts +# Grup: kde + +isim=ktnef +surum=17.12.0 +devir=1 + +kaynak=( http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/k/kutuphane/baglanti.java b/talimatname/genel/k/kutuphane/baglanti.java new file mode 100644 index 000000000..59fb245d4 --- /dev/null +++ b/talimatname/genel/k/kutuphane/baglanti.java @@ -0,0 +1,290 @@ + +package kutuphane.otomasyonu; + +import java.io.BufferedReader; +import java.io.FileNotFoundException; +import java.io.FileReader; +import java.io.IOException; +import java.sql.CallableStatement; +import java.sql.Connection; +import java.sql.DriverManager; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.sql.Statement; +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import javax.swing.JOptionPane; +import javax.swing.table.DefaultTableModel; +import java.util.Date; + +public class baglanti +{ +//--------------------------------------------------------------------------// + //----------------------------------------------------------// +public Connection con = null; // Bağlantı nesnesi +//public String url = "jdbc:mysql://localhost:3307/kutuphane?useUnicode=true&amp;characterEncoding=utf8"; // Veritabanı adresi +//public String userName = "root"; // Veritabanı kullanıcı adı +public String driver = "com.mysql.jdbc.Driver"; +//public String password = "Şifre girilecek"; // Veritabanı şifresi +public ResultSet result; // Yapılan sorgu sonucunda döndürülen değerlerin tutulacağı nesnedir. +public Statement statement; // Veri tabanına gönderilen sorgu ifadesi nesnesidir. +public PreparedStatement pst=null; +public Date simdikiZaman;//Şimdiki zamanı aldık +public DateFormat df = new SimpleDateFormat("yyyy-M-dd hh:mm:ss");//zamanı formatladık. +public DefaultTableModel model = new DefaultTableModel();//Model oluşturuyoruz +public DefaultTableModel tm = new DefaultTableModel();//Model oluşturuyoruz +public int sayac_grti=0; +//--------------------/*df.format(simdikiZaman);*/-------------------------------// +//------------------------------------------------------------------------------// +public String ekle_mesaj="Kayıt işleminiz tamamlanmıştır."; +public String sil_mesaj="Silme işleminiz tamamlanmıştır."; +public String güncelle_mesaj="Güncelleme işleminiz tamamlanmıştır."; +public String genel_mesaj="Ebubekir Bastama Kütüphane Otomasyonu"; +public String k_girisi_hata="Lütfen Kullanıcıbilgilerinizi kontrol ediniz."; +public String Verivar="Eklemek istediğiniz kitap elimizde bulunmaktadır."; +public String baglantıerro="Bağlantı Başarısız"; +public String text_kntrl="Lütfen gerekliyeri boş bırakmayınız."; +public String text_kntrl_1="Lütfen Öğrenciyi ve Teslim edeceğiniz kitabı seçiniz"; +public String hat="Hata"; +public String kitap_yok="Aradığınız kitap kütüphanemizde bulunmamaktadır."; +public ArrayList list = new ArrayList(); +//------------------------------------------------------------------------------// +public String kitap_verigetirme="SELECT id,ktp_brkt_nmr,ktp_ismi,ktp_adedi,ktp_ktgr,ktp_raf_nmr, ktp_yzr_ismi , ktp_kayit_tarih FROM kitaplar"; +public String ogrenci_verigetirme="SELECT * FROM ogr"; +public String kitap_kategori_verigetirme="select * from ktp_ktgr"; +public String yetkili_verigetirme="select * from yetkili"; +//------------------------------------------------------------------------------// +public String []dgr_ogrenci={"No", "Öğrenci Tc No", "Öğrenci Adı", "öğrenci Soyadı", "Sınıfı", "Telefon Numarası", "Tarih"}; +public String []dgr_kitap={"No","Barkot Numarası","Kitap İsmi","Kitap Adedi","Kitap Kategorisi","Kitap Raf No","Yazar İsmi","Tarih"}; +public String []dgr_kitap_kategorisi={"No","Kategori İsmi","Tarih"}; +public String []dgr_yetkili={"No","Yetkili İsmi", "Yetkili Soyadı", "Yetkili Ünvanı", "Yetkili Şifresi","Tarih"}; +public String []k_girisi_par={"ytkl_ism","ytkl_sf"}; +public String []ktp_odunc={"Öğrenci Numarası","Kitap Barkot Numarası","Kayıt Tarihi"}; +public String []ktp_ekleme={"ktp_brkt_nmr_,ktp_ismi_,ktp_adedi_,ktp_ktgr_,ktp_raf_nmr_,ktp_yzr_ismi_,ktp_kayit_tarih_"}; +public String []ktp_guncelle={"ktp_brkt_nmr_,ktp_ismi_,ktp_adedi_,ktp_ktgr_,ktp_raf_nmr_,ktp_yzr_ismi_,ktp_kayit_tarih_"}; +//-----------------------------------------------------------------// +//--------------------------------------------------------------------------// +public void oku() throws FileNotFoundException, IOException +{ +try{ + +FileReader fileReader = new FileReader("/etc/kutup.conf"); +String line; +BufferedReader br = new BufferedReader(fileReader); +while ((line = br.readLine()) != null) { +list.add(line); +} +br.close(); +} +catch(Exception ex) +{ + JOptionPane.showMessageDialog(null, ex.getMessage() ,hat, 1); +} + +} +public void baglanti() +{ +try + { + oku(); + Class.forName(driver); + con=DriverManager.getConnection(list.get(0).toString(),list.get(1).toString(),list.get(2).toString()); + statement=(Statement)con.createStatement(); + if (con != null){} + else{JOptionPane.showMessageDialog(null,baglantıerro);} + } + catch(Exception e) + { + JOptionPane.showMessageDialog(null, e.getMessage() ,hat, 1); + } +} + +public void veri_ekle(String sqlcumle,String a[]) +{ + try + { + baglanti(); + CallableStatement calstat=con.prepareCall("{call'"+sqlcumle+"'(?,?,?,?,?,?)}"); + calstat.setString("ktp_brkt_nmr_",a[0]); + JOptionPane.showMessageDialog(null,"hata1"); + calstat.setString(ktp_ekleme[1],a[1]); + calstat.setString(ktp_ekleme[2],a[2]); + calstat.setString(ktp_ekleme[3],a[3]); + calstat.setString(ktp_ekleme[4],a[4]); + calstat.setString(ktp_ekleme[5],a[5]); + calstat.setString(ktp_ekleme[6],a[6]); + JOptionPane.showMessageDialog(null,"hata1"); + ResultSet rdr= calstat.executeQuery(); + while(rdr.next()) + { + + if ("1".equals(rdr.getObject(1).toString())) + { + JOptionPane.showMessageDialog(null,ekle_mesaj,genel_mesaj,2); + } + else + { + JOptionPane.showMessageDialog(null,Verivar,genel_mesaj,2); + } + } + con.close(); + calstat.close(); + } + catch(SQLException e ) + { + JOptionPane.showMessageDialog(null, e.getMessage() ,"Hata", 1); + } +} + +public void veri_sil(String sqlcumle,String a[]) throws SQLException +{ + try + { + baglanti(); + CallableStatement calstat=con.prepareCall("{call '"+sqlcumle+"'(?,?,?)}"); + calstat.setString(ktp_ekleme[0],a[0]); + ResultSet rdr= calstat.executeQuery(); + while(rdr.next()) + { + + if ("1".equals(rdr.getObject(1).toString())) + { + JOptionPane.showMessageDialog(null,ekle_mesaj,genel_mesaj,2); + } + else + { + JOptionPane.showMessageDialog(null,Verivar,genel_mesaj,2); + } + } + con.close(); + calstat.close(); + } + catch(Exception e) + { + JOptionPane.showMessageDialog(null, e.getMessage() ,"Hata", 1); + } +} + +public void veri_guncelle(String sqlcumle,String a[]) throws SQLException +{ + try + { + baglanti(); + CallableStatement calstat=con.prepareCall("{call '"+sqlcumle+"'(?,?,?)}"); + calstat.setString(ktp_guncelle[0],a[0]); + calstat.setString(ktp_guncelle[1],a[1]); + calstat.setString(ktp_guncelle[2],a[2]); + calstat.setString(ktp_guncelle[3],a[3]); + calstat.setString(ktp_guncelle[4],a[4]); + calstat.setString(ktp_guncelle[5],a[5]); + calstat.setString(ktp_guncelle[6],a[6]); + ResultSet rdr= calstat.executeQuery(); + while(rdr.next()) + { + + if ("1".equals(rdr.getObject(1).toString())) + { + JOptionPane.showMessageDialog(null,ekle_mesaj,genel_mesaj,2); + } + else + { + JOptionPane.showMessageDialog(null,Verivar,genel_mesaj,2); + } + } + con.close(); + calstat.close(); + } + catch(Exception e) + { + JOptionPane.showMessageDialog(null, e.getMessage() ,"Hata", 1); + } +} +public void gtr(String sqlcumle,javax.swing.JTable tablo,int kolon_sayisi,String[] dgr) +{ + try + { + baglanti(); + try (ResultSet rs = statement.executeQuery(sqlcumle))//Veritabanındaki tabloya bağlandık + { + int colcount = rs.getMetaData().getColumnCount();//Veritabanındaki tabloda kaç tane sütun var? + for(int i = 1;i<=colcount;i++) + tm.addColumn(tm);//Tabloya sütun ekliyoruz veritabanımızdaki sütun ismiyle aynı olacak şekilde + while(rs.next()) + { + Object[] row = new Object[colcount]; + for(int i=1;i<=colcount;i++) + row[i-1] = rs.getObject(i); + tm.addRow(row); + } + tablo.setModel(tm); + for (int i = 0; i < kolon_sayisi; i++) + { + tablo.getColumnModel().getColumn(i).setHeaderValue(dgr[i]); + } + } + con.close(); + } catch (Exception e) + { + JOptionPane.showMessageDialog(null, e.getMessage() ,"Hata", 1); + } +} +public void ktgr_sil(String sqlcumle,String a[]) +{ + try + { + baglanti(); + CallableStatement calstat=con.prepareCall("{call '"+sqlcumle+"'(?,?,?)}"); +// calstat.setString(ktgr_ekle[0],a[0]); + ResultSet rdr= calstat.executeQuery(); + while(rdr.next()) + { + if ("1".equals(rdr.getObject(1).toString())) + { + JOptionPane.showMessageDialog(null,ekle_mesaj,genel_mesaj,2); + } + else + { + JOptionPane.showMessageDialog(null,Verivar,genel_mesaj,2); + } + } + con.close(); + calstat.close(); + } + catch(Exception e) + { + JOptionPane.showMessageDialog(null, e.getMessage() ,"Hata", 1); + } +} +public void rapor(String sqlcumle,javax.swing.JTable tablo,int kolon_sayisi,String[] dgr) +{ + try + { + baglanti(); + try (ResultSet rs = statement.executeQuery(sqlcumle))//Veritabanındaki tabloya bağlandık + { + int colcount = rs.getMetaData().getColumnCount();//Veritabanındaki tabloda kaç tane sütun var? + for(int i = 1;i<=colcount;i++) + tm.addColumn(tm);//Tabloya sütun ekliyoruz veritabanımızdaki sütun ismiyle aynı olacak şekilde + while(rs.next()) + { + Object[] row = new Object[colcount]; + for(int i=1;i<=colcount;i++) + row[i-1] = rs.getObject(i); + tm.addRow(row); + } + tablo.setModel(tm); + for (int i = 0; i < kolon_sayisi; i++) + { + tablo.getColumnModel().getColumn(i).setHeaderValue(dgr[i]); + } + } + con.close(); + } catch (Exception e) + { + JOptionPane.showMessageDialog(null, e.getMessage() ,"Hata", 1); + } +} +} + diff --git a/talimatname/genel/k/kutuphane/kutuphane.kur-kos b/talimatname/genel/k/kutuphane/kutuphane.kur-kos new file mode 100644 index 000000000..a4f06d84e --- /dev/null +++ b/talimatname/genel/k/kutuphane/kutuphane.kur-kos @@ -0,0 +1,3 @@ +cd /opt +./kutuphane_vt_yukle +cd - diff --git a/talimatname/genel/k/kutuphane/talimat b/talimatname/genel/k/kutuphane/talimat new file mode 100644 index 000000000..9a137f2a9 --- /dev/null +++ b/talimatname/genel/k/kutuphane/talimat @@ -0,0 +1,27 @@ +# Tanım: Javada yazılmış bir kütüphane uygulaması - Ebubekir Bastama +# URL: https://github.com/ebubekirbastama/KutuphaneOtomasyonu +# Paketçi: milisarge +# Gerekler: apache-ant openjdk java-mysql mariadb xorg-server + +isim=kutuphane +surum=1.0 +devir=2 + +kaynak=(https://github.com/milisarge/KutuphaneOtomasyonu/archive/$surum.tar.gz + baglanti.java) + +derle() { + cd KutuphaneOtomasyonu-$surum + export JAVA_HOME=/opt/jdk + export ANT_HOME="/opt/ant" + cp -f $SRC/baglanti.java src/kutuphane/otomasyonu/ + /opt/ant/bin/ant + install -d $PKG/opt + install -d $PKG/usr/bin + install -d $PKG/etc + cp dist/Kutuphane_Otomasyonu.jar $PKG/opt/ + install -m 755 kutuphane $PKG/usr/bin/ + install -m 644 kutup.conf $PKG/etc/ + install -m 755 kutuphane_vt_yukle $PKG/opt/ + cp -r Sqldizini $PKG/opt/ +} diff --git a/talimatname/genel/l/ladspa/ladspa-fallback-ladspa-path.patch b/talimatname/genel/l/ladspa/ladspa-fallback-ladspa-path.patch new file mode 100644 index 000000000..7743bf4b4 --- /dev/null +++ b/talimatname/genel/l/ladspa/ladspa-fallback-ladspa-path.patch @@ -0,0 +1,27 @@ +diff -upr ladspa_sdk.orig/src/load.c ladspa_sdk/src/load.c +--- ladspa_sdk.orig/src/load.c 2012-09-26 07:37:24.000000000 +0300 ++++ ladspa_sdk/src/load.c 2012-09-26 07:38:58.000000000 +0300 +@@ -54,6 +54,8 @@ dlopenLADSPA(const char * pcFilename, in + to search. */ + + pcLADSPAPath = getenv("LADSPA_PATH"); ++ if (! pcLADSPAPath) ++ pcLADSPAPath = "/usr/lib/ladspa"; + + if (pcLADSPAPath) { + +diff -upr ladspa_sdk.orig/src/search.c ladspa_sdk/src/search.c +--- ladspa_sdk.orig/src/search.c 2012-09-26 07:37:24.000000000 +0300 ++++ ladspa_sdk/src/search.c 2012-09-26 07:38:46.000000000 +0300 +@@ -99,10 +99,7 @@ LADSPAPluginSearch(LADSPAPluginSearchCal + + pcLADSPAPath = getenv("LADSPA_PATH"); + if (!pcLADSPAPath) { +- fprintf(stderr, +- "Warning: You do not have a LADSPA_PATH " +- "environment variable set.\n"); +- return; ++ pcLADSPAPath = "/usr/lib/ladspa"; + } + + pcStart = pcLADSPAPath; diff --git a/talimatname/genel/l/ladspa/ladspa-fix-memleak-in-plugin-scanning.patch b/talimatname/genel/l/ladspa/ladspa-fix-memleak-in-plugin-scanning.patch new file mode 100644 index 000000000..76cb2e864 --- /dev/null +++ b/talimatname/genel/l/ladspa/ladspa-fix-memleak-in-plugin-scanning.patch @@ -0,0 +1,11 @@ +--- src/search.c.orig 2008-11-07 00:38:18.000000000 +0100 ++++ src/search.c 2008-11-07 00:50:51.000000000 +0100 +@@ -83,6 +83,8 @@ + dlclose(pcFilename); + free(pcFilename); + } ++ } else { ++ free(pcFilename); + } + } + } diff --git a/talimatname/genel/l/ladspa/talimat b/talimatname/genel/l/ladspa/talimat new file mode 100644 index 000000000..19e9a27e8 --- /dev/null +++ b/talimatname/genel/l/ladspa/talimat @@ -0,0 +1,29 @@ +# Tanım: Linux Ses Geliştiricisinin Basit Eklenti API'sı (LADSPA) +# URL: http://www.ladspa.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: + +isim=ladspa +surum=1.13 +devir=1 + +kaynak=(https://github.com/OpenMandrivaAssociation/ladspa/raw/master/ladspa_sdk_$surum.tgz + ladspa-fix-memleak-in-plugin-scanning.patch + ladspa-fallback-ladspa-path.patch) + +derle() { +cd ladspa_sdk/src + +patch -Np1 -i ../../ladspa-fix-memleak-in-plugin-scanning.patch +patch -Np2 -i ../../ladspa-fallback-ladspa-path.patch + +sed \ + -e 's/mkdirhier/mkdir -p/' \ + -e "s#-O3#${CFLAGS} ${LDFLAGS/,--as-needed/}#" \ + -i makefile + +make targets +make INSTALL_PLUGINS_DIR="$PKG/usr/lib/ladspa/" \ + INSTALL_INCLUDE_DIR="$PKG/usr/include/" \ + INSTALL_BINARY_DIR="$PKG/usr/bin/" install +} diff --git a/talimatname/genel/l/lame/talimat b/talimatname/genel/l/lame/talimat new file mode 100644 index 000000000..e946e28af --- /dev/null +++ b/talimatname/genel/l/lame/talimat @@ -0,0 +1,16 @@ +# Tanım: MP3 kodlayıcı, sıkıştırılmış ses dosyalarını analiz etmek için kullanışlı bir MP3 çerçeve analizörü. +# URL: http://lame.sourceforge.net/index.php +# Paketçi: milisarge +# Gerekler: libsndfile nasm +isim=lame +surum=3.99.5 +devir=2 + +kaynak=(http://downloads.sourceforge.net/$isim/$isim-$surum.tar.gz) +derle() { +cd $isim-$surum +sed -i -e '/xmmintrin\.h/d' configure +./configure --prefix=/usr --enable-mp3rtp --disable-static +make +make DESTDIR=$PKG pkghtmldir=/usr/share/doc/$isim-$surum install +} diff --git a/talimatname/genel/l/lapack/talimat b/talimatname/genel/l/lapack/talimat new file mode 100644 index 000000000..0aa801902 --- /dev/null +++ b/talimatname/genel/l/lapack/talimat @@ -0,0 +1,25 @@ +# Tanım: Temel Lineer Cebir Altprogramları +# URL: http://www.netlib.org/blas +# Paketçi: milisarge +# Gerekler: cmake + +isim=lapack +surum=3.5.0 +devir=1 + +kaynak=(http://www.netlib.org/$isim/$isim-$surum.tgz ) + +derle() { + cd $isim-$surum + mkdir build + cd build + cmake .. \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_SKIP_RPATH=ON \ + -DBUILD_SHARED_LIBS=ON \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_Fortran_COMPILER=gfortran \ + -DLAPACKE=ON + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/lazagne/lazagne.kur-kos b/talimatname/genel/l/lazagne/lazagne.kur-kos new file mode 100644 index 000000000..48367686f --- /dev/null +++ b/talimatname/genel/l/lazagne/lazagne.kur-kos @@ -0,0 +1 @@ +pip2 install https://github.com/n1nj4sec/memorpy/archive/master.zip diff --git a/talimatname/genel/l/lazagne/sifrebul b/talimatname/genel/l/lazagne/sifrebul new file mode 100644 index 000000000..062fb0286 --- /dev/null +++ b/talimatname/genel/l/lazagne/sifrebul @@ -0,0 +1,2 @@ +#!/bin/bash +python /usr/share/lazagne/laZagne.py all diff --git a/talimatname/genel/l/lazagne/talimat b/talimatname/genel/l/lazagne/talimat new file mode 100644 index 000000000..0554568ba --- /dev/null +++ b/talimatname/genel/l/lazagne/talimat @@ -0,0 +1,21 @@ +# Tanım: Bilgisayara kayıtlı şifreleri bulma programı +# URL: https://github.com/AlessandroZ/LaZagne +# Paketçi: Cihan Alkan +# Gerekler: python-pyasn1 python-crypto python python-pip + +isim=lazagne +surum=2.2 +devir=1 + +kaynak=(https://github.com/AlessandroZ/LaZagne/archive/$surum.tar.gz + sifrebul) + +derle() { + cd LaZagne-$surum + mkdir -p $PKG/usr/share/$isim + cp -r Linux/* $PKG/usr/share/$isim/ + + mkdir -p $PKG/usr/bin + cp $SRC/sifrebul $PKG/usr/bin/ + chmod +x $PKG/usr/bin/sifrebul +} diff --git a/talimatname/genel/l/lazarus/talimat b/talimatname/genel/l/lazarus/talimat new file mode 100644 index 000000000..d4ff08ca5 --- /dev/null +++ b/talimatname/genel/l/lazarus/talimat @@ -0,0 +1,24 @@ +# Tanım: fpc için arayüz +# URL: http://www.lazarus-ide.org/ +# Paketçi: milisarge +# Gerekler: fpc fpc-src gdb gtk2 + +isim=lazarus +surum=1.6.4 +devir=1 +kaynak=(http://sourceforge.net/projects/$isim/files/Lazarus%20Zip%20_%20GZip/Lazarus%20$surum/$isim-$surum-0.tar.gz) + +derle() { + cd $isim + MAKEFLAGS="$(echo "$MAKEFLAGS" | sed "s/-j[[:digit:]]\+\s\?//")" make bigide + make install PREFIX=$PKG/usr + find $PKG \ + \( \ + -name "*README*" -o \ + -name "*BUGS*" -o \ + -name "*TODOS*" -o \ + -name "*COPYING*" -o \ + -name "*INSTALL*" -o \ + -name "*ChangeLog*" \ + \) -delete +} diff --git a/talimatname/genel/l/lcms/talimat b/talimatname/genel/l/lcms/talimat new file mode 100644 index 000000000..1aebb0664 --- /dev/null +++ b/talimatname/genel/l/lcms/talimat @@ -0,0 +1,19 @@ +# Tanım: Diğer programlar için renklerin yönetimini sağlar +# URL: http://www.littlecms.com/ +# Paketçi: milisarge +# Gerekler: libtiff libjpeg-turbo + +isim=lcms +surum=1.19 +devir=1 + +kaynak=( http://www.littlecms.com/1/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--mandir=/usr/share/man \ +--infodir=/usr/share/info +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/lcms2/talimat b/talimatname/genel/l/lcms2/talimat new file mode 100644 index 000000000..0868d3171 --- /dev/null +++ b/talimatname/genel/l/lcms2/talimat @@ -0,0 +1,21 @@ +# Tanım: Hafif renk yönetimi geliştirme kitaplığı/motor +# URL: http://www.littlecms.com/ +# Paketçi: milisarge +# Gerekler: libjpeg-turbo libtiff +# Grup: kütüphane + +isim=lcms2 +surum=2.9 +devir=1 + +kaynak=(http://downloads.sourceforge.net/lcms/$isim-$surum.tar.gz) + +derle() { +cd $isim* +./configure --prefix=/usr \ +--mandir=/usr/share/man \ +--infodir=/usr/share/info \ +--disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/ldns/talimat b/talimatname/genel/l/ldns/talimat new file mode 100644 index 000000000..ee8de5dbc --- /dev/null +++ b/talimatname/genel/l/ldns/talimat @@ -0,0 +1,30 @@ +# Tanım: DNS programlamayı basitleştirmek amacıyla hızlı DNS kütüphanesi. +# URL: http://www.nlnetlabs.nl +# Paketçi: milisarge +# Gerekler: openssl ca-certificates libcap python swig doxygen + +isim=ldns +surum=1.6.17 +devir=1 +kaynak=(http://www.nlnetlabs.nl/downloads/ldns/$isim-$surum.tar.gz) + +derle() { + + cd $isim-$surum + + sed -i 's/defined(@$also)/@$also/' doc/doxyparse.pl + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --disable-static \ + --with-drill + make + + make doc + + make DESTDIR=$PKG install + + install -v -m755 -d $PKG/usr/share/doc/ldns-1.6.17 + install -v -m644 doc/html/* $PKG/usr/share/doc/ldns-1.6.17 + +} diff --git a/talimatname/genel/l/leafpad/talimat b/talimatname/genel/l/leafpad/talimat new file mode 100644 index 000000000..19deeed37 --- /dev/null +++ b/talimatname/genel/l/leafpad/talimat @@ -0,0 +1,18 @@ +# Tanım: GTK + 2.0 için bir not defteri klonu +# URL: http://tarot.freeshell.org/leafpad/ +# Paketçi: milisarge +# Gerekler: gtk2 desktop-file-utils + +isim=leafpad +surum=0.8.18.1 +devir=1 + +kaynak=(http://download.savannah.gnu.org/releases/${isim}/${isim}-${surum}.tar.gz) + +derle(){ + cd $isim-$surum + ./configure --prefix=/usr --enable-chooser + make + make DESTDIR=$PKG install + echo 'StartupNotify=true' >> ${PKG}/usr/share/applications/leafpad.desktop +} diff --git a/talimatname/genel/l/lemonbar/talimat b/talimatname/genel/l/lemonbar/talimat new file mode 100644 index 000000000..49aee4ba7 --- /dev/null +++ b/talimatname/genel/l/lemonbar/talimat @@ -0,0 +1,29 @@ +# Tanım: Tamamen XCB'ye dayanan hafif bir çubuktur. +# URL: https://github.com/LemonBoy/bar +# Paketçi: milisarge +# Gerekler: libxcb git xorg-libxinerama + +isim=lemonbar +surum=v1.1.r12.gb331ee3 +devir=1 + +kaynak=() + +version() { + cd bar + + if git_surum=$( git describe --long --tags 2>/dev/null ); then + IFS='-' read last_tag tag_rev commit <<< "$git_version" + printf '%s.r%s.%s' "$last_tag" "$tag_rev" "$commit" + else + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + fi +} + +derle() { + git clone "https://github.com/LemonBoy/bar.git" + cd bar + make + + make PREFIX=/usr DESTDIR="$PKG" install +} diff --git a/talimatname/genel/l/lensfun/talimat b/talimatname/genel/l/lensfun/talimat new file mode 100644 index 000000000..e83b333bf --- /dev/null +++ b/talimatname/genel/l/lensfun/talimat @@ -0,0 +1,18 @@ +# Tanım: Fotoğrafik merceklerin veri tabanı ve veritabanına gelişmiş erişim sağlayan bir kütüphane +# URL: http://lensfun.berlios.de +# Paketçi: milisarge +# Gerekler: cmake glib libpng doxygen + +isim=lensfun +surum=0.3.1 +devir=1 + +kaynak=(http://sourceforge.net/projects/$isim/files/$surum/$isim-$surum.tar.gz + ) +derle(){ +cd $isim-$surum +cd build +cmake .. -DLENSFUN_INSTALL_PREFIX=/usr +make all +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/leptonica/talimat b/talimatname/genel/l/leptonica/talimat new file mode 100644 index 000000000..a47bf6f61 --- /dev/null +++ b/talimatname/genel/l/leptonica/talimat @@ -0,0 +1,20 @@ +# Tanım: Görüntü işleme ve görüntü analizi uygulamaları için geniş ölçüde yararlı olan yazılım +# URL: http://www.leptonica.com/ +# Paketçi: Cihan Alkan +# Gerekler: giflib libjpeg-turbo libpng libtiff libwebp +# Grup: medya + +isim=leptonica +surum=1.74.4 +devir=1 + +kaynak=(https://github.com/DanBloomberg/leptonica/archive/$surum.tar.gz::${isim}-${surum}.tar.gz) + +derle() { + cd "$SRC"/leptonica-${surum} + ./autobuild + ./configure --prefix=/usr + make + make DESTDIR="$PKG" install + install -D leptonica-license.txt "$PKG"/usr/share/licenses/leptonica/leptonica-license.txt +} diff --git a/talimatname/genel/l/lesstif/talimat b/talimatname/genel/l/lesstif/talimat new file mode 100644 index 000000000..510fe4979 --- /dev/null +++ b/talimatname/genel/l/lesstif/talimat @@ -0,0 +1,29 @@ +# Tanım: LessTif, Motif® araç kitinin bir klonudur. +# URL: http://www.lesstif.org/ +# Paketçi: milisarge +# Gerekler: freetype xorg-libxt xorg-libxext + +isim=lesstif +surum=0.95.2 +devir=1 +kaynak=(http://downloads.sourceforge.net/project/$isim/$isim/$surum/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr \ + --enable-nonstandard-conversions \ + --disable-debug \ + --with-editres \ + --with-xdnd \ + --mandir=/usr/man + make + make DESTDIR=$PKG install + + # remove xprint stuff + rm $PKG/usr/include/Xm/Print{SP,}.h + sed -i -e 's/.*Print.h.*//' $PKG/usr/include/Xm/XmAll.h + + rm -rf $PKG/usr/LessTif $PKG/usr/lib/X11/ \ + $PKG/usr/man/man{1/mwm.1,5/mwmrc.5} +} diff --git a/talimatname/genel/l/lftp/talimat b/talimatname/genel/l/lftp/talimat new file mode 100644 index 000000000..2bfe8abfe --- /dev/null +++ b/talimatname/genel/l/lftp/talimat @@ -0,0 +1,20 @@ +# Tanım: LFTP, ağ protokollerini (ftp, http, ftp, ftp, torrent) destekleyen komut satırı arayüzü ile sofistike bir dosya aktarım programıdır. +# URL: http://lftp.tech/ +# Paketçi: milisarge +# Gerekler: gnutls libidn + +isim=lftp +surum=4.7.7 +devir=1 + +kaynak=(http://lftp.yar.ru/ftp/$isim-$surum.tar.xz) +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --with-gnutls \ + --without-openssl \ + --without-included-regex \ + --disable-static + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/liba52/talimat b/talimatname/genel/l/liba52/talimat new file mode 100644 index 000000000..23fcf3dcd --- /dev/null +++ b/talimatname/genel/l/liba52/talimat @@ -0,0 +1,26 @@ +# Tanım: ATSC A/52 akışlarını çözmek için ücretsiz bir kütüphane +# URL: http://liba52.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: + +isim=liba52 +surum=0.7.4 +devir=1 + +kaynak=(http://liba52.sourceforge.net/files/a52dec-$surum.tar.gz) + +derle() { + cd a52dec-$surum + ./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --enable-shared \ + --disable-static \ + CFLAGS="-g -O2 $([ $(uname -m) = x86_64 ] && echo -fPIC)" + + make + make DESTDIR=$PKG install + # required for xine-lib + install -m644 liba52/a52_internal.h $PKG/usr/include/a52dec/ + install -v -m644 -D doc/liba52.txt \ + $PKG/usr/share/doc/liba52-$surum/liba52.txt +} diff --git a/talimatname/genel/l/libabw/talimat b/talimatname/genel/l/libabw/talimat new file mode 100644 index 000000000..4ebfae36a --- /dev/null +++ b/talimatname/genel/l/libabw/talimat @@ -0,0 +1,20 @@ +# Tanım: AbiWord belgelerinin dosya formatını ayrıştıran bir kütüphane +# URL: https://wiki.documentfoundation.org/DLP/Libraries/libabw +# Paketçi: Cihan Alkan +# Gerekler: libxml2 librevenge doxygen boost + +isim=libabw +surum=0.1.1 +devir=1 + +kaynak=(https://dev-www.libreoffice.org/src/$isim/$isim-$surum.tar.xz + https://github.com/LibreOffice/libabw/commit/ee2d0729.patch::libabw-boost-1.59.patch) + +derle() { + cd $isim-$surum + patch -p1 -i $SRC/libabw-boost-1.59.patch + autoreconf -vi + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libaccounts-glib/talimat b/talimatname/genel/l/libaccounts-glib/talimat new file mode 100644 index 000000000..4f8e1395e --- /dev/null +++ b/talimatname/genel/l/libaccounts-glib/talimat @@ -0,0 +1,23 @@ +# Tanım: Çevrimiçi hesap veritabanına erişmek için Glib tabanlı istemci kitaplığı +# URL: https://gitlab.com/accounts-sso/libaccounts-glib +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: dbus-glib libxml2 sqlite python-gobject docbook-xsl + +isim=libaccounts-glib +surum=1.21 +devir=1 + +PKGMK_KEEP_SOURCES="no" + +kaynak=(https://gitlab.com/accounts-sso/libaccounts-glib/repository/archive.zip) + +derle() { +cd libaccounts* +./autogen.sh +./configure \ + --prefix=/usr \ + --disable-static \ + --disable-gtk-doc +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libaccounts-qt5/talimat b/talimatname/genel/l/libaccounts-qt5/talimat new file mode 100644 index 000000000..da21ad4eb --- /dev/null +++ b/talimatname/genel/l/libaccounts-qt5/talimat @@ -0,0 +1,19 @@ +# Tanım: Çevrimiçi hesap veritabanına erişmek için t5 tabanlı istemci kitaplığı +# URL: https://gitlab.com/accounts-sso/libaccounts-qt +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: qt5 libaccounts-glib + +isim=libaccounts-qt5 +surum=1.14 +devir=1 + +PKGMK_KEEP_SOURCES="no" + +kaynak=(https://gitlab.com/accounts-sso/libaccounts-qt/repository/archive.zip) +derle() { +cd libaccounts* +sed -i 's|SUBDIRS += Accounts tests|SUBDIRS += Accounts|' accounts-qt.pro +qmake-qt5 PREFIX=/usr LIBDIR=/usr/lib +make +make INSTALL_ROOT=$PKG install +} diff --git a/talimatname/genel/l/libao/talimat b/talimatname/genel/l/libao/talimat new file mode 100644 index 000000000..630cfdd7f --- /dev/null +++ b/talimatname/genel/l/libao/talimat @@ -0,0 +1,16 @@ +# Tanım: Çapraz platform ses çıkışı kitaplığı ve eklentileri. +# URL: http://www.xiph.org/ao/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: alsa-lib + +isim=libao +surum=1.2.0 +devir=1 + +kaynak=(http://downloads.xiph.org/releases/ao/libao-1.2.0.tar.gz) +derle() { +cd $isim-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libappindicator-gtk2/talimat b/talimatname/genel/l/libappindicator-gtk2/talimat new file mode 100644 index 000000000..8c6b0088c --- /dev/null +++ b/talimatname/genel/l/libappindicator-gtk2/talimat @@ -0,0 +1,31 @@ +# Tanım: Uygulamaların bir menüyü Unity Menü çubuğuna vermesine izin veren bir kütüphane (Gtk2 kitaplığı). +# URL: https://launchpad.net/libappindicator +# Paketçi: milisarge +# Gerekler: gtk2 glib gnome-doc-utils libindicator-gtk2 libdbusmenu-gtk2 libdbusmenu-glib gobject-introspection vala python-gtk python-gobject2 dbus-glib + +run=(libindicator-gtk2 libdbusmenu-gtk2 libdbusmenu-glib) + +isim=libappindicator-gtk2 +surum=12.10.0 +devir=1 + +kaynak=(http://launchpad.net/libappindicator/${surum%.*}/$surum/+download/libappindicator-$surum.tar.gz) + +derle() { + + export CFLAGS+=" -Wno-error=deprecated-declarations" + cd libappindicator-$surum + sed -i 's|/cli/|/mono/|' bindings/mono/{appindicator-sharp-0.1.pc.in,Makefile.in} + + autoreconf -vfi + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-static \ + --disable-{gtk-doc-html,mono-test,static,tests} \ + --with-gtk=2 + make -j1 + make -j1 DESTDIR=$PKG install +} + diff --git a/talimatname/genel/l/libart_lgpl/talimat b/talimatname/genel/l/libart_lgpl/talimat new file mode 100644 index 000000000..e24548d14 --- /dev/null +++ b/talimatname/genel/l/libart_lgpl/talimat @@ -0,0 +1,16 @@ +# Tanım: Yüksek performanslı 2D grafikler için bir kütüphane. +# URL: http://www.levien.com/libart/ +# Paketçi: milisarge +# Gerekler: + +isim=libart_lgpl +surum=2.3.21 +devir=1 +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/2.3/$isim-$surum.tar.bz2) +derle(){ + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/l/libass/talimat b/talimatname/genel/l/libass/talimat new file mode 100644 index 000000000..d49d1c4f2 --- /dev/null +++ b/talimatname/genel/l/libass/talimat @@ -0,0 +1,16 @@ +# Tanım: Libass ASS / SSA (Gelişmiş Altyapı Alfa / Altyapı Alfa) altyazı biçimi için taşınabilir bir altyazı oluşturucudur. Çoğunlukla VSFilter ile uyumludur. +# URL: https://github.com/libass +# Paketçi: milisarge +# Gerekler: freetype fribidi xorg-fontconfig harfbuzz + +isim=libass +surum=0.13.1 +devir=1 +kaynak=(https://github.com/$isim/$isim/releases/download/$surum/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr --disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libassuan/talimat b/talimatname/genel/l/libassuan/talimat new file mode 100644 index 000000000..d470e081c --- /dev/null +++ b/talimatname/genel/l/libassuan/talimat @@ -0,0 +1,19 @@ +# Tanım: Diğer bazı GnuPG ile ilgili paketlerin kullandığı bir IPC kitaplığı içerir +# URL: http://www.gnupg.org/related_software/libassuan/ +# Paketçi: milisarge +# Gerekler: libgpg-error + +isim=libassuan +surum=2.4.3 +devir=1 + +kaynak=( ftp://ftp.gnupg.org/gcrypt/$isim/$isim-$surum.tar.bz2) +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--mandir=/usr/share/man \ +--infodir=/usr/share/info +make +make DESTDIR=$PKG install +rm $PKG/usr/share/info/dir +} diff --git a/talimatname/genel/l/libasyncd/talimat b/talimatname/genel/l/libasyncd/talimat new file mode 100644 index 000000000..f5caf1a0c --- /dev/null +++ b/talimatname/genel/l/libasyncd/talimat @@ -0,0 +1,16 @@ +# Tanım: Gömülü ssl destekli asenkron c,c++ sunucu uygulaması. +# Url: https://github.com/wolkykim/libasyncd +# Paketçi: milisarge +# Gerekler: libevent qlibc + +isim=libasyncd +surum=1.0.2 +devir=1 +kaynak=(https://github.com/wolkykim/libasyncd/archive/v$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make -j1 QLIBC=system DESTDIR=$PKG install +} + diff --git a/talimatname/genel/l/libasyncns/talimat b/talimatname/genel/l/libasyncns/talimat new file mode 100644 index 000000000..efdee033d --- /dev/null +++ b/talimatname/genel/l/libasyncns/talimat @@ -0,0 +1,16 @@ +# Tanım: Linux/Unix isim servis sorgularını asenkron çalıştıran C kütüphanesi +# URL: http://0pointer.de/lennart/projects/libasyncns +# Paketçi: milisarge +# Gerekler: + +isim=libasyncns +surum=0.8 +devir=1 +kaynak=(http://0pointer.de/lennart/projects/libasyncns/libasyncns-$surum.tar.gz) + +derle() { + cd $isim-${surum} + ./configure --prefix=/usr --disable-lynx + make + make DESTDIR=${PKG} install +} diff --git a/talimatname/genel/l/libatasmart/talimat b/talimatname/genel/l/libatasmart/talimat new file mode 100644 index 000000000..65c5a3cc7 --- /dev/null +++ b/talimatname/genel/l/libatasmart/talimat @@ -0,0 +1,18 @@ +# Tanım: Bir disk raporlama kitaplığı. Yalnızca ATA S.M.A.R.T işlevinin bir alt kümesini destekler. +# URL: http://0pointer.de/blog/projects/being-smart.html +# Paketçi: milisarge +# Gerekler: + +isim=libatasmart +surum=0.19 +devir=1 + +kaynak=(http://0pointer.de/public/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--disable-static +make +make DESTDIR=$PKG docdir=/usr/share/doc/libatasmart-$surum install +} diff --git a/talimatname/genel/l/libatomic-ops/talimat b/talimatname/genel/l/libatomic-ops/talimat new file mode 100644 index 000000000..4e3866e6a --- /dev/null +++ b/talimatname/genel/l/libatomic-ops/talimat @@ -0,0 +1,23 @@ +# Tanım: Bir dizi mimaride atom hafızası güncelleme işlemleri için uygulamalar. +# URL: http://www.hpl.hp.com/research/linux/atomic_ops/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: + +isim=libatomic-ops +surum=7.4.4 +devir=1 + +kaynak=(http://www.ivmaisoft.com/_bin/atomic_ops//libatomic_ops-$surum.tar.gz) + +derle() { +cd libatomic_ops-$surum +sed -i 's#pkgdata#doc#' doc/Makefile.am +autoreconf -fi +./configure --prefix=/usr \ + --enable-shared \ + --disable-static \ + --docdir=/usr/share/doc/libatomic_ops-$surum +make +make DESTDIR=$PKG install +rm -vrf $PKG/usr/share/libatomic_ops +} diff --git a/talimatname/genel/l/libb64/talimat b/talimatname/genel/l/libb64/talimat new file mode 100644 index 000000000..1ec1dc729 --- /dev/null +++ b/talimatname/genel/l/libb64/talimat @@ -0,0 +1,30 @@ +# Tanım: Base64 Encoding/Decoding Routines +# URL: http://libb64.sourceforge.net +# Paketçi: milisarge +# Gerekler: + +isim=libb64 +surum=1.2.1 +devir=1 +kaynak=(https://downloads.sourceforge.net/${isim}/${isim}-${surum}.zip + https://sources.debian.net/data/main/libb/libb64/1.2-3/debian/patches/bufsiz-as-buffer-size.diff) + +derle() { + cd $isim-$surum + patch -p1 -i "$SRC"/bufsiz-as-buffer-size.diff + + cd src + export CFLAGS="${CFLAGS} -fPIC" + make + + export CFLAGS="${CFLAGS} -shared -Wl,-soname,${isim}.so.0" + gcc ${LDFLAGS} ${CFLAGS} *.o -o ${isim}.so.0 + + install -d "${PKG}/usr/lib" + install libb64.so.0 "${PKG}/usr/lib" + ln -sf /usr/lib/libb64.so.0 "${PKG}/usr/lib/libb64.so" + cd .. + cp -r include "${PKG}/usr" + + install -Dm644 LICENSE "${PKG}"/usr/share/licenses/${isim}/LICENSE +} diff --git a/talimatname/genel/l/libbluray/talimat b/talimatname/genel/l/libbluray/talimat new file mode 100644 index 000000000..213b02cfd --- /dev/null +++ b/talimatname/genel/l/libbluray/talimat @@ -0,0 +1,20 @@ +# Tanım: Blu-Ray erişim kitaplığı. +# URL: http://www.videolan.org/developers/libbluray.html +# Paketçi: milisarge +# Gerekler: libxml2 freetype + +isim=libbluray +surum=0.6.2 +devir=1 +kaynak=(https://get.videolan.org/$isim/$surum/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + + ./configure \ + --prefix=/usr \ + --mandir=/usr/man + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libbsd/talimat b/talimatname/genel/l/libbsd/talimat new file mode 100644 index 000000000..5f6e73ce2 --- /dev/null +++ b/talimatname/genel/l/libbsd/talimat @@ -0,0 +1,17 @@ +# Tanım: BSD kitaplığı +# URL: http://libbsd.freedesktop.org +# Paketçi: milisarge +# Gerekler: +# Grup: sistem + +isim=libbsd +surum=0.8.7 +devir=1 + +kaynak=(http://libbsd.freedesktop.org/releases/$isim-$surum.tar.xz) +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libburn/talimat b/talimatname/genel/l/libburn/talimat new file mode 100644 index 000000000..68bd2096d --- /dev/null +++ b/talimatname/genel/l/libburn/talimat @@ -0,0 +1,17 @@ +# Tanım: Libburn, optik medyada önceden formatlanmış verileri yazmak için kullanılan bir kütüphanedir +# URL: http://icculus.org/burn/ +# Paketçi: milisarge +# Gerekler: + +isim=libburn +surum=1.4.2 +devir=1 + +kaynak=(http://files.libburnia-project.org/releases/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr --disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libcaca/talimat b/talimatname/genel/l/libcaca/talimat new file mode 100644 index 000000000..56c78ec4a --- /dev/null +++ b/talimatname/genel/l/libcaca/talimat @@ -0,0 +1,22 @@ +# Tanım: Renkli ASCII Sanat Kütüphanesi +# URL: http://libcaca.zoy.org/ +# Paketçi: milisarge +# Gerekler: imlib2 + +isim=libcaca +surum=0.99.beta19 +devir=1 + +kaynak=(http://libcaca.zoy.org/files/libcaca/libcaca-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --disable-doc \ + --localstatedir=/var + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/l/libcacard/talimat b/talimatname/genel/l/libcacard/talimat new file mode 100644 index 000000000..9b628886d --- /dev/null +++ b/talimatname/genel/l/libcacard/talimat @@ -0,0 +1,17 @@ +# Tanım: Common Access Card) library thar provides emulation of smart cards to a virtual card reader running in a guest virtual machine +# URL: http://www.spice-space.org/page/Libcacard +# Paketçi: milisarge +# Gerekler: nss glib + +isim=libcacard +surum=2.5.3 +devir=1 + +kaynak=(http://www.spice-space.org/download/libcacard/libcacard-$surum.tar.xz) + +derle() { + cd libcacard-$surum + ./configure --prefix=/usr + make + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/l/libcanberra/talimat b/talimatname/genel/l/libcanberra/talimat new file mode 100644 index 000000000..479a78c1e --- /dev/null +++ b/talimatname/genel/l/libcanberra/talimat @@ -0,0 +1,25 @@ +# Tanım: XDG ses temasının ve isim özelliklerinin uygulanması. +# URL: http://0pointer.de/lennart/projects/libcanberra/ +# Paketçi: milisarge +# Gerekler: libvorbis +# Optional: pulseaudio gstreamer alsa-lib gtk3 + +isim=libcanberra +surum=0.30 +devir=2 +kaynak=(http://0pointer.de/lennart/projects/$isim/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + + ./configure \ + --prefix=/usr \ + --disable-gtk-doc \ + --disable-gtk-doc-html \ + --disable-oss + + make + make -j1 DESTDIR=$PKG install + #make DESTDIR=$PKG install + rm -r $PKG/usr/share/doc $PKG/usr/share/gtk-doc +} diff --git a/talimatname/genel/l/libcap-ng/talimat b/talimatname/genel/l/libcap-ng/talimat new file mode 100644 index 000000000..e0792f2a1 --- /dev/null +++ b/talimatname/genel/l/libcap-ng/talimat @@ -0,0 +1,19 @@ +# Tanım: POSIX yetenekleri ile programlamayı geleneksel libcap'tan daha kolay hale getiren bir kütüphane. +# URL: http://people.redhat.com/sgrubb/libcap-ng/ +# Paketçi: milisarge +# Gerekler: glibc + +isim=libcap-ng +surum=0.7.7 +devir=1 + +kaynak=(http://people.redhat.com/sgrubb/$isim/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--disable-static \ +--without-python +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libcddb/talimat b/talimatname/genel/l/libcddb/talimat new file mode 100644 index 000000000..b64ff5300 --- /dev/null +++ b/talimatname/genel/l/libcddb/talimat @@ -0,0 +1,16 @@ +# Tanım: Bir CDDB sunucusundaki verilere erişmek için farklı protokolleri (CDDBP, HTTP, SMTP) uygular +# URL: http://sourceforge.net/projects/libcddb/ +# Paketçi: milisarge +# Gerekler: + +isim=libcddb +surum=1.3.2 +devir=1 + +kaynak=(http://downloads.sourceforge.net/sourceforge/${isim}/${isim}-${surum}.tar.bz2) +derle(){ +cd $isim-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libcdio-paranoia/talimat b/talimatname/genel/l/libcdio-paranoia/talimat new file mode 100644 index 000000000..becf5de17 --- /dev/null +++ b/talimatname/genel/l/libcdio-paranoia/talimat @@ -0,0 +1,17 @@ +# Tanım: GNU Kompakt Disk Giriş ve Kontrol Kütüphanesi +# URL: http://www.gnu.org/software/libcdio/ +# Paketçi: milisarge +# Gerekler: libcdio + +isim=libcdio-paranoia +surum=10.2 +devir=1 + +kaynak=( http://ftp.gnu.org/gnu/libcdio/libcdio-paranoia-${surum}+0.93+1.tar.bz2) + +derle() { + cd $SRC/libcdio-paranoia-${surum}+0.93+1 + ./configure --prefix=/usr --disable-static + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libcdio/talimat b/talimatname/genel/l/libcdio/talimat new file mode 100644 index 000000000..967dd914f --- /dev/null +++ b/talimatname/genel/l/libcdio/talimat @@ -0,0 +1,18 @@ +# Tanım: GNU Kompakt Disk Giriş ve Kontrol Kütüphanesi +# URL: http://www.gnu.org/software/libcdio/ +# Paketçi: milisarge +# Gerekler: libcddb + +isim=libcdio +surum=0.93 +devir=2 + +kaynak=( http://ftp.gnu.org/gnu/$isim/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --disable-static + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/info/dir +} diff --git a/talimatname/genel/l/libcdr/talimat b/talimatname/genel/l/libcdr/talimat new file mode 100644 index 000000000..3fe146fc8 --- /dev/null +++ b/talimatname/genel/l/libcdr/talimat @@ -0,0 +1,17 @@ +# Tanım: LibreOffice için CorelDraw dosya biçimi ithalatçı kütüphanesi +# URL: https://wiki.documentfoundation.org/DLP/Libraries/libcdr +# Paketçi: Cihan Alkan +# Gerekler: doxygen libwpd boost librevenge icu lcms2 + +isim=libcdr +surum=0.1.3 +devir=1 + +kaynak=(https://dev-www.libreoffice.org/src/$isim/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libchamplain/talimat b/talimatname/genel/l/libchamplain/talimat new file mode 100644 index 000000000..334839251 --- /dev/null +++ b/talimatname/genel/l/libchamplain/talimat @@ -0,0 +1,17 @@ +# Tanım: Rasterized haritaları görüntülemek için Gtk3 aracı. +# URL: http://projects.gnome.org/libchamplain/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: clutter-gtk libsoup cairo sqlite gobject-introspection + +isim=libchamplain +surum=0.12.14 +devir=1 + +kaynak=(https://download.gnome.org/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --disable-static --disable-debug --enable-vala + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libcli/talimat b/talimatname/genel/l/libcli/talimat new file mode 100644 index 000000000..6d28fb61c --- /dev/null +++ b/talimatname/genel/l/libcli/talimat @@ -0,0 +1,17 @@ +# Tanım: A shared library for including a Cisco-like command-line interface into other software. +# URL: https://github.com/dparrish/libcli +# Paketçi: milisarge +# Gerekler: +# Grup: kütüphane + +isim=libcli +surum=1.9.7 +devir=1 +kaynak=(https://github.com/dparrish/libcli/archive/v${surum}.tar.gz::$isim-$surum.tar.gz) + +derle() { + sed -i 's/-Werror//' "$SRC/$isim-$surum"/Makefile + cd "$SRC/$isim-$surum" + make + make DESTDIR="$PKG/" PREFIX='/usr' install +} diff --git a/talimatname/genel/l/libcmis/google_drive.diff b/talimatname/genel/l/libcmis/google_drive.diff new file mode 100644 index 000000000..2c2cf31b4 --- /dev/null +++ b/talimatname/genel/l/libcmis/google_drive.diff @@ -0,0 +1,106 @@ +diff --git a/src/libcmis/oauth2-providers.cxx b/src/libcmis/oauth2-providers.cxx +index 5e7f3bf..68a6aa5 100644 +--- a/src/libcmis/oauth2-providers.cxx ++++ b/src/libcmis/oauth2-providers.cxx +@@ -37,11 +37,28 @@ using namespace std; + string OAuth2Providers::OAuth2Gdrive( HttpSession* session, const string& authUrl, + const string& username, const string& password ) + { ++ /* This member function implements 'Google OAuth 2.0' ++ * ++ * The interaction is carried out by libcmis, with no web browser involved. ++ * ++ * Normal sequence (without 2FA) is: ++ * 1) a get to activate login page ++ * receive first login page, html format ++ * 2) subsequent post to sent email ++ * receive html page for password input ++ * 3) subsequent post to send password ++ * receive html page for application consent ++ * 4) subsequent post to send a consent for the application ++ * receive a single-use authorization code ++ * this code is returned as a string ++ */ ++ + static const string CONTENT_TYPE( "application/x-www-form-urlencoded" ); + // STEP 1: Log in + string res; + try + { ++ // send the first get, receive the html login page + res = session->httpGetRequest( authUrl )->getStream( )->str( ); + } + catch ( const CurlException& e ) +@@ -49,20 +66,39 @@ string OAuth2Providers::OAuth2Gdrive( HttpSession* session, const string& authUr + return string( ); + } + +- string loginPost, loginLink; +- if ( !parseResponse( res.c_str( ), loginPost, loginLink ) ) ++ string loginEmailPost, loginEmailLink; ++ if ( !parseResponse( res.c_str( ), loginEmailPost, loginEmailLink ) ) + return string( ); +- +- loginPost += "Email="; +- loginPost += string( username ); +- loginPost += "&Passwd="; +- loginPost += string( password ); +- +- istringstream loginIs( loginPost ); +- string loginRes; +- try ++ ++ loginEmailPost += "Email="; ++ loginEmailPost += string( username ); ++ ++ istringstream loginEmailIs( loginEmailPost ); ++ string loginEmailRes; ++ try ++ { ++ // send a post with user email, receive the html page for password input ++ loginEmailRes = session->httpPostRequest ( loginEmailLink, loginEmailIs, CONTENT_TYPE ) ++ ->getStream( )->str( ); ++ } ++ catch ( const CurlException& e ) ++ { ++ return string( ); ++ } ++ ++ string loginPasswdPost, loginPasswdLink; ++ if ( !parseResponse( loginEmailRes.c_str( ), loginPasswdPost, loginPasswdLink ) ) ++ return string( ); ++ ++ loginPasswdPost += "Passwd="; ++ loginPasswdPost += string( password ); ++ ++ istringstream loginPasswdIs( loginPasswdPost ); ++ string loginPasswdRes; ++ try + { +- loginRes = session->httpPostRequest ( loginLink, loginIs, CONTENT_TYPE ) ++ // send a post with user password, receive the application consent page ++ loginPasswdRes = session->httpPostRequest ( loginPasswdLink, loginPasswdIs, CONTENT_TYPE ) + ->getStream( )->str( ); + } + catch ( const CurlException& e ) +@@ -71,8 +107,8 @@ string OAuth2Providers::OAuth2Gdrive( HttpSession* session, const string& authUr + } + + // STEP 2: allow libcmis to access google drive +- string approvalPost, approvalLink; +- if ( !parseResponse( loginRes. c_str( ), approvalPost, approvalLink) ) ++ string approvalPost, approvalLink; ++ if ( !parseResponse( loginPasswdRes. c_str( ), approvalPost, approvalLink) ) + return string( ); + approvalPost += "submit_access=true"; + +@@ -80,7 +116,8 @@ string OAuth2Providers::OAuth2Gdrive( HttpSession* session, const string& authUr + string approvalRes; + try + { +- approvalRes = session->httpPostRequest ( approvalLink, approvalIs, ++ // send a post with application consent ++ approvalRes = session->httpPostRequest ( approvalLink, approvalIs, + CONTENT_TYPE) ->getStream( )->str( ); + } + catch ( const CurlException& e ) diff --git a/talimatname/genel/l/libcmis/talimat b/talimatname/genel/l/libcmis/talimat new file mode 100644 index 000000000..c4f8ef8c7 --- /dev/null +++ b/talimatname/genel/l/libcmis/talimat @@ -0,0 +1,19 @@ +# Tanım: CMIS protokolü için bir C / C ++ istemci kitaplığı +# URL: https://github.com/tdf/libcmis +# Paketçi: Cihan Alkan +# Gerekler: libxml2 boost libpng doxygen docbook2x + +isim=libcmis +surum=0.5.1 +devir=1 + +kaynak=(https://github.com/tdf/libcmis/releases/download/v$surum/$isim-$surum.tar.gz + google_drive.diff) + +derle() { + cd $isim-$surum + patch -Np1 -i $SRC/google_drive.diff + ./configure --prefix=/usr DOCBOOK2MAN='docbook2man' --disable-werror + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libconfig/talimat b/talimatname/genel/l/libconfig/talimat new file mode 100644 index 000000000..d51f22b6f --- /dev/null +++ b/talimatname/genel/l/libconfig/talimat @@ -0,0 +1,21 @@ +# Tanım: C / C ++ yapılandırma dosyası kitaplığı +# URL: http://www.hyperrealm.com/libconfig/ +# Paketçi: milisarge +# Gerekler: + +isim=libconfig +surum=1.5 +devir=2 +kaynak=(http://www.hyperrealm.com/libconfig/libconfig-$surum.tar.gz) + +derle() { + + cd $isim-$surum + + ./configure --prefix=/usr + + make + make DESTDIR=$PKG install + + rm $PKG/usr/share/info/dir +} diff --git a/talimatname/genel/l/libcroco/talimat b/talimatname/genel/l/libcroco/talimat new file mode 100644 index 000000000..427b6d1b0 --- /dev/null +++ b/talimatname/genel/l/libcroco/talimat @@ -0,0 +1,20 @@ +# Tanım: Libcroco paketi, tek başına bir CSS2 ayrıştırma ve değiştirme kütüphanesi içerir. +# URL: https://launchpad.net/libcroco +# Paketçi: milisarge +# Gerekler: libxml2 glib + +isim=libcroco +surum=0.6.11 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/libcroco/0.6/$isim-$surum.tar.xz) + + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ + --disable-static +make +make DESTDIR=$PKG install +rm -rf $PKG/usr/share +} diff --git a/talimatname/genel/l/libcryptui/libcryptui.kur-kos b/talimatname/genel/l/libcryptui/libcryptui.kur-kos new file mode 100644 index 000000000..6ba5ccf8f --- /dev/null +++ b/talimatname/genel/l/libcryptui/libcryptui.kur-kos @@ -0,0 +1 @@ +glib-compile-schemas /usr/share/glib-2.0/schemas diff --git a/talimatname/genel/l/libcryptui/talimat b/talimatname/genel/l/libcryptui/talimat new file mode 100644 index 000000000..df672f84e --- /dev/null +++ b/talimatname/genel/l/libcryptui/talimat @@ -0,0 +1,19 @@ +# Tanım: OpenPGP için Kütüphane komut istemleri +# URL: http://git.gnome.org/libcryptui +# Paketçi: yasarciv67@gmail.com +# Gerekler: gtk3 gpgme dbus-glib gnupg libnotify libgnome-keyring dconf gobject-introspection intltool + + +isim=libcryptui +surum=3.12.2 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/GNOME/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + sed -i "s@1.2 1.4 2.0@1.2 1.4 2.0 2.1@" configure + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libcxx/talimat b/talimatname/genel/l/libcxx/talimat new file mode 100644 index 000000000..d60c0ff7c --- /dev/null +++ b/talimatname/genel/l/libcxx/talimat @@ -0,0 +1,44 @@ +# Tanım: C + + 11'i hedef alan C ++ standart kütüphanesinin yeni bir uygulaması. +# URL: http://libcxx.llvm.org/ +# Paketçi: Cihan_Alkan +# Gerekler: clang cmake python3 libunwind +# Grup: kütüphane + +isim=libcxx +surum=5.0.1 +devir=1 + +kaynak=(https://releases.llvm.org/$surum/llvm-$surum.src.tar.xz + https://releases.llvm.org/$surum/libcxx-$surum.src.tar.xz + https://releases.llvm.org/$surum/libcxxabi-$surum.src.tar.xz) + +derle() { + mv llvm* llvm + mv libcxxabi* llvm/projects/libcxxabi + mv libcxx-* llvm/projects/libcxx + sed -i 's/CREDITS.TXT/CREDITS/' llvm/projects/libcxx/LICENSE.TXT + sed -i 's/CREDITS.TXT/CREDITS/' llvm/projects/libcxxabi/LICENSE.TXT + [[ -d build ]] || mkdir build + + cd build + CC=clang CXX=clang++ cmake \ + -G "Unix Makefiles" \ + -DLIBCXX_ENABLE_EXPERIMENTAL_LIBRARY=On \ + -DLIBCXX_INSTALL_EXPERIMENTAL_LIBRARY=Off \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + ${SRC}/llvm + make cxx cxx_experimental + + make DESTDIR="${PKG}" install-libcxx + install -Dm644 ${SRC}/llvm/projects/libcxx/CREDITS.TXT "${PKG}/usr/share/licenses/${isim}/CREDITS" + install -Dm644 ${SRC}/llvm/projects/libcxx/LICENSE.TXT "${PKG}/usr/share/licenses/${isim}/LICENSE" + make DESTDIR="${PKG}" install-libcxxabi + install -Dm644 ${SRC}/build/include/c++/v1/cxxabi.h "${PKG}/usr/include/c++/v1/cxxabi.h" + install -Dm644 ${SRC}/build/include/c++/v1/__cxxabi_config.h "${PKG}/usr/include/c++/v1/__cxxabi_config.h" + install -Dm644 ${SRC}/llvm/projects/libcxxabi/CREDITS.TXT "${PKG}/usr/share/licenses/${isim}/CREDITS" + install -Dm644 ${SRC}/llvm/projects/libcxxabi/LICENSE.TXT "${PKG}/usr/share/licenses/${isim}/LICENSE" + install -Dm644 ${SRC}/build/lib/libc++experimental.a ${PKG}/usr/lib/libc++experimental.a + install -Dm644 ${SRC}/llvm/projects/libcxx/CREDITS.TXT "${PKG}/usr/share/licenses/${isim}/CREDITS" + install -Dm644 ${SRC}/llvm/projects/libcxx/LICENSE.TXT "${PKG}/usr/share/licenses/${isim}/LICENSE" +} diff --git a/talimatname/genel/l/libdaemon/talimat b/talimatname/genel/l/libdaemon/talimat new file mode 100644 index 000000000..7362b7530 --- /dev/null +++ b/talimatname/genel/l/libdaemon/talimat @@ -0,0 +1,19 @@ +# Tanım: UNIX programlarını yazmayı kolaylaştıran hafif C kütüphanesi +# URL: http://0pointer.de/lennart/projects/libdaemon/ +# Paketçi: milisarge +# Gerekler: + +isim=libdaemon +surum=0.14 +devir=1 + +kaynak=( http://pkgs.fedoraproject.org/repo/pkgs/libdaemon/libdaemon-0.14.tar.gz/509dc27107c21bcd9fbf2f95f5669563/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --disable-doxygen \ + --disable-lynx + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libdatrie/talimat b/talimatname/genel/l/libdatrie/talimat new file mode 100644 index 000000000..57108d2d1 --- /dev/null +++ b/talimatname/genel/l/libdatrie/talimat @@ -0,0 +1,20 @@ +# Tanım: Junichi Aoe tarafından önerilen, bir tür dijital arama ağacı olan trie'yi temsil etmek için çift dizili yapının uygulanması +# URL: http://linux.thai.net/~thep/datrie/datrie.html +# Paketçi: milisarge +# Gerekler: + +isim=libdatrie +surum=0.2.9 +devir=1 + +kaynak=(http://linux.thai.net/pub/thailinux/software/libthai/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--mandir=/usr/share/man \ +--infodir=/usr/share/info \ +--disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libdbusmenu-glib/talimat b/talimatname/genel/l/libdbusmenu-glib/talimat new file mode 100644 index 000000000..5fd6d2c86 --- /dev/null +++ b/talimatname/genel/l/libdbusmenu-glib/talimat @@ -0,0 +1,27 @@ +# Tanım: DBusMenu protokolünün Glib uygulaması sağlayan kitaplık +# URL: https://launchpad.net/dbusmenu +# Paketçi: milisarge +# Gerekler: python gobject-introspection gtk2 gtk3 glib vala gnome-doc-utils atk libepoxy json-glib gnome-common pkg-config valgrind + +isim=libdbusmenu-glib +_isim=libdbusmenu +devir=1 +surum=16.04.0 + +kaynak=(https://launchpad.net/${_name}/${surum%.*}.tar.gz ) + +derle() { + export HAVE_VALGRIND_TRUE='#' + export HAVE_VALGRIND_FALSE='' + + cd $_name-$surum + + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib/$_name \ + --disable-static --disable-scrollkeeper --disable-tests + + make + + make -C libdbusmenu-glib DESTDIR=$PKG install + make -C tools DESTDIR=$PKG install + make -C docs DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libdbusmenu-gtk2/talimat b/talimatname/genel/l/libdbusmenu-gtk2/talimat new file mode 100644 index 000000000..678d36ec5 --- /dev/null +++ b/talimatname/genel/l/libdbusmenu-gtk2/talimat @@ -0,0 +1,27 @@ +# Tanım: DBusMenu protokolünün GTK2 uygulaması olan kitaplık +# URL: https://launchpad.net/dbusmenu +# Paketçi: milisarge +# Gerekler: python gobject-introspection gtk2 gtk3 libdbusmenu-glib vala gnome-doc-utils atk libepoxy json-glib + +isim=libdbusmenu-gtk2 +_isim=libdbusmenu +devir=1 +surum=16.04.0 + +kaynak=(http://launchpad.net/$_name/${surum%.*}-$surum.tar.gz ) + +derle() { + export HAVE_VALGRIND_TRUE='#' + export HAVE_VALGRIND_FALSE='' + + cd $_name-$surum + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-{dumper,static,tests} \ + --with-gtk=2 + make + make -C libdbusmenu-glib DESTDIR=$PKG install + make -C libdbusmenu-gtk DESTDIR=$PKG install + make -C libdbusmenu-glib DESTDIR=$PKG uninstall +} \ No newline at end of file diff --git a/talimatname/genel/l/libdbusmenu-gtk3/talimat b/talimatname/genel/l/libdbusmenu-gtk3/talimat new file mode 100644 index 000000000..570b6effb --- /dev/null +++ b/talimatname/genel/l/libdbusmenu-gtk3/talimat @@ -0,0 +1,27 @@ +# Tanım: DBusMenu protokolünün GTK3 uygulaması olan kitaplık +# URL: https://launchpad.net/dbusmenu +# Paketçi: milisarge +# Gerekler: python gobject-introspection gtk2 gtk3 libdbusmenu-glib vala gnome-doc-utils atk libepoxy json-glib + +isim=libdbusmenu-gtk3 +_isim=libdbusmenu +devir=1 +surum=16.04.0 + +kaynak=(http://launchpad.net/$_name/${surum%.*}-$surum.tar.gz ) + +derle() { + export HAVE_VALGRIND_TRUE='#' + export HAVE_VALGRIND_FALSE='' + + cd $_name-$surum + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-{dumper,static,tests} \ + --with-gtk=3 + make -j1 + make -C libdbusmenu-glib DESTDIR=$PKG install + make -C libdbusmenu-gtk DESTDIR=$PKG install + make -C libdbusmenu-glib DESTDIR=$PKG uninstall +} diff --git a/talimatname/genel/l/libdbusmenu-qt/talimat b/talimatname/genel/l/libdbusmenu-qt/talimat new file mode 100644 index 000000000..471103a7c --- /dev/null +++ b/talimatname/genel/l/libdbusmenu-qt/talimat @@ -0,0 +1,18 @@ +# Tanım: DBusMenu spesifikasyonunun Qt uygulanmasını sağlayan bir kütüphane +# URL: http://launchpad.net/libdbusmenu-qt +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: qt4 + +isim=libdbusmenu-qt +surum=0.9.2 +devir=1 + +kaynak=(http://launchpad.net/libdbusmenu-qt/trunk/$surum/+download/$isim-$surum.tar.bz2) +derle() { +cd $isim-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DWITH_DOC=OFF + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libdbusmenu-qt5/talimat b/talimatname/genel/l/libdbusmenu-qt5/talimat new file mode 100644 index 000000000..3b275b681 --- /dev/null +++ b/talimatname/genel/l/libdbusmenu-qt5/talimat @@ -0,0 +1,21 @@ +# Tanım: DBusMenu protokolünün Qt5 uygulamasını sağlayan kitaplık +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com yasarciv67@gmail.com +# Gerekler: cmake qt5 qjson + +isim=libdbusmenu-qt5 +_isim=libdbusmenu-qt +devir=1 +surum=0.9.3+16.04.20160218 +kaynak=(http://archive.ubuntu.com/ubuntu/pool/main/libd/$_name/libdbusmenu-qt_$surum.orig.tar.gz) + +derle() { +cd libdbusmenu-qt-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DWITH_DOC=OFF \ + -Wno-dev -DKDE_INSTALL_USE_QT_SYS_PATHS=ON +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libdmapsharing/talimat b/talimatname/genel/l/libdmapsharing/talimat new file mode 100644 index 000000000..a5ff026e7 --- /dev/null +++ b/talimatname/genel/l/libdmapsharing/talimat @@ -0,0 +1,19 @@ +# Tanım: DMAP protokol ailesini uygulayan bir kütüphane +# URL: http://www.flyn.org/projects/libdmapsharing/index.html +# Paketçi: yasarciv67@gmail.com +# Gerekler: gtk-doc gobject-introspection libsoup avahi gstreamer1-plugins-base gdk-pixbuf + +isim=libdmapsharing +surum=2.9.39 +devir=1 +kaynak=(https://git.gnome.org/browse/$isim/snapshot/LIBDMAPSHARING_2_9_39.tar.xz) + +derle() { + cd LIBDMAPSHARING_2_9_39 + ./autogen.sh + ./configure --prefix=/usr --with-mdns=avahi --enable-gtk-doc + + make + make DESTDIR="$PKG" install + +} diff --git a/talimatname/genel/l/libdmtx/talimat b/talimatname/genel/l/libdmtx/talimat new file mode 100644 index 000000000..5f325d49b --- /dev/null +++ b/talimatname/genel/l/libdmtx/talimat @@ -0,0 +1,19 @@ +# Tanım: Data Matrix 2D barkodları okumak ve yazmak için bir yazılım +# URL: https://libdmtx.sourceforge.net/ +# Paketçi: Cihan_Alkan +# Gerekler: glibc +# Grup: + +isim=libdmtx +surum=0.7.4 +devir=1 +kaynak=(https://downloads.sourceforge.net/$isim/$isim-$surum.tar.bz2) + +derle() { + + cd $isim-$surum + ./configure --prefix=/usr + make + + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/l/libdnet/talimat b/talimatname/genel/l/libdnet/talimat new file mode 100644 index 000000000..ada676c18 --- /dev/null +++ b/talimatname/genel/l/libdnet/talimat @@ -0,0 +1,18 @@ +# Tanım: ARP arkaplan çalıştırma ve araçlar +# URL: http://arpon.sf.net +# Paketçi: milisarge +# Gerekler: libpcap libnet + +isim=libdnet +surum=1.11 +devir=1 +kaynak=(http://download.sourceforge.net/$isim/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + autoreconf -i -Iconfig + ./configure --prefix=/usr \ + --mandir=/usr/man + make + make install DESTDIR=$PKG +} diff --git a/talimatname/genel/l/libdv/talimat b/talimatname/genel/l/libdv/talimat new file mode 100644 index 000000000..d9b1d8b2e --- /dev/null +++ b/talimatname/genel/l/libdv/talimat @@ -0,0 +1,17 @@ +# Tanım: Quasar DV codec (libdv), DV video için bir yazılım codec bileşenidir +# URL: http://downloads.sourceforge.net/libdv +# Paketçi: milisarge +# Gerekler: popt sdl xorg-libxv + +isim=libdv +surum=1.0.0 +devir=1 + +kaynak=(http://downloads.sourceforge.net/libdv/libdv-1.0.0.tar.gz) +derle() { +cd $isim-$surum +./configure --prefix=/usr --disable-xv \ +--disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libdvdcss/talimat b/talimatname/genel/l/libdvdcss/talimat new file mode 100644 index 000000000..e43f89343 --- /dev/null +++ b/talimatname/genel/l/libdvdcss/talimat @@ -0,0 +1,17 @@ +# Tanım: DVD şifre çözme için portatif soyutlama kütüphanesi +# URL: http://www.videolan.org +# Paketçi: milisarge +# Gerekler: doxygen + +isim=libdvdcss +surum=1.4.0 +devir=1 + +kaynak=(http://download.videolan.org/libdvdcss/$surum/libdvdcss-$surum.tar.bz2) +derle() { +cd $isim-$surum +./configure --prefix=/usr --disable-static \ +--docdir=/usr/share/doc/libdvdcss-$surum +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libdvdnav/talimat b/talimatname/genel/l/libdvdnav/talimat new file mode 100644 index 000000000..be642754e --- /dev/null +++ b/talimatname/genel/l/libdvdnav/talimat @@ -0,0 +1,18 @@ +# Tanım: Xine-dvdnav eklentisi için kütüphane +# URL: http://mplayerhq.hu +# Paketçi: milisarge +# Gerekler: libdvdread + +isim=libdvdnav +surum=5.0.3 +devir=1 + +kaynak=( http://download.videolan.org/videolan/$isim/$surum/$isim-$surum.tar.bz2) +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--disable-static \ +--docdir=/usr/share/doc/$isim-$surum +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libdvdread/talimat b/talimatname/genel/l/libdvdread/talimat new file mode 100644 index 000000000..0b2956227 --- /dev/null +++ b/talimatname/genel/l/libdvdread/talimat @@ -0,0 +1,18 @@ +# Tanım: DVD video disklerini okumak için basit bir temel sağlar +# URL: http://mplayerhq.hu +# Paketçi: milisarge +# Gerekler: + +isim=libdvdread +surum=5.0.3 +devir=1 + +kaynak=(http://download.videolan.org/videolan/$isim/$surum/$isim-$surum.tar.bz2) +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--disable-static \ +--docdir=/usr/share/libdvdread-$surum +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libe-book/talimat b/talimatname/genel/l/libe-book/talimat new file mode 100644 index 000000000..f819604a9 --- /dev/null +++ b/talimatname/genel/l/libe-book/talimat @@ -0,0 +1,18 @@ +# Tanım: e-kitap formatları için kütüphane +# URL: http://sourceforge.net/projects/libebook/ +# Paketçi: milisarge +# Gerekler: boost cppunit doxygen librevenge libxml2 liblangtag +# Grup: ofis_düzenleyici + +isim=libe-book +surum=0.1.3 +devir=1 +kaynak=(https://sourceforge.net/projects/libebook/files/libe-book-$surum/libe-book-$surum.tar.xz) + +derle() { + cd ${isim}-${surum} + ./configure --prefix=/usr + make + make check + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libechonest/talimat b/talimatname/genel/l/libechonest/talimat new file mode 100644 index 000000000..6b5fb2673 --- /dev/null +++ b/talimatname/genel/l/libechonest/talimat @@ -0,0 +1,25 @@ +# Tanım: Echo Nest ile arabirim oluşturmak için C ++ kütüphanesi (qt5 sürümünü oluşturur) +# URL: https://projects.kde.org/projects/playground/libs/libechonest +# Paketçi: milisarge +# Gerekler: qt5 + +isim=libechonest +surum=2.3.1 +devir=1 + +kaynak=(https://github.com/lfranchi/libechonest/archive/$surum.tar.gz) + +derle() { + mkdir build + cd build + + cmake ../$isim-$surum \ + -DCMAKE_BUILD_TYPE=Release \ + -DECHONEST_BUILD_TESTS=OFF \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_WITH_QT4=off + + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/l/libedit/talimat b/talimatname/genel/l/libedit/talimat new file mode 100644 index 000000000..ca48e898e --- /dev/null +++ b/talimatname/genel/l/libedit/talimat @@ -0,0 +1,20 @@ +# Tanım: Genel satır düzenleme, tarih ve tokenization işlevleri sağlayan komut satırı düzenleyicisi. +# URL: http://thrysoee.dk/editline/ +# Paketçi: milisarge +# Gerekler: + +isim=libedit +_surum=20170329-3.1 +surum=${_surum/-/_} +devir=1 + +kaynak=(http://www.thrysoee.dk/editline/libedit-${_surum}.tar.gz) + +derle(){ + cd $isim-${_version} + ./configure --prefix=/usr \ + --enable-widec + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/man +} diff --git a/talimatname/genel/l/libepoxy/talimat b/talimatname/genel/l/libepoxy/talimat new file mode 100644 index 000000000..72399d7e1 --- /dev/null +++ b/talimatname/genel/l/libepoxy/talimat @@ -0,0 +1,18 @@ +# Tanım: OpenGL işlev göstergesi yönetimi ile ilgili kitaplık +# URL: https://github.com/anholt/libepoxy +# Paketçi: milisarge +# Gerekler: glibc xorg-mesa python xorg-util-macros + +isim=libepoxy +surum=1.3.1 +devir=1 + +kaynak=( https://github.com/anholt/libepoxy/releases/download/v$surum/libepoxy-$surum.tar.bz2) + +derle() { +cd libepoxy-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/l/libesmtp/talimat b/talimatname/genel/l/libesmtp/talimat new file mode 100644 index 000000000..a503826e8 --- /dev/null +++ b/talimatname/genel/l/libesmtp/talimat @@ -0,0 +1,19 @@ +# Tanım: Bazı programlar tarafından posta aktarım katmanına e-posta göndermeyi yönetmek için kullanılan kitaplıklar. +# URL: http://www.stafford.uklinux.net/libesmtp/ +# Paketçi: milisarge +# Gerekler: + +isim=libesmtp +surum=1.0.6 +devir=1 + +kaynak=( http://www.stafford.uklinux.net/$isim/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr\ + --mandir=/usr/share/man\ + --infodir=/usr/share/info + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libetonyek/0001-Allow-building-with-mdds-1.2.patch b/talimatname/genel/l/libetonyek/0001-Allow-building-with-mdds-1.2.patch new file mode 100644 index 000000000..32466aae4 --- /dev/null +++ b/talimatname/genel/l/libetonyek/0001-Allow-building-with-mdds-1.2.patch @@ -0,0 +1,83 @@ +From f6d14b3b510de5c50e45c98fe812a73ba00f3def Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Fridrich=20=C5=A0trba?= +Date: Thu, 9 Jun 2016 10:50:41 +0200 +Subject: [PATCH] Allow building with mdds-1.2 + +Change-Id: If8791b4c1c3fbefdd06af345276e0a724dff5482 +--- + configure.ac | 44 +++++++++++++++++++++++--------------------- + 1 file changed, 23 insertions(+), 21 deletions(-) + +diff --git a/configure.ac b/configure.ac +index ca4bb07..bb946eb 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -24,7 +24,7 @@ AC_LANG([C++]) + # Configure options + # ================= + AC_ARG_WITH([mdds], +- AS_HELP_STRING([--with-mdds=1.0|0.x], [Specify which version of mdds to use (1.0 is the default)]), ++ AS_HELP_STRING([--with-mdds=1.2|1.0|0.x], [Specify which version of mdds to use (1.0 is the default)]), + [], [with_mdds="1.0"]) + + # =========================== +@@ -47,7 +47,7 @@ AC_PROG_SED + + AM_MISSING_PROG([GPERF], [gperf]) + +-AS_IF([test "$with_mdds" = "1.0"], [AX_CXX_COMPILE_STDCXX_11([noext])]) ++AS_IF([test "$with_mdds" = "1.0" -o "$with_mdds" = "1.2" ], [AX_CXX_COMPILE_STDCXX_11([noext])]) + + # =============== + # Find librevenge +@@ -138,25 +138,27 @@ AC_SUBST([GLM_CFLAGS]) + # ========= + # Find mdds + # ========= +-AS_IF([test "$with_mdds" = "1.0"], [ +- PKG_CHECK_MODULES([MDDS], [mdds-1.0]) +-], [ +- PKG_CHECK_MODULES([MDDS], [mdds]) +- AC_MSG_CHECKING([checking if mdds::flat_segment_tree can store values of any type]) +- old_CPPFLAGS="$CPPFLAGS" +- CPPFLAGS="$MDDS_CFLAGS $CPPFLAGS" +- AC_COMPILE_IFELSE([AC_LANG_SOURCE([ +- #include +- struct Value {}; +- mdds::flat_segment_tree tree(0, 4, Value()); +- ])], [ +- AC_MSG_RESULT([yes]) +- ], [ +- AC_MSG_RESULT([no]) +- AC_MSG_ERROR([please install mdds >= 0.12.1]) +- ]) +- CPPFLAGS="$old_CPPFLAGS" +-]) ++AS_CASE(["$with_mdds"], ++ ["1.2"], [PKG_CHECK_MODULES([MDDS], [mdds-1.2])], ++ ["1.0"], [PKG_CHECK_MODULES([MDDS], [mdds-1.0])], ++ [ ++ PKG_CHECK_MODULES([MDDS], [mdds]) ++ AC_MSG_CHECKING([checking if mdds::flat_segment_tree can store values of any type]) ++ old_CPPFLAGS="$CPPFLAGS" ++ CPPFLAGS="$MDDS_CFLAGS $CPPFLAGS" ++ AC_COMPILE_IFELSE([AC_LANG_SOURCE([ ++ #include ++ struct Value {}; ++ mdds::flat_segment_tree tree(0, 4, Value()); ++ ])], [ ++ AC_MSG_RESULT([yes]) ++ ], [ ++ AC_MSG_RESULT([no]) ++ AC_MSG_ERROR([please install mdds >= 0.12.1]) ++ ]) ++ CPPFLAGS="$old_CPPFLAGS" ++ ] ++) + + # ================================= + # Libtool/Version Makefile settings +-- +2.9.3 + + diff --git a/talimatname/genel/l/libetonyek/0001-drop-test-that-violates-Unicode-tr-35.patch b/talimatname/genel/l/libetonyek/0001-drop-test-that-violates-Unicode-tr-35.patch new file mode 100644 index 000000000..38c17f616 --- /dev/null +++ b/talimatname/genel/l/libetonyek/0001-drop-test-that-violates-Unicode-tr-35.patch @@ -0,0 +1,37 @@ +From 1a20d8ece2ea3e8aa1d319cd88e8a6aa637982f2 Mon Sep 17 00:00:00 2001 +From: David Tardon +Date: Fri, 30 Sep 2016 09:57:15 +0200 +Subject: [PATCH] drop test that violates Unicode tr#35 + +(and therefore fails with latest liblangtag) + +Change-Id: I0e06c6c4e8bcf999cf5559d6287e77ae97e555d8 +--- + src/test/IWORKLanguageManagerTest.cpp | 10 ---------- + 1 file changed, 10 deletions(-) + +diff --git a/src/test/IWORKLanguageManagerTest.cpp b/src/test/IWORKLanguageManagerTest.cpp +index 8fca0a6..e663bd2 100644 +--- a/src/test/IWORKLanguageManagerTest.cpp ++++ b/src/test/IWORKLanguageManagerTest.cpp +@@ -104,16 +104,6 @@ void IWORKLanguageManagerTest::testTagToProps() + } + + { +- const string tag(mgr.addTag("ccc")); +- CPPUNIT_ASSERT(!tag.empty()); +- RVNGPropertyList props; +- mgr.writeProperties(tag, props); +- assertProperty("unknown lang", props, "fo:language", "ccc"); +- CPPUNIT_ASSERT(!props["fo:country"]); +- CPPUNIT_ASSERT(!props["fo:script"]); +- } +- +- { + // invalid tag + const string tag(mgr.addTag("13c")); + CPPUNIT_ASSERT(tag.empty()); +-- +2.9.3 + + diff --git a/talimatname/genel/l/libetonyek/0001-fix-test-on-i686.patch b/talimatname/genel/l/libetonyek/0001-fix-test-on-i686.patch new file mode 100644 index 000000000..be8faf03e --- /dev/null +++ b/talimatname/genel/l/libetonyek/0001-fix-test-on-i686.patch @@ -0,0 +1,27 @@ +From b63a2f52d95243aef4660b2d4573f0e149eeb9a6 Mon Sep 17 00:00:00 2001 +From: David Tardon +Date: Wed, 22 Feb 2017 15:03:19 -0500 +Subject: [PATCH] fix test on i686 + +Change-Id: Ib9dafdfd76175cc6bbcd94596f7a7bd8b924ed34 +--- + src/test/IWORKTransformationTest.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/test/IWORKTransformationTest.cpp b/src/test/IWORKTransformationTest.cpp +index 77f0b27..5e96e60 100644 +--- a/src/test/IWORKTransformationTest.cpp ++++ b/src/test/IWORKTransformationTest.cpp +@@ -232,7 +232,7 @@ void IWORKTransformationTest::testInverseOperations() + + CPPUNIT_ASSERT(scale(2, 1) * scale(0.5, 1) == eye); + CPPUNIT_ASSERT(scale(1, 2) * scale(1, 0.5) == eye); +- CPPUNIT_ASSERT(scale(3, 2) * scale(1.0 / 3, 0.5) == eye); ++ CPPUNIT_ASSERT(approxEqual(scale(3, 2) * scale(1.0 / 3, 0.5), eye)); + + // CPPUNIT_ASSERT(shear() == eye); + +-- +2.11.1 + + diff --git a/talimatname/genel/l/libetonyek/talimat b/talimatname/genel/l/libetonyek/talimat new file mode 100644 index 000000000..fb1752441 --- /dev/null +++ b/talimatname/genel/l/libetonyek/talimat @@ -0,0 +1,25 @@ +# Tanım: Apple Keynote sunumlarını okumak ve dönüştürmek için kullanılan kütüphane ve araçlar +# URL: https://wiki.documentfoundation.org/DLP/Libraries/libetonyek +# Paketçi: Cihan Alkan +# Gerekler: libxml2 boost librevenge doxygen mdds libwpd liblangtag glm + +isim=libetonyek +surum=0.1.6 +devir=1 + +kaynak=(https://dev-www.libreoffice.org/src/$isim/$isim-$surum.tar.xz + 0001-Allow-building-with-mdds-1.2.patch + 0001-drop-test-that-violates-Unicode-tr-35.patch + 0001-fix-test-on-i686.patch) + +derle() { + cd $isim-$surum + patch -Np1 -i ../0001-Allow-building-with-mdds-1.2.patch + patch -Np1 -i ../0001-drop-test-that-violates-Unicode-tr-35.patch + patch -Np1 -i ../0001-fix-test-on-i686.patch + autoreconf -vfi + + ./configure --prefix=/usr --with-mdds=1.2 + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libetpan/talimat b/talimatname/genel/l/libetpan/talimat new file mode 100644 index 000000000..c1cea88e5 --- /dev/null +++ b/talimatname/genel/l/libetpan/talimat @@ -0,0 +1,16 @@ +# Tanım: E-posta erişimi için portatif bir katman +# URL: http://www.etpan.org/ +# Paketçi: milisarge +# Gerekler: curl expat + +isim=libetpan +surum=1.1 +devir=1 + +kaynak=(http://downloads.sourceforge.net/sourceforge/$isim/$isim-$surum.tar.gz) +derle() { +cd $isim-$surum +./configure --prefix=/usr --disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libev/talimat b/talimatname/genel/l/libev/talimat new file mode 100644 index 000000000..39a93fcba --- /dev/null +++ b/talimatname/genel/l/libev/talimat @@ -0,0 +1,18 @@ +# Tanım: yüksek performans loop/event modeli +# URL: http://software.schmorp.de/pkg/libev.html +# Paketçi: milisarge +# Gerekler: + +isim=libev +surum=4.22 +devir=1 +kaynak=(http://dist.schmorp.de/$isim/Attic/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --disable-static + make + make prefix=$PKG/usr install + rm $PKG/usr/include/event.h +} diff --git a/talimatname/genel/l/libevdev/talimat b/talimatname/genel/l/libevdev/talimat new file mode 100644 index 000000000..fe028d3aa --- /dev/null +++ b/talimatname/genel/l/libevdev/talimat @@ -0,0 +1,17 @@ +# Tanım: Libevdev paketi Xorg giriş sürücüleri için ortak işlevler içerir. +# URL: http://www.freedesktop.org/wiki/Software/libevdev/ +# Paketçi: milisarge +# Gerekler: python + +isim=libevdev +surum=1.4.6 +devir=1 + +kaynak=( http://www.freedesktop.org/software/libevdev/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libevent/talimat b/talimatname/genel/l/libevent/talimat new file mode 100644 index 000000000..f341ff4eb --- /dev/null +++ b/talimatname/genel/l/libevent/talimat @@ -0,0 +1,16 @@ +# Tanım: Bir etkinlik bildirim kitaplığı +# URL: http://www.monkey.org/~provos/libevent/ +# Paketçi: milisarge +# Gerekler: + +isim=libevent +surum=2.0.22 +devir=1 + +kaynak=(http://downloads.sourceforge.net/levent/$isim-$surum-stable.tar.gz) +derle() { +cd $isim-$surum-stable +./configure --prefix=/usr --disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libexif/talimat b/talimatname/genel/l/libexif/talimat new file mode 100644 index 000000000..df37c991b --- /dev/null +++ b/talimatname/genel/l/libexif/talimat @@ -0,0 +1,21 @@ +# Tanım: Bir EXIF dosyasını ayrıştırmak ve bu etiketlerdeki verileri okumak için bir kitaplık +# URL: http://libexif.sourceforge.net +# Paketçi: milisarge +# Gerekler: + +isim=libexif +surum=0.6.21 +devir=1 + +kaynak=( http://downloads.sourceforge.net/$isim/$isim-$surum.tar.bz2) + + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--mandir=/usr/share/man \ +--infodir=/usr/share/info \ +--with-doc-dir=/usr/share/doc/libexif-$surum +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libexttextcat/talimat b/talimatname/genel/l/libexttextcat/talimat new file mode 100644 index 000000000..01a53f669 --- /dev/null +++ b/talimatname/genel/l/libexttextcat/talimat @@ -0,0 +1,20 @@ +# Tanım: Öncelikle dil tahmininde kullanılan N-Gram Tabanlı Metin Sınıflandırma kitaplığı +# URL: http://www.freedesktop.org/wiki/Software/libexttextcat/ +# Paketçi: Cihan Alkan +# Gerekler: + +isim=libexttextcat +surum=3.4.4 +devir=1 + +kaynak=(https://dev-www.libreoffice.org/src/$isim/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + + ./configure --prefix=/usr + make + make DESTDIR="$PKG" install + + install -D -m644 LICENSE "$PKG"/usr/share/licenses/$isim/LICENSE +} diff --git a/talimatname/genel/l/libfakekey/talimat b/talimatname/genel/l/libfakekey/talimat new file mode 100644 index 000000000..1c6918b6a --- /dev/null +++ b/talimatname/genel/l/libfakekey/talimat @@ -0,0 +1,20 @@ +# Tanım: X sanal klavye kitaplığı. +# URL: https://www.yoctoproject.org/tools-resources/projects/matchbox +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: xorg-libxtst + +isim=libfakekey +surum=0.1 +devir=1 + +kaynak=(http://downloads.yoctoproject.org/releases/matchbox/$isim/$surum/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-static +make AM_LDFLAGS=-lX11 +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libffi/libffi.kur-kos b/talimatname/genel/l/libffi/libffi.kur-kos new file mode 100755 index 000000000..3bd493194 --- /dev/null +++ b/talimatname/genel/l/libffi/libffi.kur-kos @@ -0,0 +1,2 @@ +ln -s /usr/lib/libffi.la /usr/lib64/ +ln -s /usr/lib/libffi.so /usr/lib64/ diff --git a/talimatname/genel/l/libffi/talimat b/talimatname/genel/l/libffi/talimat new file mode 100644 index 000000000..9e29a41b1 --- /dev/null +++ b/talimatname/genel/l/libffi/talimat @@ -0,0 +1,28 @@ +# Tanım: Çeşitli arama kurallarına taşınabilir, yüksek seviyeli bir programlama arabirimi sağlayın. +# URL: http://sourceware.org/libffi/ +# Paketçi: milisarge +# Gerekler: + +isim=libffi +surum=3.2.1 +devir=1 + +kaynak=( ftp://sourceware.org/pub/$isim/$isim-$surum.tar.gz ) + + +derle() { +cd $isim-$surum +sed -e '/^includesdir/ s:$(libdir)/@PACKAGE_NAME@-@PACKAGE_VERSION@/include:$(includedir):' \ +-i include/Makefile.in +sed -e '/^includedir/ s:${libdir}/@PACKAGE_NAME@-@PACKAGE_VERSION@/include:@includedir@:' \ +-e 's/^Cflags: -I${includedir}/Cflags:/' \ +-i libffi.pc.in +./configure --prefix=/usr +make +make DESTDIR=$PKG install +rm -f $PKG/usr/share/info/dir +if [ "`uname -m`" == "x86_64" ];then + mv $PKG/usr/lib64/lib* $PKG/usr/lib + rm -r $PKG/usr/lib64 +fi +} diff --git a/talimatname/genel/l/libfilezilla/talimat b/talimatname/genel/l/libfilezilla/talimat new file mode 100644 index 000000000..e7894f405 --- /dev/null +++ b/talimatname/genel/l/libfilezilla/talimat @@ -0,0 +1,18 @@ +# Tanım: Temel işlevler sunup platform bağımsız uygulamalar yapmak için C++ kütüphanesi +# URL: https://lib.filezilla-project.org +# Paketçi: milisarge +# Gerekler: +# Grup: kütüphane + +isim=libfilezilla +surum=0.11.2 +devir=1 +kaynak=(http://download.filezilla-project.org/libfilezilla/libfilezilla-$surum.tar.bz2) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --disable-static + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libfm-extra/talimat b/talimatname/genel/l/libfm-extra/talimat new file mode 100644 index 000000000..4cd17808e --- /dev/null +++ b/talimatname/genel/l/libfm-extra/talimat @@ -0,0 +1,21 @@ +# Tanım: Libfm-ekstra paket kütüphane ve önbelleği 1.0.0-menü libexec menü-cache-gen tarafından gerekli diğer dosyaları içerir. +# URL: http://pcmanfm.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: glib intltool perl-xml-parser + +isim=libfm-extra +_isim=libfm +surum=1.2.3 +devir=1 +kaynak=(http://downloads.sourceforge.net/pcmanfm/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +./configure --prefix=/usr \ + --sysconfdir=/etc \ + --with-extra-only \ + --with-gtk=no \ + --disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libfm-qt/talimat b/talimatname/genel/l/libfm-qt/talimat new file mode 100644 index 000000000..71a44b683 --- /dev/null +++ b/talimatname/genel/l/libfm-qt/talimat @@ -0,0 +1,22 @@ +# Tanım: Libfm-qt, masaüstü dosya yöneticileri oluşturmak için bileşenleri sağlayan bir kütüphane olan libfm'in Qt bağlantı noktasıdır. +# URL: http://lxqt.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: cmake libfm qt5 +# Grup: lxqt + +isim=libfm-qt +surum=0.13.0 +devir=1 +kaynak=(https://github.com/lxde/$isim/releases/download/$surum/$isim-$surum.tar.xz) + + +derle() { + mkdir -v build + cd build + cmake $SRC/$isim-$surum \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_LIBDIR=lib + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libfm/talimat b/talimatname/genel/l/libfm/talimat new file mode 100644 index 000000000..1b05985a4 --- /dev/null +++ b/talimatname/genel/l/libfm/talimat @@ -0,0 +1,24 @@ +# Tanım: Dosya yönetimi için kütüphane +# URL: http://pcmanfm.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: udisks shared-mime-info xorg-libxinerama xorg-libxrandr xorg-libxdamage gtk2 menu-cache dbus-glib desktop-file-utils vala + +isim=libfm +surum=1.2.3 +devir=5 + +kaynak=(http://downloads.sourceforge.net/pcmanfm/${isim}-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ + --sysconfdir=/etc \ + --disable-static +make +make DESTDIR=$PKG install +# already in libfm-extra +rm $PKG/usr/lib/libfm-extra.* +rm $PKG/usr/lib/pkgconfig/libfm-extra.pc +rm $PKG/usr/include/libfm +rm $PKG/usr/include/libfm-1.0/{fm-xml-file.h,fm-extra.h,fm-version.h} +} diff --git a/talimatname/genel/l/libfprint/talimat b/talimatname/genel/l/libfprint/talimat new file mode 100644 index 000000000..e99bad08a --- /dev/null +++ b/talimatname/genel/l/libfprint/talimat @@ -0,0 +1,20 @@ +# Tanım: Parmak izi okuyucuları için kütüphane +# URL: https://www.freedesktop.org/wiki/Software/fprint/libfprint +# Paketçi: Cihan_Alkan +# Gerekler: libusb nss xorg-pixman glib xorg-pixman +# Grup: kütüphane + +isim=libfprint +surum=0.7.0 +devir=1 +kaynak=() + +derle() { + git_indir https://anongit.freedesktop.org/git/libfprint/libfprint.git libfprint + cd $SRC/$isim + NOCONFIGURE=1 ./autogen.sh + ./configure --prefix=/usr --sysconfdir=/etc --disable-static + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + make + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/l/libftdi/talimat b/talimatname/genel/l/libftdi/talimat new file mode 100644 index 000000000..41fa90e3f --- /dev/null +++ b/talimatname/genel/l/libftdi/talimat @@ -0,0 +1,25 @@ +# Tanım: FTDI yongaları ile konuşmak için bir kütüphane, isteğe bağlı python bağları. +# URL: http://www.intra2net.com/en/developer/libftdi/download.php +# Paketçi: milisarge +# Gerekler: libusb confuse boost cmake python swig + +isim=libftdi +surum=1.3 +devir=1 + +kaynak=(http://www.intra2net.com/en/developer/libftdi/download/${isim}1-$surum.tar.bz2) + +derle() { +cd ${isim}1-$surum +sed -i 's|LIB_SUFFIX 64|LIB_SUFFIX ""|' CMakeLists.txt +sed -i "s|MODE=\"0664\", GROUP=\"plugdev\"|TAG+=\"uaccess\"|g" packages/99-libftdi.rules +mkdir -p build +cd build +cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_SKIP_BUILD_RPATH=ON \ +-DCMAKE_BUILD_TYPE=Release -DEXAMPLES=OFF -DFTDI_EEPROM=ON +make +make DESTDIR="$PKG" install +install -Dm644 "../packages/99-libftdi.rules" "$pkgdir/usr/lib/udev/rules.d/69-libftdi.rules" +# FS#45053 +cp -r ../examples/* "$PKG/usr/share/libftdi/examples" +} diff --git a/talimatname/genel/l/libgcrypt/talimat b/talimatname/genel/l/libgcrypt/talimat new file mode 100644 index 000000000..f9c451a6a --- /dev/null +++ b/talimatname/genel/l/libgcrypt/talimat @@ -0,0 +1,23 @@ +# Tanım: GnuPG'de kullanılan kodu temel alan genel amaçlı bir kripto kütüphanesi. +# URL: http://ftp.gnupg.org/gcrypt/libgcrypt/ +# Paketçi: milisarge +# Gerekler: libgpg-error + +isim=libgcrypt +surum=1.7.6 +devir=1 +kaynak=(ftp://ftp.gnupg.org/gcrypt/libgcrypt/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + + ./configure \ + --prefix=/usr \ + --disable-padlock-support \ + --enable-static=yes + make + make DESTDIR=$PKG install + + rm -rf $PKG/usr/sbin + rm -rf $PKG/usr/share/info +} diff --git a/talimatname/genel/l/libgd/talimat b/talimatname/genel/l/libgd/talimat new file mode 100644 index 000000000..59364feed --- /dev/null +++ b/talimatname/genel/l/libgd/talimat @@ -0,0 +1,21 @@ +# Tanım: Programcılar tarafından resimlerin dinamik oluşturulması için kütüphane +# URL: http://www.libgd.org/ +# Paketçi: milisarge +# Gerekler: xorg-fontconfig xorg-libxpm libwebp + +isim=libgd +surum=2.2.3 +devir=1 + +kaynak=("https://github.com/$isim/$isim/releases/download/gd-${surum}/$isim-${surum}.tar.xz") + + +derle() { + cd $isim-${surum} + ./configure \ + --prefix=/usr \ + --disable-rpath + make + make DESTDIR="${PKG}" install + install -D -m644 COPYING "${PKG}/usr/share/licenses/${isim}/LICENSE" +} diff --git a/talimatname/genel/l/libgda/0001-Convert-files-to-Unicode.patch b/talimatname/genel/l/libgda/0001-Convert-files-to-Unicode.patch new file mode 100644 index 000000000..67509f9a1 --- /dev/null +++ b/talimatname/genel/l/libgda/0001-Convert-files-to-Unicode.patch @@ -0,0 +1,83 @@ +From b611c805b3a2248e2f4f85f993f96c13a05b4730 Mon Sep 17 00:00:00 2001 +From: Emmanuele Bassi +Date: Mon, 17 Jul 2017 22:37:50 +0100 +Subject: Convert files to Unicode + +These header files have mixed encoding, and makes various tools choke on +them. +--- + libgda/gda-connection.h | 2 +- + libgda/sql-parser/gda-sql-statement.h | 2 +- + libgda/sql-parser/gda-statement-struct-delete.h | 2 +- + libgda/sql-parser/gda-statement-struct-unknown.h | 2 +- + libgda/sql-parser/gda-statement-struct-util.h | 2 +- + 5 files changed, 5 insertions(+), 5 deletions(-) + +diff --git a/libgda/gda-connection.h b/libgda/gda-connection.h +index 94d1b27b5..19ca63fc3 100644 +--- a/libgda/gda-connection.h ++++ b/libgda/gda-connection.h +@@ -6,7 +6,7 @@ + * Copyright (C) 2002 - 2003 Gonzalo Paniagua Javier + * Copyright (C) 2003 Filip Van Raemdonck + * Copyright (C) 2004 - 2005 Alan Knowles +- * Copyright (C) 2004 Jos Mara Casanova Crespo ++ * Copyright (C) 2004 José María Casanova Crespo + * Copyright (C) 2005 - 2009 Bas Driessen + * Copyright (C) 2006 - 2008 Murray Cumming + * Copyright (C) 2007 Leonardo Boshell +diff --git a/libgda/sql-parser/gda-sql-statement.h b/libgda/sql-parser/gda-sql-statement.h +index 0ba1f9edc..8783ca8a1 100644 +--- a/libgda/sql-parser/gda-sql-statement.h ++++ b/libgda/sql-parser/gda-sql-statement.h +@@ -1,7 +1,7 @@ + /* + * Copyright (C) 2000 Reinhard Müller + * Copyright (C) 2000 - 2002 Rodrigo Moya +- * Copyright (C) 2001 Carlos Perell Marn ++ * Copyright (C) 2001 Carlos Perelló Marín + * Copyright (C) 2001 - 2011 Vivien Malerba + * Copyright (C) 2002 Gonzalo Paniagua Javier + * Copyright (C) 2011 Murray Cumming +diff --git a/libgda/sql-parser/gda-statement-struct-delete.h b/libgda/sql-parser/gda-statement-struct-delete.h +index cab8b9dad..2e51c5eae 100644 +--- a/libgda/sql-parser/gda-statement-struct-delete.h ++++ b/libgda/sql-parser/gda-statement-struct-delete.h +@@ -1,7 +1,7 @@ + /* + * Copyright (C) 2005 Dan Winship + * Copyright (C) 2005 - 2011 Vivien Malerba +- * Copyright (C) 2005 lvaro Pea ++ * Copyright (C) 2005 Álvaro Peña + * Copyright (C) 2007 Armin Burgmeier + * Copyright (C) 2007 - 2009 Murray Cumming + * +diff --git a/libgda/sql-parser/gda-statement-struct-unknown.h b/libgda/sql-parser/gda-statement-struct-unknown.h +index 5c530d4d9..e0aaf945f 100644 +--- a/libgda/sql-parser/gda-statement-struct-unknown.h ++++ b/libgda/sql-parser/gda-statement-struct-unknown.h +@@ -1,7 +1,7 @@ + /* + * Copyright (C) 2000 Reinhard Müller + * Copyright (C) 2000 - 2002 Rodrigo Moya +- * Copyright (C) 2001 Carlos Perell Marn ++ * Copyright (C) 2001 Carlos Perelló Marín + * Copyright (C) 2001 - 2011 Vivien Malerba + * Copyright (C) 2002 Gonzalo Paniagua Javier + * Copyright (C) 2009 Murray Cumming +diff --git a/libgda/sql-parser/gda-statement-struct-util.h b/libgda/sql-parser/gda-statement-struct-util.h +index cd4596281..252d6edcc 100644 +--- a/libgda/sql-parser/gda-statement-struct-util.h ++++ b/libgda/sql-parser/gda-statement-struct-util.h +@@ -1,7 +1,7 @@ + /* + * Copyright (C) 2005 Dan Winship + * Copyright (C) 2005 - 2011 Vivien Malerba +- * Copyright (C) 2005 lvaro Pea ++ * Copyright (C) 2005 Álvaro Peña + * Copyright (C) 2007 - 2009 Murray Cumming + * + * This library is free software; you can redistribute it and/or +-- +2.11.0 + diff --git a/talimatname/genel/l/libgda/fix-crash.diff b/talimatname/genel/l/libgda/fix-crash.diff new file mode 100644 index 000000000..ab665c700 --- /dev/null +++ b/talimatname/genel/l/libgda/fix-crash.diff @@ -0,0 +1,21 @@ +diff --git i/libgda-ui/data-entries/plugins/libmain.c w/libgda-ui/data-entries/plugins/libmain.c +index a30c2db2c3258111..1356488c8b0940f9 100644 +--- i/libgda-ui/data-entries/plugins/libmain.c ++++ w/libgda-ui/data-entries/plugins/libmain.c +@@ -39,15 +39,7 @@ + #endif + + #ifdef HAVE_GTKSOURCEVIEW +- #ifdef GTK_DISABLE_SINGLE_INCLUDES +- #undef GTK_DISABLE_SINGLE_INCLUDES +- #endif +- +- #include +- #include +- #include +- #include +- #include ++#include + #endif + + static GdauiDataEntry *plugin_entry_filesel_create_func (GdaDataHandler *handler, GType type, const gchar *options); diff --git a/talimatname/genel/l/libgda/glib-2.54-ftbfs-2.patch b/talimatname/genel/l/libgda/glib-2.54-ftbfs-2.patch new file mode 100644 index 000000000..1ca500f11 --- /dev/null +++ b/talimatname/genel/l/libgda/glib-2.54-ftbfs-2.patch @@ -0,0 +1,11 @@ +--- a/libgda-ui/gdaui-easy.h 2017-10-08 21:17:30.203226827 +0000 ++++ b/libgda-ui/gdaui-easy.h 2017-10-08 21:19:38.143497887 +0000 +@@ -1,7 +1,7 @@ + /* + * Copyright (C) 2000 Reinhard Müller + * Copyright (C) 2000 - 2002 Rodrigo Moya +- * Copyright (C) 2001 Carlos Perell Marn ++ * Copyright (C) 2001 Carlos Perelló Marín + * Copyright (C) 2001 - 2011 Vivien Malerba + * Copyright (C) 2002 Gonzalo Paniagua Javier + * diff --git a/talimatname/genel/l/libgda/glib-2.54-ftbfs.patch b/talimatname/genel/l/libgda/glib-2.54-ftbfs.patch new file mode 100644 index 000000000..f4831796c --- /dev/null +++ b/talimatname/genel/l/libgda/glib-2.54-ftbfs.patch @@ -0,0 +1,103 @@ +Description: Fix FTBFS with glib 2.54 + glib-mkenums now expects input files to be UTF-8, + fix the encoding of libgnomeui/gnome-scores.h +Author: Adrian Bunk + +--- libgda5-5.2.4.orig/libgda/gda-column.h ++++ libgda5-5.2.4/libgda/gda-column.h +@@ -1,6 +1,6 @@ + /* + * Copyright (C) 2005 - 2011 Vivien Malerba +- * Copyright (C) 2005 lvaro Pea ++ * Copyright (C) 2005 Álvaro Peña + * Copyright (C) 2008 Przemysław Grzegorczyk + * + * This library is free software; you can redistribute it and/or +--- libgda5-5.2.4.orig/libgda/gda-data-model-extra.h ++++ libgda5-5.2.4/libgda/gda-data-model-extra.h +@@ -1,5 +1,5 @@ + /* +- * Copyright (C) 2001 Carlos Perell Marn ++ * Copyright (C) 2001 Carlos Perelló Marín + * Copyright (C) 2001 - 2003 Rodrigo Moya + * Copyright (C) 2001 - 2011 Vivien Malerba + * Copyright (C) 2002 - 2003 Gonzalo Paniagua Javier +--- libgda5-5.2.4.orig/libgda/gda-data-model-iter-extra.h ++++ libgda5-5.2.4/libgda/gda-data-model-iter-extra.h +@@ -1,7 +1,7 @@ + /* + * Copyright (C) 2000 Reinhard Müller + * Copyright (C) 2000 - 2002 Rodrigo Moya +- * Copyright (C) 2001 Carlos Perell Marn ++ * Copyright (C) 2001 Carlos Perelló Marín + * Copyright (C) 2001 - 2011 Vivien Malerba + * Copyright (C) 2002 Gonzalo Paniagua Javier + * +--- libgda5-5.2.4.orig/libgda/gda-data-model.h ++++ libgda5-5.2.4/libgda/gda-data-model.h +@@ -4,7 +4,7 @@ + * Copyright (C) 2003 Laurent Sansonetti + * Copyright (C) 2005 Dan Winship + * Copyright (C) 2005 - 2012 Vivien Malerba +- * Copyright (C) 2005 lvaro Pea ++ * Copyright (C) 2005 Álvaro Peña + * Copyright (C) 2007 Murray Cumming + * Copyright (C) 2011 Daniel Espinosa + * +--- libgda5-5.2.4.orig/libgda/gda-mutex.h ++++ libgda5-5.2.4/libgda/gda-mutex.h +@@ -1,7 +1,7 @@ + /* + * Copyright (C) 2000 Reinhard Müller + * Copyright (C) 2000 - 2002 Rodrigo Moya +- * Copyright (C) 2001 Carlos Perell Marn ++ * Copyright (C) 2001 Carlos Perelló Marín + * Copyright (C) 2001 - 2013 Vivien Malerba + * Copyright (C) 2002 Gonzalo Paniagua Javier + * +--- libgda5-5.2.4.orig/libgda/gda-row.h ++++ libgda5-5.2.4/libgda/gda-row.h +@@ -3,10 +3,10 @@ + * Copyright (C) 2001 - 2011 Vivien Malerba + * Copyright (C) 2002 Gonzalo Paniagua Javier + * Copyright (C) 2003 Laurent Sansonetti +- * Copyright (C) 2003 Xabier Rodrguez Calvar ++ * Copyright (C) 2003 Xabier Rodríguez Calvar + * Copyright (C) 2004 Paisa Seeluangsawat + * Copyright (C) 2005 Bas Driessen +- * Copyright (C) 2005 lvaro Pea ++ * Copyright (C) 2005 Álvaro Peña + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public +--- libgda5-5.2.4.orig/libgda/gda-server-provider-private.h ++++ libgda5-5.2.4/libgda/gda-server-provider-private.h +@@ -1,7 +1,7 @@ + /* + * Copyright (C) 2005 Dan Winship + * Copyright (C) 2005 - 2011 Vivien Malerba +- * Copyright (C) 2005 lvaro Pea ++ * Copyright (C) 2005 Álvaro Peña + * Copyright (C) 2007 Murray Cumming + * + * This library is free software; you can redistribute it and/or +--- libgda5-5.2.4.orig/libgda/gda-util.h ++++ libgda5-5.2.4/libgda/gda-util.h +@@ -1,7 +1,7 @@ + /* + * Copyright (C) 2000 Reinhard Müller + * Copyright (C) 2000 - 2002 Rodrigo Moya +- * Copyright (C) 2001 Carlos Perell Marn ++ * Copyright (C) 2001 Carlos Perelló Marín + * Copyright (C) 2001 - 2013 Vivien Malerba + * Copyright (C) 2002 Gonzalo Paniagua Javier + * Copyright (C) 2006 - 2007 Murray Cumming +--- libgda5-5.2.4.orig/libgda/libgda-global-variables.h ++++ libgda5-5.2.4/libgda/libgda-global-variables.h +@@ -1,5 +1,5 @@ + /* +- * Copyright (C) 2001 Carlos Perell Marn ++ * Copyright (C) 2001 Carlos Perelló Marín + * Copyright (C) 2001 - 2003 Rodrigo Moya + * Copyright (C) 2001 - 2011 Vivien Malerba + * Copyright (C) 2002 - 2003 Gonzalo Paniagua Javier diff --git a/talimatname/genel/l/libgda/java.patch b/talimatname/genel/l/libgda/java.patch new file mode 100644 index 000000000..7f12c5ad9 --- /dev/null +++ b/talimatname/genel/l/libgda/java.patch @@ -0,0 +1,36 @@ +diff -u -r libgda-5.2.4/getsp.java libgda-5.2.4-java/getsp.java +--- libgda-5.2.4/getsp.java 2014-02-05 21:28:20.000000000 +0100 ++++ libgda-5.2.4-java/getsp.java 2015-06-14 20:27:35.770310228 +0200 +@@ -25,7 +25,7 @@ + while (i<=j) { + if (i==j || lp.charAt(i)==ps) { + String lib=lp.substring(k,i); +- String suffix="/lib/amd64/server"; ++ String suffix="/lib/"+System.getProperty("os.arch")+"/server"; + k=i+1; + if (lib.compareTo(".")!=0) + r=(r==null)?(prefix+lib+suffix):(r+" "+prefix+lib+suffix); +@@ -50,7 +50,7 @@ + + if (r!=null) System.out.println(r); + } else if (args[0].compareTo("-ldpath")==0) { +- String lp1=System.getProperty("java.home")+"/lib/amd64/server"; ++ String lp1=System.getProperty("java.home")+"/lib/"+System.getProperty("os.arch")+"/server"; + String lp2=System.getProperty("java.library.path"); + System.out.println(lp1+":"+lp2); + } +diff -u -r libgda-5.2.4/m4/java.m4 libgda-5.2.4-java/m4/java.m4 +--- libgda-5.2.4/m4/java.m4 2015-06-13 10:36:25.000000000 +0200 ++++ libgda-5.2.4-java/m4/java.m4 2015-06-14 20:16:59.865581930 +0200 +@@ -175,6 +175,11 @@ + JTYPE="Sun JRE 1.7" + JFLAGS="-Xlint:unchecked -Xlint:deprecation" + ;; ++ JRE1.8.*) ++ try_java=true ++ JTYPE="Sun JRE 1.8" ++ JFLAGS="-Xlint:unchecked -Xlint:deprecation" ++ ;; + JREgcj-4*) + try_java=true + JTYPE="GCJ" diff --git a/talimatname/genel/l/libgda/talimat b/talimatname/genel/l/libgda/talimat new file mode 100644 index 000000000..176704bd3 --- /dev/null +++ b/talimatname/genel/l/libgda/talimat @@ -0,0 +1,44 @@ +# Tanım: Veritabanı erişim kitaplığı +# URL: https://git.gnome.org/browse/libgda +# Paketçi: Cihan_Alkan +# Gerekler: gnome-common json-glib gtksourceview3 libxslt python libsecret graphviz goocanvas iso-codes openjdk +# Grup: kütüphane + +isim=libgda +surum=5.2.4 +devir=1 +_apiver=5.0 + +kaynak=(https://git.gnome.org/browse/libgda/snapshot/LIBGDA_5_2_4.tar.xz + fix-crash.diff + java.patch + 0001-Convert-files-to-Unicode.patch + glib-2.54-ftbfs.patch + glib-2.54-ftbfs-2.patch) + +derle() { + mkdir providers + cd LIBGDA_5_2_4 + + patch -Np1 -i ../java.patch + patch -Np1 -i ../0001-Convert-files-to-Unicode.patch + patch -Np1 -i ../glib-2.54-ftbfs.patch + patch -Np1 -i ../glib-2.54-ftbfs-2.patch + patch -Np1 -i ../fix-crash.diff + /opt/jdk/bin/javac getsp.java + + find -name '*.py' -exec sed -i '1s/python$/&2/' {} + + + NOCONFIGURE=1 ./autogen.sh + + ./configure --prefix=/usr --sysconfdir=/etc --disable-static \ + --with-bdb=/usr --with-bdb-libdir-name=lib \ + --enable-json --enable-system-sqlite --enable-binreloc \ + --enable-gda-gi --enable-gdaui-gi \ + --enable-vala --enable-gdaui-vala VALA_API_VERSION=0.38 \ + --disable-crypto + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + make + make DESTDIR="$PKG" install + +} diff --git a/talimatname/genel/l/libgdata/talimat b/talimatname/genel/l/libgdata/talimat new file mode 100644 index 000000000..44dd82616 --- /dev/null +++ b/talimatname/genel/l/libgdata/talimat @@ -0,0 +1,18 @@ +# Tanım: GData protokolünü kullanarak çevrimiçi hizmet API'lerine erişmek için kullanılan GLib tabanlı kitaplık. +# URL: http://live.gnome.org/libgdata +# Paketçi: yasarciv67@gmail.com +# Gerekler: liboauth libsoup json-glib gnome-online-accounts gcr uhttpmock gtk-doc + +isim=libgdata +surum=0.17.6 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/GNOME/sources/$isim/${surum%.*}/$isim-$surum.tar.xz ) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --disable-static --disable-tests + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/l/libgdiplus/libgdiplus0-giflib5.patch b/talimatname/genel/l/libgdiplus/libgdiplus0-giflib5.patch new file mode 100644 index 000000000..5c7b46077 --- /dev/null +++ b/talimatname/genel/l/libgdiplus/libgdiplus0-giflib5.patch @@ -0,0 +1,136 @@ +--- + src/gifcodec.c | 50 +++++++++++++++++++++++++++++++++++++++++--------- + 1 file changed, 41 insertions(+), 9 deletions(-) + +Index: libgdiplus-2.10.9/src/gifcodec.c +=================================================================== +--- libgdiplus-2.10.9.orig/src/gifcodec.c ++++ libgdiplus-2.10.9/src/gifcodec.c +@@ -105,7 +112,7 @@ gdip_gif_inputfunc (GifFileType *gif, Gi + */ + + static int +-AddExtensionBlockMono(SavedImage *New, int Len, BYTE ExtData[]) ++AddExtensionBlockMono(SavedImage *New, int Len, int func, BYTE ExtData[]) + { + ExtensionBlock *ep; + +@@ -129,7 +136,7 @@ AddExtensionBlockMono(SavedImage *New, i + + if (ExtData) { + memcpy(ep->Bytes, ExtData, Len); +- ep->Function = New->Function; ++ ep->Function = func; + } + + return (GIF_OK); +@@ -232,20 +239,20 @@ DGifSlurpMono(GifFileType * GifFile, Sav + } + + case EXTENSION_RECORD_TYPE: { +- if (DGifGetExtension(GifFile, &temp_save.Function, &ExtData) == GIF_ERROR) { ++ int func; ++ if (DGifGetExtension(GifFile, &func, &ExtData) == GIF_ERROR) { + return (GIF_ERROR); + } + + while (ExtData != NULL) { + /* Create an extension block with our data */ +- if (AddExtensionBlockMono(&temp_save, ExtData[0], &ExtData[1]) == GIF_ERROR) { ++ if (AddExtensionBlockMono(&temp_save, func, ExtData[0], &ExtData[1]) == GIF_ERROR) { + return (GIF_ERROR); + } + + if (DGifGetExtensionNext(GifFile, &ExtData) == GIF_ERROR) { + return (GIF_ERROR); + } +- temp_save.Function = 0; + } + break; + } +@@ -303,12 +310,19 @@ gdip_load_gif_image (void *stream, GpIma + result = NULL; + loop_counter = FALSE; + ++#if GIFLIB_MAJOR < 5 + if (from_file) { + gif = DGifOpen(stream, &gdip_gif_fileinputfunc); + } else { + gif = DGifOpen (stream, &gdip_gif_inputfunc); + } +- ++#else ++ if (from_file) ++ gif = DGifOpen(stream, &gdip_gif_fileinputfunc, NULL); ++ else ++ gif = DGifOpen(stream, &gdip_gif_inputfunc, NULL); ++#endif ++ + if (gif == NULL) { + goto error; + } +@@ -581,7 +595,7 @@ gdip_load_gif_image (void *stream, GpIma + } + + FreeExtensionMono(&global_extensions); +- DGifCloseFile (gif); ++ DGifCloseFile (gif, NULL); + + *image = result; + return Ok; +@@ -597,7 +611,7 @@ error: + + if (gif != NULL) { + FreeExtensionMono (&global_extensions); +- DGifCloseFile (gif); ++ DGifCloseFile (gif, NULL); + } + + *image = NULL; +@@ -660,11 +674,22 @@ gdip_save_gif_image (void *stream, GpIma + return InvalidParameter; + } + ++#if GIFLIB_MAJOR < 5 + if (from_file) { + fp = EGifOpenFileName (stream, 0); + } else { + fp = EGifOpen (stream, gdip_gif_outputfunc); + } ++#else ++ if (from_file) ++ fp = EGifOpenFileName (stream, 0, NULL); ++ else ++ fp = EGifOpen (stream, gdip_gif_outputfunc, NULL); ++#define MakeMapObject GifMakeMapObject ++#define FreeMapObject GifFreeMapObject ++#define QuantizeBuffer GifQuantizeBuffer ++#define BitSize GifBitSize ++#endif + + if (!fp) { + return FileNotFound; +@@ -848,8 +873,15 @@ gdip_save_gif_image (void *stream, GpIma + Buffer[0] = 1; + Buffer[1] = ptr[0]; + Buffer[2] = ptr[1]; ++#if GIFLIB_MAJOR < 5 + EGifPutExtensionFirst(fp, APPLICATION_EXT_FUNC_CODE, 11, "NETSCAPE2.0"); + EGifPutExtensionLast(fp, APPLICATION_EXT_FUNC_CODE, 3, Buffer); ++#else ++ EGifPutExtensionLeader(fp, APPLICATION_EXT_FUNC_CODE); ++ EGifPutExtensionBlock(fp, 11, "NETSCAPE2.0"); ++ EGifPutExtensionBlock(fp, 3, Buffer); ++ EGifPutExtensionTrailer(fp); ++#endif + } + } + +@@ -923,7 +955,7 @@ gdip_save_gif_image (void *stream, GpIma + } + } + +- EGifCloseFile (fp); ++ EGifCloseFile (fp, NULL); + + return Ok; diff --git a/talimatname/genel/l/libgdiplus/talimat b/talimatname/genel/l/libgdiplus/talimat new file mode 100644 index 000000000..bda83359c --- /dev/null +++ b/talimatname/genel/l/libgdiplus/talimat @@ -0,0 +1,17 @@ +# Tanım: GDI + API'nin Açık Kaynak Uygulaması +# URL: http://www.mono-project.com/ +# Paketçi: milisarge +# Gerekler: libtiff cairo giflib glib libexif + +isim=libgdiplus +surum=4.2 +devir=1 +kaynak=(http://download.mono-project.com/sources/${isim}/${isim}-${surum}.tar.gz) + +derle() { + cd $isim-${surum} + sed -i -e 's/-L\${libjpeg_prefix}\/lib -ljpeg/-ljpeg/' configure + ./configure --prefix=/usr --with-cairo=system + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libgee/talimat b/talimatname/genel/l/libgee/talimat new file mode 100644 index 000000000..03938b6e3 --- /dev/null +++ b/talimatname/genel/l/libgee/talimat @@ -0,0 +1,18 @@ +# Tanım: GObject koleksiyon kütüphanesi (eski) +# URL: http://www.gnome.org/ +# Paketçi: milisarge +# Gerekler: glib gobject-introspection vala +# Grup: kütüphane + +isim=libgee +surum=0.20.0 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${surum:0:4}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libgee06/talimat b/talimatname/genel/l/libgee06/talimat new file mode 100644 index 000000000..7ab590ca3 --- /dev/null +++ b/talimatname/genel/l/libgee06/talimat @@ -0,0 +1,18 @@ +# Tanım: GObject koleksiyon kütüphanesi (eski) +# URL: http://www.gnome.org/ +# Paketçi: milisarge +# Gerekler: glib gobject-introspection vala + +isim=libgee06 +_isim=libgee +surum=0.6.8 +devir=1 + +kaynak=(http://ftp.acc.umu.se/pub/gnome/sources/$_name/${surum%.*}/$_name-$surum.tar.xz) + +derle() { +cd $_name-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libgexiv2/talimat b/talimatname/genel/l/libgexiv2/talimat new file mode 100644 index 000000000..3ac66f9d0 --- /dev/null +++ b/talimatname/genel/l/libgexiv2/talimat @@ -0,0 +1,19 @@ +# Tanım: Exiv2 kitaplığının çevresindeki GObject tabanlı sarmalayıcı. +# URL: https://wiki.gnome.org/Projects/gexiv2 +# Paketçi: milisarge +# Gerekler: glib exiv2 gobject-introspection python-gobject +# Grup: kütüphane + +isim=libgexiv2 +surum=0.10.8 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/gexiv2/0.10/gexiv2-${surum}.tar.xz) + +derle() { +cd ${isim/lib/}-$surum + ./configure --prefix=/usr \ + --enable-introspection + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libgig/talimat b/talimatname/genel/l/libgig/talimat new file mode 100644 index 000000000..5277adee3 --- /dev/null +++ b/talimatname/genel/l/libgig/talimat @@ -0,0 +1,20 @@ +# Tanım: Gigasampler ve DLS dosyalarını yüklemek için C ++ kütüphanesi +# URL: https://www.linuxsampler.org/libgig/ +# Paketçi: Cihan_Alkan +# Gerekler: libsndfile +# Grup: kütüphane + +isim=libgig +surum=4.1.0 +devir=1 +kaynak=(https://download.linuxsampler.org/packages/$isim-$surum.tar.bz2) + +derle() { + cd "${isim}-${surum}" + ./configure --prefix=/usr + make + make DESTDIR="${PKG}" install + # add libgig library path to ld.so.conf.d (thanks to libgig-svn for the heads-up) + install -d "${PKG}/etc/ld.so.conf.d" + echo "/usr/lib/${isim}" > "${PKG}/etc/ld.so.conf.d/${isim}.conf" +} diff --git a/talimatname/genel/l/libgksu/libgksu-2.0.0-fbsd.patch b/talimatname/genel/l/libgksu/libgksu-2.0.0-fbsd.patch new file mode 100644 index 000000000..5c007be5b --- /dev/null +++ b/talimatname/genel/l/libgksu/libgksu-2.0.0-fbsd.patch @@ -0,0 +1,60 @@ +diff --exclude-from=/home/dang/.diffrc -up -ruN libgksu-2.0.0.orig/libgksu/libgksu.c libgksu-2.0.0/libgksu/libgksu.c +--- libgksu-2.0.0.orig/libgksu/libgksu.c 2006-09-14 22:35:51.000000000 -0400 ++++ libgksu-2.0.0/libgksu/libgksu.c 2006-12-12 11:28:01.000000000 -0500 +@@ -23,7 +23,12 @@ + #include + #include + #include ++#ifdef __FreeBSD__ ++#include ++#include ++#else + #include ++#endif + #include + #include + #include +diff --exclude-from=/home/dang/.diffrc -up -ruN libgksu-2.0.0.orig/libgksu/Makefile.am libgksu-2.0.0/libgksu/Makefile.am +--- libgksu-2.0.0.orig/libgksu/Makefile.am 2006-09-14 22:35:52.000000000 -0400 ++++ libgksu-2.0.0/libgksu/Makefile.am 2006-12-12 11:28:01.000000000 -0500 +@@ -30,6 +30,6 @@ gksu_run_helper_SOURCES = gksu-run-helpe + noinst_PROGRAMS = test-gksu + test_gksu_SOURCES = test-gksu.c + test_gksu_LDADD = libgksu2.la +-test_gksu_LDFLAGS = `pkg-config --libs glib-2.0` ++test_gksu_LDFLAGS = `pkg-config --libs glib-2.0 gthread-2.0` + + EXTRA_DIST = libgksu.ver +diff --exclude-from=/home/dang/.diffrc -up -ruN libgksu-2.0.0.orig/libgksu/Makefile.in libgksu-2.0.0/libgksu/Makefile.in +--- libgksu-2.0.0.orig/libgksu/Makefile.in 2006-09-23 15:37:44.000000000 -0400 ++++ libgksu-2.0.0/libgksu/Makefile.in 2006-12-12 11:30:09.000000000 -0500 +@@ -283,7 +283,7 @@ gksu_run_helper_LDFLAGS = `pkg-config -- + gksu_run_helper_SOURCES = gksu-run-helper.c + test_gksu_SOURCES = test-gksu.c + test_gksu_LDADD = libgksu2.la +-test_gksu_LDFLAGS = `pkg-config --libs glib-2.0` ++test_gksu_LDFLAGS = `pkg-config --libs glib-2.0 gthread-2.0` + EXTRA_DIST = libgksu.ver + all: all-am + +diff --exclude-from=/home/dang/.diffrc -up -ruN libgksu-2.0.0.orig/libgksuui/Makefile.am libgksu-2.0.0/libgksuui/Makefile.am +--- libgksu-2.0.0.orig/libgksuui/Makefile.am 2006-09-14 22:35:31.000000000 -0400 ++++ libgksu-2.0.0/libgksuui/Makefile.am 2006-12-12 11:28:01.000000000 -0500 +@@ -12,4 +12,4 @@ includedir = ${prefix}/include/$(PACKAGE + noinst_PROGRAMS = test-gksuui + test_gksuui_SOURCES = test-gksuui.c + test_gksuui_LDADD = libgksuui1.0.la +-test_gksuui_LDFLAGS = `pkg-config --libs glib-2.0` ++test_gksuui_LDFLAGS = `pkg-config --libs glib-2.0 gthread-2.0` +diff --exclude-from=/home/dang/.diffrc -up -ruN libgksu-2.0.0.orig/libgksuui/Makefile.in libgksu-2.0.0/libgksuui/Makefile.in +--- libgksu-2.0.0.orig/libgksuui/Makefile.in 2006-09-23 15:37:44.000000000 -0400 ++++ libgksu-2.0.0/libgksuui/Makefile.in 2006-12-12 11:30:22.000000000 -0500 +@@ -250,7 +250,7 @@ libgksuui1_0_la_LDFLAGS = -Wl,-O1 `pkg-c + noinst_HEADERS = defines.h gksuui.h gksuui-dialog.h + test_gksuui_SOURCES = test-gksuui.c + test_gksuui_LDADD = libgksuui1.0.la +-test_gksuui_LDFLAGS = `pkg-config --libs glib-2.0` ++test_gksuui_LDFLAGS = `pkg-config --libs glib-2.0 gthread-2.0` + all: all-am + + .SUFFIXES: diff --git a/talimatname/genel/l/libgksu/libgksu-2.0.12-automake-1.11.2.patch b/talimatname/genel/l/libgksu/libgksu-2.0.12-automake-1.11.2.patch new file mode 100644 index 000000000..0f22166fb --- /dev/null +++ b/talimatname/genel/l/libgksu/libgksu-2.0.12-automake-1.11.2.patch @@ -0,0 +1,25 @@ +Due to the following change, pkglib_PROGRAMS is invalid: + http://git.savannah.gnu.org/cgit/automake.git/commit/?id=9ca632642b006ac6b0fc4ce0ae5b34023faa8cbf + +https://savannah.nongnu.org/bugs/index.php?35241 +https://bugs.gentoo.org/show_bug.cgi?id=397411 + +--- + libgksu/Makefile.am | 4 ++-- + 1 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/libgksu/Makefile.am b/libgksu/Makefile.am +index 49362f9..3cb1090 100644 +--- a/libgksu/Makefile.am ++++ b/libgksu/Makefile.am +@@ -22,8 +22,8 @@ includedir = ${prefix}/include/${PACKAGE} + pkgconfigdir = ${libdir}/pkgconfig + pkgconfig_DATA = libgksu2.pc + +-pkglibdir = ${libdir}/${PACKAGE} +-pkglib_PROGRAMS = gksu-run-helper ++gksulibdir = ${libdir}/${PACKAGE} ++gksulib_PROGRAMS = gksu-run-helper + gksu_run_helper_LDADD = ${GLIB_LIBS} + gksu_run_helper_SOURCES = gksu-run-helper.c + diff --git a/talimatname/genel/l/libgksu/libgksu-2.0.12-fix-make-3.82.patch b/talimatname/genel/l/libgksu/libgksu-2.0.12-fix-make-3.82.patch new file mode 100644 index 000000000..0a7c5f142 --- /dev/null +++ b/talimatname/genel/l/libgksu/libgksu-2.0.12-fix-make-3.82.patch @@ -0,0 +1,19 @@ +--- Makefile.am-orig 2010-08-22 16:11:19.872577459 -0500 ++++ Makefile.am 2010-08-22 16:11:55.289599110 -0500 +@@ -17,11 +17,11 @@ + + if GCONF_SCHEMAS_INSTALL + install-data-local: +- if test -z "$(DESTDIR)" ; then \ +- for p in $(schemas_DATA) ; do \ +- GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(srcdir)/$$p ; \ +- done \ +- fi ++ if test -z "$(DESTDIR)" ; then \ ++ for p in $(schemas_DATA) ; do \ ++ GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(srcdir)/$$p ; \ ++ done \ ++ fi + else + install-data-local: + endif diff --git a/talimatname/genel/l/libgksu/libgksu-2.0.12-notests.patch b/talimatname/genel/l/libgksu/libgksu-2.0.12-notests.patch new file mode 100644 index 000000000..3787ef6bf --- /dev/null +++ b/talimatname/genel/l/libgksu/libgksu-2.0.12-notests.patch @@ -0,0 +1,26 @@ +Index: libgksu-2.0.12/libgksu/Makefile.am +=================================================================== +--- libgksu-2.0.12.orig/libgksu/Makefile.am ++++ libgksu-2.0.12/libgksu/Makefile.am +@@ -27,7 +27,7 @@ pkglib_PROGRAMS = gksu-run-helper + gksu_run_helper_LDFLAGS = `pkg-config --libs glib-2.0` + gksu_run_helper_SOURCES = gksu-run-helper.c + +-noinst_PROGRAMS = test-gksu ++EXTRA_PROGRAMS = test-gksu + test_gksu_SOURCES = test-gksu.c + test_gksu_LDADD = libgksu2.la + test_gksu_LDFLAGS = `pkg-config --libs glib-2.0` +Index: libgksu-2.0.12/libgksuui/Makefile.am +=================================================================== +--- libgksu-2.0.12.orig/libgksuui/Makefile.am ++++ libgksu-2.0.12/libgksuui/Makefile.am +@@ -9,7 +9,7 @@ libgksuui1_0_la_LDFLAGS = -Wl,-O1 `pkg-c + noinst_HEADERS = defines.h gksuui.h gksuui-dialog.h + includedir = ${prefix}/include/$(PACKAGE) + +-noinst_PROGRAMS = test-gksuui ++EXTRA_PROGRAMS = test-gksuui + test_gksuui_SOURCES = test-gksuui.c + test_gksuui_LDADD = libgksuui1.0.la + test_gksuui_LDFLAGS = `pkg-config --libs glib-2.0` diff --git a/talimatname/genel/l/libgksu/libgksu-2.0.12-revert-forkpty.patch b/talimatname/genel/l/libgksu/libgksu-2.0.12-revert-forkpty.patch new file mode 100644 index 000000000..2c3a8cc78 --- /dev/null +++ b/talimatname/genel/l/libgksu/libgksu-2.0.12-revert-forkpty.patch @@ -0,0 +1,359 @@ +diff --exclude-from=/home/dang/.scripts/diffrc -up -ruN libgksu-2.0.12.orig/libgksu/libgksu.c libgksu-2.0.12/libgksu/libgksu.c +--- libgksu-2.0.12.orig/libgksu/libgksu.c 2009-06-29 13:48:24.000000000 -0400 ++++ libgksu-2.0.12/libgksu/libgksu.c 2010-01-12 07:32:10.450657456 -0500 +@@ -1,7 +1,6 @@ + /* + * Gksu -- a library providing access to su functionality + * Copyright (C) 2004-2009 Gustavo Noronha Silva +- * Portions Copyright (C) 2009 VMware, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public +@@ -56,9 +55,6 @@ + static void + gksu_context_launch_complete (GksuContext *context); + +-static void +-read_line (int fd, gchar *buffer, int n); +- + GType + gksu_error_get_type (void) + { +@@ -2009,8 +2005,6 @@ gksu_su_fuller (GksuContext *context, + for (i = 0 ; cmd[i] != NULL ; i++) + g_free (cmd[i]); + g_free(cmd); +- +- _exit(1); + } + else if (pid == -1) + { +@@ -2125,10 +2119,10 @@ gksu_su_fuller (GksuContext *context, + /* drop the \n echoed on password entry if su did request + a password */ + if (password_needed) +- read_line (fdpty, buf, 255); ++ read (fdpty, buf, 255); + if (context->debug) + fprintf (stderr, "DEBUG (run:post-after-pass) buf: -%s-\n", buf); +- read_line (fdpty, buf, 255); ++ read (fdpty, buf, 255); + if (context->debug) + fprintf (stderr, "DEBUG (run:post-after-pass) buf: -%s-\n", buf); + } +@@ -2142,9 +2136,7 @@ gksu_su_fuller (GksuContext *context, + { + int retval = 0; + +- /* Red Hat's su shows the full path to su in its error messages. */ +- if (!strncmp (buf, "su:", 3) || +- !strncmp (buf, "/bin/su:", 7)) ++ if (!strncmp (buf, "su", 2)) + { + gchar **strings; + +@@ -2155,11 +2147,7 @@ gksu_su_fuller (GksuContext *context, + } + + strings = g_strsplit (buf, ":", 2); +- +- /* Red Hat and Fedora use 'incorrect password'. */ +- if (strings[1] && +- (g_str_has_prefix(strings[1], " Authentication failure") || +- g_str_has_prefix(strings[1], " incorrect password"))) ++ if (strings[1] && !strncmp (strings[1], " Authentication failure", 23)) + { + if (used_gnome_keyring) + g_set_error (error, gksu_quark, +@@ -2473,12 +2461,6 @@ gksu_sudo_fuller (GksuContext *context, + { + char **cmd; + char buffer[256] = {0}; +- char *child_stderr = NULL; +- /* This command is used to gain a token */ +- char *const verifycmd[] = +- { +- "/usr/bin/sudo", "-p", "GNOME_SUDO_PASS", "-v", NULL +- }; + int argcount = 8; + int i, j; + +@@ -2489,8 +2471,9 @@ gksu_sudo_fuller (GksuContext *context, + + pid_t pid; + int status; +- FILE *fdfile = NULL; +- int fdpty = -1; ++ FILE *infile, *outfile; ++ int parent_pipe[2]; /* For talking to the parent */ ++ int child_pipe[2]; /* For talking to the child */ + + context->sudo_mode = TRUE; + +@@ -2565,10 +2548,6 @@ gksu_sudo_fuller (GksuContext *context, + cmd[argcount] = g_strdup("-S"); + argcount++; + +- /* Make sudo noninteractive (we should already have a token) */ +- cmd[argcount] = g_strdup("-n"); +- argcount++; +- + /* Make sudo use next arg as prompt */ + cmd[argcount] = g_strdup("-p"); + argcount++; +@@ -2647,21 +2626,26 @@ gksu_sudo_fuller (GksuContext *context, + fprintf (stderr, "cmd[%d]: %s\n", i, cmd[i]); + } + +- pid = forkpty(&fdpty, NULL, NULL, NULL); +- if (pid == 0) ++ if ((pipe(parent_pipe)) == -1) + { +- // Child +- setsid(); // make us session leader +- +- execv(verifycmd[0], verifycmd); ++ g_set_error (error, gksu_quark, GKSU_ERROR_PIPE, ++ _("Error creating pipe: %s"), ++ strerror(errno)); ++ sudo_reset_xauth (context, xauth, xauth_env); ++ return FALSE; ++ } + +- g_set_error (error, gksu_quark, GKSU_ERROR_EXEC, +- _("Failed to exec new process: %s"), ++ if ((pipe(child_pipe)) == -1) ++ { ++ g_set_error (error, gksu_quark, GKSU_ERROR_PIPE, ++ _("Error creating pipe: %s"), + strerror(errno)); + sudo_reset_xauth (context, xauth, xauth_env); + return FALSE; + } +- else if (pid == -1) ++ ++ pid = fork(); ++ if (pid == -1) + { + g_set_error (error, gksu_quark, GKSU_ERROR_FORK, + _("Failed to fork new process: %s"), +@@ -2669,26 +2653,56 @@ gksu_sudo_fuller (GksuContext *context, + sudo_reset_xauth (context, xauth, xauth_env); + return FALSE; + } ++ else if (pid == 0) ++ { ++ // Child ++ setsid(); // make us session leader ++ close(child_pipe[1]); ++ dup2(child_pipe[0], STDIN_FILENO); ++ dup2(parent_pipe[1], STDERR_FILENO); + ++ execv(cmd[0], cmd); ++ ++ g_set_error (error, gksu_quark, GKSU_ERROR_EXEC, ++ _("Failed to exec new process: %s"), ++ strerror(errno)); ++ sudo_reset_xauth (context, xauth, xauth_env); ++ return FALSE; ++ } + else + { + gint counter = 0; + gchar *cmdline = NULL; +- struct termios tio; + + // Parent +- fdfile = fdopen(fdpty, "w+"); ++ close(parent_pipe[1]); + +- /* make sure we notice that ECHO is turned off, if it gets +- turned off */ +- tcgetattr (fdpty, &tio); +- for (counter = 0; (tio.c_lflag & ECHO) && counter < 15; counter++) +- { +- usleep (1000); +- tcgetattr (fdpty, &tio); +- } ++ infile = fdopen(parent_pipe[0], "r"); ++ if (!infile) ++ { ++ g_set_error (error, gksu_quark, GKSU_ERROR_PIPE, ++ _("Error opening pipe: %s"), ++ strerror(errno)); ++ sudo_reset_xauth (context, xauth, xauth_env); ++ return FALSE; ++ } + +- fcntl (fdpty, F_SETFL, O_NONBLOCK); ++ outfile = fdopen(child_pipe[1], "w"); ++ if (!outfile) ++ { ++ g_set_error (error, gksu_quark, GKSU_ERROR_PIPE, ++ _("Error opening pipe: %s"), ++ strerror(errno)); ++ sudo_reset_xauth (context, xauth, xauth_env); ++ return FALSE; ++ } ++ ++ /* ++ we are expecting to receive a GNOME_SUDO_PASS ++ if we don't there are two possibilities: an error ++ or a password is not needed ++ */ ++ fcntl (parent_pipe[0], F_SETFL, O_NONBLOCK); + + { /* no matter if we can read, since we're using + O_NONBLOCK; this is just to avoid the prompt +@@ -2697,11 +2711,11 @@ gksu_sudo_fuller (GksuContext *context, + struct timeval tv; + + FD_ZERO(&rfds); +- FD_SET(fdpty, &rfds); ++ FD_SET(parent_pipe[0], &rfds); + tv.tv_sec = 1; + tv.tv_usec = 0; + +- select (fdpty + 1, &rfds, NULL, NULL, &tv); ++ select (parent_pipe[0] + 1, &rfds, NULL, NULL, &tv); + } + + /* Try hard to find the prompt; it may happen that we're +@@ -2713,7 +2727,7 @@ gksu_sudo_fuller (GksuContext *context, + if (strncmp (buffer, "GNOME_SUDO_PASS", 15) == 0) + break; + +- read_line (fdpty, buffer, 256); ++ read_line (parent_pipe[0], buffer, 256); + + if (context->debug) + fprintf (stderr, "buffer: -%s-\n", buffer); +@@ -2747,17 +2761,18 @@ gksu_sudo_fuller (GksuContext *context, + + usleep (1000); + +- write (fdpty, password, strlen(password) + 1); +- write (fdpty, "\n", 1); ++ fprintf (outfile, "%s\n", password); ++ fclose (outfile); + + nullify_password (password); + +- fcntl(fdpty, F_SETFL, fcntl(fdpty, F_GETFL) & ~O_NONBLOCK); ++ /* turn NONBLOCK off */ ++ fcntl(parent_pipe[0], F_SETFL, fcntl(parent_pipe[0], F_GETFL) & ~O_NONBLOCK); + /* ignore the first newline that comes right after sudo receives + the password */ +- fgets (buffer, 255, fdfile); +- /* this is the status we are interested in */ +- fgets (buffer, 255, fdfile); ++ fgets (buffer, 255, infile); ++ /* this is the status we are interessted in */ ++ fgets (buffer, 255, infile); + } + else + { +@@ -2766,7 +2781,7 @@ gksu_sudo_fuller (GksuContext *context, + fprintf (stderr, "No password prompt found; we'll assume we don't need a password.\n"); + + /* turn NONBLOCK off, also if have no prompt */ +- fcntl(fdpty, F_SETFL, fcntl(fdpty, F_GETFL) & ~O_NONBLOCK); ++ fcntl(parent_pipe[0], F_SETFL, fcntl(parent_pipe[0], F_GETFL) & ~O_NONBLOCK); + + should_display = gconf_client_get_bool (context->gconf_client, + BASE_PATH "display-no-pass-info", NULL); +@@ -2785,9 +2800,14 @@ gksu_sudo_fuller (GksuContext *context, + fprintf (stderr, "%s", buffer); + } + +- if (g_str_has_prefix (buffer, "Sorry, try again.")) ++ if (!strcmp (buffer, "Sorry, try again.\n")) + g_set_error (error, gksu_quark, GKSU_ERROR_WRONGPASS, + _("Wrong password.")); ++ else if (!strncmp (buffer, "Sorry, user ", 12)) ++ g_set_error (error, gksu_quark, GKSU_ERROR_NOT_ALLOWED, ++ _("The underlying authorization mechanism (sudo) " ++ "does not allow you to run this program. Contact " ++ "the system administrator.")); + else + { + gchar *haystack = buffer; +@@ -2805,10 +2825,6 @@ gksu_sudo_fuller (GksuContext *context, + } + } + +- /* If we have an error, let's just stop sudo right there. */ +- if (error) +- close(fdpty); +- + cmdline = g_strdup("sudo"); + /* wait for the child process to end or become something other + than sudo */ +@@ -2825,23 +2841,17 @@ gksu_sudo_fuller (GksuContext *context, + if (context->sn_context) + gksu_context_launch_complete (context); + ++ while (read (parent_pipe[0], buffer, 255) > 0) ++ { ++ fprintf (stderr, "%s", buffer); ++ bzero(buffer, 256); ++ } ++ + /* if the process is still active waitpid() on it */ + if (pid_exited != pid) + waitpid(pid, &status, 0); + sudo_reset_xauth (context, xauth, xauth_env); + +- /* +- * Did token acquisition succeed? If so, spawn sudo in +- * non-interactive mode. It should either succeed or die +- * immediately if you're not allowed to run the command. +- */ +- if (WEXITSTATUS(status) == 0) +- { +- g_spawn_sync(NULL, cmd, NULL, 0, NULL, NULL, +- NULL, &child_stderr, &status, +- error); +- } +- + if (exit_status) + { + if (WIFEXITED(status)) { +@@ -2853,13 +2863,6 @@ gksu_sudo_fuller (GksuContext *context, + + if (WEXITSTATUS(status)) + { +- if (g_str_has_prefix(child_stderr, "Sorry, user ")) +- { +- g_set_error (error, gksu_quark, GKSU_ERROR_NOT_ALLOWED, +- _("The underlying authorization mechanism (sudo) " +- "does not allow you to run this program. Contact " +- "the system administrator.")); +- } + if(cmdline) + { + /* sudo already exec()ed something else, don't report +@@ -2868,7 +2871,6 @@ gksu_sudo_fuller (GksuContext *context, + if (!g_str_has_suffix (cmdline, "sudo")) + { + g_free (cmdline); +- g_free (child_stderr); + return FALSE; + } + g_free (cmdline); +@@ -2881,11 +2883,11 @@ gksu_sudo_fuller (GksuContext *context, + } + } + +- fprintf(stderr, child_stderr); +- g_free(child_stderr); +- + /* if error is set we have found an error condition */ +- return (error == NULL); ++ if (error) ++ return FALSE; ++ ++ return TRUE; + } + + /** diff --git a/talimatname/genel/l/libgksu/libgksu-2.0.7-libs.patch b/talimatname/genel/l/libgksu/libgksu-2.0.7-libs.patch new file mode 100644 index 000000000..b9fb77f27 --- /dev/null +++ b/talimatname/genel/l/libgksu/libgksu-2.0.7-libs.patch @@ -0,0 +1,76 @@ +# https://savannah.nongnu.org/bugs/?25362 +# https://bugs.gentoo.org/show_bug.cgi?id=226837 +diff -Nura a/configure.ac b/configure.ac +--- a/configure.ac 2009-01-19 22:15:30.000000000 +0100 ++++ b/configure.ac 2009-01-19 22:18:10.000000000 +0100 +@@ -43,6 +43,9 @@ + PKG_CHECK_MODULES(LIBGKSU, [gtk+-2.0 >= 2.4.0, gconf-2.0, libstartup-notification-1.0, gnome-keyring-1, libgtop-2.0]) + PKG_CHECK_MODULES(GKSU_PROPERTIES, [gtk+-2.0 >= 2.4.0, gconf-2.0, libglade-2.0]) + ++PKG_CHECK_MODULES(GLIB, [glib-2.0 gthread-2.0]) ++PKG_CHECK_MODULES(GTK, [gtk+-2.0 gconf-2.0]) ++ + # Checks for library functions. + ALL_LINGUAS="ca cs da de es eu fr hu it ko lt pl pt_BR ro ru sk sv nb nl zh_CN" + +diff -Nura a/gksu-properties/Makefile.am b/gksu-properties/Makefile.am +--- a/gksu-properties/Makefile.am 2009-01-19 22:15:59.000000000 +0100 ++++ b/gksu-properties/Makefile.am 2009-01-19 22:19:13.000000000 +0100 +@@ -3,7 +3,7 @@ + AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" -DDATA_DIR=\"$(datadir)\" -DPREFIX=\"$(prefix)\" + + bin_PROGRAMS = gksu-properties +-gksu_properties_LDFLAGS = ${GKSU_PROPERTIES_LIBS} ++gksu_properties_LDADD = ${GKSU_PROPERTIES_LIBS} + gksu_properties_SOURCES = gksu-properties.c + + gladedir = ${prefix}/share/${PACKAGE} +diff -Nura a/libgksu/Makefile.am b/libgksu/Makefile.am +--- a/libgksu/Makefile.am 2009-01-19 22:15:59.000000000 +0100 ++++ b/libgksu/Makefile.am 2009-01-19 22:18:25.000000000 +0100 +@@ -8,8 +8,8 @@ + # major -> breaks backward compatibility (changes to existing ABI) + # minor -> keeps compatibility (additions to the API) + # micro -> no change to the API/ABI +-libgksu2_la_LIBADD = ../libgksuui/libgksuui1.0.la +-libgksu2_la_LDFLAGS = -version-info 0:2:0 -Wl,-O1 -lutil ${LIBGKSU_LIBS} ++libgksu2_la_LIBADD = ../libgksuui/libgksuui1.0.la -lutil ${LIBGKSU_LIBS} ++libgksu2_la_LDFLAGS = -version-info 0:2:0 -Wl,-O1 + if USE_VERSION_SCRIPT + libgksu2_la_LDFLAGS += -Wl,--version-script=libgksu.ver + endif +@@ -24,12 +24,11 @@ + + pkglibdir = ${libdir}/${PACKAGE} + pkglib_PROGRAMS = gksu-run-helper +-gksu_run_helper_LDFLAGS = `pkg-config --libs glib-2.0` ++gksu_run_helper_LDADD = ${GLIB_LIBS} + gksu_run_helper_SOURCES = gksu-run-helper.c + + noinst_PROGRAMS = test-gksu + test_gksu_SOURCES = test-gksu.c +-test_gksu_LDADD = libgksu2.la +-test_gksu_LDFLAGS = `pkg-config --libs glib-2.0 gthread-2.0` ++test_gksu_LDADD = libgksu2.la ${GLIB_LIBS} + + EXTRA_DIST = libgksu.ver +diff -Nura a/libgksuui/Makefile.am b/libgksuui/Makefile.am +--- a/libgksuui/Makefile.am 2009-01-19 22:15:59.000000000 +0100 ++++ b/libgksuui/Makefile.am 2009-01-19 22:18:54.000000000 +0100 +@@ -4,12 +4,13 @@ + + noinst_LTLIBRARIES = libgksuui1.0.la + libgksuui1_0_la_SOURCES = gksuui-dialog.c +-libgksuui1_0_la_LDFLAGS = -Wl,-O1 `pkg-config --libs gtk+-2.0 gconf-2.0` ++libgksuui1_0_la_LDFLAGS = -Wl,-O1 ++libgksuui1_0_la_LIBADD = ${GTK_LIBS} + + noinst_HEADERS = defines.h gksuui.h gksuui-dialog.h + includedir = ${prefix}/include/$(PACKAGE) + + noinst_PROGRAMS = test-gksuui + test_gksuui_SOURCES = test-gksuui.c +-test_gksuui_LDADD = libgksuui1.0.la +-test_gksuui_LDFLAGS = `pkg-config --libs glib-2.0 gthread-2.0` ++test_gksuui_LDADD = libgksuui1.0.la ${GLIB_LIBS} ++ diff --git a/talimatname/genel/l/libgksu/libgksu-2.0.7-polinguas.patch b/talimatname/genel/l/libgksu/libgksu-2.0.7-polinguas.patch new file mode 100644 index 000000000..e423af16b --- /dev/null +++ b/talimatname/genel/l/libgksu/libgksu-2.0.7-polinguas.patch @@ -0,0 +1,40 @@ +# https://savannah.nongnu.org/bugs/?25360 +diff -Nura a/configure.ac b/configure.ac +--- a/configure.ac 2009-01-19 21:50:57.000000000 +0100 ++++ b/configure.ac 2009-01-19 21:53:21.000000000 +0100 +@@ -50,7 +50,7 @@ + GETTEXT_PACKAGE=AC_PACKAGE_NAME + AC_SUBST(GETTEXT_PACKAGE) + +-IT_PROG_INTLTOOL ++IT_PROG_INTLTOOL([0.35.5]) + AM_GLIB_GNU_GETTEXT + + ################################################## +diff -Nura a/po/LINGUAS b/po/LINGUAS +--- a/po/LINGUAS 1970-01-01 01:00:00.000000000 +0100 ++++ b/po/LINGUAS 2009-01-19 21:54:24.000000000 +0100 +@@ -0,0 +1,23 @@ ++# please keep this list sorted alphabetically ++# http://live.gnome.org/GnomeGoals/PoLinguas ++# ++ca ++cs ++da ++de ++es ++eu ++fr ++hu ++it ++ko ++lt ++pl ++pt_BR ++ro ++ru ++sk ++sv ++nb ++nl ++zh_CN diff --git a/talimatname/genel/l/libgksu/libgksu-tr.po b/talimatname/genel/l/libgksu/libgksu-tr.po new file mode 100644 index 000000000..c5f6dba90 --- /dev/null +++ b/talimatname/genel/l/libgksu/libgksu-tr.po @@ -0,0 +1,682 @@ +# Turkish translation of GKsu. +# Copyright (C) 2003 Free Software Foundation, Inc. +# This file is distributed under the same license as the GKsu package. +# Sebastian Heinlein , 2003. +# +# +msgid "" +msgstr "" +"Project-Id-Version: GKsu 0.9.14\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2007-02-03 12:27-0200\n" +"PO-Revision-Date: 2003-11-18 21:19-0200\n" +"Last-Translator: Cihan Alkan \n" +"Language-Team: Turkish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../libgksu/libgksu.c:119 +#, c-format +msgid "Not using locking for read only lock file %s" +msgstr "Sadece okunabilir kilit dosyası %s için kilitleme kullanılmıyor" + +#: ../libgksu/libgksu.c:139 +#, c-format +msgid "Not using locking for nfs mounted lock file %s" +msgstr "Nfs ye bağlı kilit dosyası %s için kilitleme kullanılmıyor" + +#: ../libgksu/libgksu.c:495 +#, fuzzy +msgid "" +"Could not grab your mouse.\n" +"\n" +"A malicious client may be eavesdropping on your session or you may have just " +"clicked a menu or some application just decided to get focus.\n" +"\n" +"Try again." +msgstr "" +"Farenizi alamadı.\n" +"\n" +"A malicious client may be eavesdropping on your session or you may have just " +"clicked a menu or some application just decided to get focus.\n" +"\n" +"Tekrar deneyin." + +#: ../libgksu/libgksu.c:507 +#, fuzzy +msgid "" +"Could not grab your keyboard.\n" +"\n" +"A malicious client may be eavesdropping on your session or you may have just " +"clicked a menu or some application just decided to get focus.\n" +"\n" +"Try again." +msgstr "" +"Klavyenizi alamadı.\n" +"\n" +"A malicious client may be eavesdropping on your session or you may have just " +"clicked a menu or some application just decided to get focus.\n" +"\n" +"Tekrar deneyin." + +#: ../libgksu/libgksu.c:855 +#, c-format +msgid "" +"Enter your password to perform administrative tasks\n" +"\n" +"The application '%s' lets you modify essential parts of your system." +msgstr "" + +#: ../libgksu/libgksu.c:862 +#, fuzzy, c-format +msgid "" +"Enter your password to run the application '%s' as user %s" +msgstr "" +"'%s' uygulamasını kullanıcı %s olarak çalıştırmak için şifrenizi girin" + +#: ../libgksu/libgksu.c:870 +#, c-format +msgid "" +"Enter the administrative password\n" +"\n" +"The application '%s' lets you modify essential parts of your system." +msgstr "" +"Yönetici Şifresini Girin\n" +"\n" +"'%s' uygulaması, sisteminizin önemli kısımlarını değiştirmenize izin verir." + +#: ../libgksu/libgksu.c:877 +#, fuzzy, c-format +msgid "Enter the password of %s to run the application '%s'" +msgstr "'%s' uygulamasını çalıştırmak için %s şifresini girin" + + +#: ../libgksu/libgksu.c:908 +msgid "Password prompt canceled." +msgstr "" + +#: ../libgksu/libgksu.c:978 +#, fuzzy, c-format +msgid "" +"Granted permissions without asking for password\n" +"\n" +"The '%s' program was started with the privileges of the %s user without the " +"need to ask for a password, due to your system's authentication mechanism " +"setup.\n" +"\n" +"It is possible that you are being allowed to run specific programs as user %" +"s without the need for a password, or that the password is cached.\n" +"\n" +"This is not a problem report; it's simply a notification to make sure you " +"are aware of this." +msgstr "" +"Parola istemeksizin giriş izinleri verildi\n" +"\n" +"The '%s' program was started with the privileges of the %s user without the " +"need to ask for a password, due to your system's authentication mechanism " +"setup.\n" +"\n" +"It is possible that you are being allowed to run specific programs as user %" +"s without the need for a password, or that the password is cached.\n" +"\n" +"Bu bir sorun raporu değildir; Sadece size bilgi verilmektedir. " + + +#: ../libgksu/libgksu.c:1002 +msgid "Do _not display this message again" +msgstr "Bu mesajı tekrar gösterme" + +#: ../libgksu/libgksu.c:1022 +msgid "" +"Would you like your screen to be \"grabbed\"\n" +"while you enter the password?\n" +"\n" +"This means all applications will be paused to avoid\n" +"the eavesdropping of your password by a a malicious\n" +"application while you type it." +msgstr "" + +#: ../libgksu/libgksu.c:1299 +msgid "Granting Rights" +msgstr "Yetki Sağlama" + +#: ../libgksu/libgksu.c:1854 +msgid "gksu_run needs a command to be run, none was provided." +msgstr "gksu_run'un çalıştırılması için bir komuta ihtiyacı var, hiçbiri sağlanmadı." + +#: ../libgksu/libgksu.c:1865 +msgid "The gksu-run-helper command was not found or is not executable." +msgstr "gksu-run-helper komutu bulunamadı veya çalıştırılamaz." + +#: ../libgksu/libgksu.c:1873 ../libgksu/libgksu.c:2379 +msgid "Unable to copy the user's Xauthorization file." +msgstr "Kullanıcının Xauthorization dosyası kopyalanamadı." + +#: ../libgksu/libgksu.c:1919 ../libgksu/libgksu.c:2513 +#, fuzzy, c-format +msgid "Failed to fork new process: %s" +msgstr "%s/bin/gksu: %s konnte nicht ausgeführt werden" + +#: ../libgksu/libgksu.c:2050 +#, fuzzy +msgid "Wrong password got from keyring." +msgstr "Anahtarlıkta yanlış şifre var." + +#: ../libgksu/libgksu.c:2054 ../libgksu/libgksu.c:2664 +msgid "Wrong password." +msgstr "Yanlış Şifre." + +#: ../libgksu/libgksu.c:2109 ../libgksu/libgksu.c:2123 +#, c-format +msgid "" +"Failed to communicate with gksu-run-helper.\n" +"\n" +"Received:\n" +" %s\n" +"While expecting:\n" +" %s" +msgstr "" + +#: ../libgksu/libgksu.c:2115 +#, c-format +msgid "" +"Failed to communicate with gksu-run-helper.\n" +"\n" +"Received bad string while expecting:\n" +" %s" +msgstr "" + +#: ../libgksu/libgksu.c:2191 +#, c-format +msgid "Could not read from the pipe with the child: %s" +msgstr "" + +#: ../libgksu/libgksu.c:2238 +#, fuzzy, c-format +msgid "su terminated with %d status" +msgstr "Unterprozess endete mit dem Status %d" + +#: ../libgksu/libgksu.c:2353 +msgid "gksu_sudo_run needs a command to be run, none was provided." +msgstr "" + +#: ../libgksu/libgksu.c:2494 ../libgksu/libgksu.c:2503 +#, c-format +msgid "Error creating pipe: %s" +msgstr "" + +#: ../libgksu/libgksu.c:2529 +#, c-format +msgid "Failed to exec new process: %s" +msgstr "" + +#: ../libgksu/libgksu.c:2546 ../libgksu/libgksu.c:2556 +#, c-format +msgid "Error opening pipe: %s" +msgstr "" + +#: ../libgksu/libgksu.c:2614 +#, fuzzy +msgid "Password: " +msgstr "Parola:" + +#: ../libgksu/libgksu.c:2667 ../libgksu/libgksu.c:2681 +msgid "" +"The underlying authorization mechanism (sudo) does not allow you to run this " +"program. Contact the system administrator." +msgstr "" + +#: ../libgksu/libgksu.c:2734 +#, fuzzy, c-format +msgid "sudo terminated with %d status" +msgstr "sudo %d durumu ile sonlandı" + +#: ../libgksuui/gksuui-dialog.c:218 +#, fuzzy +msgid "Remember password" +msgstr "Parolayı hatırla" + +#: ../libgksuui/gksuui-dialog.c:235 +msgid "Save for this session" +msgstr "Bu oturum için kaydet" + +#: ../libgksuui/gksuui-dialog.c:240 +msgid "Save in the keyring" +msgstr "Anahtarlıkta saklayın" + +#. label +#: ../libgksuui/gksuui-dialog.c:334 +msgid "Type the root password.\n" +msgstr "" +"Root şifresini yazın.\n" + +#. entry label +#: ../libgksuui/gksuui-dialog.c:355 +#, fuzzy +msgid "Password:" +msgstr "Parola:" + +#. label capslock warning +#: ../libgksuui/gksuui-dialog.c:376 +msgid "You have capslock on" +msgstr "Capslock açık durumda" + +#: ../gksu-properties/gksu-properties.c:248 +msgid "Failed to load glade file; please check your installation." +msgstr "Glade dosyası yüklenemedi; lütfen kurulumunuzu kontrol edin." + +#: ../gksu-properties/gksu-properties.desktop.in.h:1 +msgid "Configure behavior of the privilege-granting tool" +msgstr "Ayrıcalık verici aracın davranışını yapılandırma" + +#: ../gksu-properties/gksu-properties.desktop.in.h:2 +msgid "Privilege granting" +msgstr "Ayrıcalık verme" + +#: ../gksu-properties/gksu-properties.glade.h:1 +msgid "Behavior" +msgstr "Davranış" + +#: ../gksu-properties/gksu-properties.glade.h:2 +msgid "Screen Grabbing" +msgstr "Ekran Yakalama" + +#: ../gksu-properties/gksu-properties.glade.h:3 +msgid "_Authentication mode:" +msgstr "Kimlik Doğrulama Modu" + +#: ../gksu-properties/gksu-properties.glade.h:4 +msgid "_Grab mode:" +msgstr "Yakalama Modu" + +#: ../gksu-properties/gksu-properties.glade.h:5 +msgid "" +"enable\n" +"disable\n" +"force enable\n" +"prompt\n" +msgstr "" + +#: ../gksu-properties/gksu-properties.glade.h:10 +msgid "gtk-close" +msgstr "" + +#: ../gksu-properties/gksu-properties.glade.h:11 +msgid "" +"su\n" +"sudo" +msgstr "" + +#: ../gksu.schemas.in.h:1 +msgid "Disable keyboard and mouse grab" +msgstr "Klavye veya fare yakalama kapalı" + +#: ../gksu.schemas.in.h:2 +msgid "Display information message when no password is needed" +msgstr "Şifre gerekli olmadığında bilgi mesajını gösterin" + +#: ../gksu.schemas.in.h:3 +msgid "Force keyboard and mouse grab" +msgstr "" + +#: ../gksu.schemas.in.h:4 +msgid "" +"Grab keyboard and mouse even if -g has been passed as argument on the " +"command line." +msgstr "" + +#: ../gksu.schemas.in.h:5 +msgid "Keyring to which passwords will be saved" +msgstr "" + +#: ../gksu.schemas.in.h:6 +msgid "Prompt for grabbing" +msgstr "" + +#: ../gksu.schemas.in.h:7 +msgid "Save password to gnome-keyring" +msgstr "" + +#: ../gksu.schemas.in.h:8 +msgid "Sudo mode" +msgstr "Sudo modu" + +#: ../gksu.schemas.in.h:9 +msgid "" +"The name of the keyring gksu should use. Usual values are \"session\", which " +"saves the password for the session, and \"default\", which saves the " +"password with no timeout." +msgstr "" + +#: ../gksu.schemas.in.h:10 +msgid "" +"This option determines whether a message dialog will be displayed informing " +"the user that the program is being run without the need of a password being " +"asked for some reason." +msgstr "" + +#: ../gksu.schemas.in.h:11 +msgid "" +"This option will make gksu prompt the user if he wants to have the screen " +"grabbed before entering the password. Notice that this only has an effect if " +"force-grab is disabled." +msgstr "" + +#: ../gksu.schemas.in.h:12 +msgid "" +"Whether sudo should be the default backend method. This method is otherwise " +"accessed though the -S switch or by running 'gksudo' instead of 'gksu'." +msgstr "" + +#: ../gksu.schemas.in.h:13 +msgid "" +"Whether the keyboard and mouse grabbing should be turned off. This will make " +"it possible for other X applications to listen to keyboard input events, " +"thus making it not possible to shield from malicious applications which may " +"be running." +msgstr "" + +#: ../gksu.schemas.in.h:14 +msgid "" +"gksu can save the password you type to the gnome-keyring so you'll not be " +"asked everytime" +msgstr "" + +#: ../libgksu/gksu-run-helper.c:149 +#, c-format +msgid "Failed to obtain xauth key: xauth binary not found at usual locations" +msgstr "" + +#, fuzzy +#~ msgid "Failed to obtain xauth key: %s" +#~ msgstr "%s/bin/gksu: %s konnte nicht ausgeführt werden" + +#, fuzzy +#~ msgid "Unable to run /bin/su: %s" +#~ msgstr "/bin/su: %s konnte nicht ausgeführt werden" + +#~ msgid "Continue" +#~ msgstr "Weiter" + +#~ msgid "Option not accepted for --disable-grab: %s\n" +#~ msgstr "Option wird für --disable-grab nicht akzeptiert: %s \n" + +#~ msgid "Option not accepted for --sudo-mode: %s\n" +#~ msgstr "Option wird für --sudo-mode nicht akzeptiert: %s\n" + +#~ msgid "Option not accepted for --prompt: %s\n" +#~ msgstr "Option wird für --prompt nicht akzeptiert: %s\n" + +#, fuzzy +#~ msgid "Please enter %s's password" +#~ msgstr "Bitte geben Sie das Passwort von %s ein" + +#~ msgid "Missing command to run." +#~ msgstr "Kein auszuführender Befehl angegeben." + +#, fuzzy +#~ msgid "" +#~ "Failed to run %s as user %s.\n" +#~ "\n" +#~ "%s" +#~ msgstr "" +#~ "Das Passwort von %s ist erforderlich zum Ausführen von:\n" +#~ "%s" + +#~ msgid "Advanced options" +#~ msgstr "Details zum Programmstart" + +#~ msgid "Options to use when changing user" +#~ msgstr "Optionen für den Benutzerwechsel" + +#~ msgid "_login shell" +#~ msgstr "Als _Login-Shell starten" + +#, fuzzy +#~ msgid "_preserve environment" +#~ msgstr "_Umgebungsvariablen erhalten" + +#~ msgid "Run program" +#~ msgstr "Programm ausführen" + +#~ msgid "Run:" +#~ msgstr "Auszuführender Befehl:" + +#~ msgid "As user:" +#~ msgstr "Als Benutzer:" + +#~ msgid "_Advanced" +#~ msgstr "_Details" + +#, fuzzy +#~ msgid "Always request a password" +#~ msgstr "Bitte geben Sie das Passwort von %s ein" + +#~ msgid "" +#~ "Opens a terminal as the root user, using gksu to ask for the password" +#~ msgstr "Root-Terminal" + +#~ msgid "" +#~ "Opens a dialog where you can type a command to be run as a given user" +#~ msgstr "Anwendung als anderer Benutzer ausführen" + +#, fuzzy +#~ msgid "" +#~ "GKsu version %s\n" +#~ "\n" +#~ "Usage: %s [-u ] [-k] [-l] \n" +#~ "\n" +#~ " --always-ask-password, -a\n" +#~ " Do not try to check if a password is really\n" +#~ " needed for running the command, or if there\n" +#~ " are other means of obtaining it: simply ask for it.\n" +#~ " --debug, -d\n" +#~ " Print information on the screen that might be\n" +#~ " useful for diagnosing and/or solving problems.\n" +#~ " --disable-grab, -g\n" +#~ " Disable the \"locking\" of the keyboard, mouse,\n" +#~ " and focus done by the program when asking for\n" +#~ " password.\n" +#~ " --icon , -i \n" +#~ " Replace the default window icon with the argument.\n" +#~ " --message , -m \n" +#~ " Replace the standard message shown to ask for\n" +#~ " password for the argument passed to the option.\n" +#~ " --print-pass, -p\n" +#~ " Ask gksu to print the password to stdout, just\n" +#~ " like ssh-askpass. Useful to use in scripts with\n" +#~ " programs that accept receiving the password on\n" +#~ " stdin.\n" +#~ " --prompt, -P\n" +#~ " Ask the user if they want to have their keyboard\n" +#~ " and mouse grabbed before doing so.\n" +#~ " --ssh-fwd, -s\n" +#~ " Strip the host part of the $DISPLAY variable, so that\n" +#~ " GKSu will work on SSH X11 Forwarding.\n" +#~ " --sudo-mode, -S\n" +#~ " Make GKSu use sudo instead of su, as if it had been\n" +#~ " run as \"gksudo\".\n" +#~ " --title , -t <title>\n" +#~ " Replace the default title with the argument.\n" +#~ " --user <user>, -u <user>\n" +#~ " Call <command> as the specified user.\n" +#~ " --desktop <file>, -D <file>\n" +#~ " Use a .desktop file to get the name of the application and the " +#~ "icon from.\n" +#~ "\n" +#~ " --preserve-env, -k\n" +#~ " Preserve the current environments, does not set $HOME\n" +#~ " nor $PATH, for example.\n" +#~ " --login, -l\n" +#~ " Make this a login shell. Beware this may cause\n" +#~ " problems with the Xauthority magic. Run xhost\n" +#~ " to allow the target user to open windows on your\n" +#~ " display!\n" +#~ "\n" +#~ "\n" +#~ msgstr "" +#~ "GKsu Version %s\n" +#~ "\n" +#~ "Anwendung: %s [-u <user>] [-k] [-l] <command>\n" +#~ "\n" +#~ " --debug, -d\n" +#~ " Informationen auf dem Bildschirm ausgeben die für eine\n" +#~ " Diagnose hilfreich sind und/oder helfen Probleme zu lösen.\n" +#~ " --disable-grab, -g\n" +#~ " Verhindere das sperren der Tastatur, der Maus,\n" +#~ " und Fokus des Programmes bei der Passwort\n" +#~ " abfrage.\n" +#~ " --icon <icon>, -i <icon>\n" +#~ " Ersetze das vorgegebene window icon mit dem Argument.\n" +#~ " --message <message>, -m <message>\n" +#~ " Ersetze die angezeigte standard Meldung der Passwort \n" +#~ " Abfrage mit dem Argument der Option <message>.\n" +#~ " --print-pass, -p\n" +#~ " Das Passwort auf stdout ausgeben, so wie\n" +#~ " ssh-askpass. Nützlich bei der Verwendung in\n" +#~ " Skripten mit Programmen die das Passwort auf\n" +#~ " stdin erwarten.\n" +#~ " --prompt, -P\n" +#~ " Den Benutzer vorab fragen ob Tastatur und\n" +#~ " Maus für alle anderen Anwendungen gesperrt werden sollen.\n" +#~ " --ssh-fwd, -s\n" +#~ " Entferne den host Teil der $DISPLAY Variablen, damit\n" +#~ " GKSu bei einem SSH X11 Forwarding funktioniert.\n" +#~ " --sudo-mode, -S\n" +#~ " GKSu soll sudo anstatt su verwenden, als wäre es\n" +#~ " \"gksudo\".\n" +#~ " --title <title>, -t <title>\n" +#~ " Ersetze den vorgegebenen Titel mit dem Argument\n" +#~ " <title>\n" +#~ " --user <user>, -u <user>\n" +#~ " Starte <command> als der angegebene Benutzer.\n" +#~ "\n" +#~ " --preserve-env, -k\n" +#~ " Erhalte die aktuellen Umgebungs Variablen, so wird\n" +#~ " z.B. weder $HOME noch $PATH neu gesetzt.\n" +#~ " --login, -l\n" +#~ " Sei eine login shell.\n" +#~ " Vorsicht, dies kann Probleme mit Xauthority magic\n" +#~ " ergeben. Der Benutzer <user> kann mit xhost\n" +#~ " so Fenster auf ihrer Anzeige öffnen!\n" +#~ "\n" +#~ "\n" + +#~ msgid "FATAL: File %s is not owned by root.\n" +#~ msgstr "FATAL: Datei %s ist nicht im Besitz von root.\n" + +#~ msgid "FATAL: File %s is not owned by group root.\n" +#~ msgstr "FATAL: Datei %s ist nicht im Besitz der Gruppe root.\n" + +#~ msgid "FATAL: File %s has wrong permissions, should be 0644.\n" +#~ msgstr "FATAL: Datei %s hat falsche Rechte, es sollte 0644 sein.\n" + +#~ msgid "FATAL: Could not open %s: %s.\n" +#~ msgstr "FATAL: Kann %s: %s nicht öffnen.\n" + +#, fuzzy +#~ msgid "" +#~ "<b>Please enter %s's password\n" +#~ "to run %s.</b>" +#~ msgstr "" +#~ "<b>Das Passwort von %s ist erforderlich zum Ausführen von:</b>\n" +#~ "<i>%s</i>" + +#~ msgid "" +#~ "libgksu: Failed to init the Gtk+ library, GKSu is not able to continue.\n" +#~ msgstr "" +#~ "libgksu: Die Gtk+-Bibliothek konnte nicht initialisiert werden, GKSu kann " +#~ "nicht fortfahren.\n" + +#~ msgid "" +#~ "<b>I need %s's password to run:</b>\n" +#~ "<i>%s</i>" +#~ msgstr "" +#~ "<b>Das Passwort von %s ist erforderlich zum Ausführen von:</b>\n" +#~ "<i>%s</i>" + +#~ msgid "Changing user..." +#~ msgstr "Benutzerwechsel" + +#, fuzzy +#~ msgid "" +#~ "<b>I need your password to run:</b>\n" +#~ "<i>%s</i>" +#~ msgstr "" +#~ "<b>Das Passwort von %s ist erforderlich zum Ausführen von:</b>\n" +#~ "<i>%s</i>" + +#~ msgid "" +#~ "GKsu version %s\n" +#~ "\n" +#~ "Usage: %s [-u <user>] [-k] [-l] <command>\n" +#~ "\n" +#~ " --user <user>, -u <user>\n" +#~ " Calls <command> as the specified user\n" +#~ " --message <message>, -m <message>\n" +#~ " Replaces the standard message shown to ask for\n" +#~ " password for the argument passed to the option\n" +#~ " --title <title>, -t <title>\n" +#~ " Replaces the default title with the argument\n" +#~ " --icon <icon>, -i <icon>\n" +#~ " Replaces the default window icon with the argument\n" +#~ " --print-pass, -p\n" +#~ " Asks gksu to print the password to stdout, just\n" +#~ " like ssh-askpass. Useful to use in scripts with\n" +#~ " programs that accept receiving the passowrd on\n" +#~ " stdin.\n" +#~ " --disable-grab, -g\n" +#~ " Disables the \"locking\" of the keyboard, mouse,\n" +#~ " and focus done by the program when asking for\n" +#~ " password\n" +#~ " --ssh-fwd, -s\n" +#~ " Strip the host part of the $DISPLAY variable, so that\n" +#~ " GKSu will work on SSH X11 Forwarding.\n" +#~ "\n" +#~ " --login, -l\n" +#~ " Makes this a login shell. Beware this may cause\n" +#~ " problems with the Xauthority magic. Run xhost\n" +#~ " to allow the target user to open windows on your\n" +#~ " display!\n" +#~ " --preserv-env, -k\n" +#~ " Preserve the current environments, does not set $HOME\n" +#~ " nor $PATH, for example.\n" +#~ "\n" +#~ "\n" +#~ msgstr "" +#~ "GKsu Version %s\n" +#~ "Benutzung: %s [-u BENUTZER] [-k] [-l] BEFEHL\n" +#~ " --user BENUTZER\n" +#~ " Führt den angegebenen BEFEHL als BENUTZER aus\n" +#~ " --message NACHRICHT, -m NACHRICHT\n" +#~ " Verwendet NACHRICHT und nicht den Standardtext bei der\n" +#~ " Frage nach dem Passwort\n" +#~ " --title TITEL, -t TITEL\n" +#~ " Ersetzt den Standard-Fenstertitel durch TITEL\n" +#~ " --icon ICON, -i ICON\n" +#~ " Ersetzt das Standard-Icon durch ICON\n" +#~ " --print-pass, -p\n" +#~ " Ausgabe des Passworts nach stdout. Dies verhält sich wie bei ssh\n" +#~ " askpass: Dadurch ist es möglich anderen Programmen das Passwort\n" +#~ " über stdin in Skripten zu übermitteln\n" +#~ " --disable-grab, -g\n" +#~ " Deaktiviert das Sperren von Tastatur, Maus und Fokus bei\n" +#~ " der Passworteingabe\n" +#~ " --ssh-fwd, -s\n" +#~ " Entfernt den Host-Teil aus der $DISPLAY-Variable, so dass GKsu\n" +#~ " auch über SSH-X11-Forwaring verwendet werden kann\n" +#~ "\n" +#~ " --login, -l\n" +#~ " Startet als Login-Shell. Dies kann jedoch zu Problemen mit der\n" +#~ " Xauthority magic führen: Es muss erst mittels xhost dem jeweiligen\n" +#~ " Benutzer gestattet werden, Fenster auf dem Desktop zu öffnen\n" +#~ " --preserv-env, -k\n" +#~ " Erhält die momentanen Umgebungsvariablen: Es wird zum Beispiel\n" +#~ " keine $HOME- oder $PATH-Variable gesetzt\n" +#~ " \n" +#~ " \n" + +#~ msgid "Using %s as username...\n" +#~ msgstr "Verwende %s als Benutzername ...\n" diff --git a/talimatname/genel/l/libgksu/talimat b/talimatname/genel/l/libgksu/talimat new file mode 100644 index 000000000..b9e851889 --- /dev/null +++ b/talimatname/genel/l/libgksu/talimat @@ -0,0 +1,50 @@ +# Tanım: Gksu yetkilendirme kütüphanesi +# URL: http://www.nongnu.org/gksu/index.html +# Paketçi: yasarciv67@gmail.com +# Gerekler: intltool gtk-doc gconf gtk2 libgnome-keyring libgtop startup-notification libglade + +isim=libgksu +surum=2.0.12 +devir=2 +kaynak=(http://people.debian.org/~kov/gksu/$isim-$surum.tar.gz + libgksu-2.0.0-fbsd.patch + libgksu-2.0.12-automake-1.11.2.patch + libgksu-2.0.12-fix-make-3.82.patch + libgksu-2.0.12-notests.patch + libgksu-2.0.12-revert-forkpty.patch + libgksu-2.0.7-libs.patch + libgksu-2.0.7-polinguas.patch + libgksu-tr.po) + +derle() { + cd $isim-$surum + patch -Np1 -i "${SRC}/libgksu-2.0.0-fbsd.patch" + patch -Np1 -i "${SRC}/libgksu-2.0.7-libs.patch" + patch -Np1 -i "${SRC}/libgksu-2.0.7-polinguas.patch" + patch -Np1 -i "${SRC}/libgksu-2.0.12-revert-forkpty.patch" + patch -Np0 -i "${SRC}/libgksu-2.0.12-fix-make-3.82.patch" + patch -Np1 -i "${SRC}/libgksu-2.0.12-notests.patch" + patch -Np1 -i "${SRC}/libgksu-2.0.12-automake-1.11.2.patch" + + touch NEWS README + + intltoolize --force --copy --automake + autoreconf -fi + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-static \ + --disable-schemas-install + + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + make + make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${PKG}" install + rm -f ${PKG}/usr/lib/*.a + install -m755 -d "${PKG}/usr/share/gconf/schemas" + gconf-merge-schema "${PKG}/usr/share/gconf/schemas/$isim.schemas" --domain libgksu ${PKG}/etc/gconf/schemas/*.schemas + rm -rf ${PKG}/etc/gconf + rm -rf ${PKG}/usr/share/gtk-doc + mkdir -p $PKG/usr/share/locale/tr/LC_MESSAGES + msgfmt $SRC/libgksu-tr.po -o $PKG/usr/share/locale/tr/LC_MESSAGES/libgksu.mo +} diff --git a/talimatname/genel/l/libglade/talimat b/talimatname/genel/l/libglade/talimat new file mode 100644 index 000000000..6437ae732 --- /dev/null +++ b/talimatname/genel/l/libglade/talimat @@ -0,0 +1,22 @@ +# Tanım: Glade arayüz dosyalarını bir programda çalışma zamanında yüklemenize izin verir. +# URL: http://www.jamesh.id.au/software/libglade/ +# Paketçi: milisarge +# Gerekler: gtk2 libxml2 + +isim=libglade +surum=2.6.4 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${surum%.*}/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + sed -i '/DG_DISABLE_DEPRECATED/d' glade/Makefile.in + ./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/gtk-doc +} + diff --git a/talimatname/genel/l/libglademm/talimat b/talimatname/genel/l/libglademm/talimat new file mode 100644 index 000000000..04b5543f6 --- /dev/null +++ b/talimatname/genel/l/libglademm/talimat @@ -0,0 +1,21 @@ +# Tanım: Libglade için bir C ++ sarmalayıcı. +# URL: http://gtkmm.sourceforge.net/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: libglade gtkmm +# Grup: kütüphane + +isim=libglademm +surum=2.6.7 +devir=1 +kaynak=(https://download.gnome.org/sources/$isim/${surum%.*}/$isim-$surum.tar.bz2 +) + +derle() { + cd $isim-$surum + + CXXFLAGS+=' -std=c++11' + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var + make + make DESTDIR="${PKG}" install + +} diff --git a/talimatname/genel/l/libgnome-keyring/talimat b/talimatname/genel/l/libgnome-keyring/talimat new file mode 100644 index 000000000..da1237a76 --- /dev/null +++ b/talimatname/genel/l/libgnome-keyring/talimat @@ -0,0 +1,17 @@ +# Tanım: GNOME anahtarlık istemci kitaplığı +# URL: http://www.gnome.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: python dbus glib intltool libgcrypt gobject-introspection vala + +isim=libgnome-keyring +surum=3.12.0 +devir=1 + +kaynak=( http://ftp.gnome.org/pub/gnome/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libgnomecanvas/talimat b/talimatname/genel/l/libgnomecanvas/talimat new file mode 100644 index 000000000..d9fb2cd19 --- /dev/null +++ b/talimatname/genel/l/libgnomecanvas/talimat @@ -0,0 +1,19 @@ +# Tanım: GNOME Canvas kitaplığı +# URL: http://www.gnome.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: intltool libglade libart_lgpl + +isim=libgnomecanvas +surum=2.30.3 +devir=3.0 +kaynak=(https://download.gnome.org/sources/$isim/2.30/$isim-$surum.tar.bz2 +) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --disable-static \ + --enable-glade + make + make DESTDIR="${PKG}" install + +} diff --git a/talimatname/genel/l/libgnomecanvasmm/talimat b/talimatname/genel/l/libgnomecanvasmm/talimat new file mode 100644 index 000000000..593eb76af --- /dev/null +++ b/talimatname/genel/l/libgnomecanvasmm/talimat @@ -0,0 +1,21 @@ +# Tanım: Libgnomecanvas için bir C ++ sarmalayıcı. +# URL: http://www.gtkmm.org/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: pkg-config gtkmm libgnomecanvas + +isim=libgnomecanvasmm +surum=2.26.0 +devir=1 +kaynak=(https://download.gnome.org/sources/$isim/${surum%.*}/$isim-$surum.tar.bz2 +) + +derle() { + cd $isim-$surum + + CXXFLAGS+=' -std=c++11' + ./configure --prefix=/usr --sysconfdir=/etc \ + --localstatedir=/var + make + make DESTDIR=$PKG install + +} \ No newline at end of file diff --git a/talimatname/genel/l/libgnomekbd/libgnomekbd.kur-kos b/talimatname/genel/l/libgnomekbd/libgnomekbd.kur-kos new file mode 100644 index 000000000..e940cd93a --- /dev/null +++ b/talimatname/genel/l/libgnomekbd/libgnomekbd.kur-kos @@ -0,0 +1 @@ +glib-compile-schemas /usr/share/glib-2.0/schemas > /dev/null 2>&1 diff --git a/talimatname/genel/l/libgnomekbd/talimat b/talimatname/genel/l/libgnomekbd/talimat new file mode 100644 index 000000000..309621a90 --- /dev/null +++ b/talimatname/genel/l/libgnomekbd/talimat @@ -0,0 +1,17 @@ +# Tanım: GNOME klavye kitaplığı +# URL: http://www.gnome.org/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: gtk3 intltool xorg-libxkbfile xorg-libxklavier gobject-introspection + +isim=libgnomekbd +surum=3.22.0.1 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${version:0:4}/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr --disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libgovirt/talimat b/talimatname/genel/l/libgovirt/talimat new file mode 100644 index 000000000..d53893984 --- /dev/null +++ b/talimatname/genel/l/libgovirt/talimat @@ -0,0 +1,20 @@ +# Tanım: OVirt REST API'sına erişmek için GObject tabanlı kitaplık +# URL: https://github.com/MBach/Miam-Player +# Paketçi: Cihan Alkan +# Gerekler: librest gnome-common +# Grup: kütüphane + +isim=libgovirt +surum=0.3.4 +devir=1 +kaynak=(https://git.gnome.org/browse/libgovirt/snapshot/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + autoreconf -fvi + + ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + make + make DESTDIR="${PKG}" install +} diff --git a/talimatname/genel/l/libgpg-error/talimat b/talimatname/genel/l/libgpg-error/talimat new file mode 100644 index 000000000..9357a22f6 --- /dev/null +++ b/talimatname/genel/l/libgpg-error/talimat @@ -0,0 +1,20 @@ +# Tanım: Tüm GnuPG bileşenleri için ortak hata değerlerini tanımlayan bir kitaplık içerir +# URL: http://www.gnupg.org +# Paketçi: milisarge +# Gerekler: + +isim=libgpg-error +surum=1.21 +devir=1 + +kaynak=(ftp://ftp.gnupg.org/gcrypt/$isim/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +install -v -m644 -D README \ +$PKG/usr/share/doc/$isim-$surum/README +rm -f $PKG/usr/share/info/dir +} diff --git a/talimatname/genel/l/libgphoto2/jpeg.patch b/talimatname/genel/l/libgphoto2/jpeg.patch new file mode 100644 index 000000000..34baeadd6 --- /dev/null +++ b/talimatname/genel/l/libgphoto2/jpeg.patch @@ -0,0 +1,92 @@ +From 0df14db3eda1b780a27b1c54bc8f251d15afebbc Mon Sep 17 00:00:00 2001 +From: Patrick Ohly <patrick.ohly@intel.com> +Date: Wed, 15 Jun 2016 10:33:24 +0200 +Subject: [PATCH] jpeg_memsrcdest: extend feature check + +libjpeg.h in OpenEmbedded master (from libjpeg-turbo 1.5.0) provides +these methods if "JPEG_LIB_VERSION >= 80 || +defined(MEM_SRCDST_SUPPORTED)". + +The support for the jpeg_mem functions was added even when not +emulating the libjpeg8 API, controlled via the MEM_SRCDST_SUPPORTED +define, so checking for the version alone is not enough anymore. + +See https://github.com/libjpeg-turbo/libjpeg-turbo/commit/ab70623eb29e09e67222be5b9e1ea320fe5aa0e9 + +This fixes errors about conflicting declarations (signed vs. unsigned +char). + +Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> +--- + camlibs/ax203/jpeg_memsrcdest.c | 4 ++-- + camlibs/ax203/jpeg_memsrcdest.h | 4 ++++ + camlibs/jl2005c/jpeg_memsrcdest.c | 4 ++-- + camlibs/jl2005c/jpeg_memsrcdest.h | 4 ++++ + 4 files changed, 12 insertions(+), 4 deletions(-) + +diff --git a/camlibs/ax203/jpeg_memsrcdest.c b/camlibs/ax203/jpeg_memsrcdest.c +index 0ed83b1..5614573 100644 +--- a/camlibs/ax203/jpeg_memsrcdest.c ++++ b/camlibs/ax203/jpeg_memsrcdest.c +@@ -25,8 +25,8 @@ + #include "jpeg_memsrcdest.h" + + /* libjpeg8 and later come with their own (API compatible) memory source +- and dest */ +-#if JPEG_LIB_VERSION < 80 ++ and dest, and older versions may have it backported */ ++#if JPEG_LIB_VERSION < 80 && !defined(MEM_SRCDST_SUPPORTED) + + /* Expanded data source object for memory input */ + +diff --git a/camlibs/ax203/jpeg_memsrcdest.h b/camlibs/ax203/jpeg_memsrcdest.h +index e971182..b13bf3f 100644 +--- a/camlibs/ax203/jpeg_memsrcdest.h ++++ b/camlibs/ax203/jpeg_memsrcdest.h +@@ -1,5 +1,7 @@ + #include <jpeglib.h> + ++#if JPEG_LIB_VERSION < 80 && !defined(MEM_SRCDST_SUPPORTED) ++ + void + jpeg_mem_src (j_decompress_ptr cinfo, unsigned char * buffer, + unsigned long bufsize); +@@ -7,3 +9,5 @@ jpeg_mem_src (j_decompress_ptr cinfo, unsigned char * buffer, + void + jpeg_mem_dest (j_compress_ptr cinfo, unsigned char ** outbuffer, + unsigned long * outsize); ++ ++#endif +diff --git a/camlibs/jl2005c/jpeg_memsrcdest.c b/camlibs/jl2005c/jpeg_memsrcdest.c +index 321f926..b65310e 100644 +--- a/camlibs/jl2005c/jpeg_memsrcdest.c ++++ b/camlibs/jl2005c/jpeg_memsrcdest.c +@@ -25,8 +25,8 @@ + #include "jpeg_memsrcdest.h" + + /* libjpeg8 and later come with their own (API compatible) memory source +- and dest */ +-#if JPEG_LIB_VERSION < 80 ++ and dest, and older versions may have it backported */ ++#if JPEG_LIB_VERSION < 80 && !defined(MEM_SRCDST_SUPPORTED) + + /* Expanded data source object for memory input */ + +diff --git a/camlibs/jl2005c/jpeg_memsrcdest.h b/camlibs/jl2005c/jpeg_memsrcdest.h +index e971182..b13bf3f 100644 +--- a/camlibs/jl2005c/jpeg_memsrcdest.h ++++ b/camlibs/jl2005c/jpeg_memsrcdest.h +@@ -1,5 +1,7 @@ + #include <jpeglib.h> + ++#if JPEG_LIB_VERSION < 80 && !defined(MEM_SRCDST_SUPPORTED) ++ + void + jpeg_mem_src (j_decompress_ptr cinfo, unsigned char * buffer, + unsigned long bufsize); +@@ -7,3 +9,5 @@ jpeg_mem_src (j_decompress_ptr cinfo, unsigned char * buffer, + void + jpeg_mem_dest (j_compress_ptr cinfo, unsigned char ** outbuffer, + unsigned long * outsize); ++ ++#endif diff --git a/talimatname/genel/l/libgphoto2/talimat b/talimatname/genel/l/libgphoto2/talimat new file mode 100644 index 000000000..385f76a10 --- /dev/null +++ b/talimatname/genel/l/libgphoto2/talimat @@ -0,0 +1,20 @@ +# Tanım: Harici programlar tarafından dijital kameraya erişime izin vermek için tasarlanmış gphoto2 çekirdek kütüphanesi. +# URL: http://www.gphoto.org/proj/libgphoto2/ +# Paketçi: milisarge +# Gerekler: libjpeg-turbo libexif libusb-compat + +isim=libgphoto2 +surum=2.5.10 +devir=1 + +kaynak=(https://distfiles.macports.org/libgphoto2/libgphoto2-2.5.10.tar.bz2 + jpeg.patch) + +derle() { + cd $isim-$surum + patch -Np1 -i ../jpeg.patch + ./configure --prefix=/usr --sysconfdir=/etc + make + make DESTDIR=$PKG install + rm -r $PKG/usr/share/doc +} diff --git a/talimatname/genel/l/libgravatar/talimat b/talimatname/genel/l/libgravatar/talimat new file mode 100644 index 000000000..87e8bd094 --- /dev/null +++ b/talimatname/genel/l/libgravatar/talimat @@ -0,0 +1,22 @@ +# Tanım: Gravatar desteği sağlayan KDE PIM kütüphanesi +# URL: https://community.kde.org/KDE_PIM +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules kf5-kconfig kf5-kwidgetsaddons pimcommon kf5-kdoctools boost +# grup: kde + +isim=libgravatar +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libgsf/talimat b/talimatname/genel/l/libgsf/talimat new file mode 100644 index 000000000..6bbcad9f5 --- /dev/null +++ b/talimatname/genel/l/libgsf/talimat @@ -0,0 +1,18 @@ +# Tanım: Yapısal dosya biçimleri için genişletilebilir bir giriş/çıkış özetleme katmanı sağlayın. +# URL: http://www.gnome.org/ +# Paketçi: milisarge +# Gerekler: glib intltool libxml2 gobject-introspection + +isim=libgsf +surum=1.14.35 +devir=1 + +kaynak=( http://ftp.gnome.org/pub/gnome/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libgsignon-glib/talimat b/talimatname/genel/l/libgsignon-glib/talimat new file mode 100644 index 000000000..d3493629b --- /dev/null +++ b/talimatname/genel/l/libgsignon-glib/talimat @@ -0,0 +1,22 @@ +# Tanım: Hesap kimlik doğrulamasını yürüten uygulamalar için GLib tabanlı istemci kitaplığı +# URL: https://gitlab.com/accounts-sso/libgsignon-glib +# Paketçi: Cihan_Alkan +# Gerekler: gtk-doc vala gobject-introspection glib2 +# Grup: kütüphane + +isim=libgsignon-glib +surum=2.4.1 +devir=1 + +kaynak=(https://gitlab.com/accounts-sso/libgsignon-glib/repository/master/archive.tar.gz) + +derle() { +cd libgsignon-glib* + ./autogen.sh + ./configure --prefix=/usr \ + --localstatedir=/var \ + --sysconfdir=/etc + make -j1 + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/gtk-doc +} diff --git a/talimatname/genel/l/libgtop/talimat b/talimatname/genel/l/libgtop/talimat new file mode 100644 index 000000000..8f840b23f --- /dev/null +++ b/talimatname/genel/l/libgtop/talimat @@ -0,0 +1,21 @@ +# Tanım: İşlemler ve çalışan sistem hakkında bilgi içeren bir kütüphane +# URL: http://www.gnu.org/directory/libs/LibGTop.html +# Paketçi: milisarge +# Gerekler: gtk-doc intltool gobject-introspection + +isim=libgtop +surum=2.32.0 +devir=1 + +kaynak=(http://download.gnome.org/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--disable-static +make +make DESTDIR=$PKG install +install -v -m755 -d $PKG/usr/lib/libgtop/examples +install -v -m755 examples/.libs/* $PKG/usr/lib/libgtop/examples +rm -rf $PKG/usr/share/info/dir +} diff --git a/talimatname/genel/l/libgudev/talimat b/talimatname/genel/l/libgudev/talimat new file mode 100644 index 000000000..82e81e692 --- /dev/null +++ b/talimatname/genel/l/libgudev/talimat @@ -0,0 +1,17 @@ +# Tanım: Libgudev paketi, libudev için GObject bağlamlarını içerir. +# URL: http://www.codeforge.com/s/0/libgudev +# Paketçi: milisarge +# Gerekler: glib gobject-introspection gtk-doc + +isim=libgudev +surum=230 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/libgudev/$surum/libgudev-$surum.tar.xz) +derle() { +cd ${isim}-$surum + +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libguestfs/libguestfs.kur-kos b/talimatname/genel/l/libguestfs/libguestfs.kur-kos new file mode 100644 index 000000000..67caf6a92 --- /dev/null +++ b/talimatname/genel/l/libguestfs/libguestfs.kur-kos @@ -0,0 +1,15 @@ +if [ -f .bash_profile ]; then + if [ -z LIBGUESTFS_PATH ]; then + echo "export LIBGUESTFS_PATH=/usr/lib/guestfs/appliance/" >> .bash_profile + fi +else + echo "export LIBGUESTFS_PATH=/usr/lib/guestfs/appliance/" >> /etc/bashrc +fi + +echo "Avant d'utiliser l'application il faut relancer BASH" +echo "afin de prendre en compte LIBGUESTFS_PATH" +echo "ensuite il est possible de tester les fonctions " +echo "avec la commande \"libguestfs-test-tool\" " +echo "un système virtuel est créé et les fonctions internes sont testées " +echo "si tout va bien le message de fin est \"===== TEST FINISHED OK =====\"" + diff --git a/talimatname/genel/l/libguestfs/talimat b/talimatname/genel/l/libguestfs/talimat new file mode 100644 index 000000000..663698dc6 --- /dev/null +++ b/talimatname/genel/l/libguestfs/talimat @@ -0,0 +1,45 @@ +# Tanım: Libguestfs, sanal makine (VM) disk görüntülerine erişmek ve değiştirmek için kullanılan bir takım araçtır +# URL: http://libguestfs.org +# Paketçi: milisarge +# Gerekler: ocaml ocaml-findlib python ruby lua cdrkit qemu augeas libxml2 pcre db systemtap fuse gdisk bash-completion libconfig + + + +isim=libguestfs +surum=1.30.4 +devir=1 +kaynak=(http://$isim.org/download/1.30-stable/$isim-$surum.tar.gz + http://libguestfs.org/download/binaries/appliance/appliance-1.30.1.tar.xz) + + +derle() { + + cd $isim-$surum + + export LIBTINFO_CFLAGS="-D_GNU_SOURCE" + export LIBTINFO_LIBS="-lncursesw" + + ./configure --prefix=/usr \ + --mandir=/usr/man \ + --sysconfdir=/etc/ \ + --disable-ocaml \ + --disable-haskell \ + --disable-php \ + --disable-erlang \ + --enable-threads=posix \ + --disable-appliance \ + --disable-daemon + + make + make DESTDIR=$PKG install + + cd .. + cd appliance + + install -m 755 -d $PKG/usr/lib/guestfs/appliance + cp -v kernel $PKG/usr/lib/guestfs/appliance/ + cp -v initrd $PKG/usr/lib/guestfs/appliance/initrd + cp -v root $PKG/usr/lib/guestfs/appliance/root + cp -v README.fixed $PKG/usr/lib/guestfs/appliance/README.fixed + +} diff --git a/talimatname/genel/l/libgusb/talimat b/talimatname/genel/l/libgusb/talimat new file mode 100644 index 000000000..545e1d8f8 --- /dev/null +++ b/talimatname/genel/l/libgusb/talimat @@ -0,0 +1,18 @@ +# Tanım: Libgusb paketi libusb-1.0 için GObject sarmalayıcılarını içerir +# URL: https://gitorious.org/gusb/ +# Paketçi: milisarge +# Gerekler: libusb gperf glib gobject-introspection libgudev + +isim=libgusb +surum=0.2.8 +devir=1 + +kaynak=(http://people.freedesktop.org/~hughsient/releases/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libgweather/libgweather.kur-kos b/talimatname/genel/l/libgweather/libgweather.kur-kos new file mode 100644 index 000000000..3b3990e7b --- /dev/null +++ b/talimatname/genel/l/libgweather/libgweather.kur-kos @@ -0,0 +1,2 @@ +glib-compile-schemas /usr/share/glib-2.0/schemas > /dev/null 2>&1 +gtk-update-icon-cache -q -t -f /usr/share/icons/gnome diff --git a/talimatname/genel/l/libgweather/talimat b/talimatname/genel/l/libgweather/talimat new file mode 100644 index 000000000..2bbbe680d --- /dev/null +++ b/talimatname/genel/l/libgweather/talimat @@ -0,0 +1,17 @@ +# Tanım: İnternetten hava durumu bilgisine erişim sağlar +# URL: https://wiki.gnome.org/action/show/Projects/LibGWeather?action=show&redirect=LibGWeather +# Paketçi: yasarciv67@gmail.com +# Gerekler: geocode-glib gtk3 libsoup gobject-introspection vala gtk-update-icon-cache + +isim=libgweather +surum=3.20.3 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr --with-zoneinfo-dir +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libical/libical.kur-kos b/talimatname/genel/l/libical/libical.kur-kos new file mode 100755 index 000000000..9677e4749 --- /dev/null +++ b/talimatname/genel/l/libical/libical.kur-kos @@ -0,0 +1,2 @@ +rm -rf /usr/lib/pkgconfig/libical.pc +ln -s /usr/lib64/pkgconfig/libical.pc /usr/lib/pkgconfig/ diff --git a/talimatname/genel/l/libical/talimat b/talimatname/genel/l/libical/talimat new file mode 100644 index 000000000..4a5083331 --- /dev/null +++ b/talimatname/genel/l/libical/talimat @@ -0,0 +1,22 @@ +# Tanım: ICalendar protokollerinin ve veri formatlarının uygulanması. +# URL: http://sourceforge.net/projects/freeassociation/ +# Paketçi: milisarge +# Gerekler: cmake + +isim=libical +surum=2.0.0 +devir=2 + +kaynak=( https://github.com/libical/libical/releases/download/v2.0.0/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + mkdir build + cd build + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DSHARED_ONLY=yes \ + .. + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libid3tag/talimat b/talimatname/genel/l/libid3tag/talimat new file mode 100644 index 000000000..f16d62c1a --- /dev/null +++ b/talimatname/genel/l/libid3tag/talimat @@ -0,0 +1,21 @@ +# Tanım: Id3 etiketleme için kütüphane +# URL: http://www.mars.org/home/rob/proj/mpeg/ +# Paketçi: milisarge +# Gerekler: + +isim=libid3tag +surum=0.15.1b +devir=1 + +kaynak=(ftp://ftp.mars.org/pub/mpeg/$isim-$surum.tar.gz\ + http://downloads.nutyx.org/files/patchs/$isim/id3tag.pc) + +derle() { + mkdir -p $PKG/usr/lib/pkgconfig/ + sed "s/#version#/$surum/" id3tag.pc > \ + $PKG/usr/lib/pkgconfig/id3tag.pc + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libidl/talimat b/talimatname/genel/l/libidl/talimat new file mode 100644 index 000000000..8e28ac01f --- /dev/null +++ b/talimatname/genel/l/libidl/talimat @@ -0,0 +1,19 @@ +# Tanım: CORBA 2.2 IDL ve Netscape'in XPIDL'leri için bir ön uç +# URL: http://www.gnome.org +# Paketçi: milisarge +# Gerekler: glib + +isim=libidl +surum=0.8.14 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/libIDL/0.8/libIDL-$surum.tar.bz2) +derle() { +cd libIDL-$surum +./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info +make +make DESTDIR=$PKG install +rm $PKG/usr/share/info/dir +} diff --git a/talimatname/genel/l/libidn/talimat b/talimatname/genel/l/libidn/talimat new file mode 100644 index 000000000..5641deddc --- /dev/null +++ b/talimatname/genel/l/libidn/talimat @@ -0,0 +1,27 @@ +# Tanım: GNU Libidn, Stringprep, Punycode ve IDNA 2003 teknik özelliklerinin tam olarak belgelendirilmiş bir uygulamasıdır. +# URL: http://www.gnu.org/software/libidn/ +# Paketçi: milisarge +# Gerekler: + +isim=libidn +surum=1.32 +devir=1 + +kaynak=(http://ftp.gnu.org/gnu/$isim/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum + +./configure --prefix=/usr --disable-static \ +--mandir=/usr/share/man --infodir=/usr/share/info + +make +make DESTDIR=$PKG install + +rm $PKG/usr/share/info/{dir,libidn-components.png} +# Doc +find doc -name "Makefile*" -delete +rm -rf -v doc/{gdoc,idn.1,stamp-vti,man,texi} +mkdir -p /usr/share/doc/$isim-$surum +cp -r -v doc/* /usr/share/doc/$isim-$surum +} diff --git a/talimatname/genel/l/libindicator-gtk2/talimat b/talimatname/genel/l/libindicator-gtk2/talimat new file mode 100644 index 000000000..49dd72ee1 --- /dev/null +++ b/talimatname/genel/l/libindicator-gtk2/talimat @@ -0,0 +1,31 @@ +# Tanım: Göstergeler için bir dizi sembol ve kolaylık fonksiyonu +# URL: https://launchpad.net/libindicator +# Paketçi: milisarge +# Gerekler: gtk2 + +isim=libindicator-gtk2 +surum=0.4.93 +devir=1 + +kaynak=(http://launchpad.net/libindicator/0.5/$surum/+download/libindicator-$surum.tar.gz) + +derle() { + + sed '/-Werror/s/$/ -Wno-deprecated-declarations/' -i libindicator-$surum/libindicator/Makefile.{am,in} + sed 's/LIBINDICATOR_LIBS+="$LIBM"/LIBINDICATOR_LIBS+=" $LIBM"/g' -i libindicator-$surum/configure + sed 's/LIBM="-lmw"/LIBM=" -lmw"/g' -i libindicator-$surum/configure + sed 's/LIBM="-lm"/LIBM=" -lm"/g' -i libindicator-$surum/configure + sed 's/LIBS="-lm $LIBS"/LIBS=" -lm $LIBS"/g' -i libindicator-$surum/configure + sed 's/LIBS="-lmw $LIBS"/LIBS=" -lmw $LIBS"/g' -i libindicator-$surum/configure + + cd libindicator-$surum + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --libexecdir=/usr/lib/$isim \ + --disable-static \ + --with-gtk=2 +make -j1 +make -j1 DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libindicator/talimat b/talimatname/genel/l/libindicator/talimat new file mode 100644 index 000000000..a62fac473 --- /dev/null +++ b/talimatname/genel/l/libindicator/talimat @@ -0,0 +1,31 @@ +# Tanım: Göstergeler için bir dizi sembol ve kolaylık fonksiyonu +# URL: https://launchpad.net/libindicator +# Paketçi: yasarciv +# Gerekler: gtk3 + +isim=libindicator +surum=12.10.1 +devir=1 +kaynak=(https://launchpad.net/$isim/12.10/12.10.1/+download/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + sed '/-Werror/s/$/ -Wno-deprecated-declarations/' -i libindicator/Makefile.{am,in} + sed 's/LIBINDICATOR_LIBS+="$LIBM"/LIBINDICATOR_LIBS+=" $LIBM"/g' -i configure + sed 's/LIBM="-lmw"/LIBM=" -lmw"/g' -i configure + sed 's/LIBM="-lm"/LIBM=" -lm"/g' -i configure + sed 's/LIBS="-lm $LIBS"/LIBS=" -lm $LIBS"/g' -i configure + sed 's/LIBS="-lmw $LIBS"/LIBS=" -lmw $LIBS"/g' -i configure + sed 's/LIBM="-lm"/LIBM=" -lm"/g' -i m4/libtool.m4 + export CFLAGS="${CFLAGS} -Wno-error=deprecated-declarations" + ./configure \ + --prefix=/usr \ + --localstatedir=/var \ + --libexecdir=/usr/lib/libindicator \ + --sysconfdir=/etc \ + --with-gtk=3 \ + --disable-static \ + --disable-tests + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libinput/talimat b/talimatname/genel/l/libinput/talimat new file mode 100644 index 000000000..55216388c --- /dev/null +++ b/talimatname/genel/l/libinput/talimat @@ -0,0 +1,20 @@ +# Tanım: Görüntüleme sunucuları ve giriş aygıtlarıyla uğraşmak zorunda kalan diğer uygulamalar için kitaplık +# URL:http://www.freedesktop.org/wiki/Software/libinput/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: libevdev mtdev libwacom + +isim=libinput +surum=1.4.0 +devir=1 + +kaynak=(http://freedesktop.org/software/$isim/$isim-$surum.tar.xz ) + +derle() { +cd $isim-$surum +./configure --prefix=/usr --disable-static \ +--with-udev-dir=/lib/udev +make +make DESTDIR=$PKG install +install -v -dm755 $PKG/usr/share/doc/libinput-$surum +cp -rv doc/html/* $PKG/usr/share/doc/libinput-$surum +} diff --git a/talimatname/genel/l/libiodbc/talimat b/talimatname/genel/l/libiodbc/talimat new file mode 100644 index 000000000..bda488cf2 --- /dev/null +++ b/talimatname/genel/l/libiodbc/talimat @@ -0,0 +1,21 @@ +# Tanım: Linux için bağımsız açık veri tabanı bağlantısı +# URL: http://www.iodbc.org +# Paketçi: milisarge +# Gerekler: + +isim=libiodbc +surum=3.52.10 +devir=1 + +kaynak=(http://downloads.sourceforge.net/sourceforge/iodbc/$isim-$surum.tar.gz) +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--disable-static \ +--includedir=/usr/include/libiodbc \ +--disable-gui \ +--disable-libodbc +make +make DESTDIR=$PKG install +rm -rf $PKG/usr/share/libiodbc/ +} diff --git a/talimatname/genel/l/libisoburn/talimat b/talimatname/genel/l/libisoburn/talimat new file mode 100644 index 000000000..1e9b3b7fb --- /dev/null +++ b/talimatname/genel/l/libisoburn/talimat @@ -0,0 +1,18 @@ +# Tanım: Libisoburn libburn ve libisofs kütüphaneleri için bir ön uçtur +# URL: http://libburnia-project.org/ +# Paketçi: milisarge +# Gerekler: libburn libisofs acl attr + +isim=libisoburn +surum=1.4.2 +devir=1 + +kaynak=(http://files.libburnia-project.org/releases/libisoburn-$surum.tar.gz) +derle() { +cd $isim-$surum +./configure --prefix=/usr --disable-static \ +--enable-pkg-check-modules +make +make DESTDIR=$PKG install +rm -f $PKG/usr/share/info/dir +} diff --git a/talimatname/genel/l/libisofs/talimat b/talimatname/genel/l/libisofs/talimat new file mode 100644 index 000000000..5f0d46dd2 --- /dev/null +++ b/talimatname/genel/l/libisofs/talimat @@ -0,0 +1,17 @@ +# Tanım: Libisofs, bir ISO-9660 dosya sistemi oluşturmak için kullanılan bir kütüphanedir +# URL: http://libburnia.pykix.org/ +# Paketçi: milisarge +# Gerekler: + +isim=libisofs +surum=1.4.2 +devir=1 + +kaynak=(http://files.libburnia-project.org/releases/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr --disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libixion/talimat b/talimatname/genel/l/libixion/talimat new file mode 100644 index 000000000..8527f0329 --- /dev/null +++ b/talimatname/genel/l/libixion/talimat @@ -0,0 +1,22 @@ +# Tanım: Genel amaçlı formül çözümleyici ve yorumlayıcı +# URL: https://gitlab.com/ixion/ixion/blob/master/README.md +# Paketçi: Cihan Alkan +# Gerekler: boost mdds python3 + +isim=libixion +surum=0.13.0 +devir=1 + +kaynak=(http://kohei.us/files/ixion/src/libixion-$surum.tar.xz) + +derle() { + cd $isim-$surum + [ ! -f /usr/lib/pkgconfig/python3.pc ] && ln -s /usr/lib/pkgconfig/python-3.5.pc /usr/lib/pkgconfig/python3.pc + ./configure \ + --prefix=/usr \ + --disable-static + make + make DESTDIR=$PKG install + install -Dm644 LICENSE "$PKG/usr/share/licenses/$isim/LICENSE" + rm -f /usr/lib/pkgconfig/python3.pc +} diff --git a/talimatname/genel/l/libjpeg-turbo/talimat b/talimatname/genel/l/libjpeg-turbo/talimat new file mode 100644 index 000000000..91d602ef1 --- /dev/null +++ b/talimatname/genel/l/libjpeg-turbo/talimat @@ -0,0 +1,21 @@ +# Tanım: Temel JPEG hızlandırmak için SIMD kullanan orijinal IJG libjpeg çatalı +# URL: http://libjpeg-turbo.virtualgl.org/ +# Paketçi: milisarge +# Gerekler: nasm + +isim=libjpeg-turbo +surum=1.5.3 +devir=1 + +kaynak=(http://sourceforge.net/projects/libjpeg-turbo/files/$surum/libjpeg-turbo-$surum.tar.gz) + +derle() { +cd $isim-$surum + sed -i -e '/^docdir/ s:$:/libjpeg-turbo-1.5.3:' Makefile.in + + ./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --with-jpeg8 --disable-static + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libkcddb/talimat b/talimatname/genel/l/libkcddb/talimat new file mode 100644 index 000000000..7d021b1a3 --- /dev/null +++ b/talimatname/genel/l/libkcddb/talimat @@ -0,0 +1,21 @@ +# Tanım: Libkcddb paketi internetten ses CD'si meta verilerini almak için kullanılan bir kitaplık içerir. +# URL: http://sourceforge.net/projects/libkcddb +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: git qt5 kf5-extra-cmake-modules kf5-kconfig kf5-kdoctools kf5-kcodecs kf5-ki18n kf5-kio kf5-kwidgetsaddons kf5-kxmlgui + +isim=libkcddb +surum=26160902 +devir=1 + +derle() { + git clone git://anongit.kde.org/libkcddb.git + mkdir build + cd build + cmake ../$isim \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libkdcraw/talimat b/talimatname/genel/l/libkdcraw/talimat new file mode 100644 index 000000000..efcc29615 --- /dev/null +++ b/talimatname/genel/l/libkdcraw/talimat @@ -0,0 +1,21 @@ +# Tanım: RAW resim kodunu çözmek için kullanılan bir C ++ arabirimi +# URL: http://www.kde.org +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: qt5 kf5-extra-cmake-modules libraw +# grup: kde + +isim=libkdcraw +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +cmake -DCMAKE_BUILD_TYPE=Release \ + -DKDE4_BUILD_TESTS=OFF \ + -DCMAKE_INSTALL_PREFIX=/usr + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libkdegames/talimat b/talimatname/genel/l/libkdegames/talimat new file mode 100644 index 000000000..67bcc4e64 --- /dev/null +++ b/talimatname/genel/l/libkdegames/talimat @@ -0,0 +1,21 @@ +# Tanım: Birçok KDE oyununda ortak kod ve veriler +# URL : https://projects.kde.org/projects/kde/kdegames/libkdegames +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules kf5-kdoctools kf5-kdelibs4support kf5-kdeclarative kf5-kdnssd kf5-knewstuff openal + +isim=libkdegames +surum=16.08.2 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/${surum}/src/${isim}-${surum}.tar.xz) + +derle() { +cd ${isim}-${surum} +cmake -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_TESTING=OFF \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libkdepim/talimat b/talimatname/genel/l/libkdepim/talimat new file mode 100644 index 000000000..210f0da2b --- /dev/null +++ b/talimatname/genel/l/libkdepim/talimat @@ -0,0 +1,22 @@ +# Tanım: KDE PIM uygulamaları için kütüphaneler +# URL: https://community.kde.org/KDE_PIM +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: qt5 kf5-extra-cmake-modules akonadi-contacts akonadi-search kcontacts kontactinterface kldap kf5-kdoctools boost kf5-kdelibs4support kmime kf5-kcmutils +# Grup: kde + +isim=libkdepim +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libkexiv2/talimat b/talimatname/genel/l/libkexiv2/talimat new file mode 100644 index 000000000..67585d447 --- /dev/null +++ b/talimatname/genel/l/libkexiv2/talimat @@ -0,0 +1,20 @@ +# Tanım: Resim metaverilerini değiştirmek için bir kütüphane +# URL: http://www.kde.org +# Paketçi: alihan-ozturk28 +# Gerekler: exiv2 qt5 kf5-extra-cmake-modules + +isim=libkexiv2 +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libkgapi/talimat b/talimatname/genel/l/libkgapi/talimat new file mode 100644 index 000000000..5501bb9de --- /dev/null +++ b/talimatname/genel/l/libkgapi/talimat @@ -0,0 +1,21 @@ +# Tanım: Çeşitli Google hizmetlerine genel API'lerinden erişmek için KDE tabanlı bir kütüphane +# URL: https://projects.kde.org/projects/extragear/libs/libkgapi +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kcalcore kcontacts kf5-extra-cmake-modules kf5-kdoctools qt5 + +isim=libkgapi +surum=5.3.1 +devir=1 + +kaynak=(http://download.kde.org/stable/$isim/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libkipi/libkipi.kur-kos b/talimatname/genel/l/libkipi/libkipi.kur-kos new file mode 100644 index 000000000..b74f6d479 --- /dev/null +++ b/talimatname/genel/l/libkipi/libkipi.kur-kos @@ -0,0 +1 @@ +xdg-icon-resource forceupdate --theme hicolor &> /dev/null diff --git a/talimatname/genel/l/libkipi/talimat b/talimatname/genel/l/libkipi/talimat new file mode 100644 index 000000000..f88b574cc --- /dev/null +++ b/talimatname/genel/l/libkipi/talimat @@ -0,0 +1,23 @@ +# Tanım: Bir KDE uygulamasından kipi eklentileri kullanmak için bir arayüz +# URL: https://projects.kde.org/projects/kde/kdegraphics/libs/libkipi +# Pakager: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules kf5-kxmlgui hicolor-icon-theme +# Grup: kde + +isim=libkipi +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/${surum}/src/${isim}-${surum}.tar.xz) + +derle() { +cd ${isim}-${surum} +cmake -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_TESTING=OFF \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/l/libkleo/talimat b/talimatname/genel/l/libkleo/talimat new file mode 100644 index 000000000..2e1d28632 --- /dev/null +++ b/talimatname/genel/l/libkleo/talimat @@ -0,0 +1,21 @@ +# Tanım: KDE PIM şifreleme kitaplığı +# URL: https://community.kde.org/KDE_PIM +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules boost kpimtextedit + +isim=libkleo +surum=16.08.2 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libkmahjongg/talimat b/talimatname/genel/l/libkmahjongg/talimat new file mode 100644 index 000000000..c105d417e --- /dev/null +++ b/talimatname/genel/l/libkmahjongg/talimat @@ -0,0 +1,21 @@ +# Tanım: Kmahjongg oyunu için ortak kod ve veriler +# URL: https://projects.kde.org/projects/kde/kdegames/libkmahjongg +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules kf5-kdoctools kf5-kdelibs4support kf5-kdeclarative kf5-kdnssd kf5-knewstuff openal + +isim=libkmahjongg +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/${surum}/src/${isim}-${surum}.tar.xz) + +derle() { +cd ${isim}-${surum} +cmake -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_TESTING=OFF \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libkomparediff2/talimat b/talimatname/genel/l/libkomparediff2/talimat new file mode 100644 index 000000000..cf5f4ebdd --- /dev/null +++ b/talimatname/genel/l/libkomparediff2/talimat @@ -0,0 +1,24 @@ +# Tanım: Dosyaları ve dizeleri karşılaştırmak için kitaplık +# URL: http://www.kde.org/ +# Paketçi: Cihan_Alkan +# Gerekler: kf5-extra-cmake-modules kf5-kcodecs kf5-kconfig kf5-kcoreaddons kf5-ki18n kf5-kio kf5-kxmlgui qt5 +# Grup: kde kütüphane + + +isim=libkomparediff2 +surum=17.12.0 +devir=1 +kaynak=(https://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + + mkdir build + cd build + cmake ../$isim-$surum \ + -DCMAKE_BUILD_TYPE=RELEASE \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_TESTING=OFF \ + -Wno-dev + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libksane/talimat b/talimatname/genel/l/libksane/talimat new file mode 100644 index 000000000..dded27489 --- /dev/null +++ b/talimatname/genel/l/libksane/talimat @@ -0,0 +1,26 @@ +# Tanım: Bir resim tarama kitaplığı +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: sane kf5-extra-cmake-modules qt5 kf5-ki18n kf5-kwallet kf5-ktextwidgets +# Grup: kde kütüphane + +isim=libksane +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +mkdir build +cd build +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev .. +make +make DESTDIR=$PKG install +} + + diff --git a/talimatname/genel/l/libksba/talimat b/talimatname/genel/l/libksba/talimat new file mode 100644 index 000000000..1b780f6c2 --- /dev/null +++ b/talimatname/genel/l/libksba/talimat @@ -0,0 +1,20 @@ +# Tanım: Libksba, X.509 sertifikaları, CMS verileri ve ilgili nesnelerle çalışmanın görevlerini daha kolay hale getiren bir kütüphanedir (Şifreleme Mesaj Sözdizimi). +# URL: http://www.gnupg.org/related_software/libksba/ +# Paketçi: milisarge +# Gerekler: libgpg-error + +isim=libksba +surum=1.3.3 +devir=1 + +kaynak=(ftp://ftp.gnupg.org/gcrypt/$isim/$isim-$surum.tar.bz2 ) + +derle() { +cd $isim-$surum +./configure --prefix=/usr\ + --mandir=/usr/share/man\ + --infodir=/usr/share/info +make +make DESTDIR=$PKG install +rm $PKG/usr/share/info/dir +} diff --git a/talimatname/genel/l/libksieve/talimat b/talimatname/genel/l/libksieve/talimat new file mode 100644 index 000000000..6e25f3018 --- /dev/null +++ b/talimatname/genel/l/libksieve/talimat @@ -0,0 +1,21 @@ +# Tanım: Elekleri yönetmek için KDE PIM kütüphanesi. +# URL: https://community.kde.org/KDE_PIM +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules kf5-kdoctools boost qt5 kidentitymanagement pimcommon kmailtransport + +isim=libksieve +surum=16.08.2 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/liblangtag/talimat b/talimatname/genel/l/liblangtag/talimat new file mode 100644 index 000000000..3618a6b8a --- /dev/null +++ b/talimatname/genel/l/liblangtag/talimat @@ -0,0 +1,18 @@ +# Tanım: Tanımlama dilleri için etiketlerle erişim arayüz kütüphanesi +# URL: http://tagoh.bitbucket.org/liblangtag/index.html +# Paketçi: Cihan Alkan +# Gerekler: libxml2 glib gobject-introspection + +isim=liblangtag +surum=0.6.2 +devir=1 + +kaynak=(https://bitbucket.org/tagoh/liblangtag/downloads/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/liblinear/talimat b/talimatname/genel/l/liblinear/talimat new file mode 100644 index 000000000..066fbf928 --- /dev/null +++ b/talimatname/genel/l/liblinear/talimat @@ -0,0 +1,18 @@ +# Tanım: Büyük ölçekli uygulamalar için doğrusal sınıflayıcı öğrenmek için kütüphane. +# URL: http://www.csie.ntu.edu.tw/~cjlin/liblinear/ +# Paketçi:milisarge +# Gerekler: + +isim=liblinear +surum=2.1 +devir=1 + +kaynak=(http://www.csie.ntu.edu.tw/~cjlin/liblinear/oldfiles/$isim-$surum.tar.gz) +derle() { +cd $isim-$surum +make lib +mkdir -p $PKG/usr/{lib,include} +install -vm644 linear.h $PKG/usr/include +install -vm755 liblinear.so.3 $PKG/usr/lib +ln -sfv liblinear.so.3 $PKG/usr/lib/liblinear.so +} diff --git a/talimatname/genel/l/liblo/talimat b/talimatname/genel/l/liblo/talimat new file mode 100644 index 000000000..f40c160ea --- /dev/null +++ b/talimatname/genel/l/liblo/talimat @@ -0,0 +1,19 @@ +# Tanım: Hafif bir OSC (Açık Ses Kontrolü) uygulaması +# URL: http://liblo.sourceforge.net/ +# Paketçi: Cihan_Alkan +# Gerekler: doxygen +# Grup: medya + +isim=liblo +surum=0.29 +devir=1 +kaynak=(https://github.com/radarsat1/liblo/releases/download/0.29/liblo-0.29.tar.gz) + +derle() { + cd "$SRC/$isim-$surum" + ./configure --prefix=/usr + make + make DESTDIR="$PKG" install + rm -rf $PKG/usr/share/doc + rm -rf $PKG/usr/share/man +} diff --git a/talimatname/genel/l/liblxqt/talimat b/talimatname/genel/l/liblxqt/talimat new file mode 100644 index 000000000..5642dc09e --- /dev/null +++ b/talimatname/genel/l/liblxqt/talimat @@ -0,0 +1,22 @@ +# Tanım: Liblxqt tüm LXQt bileşenleri için temel yardımcı program kitaplığıdır. +# URL: http://lxqt.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: kf5-kwindowsystem libqtxdg +# Grup: lxqt + +isim=liblxqt +surum=0.13.0 +devir=1 +kaynak=(https://github.com/lxde/$isim/releases/download/$surum/$isim-$surum.tar.xz) + + +derle() { + mkdir -v build + cd build + cmake $SRC/$isim-$surum \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_LIBDIR=lib + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libmad/amd64-64bit.diff b/talimatname/genel/l/libmad/amd64-64bit.diff new file mode 100644 index 000000000..2ef025b6c --- /dev/null +++ b/talimatname/genel/l/libmad/amd64-64bit.diff @@ -0,0 +1,12 @@ +Index: libmad-0.15.1b/configure.ac +=================================================================== +--- libmad-0.15.1b.orig/configure.ac 2008-03-07 20:33:05.000000000 +0000 ++++ libmad-0.15.1b/configure.ac 2008-03-07 20:33:31.000000000 +0000 +@@ -233,6 +233,7 @@ + then + case "$host" in + i?86-*) FPM="INTEL" ;; ++ x86_64*) FPM="64BIT" ;; + arm*-*) FPM="ARM" ;; + mips*-*) FPM="MIPS" ;; + sparc*-*) FPM="SPARC" ;; diff --git a/talimatname/genel/l/libmad/frame_length.diff b/talimatname/genel/l/libmad/frame_length.diff new file mode 100644 index 000000000..d215b9b02 --- /dev/null +++ b/talimatname/genel/l/libmad/frame_length.diff @@ -0,0 +1,197 @@ +; You can calculate where the next frame will start depending on things +; like the bitrate. See mad_header_decode(). It seems that when decoding +; the frame you can go past that boundary. This attempts to catch those cases, +; but might not catch all of them. +; For more info see http://bugs.debian.org/508133 +Index: libmad-0.15.1b/layer12.c +=================================================================== +--- libmad-0.15.1b.orig/layer12.c 2008-12-23 21:38:07.000000000 +0100 ++++ libmad-0.15.1b/layer12.c 2008-12-23 21:38:12.000000000 +0100 +@@ -134,6 +134,12 @@ + for (sb = 0; sb < bound; ++sb) { + for (ch = 0; ch < nch; ++ch) { + nb = mad_bit_read(&stream->ptr, 4); ++ if (mad_bit_nextbyte(&stream->ptr) > stream->next_frame) ++ { ++ stream->error = MAD_ERROR_LOSTSYNC; ++ stream->sync = 0; ++ return -1; ++ } + + if (nb == 15) { + stream->error = MAD_ERROR_BADBITALLOC; +@@ -146,6 +152,12 @@ + + for (sb = bound; sb < 32; ++sb) { + nb = mad_bit_read(&stream->ptr, 4); ++ if (mad_bit_nextbyte(&stream->ptr) > stream->next_frame) ++ { ++ stream->error = MAD_ERROR_LOSTSYNC; ++ stream->sync = 0; ++ return -1; ++ } + + if (nb == 15) { + stream->error = MAD_ERROR_BADBITALLOC; +@@ -162,6 +174,12 @@ + for (ch = 0; ch < nch; ++ch) { + if (allocation[ch][sb]) { + scalefactor[ch][sb] = mad_bit_read(&stream->ptr, 6); ++ if (mad_bit_nextbyte(&stream->ptr) > stream->next_frame) ++ { ++ stream->error = MAD_ERROR_LOSTSYNC; ++ stream->sync = 0; ++ return -1; ++ } + + # if defined(OPT_STRICT) + /* +@@ -187,6 +205,12 @@ + frame->sbsample[ch][s][sb] = nb ? + mad_f_mul(I_sample(&stream->ptr, nb), + sf_table[scalefactor[ch][sb]]) : 0; ++ if (mad_bit_nextbyte(&stream->ptr) > stream->next_frame) ++ { ++ stream->error = MAD_ERROR_LOSTSYNC; ++ stream->sync = 0; ++ return -1; ++ } + } + } + +@@ -195,6 +219,12 @@ + mad_fixed_t sample; + + sample = I_sample(&stream->ptr, nb); ++ if (mad_bit_nextbyte(&stream->ptr) > stream->next_frame) ++ { ++ stream->error = MAD_ERROR_LOSTSYNC; ++ stream->sync = 0; ++ return -1; ++ } + + for (ch = 0; ch < nch; ++ch) { + frame->sbsample[ch][s][sb] = +@@ -403,7 +433,15 @@ + nbal = bitalloc_table[offsets[sb]].nbal; + + for (ch = 0; ch < nch; ++ch) ++ { + allocation[ch][sb] = mad_bit_read(&stream->ptr, nbal); ++ if (mad_bit_nextbyte(&stream->ptr) > stream->next_frame) ++ { ++ stream->error = MAD_ERROR_LOSTSYNC; ++ stream->sync = 0; ++ return -1; ++ } ++ } + } + + for (sb = bound; sb < sblimit; ++sb) { +@@ -411,6 +449,13 @@ + + allocation[0][sb] = + allocation[1][sb] = mad_bit_read(&stream->ptr, nbal); ++ ++ if (mad_bit_nextbyte(&stream->ptr) > stream->next_frame) ++ { ++ stream->error = MAD_ERROR_LOSTSYNC; ++ stream->sync = 0; ++ return -1; ++ } + } + + /* decode scalefactor selection info */ +@@ -419,6 +464,12 @@ + for (ch = 0; ch < nch; ++ch) { + if (allocation[ch][sb]) + scfsi[ch][sb] = mad_bit_read(&stream->ptr, 2); ++ if (mad_bit_nextbyte(&stream->ptr) > stream->next_frame) ++ { ++ stream->error = MAD_ERROR_LOSTSYNC; ++ stream->sync = 0; ++ return -1; ++ } + } + } + +@@ -442,6 +493,12 @@ + for (ch = 0; ch < nch; ++ch) { + if (allocation[ch][sb]) { + scalefactor[ch][sb][0] = mad_bit_read(&stream->ptr, 6); ++ if (mad_bit_nextbyte(&stream->ptr) > stream->next_frame) ++ { ++ stream->error = MAD_ERROR_LOSTSYNC; ++ stream->sync = 0; ++ return -1; ++ } + + switch (scfsi[ch][sb]) { + case 2: +@@ -452,11 +509,23 @@ + + case 0: + scalefactor[ch][sb][1] = mad_bit_read(&stream->ptr, 6); ++ if (mad_bit_nextbyte(&stream->ptr) > stream->next_frame) ++ { ++ stream->error = MAD_ERROR_LOSTSYNC; ++ stream->sync = 0; ++ return -1; ++ } + /* fall through */ + + case 1: + case 3: + scalefactor[ch][sb][2] = mad_bit_read(&stream->ptr, 6); ++ if (mad_bit_nextbyte(&stream->ptr) > stream->next_frame) ++ { ++ stream->error = MAD_ERROR_LOSTSYNC; ++ stream->sync = 0; ++ return -1; ++ } + } + + if (scfsi[ch][sb] & 1) +@@ -488,6 +557,12 @@ + index = offset_table[bitalloc_table[offsets[sb]].offset][index - 1]; + + II_samples(&stream->ptr, &qc_table[index], samples); ++ if (mad_bit_nextbyte(&stream->ptr) > stream->next_frame) ++ { ++ stream->error = MAD_ERROR_LOSTSYNC; ++ stream->sync = 0; ++ return -1; ++ } + + for (s = 0; s < 3; ++s) { + frame->sbsample[ch][3 * gr + s][sb] = +@@ -506,6 +581,12 @@ + index = offset_table[bitalloc_table[offsets[sb]].offset][index - 1]; + + II_samples(&stream->ptr, &qc_table[index], samples); ++ if (mad_bit_nextbyte(&stream->ptr) > stream->next_frame) ++ { ++ stream->error = MAD_ERROR_LOSTSYNC; ++ stream->sync = 0; ++ return -1; ++ } + + for (ch = 0; ch < nch; ++ch) { + for (s = 0; s < 3; ++s) { +Index: libmad-0.15.1b/layer3.c +=================================================================== +--- libmad-0.15.1b.orig/layer3.c 2008-12-23 21:38:07.000000000 +0100 ++++ libmad-0.15.1b/layer3.c 2008-12-23 21:38:12.000000000 +0100 +@@ -2608,6 +2608,12 @@ + next_md_begin = 0; + + md_len = si.main_data_begin + frame_space - next_md_begin; ++ if (md_len + MAD_BUFFER_GUARD > MAD_BUFFER_MDLEN) ++ { ++ stream->error = MAD_ERROR_LOSTSYNC; ++ stream->sync = 0; ++ return -1; ++ } + + frame_used = 0; + diff --git a/talimatname/genel/l/libmad/libmad.patch b/talimatname/genel/l/libmad/libmad.patch new file mode 100644 index 000000000..e8abb16bc --- /dev/null +++ b/talimatname/genel/l/libmad/libmad.patch @@ -0,0 +1,117 @@ +diff -ruN libmad-0.15.1b.orig/Makefile.am libmad-0.15.1b/Makefile.am +--- libmad-0.15.1b.orig/Makefile.am 2004-02-17 02:02:03.000000000 +0000 ++++ libmad-0.15.1b/Makefile.am 2005-08-25 12:08:04.000000000 +0000 +@@ -33,9 +33,12 @@ + minimad_INCLUDES = + minimad_LDADD = libmad.la + +-EXTRA_DIST = mad.h.sed \ ++EXTRA_DIST = mad.h.sed mad.pc.in \ + CHANGES COPYRIGHT CREDITS README TODO VERSION + ++pkgconfigdir = $(libdir)/pkgconfig ++pkgconfig_DATA= mad.pc ++ + exported_headers = version.h fixed.h bit.h timer.h stream.h frame.h \ + synth.h decoder.h + +diff -ruN libmad-0.15.1b.orig/Makefile.in libmad-0.15.1b/Makefile.in +--- libmad-0.15.1b.orig/Makefile.in 2004-02-17 02:33:23.000000000 +0000 ++++ libmad-0.15.1b/Makefile.in 2005-08-25 12:09:34.000000000 +0000 +@@ -14,6 +14,8 @@ + + @SET_MAKE@ + ++pkgconfigdir = $(libdir)/pkgconfig ++pkgconfig_DATA = mad.pc + + SOURCES = $(libmad_la_SOURCES) $(EXTRA_libmad_la_SOURCES) $(minimad_SOURCES) + +@@ -43,7 +45,7 @@ + $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ + $(srcdir)/config.h.in $(srcdir)/libmad.list.in \ + $(top_srcdir)/configure COPYING INSTALL TODO config.guess \ +- config.sub depcomp install-sh ltmain.sh missing mkinstalldirs ++ config.sub depcomp install-sh ltmain.sh missing mkinstalldirs mad.pc.in + subdir = . + ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 + am__aclocal_m4_deps = $(top_srcdir)/configure.ac +@@ -53,7 +55,7 @@ + configure.lineno configure.status.lineno + mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs + CONFIG_HEADER = config.h +-CONFIG_CLEAN_FILES = libmad.list ++CONFIG_CLEAN_FILES = libmad.list mad.pc + am__installdirs = $(DESTDIR)$(libdir) $(DESTDIR)$(includedir) + libLTLIBRARIES_INSTALL = $(INSTALL) + LTLIBRARIES = $(lib_LTLIBRARIES) +@@ -218,7 +220,7 @@ + minimad_SOURCES = minimad.c + minimad_INCLUDES = + minimad_LDADD = libmad.la +-EXTRA_DIST = mad.h.sed \ ++EXTRA_DIST = mad.h.sed mad.pc.in \ + CHANGES COPYRIGHT CREDITS README TODO VERSION + + exported_headers = version.h fixed.h bit.h timer.h stream.h frame.h \ +@@ -298,6 +300,28 @@ + rm -f stamp-h1 + touch $@ + ++mad.pc: $(top_builddir)/config.status mad.pc.in ++ cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status ++ ++install-pkgconfigDATA: $(pkgconfig_DATA) ++ @$(NORMAL_INSTALL) ++ $(mkinstalldirs) $(DESTDIR)$(pkgconfigdir) ++ @list='$(pkgconfig_DATA)'; for p in $$list; do \ ++ if test -f $(srcdir)/$$p; then \ ++ echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkgconfigdir)/$$p"; \ ++ $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkgconfigdir)/$$p; \ ++ else if test -f $$p; then \ ++ echo " $(INSTALL_DATA) $$p $(DESTDIR)$(pkgconfigdir)/$$p"; \ ++ $(INSTALL_DATA) $$p $(DESTDIR)$(pkgconfigdir)/$$p; \ ++ fi; fi; \ ++ done ++ ++uninstall-pkgconfigDATA: ++ @$(NORMAL_UNINSTALL) ++ list='$(pkgconfig_DATA)'; for p in $$list; do \ ++ rm -f $(DESTDIR)$(pkgconfigdir)/$$p; \ ++ done ++ + distclean-hdr: + -rm -f config.h stamp-h1 + libmad.list: $(top_builddir)/config.status $(srcdir)/libmad.list.in +@@ -726,7 +750,7 @@ + + info-am: + +-install-data-am: install-includeHEADERS ++install-data-am: install-includeHEADERS install-pkgconfigDATA + + install-exec-am: install-libLTLIBRARIES + +@@ -757,7 +781,7 @@ + ps-am: + + uninstall-am: uninstall-includeHEADERS uninstall-info-am \ +- uninstall-libLTLIBRARIES ++ uninstall-libLTLIBRARIES install-pkgconfigDATA + + uninstall-info: uninstall-info-recursive + +diff -ruN libmad-0.15.1b.orig/mad.pc.in libmad-0.15.1b/mad.pc.in +--- libmad-0.15.1b.orig/mad.pc.in 1970-01-01 00:00:00.000000000 +0000 ++++ libmad-0.15.1b/mad.pc.in 2005-08-25 12:08:04.000000000 +0000 +@@ -0,0 +1,10 @@ ++prefix=@prefix@ ++exec_prefix=@exec_prefix@ ++libdir=@libdir@ ++includedir=@includedir@ ++ ++Name: MAD ++Tanım: libmad - MPEG audio decoder library ++Version: @VERSION@ ++Libs: -L${libdir} -lmad ++Cflags: diff --git a/talimatname/genel/l/libmad/mad.pc b/talimatname/genel/l/libmad/mad.pc new file mode 100644 index 000000000..87b213d4b --- /dev/null +++ b/talimatname/genel/l/libmad/mad.pc @@ -0,0 +1,11 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: mad +Tanım: MPEG audio decoder +Requires: +Version: 0.15.1b +Libs: -L${libdir} -lmad +Cflags: -I${includedir} diff --git a/talimatname/genel/l/libmad/optimize.diff b/talimatname/genel/l/libmad/optimize.diff new file mode 100644 index 000000000..1418dc927 --- /dev/null +++ b/talimatname/genel/l/libmad/optimize.diff @@ -0,0 +1,77 @@ +Index: libmad-0.15.1b/configure.ac +=================================================================== +--- libmad-0.15.1b.orig/configure.ac 2008-03-07 20:31:23.000000000 +0000 ++++ libmad-0.15.1b/configure.ac 2008-03-07 20:34:26.000000000 +0000 +@@ -124,71 +124,7 @@ + + if test "$GCC" = yes + then +- if test -z "$arch" +- then +- case "$host" in +- i386-*) ;; +- i?86-*) arch="-march=i486" ;; +- arm*-empeg-*) arch="-march=armv4 -mtune=strongarm1100" ;; +- armv4*-*) arch="-march=armv4 -mtune=strongarm" ;; +- powerpc-*) ;; +- mips*-agenda-*) arch="-mcpu=vr4100" ;; +- mips*-luxsonor-*) arch="-mips1 -mcpu=r3000 -Wa,-m4010" ;; +- esac +- fi +- +- case "$optimize" in +- -O|"-O "*) +- optimize="-O" +- optimize="$optimize -fforce-mem" +- optimize="$optimize -fforce-addr" +- : #x optimize="$optimize -finline-functions" +- : #- optimize="$optimize -fstrength-reduce" +- optimize="$optimize -fthread-jumps" +- optimize="$optimize -fcse-follow-jumps" +- optimize="$optimize -fcse-skip-blocks" +- : #x optimize="$optimize -frerun-cse-after-loop" +- : #x optimize="$optimize -frerun-loop-opt" +- : #x optimize="$optimize -fgcse" +- optimize="$optimize -fexpensive-optimizations" +- optimize="$optimize -fregmove" +- : #* optimize="$optimize -fdelayed-branch" +- : #x optimize="$optimize -fschedule-insns" +- optimize="$optimize -fschedule-insns2" +- : #? optimize="$optimize -ffunction-sections" +- : #? optimize="$optimize -fcaller-saves" +- : #> optimize="$optimize -funroll-loops" +- : #> optimize="$optimize -funroll-all-loops" +- : #x optimize="$optimize -fmove-all-movables" +- : #x optimize="$optimize -freduce-all-givs" +- : #? optimize="$optimize -fstrict-aliasing" +- : #* optimize="$optimize -fstructure-noalias" +- +- case "$host" in +- arm*-*) +- optimize="$optimize -fstrength-reduce" +- ;; +- mips*-*) +- optimize="$optimize -fstrength-reduce" +- optimize="$optimize -finline-functions" +- ;; +- i?86-*) +- optimize="$optimize -fstrength-reduce" +- ;; +- powerpc-apple-*) +- # this triggers an internal compiler error with gcc2 +- : #optimize="$optimize -fstrength-reduce" +- +- # this is really only beneficial with gcc3 +- : #optimize="$optimize -finline-functions" +- ;; +- *) +- # this sometimes provokes bugs in gcc 2.95.2 +- : #optimize="$optimize -fstrength-reduce" +- ;; +- esac +- ;; +- esac ++ optimize="-O2" + fi + + case "$host" in diff --git a/talimatname/genel/l/libmad/talimat b/talimatname/genel/l/libmad/talimat new file mode 100644 index 000000000..b86556bad --- /dev/null +++ b/talimatname/genel/l/libmad/talimat @@ -0,0 +1,28 @@ +# Tanım: Yüksek kaliteli bir MPEG ses dekoderi +# URL: http://www.underbit.com/products/mad/ +# Paketçi: milisarge +# Gerekler: + +isim=libmad +surum=0.15.1b +devir=3 + +kaynak=(ftp://ftp.mars.org/pub/mpeg/$isim-$surum.tar.gz + libmad.patch + amd64-64bit.diff + frame_length.diff + optimize.diff) + + +derle() { + cd ${isim}-${surum} + patch -p1 -i "${SRC}/libmad.patch" + patch -p1 -i "${SRC}/amd64-64bit.diff" + patch -p1 -i "${SRC}/frame_length.diff" + patch -p1 -i "${SRC}/optimize.diff" + CFLAGS="$CFLAGS -ftree-vectorize -ftree-vectorizer-verbose=1" + autoconf + ./configure --prefix=/usr + make + make DESTDIR="${PKG}" install +} diff --git a/talimatname/genel/l/libmatekbd/libmatekbd.kur-kos b/talimatname/genel/l/libmatekbd/libmatekbd.kur-kos new file mode 100755 index 000000000..088752e4d --- /dev/null +++ b/talimatname/genel/l/libmatekbd/libmatekbd.kur-kos @@ -0,0 +1 @@ +/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas diff --git a/talimatname/genel/l/libmatekbd/talimat b/talimatname/genel/l/libmatekbd/talimat new file mode 100644 index 000000000..b13c28eb4 --- /dev/null +++ b/talimatname/genel/l/libmatekbd/talimat @@ -0,0 +1,22 @@ +# Tanım: MATE klavye kitaplığı +# URL: http://www.mate-desktop.org/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: intltool gtk3 xorg-libxklavier +# Grup: mate + +isim=libmatekbd +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr + + #https://bugzilla.gnome.org/show_bug.cgi?id=656231 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libmatemixer/talimat b/talimatname/genel/l/libmatemixer/talimat new file mode 100644 index 000000000..84550996c --- /dev/null +++ b/talimatname/genel/l/libmatemixer/talimat @@ -0,0 +1,24 @@ +# Tanım: MATE masaüstü için ses karıştırıcı kitaplığı +# URL: http://www.mate-desktop.org/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: intltool glib pulseaudio +# Grup: mate + +isim=libmatemixer +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var + + #https://bugzilla.gnome.org/show_bug.cgi?id=656231 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libmateweather/libmateweather.kur-kos b/talimatname/genel/l/libmateweather/libmateweather.kur-kos new file mode 100755 index 000000000..538fd0f71 --- /dev/null +++ b/talimatname/genel/l/libmateweather/libmateweather.kur-kos @@ -0,0 +1,3 @@ +/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas + +/usr/bin/gtk-update-icon-cache -f -t /usr/share/icons/mate diff --git a/talimatname/genel/l/libmateweather/talimat b/talimatname/genel/l/libmateweather/talimat new file mode 100644 index 000000000..2d6ae782f --- /dev/null +++ b/talimatname/genel/l/libmateweather/talimat @@ -0,0 +1,26 @@ +# Tanım: Internet'ten hava durumuna erişim sağlar. +# URL: http://www.mate-desktop.org/ +# Paketçi: yasarciv@gmail.com +# Gerekler: intltool gtk3 libsoup +# Grup: mate + +isim=libmateweather +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-python \ + --enable-locations-compression + + #https://bugzilla.gnome.org/show_bug.cgi?id=656231 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libmbim/talimat b/talimatname/genel/l/libmbim/talimat new file mode 100644 index 000000000..941d8a126 --- /dev/null +++ b/talimatname/genel/l/libmbim/talimat @@ -0,0 +1,20 @@ +# Tanım: MBIM modem protokol yardımcı kitaplığı. +# URL: http://www.freedesktop.org/wiki/Software/libmbim/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: glib gobject-introspection libgudev + +isim=libmbim +surum=1.14.0 +devir=1 + +kaynak=( http://www.freedesktop.org/software/$isim/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ + --disable-static + +make +make DESTDIR=$PKG install + +} diff --git a/talimatname/genel/l/libmcrypt/talimat b/talimatname/genel/l/libmcrypt/talimat new file mode 100644 index 000000000..c63d8dad5 --- /dev/null +++ b/talimatname/genel/l/libmcrypt/talimat @@ -0,0 +1,18 @@ +# Tanım: Simetrik şifreleme algoritma geliştirmek için gerekli kütüphane +# URL: http://mcrypt.sourceforge.net/ +# Paketçi: halityilmaz1982 +# Gerekler: + +isim=libmcrypt +surum=2.5.8 +devir=1 + +kaynak=(http://downloads.sourceforge.net/mcrypt/${isim}-${surum}.tar.bz2) + +derle() { + cd ${SRC}/${isim}-${surum} + ./configure --prefix=/usr \ + --mandir=/usr/share/man + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libmediaart/talimat b/talimatname/genel/l/libmediaart/talimat new file mode 100644 index 000000000..3585d4c52 --- /dev/null +++ b/talimatname/genel/l/libmediaart/talimat @@ -0,0 +1,18 @@ +# Tanım: Medya sanat önbelleklerini ayıklama ve yönetme ile görevli kütüphane +# URL: https://github.com/curlybeast/libmediaart +# Paketçi: yasarciv67@gmail.com +# Gerekler: gdk-pixbuf + +isim=libmediaart +surum=1.9.0 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${version:0:3}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --disable-static --enable-gdkpixbuf --disable-qt + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libmediainfo/talimat b/talimatname/genel/l/libmediainfo/talimat new file mode 100644 index 000000000..f4294a804 --- /dev/null +++ b/talimatname/genel/l/libmediainfo/talimat @@ -0,0 +1,34 @@ +# Tanım: Mediainfo için paylaşılan kütüphane. +# URL: http://mediainfo.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: libmms libzen + +isim=libmediainfo +surum=0.7.69 +devir=1 + +kaynak=( http://downloads.sourceforge.net/mediainfo/${isim}_${surum}.tar.bz2) + +derle(){ + cd $SRC/MediaInfoLib/Project/GNU/Library + sh ./autogen + ./configure --prefix=/usr \ + --enable-shared \ + --disable-static \ + --enable-visibility \ + --with-libcurl \ + --with-libmms + make + make DESTDIR=$PKG install + + for i in MediaInfo MediaInfoDLL; do + install -dm755 $PKG/usr/include/$i + install -m644 $SRC/MediaInfoLib/Source/$i/*.h $PKG/usr/include/$i + done + install -dm755 $PKG/usr/lib/pkgconfig + install -m644 $SRC/MediaInfoLib/Project/GNU/Library/libmediainfo.pc \ + $PKG/usr/lib/pkgconfig + sed -i -e 's|Version: |Version: '$surum'|g' \ + $PKG/usr/lib/pkgconfig/libmediainfo.pc +} + diff --git a/talimatname/genel/l/libmicrohttpd/talimat b/talimatname/genel/l/libmicrohttpd/talimat new file mode 100644 index 000000000..65512ec15 --- /dev/null +++ b/talimatname/genel/l/libmicrohttpd/talimat @@ -0,0 +1,21 @@ +# Tanım: gömülü HTTP sunucular oluşturmaya yarar +# URL: http://www.gnu.org/software/libmicrohttpd/ +# Paketçi: milisarge +# Gerekler: libgcrypt gnutls + +isim=libmicrohttpd +surum=0.9.54 +devir=1 +kaynak=(http://ftp.gnu.org/gnu/$isim/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + CONFIG_SHELL=/bin/bash \ + ./configure \ + --prefix=/usr \ + --disable-static + make + make DESTDIR=$PKG install + + rm -rf $PKG/usr/share/info +} diff --git a/talimatname/genel/l/libmikmod/talimat b/talimatname/genel/l/libmikmod/talimat new file mode 100644 index 000000000..8cbe5db0c --- /dev/null +++ b/talimatname/genel/l/libmikmod/talimat @@ -0,0 +1,22 @@ +# Tanım: Taşınabilir bir ses kütüphanesi +# URL: http://mikmod.raphnet.net/ +# Paketçi: milisarge +# Gerekler: xorg-libxtst pulseaudio + +isim=libmikmod +surum=3.3.11 +devir=1 + +kaynak=( http://downloads.sourceforge.net/mikmod/$isim-$surum.tar.gz) + + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --prefix=/usr \ + --disable-static + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/info/dir +} diff --git a/talimatname/genel/l/libmms/talimat b/talimatname/genel/l/libmms/talimat new file mode 100644 index 000000000..3e3eaead7 --- /dev/null +++ b/talimatname/genel/l/libmms/talimat @@ -0,0 +1,22 @@ +# Tanım: MMS akış protokol kitaplığı +# URL: http://sourceforge.net/projects/libmms/ +# Paketçi: milisarge +# Gerekler: + +isim=libmms +surum=0.6.4 +devir=1 + +kaynak=( +http://download.sourceforge.net/libmms/$isim-$surum.tar.gz) + +derle(){ + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} + + + +# NuTyX Pkgfile (http://nutyx.org) diff --git a/talimatname/genel/l/libmng/talimat b/talimatname/genel/l/libmng/talimat new file mode 100644 index 000000000..48728d75f --- /dev/null +++ b/talimatname/genel/l/libmng/talimat @@ -0,0 +1,24 @@ +# Tanım: Çoklu-Görüntü Ağ Grafikleri okumak, görüntülemek, yazmak ve incelemek için referans kitaplığı. +# URL: http://sourceforge.net/projects/libmng/ +# Paketçi: milisarge +# Gerekler: libjpeg-turbo lcms + +isim=libmng +surum=2.0.3 +devir=1 + +kaynak=( http://downloads.sourceforge.net/$isim/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr --disable-static +make +mkdir -p $PKG/usr/{lib,include,share/man/man{3,5}} +make prefix=$PKG/usr install +mkdir -p $PKG/usr/share/man/man{3,5} +install -v -m644 doc/man/*.3 $PKG/usr/share/man/man3 +install -v -m644 doc/man/*.5 $PKG/usr/share/man/man5 +install -v -m755 -d $PKG/usr/share/doc/libmng-$surum +install -v -m644 doc/*.txt \ +$PKG/usr/share/doc/libmng-$surum +} diff --git a/talimatname/genel/l/libmnl/talimat b/talimatname/genel/l/libmnl/talimat new file mode 100644 index 000000000..316402689 --- /dev/null +++ b/talimatname/genel/l/libmnl/talimat @@ -0,0 +1,18 @@ +# Tanım: Netlink geliştiricilerine yönelik minimalist kullanıcı-alanı kütüphanesi +# URL: http://www.netfilter.org/projects/libmnl/ +# Paketçi: milisarge +# Gerekler: + +isim=libmnl +surum=1.0.3 +devir=1 + +kaynak=( +http://www.netfilter.org/projects/$isim/files/$isim-$surum.tar.bz2) + +derle(){ + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libmodplug/talimat b/talimatname/genel/l/libmodplug/talimat new file mode 100644 index 000000000..ae0d163ad --- /dev/null +++ b/talimatname/genel/l/libmodplug/talimat @@ -0,0 +1,16 @@ +# Tanım: Library for playing module music. +# URL: http://modplug-xmms.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: + +isim=libmodplug +surum=0.8.8.5 +devir=1 +kaynak=(http://downloads.sourceforge.net/project/modplug-xmms/$isim/$surum/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libmp4v2/talimat b/talimatname/genel/l/libmp4v2/talimat new file mode 100644 index 000000000..0c3787022 --- /dev/null +++ b/talimatname/genel/l/libmp4v2/talimat @@ -0,0 +1,17 @@ +# Tanım: MPEG-4 kitaplığı +# URL: http://code.google.com/p/mp4v2 +# Paketçi: milisarge +# Gerekler: + +isim=libmp4v2 +surum=2.0.0 +devir=1 + +kaynak=(https://sources.archlinux.org/other/packages/$isim/mp4v2-${surum}.tar.bz2) + +derle() { + cd mp4v2-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libmpcdec/talimat b/talimatname/genel/l/libmpcdec/talimat new file mode 100644 index 000000000..ce9823fba --- /dev/null +++ b/talimatname/genel/l/libmpcdec/talimat @@ -0,0 +1,22 @@ +# Tanım: Musepack kod çözme kütüphanesi +# URL: http://www.musepack.net/index.php?pg=home +# Paketçi: milisarge +# Gerekler: nasm + +isim=libmpcdec +surum=1.2.6 +devir=1 + +kaynak=( http://files.musepack.net/source/$isim-$surum.tar.bz2) + + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info + make + make DESTDIR=$PKG install +} + + diff --git a/talimatname/genel/l/libmpeg2/talimat b/talimatname/genel/l/libmpeg2/talimat new file mode 100644 index 000000000..af2d5a897 --- /dev/null +++ b/talimatname/genel/l/libmpeg2/talimat @@ -0,0 +1,20 @@ +# Tanım: MPEG-1 ve MPEG-2 video akışlarını çözmek için kullanılan kitaplık +# URL: http://mpg123.de/ +# Paketçi: milisarge +# Gerekler: + +isim=libmpeg2 +surum=0.5.1 +devir=1 + +kaynak=( http://$isim.sourceforge.net/files/$isim-$surum.tar.gz) +derle() { +cd $isim-$surum +sed -i 's/static const/static/' libmpeg2/idct_mmx.c +./configure --prefix=/usr --enable-shared +make +make DESTDIR=$PKG install +install -v -m755 -d $PKG/usr/share/doc/mpeg2dec-$surum +install -v -m644 README doc/libmpeg2.txt \ +$PKG/usr/share/doc/mpeg2dec-$surum +} diff --git a/talimatname/genel/l/libmspack/talimat b/talimatname/genel/l/libmspack/talimat new file mode 100644 index 000000000..d065db897 --- /dev/null +++ b/talimatname/genel/l/libmspack/talimat @@ -0,0 +1,18 @@ +# Tanım: Microsoft sıkıştırma kütüphaneleri +# URL: http://www.cabextract.org.uk/libmspack/ +# Paketçi: milisarge +# Gerekler: + +isim=libmspack +surum=1.5 +devir=1 +kaynak=(https://github.com/kyz/libmspack/archive/v$surum.tar.gz) + +derle() { + cd $isim-$surum/$isim/trunk + autoreconf -vfi + ./configure --prefix=/usr --disable-static + make + make check + make DESTDIR="$PKG/" install +} diff --git a/talimatname/genel/l/libmspub/talimat b/talimatname/genel/l/libmspub/talimat new file mode 100644 index 000000000..0cb7c9bfa --- /dev/null +++ b/talimatname/genel/l/libmspub/talimat @@ -0,0 +1,17 @@ +# Tanım: Microsoft Publisher dosya biçimi ayrıştırıcı kitaplığı (en yeni anlık görüntü) +# URL: https://wiki.documentfoundation.org/DLP/Libraries/libmspub +# Paketçi: Cihan Alkan +# Gerekler: doxygen libwpd boost librevenge icu + +isim=libmspub +surum=0.1.2 +devir=1 + +kaynak=(https://dev-www.libreoffice.org/src/$isim/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --with-docs + make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libmtp/talimat b/talimatname/genel/l/libmtp/talimat new file mode 100644 index 000000000..c6d16961b --- /dev/null +++ b/talimatname/genel/l/libmtp/talimat @@ -0,0 +1,19 @@ +# Tanım: Medya Aktarma Protokolünün kütüphane uygulaması. +# URL: http://libmtp.sourceforge.net +# Paketçi: milisarge +# Gerekler: libusb libgcrypt + +isim=libmtp +surum=1.1.9 +devir=1 + +kaynak=(http://downloads.sourceforge.net/$isim/$isim-$surum.tar.gz) + +derle(){ + cd $isim-$surum + ./configure --prefix=/usr \ + --disable-static + make + make -k check + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libmusicbrainz2/talimat b/talimatname/genel/l/libmusicbrainz2/talimat new file mode 100644 index 000000000..43f3e8fcd --- /dev/null +++ b/talimatname/genel/l/libmusicbrainz2/talimat @@ -0,0 +1,25 @@ +# Tanım: MusicBrainz Sunucusuna Erişimi Sağlayan Kitaplık +# URL: http://musicbrainz.org/doc/libmusicbrainz +# Paketçi: milisarge +# Gerekler: python + +isim=libmusicbrainz2 +surum=2.1.5 +devir=1 + +kaynak=( ftp://ftp.musicbrainz.org/pub/musicbrainz/historical/libmusicbrainz-$surum.tar.gz + http://www.linuxfromscratch.org/patches/blfs/svn/libmusicbrainz-$surum-missing-includes-1.patch ) + +derle() { +cd libmusicbrainz-$surum +patch -Np1 -i ../libmusicbrainz-$surum-missing-includes-1.patch +./configure --prefix=/usr --disable-static +make +cd python +python setup.py build +cd .. +make DESTDIR=$PKG install +mkdir -p $PKG/usr/share/doc/libmusicbrainz-$surum +install -v -m644 -D docs/mb_howto.txt \ +$PKG/usr/share/doc/libmusicbrainz-$surum/mb_howto.txt +} diff --git a/talimatname/genel/l/libmusicbrainz5/talimat b/talimatname/genel/l/libmusicbrainz5/talimat new file mode 100644 index 000000000..c782981b6 --- /dev/null +++ b/talimatname/genel/l/libmusicbrainz5/talimat @@ -0,0 +1,26 @@ +# Tanım: MusicBrainz Sunucusuna Erişimi Sağlayan Kitaplık +# URL: http://musicbrainz.org/doc/libmusicbrainz +# Paketçi: milisarge +# Gerekler: cmake expat neon doxygen + +isim=libmusicbrainz5 +surum=5.1.0 +devir=1 + +kaynak=( https://github.com/metabrainz/libmusicbrainz/releases/download/release-$surum/libmusicbrainz-$surum.tar.gz) + +derle() { +cd libmusicbrainz-$surum +mkdir build +cd build +cmake .. \ +-DCMAKE_INSTALL_PREFIX:PATH=/usr \ +-DBUILD_SHARED_LIBS:BOOL=ON \ +-DBUILD_STATIC_LIBS:BOOL=OFF +make +doxygen ../Doxyfile +make DESTDIR=$PKG install +# Documentation +mkdir -p $PKG/usr/share/doc/$isim-$surum +cp -vr docs/ $PKG/usr/share/doc/$isim-$surum +} diff --git a/talimatname/genel/l/libmwaw/talimat b/talimatname/genel/l/libmwaw/talimat new file mode 100644 index 000000000..e7df7a812 --- /dev/null +++ b/talimatname/genel/l/libmwaw/talimat @@ -0,0 +1,17 @@ +# Tanım: Bazı eski mac metin belgeleri için kütüphaneyi içe aktarın. +# URL: https://sourceforge.net/projects/libmwaw/ +# Paketçi: Cihan Alkan +# Gerekler: doxygen boost librevenge + +isim=libmwaw +surum=0.3.12 +devir=1 + +kaynak=(https://sourceforge.net/projects/$isim/files/$isim/$isim-$surum/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libmypaint/gegl-0.4.patch b/talimatname/genel/l/libmypaint/gegl-0.4.patch new file mode 100644 index 000000000..f78b90338 --- /dev/null +++ b/talimatname/genel/l/libmypaint/gegl-0.4.patch @@ -0,0 +1,53 @@ +diff -u -r libmypaint-1.3.0/configure.ac libmypaint-1.3.0-gegl/configure.ac +--- libmypaint-1.3.0/configure.ac 2018-05-13 16:49:44.997077642 +0200 ++++ libmypaint-1.3.0-gegl/configure.ac 2018-05-13 16:49:36.223744476 +0200 +@@ -45,7 +45,7 @@ + + ## Dependencies ## + +-m4_define([gegl_required_version], [0.3]) ++m4_define([gegl_required_version], [0.4]) + m4_define([introspection_required_version], [1.32.0]) + + AC_INIT([libmypaint], +@@ -336,7 +336,7 @@ + ) + + if eval "test x$enable_gegl = xyes"; then +- PKG_CHECK_MODULES(GEGL, gegl-0.3 >= gegl_required_version) ++ PKG_CHECK_MODULES(GEGL, gegl-0.4 >= gegl_required_version) + fi + AM_CONDITIONAL(ENABLE_GEGL, test "x$enable_gegl" = "xyes") + +diff -u -r libmypaint-1.3.0/gegl/libmypaint-gegl.pc.in libmypaint-1.3.0-gegl/gegl/libmypaint-gegl.pc.in +--- libmypaint-1.3.0/gegl/libmypaint-gegl.pc.in 2016-12-01 23:47:14.000000000 +0100 ++++ libmypaint-1.3.0-gegl/gegl/libmypaint-gegl.pc.in 2018-05-13 16:50:16.620410376 +0200 +@@ -6,6 +6,6 @@ + Name: libmypaint + Description: MyPaint brush engine library, with GEGL integration. + Version: @LIBMYPAINT_VERSION@ +-Requires: gegl-0.3 libmypaint ++Requires: gegl-0.4 libmypaint + Cflags: -I${includedir}/libmypaint-gegl + Libs: -L${libdir} -lmypaint-gegl +diff -u -r libmypaint-1.3.0/gegl/Makefile.am libmypaint-1.3.0-gegl/gegl/Makefile.am +--- libmypaint-1.3.0/gegl/Makefile.am 2018-05-13 16:48:53.437078622 +0200 ++++ libmypaint-1.3.0-gegl/gegl/Makefile.am 2018-05-13 16:49:58.523744053 +0200 +@@ -11,7 +11,7 @@ + INTROSPECTION_GIRS = + INTROSPECTION_SCANNER_ARGS = \ + --warn-all \ +- --pkg="gegl-0.3" \ ++ --pkg="gegl-0.4" \ + --pkg="glib-2.0" \ + --namespace="MyPaintGegl" \ + --nsversion="$(LIBMYPAINT_MAJOR_VERSION).$(LIBMYPAINT_MINOR_VERSION)" \ +@@ -38,7 +38,7 @@ + mypaint-gegl-surface.c + + MyPaintGegl-@LIBMYPAINT_MAJOR_VERSION@.@LIBMYPAINT_MINOR_VERSION@.gir: libmypaint-gegl-@LIBMYPAINT_API_PLATFORM_VERSION@.la Makefile +-MyPaintGegl_@LIBMYPAINT_MAJOR_VERSION@_@LIBMYPAINT_MINOR_VERSION@_gir_INCLUDES = GObject-2.0 MyPaint-$(LIBMYPAINT_MAJOR_VERSION).$(LIBMYPAINT_MINOR_VERSION) Gegl-0.3 ++MyPaintGegl_@LIBMYPAINT_MAJOR_VERSION@_@LIBMYPAINT_MINOR_VERSION@_gir_INCLUDES = GObject-2.0 MyPaint-$(LIBMYPAINT_MAJOR_VERSION).$(LIBMYPAINT_MINOR_VERSION) Gegl-0.4 + MyPaintGegl_@LIBMYPAINT_MAJOR_VERSION@_@LIBMYPAINT_MINOR_VERSION@_gir_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -I. -I.. + MyPaintGegl_@LIBMYPAINT_MAJOR_VERSION@_@LIBMYPAINT_MINOR_VERSION@_gir_LIBS = libmypaint-gegl-@LIBMYPAINT_API_PLATFORM_VERSION@.la ../libmypaint-@LIBMYPAINT_API_PLATFORM_VERSION@.la + MyPaintGegl_@LIBMYPAINT_MAJOR_VERSION@_@LIBMYPAINT_MINOR_VERSION@_gir_FILES = $(introspection_sources) diff --git a/talimatname/genel/l/libmypaint/talimat b/talimatname/genel/l/libmypaint/talimat new file mode 100644 index 000000000..6bbbe306e --- /dev/null +++ b/talimatname/genel/l/libmypaint/talimat @@ -0,0 +1,24 @@ +# Tanım: hızlı ve kolay boyama uygulaması +# URL: http://mypaint.intilinux.com/ +# Paketçi: milisarge +# Gerekler: gobject-introspection json-c gegl intltool python +# Grup: kütüphane + +isim=libmypaint +surum=1.3.0 +devir=2 + +kaynak=(https://github.com/mypaint/libmypaint/archive/v$surum.tar.gz::$isim-$surum.tar.gz + versioning.patch + gegl-0.4.patch) + +derle() +{ + cd ${isim}-$surum + patch -uNp2 < ../versioning.patch + patch -Np1 < ../gegl-0.4.patch + ./autogen.sh + ./configure --prefix=/usr --enable-gegl + make + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/l/libmypaint/versioning.patch b/talimatname/genel/l/libmypaint/versioning.patch new file mode 100644 index 000000000..56580d49b --- /dev/null +++ b/talimatname/genel/l/libmypaint/versioning.patch @@ -0,0 +1,268 @@ +Combines the following two patches adjusted to work with libmypaint 1.3 +https://github.com/mypaint/libmypaint/commit/0b31421ffbfb5f4a1c68ceeafa292c6ff08e949c +https://github.com/mypaint/libmypaint/commit/08c4236d4c0e871bf6c29f2e42cafd55d1f361ce +This will allow side-by-side installations of different libmypaint builds +at the level of the minor version number. +diff -Naur ./libmypaint-1.3.0.orig/configure.ac ./libmypaint-1.3.0/configure.ac +--- ./libmypaint-1.3.0.orig/configure.ac 2016-12-01 17:47:14.000000000 -0500 ++++ ./libmypaint-1.3.0/configure.ac 2017-07-24 10:54:57.297918118 -0400 +@@ -1,27 +1,50 @@ + # AC_OPENMP requires autoconf >= 2.62. + AC_PREREQ(2.62) + ++ ++## Canonical version number components ## ++ + # API version: see https://github.com/mypaint/libmypaint/wiki/Versioning ++# See http://semver.org/ for what this means. ++ + m4_define([libmypaint_api_major], [1]) + m4_define([libmypaint_api_minor], [3]) + m4_define([libmypaint_api_micro], [0]) + m4_define([libmypaint_api_prerelease], []) # may be blank +-# The platform version is "major.minor" only. +-# The full version is "major.minor.micro[-prerelease]". + +-# ABI version see: https://autotools.io/libtool/version.html ++# ABI version. Changes independently of API version. ++# See: https://autotools.io/libtool/version.html + # https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html ++# The rules are fiddly, and are summarized here. ++ + m4_define([libmypaint_abi_revision], [0]) # increment on every release + m4_define([libmypaint_abi_current], [0]) # inc when add/remove/change interfaces + m4_define([libmypaint_abi_age], [0]) # inc only if changes backward compat + +-# Derivative version macros ++ ++## Derivative version macros ## ++ ++# The full version is "major.minor.micro[-prerelease]". ++ + m4_define([libmypaint_version], + [libmypaint_api_major.libmypaint_api_minor.libmypaint_api_micro]) + m4_define([libmypaint_version_full], + [libmypaint_api_major().libmypaint_api_minor().libmypaint_api_micro()m4_bpatsubst(libmypaint_api_prerelease(), [^\(.\)], [-\1])]) + +-# Dependencies. ++# The API "platform" or "intercompatibility" version. ++# ++# This one is used for library name prefixes, for introspection ++# namespace versions, for gettext domains, and basically anything that ++# needs to change when backwards or forwards API compatibility changes. ++# Another way of thinking about it: it allows meaningful side by side ++# installations of libmypaint. ++ ++m4_define([libmypaint_api_platform_version], ++ [libmypaint_api_major.libmypaint_api_minor]) ++ ++ ++## Dependencies ## ++ + m4_define([gegl_required_version], [0.3]) + m4_define([introspection_required_version], [1.32.0]) + +@@ -44,7 +67,8 @@ + LIBMYPAINT_MICRO_VERSION=libmypaint_api_micro + LIBMYPAINT_VERSION=libmypaint_version + LIBMYPAINT_VERSION_FULL=libmypaint_version_full +-LIBMYPAINT_API_PLATFORM_VERSION=libmypaint_api_major.libmypaint_api_minor ++LIBMYPAINT_API_PLATFORM_VERSION=libmypaint_api_platform_version ++LIBMYPAINT_API_PLATFORM_VERSION_UL=m4_bpatsubst(libmypaint_api_platform_version(), [[^A-Za-z0-9]], [_]) + LIBMYPAINT_ABI_VERSION_INFO=libmypaint_abi_current:libmypaint_abi_revision:libmypaint_abi_age + + AC_SUBST(LIBMYPAINT_MAJOR_VERSION) +@@ -54,6 +78,7 @@ + AC_SUBST(LIBMYPAINT_VERSION) + AC_SUBST(LIBMYPAINT_VERSION_FULL) + AC_SUBST(LIBMYPAINT_API_PLATFORM_VERSION) ++AC_SUBST(LIBMYPAINT_API_PLATFORM_VERSION_UL) + AC_SUBST(LIBMYPAINT_ABI_VERSION_INFO) + + AC_PROG_CC +@@ -72,9 +97,8 @@ + # Check for pkg-config + PKG_PROG_PKG_CONFIG(0.16) + +-########################### +-# Check host architecture +-########################### ++ ++## Check host and platform ## + + AC_CANONICAL_HOST + +@@ -273,7 +297,7 @@ + + if test "x$enable_i18n" != "xno"; then + enable_i18n="yes" +- GETTEXT_PACKAGE=libmypaint ++ GETTEXT_PACKAGE=libmypaint-libmypaint_api_platform_version + AC_SUBST(GETTEXT_PACKAGE) + AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", + [The prefix for our gettext translation domains.]) +@@ -321,9 +345,9 @@ + + AC_CONFIG_FILES([ + doc/Makefile +- gegl/libmypaint-gegl.pc:gegl/libmypaint-gegl.pc.in ++ gegl/libmypaint-gegl-]libmypaint_api_platform_version()[.pc:gegl/libmypaint-gegl.pc.in + gegl/Makefile +- libmypaint.pc:libmypaint.pc.in ++ libmypaint-]libmypaint_api_platform_version()[.pc:libmypaint.pc.in + m4macros/Makefile + Makefile + po/Makefile.in +diff -Naur ./libmypaint-1.3.0.orig/gegl/Makefile.am ./libmypaint-1.3.0/gegl/Makefile.am +--- ./libmypaint-1.3.0.orig/gegl/Makefile.am 2016-12-01 17:47:14.000000000 -0500 ++++ ./libmypaint-1.3.0/gegl/Makefile.am 2017-07-24 10:54:57.297918118 -0400 +@@ -37,10 +37,10 @@ + ../glib/mypaint-gegl-glib.c \ + mypaint-gegl-surface.c + +-MyPaintGegl-@LIBMYPAINT_MAJOR_VERSION@.@LIBMYPAINT_MINOR_VERSION@.gir: libmypaint-gegl.la Makefile ++MyPaintGegl-@LIBMYPAINT_MAJOR_VERSION@.@LIBMYPAINT_MINOR_VERSION@.gir: libmypaint-gegl-@LIBMYPAINT_API_PLATFORM_VERSION@.la Makefile + MyPaintGegl_@LIBMYPAINT_MAJOR_VERSION@_@LIBMYPAINT_MINOR_VERSION@_gir_INCLUDES = GObject-2.0 MyPaint-$(LIBMYPAINT_MAJOR_VERSION).$(LIBMYPAINT_MINOR_VERSION) Gegl-0.3 + MyPaintGegl_@LIBMYPAINT_MAJOR_VERSION@_@LIBMYPAINT_MINOR_VERSION@_gir_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -I. -I.. +-MyPaintGegl_@LIBMYPAINT_MAJOR_VERSION@_@LIBMYPAINT_MINOR_VERSION@_gir_LIBS = libmypaint-gegl.la ../libmypaint.la ++MyPaintGegl_@LIBMYPAINT_MAJOR_VERSION@_@LIBMYPAINT_MINOR_VERSION@_gir_LIBS = libmypaint-gegl-@LIBMYPAINT_API_PLATFORM_VERSION@.la ../libmypaint-@LIBMYPAINT_API_PLATFORM_VERSION@.la + MyPaintGegl_@LIBMYPAINT_MAJOR_VERSION@_@LIBMYPAINT_MINOR_VERSION@_gir_FILES = $(introspection_sources) + INTROSPECTION_GIRS += MyPaintGegl-@LIBMYPAINT_MAJOR_VERSION@.@LIBMYPAINT_MINOR_VERSION@.gir + +@@ -56,10 +56,10 @@ + + ## pkg-config file ## + pkgconfigdir = $(libdir)/pkgconfig +-pkgconfig_DATA = libmypaint-gegl.pc ++pkgconfig_DATA = libmypaint-gegl-@LIBMYPAINT_API_PLATFORM_VERSION@.pc + + ## libmypaint-gegl ## +-lib_LTLIBRARIES = libmypaint-gegl.la ++lib_LTLIBRARIES = libmypaint-gegl-@LIBMYPAINT_API_PLATFORM_VERSION@.la + + libmypaint_gegl_publicdir = $(includedir)/libmypaint-gegl + +@@ -70,9 +70,9 @@ + ../glib/mypaint-gegl-glib.c \ + mypaint-gegl-surface.c + +-libmypaint_gegl_la_SOURCES = $(libmypaint_gegl_public_HEADERS) $(LIBMYPAINT_GEGL_SOURCES) ++libmypaint_gegl_@LIBMYPAINT_API_PLATFORM_VERSION@_la_SOURCES = $(libmypaint_gegl_public_HEADERS) $(LIBMYPAINT_GEGL_SOURCES) + +-libmypaint_gegl_la_CFLAGS = $(JSON_CFLAGS) $(GLIB_CFLAGS) $(GEGL_CFLAGS) +-libmypaint_gegl_la_LIBADD = $(top_builddir)/libmypaint.la $(GEGL_LIBS) ++libmypaint_gegl_@LIBMYPAINT_API_PLATFORM_VERSION@_la_CFLAGS = $(JSON_CFLAGS) $(GLIB_CFLAGS) $(GEGL_CFLAGS) ++libmypaint_gegl_@LIBMYPAINT_API_PLATFORM_VERSION@_la_LIBADD = $(top_builddir)/libmypaint-@LIBMYPAINT_API_PLATFORM_VERSION@.la $(GEGL_LIBS) + + endif # enable_gegl +diff -Naur ./libmypaint-1.3.0.orig/.gitignore ./libmypaint-1.3.0/.gitignore +--- ./libmypaint-1.3.0.orig/.gitignore 2016-12-01 17:47:14.000000000 -0500 ++++ ./libmypaint-1.3.0/.gitignore 2017-07-24 10:54:57.297918118 -0400 +@@ -39,8 +39,8 @@ + .libs/ + *.lo + +-libmypaint.la +-gegl/libmypaint-gegl.la ++libmypaint-*.la ++gegl/libmypaint-gegl-*.la + + po/*.gmo + po/Makefile* +diff -Naur ./libmypaint-1.3.0.orig/libmypaint.pc.in ./libmypaint-1.3.0/libmypaint.pc.in +--- ./libmypaint-1.3.0.orig/libmypaint.pc.in 2016-12-01 17:47:14.000000000 -0500 ++++ ./libmypaint-1.3.0/libmypaint.pc.in 2017-07-24 10:54:57.297918118 -0400 +@@ -8,5 +8,5 @@ + URL: @PACKAGE_URL@ + Version: @LIBMYPAINT_VERSION@ + Requires: @PKG_CONFIG_REQUIRES@ +-Cflags: -I${includedir}/libmypaint +-Libs: -L${libdir} -lmypaint @OPENMP_CFLAGS@ ++Cflags: -I${includedir}/libmypaint-@LIBMYPAINT_API_PLATFORM_VERSION@ ++Libs: -L${libdir} -lmypaint-@LIBMYPAINT_API_PLATFORM_VERSION@ @OPENMP_CFLAGS@ +diff -Naur ./libmypaint-1.3.0.orig/Makefile.am ./libmypaint-1.3.0/Makefile.am +--- ./libmypaint-1.3.0.orig/Makefile.am 2016-12-01 17:47:14.000000000 -0500 ++++ ./libmypaint-1.3.0/Makefile.am 2017-07-24 10:54:57.297918118 -0400 +@@ -13,7 +13,7 @@ + --warn-all \ + --pkg="glib-2.0" \ + --namespace="MyPaint" \ +- --nsversion="$(LIBMYPAINT_MAJOR_VERSION).$(LIBMYPAINT_MINOR_VERSION)" \ ++ --nsversion="$(LIBMYPAINT_API_PLATFORM_VERSION)" \ + --identifier-prefix="MyPaint" \ + --symbol-prefix="mypaint_" \ + --add-include-path="$(srcdir)" \ +@@ -54,12 +54,13 @@ + mypaint-tiled-surface.c \ + tilemap.c + +-MyPaint-@LIBMYPAINT_MAJOR_VERSION@.@LIBMYPAINT_MINOR_VERSION@.gir: libmypaint.la Makefile +-MyPaint_@LIBMYPAINT_MAJOR_VERSION@_@LIBMYPAINT_MINOR_VERSION@_gir_INCLUDES = GObject-2.0 GLib-2.0 +-MyPaint_@LIBMYPAINT_MAJOR_VERSION@_@LIBMYPAINT_MINOR_VERSION@_gir_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) +-MyPaint_@LIBMYPAINT_MAJOR_VERSION@_@LIBMYPAINT_MINOR_VERSION@_gir_LIBS = libmypaint.la +-MyPaint_@LIBMYPAINT_MAJOR_VERSION@_@LIBMYPAINT_MINOR_VERSION@_gir_FILES = $(introspection_sources) +-INTROSPECTION_GIRS += MyPaint-@LIBMYPAINT_MAJOR_VERSION@.@LIBMYPAINT_MINOR_VERSION@.gir ++# CAUTION: some of these need to use the underscored API version string. ++MyPaint-@LIBMYPAINT_API_PLATFORM_VERSION@.gir: libmypaint-@LIBMYPAINT_API_PLATFORM_VERSION@.la Makefile ++MyPaint_@LIBMYPAINT_API_PLATFORM_VERSION_UL@_gir_INCLUDES = GObject-2.0 GLib-2.0 ++MyPaint_@LIBMYPAINT_API_PLATFORM_VERSION_UL@_gir_CFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) ++MyPaint_@LIBMYPAINT_API_PLATFORM_VERSION_UL@_gir_LIBS = libmypaint-@LIBMYPAINT_API_PLATFORM_VERSION@.la ++MyPaint_@LIBMYPAINT_API_PLATFORM_VERSION_UL@_gir_FILES = $(introspection_sources) ++INTROSPECTION_GIRS += MyPaint-@LIBMYPAINT_API_PLATFORM_VERSION@.gir + + girdir = $(datadir)/gir-1.0 + gir_DATA = $(INTROSPECTION_GIRS) +@@ -75,22 +76,23 @@ + + pkgconfigdir = $(libdir)/pkgconfig + +-pkgconfig_DATA = libmypaint.pc ++pkgconfig_DATA = libmypaint-@LIBMYPAINT_API_PLATFORM_VERSION@.pc + +-## libmypaint ## ++## libmypaint-@LIBMYPAINT_API_PLATFORM_VERSION@ ## + + AM_CFLAGS = $(JSON_CFLAGS) $(GLIB_CFLAGS) + + LIBS = $(JSON_LIBS) $(GLIB_LIBS) @LIBS@ + +-lib_LTLIBRARIES = libmypaint.la ++lib_LTLIBRARIES = libmypaint-@LIBMYPAINT_API_PLATFORM_VERSION@.la + +-libmypaint_la_LDFLAGS = \ +- -release @LIBMYPAINT_API_PLATFORM_VERSION@ \ ++libmypaint_@LIBMYPAINT_API_PLATFORM_VERSION@_la_LDFLAGS = \ + -version-info @LIBMYPAINT_ABI_VERSION_INFO@ \ + -no-undefined + +-libmypaint_publicdir = $(includedir)/libmypaint ++# -release @LIBMYPAINT_API_PLATFORM_VERSION@ ++ ++libmypaint_publicdir = $(includedir)/libmypaint-$(LIBMYPAINT_API_PLATFORM_VERSION) + + nobase_libmypaint_public_HEADERS = \ + mypaint-config.h \ +@@ -117,9 +119,9 @@ + tilemap.c \ + utils.c + +-libmypaint_la_SOURCES = $(libmypaint_public_HEADERS) $(LIBMYPAINT_SOURCES) ++libmypaint_@LIBMYPAINT_API_PLATFORM_VERSION@_la_SOURCES = $(libmypaint_public_HEADERS) $(LIBMYPAINT_SOURCES) + +-DISTCLEANFILES = MyPaint-@LIBMYPAINT_MAJOR_VERSION@.@LIBMYPAINT_MINOR_VERSION@.gir.files ++DISTCLEANFILES = MyPaint-@LIBMYPAINT_API_PLATFORM_VERSION@.gir.files + + EXTRA_DIST = \ + brushsettings.json \ +diff -Naur ./libmypaint-1.3.0.orig/tests/Makefile.am ./libmypaint-1.3.0/tests/Makefile.am +--- ./libmypaint-1.3.0.orig/tests/Makefile.am 2016-12-01 17:47:14.000000000 -0500 ++++ ./libmypaint-1.3.0/tests/Makefile.am 2017-07-24 10:54:57.297918118 -0400 +@@ -41,7 +41,7 @@ + LDADD = \ + $(DEPS) \ + libmypaint-tests.a \ +- $(top_builddir)/libmypaint.la ++ $(top_builddir)/libmypaint-@LIBMYPAINT_API_PLATFORM_VERSION@.la + + EXTRA_DIST = \ + brushes/bulk.myb \ diff --git a/talimatname/genel/l/libnatpmp/talimat b/talimatname/genel/l/libnatpmp/talimat new file mode 100644 index 000000000..d874062cd --- /dev/null +++ b/talimatname/genel/l/libnatpmp/talimat @@ -0,0 +1,19 @@ +# Tanım: NAT-PMP protokolunun uygulanması +# URL: http://miniupnp.free.fr/libnatpmp.html +# Paketçi: milisarge +# Gerekler: + +isim=libnatpmp +surum=20150609 +devir=1 +kaynak=(http://miniupnp.tuxfamily.org/files/libnatpmp-20150609.tar.gz +) + +derle() { +cd $isim-$surum + sed -e 's/CFLAGS = /CFLAGS += /' -i Makefile + make + make INSTALLPREFIX="$PKG/usr" INSTALLDIRINC="$PKG/usr/include" install + install -Dm644 LICENSE "$PKG/usr/share/licenses/$isim/LICENSE" + install -Dm644 natpmpc.1 "$PKG/usr/share/man/man1/natpmpc.1" +} diff --git a/talimatname/genel/l/libndp/talimat b/talimatname/genel/l/libndp/talimat new file mode 100644 index 000000000..05cac4d08 --- /dev/null +++ b/talimatname/genel/l/libndp/talimat @@ -0,0 +1,19 @@ +# Tanım: Libndp paketi, IPv6 Komşu Bulma Protokolü için bir sarıcı sağlar. +# URL: http://libndp.org +# Paketçi: milisarge +# Gerekler: + +isim=libndp +surum=1.5 +devir=1 + +kaynak=(http://libndp.org/files/$isim-$surum.tar.gz) +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--sysconfdir=/etc \ +--localstatedir=/var \ +--disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libnet/talimat b/talimatname/genel/l/libnet/talimat new file mode 100644 index 000000000..088849871 --- /dev/null +++ b/talimatname/genel/l/libnet/talimat @@ -0,0 +1,20 @@ +# Tanım: Ağ paketleri inşa etmek ve enjekte etmek için kütüphane. +# URL: http://libnet-dev.sf.net +# Paketçi: milisarge +# Gerekler: + +isim=libnet +surum=1.1.6 +devir=2 +kaynak=(http://downloads.sourceforge.net/project/libnet-dev/libnet-$surum.tar.gz) + +derle() { + cd $isim-$surum + export CFLAGS=$CFLAGS" -fPIC" + + ./configure --prefix=/usr --mandir=/usr/man + sed -i 's/ sample//g' Makefile + make + make DESTDIR=$PKG install + install -D -m 755 libnet-config $PKG/usr/bin/libnet-config +} diff --git a/talimatname/genel/l/libnetfilter_acct/talimat b/talimatname/genel/l/libnetfilter_acct/talimat new file mode 100644 index 000000000..1f9a3f3c4 --- /dev/null +++ b/talimatname/genel/l/libnetfilter_acct/talimat @@ -0,0 +1,16 @@ +# Tanım: Genişletilmiş hesap altyapısına bağlantı sağlayan kütüphane +# URL: https://www.netfilter.org/projects/libnetfilter_acct/ +# Paketçi: milisarge +# Gerekler: libnfnetlink libmnl + +isim=libnetfilter_acct +surum=1.0.3 +devir=1 +kaynak=(http://www.netfilter.org/projects/libnetfilter_acct/files/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/l/libnetfilter_conntrack/talimat b/talimatname/genel/l/libnetfilter_conntrack/talimat new file mode 100644 index 000000000..bbadb439b --- /dev/null +++ b/talimatname/genel/l/libnetfilter_conntrack/talimat @@ -0,0 +1,17 @@ +# Tanım: Library providing an API to the in-kernel connection tracking state table +# URL: https://www.netfilter.org/projects/libnetfilter_conntrack/ +# Paketçi: milisarge +# Gerekler: libnfnetlink libmnl +# Grup: kütüphane + +isim=libnetfilter_conntrack +surum=1.0.6 +devir=1 +kaynak=(http://www.netfilter.org/projects/libnetfilter_conntrack/files/libnetfilter_conntrack-1.0.6.tar.bz2) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/l/libnetfilter_log/talimat b/talimatname/genel/l/libnetfilter_log/talimat new file mode 100644 index 000000000..ccbf5a6d4 --- /dev/null +++ b/talimatname/genel/l/libnetfilter_log/talimat @@ -0,0 +1,18 @@ +# Tanım: kernel paket filtresi tarafından günlüğe kaydedilen paketlere arabirim sağlayan bir kullanıcı alanı kütüphanesi. +# URL: http://netfilter.org/projects/libnetfilter_log/ +# Paketçi: milisarge +# Gerekler: libnfnetlink + +isim=libnetfilter_log +surum=1.0.1 +devir=1 +kaynak=(http://www.netfilter.org/projects/$isim/files/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr \ + --disable-static + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libnfnetlink/sync_with_kernel_headers.patch b/talimatname/genel/l/libnfnetlink/sync_with_kernel_headers.patch new file mode 100644 index 000000000..985b3711e --- /dev/null +++ b/talimatname/genel/l/libnfnetlink/sync_with_kernel_headers.patch @@ -0,0 +1,110 @@ +From 7a1a07c0028a1c88cd7716a058697c552a563b24 Mon Sep 17 00:00:00 2001 +From: Felix Janda <felix.janda@posteo.de> +Date: Sat, 16 May 2015 14:49:07 +0200 +Subject: include: Sync with kernel headers + +Signed-off-by: Felix Janda <felix.janda@posteo.de> +Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> +--- + include/libnfnetlink/linux_nfnetlink.h | 44 ++++----------------------- + include/libnfnetlink/linux_nfnetlink_compat.h | 12 ++++---- + 2 files changed, 12 insertions(+), 44 deletions(-) + +diff --git a/include/libnfnetlink/linux_nfnetlink.h b/include/libnfnetlink/linux_nfnetlink.h +index 76a8550..44a38d6 100644 +--- a/include/libnfnetlink/linux_nfnetlink.h ++++ b/include/libnfnetlink/linux_nfnetlink.h +@@ -25,9 +25,9 @@ enum nfnetlink_groups { + /* General form of address family dependent message. + */ + struct nfgenmsg { +- u_int8_t nfgen_family; /* AF_xxx */ +- u_int8_t version; /* nfnetlink version */ +- u_int16_t res_id; /* resource id */ ++ __u8 nfgen_family; /* AF_xxx */ ++ __u8 version; /* nfnetlink version */ ++ __be16 res_id; /* resource id */ + }; + + #define NFNETLINK_V0 0 +@@ -46,40 +46,8 @@ struct nfgenmsg { + #define NFNL_SUBSYS_CTNETLINK_EXP 2 + #define NFNL_SUBSYS_QUEUE 3 + #define NFNL_SUBSYS_ULOG 4 +-#define NFNL_SUBSYS_COUNT 5 ++#define NFNL_SUBSYS_OSF 5 ++#define NFNL_SUBSYS_IPSET 6 ++#define NFNL_SUBSYS_COUNT 7 + +-#ifdef __KERNEL__ +- +-#include <linux/netlink.h> +-#include <linux/capability.h> +-#include <net/netlink.h> +- +-struct nfnl_callback +-{ +- int (*call)(struct sock *nl, struct sk_buff *skb, +- struct nlmsghdr *nlh, struct nlattr *cda[]); +- const struct nla_policy *policy; /* netlink attribute policy */ +- const u_int16_t attr_count; /* number of nlattr's */ +-}; +- +-struct nfnetlink_subsystem +-{ +- const char *name; +- __u8 subsys_id; /* nfnetlink subsystem ID */ +- __u8 cb_count; /* number of callbacks */ +- const struct nfnl_callback *cb; /* callback for individual types */ +-}; +- +-extern int nfnetlink_subsys_register(const struct nfnetlink_subsystem *n); +-extern int nfnetlink_subsys_unregister(const struct nfnetlink_subsystem *n); +- +-extern int nfnetlink_has_listeners(unsigned int group); +-extern int nfnetlink_send(struct sk_buff *skb, u32 pid, unsigned group, +- int echo); +-extern int nfnetlink_unicast(struct sk_buff *skb, u_int32_t pid, int flags); +- +-#define MODULE_ALIAS_NFNL_SUBSYS(subsys) \ +- MODULE_ALIAS("nfnetlink-subsys-" __stringify(subsys)) +- +-#endif /* __KERNEL__ */ + #endif /* _NFNETLINK_H */ +diff --git a/include/libnfnetlink/linux_nfnetlink_compat.h b/include/libnfnetlink/linux_nfnetlink_compat.h +index e145176..74b9e55 100644 +--- a/include/libnfnetlink/linux_nfnetlink_compat.h ++++ b/include/libnfnetlink/linux_nfnetlink_compat.h +@@ -1,6 +1,8 @@ + #ifndef _NFNETLINK_COMPAT_H + #define _NFNETLINK_COMPAT_H +-#ifndef __KERNEL__ ++ ++#include <linux/types.h> ++ + /* Old nfnetlink macros for userspace */ + + /* nfnetlink groups: Up to 32 maximum */ +@@ -18,10 +20,9 @@ + * ! nfnetlink use the same attributes methods. - J. Schulist. + */ + +-struct nfattr +-{ +- u_int16_t nfa_len; +- u_int16_t nfa_type; /* we use 15 bits for the type, and the highest ++struct nfattr { ++ __u16 nfa_len; ++ __u16 nfa_type; /* we use 15 bits for the type, and the highest + * bit to indicate whether the payload is nested */ + }; + +@@ -57,5 +58,4 @@ struct nfattr + + NLMSG_ALIGN(sizeof(struct nfgenmsg)))) + #define NFM_PAYLOAD(n) NLMSG_PAYLOAD(n, sizeof(struct nfgenmsg)) + +-#endif /* ! __KERNEL__ */ + #endif /* _NFNETLINK_COMPAT_H */ +-- +cgit v0.12 + diff --git a/talimatname/genel/l/libnfnetlink/talimat b/talimatname/genel/l/libnfnetlink/talimat new file mode 100644 index 000000000..533b9fc05 --- /dev/null +++ b/talimatname/genel/l/libnfnetlink/talimat @@ -0,0 +1,18 @@ +# Tanım: Netfilter kernel/userspace iletişim kütüphnesi +# URL: http://www.netfilter.org/projects/libnfnetlink/index.html +# Paketçi: milisarge +# Gerekler: + +isim=libnfnetlink +surum=1.0.1 +devir=1 +kaynak=(http://www.netfilter.org/projects/$isim/files/$isim-$surum.tar.bz2 + sync_with_kernel_headers.patch) + +derle() { + cd $isim-$surum + patch -p1 -i $SRC/sync_with_kernel_headers.patch + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libnfs-python/talimat b/talimatname/genel/l/libnfs-python/talimat new file mode 100644 index 000000000..ac4fdbf1f --- /dev/null +++ b/talimatname/genel/l/libnfs-python/talimat @@ -0,0 +1,16 @@ +# Tanım: Python libnfs bağlamları +# URL: https://github.com/sahlberg/libnfs-python +# Paketçi: milisarge +# Gerekler: python3 python3-setuptools python python-setuptools libnfs swig + +isim=libnfs-python +surum=git +devir=1 + +kaynak=(https://github.com/sahlberg/$isim/archive/master.zip::$isim-${surum}-$devir.tar.gz) + +derle() { + cd $isim-master + python2 setup.py install --prefix=/usr --root=$PKG + python3 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/l/libnfs/talimat b/talimatname/genel/l/libnfs/talimat new file mode 100644 index 000000000..24992fea2 --- /dev/null +++ b/talimatname/genel/l/libnfs/talimat @@ -0,0 +1,17 @@ +# Tanım: NFS paylaşımlarına erişim için istemci kütüphanesi +# URL: https://github.com/sahlberg/libnfs +# Paketçi: milisarge +# Gerekler: + +isim=libnfs +surum=2.0.0 +devir=1 +kaynak=(https://github.com/sahlberg/libnfs/archive/libnfs-2.0.0.tar.gz) + +derle() { + cd "$isim-$isim-$surum" + autoreconf -vif + ./configure --prefix=/usr + make + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/l/libnftnl/talimat b/talimatname/genel/l/libnftnl/talimat new file mode 100644 index 000000000..293048a42 --- /dev/null +++ b/talimatname/genel/l/libnftnl/talimat @@ -0,0 +1,18 @@ +# Tanım: Nf_tables alt sistemine arabirim sağlayan Netfilter kütüphanesi +# URL: http://netfilter.org/projects/libnftnl/ +# Paketçi: milisarge +# Gerekler: libmnl + +isim=libnftnl +surum=1.0.3 +devir=1 + +kaynak=(http://netfilter.org/projects/libnftnl/files/libnftnl-$surum.tar.bz2) + +derle(){ + cd $isim-$surum + ./configure --prefix=/usr + make + make check + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libnice/talimat b/talimatname/genel/l/libnice/talimat new file mode 100644 index 000000000..4c325136c --- /dev/null +++ b/talimatname/genel/l/libnice/talimat @@ -0,0 +1,19 @@ +# Tanım: IETF'nin ICE taslağının bir uygulaması (p2p UDP veri akışları için) +# URL: http://people.suug.ch/~tgr/libnl +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: glib gstreamer1-plugins-base + +isim=libnice +surum=0.1.13 +devir=1 + +kaynak=(http://nice.freedesktop.org/releases/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--without-gstreamer-0.10 \ +--disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libnih/talimat b/talimatname/genel/l/libnih/talimat new file mode 100644 index 000000000..3a0f78568 --- /dev/null +++ b/talimatname/genel/l/libnih/talimat @@ -0,0 +1,17 @@ +# Tanım: C uygulaması geliştirme için küçük kütüphane. +# URL: https://launchpad.net/libnih +# Paketçi: Cihan_Alkan +# Gerekler: dbus +# Grup: kütüphane + +isim=libnih +surum=1.0.3 +devir=1 +kaynak=(https://launchpad.net/libnih/1.0/${surum}/+download/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR="$PKG"/ install +} diff --git a/talimatname/genel/l/libnl/talimat b/talimatname/genel/l/libnl/talimat new file mode 100644 index 000000000..0855c3c59 --- /dev/null +++ b/talimatname/genel/l/libnl/talimat @@ -0,0 +1,18 @@ +# Tanım: Netlink soketleri ile ilgili uygulamalar için kitaplık +# URL: http://people.suug.ch/~tgr/libnl +# Paketçi: milisarge +# Gerekler: + +isim=libnl +surum=3.2.27 +devir=1 + +kaynak=(https://github.com/thom311/libnl/releases/download/libnl$(echo $surum|sed 's/\./_/g')/$isim-$surum.tar.gz) +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--sysconfdir=/etc \ +--disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libnotify/talimat b/talimatname/genel/l/libnotify/talimat new file mode 100644 index 000000000..76db436f7 --- /dev/null +++ b/talimatname/genel/l/libnotify/talimat @@ -0,0 +1,19 @@ +# Tanım: Masaüstü bildirim kitaplığı +# URL: http://www.galago-project.org/news/index.php +# Paketçi: milisarge +# Gerekler: gobject-introspection gdk-pixbuf gtk3 + +isim=libnotify +surum=0.7.6 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr --disable-static +make +make DESTDIR=$PKG install +rm -rf $PKG/usr/share +} + diff --git a/talimatname/genel/l/libntru/talimat b/talimatname/genel/l/libntru/talimat new file mode 100644 index 000000000..bd6b6201a --- /dev/null +++ b/talimatname/genel/l/libntru/talimat @@ -0,0 +1,16 @@ +# Tanım: NTRUEncrypt C de yazılmışı +# URL: https://github.com/tbuktu/libntru +# Paketçi: milisarge +# Gerekler: + +isim=libntru +surum=0.4.1 +devir=1 +kaynak=(https://github.com/tbuktu/libntru/archive/${surum}.tar.gz) + +derle() { + cd "${SRC}/libntru-${surum}" + make -f Makefile.linux + make -f Makefile.linux install DESTDIR="${PKG}" + rm -r "${PKG}/usr/share" +} diff --git a/talimatname/genel/l/liboauth/talimat b/talimatname/genel/l/liboauth/talimat new file mode 100644 index 000000000..cf8e7ceb9 --- /dev/null +++ b/talimatname/genel/l/liboauth/talimat @@ -0,0 +1,19 @@ +# Tanım: Http://oauth.net/ protokolünün bir POSIX-C uygulaması. LibOauth, URL'leri kodlamak ve HTTP istek verisini oAuth standardına göre imzalamak için işlevsellik sağlar. +# URL: http://sourceforge.net/projects/liboauth +# Paketçi: milisarge +# Gerekler: curl nss + +isim=liboauth +surum=1.0.3 +devir=1 + +kaynak=(http://downloads.sourceforge.net/$isim/$isim-$surum.tar.gz) + + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libodfgen/talimat b/talimatname/genel/l/libodfgen/talimat new file mode 100644 index 000000000..68efbbbf3 --- /dev/null +++ b/talimatname/genel/l/libodfgen/talimat @@ -0,0 +1,17 @@ +# Tanım: Open Document Format'da belge üretmek için kütüphane +# URL: http://sourceforge.net/p/libwpd/wiki/libodfgen/ +# Paketçi: Cihan Alkan +# Gerekler: boost doxygen libwpd libwpg librevenge + +isim=libodfgen +surum=0.1.6 +devir=1 + +kaynak=(http://sourceforge.net/projects/libwpd/files/libodfgen/libodfgen-$surum/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libofa/libofa-0.9.3-curl-7.21.patch b/talimatname/genel/l/libofa/libofa-0.9.3-curl-7.21.patch new file mode 100644 index 000000000..d23351860 --- /dev/null +++ b/talimatname/genel/l/libofa/libofa-0.9.3-curl-7.21.patch @@ -0,0 +1,11 @@ +diff -ru libofa-0.9.3.orig//examples/protocol.cpp libofa-0.9.3//examples/protocol.cpp +--- libofa-0.9.3.orig//examples/protocol.cpp 2006-05-10 20:05:42.000000000 +0200 ++++ libofa-0.9.3//examples/protocol.cpp 2011-07-22 19:02:30.687109297 +0200 +@@ -12,7 +12,6 @@ + #include <map> + #include <expat.h> + #include <curl/curl.h> +-#include <curl/types.h> + #include <curl/easy.h> + + using namespace std; diff --git a/talimatname/genel/l/libofa/libofa-0.9.3-gcc-4.7.patch b/talimatname/genel/l/libofa/libofa-0.9.3-gcc-4.7.patch new file mode 100644 index 000000000..c5ab09876 --- /dev/null +++ b/talimatname/genel/l/libofa/libofa-0.9.3-gcc-4.7.patch @@ -0,0 +1,22 @@ +diff -up libofa-0.9.3/examples/uselame.cpp.gcc47 libofa-0.9.3/examples/uselame.cpp +--- libofa-0.9.3/examples/uselame.cpp.gcc47 2012-01-14 09:35:24.343146853 -0600 ++++ libofa-0.9.3/examples/uselame.cpp 2012-01-14 09:35:49.956826634 -0600 +@@ -12,6 +12,7 @@ + #else + #include <sys/wait.h> + #endif ++#include <unistd.h> + + AudioData *loadWaveFile(char *file); + +diff -up libofa-0.9.3/examples/wavefile.cpp.gcc47 libofa-0.9.3/examples/wavefile.cpp +--- libofa-0.9.3/examples/wavefile.cpp.gcc47 2012-01-14 09:35:24.344146841 -0600 ++++ libofa-0.9.3/examples/wavefile.cpp 2012-01-14 16:00:54.414981160 -0600 +@@ -11,6 +11,7 @@ + #include "io.h" + #endif + #include <fcntl.h> ++#include <unistd.h> + + static bool readBytes(int fd, unsigned char *buf, int size) { + int ct = 0; diff --git a/talimatname/genel/l/libofa/libofa-gcc4.3.patch b/talimatname/genel/l/libofa/libofa-gcc4.3.patch new file mode 100644 index 000000000..f68f42bfb --- /dev/null +++ b/talimatname/genel/l/libofa/libofa-gcc4.3.patch @@ -0,0 +1,35 @@ +diff -ur libofa-0.9.3.orig/examples/example.cpp libofa-0.9.3/examples/example.cpp +--- libofa-0.9.3.orig/examples/example.cpp 2006-05-10 21:05:37.000000000 +0300 ++++ libofa-0.9.3/examples/example.cpp 2008-04-16 15:51:49.000000000 +0300 +@@ -9,6 +9,8 @@ + + #include "protocol.h" + ++#include <string.h> ++ + AudioData* loadWaveFile(char *file); + AudioData* loadDataUsingLAME(char *file); + +Vain hakemistossa libofa-0.9.3/examples: example.cpp.orig +diff -ur libofa-0.9.3.orig/examples/protocol.cpp libofa-0.9.3/examples/protocol.cpp +--- libofa-0.9.3.orig/examples/protocol.cpp 2006-05-10 21:05:42.000000000 +0300 ++++ libofa-0.9.3/examples/protocol.cpp 2008-04-16 15:51:49.000000000 +0300 +@@ -8,6 +8,7 @@ + -------------------------------------------------------------------*/ + #include <stdio.h> + #include <stdlib.h> ++#include <cstring> + #include <string> + #include <map> + #include <expat.h> +diff -ur libofa-0.9.3.orig/lib/signal_op.cpp libofa-0.9.3/lib/signal_op.cpp +--- libofa-0.9.3.orig/lib/signal_op.cpp 2006-05-10 21:01:12.000000000 +0300 ++++ libofa-0.9.3/lib/signal_op.cpp 2008-04-16 15:51:49.000000000 +0300 +@@ -12,6 +12,7 @@ + // DATE CREATED: 1/12/06 + + ++#include <cstdlib> + #include <math.h> + #include "signal_op.h" + #include "AFLIB/aflibConverter.h" diff --git a/talimatname/genel/l/libofa/libofa-gcc4.5.patch b/talimatname/genel/l/libofa/libofa-gcc4.5.patch new file mode 100644 index 000000000..44f437d5b --- /dev/null +++ b/talimatname/genel/l/libofa/libofa-gcc4.5.patch @@ -0,0 +1,10 @@ +--- libofa-0.9.3/examples/example.cpp~ 2010-05-19 18:07:19.517650317 +0200 ++++ libofa-0.9.3/examples/example.cpp 2010-05-19 18:07:31.754317472 +0200 +@@ -6,6 +6,7 @@ + No rights reserved. + + -------------------------------------------------------------------*/ ++#include <cstdio> + + #include "protocol.h" + diff --git a/talimatname/genel/l/libofa/libofa-gcc4.patch b/talimatname/genel/l/libofa/libofa-gcc4.patch new file mode 100644 index 000000000..d1059bafa --- /dev/null +++ b/talimatname/genel/l/libofa/libofa-gcc4.patch @@ -0,0 +1,39 @@ +--- lib/JAMA/tnt_math_utils.h.orig 2006-06-17 01:46:22.000000000 +0300 ++++ lib/JAMA/tnt_math_utils.h 2006-06-17 01:47:02.000000000 +0300 +@@ -20,11 +20,20 @@ + namespace TNT + { + /** ++ @returns the absolute value of a real (no-complex) scalar. ++*/ ++template <class Real> ++Real abs(const Real &a) ++{ ++ return (a > 0 ? a : -a); ++} ++/** + @returns hypotenuse of real (non-complex) scalars a and b by + avoiding underflow/overflow + using (a * sqrt( 1 + (b/a) * (b/a))), rather than + sqrt(a*a + b*b). + */ ++ + template <class Real> + Real hypot(const Real &a, const Real &b) + { +@@ -56,15 +65,6 @@ + } + */ + +-/** +- @returns the absolute value of a real (no-complex) scalar. +-*/ +-template <class Real> +-Real abs(const Real &a) +-{ +- return (a > 0 ? a : -a); +-} +- + } + #endif + /* MATH_UTILS_H */ diff --git a/talimatname/genel/l/libofa/talimat b/talimatname/genel/l/libofa/talimat new file mode 100644 index 000000000..89b6c2745 --- /dev/null +++ b/talimatname/genel/l/libofa/talimat @@ -0,0 +1,31 @@ +# Tanım: MusicIP tarafından açık kaynaklı bir ses parmak izi +# URL: https://github.com/tanob/libofa +# Paketçi: Cihan_Alkan +# Gerekler: fftw +# Grup: kütüphane + +isim=libofa +surum=0.9.3 +devir=1 + +kaynak=(https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/musicip-libofa/libofa-$surum.tar.gz + libofa-gcc4.patch + libofa-gcc4.3.patch + libofa-gcc4.5.patch + libofa-0.9.3-curl-7.21.patch + libofa-0.9.3-gcc-4.7.patch) + +derle() { + + cd ${isim}-${surum} + patch -p0 -i "${SRC}/libofa-gcc4.patch" + patch -p1 -i "${SRC}/libofa-gcc4.3.patch" + patch -p1 -i "${SRC}/libofa-gcc4.5.patch" + patch -p1 -i "${SRC}/libofa-0.9.3-gcc-4.7.patch" + patch -p1 -i "${SRC}/libofa-0.9.3-curl-7.21.patch" + + ./configure --prefix=/usr + make + make DESTDIR="${PKG}" install + install -D -m644 COPYING "${PKG}/usr/share/licenses/${isim}/LICENSE" +} diff --git a/talimatname/genel/l/libogg/talimat b/talimatname/genel/l/libogg/talimat new file mode 100644 index 000000000..8aadad25c --- /dev/null +++ b/talimatname/genel/l/libogg/talimat @@ -0,0 +1,22 @@ +# Tanım: Ogg bit akışı ve çerçeveleme kitaplığı +# URL: http://xiph.org/ogg/ +# Paketçi: milisarge +# Gerekler: + +isim=libogg +surum=1.3.2 +devir=1 + +kaynak=(http://downloads.xiph.org/releases/ogg/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --docdir=/usr/share/doc/libogg-$surum \ + --disable-static + make + make DESTDIR=$PKG install +} + + +# NuTyX Pkgfile (http://nutyx.org) diff --git a/talimatname/genel/l/liboobs/talimat b/talimatname/genel/l/liboobs/talimat new file mode 100644 index 000000000..064be8673 --- /dev/null +++ b/talimatname/genel/l/liboobs/talimat @@ -0,0 +1,17 @@ +# Tanım: Sistem-araçları backend'lerine GObject tabanlı arayüz - paylaşılan kütüphane +# URL: http://libopenraw.freedesktop.org/wiki/Exempi +# Paketçi: milisarge +# Gerekler: system-tools-backends + +isim=liboobs +surum=3.0.0 +devir=1 + +kaynak=(ftp://ftp.gnome.org/pub/GNOME/sources/liboobs/3.0/$isim-$surum.tar.gz ) + +derle() { +cd $isim-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libopenraw/talimat b/talimatname/genel/l/libopenraw/talimat new file mode 100644 index 000000000..e6aaccd3a --- /dev/null +++ b/talimatname/genel/l/libopenraw/talimat @@ -0,0 +1,16 @@ +# Tanım: Raw dosyalarının çözülmesi için kütüphane +# URL: http://libopenraw.freedesktop.org/ +# Paketçi: milisarge +# Gerekler: boost libxml2 gdk-pixbuf + +isim=libopenraw +surum=0.1.0 +devir=1 +kaynak=(https://libopenraw.freedesktop.org/download/$isim-$surum.tar.bz2) + +derle() { + cd $isim-${surum} + ./configure --prefix=/usr + make + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/l/liborcus/talimat b/talimatname/genel/l/liborcus/talimat new file mode 100644 index 000000000..7033c8582 --- /dev/null +++ b/talimatname/genel/l/liborcus/talimat @@ -0,0 +1,19 @@ +# Tanım: Elektronik tablo belgelerinin dosya içe aktarma filtresi kütüphanesi. +# URL: https://gitlab.com/orcus/orcus/blob/master/README.md +# Paketçi: Cihan Alkan +# Gerekler: libwpd boost mdds libixion + +isim=liborcus +surum=0.13.3 +devir=1 + +kaynak=(https://kohei.us/files/orcus/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + [ ! -f /usr/lib/pkgconfig/python3.pc ] && ln -s /usr/lib/pkgconfig/python-3.5.pc /usr/lib/pkgconfig/python3.pc + ./configure --prefix=/usr + make + make DESTDIR=$PKG install + rm -f /usr/lib/pkgconfig/python3.pc +} diff --git a/talimatname/genel/l/libosinfo/talimat b/talimatname/genel/l/libosinfo/talimat new file mode 100644 index 000000000..2c9beaa12 --- /dev/null +++ b/talimatname/genel/l/libosinfo/talimat @@ -0,0 +1,19 @@ +# Tanım: İşletim Sistemi bilgi veritabanı +# URL: http://libosinfo.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: glib libxslt gobject-introspection intltool libsoup vala check + +isim=libosinfo +surum=1.0.0 +devir=1 + +kaynak=(https://releases.pagure.org/libosinfo/$isim-$surum.tar.gz{,.asc}) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + --with-usb-ids-path=/usr/share/hwdata/usb.ids \ + --with-pci-ids-path=/usr/share/hwdata/pci.ids + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libotr/talimat b/talimatname/genel/l/libotr/talimat new file mode 100644 index 000000000..3398f6c5a --- /dev/null +++ b/talimatname/genel/l/libotr/talimat @@ -0,0 +1,18 @@ +# Tanım: OTR mesajlaşma, sohbet mesajı üzerinden özel konuşmalar yapmanıza olanak tanır. +# URL: http://www.cypherpunks.ca/otr/ +# Paketçi: milisarge +# Gerekler: libusb libgcrypt + +isim=libotr +surum=4.1.1 +devir=1 + +kaynak=( https://otr.cypherpunks.ca/$isim-$surum.tar.gz) + +derle(){ + cd $isim-$surum + ./configure --prefix=/usr \ + --disable-static + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libpagemaker/talimat b/talimatname/genel/l/libpagemaker/talimat new file mode 100644 index 000000000..b0fa1a1d2 --- /dev/null +++ b/talimatname/genel/l/libpagemaker/talimat @@ -0,0 +1,19 @@ +# Tanım: Aldus/Adobe PageMaker belgelerinin dosya biçimini ayrıştıran bir kitaplık +# URL: https://wiki.documentfoundation.org/DLP/Libraries/libpagemaker +# Paketçi: Cihan Alkan +# Gerekler: librevenge boost + +isim=libpagemaker +surum=0.0.3 +devir=1 + +kaynak=(https://dev-www.libreoffice.org/src/$isim/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + + ./configure --prefix=/usr + make + make DESTDIR=$PKG install + install -Dm644 COPYING $PKG/usr/share/licenses/$isim/COPYING +} diff --git a/talimatname/genel/l/libpaper/run-parts b/talimatname/genel/l/libpaper/run-parts new file mode 100644 index 000000000..e3134d216 --- /dev/null +++ b/talimatname/genel/l/libpaper/run-parts @@ -0,0 +1,48 @@ +#!/bin/sh +# run-parts: Runs all the scripts found in a directory. +# from Slackware, by Patrick J. Volkerding with ideas borrowed +# from the Red Hat and Debian versions of this utility. + +# keep going when something fails +set +e + +if [ $# -lt 1 ]; then + echo "Usage: run-parts <directory>" + exit 1 +fi + +if [ ! -d $1 ]; then + echo "Not a directory: $1" + echo "Usage: run-parts <directory>" + exit 1 +fi + +# There are several types of files that we would like to +# ignore automatically, as they are likely to be backups +# of other scripts: +IGNORE_SUFFIXES="~ ^ , .bak .new .rpmsave .rpmorig .rpmnew .swp" + +# Main loop: +for SCRIPT in $1/* ; do + # If this is not a regular file, skip it: + if [ ! -f $SCRIPT ]; then + continue + fi + # Determine if this file should be skipped by suffix: + SKIP=false + for SUFFIX in $IGNORE_SUFFIXES ; do + if [ ! "$(basename $SCRIPT $SUFFIX)" = "$(basename $SCRIPT)" ]; then + SKIP=true + break + fi + done + if [ "$SKIP" = "true" ]; then + continue + fi + # If we've made it this far, then run the script if it's executable: + if [ -x $SCRIPT ]; then + $SCRIPT || echo "$SCRIPT failed." + fi +done + +exit 0 diff --git a/talimatname/genel/l/libpaper/talimat b/talimatname/genel/l/libpaper/talimat new file mode 100644 index 000000000..09550cafd --- /dev/null +++ b/talimatname/genel/l/libpaper/talimat @@ -0,0 +1,26 @@ +# Tanım: Uygulamalar için bir sistem / kullanıcı tarafından belirtilen kağıt boyutuna dayalı işlemleri basit bir şekilde yapabilirsiniz. +# URL: http://ftp.debian.org/debian/pool/main/libp/libpaper +# Paketçi: milisarge +# Gerekler: + +isim=libpaper +surum=1.1.24 +devir=1 + +kaynak=(http://ftp.debian.org/debian/pool/main/libp/libpaper/$isim\_$surum+nmu4.tar.gz + run-parts) + +derle() { + + cd $isim-$surum+nmu4 + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --disable-static + make + make DESTDIR=$PKG install + + cp -v $SRC/run-parts $PKG/usr/bin/ + chmod -v 755 $PKG/usr/bin/run-parts + +} diff --git a/talimatname/genel/l/libpcap/libpcap.kur-kos b/talimatname/genel/l/libpcap/libpcap.kur-kos new file mode 100644 index 000000000..2255d77ac --- /dev/null +++ b/talimatname/genel/l/libpcap/libpcap.kur-kos @@ -0,0 +1 @@ +ln -s /usr/include/pcap/bpf.h /usr/include/net/bpf.h diff --git a/talimatname/genel/l/libpcap/talimat b/talimatname/genel/l/libpcap/talimat new file mode 100644 index 000000000..066f3f75e --- /dev/null +++ b/talimatname/genel/l/libpcap/talimat @@ -0,0 +1,19 @@ +# Tanım: Kullanıcı düzeyinde paket yakalamak için sistemden bağımsız bir arayüz +# URL: http://www.tcpdump.org +# Paketçi: milisarge +# Gerekler: libnl libusb + +isim=libpcap +surum=1.7.4 +devir=1 + +kaynak=(http://www.tcpdump.org/release/$isim-$surum.tar.gz +http://www.linuxfromscratch.org/patches/downloads/libpcap/$isim-$surum-enable_bluetooth-1.patch) +derle() { +cd $isim-$surum +patch -Np1 -i ../libpcap-$surum-enable_bluetooth-1.patch +./configure --prefix=/usr --enable-ipv6 +make +sed -i '/INSTALL_DATA.*libpcap.a\|RANLIB.*libpcap.a/ s/^/#/' Makefile +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libpeas/libpeas.kur-kos b/talimatname/genel/l/libpeas/libpeas.kur-kos new file mode 100755 index 000000000..5078fa193 --- /dev/null +++ b/talimatname/genel/l/libpeas/libpeas.kur-kos @@ -0,0 +1 @@ +/usr/bin/gtk-update-icon-cache -f -t /usr/share/icons/hicolor diff --git a/talimatname/genel/l/libpeas/talimat b/talimatname/genel/l/libpeas/talimat new file mode 100644 index 000000000..ef8d64a0c --- /dev/null +++ b/talimatname/genel/l/libpeas/talimat @@ -0,0 +1,18 @@ +# Tanım: Gobject tabanlı eklenti motoru +# URL: https://wiki.gnome.org/Projects/Libpeas +# Paketçi: yasarciv67@gmail.com +# Gerekler: gtk-doc intltool python-gobject glade gobject-introspection gnome-common gtk3 + +isim=libpeas +surum=1.20.0 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/l/libpgf/talimat b/talimatname/genel/l/libpgf/talimat new file mode 100644 index 000000000..bd2e79333 --- /dev/null +++ b/talimatname/genel/l/libpgf/talimat @@ -0,0 +1,19 @@ +# Tanım: Aşamalı Grafik Dosyasının (PGF) bir uygulaması +# URL: http://www.libpgf.org +# Paketçi: milisarge +# Gerekler: dos2unix + +isim=libpgf +surum=7.15.32 +devir=1 + +kaynak=(http://sourceforge.net/projects/$isim/files/$isim/$surum-latest/libPGF-codec-and-console-src.zip) + +derle() { + cd $SRC/PGF/Codec + dos2unix configure.ac + sh ./autogen.sh + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libpgm/talimat b/talimatname/genel/l/libpgm/talimat new file mode 100644 index 000000000..ebb64d7cf --- /dev/null +++ b/talimatname/genel/l/libpgm/talimat @@ -0,0 +1,19 @@ +# Tanım: OpenPGM: implementation of the Pragmatic General Multicast (PGM, RFC3208) +# URL: https://www.freshports.org/net/openpgm/ +# Paketçi: milisarge +# Gerekler: python + +isim=libpgm +surum=5.2.122 +devir=1 +kaynak=(https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/openpgm/$isim-$surum.tar.gz +) + +derle() { + cd "$SRC/$isim-$surum/openpgm/pgm" + find . -type f -exec sed -i 's/python/python2/g' {} \+ + cd "$SRC/$isim-$surum/openpgm/pgm" + ./configure --prefix=/usr + make + make prefix="$PKG/usr" install +} diff --git a/talimatname/genel/l/libpng/talimat b/talimatname/genel/l/libpng/talimat new file mode 100644 index 000000000..b04ed57ae --- /dev/null +++ b/talimatname/genel/l/libpng/talimat @@ -0,0 +1,22 @@ +# Tanım: Diğer programlar tarafından PNG dosyalarını okuma ve yazma için kullanılan kütüphaneler. +# URL: http://www.libpng.org/pub/png/libpng.html +# Paketçi: milisarge +# Gerekler: + +isim=libpng +surum=1.6.29 +devir=1 + +kaynak=( http://downloads.sourceforge.net/$isim/$isim-$surum.tar.xz \ + http://downloads.sourceforge.net/project/apng/libpng/libpng16/$isim-$surum-apng.patch.gz) + +derle() { +cd $isim-$surum +gzip -cd ../$isim-$surum-apng.patch.gz | patch -p0 +./configure --prefix=/usr \ +--mandir=/usr/share/man \ +--infodir=/usr/share/info \ +--disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libpng12/talimat b/talimatname/genel/l/libpng12/talimat new file mode 100644 index 000000000..6dcb1ccaa --- /dev/null +++ b/talimatname/genel/l/libpng12/talimat @@ -0,0 +1,21 @@ +# Tanım: PNG formatlı grafik dosyalarını oluşturmak için kullanılan bir dizi rutin +# URL: http://www.libpng.org/pub/png/libpng.html +# Paketçi: Cihan Alkan +# Gerekler: glibc + +isim=libpng12 +surum=1.2.57 +devir=1 +kaynak=(https://sourceforge.net/projects/libpng/files/libpng-$surum.tar.xz +https://sourceforge.net/projects/apng/files/libpng/libpng12/libpng-$surum-apng.patch.gz) + +derle() { + cd libpng-$surum +#patch -Np0 -i $SRC/libpng-$surum-apng.patch + ./configure --prefix='/usr' + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/{bin,include,lib/{libpng.{a,so},pkgconfig},share} + + install -Dm 644 LICENSE -t $PKG/usr/share/licenses/libpng12/ +} diff --git a/talimatname/genel/l/libproxy/talimat b/talimatname/genel/l/libproxy/talimat new file mode 100644 index 000000000..43aa2eb8a --- /dev/null +++ b/talimatname/genel/l/libproxy/talimat @@ -0,0 +1,25 @@ +# Tanım: Otomatik proxy konfigürasyon yönetimi sağlayan bir kütüphane +# URL: http://libproxy.github.io/libproxy/ +# Paketçi: milisarge +# Gerekler: cmake networkmanager python perl glib webkitgtk3 + +isim=libproxy +surum=0.4.15 +devir=1 + +kaynak=(https://github.com/libproxy/libproxy/archive/$surum.tar.gz) + +derle() { +mkdir build +cd build +cmake ../${isim}-${surum} \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIBEXEC_INSTALL_DIR=/usr/lib/libproxy \ + -DCMAKE_SKIP_RPATH=ON \ + -DPERL_VENDORINSTALL=yes \ + -DCMAKE_BUILD_TYPE=Release \ + -DWITH_WEBKIT3=ON \ + -DWITH_MOZJS=ON +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libpst/talimat b/talimatname/genel/l/libpst/talimat new file mode 100644 index 000000000..1dbe6f6cc --- /dev/null +++ b/talimatname/genel/l/libpst/talimat @@ -0,0 +1,18 @@ +# Tanım: Outlook .pst dosya çeviricisi +# URL: http://www.five-ten-sg.com/libpst/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: python boost libgsf + +isim=libpst +surum=0.6.67 +devir=1 + +kaynak=(http://www.five-ten-sg.com/libpst/packages/${isim}-${surum}.tar.gz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr --mandir=/usr/share/man \ + --disable-static --enable-libpst-shared --disable-dii +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libpwquality/talimat b/talimatname/genel/l/libpwquality/talimat new file mode 100644 index 000000000..8a19f0bb8 --- /dev/null +++ b/talimatname/genel/l/libpwquality/talimat @@ -0,0 +1,20 @@ +# Tanım: Şifre kalite kontrolü ve rastgele şifreler üreten kütüphane. +# URL: https://fedorahosted.org/libpwquality/ +# Paketçi: alihan-ozturk@hotmail.com +# Gerekler: python cracklib + +isim=libpwquality +surum=1.3.0 +devir=1 + +kaynak=(https://fedorahosted.org/releases/l/i/libpwquality/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum +PYTHON=python2 ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --with-python-rev=2.7 +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libqmi/talimat b/talimatname/genel/l/libqmi/talimat new file mode 100644 index 000000000..f54d96c6e --- /dev/null +++ b/talimatname/genel/l/libqmi/talimat @@ -0,0 +1,19 @@ +# Tanım: WWAN modemleri ve Qualcomm MSM Arayüz protokolünü konuşan cihazlarla konuşmak için. +# URL: http://www.freedesktop.org/software/libqmi/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: glib libmbim + +isim=libqmi +surum=1.12.6 +devir=1 + +kaynak=( http://www.freedesktop.org/software/libqmi/libqmi-$surum.tar.xz) + +derle() { +cd libqmi-$surum +./configure --prefix=/usr \ + --disable-static + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libqtxdg/talimat b/talimatname/genel/l/libqtxdg/talimat new file mode 100644 index 000000000..60f67ee75 --- /dev/null +++ b/talimatname/genel/l/libqtxdg/talimat @@ -0,0 +1,21 @@ +# Tanım: Freedesktop.org'u sağlayan kütüphane Qt için XDG teknik özellikleri uygulamaları +# URL: http://lxqt.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: cmake gtk2 +# Grup: lxqt + +isim=libqtxdg +surum=3.2.0 +devir=1 +kaynak=(https://github.com/lxde/$isim/releases/download/$surum/$isim-$surum.tar.xz) + +derle() { + mkdir -v build + cd build + cmake $SRC/$isim-$surum \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libquvi-scripts/talimat b/talimatname/genel/l/libquvi-scripts/talimat new file mode 100644 index 000000000..a05733006 --- /dev/null +++ b/talimatname/genel/l/libquvi-scripts/talimat @@ -0,0 +1,17 @@ +# Tanım: video linklerini ayrıştıran betikler +# URL: http://quvi.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: lua + +isim=libquvi-scripts +surum=0.9.20131130 +devir=1 +kaynak=(https://downloads.sourceforge.net/sourceforge/quvi/$isim-$surum.tar.xz) + +derle() { + cd "$isim-$surum" + ./configure --prefix=/usr --mandir=/usr/man --with-nsfw --with-nlfy + make + make DESTDIR=$PKG install + rm -rf $(find $PKG/usr/share -name README) +} diff --git a/talimatname/genel/l/libquvi/talimat b/talimatname/genel/l/libquvi/talimat new file mode 100644 index 000000000..f159be62e --- /dev/null +++ b/talimatname/genel/l/libquvi/talimat @@ -0,0 +1,17 @@ +# Tanım: video linklerini ayrıştıran kütüphane +# URL: http://quvi.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: libquvi-scripts lua51 libproxy +# Grup: kütüphane + +isim=libquvi +surum=0.9.4 +devir=1 +kaynak=(https://downloads.sourceforge.net/sourceforge/quvi/${isim}-${surum}.tar.xz) + +derle() { + cd "$isim-$surum" + ./configure --prefix=/usr --mandir=/usr/man + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/librangetree/talimat b/talimatname/genel/l/librangetree/talimat new file mode 100644 index 000000000..78beead25 --- /dev/null +++ b/talimatname/genel/l/librangetree/talimat @@ -0,0 +1,16 @@ +# Tanım: librangetree kitaplığı +# URL: https://github.com/clbr/librangetree +# Paketçi: milisarge +# Gerekler: + +isim=librangetree +surum=1.3.1 +devir=1 + +kaynak=(https://github.com/clbr/librangetree/archive/v$surum.tar.gz) + +derle() { + cd "${isim}-$surum" + make -j1 + make install DESTDIR="${PKG}" +} diff --git a/talimatname/genel/l/libraw/talimat b/talimatname/genel/l/libraw/talimat new file mode 100644 index 000000000..6f16889cc --- /dev/null +++ b/talimatname/genel/l/libraw/talimat @@ -0,0 +1,18 @@ +# Tanım: Dijital fotoğraf kameralarından elde edilen RAW dosyaları okumak için (CRW / CR2, NEF, RAF, DNG, vb.) +# URL: http://www.libraw.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: libjpeg-turbo jasper lcms2 + +isim=libraw +surum=0.17.0 +devir=1 + +kaynak=(http://www.libraw.org/data/LibRaw-$surum.tar.gz) + +derle() +{ +cd LibRaw-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libre/talimat b/talimatname/genel/l/libre/talimat new file mode 100644 index 000000000..3bc384875 --- /dev/null +++ b/talimatname/genel/l/libre/talimat @@ -0,0 +1,17 @@ +# Tanım: Gerçek zamanlı iletişim için asenkron kütüphane desteği +# Url: http://www.creytiv.com/re.html +# Paketçi: milisarge +# Gerekler: +# Grup: kütüphane + +isim=libre +surum=0.5.6 +devir=1 +kaynak=(http://www.creytiv.com/pub/re-$surum.tar.gz) + +derle() { + cd re-$surum + make RELEASE=1 + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/l/librecad/talimat b/talimatname/genel/l/librecad/talimat new file mode 100644 index 000000000..b09f578e9 --- /dev/null +++ b/talimatname/genel/l/librecad/talimat @@ -0,0 +1,54 @@ +# Tanım: QCad topluluk baskısına dayalı 2D bir CAD çizim aracı +# URL: http://www.librecad.org/ +# Paketçi: Oltulu +# Gerekler: qt5 boost librsvg imagemagick +# Grup: grafik_tasarım + +isim=librecad +surum=2.1.3 +devir=1 + +kaynak=(https://github.com/LibreCAD/LibreCAD/archive/${surum}.tar.gz::$isim.$surum.tar.gz) + +derle() { + cd "${SRC}/LibreCAD-${surum}" + + # fix version string + sed -i "/^SCMREVISION/c SCMREVISION=\"${surum}\"" librecad/src/src.pro + + qmake-qt5 librecad.pro + + # fix include path... this is an issue with gcc 6.1.1 and qmake-qt5... + make qmake_all + sed -i '/INCPATH/s|-isystem /usr/include ||' librecad/src/Makefile + + make + + # executables + install -D -m0755 unix/librecad "${PKG}/usr/bin/librecad" + install -D -m0755 unix/ttf2lff "${PKG}/usr/bin/ttf2lff" + + # desktop dosyası ve man sayfası + install -D -m0644 desktop/librecad.desktop "${PKG}/usr/share/applications/librecad.desktop" + install -D -m0644 desktop/librecad.1 "${PKG}/usr/share/man/man1/librecad.1" + + # belgeler + install -D -m0644 librecad/support/doc/README "${PKG}/usr/share/doc/librecad/index.README" + install -D -m0644 librecad/support/doc/index.html "${PKG}/usr/share/doc/librecad/index.html" + install -D -m0644 librecad/support/doc/style.css "${PKG}/usr/share/doc/librecad/style.css" + install -D -m0644 librecad/support/doc/img/librecadlogo.png "${PKG}/usr/share/doc/librecad/img/librecadlogo.png" + + # simgeler + for SIZE in 16 24 32 48 64 96 128; do + convert -scale ${SIZE} \ + desktop/graphics_icons_and_splash/Icon\ LibreCAD/Icon_Librecad.svg \ + ${SRC}/librecad.png + install -D -m0644 ${SRC}/librecad.png "${PKG}/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/librecad.png" + done + install -D -m0644 desktop/graphics_icons_and_splash/Icon\ LibreCAD/Icon_Librecad.svg "${PKG}/usr/share/icons/hicolor/scalable/apps/librecad.svg" + + # kaynaklar + mkdir -p "${PKG}/usr/share/librecad/" + cp -r unix/resources/{library,patterns,fonts,qm} "${PKG}/usr/share/librecad/" + /usr/lib/qt5/bin/lrelease ${SRC}/LibreCAD-${surum}/librecad/ts/librecad_tr.ts -qm $PKG/usr/share/librecad/qm/librecad_tr.qm +} diff --git a/talimatname/genel/l/librem/talimat b/talimatname/genel/l/librem/talimat new file mode 100644 index 000000000..1d3014e2c --- /dev/null +++ b/talimatname/genel/l/librem/talimat @@ -0,0 +1,17 @@ +# Tanım: Gerçek zamanlı sesli ve video iletişim için kütüphane +# Url: http://www.creytiv.com/rem.html +# Paketçi: milisarge +# Gerekler: +# Grup: kütüphane + +isim=librem +surum=0.5.2 +devir=1 +kaynak=(http://www.creytiv.com/pub/rem-$surum.tar.gz) + +derle() { + cd rem-$surum + make RELEASE=1 + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/l/libreoffice-bin/libreoffice-bin.kur-kos b/talimatname/genel/l/libreoffice-bin/libreoffice-bin.kur-kos new file mode 100644 index 000000000..fc27cfd84 --- /dev/null +++ b/talimatname/genel/l/libreoffice-bin/libreoffice-bin.kur-kos @@ -0,0 +1,2 @@ +[ -f /usr/bin/xdg-desktop-menu ] && /usr/bin/xdg-desktop-menu forceupdate +[ -f /usr/bin/update-desktop-database ] && /usr/bin/update-desktop-database /usr/share/applications diff --git a/talimatname/genel/l/libreoffice-bin/talimat b/talimatname/genel/l/libreoffice-bin/talimat new file mode 100644 index 000000000..528058219 --- /dev/null +++ b/talimatname/genel/l/libreoffice-bin/talimat @@ -0,0 +1,57 @@ +# Tanım: Tam özellikli çapraz platform ofis paketi (ikili) +# URL: http://www.libreoffice.org +# Paketçi: milisarge +# Gerekler: cups xorg-libxaw xorg-libxcursor xorg-libxft xorg-libxinerama xorg-libxi xorg-libxrandr dbus-glib krb5 +# Grup: ofis + +isim=libreoffice-bin +isimp=libreoffice +surum=6.0.0 +devir=1 +kaynak=(http://tdf.c3sl.ufpr.br/libreoffice/stable/6.0.0/rpm/x86_64/LibreOffice_6.0.0_Linux_x86-64_rpm.tar.gz) + + +derle() { + local workd="$SRC/tmp_work" + mkdir $workd + + cd LibreOffice_${surum}*/RPMS + for rpm in *.rpm; do + bsdtar -p -o -C $workd -xf $rpm + done + + bsdtar -p -o -C $workd -xf \ + $isimp${surum%.*}*.noarch.rpm + + cd $workd + mkdir -p $PKG/usr/lib/$isimp + mv opt/$isimp*/* $PKG/usr/lib/$isimp + + cd $PKG/usr/lib/$isimp + ln -sf basis${surum%.*} basis-link + + mkdir -p $PKG/usr/bin + local programs=(sbase scalc sdraw simpress smath soffice spadmin swriter) + for program in ${programs[@]}; do + ln -sf /usr/lib/$isimp/program/$program $PKG/usr/bin/$program + done + + mkdir -p $PKG/usr/share/applications + cd $PKG/usr/lib/$isimp/share/xdg/ + + for desktop in *.desktop; do + sed -i '/^Exec=/s/libreoffice[^ ]*/soffice/' $desktop + ln -sf /usr/lib/$isimp/share/xdg/$desktop $PKG/usr/share/applications/$desktop + done + + mv $workd/usr/share/{mime,icons} $PKG/usr/share + + find $PKG \(\ + -inamep '*readme*' -o \ + -inamep '*changelog*' -o \ + -namep '*TODO*' -o \ + -inamep '*news*' -o \ + -inamep '*license*' -o \ + -inamep '*credits*' \ + \) -exec rm -rf '{}' \; || true +} diff --git a/talimatname/genel/l/libreoffice/libreoffice.kur-kos b/talimatname/genel/l/libreoffice/libreoffice.kur-kos new file mode 100644 index 000000000..f7fe3c732 --- /dev/null +++ b/talimatname/genel/l/libreoffice/libreoffice.kur-kos @@ -0,0 +1,9 @@ +_l="/etc/login.defs" +_p="/etc/passwd" +l=$(grep "^UID_MIN" $_l) +l1=$(grep "^UID_MAX" $_l) +users=(`awk -F':' -v "min=${l##UID_MIN}" -v "max=${l1##UID_MAX}" '{ if ( $3 >= min && $3 <= max && $7 != "/sbin/nologin" ) print $1 }' "$_p"`) +for user in "${users[@]}"; do +cp -r /tmp/libreoffice "/home/$user/.config/" +sudo chmod -R 777 /home/$user/.config/libreoffice +done diff --git a/talimatname/genel/l/libreoffice/talimat b/talimatname/genel/l/libreoffice/talimat new file mode 100644 index 000000000..d0edcde21 --- /dev/null +++ b/talimatname/genel/l/libreoffice/talimat @@ -0,0 +1,134 @@ +# Tanım: Ofis Programı +# URL: http://www.libreoffice.org/ +# Paketçi: Cihan Alkan +# Gerekler: hunspell python3 libwpd neon pango nspr clucene openjdk xmlsec libodfgen libwps libvisio libcdr libmspub libmwaw libe-book libabw libzmf libpagemaker libcmis cppunit libtommath graphite2 harfbuzz redland raptor hyphen mythes lpsolve libexttextcat liborcus beanshell libpng cairo apache-ant junit libetonyek openldap sane bluez poppler cups libatomic-ops gperf gtk2 gtk3 perl-archive-zip perl-xml-parser boost expat gstreamer-plugins-base gstreamer1-plugins-base libgsf librsvg libxml2 libxslt nss postgresql icu gsfonts dejavu-ttf npapi-sdk serf unixodbc xdg-utils desktop-file-utils +# Grup: ofis_düzenleyici + +isim=libreoffice +surum=6.0.4.2 +_surum=6.0.4 +devir=1 + +kaynak=(https://download.documentfoundation.org/libreoffice/src/${_surum}/$isim-$surum.tar.xz + https://download.documentfoundation.org/libreoffice/src/${_surum}/$isim-dictionaries-$surum.tar.xz + https://download.documentfoundation.org/libreoffice/src/${_surum}/$isim-help-$surum.tar.xz + https://download.documentfoundation.org/libreoffice/src/${_surum}/$isim-translations-$surum.tar.xz + https://kaynaklar.milislinux.org/libreofis-milis-ekler.tar.xz) + +derle() { + unset ACLOCAL + export LO_PREFIX=/usr + + #cd $SRC + #tar -xf $isim-$surum.tar.xz --no-overwrite-dir + + cd $isim-$surum + + install -dm755 external/tarballs + ln -sv $SRC/$isim-dictionaries-$surum.tar.xz external/tarballs/ + ln -sv $SRC/$isim-help-$surum.tar.xz external/tarballs/ + ln -sv $SRC/$isim-translations-$surum.tar.xz external/tarballs/ + + + sed -e "/gzip -f/d" \ + -e "s|.1.gz|.1|g" \ + -i bin/distro-install-desktop-integration + + sed -e "/distro-install-file-lists/d" -i Makefile.in + + + chmod -v +x bin/unpack-sources + +./autogen.sh --prefix=$LO_PREFIX \ + --sysconfdir=/etc \ + --with-vendor="Milis Linux" \ + --with-lang="tr" \ + --with-help \ + --with-myspell-dicts \ + --with-alloc=system \ + --without-junit \ + --without-system-dicts \ + --disable-dconf \ + --enable-odk \ + --with-jdk-home="/opt/jdk" \ + --with-ant-home="/opt/ant" \ + --disable-firebird-sdbc \ + --enable-release-build=yes \ + --enable-python=system \ + --with-system-apr \ + --with-system-boost \ + --with-system-clucene \ + --with-system-cairo \ + --with-system-curl \ + --with-system-expat \ + --with-system-icu \ + --with-system-jpeg \ + --with-system-lcms2 \ + --with-system-libatomic_ops \ + --with-system-libpng \ + --with-system-libxml \ + --with-system-libodfgen \ + --with-system-libmwaw \ + --with-system-libetonyek \ + --with-system-libvisio \ + --with-system-libcmis \ + --with-system-libmspub \ + --with-system-libexttextcat \ + --with-system-orcus \ + --with-system-liblangtag \ + --with-system-neon \ + --with-system-nss \ + --with-system-odbc \ + --with-system-openldap \ + --with-system-openssl \ + --with-system-poppler \ + --with-system-postgresql \ + --with-system-redland \ + --with-system-serf \ + --with-system-zlib \ + --with-system-beanshell \ + --with-system-cppunit\ + --with-system-graphite\ + --with-system-harfbuzz\ + --with-system-glm \ + --with-system-libwpg \ + --with-system-libwps \ + --with-system-libzmf \ + --with-system-gpgmepp \ + --with-parallelism=$(getconf _NPROCESSORS_ONLN) + make -i build-nocheck + make -i DESTDIR=$PKG distro-pack-install + + install -v -m755 -d $PKG/$LO_PREFIX/share/appdata + install -v -m644 sysui/desktop/appstream-appdata/*.xml $PKG/$LO_PREFIX/share/appdata + + # Sözlük kurulumu + chown -cR 0:0 dictionaries/ + for lang in en + do + mkdir -pv $PKG/$LO_PREFIX/lib/libreoffice/share/extensions/dict-$lang + cp -R dictionaries/$lang/* $PKG/$LO_PREFIX/lib/libreoffice/share/extensions/dict-$lang + done + + # Bu sembolik bağ, masaüstü menü girdileri için gereklidir + ln -sv -f $LO_PREFIX/lib/libreoffice/program/soffice \ + $PKG/usr/bin/libreoffice + + # Simgeler + for res in 16 32 48 128 256 + do + mkdir -p $PKG/$LO_PREFIX/share/icons/hicolor/${res}x${res}/{apps,mimetypes} + cp sysui/desktop/icons/hicolor/${res}x${res}/apps/*.png \ + $PKG/$LO_PREFIX/share/icons/hicolor/${res}x${res}/apps + cp sysui/desktop/icons/hicolor/${res}x${res}/mimetypes/*.png \ + $PKG/$LO_PREFIX/share/icons/hicolor/${res}x${res}/mimetypes + done + + rm -rf $PKG/gid* + cp -R $SRC/flat_logo.svg $PKG/usr/lib/libreoffice/program/flat_logo.svg + cp -R $SRC/intro.png $PKG/usr/lib/libreoffice/program/intro.png + cp -R $SRC/*.desktop $PKG/usr/lib/libreoffice/share/xdg/ + mkdir -p $PKG/tmp + mv $SRC/libreoffice $PKG/tmp/ +} + diff --git a/talimatname/genel/l/librep/talimat b/talimatname/genel/l/librep/talimat new file mode 100644 index 000000000..80169a2bb --- /dev/null +++ b/talimatname/genel/l/librep/talimat @@ -0,0 +1,20 @@ +# Tanım: Librep paketi bir Lisp sistemi içeriyor. +# URL: http://librep.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: libffi + +isim=librep +surum=0.92.5 +devir=2 + +kaynak=(http://download.tuxfamily.org/$isim/${isim}_$surum.tar.xz) + +derle() { +export CFLAGS="$CFLAGS -std=gnu90" +cd ${isim}_$surum +./configure --prefix=/usr \ +--disable-static +make || make -j1 +make prefix=$PKG/usr install +rm -rf $PKG/usr/share +} diff --git a/talimatname/genel/l/librest/talimat b/talimatname/genel/l/librest/talimat new file mode 100644 index 000000000..8f6590bc2 --- /dev/null +++ b/talimatname/genel/l/librest/talimat @@ -0,0 +1,21 @@ +# Tanım: "RESTful" olduğunu söyleyen internet servislerine daha kolay erişmenizi sağlar. +# URL: http://www.gnome.org/ +# Paketçi: milisarge +# Gerekler: libsoup gobject-introspection + +isim=librest +surum=0.8.1 +devir=1 + +kaynak=(https://git.gnome.org/browse/librest/snapshot/librest-$surum.tar.xz) + +derle() { +cd librest-$surum +NOCONFIGURE=1 ./autogen.sh +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --with-ca-certificates=/etc/ssl/certs +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/librevenge/talimat b/talimatname/genel/l/librevenge/talimat new file mode 100644 index 000000000..31d71f755 --- /dev/null +++ b/talimatname/genel/l/librevenge/talimat @@ -0,0 +1,15 @@ +# Tanım: Librevenge, belge içe aktarma filtreleri yazmak için kullanılan bir temel kitaplıktır. +# URL: http://sf.net/p/libwpd/librevenge/ +# Paketçi: milisarge +# Gerekler: boost cppunit doxygen + +isim=librevenge +surum=0.0.4 +devir=1 +kaynak=(http://sourceforge.net/projects/libwpd/files/$isim/$isim-$surum/$isim-$surum.tar.xz) +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libringclient/talimat b/talimatname/genel/l/libringclient/talimat new file mode 100644 index 000000000..96761d057 --- /dev/null +++ b/talimatname/genel/l/libringclient/talimat @@ -0,0 +1,22 @@ +# Tanım: Client communication library for ring.cx (formerly known as SFLphone) +# URL: https://ring.cx +# Paketçi: milisarge +# Gerekler: cmake qt5 ring-daemon + +isim=libringclient +surum=git +devir=1 +kaynak=(https://github.com/savoirfairelinux/ring-lrc/archive/master.tar.gz::$isim-git-$devir.tar.gz) + +derle() { + cd "ring-lrc-master" + mkdir -p build + cd build + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release + + make + make DESTDIR="$PKG" install + +} diff --git a/talimatname/genel/l/librsvg/librsvg.kur-kos b/talimatname/genel/l/librsvg/librsvg.kur-kos new file mode 100644 index 000000000..a08e4b155 --- /dev/null +++ b/talimatname/genel/l/librsvg/librsvg.kur-kos @@ -0,0 +1 @@ +/usr/bin/gdk-pixbuf-query-loaders --update-cache diff --git a/talimatname/genel/l/librsvg/talimat b/talimatname/genel/l/librsvg/talimat new file mode 100644 index 000000000..3ca5e30c2 --- /dev/null +++ b/talimatname/genel/l/librsvg/talimat @@ -0,0 +1,18 @@ +# Tanım: Ölçeklenebilir Vektör Grafikleri işlemek, değiştirmek ve görüntülemek için kullanılan kütüphane ve araçlar. +# URL: http://librsvg.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: gdk-pixbuf libcroco pango vala + +isim=librsvg +surum=2.40.13 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--disable-static \ +--enable-vala +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libsamplerate/talimat b/talimatname/genel/l/libsamplerate/talimat new file mode 100644 index 000000000..127d313d2 --- /dev/null +++ b/talimatname/genel/l/libsamplerate/talimat @@ -0,0 +1,18 @@ +# Tanım: Secret Rabbit Code (aka libsamplerate), ses için örnek bir hız dönüştürücüsüdür. +# URL: http://www.mega-nerd.com/SRC/index.html +# Paketçi: pierre at nutyx dot org +# Gerekler: libsndfile flac + +isim=libsamplerate +surum=0.1.8 +devir=1 + +kaynak=(http://www.mega-nerd.com/SRC/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr +make +make htmldocdir=/usr/share/doc/libsamplerate-$surum \ + DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libseccomp/talimat b/talimatname/genel/l/libseccomp/talimat new file mode 100644 index 000000000..ddbdae571 --- /dev/null +++ b/talimatname/genel/l/libseccomp/talimat @@ -0,0 +1,19 @@ +# Tanım: Geliştirilmiş seccomp kitaplığı +# URL: http://sourceforge.net/projects/libseccomp/ +# Paketçi: milisarge +# Gerekler: + +isim=libseccomp +surum=2.1.1 +devir=1 + +kaynak=( +http://downloads.sourceforge.net/project/$isim/$isim-$surum/$isim-$surum.tar.gz) + + +derle(){ + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libsecp256k1/talimat b/talimatname/genel/l/libsecp256k1/talimat new file mode 100644 index 000000000..3d8230875 --- /dev/null +++ b/talimatname/genel/l/libsecp256k1/talimat @@ -0,0 +1,36 @@ +# Tanım: Optimized C library for EC operations on curve secp256k1 +# URL: https://github.com/bitcoin-core/secp256k1 +# Paketçi: milisarge +# Gerekler: +# Grup: kütüphane + +isim=libsecp256k1 +surum=git +devir=1 +kaynak=(https://github.com/bitcoin-core/secp256k1/archive/master.tar.gz::$isim-git-$devir.tar.gz) + +derle() { + cd "secp256k1-master" + ./autogen.sh + ./configure \ + --prefix=/usr \ + --sbindir=/usr/bin \ + --libexecdir=/usr/bin \ + --sysconfdir=/etc \ + --sharedstatedir=/usr/share/libsecp256k1 \ + --localstatedir=/var/lib/libsecp256k1 \ + --disable-static \ + --disable-benchmark \ + --disable-coverage \ + --enable-module-recovery \ + --disable-jni \ + --enable-tests \ + --enable-exhaustive-tests \ + --disable-openssl-tests \ + --with-gnu-ld + make + make check + install -Dm 644 COPYING -t "$PKG/usr/share/licenses/libsecp256k1" + install -Dm 644 README.md -t "$PKG/usr/share/doc/libsecp256k1" + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/l/libsecret/talimat b/talimatname/genel/l/libsecret/talimat new file mode 100644 index 000000000..a85a17576 --- /dev/null +++ b/talimatname/genel/l/libsecret/talimat @@ -0,0 +1,20 @@ +# Tanım: Secret Service API'sına erişmek için GObject tabanlı kütüphane. +# URL: http://www.gnome.org/ +# Paketçi: milisarge +# Gerekler: intltool libxslt docbook-xsl glib gobject-introspection libgcrypt vala gtk-doc + +isim=libsecret +surum=0.18.5 +devir=1 + +kaynak=(https://git.gnome.org/browse/libsecret/snapshot/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + NOCONFIGURE=1 ./autogen.sh + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + --disable-static --enable-gtk-doc + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/gtk-doc +} diff --git a/talimatname/genel/l/libselinux/libselinux.tmpfiles.d b/talimatname/genel/l/libselinux/libselinux.tmpfiles.d new file mode 100644 index 000000000..b2aaf2e4c --- /dev/null +++ b/talimatname/genel/l/libselinux/libselinux.tmpfiles.d @@ -0,0 +1 @@ +d /run/setrans 0755 root root diff --git a/talimatname/genel/l/libselinux/talimat b/talimatname/genel/l/libselinux/talimat new file mode 100644 index 000000000..4ad87856c --- /dev/null +++ b/talimatname/genel/l/libselinux/talimat @@ -0,0 +1,27 @@ +# Tanım: SELinux kitaplığı ve basit araçları +# URL: http://userspace.selinuxproject.org" +# Paketçi: yasarciv67@gmail.com +# Gerekler: python3 python libsepol pcre + + +isim=libselinux +surum=2.4 +devir=1 + +kaynak=(https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20150202/${isim}-${surum}.tar.gz + libselinux.tmpfiles.d) +derle() { +cd ${isim}-${surum} + sed -i 's|pkg-config --cflags ruby|pkg-config --cflags ruby-$(RUBYLIBVER)|' src/Makefile + sed -i 's|site_ruby|vendor_ruby|' src/Makefile + #make swigify + make all + #make PYTHON=python2 pywrap + #make PYTHON=python3 pywrap + #make rubywrap +make DESTDIR=${PKG} USRBINDIR=${PKG}/usr/bin LIBDIR=${PKG}/usr/lib SHLIBDIR=${PKG}/usr/lib install +#make DESTDIR=${PKG} USRBINDIR=${PKG}/usr/bin LIBDIR=${PKG}/usr/lib SHLIBDIR=${PKG}/usr/lib PYTHON=python2 install-pywrap +#make DESTDIR=${PKG} USRBINDIR=${PKG}/usr/bin LIBDIR=${PKG}/usr/lib SHLIBDIR=${PKG}/usr/lib PYTHON=python3 install-pywrap +#make DESTDIR=${PKG} USRBINDIR=${PKG}/usr/bin LIBDIR=${PKG}/usr/lib SHLIBDIR=${PKG}/usr/lib install-rubywrap +install -Dm 0644 ${SRC}/libselinux.tmpfiles.d ${PKG}/usr/lib/tmpfiles.d/libselinux.conf +} diff --git a/talimatname/genel/l/libsepol/talimat b/talimatname/genel/l/libsepol/talimat new file mode 100644 index 000000000..949f3b84b --- /dev/null +++ b/talimatname/genel/l/libsepol/talimat @@ -0,0 +1,15 @@ +# Tanım: SELinux ikili politika manipülasyon kütüphanesi +# URL: http://userspace.selinuxproject.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: + +isim=libsepol +surum=2.4 +devir=1 + +kaynak=(https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20150202/${isim}-${surum}.tar.gz) +derle() { + cd ${isim}-${surum} + make + make DESTDIR=${PKG} LIBDIR=${PKG}/usr/lib SHLIBDIR=${PKG}/usr/lib install +} diff --git a/talimatname/genel/l/libsexy/talimat b/talimatname/genel/l/libsexy/talimat new file mode 100644 index 000000000..f26156940 --- /dev/null +++ b/talimatname/genel/l/libsexy/talimat @@ -0,0 +1,21 @@ +# Tanım: İyi widget'lara yaramaz şeyler yapıyor. +# URL: http://chipx86.com/wiki/Libsexy +# Paketçi: Cihan_Alkan +# Gerekler: gtk2 libxml2 iso-codes +# Grup: kütüphane + +isim=libsexy +surum=0.1.11 +devir=1 + +kaynak=(http://releases.chipx86.com/libsexy/libsexy/${isim}-${surum}.tar.gz) + +derle() { + + cd ${isim}-${surum} + ./configure --prefix=/usr --disable-static + make + make DESTDIR=${PKG} install + + rm -f ${PKG}/usr/lib/libsexy.a +} diff --git a/talimatname/genel/l/libsexymm/talimat b/talimatname/genel/l/libsexymm/talimat new file mode 100644 index 000000000..a6edc85dd --- /dev/null +++ b/talimatname/genel/l/libsexymm/talimat @@ -0,0 +1,19 @@ +# Tanım: Libsexy için C ++ bağları +# URL: http://osiris.chipx86.com/projects/libsexy +# Paketçi: Cihan_Alkan +# Gerekler: libsexy gtkmm +# Grup: kütüphane + +isim=libsexymm +surum=0.1.9 +devir=1 + +kaynak=(http://releases.chipx86.com/libsexy/libsexymm/${isim}-${surum}.tar.gz) + +derle() { + + cd ${isim}-${surum} + ./configure --prefix=/usr || return 1 + make || return 1 + make DESTDIR="${PKG}" install || return 1 +} diff --git a/talimatname/genel/l/libshout/talimat b/talimatname/genel/l/libshout/talimat new file mode 100644 index 000000000..77d863bb4 --- /dev/null +++ b/talimatname/genel/l/libshout/talimat @@ -0,0 +1,17 @@ +# Tanım: Shoutcast / icecast sunucusuna erişmek için kullanılan kitaplık +# URL: http://www.icecast.org/ +# Paketçi: milisarge +# Gerekler: libvorbis libtheora speex + +isim=libshout +surum=2.4.1 +devir=1 + +kaynak=(http://downloads.xiph.org/releases/$isim/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libsigc++/talimat b/talimatname/genel/l/libsigc++/talimat new file mode 100644 index 000000000..4c0c3788d --- /dev/null +++ b/talimatname/genel/l/libsigc++/talimat @@ -0,0 +1,17 @@ +# Tanım: Libsigc ++ paketi, standart C ++ için tip öncesi bir geri arama sistemi uygular. +# URL: http://libsigc.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: + +isim=libsigc++ +surum=2.6.2 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libsignon-glib/talimat b/talimatname/genel/l/libsignon-glib/talimat new file mode 100644 index 000000000..05bbd3d5c --- /dev/null +++ b/talimatname/genel/l/libsignon-glib/talimat @@ -0,0 +1,22 @@ +# Tanım: Hesap kimlik doğrulamasını yürüten uygulamalar için GLib tabanlı istemci kitaplığı +# URL: https://gitlab.com/accounts-sso/libsignon-glib +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: signond python-gobject gobject-introspection + +isim=libsignon-glib +surum=1.14 +devir=1 + +PKGMK_KEEP_SOURCES="no" + +kaynak=(https://gitlab.com/accounts-sso/libsignon-glib/repository/archive.tar.gz) + +derle() { +cd libsignon-glib* + ./autogen.sh + ./configure --prefix=/usr \ + --localstatedir=/var \ + --sysconfdir=/etc + make -j1 + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libsigsegv/talimat b/talimatname/genel/l/libsigsegv/talimat new file mode 100644 index 000000000..06fdd855b --- /dev/null +++ b/talimatname/genel/l/libsigsegv/talimat @@ -0,0 +1,22 @@ +# Tanım: Kullanıcı modunda sayfa hatalarını işleme. +# URL: http://ftp.debian.org/debian/pool/main/libp/libpaper +# Paketçi: milisarge +# Gerekler: + +isim=libsigsegv +surum=2.11 +devir=1 + +kaynak=(http://ftp.gnu.org/gnu/libsigsegv/$isim-$surum.tar.gz) + +derle() { + + cd $isim-$surum + + ./configure --prefix=/usr \ + --enable-shared \ + --disable-static + make + make DESTDIR=$PKG install + +} diff --git a/talimatname/genel/l/libsndfile/talimat b/talimatname/genel/l/libsndfile/talimat new file mode 100644 index 000000000..753e38d3c --- /dev/null +++ b/talimatname/genel/l/libsndfile/talimat @@ -0,0 +1,19 @@ +# Tanım: Örneklenmiş ses içeren dosyaları okumak ve yazmak için bir C kütüphanesi +# URL: http://www.mega-nerd.com/libsndfile/ +# Paketçi: milisarge +# Gerekler: flac alsa-lib libogg libvorbis + +isim=libsndfile +surum=1.0.25 +devir=1 + +kaynak=( http://www.mega-nerd.com/$isim/files/$isim-$surum.tar.gz) + +derle() { +cd $isim-* +./configure --prefix=/usr \ +--mandir=/usr/share/man \ +--infodir=/usr/share/info +make +make DESTDIR=$PKG htmldocdir=/usr/share/doc/libsndfile-$surum install +} diff --git a/talimatname/genel/l/libsodium/talimat b/talimatname/genel/l/libsodium/talimat new file mode 100644 index 000000000..81747a801 --- /dev/null +++ b/talimatname/genel/l/libsodium/talimat @@ -0,0 +1,18 @@ +# Tanım: Sodium, şifreleme, şifre çözme, imzalar, şifre karması ve daha fazlası için modern, kullanımı kolay bir yazılım kütüphanesi. +# URL: http://doc.libsodium.org/ +# Paketçi: milisarge +# Gerekler: + +isim=libsodium +surum=master +devir=1 +kaynak=(https://github.com/jedisct1/$isim/archive/$surum.tar.gz) + +derle() { + mv $DERLEME_KAYNAKDIZIN/$surum.tar.gz $DERLEME_KAYNAKDIZIN/$isim-$surum.tar.gz + cd $isim-$surum + ./autogen.sh + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libsoundio/talimat b/talimatname/genel/l/libsoundio/talimat new file mode 100644 index 000000000..dffeefc87 --- /dev/null +++ b/talimatname/genel/l/libsoundio/talimat @@ -0,0 +1,29 @@ +# Tanım: Çapraz platform ses girişi ve çıkışı sağlayan bir C99 kütüphanesi +# URL: http://www.github.com/andrewrk/libsoundio +# Paketçi: Cihan_Alkan +# Gerekler: cmake jack +# Grup: kütüphane + +isim=libsoundio +surum=1.1.0 +devir=1 +kaynak=(https://github.com/andrewrk/$isim/archive/$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + mkdir -p "$isim-$surum.build" + cd "$isim-$surum.build" + cmake \ + -D CMAKE_BUILD_TYPE=Release \ + -D CMAKE_INSTALL_PREFIX=/usr \ + -D CMAKE_INSTALL_LIBDIR=lib \ + -D BUILD_EXAMPLE_PROGRAMS=OFF \ + -D BUILD_TESTS=OFF \ + -D BUILD_STATIC_LIBS=OFF \ + -D ENABLE_JACK=ON \ + "$SRC/$isim-$surum" + make + cd $SRC + make \ + -C "$isim-$surum.build" \ + install DESTDIR="$PKG" +} diff --git a/talimatname/genel/l/libsoup-22/talimat b/talimatname/genel/l/libsoup-22/talimat new file mode 100644 index 000000000..52e4453e6 --- /dev/null +++ b/talimatname/genel/l/libsoup-22/talimat @@ -0,0 +1,20 @@ +# Tanım: GNOME için HTTP istemci/sunucu kitaplığı +# URL: https://wiki.gnome.org/LibSoup +# Paketçi: Cihan_Alkan +# Gerekler: libxml2 glib +# Grup: kütüphane + +isim=libsoup-22 +surum=2.2.105 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/libsoup/2.2/libsoup-${surum}.tar.bz2 + update.patch) + +derle() { + cd libsoup-${surum} + patch -p1 -i ../update.patch + ./configure --prefix=/usr + make + make DESTDIR="${PKG}" install +} diff --git a/talimatname/genel/l/libsoup-22/update.patch b/talimatname/genel/l/libsoup-22/update.patch new file mode 100644 index 000000000..f65613dff --- /dev/null +++ b/talimatname/genel/l/libsoup-22/update.patch @@ -0,0 +1,526 @@ +diff -Naur old/libsoup/soup-date.h new/libsoup/soup-date.h +--- old/libsoup/soup-date.h 2017-02-10 01:35:49.989098347 -0300 ++++ new/libsoup/soup-date.h 2017-02-10 01:57:25.820430907 -0300 +@@ -7,7 +7,7 @@ + #define SOUP_DATE_H 1 + + #include <time.h> +-#include <glib/gmacros.h> ++#include <glib.h> + + G_BEGIN_DECLS + +diff -Naur old/libsoup/soup-gnutls.c new/libsoup/soup-gnutls.c +--- old/libsoup/soup-gnutls.c 2017-02-10 01:35:50.009097801 -0300 ++++ new/libsoup/soup-gnutls.c 2017-02-10 01:55:37.232919388 -0300 +@@ -31,7 +31,7 @@ + #define DH_BITS 1024 + + struct SoupSSLCredentials { +- gnutls_certificate_credentials creds; ++ gnutls_certificate_credentials_t creds; + gboolean have_ca_file; + }; + +@@ -39,7 +39,7 @@ + GIOChannel channel; + int fd; + GIOChannel *real_sock; +- gnutls_session session; ++ gnutls_session_t session; + SoupSSLCredentials *creds; + char *hostname; + gboolean established; +@@ -47,11 +47,15 @@ + } SoupGNUTLSChannel; + + static gboolean +-verify_certificate (gnutls_session session, const char *hostname, GError **err) ++verify_certificate (gnutls_session_t session, const char *hostname, GError **err) + { ++ gnutls_typed_vdata_st dns_hostname_data; + int status; + +- status = gnutls_certificate_verify_peers (session); ++ dns_hostname_data.type = GNUTLS_DT_DNS_HOSTNAME; ++ dns_hostname_data.data = hostname; ++ dns_hostname_data.size = sizeof(hostname); ++ gnutls_certificate_verify_peers (session, &dns_hostname_data, 1, &status); + + if (status == GNUTLS_E_NO_CERTIFICATE_FOUND) { + g_set_error (err, SOUP_SSL_ERROR, +@@ -97,7 +101,7 @@ + "Error initializing SSL certificate."); + return FALSE; + } +- ++ + cert_list = gnutls_certificate_get_peers ( + session, &cert_list_size); + +diff -Naur old/libsoup/soup-portability.h new/libsoup/soup-portability.h +--- old/libsoup/soup-portability.h 2017-02-10 01:35:49.922433498 -0300 ++++ new/libsoup/soup-portability.h 2017-02-10 00:36:13.098107354 -0300 +@@ -6,7 +6,7 @@ + #ifndef SOUP_PORTABILITY_H + #define SOUP_PORTABILITY_H + +-#include <glibconfig.h> ++#include <glib.h> + + #ifdef G_OS_WIN32 + +diff -Naur old/libsoup/soup-types.h new/libsoup/soup-types.h +--- old/libsoup/soup-types.h 2017-02-10 01:35:49.989098347 -0300 ++++ new/libsoup/soup-types.h 2017-02-10 01:01:39.436418562 -0300 +@@ -6,7 +6,7 @@ + #ifndef SOUP_TYPES_H + #define SOUP_TYPES_H 1 + +-#include <glib/gtypes.h> ++#include <glib.h> + #include <glib-object.h> + + #include <libsoup/soup-status.h> +diff -Naur old/tests/context-test.c new/tests/context-test.c +--- old/tests/context-test.c 2017-02-10 02:13:38.945262431 -0300 ++++ new/tests/context-test.c 2017-02-10 02:13:20.739447586 -0300 +@@ -28,7 +28,7 @@ + char *base_uri; + + static void +-dprintf (const char *format, ...) ++_dprintf (const char *format, ...) + { + va_list args; + +@@ -168,7 +168,7 @@ + { + GMainLoop *loop; + +- dprintf ("Test 1: blocking the main thread does not block other thread\n"); ++ _dprintf ("Test 1: blocking the main thread does not block other thread\n"); + + test1_cond = g_cond_new (); + test1_mutex = g_mutex_new (); +@@ -196,7 +196,7 @@ + if (g_cond_timed_wait (test1_cond, test1_mutex, &time)) + g_thread_join (thread); + else { +- dprintf (" timeout!\n"); ++ _dprintf (" timeout!\n"); + errors++; + } + +@@ -232,17 +232,17 @@ + + uri = g_build_filename (base_uri, "slow", NULL); + +- dprintf (" send_message\n"); ++ _dprintf (" send_message\n"); + msg = soup_message_new ("GET", uri); + soup_session_send_message (session, msg); + if (msg->status_code != SOUP_STATUS_OK) { +- dprintf (" unexpected status: %d %s\n", ++ _dprintf (" unexpected status: %d %s\n", + msg->status_code, msg->reason_phrase); + errors++; + } + g_object_unref (msg); + +- dprintf (" queue_message\n"); ++ _dprintf (" queue_message\n"); + msg = soup_message_new ("GET", uri); + loop = g_main_loop_new (async_context, FALSE); + g_object_ref (msg); +@@ -250,7 +250,7 @@ + g_main_loop_run (loop); + g_main_loop_unref (loop); + if (msg->status_code != SOUP_STATUS_OK) { +- dprintf (" unexpected status: %d %s\n", ++ _dprintf (" unexpected status: %d %s\n", + msg->status_code, msg->reason_phrase); + errors++; + } +@@ -279,7 +279,7 @@ + char *uri; + SoupMessage *msg; + +- dprintf ("Test 2: a session with its own context is independent of the main loop.\n"); ++ _dprintf ("Test 2: a session with its own context is independent of the main loop.\n"); + + idle = g_idle_add_full (G_PRIORITY_HIGH, idle_test2_fail, NULL, NULL); + +@@ -291,11 +291,11 @@ + + uri = g_build_filename (base_uri, "slow", NULL); + +- dprintf (" send_message\n"); ++ _dprintf (" send_message\n"); + msg = soup_message_new ("GET", uri); + soup_session_send_message (session, msg); + if (msg->status_code != SOUP_STATUS_OK) { +- dprintf (" unexpected status: %d %s\n", ++ _dprintf (" unexpected status: %d %s\n", + msg->status_code, msg->reason_phrase); + errors++; + } +@@ -311,7 +311,7 @@ + static gboolean + idle_test2_fail (gpointer user_data) + { +- dprintf (" idle ran!\n"); ++ _dprintf (" idle ran!\n"); + errors++; + return FALSE; + } +@@ -356,7 +356,7 @@ + g_free (base_uri); + g_main_context_unref (g_main_context_default ()); + +- dprintf ("\n"); ++ _dprintf ("\n"); + if (errors) { + printf ("context-test: %d error(s). Run with '-d' for details\n", + errors); +diff -Naur old/tests/header-parsing.c new/tests/header-parsing.c +--- old/tests/header-parsing.c 2017-02-10 02:13:38.871932506 -0300 ++++ new/tests/header-parsing.c 2017-02-10 02:23:46.022468627 -0300 +@@ -10,7 +10,7 @@ + gboolean debug = FALSE; + + static void +-dprintf (const char *format, ...) ++_dprintf (const char *format, ...) + { + va_list args; + +@@ -455,7 +455,7 @@ + print_header (gpointer key, gpointer value, gpointer data) + { + GSList *values = value; +- dprintf (" '%s': '%s'\n", ++ _dprintf (" '%s': '%s'\n", + (char *)key, (char*)values->data); + } + +@@ -480,11 +480,11 @@ + SoupHttpVersion version; + GHashTable *headers; + +- dprintf ("Request tests\n"); ++ _dprintf ("Request tests\n"); + for (i = 0; i < 1; i++) { + gboolean ok = TRUE; + +- dprintf ("%2d. %s (%s): ", i + 1, reqtests[i].description, ++ _dprintf ("%2d. %s (%s): ", i + 1, reqtests[i].description, + reqtests[i].method ? "should parse" : "should NOT parse"); + + headers = g_hash_table_new_full (g_str_hash, g_str_equal, +@@ -519,34 +519,34 @@ + } + + if (ok) +- dprintf ("OK!\n"); ++ _dprintf ("OK!\n"); + else { +- dprintf ("BAD!\n"); ++ _dprintf ("BAD!\n"); + errors++; + if (reqtests[i].method) { +- dprintf (" expected: '%s' '%s' 'HTTP/1.%d'\n", ++ _dprintf (" expected: '%s' '%s' 'HTTP/1.%d'\n", + reqtests[i].method, reqtests[i].path, + reqtests[i].version); + for (h = 0; reqtests[i].headers[h].name; h++) { +- dprintf (" '%s': '%s'\n", ++ _dprintf (" '%s': '%s'\n", + reqtests[i].headers[h].name, + reqtests[i].headers[h].value); + } + } else +- dprintf (" expected: parse error\n"); ++ _dprintf (" expected: parse error\n"); + if (method) { +- dprintf (" got: '%s' '%s' 'HTTP/1.%d'\n", ++ _dprintf (" got: '%s' '%s' 'HTTP/1.%d'\n", + method, path, version); + g_hash_table_foreach (headers, print_header, NULL); + } else +- dprintf (" got: parse error\n"); ++ _dprintf (" got: parse error\n"); + } + + g_free (method); + g_free (path); + g_hash_table_destroy (headers); + } +- dprintf ("\n"); ++ _dprintf ("\n"); + + return errors; + } +@@ -561,11 +561,11 @@ + SoupHttpVersion version; + GHashTable *headers; + +- dprintf ("Response tests\n"); ++ _dprintf ("Response tests\n"); + for (i = 0; i < num_resptests; i++) { + gboolean ok = TRUE; + +- dprintf ("%2d. %s (%s): ", i + 1, resptests[i].description, ++ _dprintf ("%2d. %s (%s): ", i + 1, resptests[i].description, + resptests[i].reason_phrase ? "should parse" : "should NOT parse"); + + headers = g_hash_table_new_full (g_str_hash, g_str_equal, +@@ -600,34 +600,34 @@ + } + + if (ok) +- dprintf ("OK!\n"); ++ _dprintf ("OK!\n"); + else { +- dprintf ("BAD!\n"); ++ _dprintf ("BAD!\n"); + errors++; + if (resptests[i].reason_phrase) { +- dprintf (" expected: 'HTTP/1.%d' '%03d' '%s'\n", ++ _dprintf (" expected: 'HTTP/1.%d' '%03d' '%s'\n", + resptests[i].version, + resptests[i].status_code, + resptests[i].reason_phrase); + for (h = 0; resptests[i].headers[h].name; h++) { +- dprintf (" '%s': '%s'\n", ++ _dprintf (" '%s': '%s'\n", + resptests[i].headers[h].name, + resptests[i].headers[h].value); + } + } else +- dprintf (" expected: parse error\n"); ++ _dprintf (" expected: parse error\n"); + if (reason_phrase) { +- dprintf (" got: 'HTTP/1.%d' '%03d' '%s'\n", ++ _dprintf (" got: 'HTTP/1.%d' '%03d' '%s'\n", + version, status_code, reason_phrase); + g_hash_table_foreach (headers, print_header, NULL); + } else +- dprintf (" got: parse error\n"); ++ _dprintf (" got: parse error\n"); + } + + g_free (reason_phrase); + g_hash_table_destroy (headers); + } +- dprintf ("\n"); ++ _dprintf ("\n"); + + return errors; + } +@@ -651,7 +651,7 @@ + errors = do_request_tests (); + errors += do_response_tests (); + +- dprintf ("\n"); ++ _dprintf ("\n"); + if (errors) { + printf ("header-parsing: %d error(s). Run with '-d' for details\n", + errors); +diff -Naur old/tests/ntlm-test.c new/tests/ntlm-test.c +--- old/tests/ntlm-test.c 2017-02-10 02:13:38.945262431 -0300 ++++ new/tests/ntlm-test.c 2017-02-10 02:25:13.617865774 -0300 +@@ -29,7 +29,7 @@ + gboolean debug = FALSE; + + static void +-dprintf (const char *format, ...) ++_dprintf (const char *format, ...) + { + va_list args; + +@@ -219,58 +219,58 @@ + G_CALLBACK (ntlm_response_check), &state); + + soup_session_send_message (session, msg); +- dprintf (" %-10s -> ", path); ++ _dprintf (" %-10s -> ", path); + + if (state.got_prompt) { +- dprintf (" PROMPT"); ++ _dprintf (" PROMPT"); + if (!get_prompt) { +- dprintf ("???"); ++ _dprintf ("???"); + errors++; + } + } else if (get_prompt) { +- dprintf (" no-prompt???"); ++ _dprintf (" no-prompt???"); + errors++; + } + + if (state.sent_request) { +- dprintf (" REQUEST"); ++ _dprintf (" REQUEST"); + if (!do_ntlm) { +- dprintf ("???"); ++ _dprintf ("???"); + errors++; + } + } else if (do_ntlm) { +- dprintf (" no-request???"); ++ _dprintf (" no-request???"); + errors++; + } + + if (state.got_challenge) { +- dprintf (" CHALLENGE"); ++ _dprintf (" CHALLENGE"); + if (!do_ntlm) { +- dprintf ("???"); ++ _dprintf ("???"); + errors++; + } + } else if (do_ntlm) { +- dprintf (" no-challenge???"); ++ _dprintf (" no-challenge???"); + errors++; + } + + if (state.sent_response) { +- dprintf (" RESPONSE"); ++ _dprintf (" RESPONSE"); + if (!do_ntlm) { +- dprintf ("???"); ++ _dprintf ("???"); + errors++; + } + } else if (do_ntlm) { +- dprintf (" no-response???"); ++ _dprintf (" no-response???"); + errors++; + } + +- dprintf (" -> %s", msg->reason_phrase); ++ _dprintf (" -> %s", msg->reason_phrase); + if (msg->status_code != status_code) { +- dprintf ("???"); ++ _dprintf ("???"); + errors++; + } +- dprintf ("\n"); ++ _dprintf ("\n"); + + g_object_unref (msg); + return errors; +@@ -327,11 +327,11 @@ + { + int errors = 0; + +- dprintf ("Round 1: Non-NTLM Connection\n"); ++ _dprintf ("Round 1: Non-NTLM Connection\n"); + errors += do_ntlm_round (base_uri, NULL); +- dprintf ("Round 2: NTLM Connection, user=alice\n"); ++ _dprintf ("Round 2: NTLM Connection, user=alice\n"); + errors += do_ntlm_round (base_uri, "alice"); +- dprintf ("Round 3: NTLM Connection, user=bob\n"); ++ _dprintf ("Round 3: NTLM Connection, user=bob\n"); + errors += do_ntlm_round (base_uri, "bob"); + + return errors; +@@ -397,7 +397,7 @@ + g_hash_table_destroy (connections); + g_main_context_unref (g_main_context_default ()); + +- dprintf ("\n"); ++ _dprintf ("\n"); + if (errors) { + printf ("ntlm-test: %d error(s). Run with '-d' for details\n", + errors); +diff -Naur old/tests/uri-parsing.c new/tests/uri-parsing.c +--- old/tests/uri-parsing.c 2017-02-10 02:13:38.871932506 -0300 ++++ new/tests/uri-parsing.c 2017-02-10 02:26:01.758934976 -0300 +@@ -10,7 +10,7 @@ + gboolean debug = FALSE; + + static void +-dprintf (const char *format, ...) ++_dprintf (const char *format, ...) + { + va_list args; + +@@ -113,21 +113,21 @@ + char *uri_string; + + if (base_uri) { +- dprintf ("<%s> + <%s> = <%s>? ", base_str, in_uri, ++ _dprintf ("<%s> + <%s> = <%s>? ", base_str, in_uri, + out_uri ? out_uri : "ERR"); + uri = soup_uri_new_with_base (base_uri, in_uri); + } else { +- dprintf ("<%s> => <%s>? ", in_uri, ++ _dprintf ("<%s> => <%s>? ", in_uri, + out_uri ? out_uri : "ERR"); + uri = soup_uri_new (in_uri); + } + + if (!uri) { + if (out_uri) { +- dprintf ("ERR\n Could not parse %s\n", in_uri); ++ _dprintf ("ERR\n Could not parse %s\n", in_uri); + return FALSE; + } else { +- dprintf ("OK\n"); ++ _dprintf ("OK\n"); + return TRUE; + } + } +@@ -136,18 +136,18 @@ + soup_uri_free (uri); + + if (!out_uri) { +- dprintf ("ERR\n Got %s\n", uri_string); ++ _dprintf ("ERR\n Got %s\n", uri_string); + return FALSE; + } + + if (strcmp (uri_string, out_uri) != 0) { +- dprintf ("NO\n Unparses to <%s>\n", uri_string); ++ _dprintf ("NO\n Unparses to <%s>\n", uri_string); + g_free (uri_string); + return FALSE; + } + g_free (uri_string); + +- dprintf ("OK\n"); ++ _dprintf ("OK\n"); + return TRUE; + } + +@@ -169,14 +169,14 @@ + } + } + +- dprintf ("Absolute URI parsing\n"); ++ _dprintf ("Absolute URI parsing\n"); + for (i = 0; i < num_abs_tests; i++) { + if (!do_uri (NULL, NULL, abs_tests[i].uri_string, + abs_tests[i].result)) + errs++; + } + +- dprintf ("\nRelative URI parsing\n"); ++ _dprintf ("\nRelative URI parsing\n"); + base_uri = soup_uri_new (base); + if (!base_uri) { + fprintf (stderr, "Could not parse %s!\n", base); +@@ -198,7 +198,7 @@ + } + soup_uri_free (base_uri); + +- dprintf ("\n"); ++ _dprintf ("\n"); + if (errs) { + printf ("uri-parsing: %d error(s). Run with '-d' for details\n", + errs); diff --git a/talimatname/genel/l/libsoup/talimat b/talimatname/genel/l/libsoup/talimat new file mode 100644 index 000000000..d23d3fd4c --- /dev/null +++ b/talimatname/genel/l/libsoup/talimat @@ -0,0 +1,18 @@ +# Tanım: Libsoup, GNOME için bir HTTP istemci / sunucu kitaplığıdır. +# URL: https://wiki.gnome.org/Projects/libsoup +# Paketçi: milisarge +# Gerekler: glib-networking libxml2 gobject-introspection vala sqlite + +isim=libsoup +surum=2.52.2 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libspectre/libspectre-0.2.7-ghostscript-9.18-1.patch b/talimatname/genel/l/libspectre/libspectre-0.2.7-ghostscript-9.18-1.patch new file mode 100644 index 000000000..13ab261c7 --- /dev/null +++ b/talimatname/genel/l/libspectre/libspectre-0.2.7-ghostscript-9.18-1.patch @@ -0,0 +1,41 @@ +Fixed error namespace for >=ghostscript-gpl-9.18 + +https://bugs.gentoo.org/563540 + +--- libspectre-0.2.7/libspectre/spectre-gs.c ++++ libspectre-0.2.7/libspectre/spectre-gs.c +@@ -43,12 +43,12 @@ + + if (code <= -100) { + switch (code) { +- case e_Fatal: ++ case gs_error_Fatal: + fprintf (stderr, "fatal internal error %d", code); + return TRUE; + break; + +- case e_ExecStackUnderflow: ++ case gs_error_ExecStackUnderflow: + fprintf (stderr, "stack overflow %d", code); + return TRUE; + break; +@@ -109,9 +109,9 @@ + set = _spectre_strdup_printf ("%d %d translate\n", -x, -y); + error = gsapi_run_string_continue (ghostscript_instance, set, strlen (set), + 0, &exit_code); +- error = error == e_NeedInput ? 0 : error; ++ error = error == gs_error_NeedInput ? 0 : error; + free (set); +- if (error != e_NeedInput && critic_error_code (error)) { ++ if (error != gs_error_NeedInput && critic_error_code (error)) { + fclose (fd); + return FALSE; + } +@@ -126,7 +126,7 @@ + read = fread (buf, sizeof (char), to_read, fd); + error = gsapi_run_string_continue (ghostscript_instance, + buf, read, 0, &exit_code); +- error = error == e_NeedInput ? 0 : error; ++ error = error == gs_error_NeedInput ? 0 : error; + left -= read; + } diff --git a/talimatname/genel/l/libspectre/talimat b/talimatname/genel/l/libspectre/talimat new file mode 100644 index 000000000..b047abdea --- /dev/null +++ b/talimatname/genel/l/libspectre/talimat @@ -0,0 +1,22 @@ +# Tanım: Postscript belgeler için yapılmış kütüphane +# URL: http://libspectre.freedesktop.org/wiki/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: ghostscript + +isim=libspectre +surum=0.2.7 +devir=1 + +kaynak=(http://libspectre.freedesktop.org/releases/$isim-$surum.tar.gz + libspectre-$surum-ghostscript-9.18-1.patch) + +derle() { +cd $isim-$surum + patch -Np1 -i ../libspectre-$surum-ghostscript-9.18-1.patch + ./configure --prefix=/usr \ + --disable-static + + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/l/libspiro/talimat b/talimatname/genel/l/libspiro/talimat new file mode 100644 index 000000000..02f22f7a2 --- /dev/null +++ b/talimatname/genel/l/libspiro/talimat @@ -0,0 +1,19 @@ +# Tanım: Eğrilerin çizimini basitleştiren kütüphane +# URL: https://github.com/fontforge/libspiro +# Paketçi: milisarge +# Gerekler: + +isim=libspiro +surum=0.5.20150702 +devir=1 +kaynak=(https://github.com/fontforge/libspiro/archive/${surum}.tar.gz) + +derle() { + cd $isim-${surum} + autoreconf -i + automake --foreign -Wall + ./configure --prefix=/usr + make + make DESTDIR="${PKG}" install + install -Dm644 libspiro.pc "${PKG}"/usr/lib/pkgconfig/libspiro.pc +} diff --git a/talimatname/genel/l/libspotify/talimat b/talimatname/genel/l/libspotify/talimat new file mode 100644 index 000000000..76629cefb --- /dev/null +++ b/talimatname/genel/l/libspotify/talimat @@ -0,0 +1,25 @@ +# Tanım: C API spotify için. +# URL: https://developer.spotify.com/technologies/libspotify/ +# Paketçi: milisarge +# Gerekler: +# Grup: kütüphane + +isim=libspotify +surum=12.1.51 +devir=1 +kaynak=(http://developer.spotify.com/download/libspotify/libspotify-${surum}-Linux-x86_64-release.tar.gz) + +derle() { + cd "$SRC/$isim-$surum-Linux-x86_64-release" + sed -i 's/ldconfig//' Makefile + make prefix="$PKG/usr" install + cp -R share "$PKG"/usr/share + mkdir -p "$PKG"/usr/share/man + mv "$PKG"/usr/share/man3 "$PKG"/usr/share/man/man3 + sed -e s:PKG_PREFIX:/usr:g \ + < lib/pkgconfig/libspotify.pc \ + > "$PKG"/usr/lib/pkgconfig/libspotify.pc + install -Dm644 LICENSE licenses.xhtml "$PKG"/usr/share/doc/libspotify + mkdir -p "$PKG"/usr/share/licenses/libspotify + ln -s ../../doc/libspotify/LICENSE "$PKG"/usr/share/licenses/libspotify/LICENSE +} diff --git a/talimatname/genel/l/libspoton/talimat b/talimatname/genel/l/libspoton/talimat new file mode 100644 index 000000000..50c290e85 --- /dev/null +++ b/talimatname/genel/l/libspoton/talimat @@ -0,0 +1,19 @@ +# Tanım: Spot-On bağlam kütüphanesi +# URL: http://spot-on.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: sqlite unzip libgcrypt libntru + +isim=libspoton +surum=2017.01.20 +devir=1 +kaynak=(http://downloads.sourceforge.net/project/spot-on/Version%20${surum}/Spot-On-Src.d.zip?r=) + +derle() { + unzip $SRC/Spot* + cd "$SRC/spot-on.d/libSpotOn" + make + install -dm755 -- "$PKG/usr/lib" + install -m755 -- libspoton.so "$PKG/usr/lib/libspoton.so" + install -dm755 -- "$PKG/usr/include" + install -m755 -- libspoton.h "$PKG/usr/include/libspoton.h" +} diff --git a/talimatname/genel/l/libsrtp/talimat b/talimatname/genel/l/libsrtp/talimat new file mode 100644 index 000000000..97d54459b --- /dev/null +++ b/talimatname/genel/l/libsrtp/talimat @@ -0,0 +1,19 @@ +# Tanım: Güvenli gerçek zamanlı taşıyıcı protokolü +# URL: https://github.com/cisco/libsrtp +# Paketçi: milisarge +# Gerekler: + +isim=libsrtp +surum=1.5.4 +devir=1 +kaynak=(https://github.com/cisco/libsrtp/archive/v$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + autoreconf -fvi + ./configure --prefix=/usr + #./configure --prefix=/usr + make libsrtp.a shared_library + make DESTDIR="$PKG" install + install -Dm0644 LICENSE "${PKG}"/usr/share/licenses/${isim}/LICENSE +} diff --git a/talimatname/genel/l/libssh/talimat b/talimatname/genel/l/libssh/talimat new file mode 100644 index 000000000..78cf89c95 --- /dev/null +++ b/talimatname/genel/l/libssh/talimat @@ -0,0 +1,18 @@ +# Tanım: C kitaplıkları aracılığıyla ssh istemci servislerine erişmek için kütüphane +# URL: http://www.libssh.org/ +# Paketçi: yakar (aydin@komutan.org) +# Gerekler: doxygen cmake + +isim=libssh +surum=0.7.5 +devir=1 + +kaynak=( https://git.libssh.org/projects/libssh.git/snapshot/$isim-$surum.tar.gz) + +derle() { + cd $SRC/ + cmake $isim-$surum/ -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libssh2/talimat b/talimatname/genel/l/libssh2/talimat new file mode 100644 index 000000000..d8430ce49 --- /dev/null +++ b/talimatname/genel/l/libssh2/talimat @@ -0,0 +1,18 @@ +# Tanım: ssh2 kütüphanesi +# URL: http://www.libssh2.org/ +# Paketçi: yakar (aydin@komutan.org) +# Gerekler: doxygen cmake + +isim=libssh2 +surum=1.8.0 +devir=1 + +kaynak=(https://www.libssh2.org/download/$isim-$surum.tar.gz) + +derle() { + cd "$isim-$surum" + ./configure --prefix=/usr + make + make DESTDIR="$PKG" install + install -Dm644 COPYING "$PKG/usr/share/licenses/$isim/LICENSE" +} diff --git a/talimatname/genel/l/libstatgrab/talimat b/talimatname/genel/l/libstatgrab/talimat new file mode 100644 index 000000000..b10fea220 --- /dev/null +++ b/talimatname/genel/l/libstatgrab/talimat @@ -0,0 +1,22 @@ +# Tanım: Libstatgrab, çalıştırıldığı sistemle ilgili istatistiklere çapraz platform erişimi sağlayan bir kitaplıktır. +# URL: http://www.i-scream.org/libstatgrab/ +# Paketçi: milisarge +# Gerekler: + +isim=libstatgrab +surum=0.91 +devir=1 + +kaynak=(http://www.mirrorservice.org/sites/ftp.i-scream.org/pub/i-scream/libstatgrab/$isim-$surum.tar.gz) + +derle() { + + cd $isim-$surum + + ./configure --prefix=/usr \ + --disable-static \ + --docdir=/usr/share/doc/libstatgrab-0.91 + make + make DESTDIR=$PKG install + +} diff --git a/talimatname/genel/l/libstroke/libgstroke-Makefile.am.patch b/talimatname/genel/l/libstroke/libgstroke-Makefile.am.patch new file mode 100644 index 000000000..b3251f354 --- /dev/null +++ b/talimatname/genel/l/libstroke/libgstroke-Makefile.am.patch @@ -0,0 +1,11 @@ +--- libstroke-0.5.1/libgstroke/Makefile.am.orig 2008-06-11 13:01:29.000000000 +0400 ++++ libstroke-0.5.1/libgstroke/Makefile.am 2008-06-11 13:01:44.000000000 +0400 +@@ -21,7 +21,7 @@ + INCLUDES = @GTK_CFLAGS@ + LDADD = @GTK_LIBS@ + +-EXTRA_DIST = ++#EXTRA_DIST = + + MOSTLYCLEANFILES = core *~ + CLEANFILES = core *~ diff --git a/talimatname/genel/l/libstroke/libstroke-0.5.1-m4_syntax.patch b/talimatname/genel/l/libstroke/libstroke-0.5.1-m4_syntax.patch new file mode 100644 index 000000000..70bb720ee --- /dev/null +++ b/talimatname/genel/l/libstroke/libstroke-0.5.1-m4_syntax.patch @@ -0,0 +1,58 @@ +--- libstroke-0.5.1/libstroke.m4 {cset 02bc4a5e-e9e6-4055-a406-5007a0ac3e55} ++++ libstroke-0.5.1/libstroke.m4 {local clone} +@@ -26,7 +26,7 @@ + dnl if different from name + dnl description (optional) used to construct help string + dnl +-AC_DEFUN(smr_ARG_WITHLIB, [ ++AC_DEFUN([smr_ARG_WITHLIB], [ + + ifelse($2, , smr_lib=[$1], smr_lib=[$2]) + +@@ -74,7 +74,7 @@ + dnl extra-flags (optional) flags required when compiling the + dnl header, typically more includes; for ex. X_CFLAGS + dnl +-AC_DEFUN(smr_ARG_WITHINCLUDES, [ ++AC_DEFUN([smr_ARG_WITHINCLUDES], [ + + AC_ARG_WITH([$1]-includes, + [ --with-$1-includes=DIR set directory for $1 headers], +@@ -116,7 +116,7 @@ + dnl x-libs (optional) extra libraries, if needed to link with lib + dnl x-flags (optional) extra flags, if needed to include header files + dnl +-AC_DEFUN(smr_CHECK_LIB, ++AC_DEFUN([smr_CHECK_LIB], + [ + ifelse($2, , smr_lib=[$1], smr_lib=[$2]) + ifelse($5, , , smr_header=[$5]) +--- libstroke-0.5.1/libgstroke.m4 2011-09-10 02:59:55.000000000 -0400 ++++ libstroke-0.5.1/libgstroke.m4 2011-09-10 03:01:14.000000000 -0400 +@@ -26,7 +26,7 @@ + dnl if different from name + dnl description (optional) used to construct help string + dnl +-AC_DEFUN(smr_ARG_WITHLIB, [ ++AC_DEFUN([smr_ARG_WITHLIB], [ + + ifelse($2, , smr_lib=[$1], smr_lib=[$2]) + +@@ -74,7 +74,7 @@ + dnl extra-flags (optional) flags required when compiling the + dnl header, typically more includes; for ex. X_CFLAGS + dnl +-AC_DEFUN(smr_ARG_WITHINCLUDES, [ ++AC_DEFUN([smr_ARG_WITHINCLUDES], [ + + AC_ARG_WITH([$1]-includes, + [ --with-$1-includes=DIR set directory for $1 headers], +@@ -116,7 +116,7 @@ + dnl x-libs (optional) extra libraries, if needed to link with lib + dnl x-flags (optional) extra flags, if needed to include header files + dnl +-AC_DEFUN(smr_CHECK_LIB, ++AC_DEFUN([smr_CHECK_LIB], + [ + ifelse($2, , smr_lib=[$1], smr_lib=[$2]) + ifelse($5, , , smr_header=[$5]) diff --git a/talimatname/genel/l/libstroke/libstroke-0.5.1-no_gtk1.patch b/talimatname/genel/l/libstroke/libstroke-0.5.1-no_gtk1.patch new file mode 100644 index 000000000..a099fb991 --- /dev/null +++ b/talimatname/genel/l/libstroke/libstroke-0.5.1-no_gtk1.patch @@ -0,0 +1,33 @@ +--- libstroke-0.5.1/configure.in 2001-08-07 07:08:05.000000000 +0100 ++++ libstroke-0.5.1b/configure.in 2006-11-28 01:49:26.000000000 +0000 +@@ -81,16 +81,9 @@ + [ --with-mouse-footprints Draw mouse footprints in X], + [AC_DEFINE(STROKE_MOUSE_FOOTPRINTS)]) + +-dnl check for GTK +-dnl we won't build libgstroke if it's not found +-AC_MSG_CHECKING(gtk+ library) +-AM_PATH_GTK(1.2.7, HAVE_LIBGTK=yes +- AC_DEFINE(HAVE_LIBGTK, 1, [Define if libgtk is available]), +- AC_MSG_WARN( +-***** NOTE: The GNOME stroke support won't be built +-) +- HAVE_LIBGTK=no, +-) ++GTK_CFLAGS="" ++AC_SUBST(GTK_CFLAGS) ++HAVE_LIBGTK=no + AM_CONDITIONAL(HAVE_LIBGTK, test "x$HAVE_LIBGTK" = "xyes") + + +--- libstroke-0.5.1/Makefile.am 2001-08-07 07:03:12.000000000 +0100 ++++ libstroke-0.5.1b/Makefile.am 2006-11-28 02:00:55.000000000 +0000 +@@ -10,7 +10,7 @@ + EXTRA_DIST = COPYRIGHT CREDITS README.javastroke README.libgstroke + + m4datadir=$(datadir)/aclocal +-m4data_DATA=libstroke.m4 libgstroke.m4 ++m4data_DATA=libstroke.m4 + + MOSTLYCLEANFILES = core *~ + CLEANFILES = core *~ diff --git a/talimatname/genel/l/libstroke/libstroke-Makefile.am.patch b/talimatname/genel/l/libstroke/libstroke-Makefile.am.patch new file mode 100644 index 000000000..98707faf0 --- /dev/null +++ b/talimatname/genel/l/libstroke/libstroke-Makefile.am.patch @@ -0,0 +1,15 @@ +--- libstroke-0.5.1/libstroke/Makefile.am.orig 2008-06-11 13:01:54.000000000 +0400 ++++ libstroke-0.5.1/libstroke/Makefile.am 2008-06-11 13:02:02.000000000 +0400 +@@ -5,10 +5,10 @@ + # level Makefile. + AUTOMAKE_OPTIONS = foreign + +-EXTRA_DIST = ++#EXTRA_DIST = + + #tclpath:: +- #echo ${ENABLE_TCL} ++# echo ${ENABLE_TCL} + + #if ENABLE_TCL + #SEL_BIB = libstroke.la libstroke_tcl.la diff --git a/talimatname/genel/l/libstroke/talimat b/talimatname/genel/l/libstroke/talimat new file mode 100644 index 000000000..5052e16b3 --- /dev/null +++ b/talimatname/genel/l/libstroke/talimat @@ -0,0 +1,25 @@ +# Tanım: A stroke (mouse gesture) translation library +# URL: http://etla.net/libstroke/ +# Paketçi: milisarge +# Gerekler: xorg-libx11 + +isim=libstroke +surum=0.5.1 +devir=1 +kaynak=(http://www.etla.net/libstroke/libstroke-${surum}fvwm.tar.gz + libgstroke-Makefile.am.patch + libstroke-Makefile.am.patch + libstroke-0.5.1-m4_syntax.patch + libstroke-0.5.1-no_gtk1.patch) + +derle() { + cd ${pkgname}-${pkgver} + patch -p1 -i "${srcdir}/libgstroke-Makefile.am.patch" + patch -p1 -i "${srcdir}/libstroke-Makefile.am.patch" + patch -p1 -i "${srcdir}/libstroke-0.5.1-m4_syntax.patch" + patch -p1 -i "${srcdir}/libstroke-0.5.1-no_gtk1.patch" + autoreconf --force --install + ./configure --prefix=/usr + make + make DESTDIR="${pkgdir}" install +} diff --git a/talimatname/genel/l/libsysstat/talimat b/talimatname/genel/l/libsysstat/talimat new file mode 100644 index 000000000..2d391a20b --- /dev/null +++ b/talimatname/genel/l/libsysstat/talimat @@ -0,0 +1,20 @@ +# Tanım: Sistem istatistiklerini sorgulamak için kütüphane (net, kaynak kullanımı, ...) +# URL: http://lxqt.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: cmake qt5 lxqt-build-tools +# Grup: lxqt + +isim=libsysstat +surum=0.4.1 +devir=1 +kaynak=(https://github.com/lxde/$isim/releases/download/$surum/$isim-$surum.tar.xz) + +derle() { + mkdir -p build + cd build + cmake $SRC/$isim-$surum \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libt3config/talimat b/talimatname/genel/l/libt3config/talimat new file mode 100644 index 000000000..686873dda --- /dev/null +++ b/talimatname/genel/l/libt3config/talimat @@ -0,0 +1,18 @@ +# Tanım: Yapılandırma dosyalarını okumak ve yazmak için bir kütüphane. +# URL: http://os.ghalkes.nl/t3/libt3key.html +# Paketçi: Cihan_Alkan +# Gerekler: +# Grup:kütüphane + +isim=libt3config +surum=0.2.10 +devir=1 +kaynak=(http://os.ghalkes.nl/dist/$isim-$surum.tar.bz2) + +derle() { + cd "${SRC}/${isim}-${surum}" + ./configure --prefix=/usr CFLAGS="-O2 -D_POSIX_C_SOURCE=200809L" + make + make DESTDIR="${PKG}" install + rm -rf "${PKG}/usr/share/doc/$isim/API" +} diff --git a/talimatname/genel/l/libt3highlight/talimat b/talimatname/genel/l/libt3highlight/talimat new file mode 100644 index 000000000..1140f2bd8 --- /dev/null +++ b/talimatname/genel/l/libt3highlight/talimat @@ -0,0 +1,18 @@ +# Tanım: syntax highlighting kütüphanesi. +# URL: http://os.ghalkes.nl/t3/libt3highlight.html +# Paketçi: Cihan_Alkan +# Gerekler: libt3config +# Grup: kütüphane + +isim=libt3highlight +surum=0.4.2 +devir=1 +kaynak=(http://os.ghalkes.nl/dist/$isim-$surum.tar.bz2) + +derle() { + cd "${SRC}/${isim}-${surum}" + ./configure --prefix=/usr CFLAGS="-O2 -D_POSIX_C_SOURCE=200809L" + make + make DESTDIR="${PKG}" install + rm -rf "${PKG}/usr/share/doc/$isim/API" +} diff --git a/talimatname/genel/l/libt3key/talimat b/talimatname/genel/l/libt3key/talimat new file mode 100644 index 000000000..346fb184b --- /dev/null +++ b/talimatname/genel/l/libt3key/talimat @@ -0,0 +1,18 @@ +# Tanım: Terminal anahtar dizisi veritabanı kitaplığı. +# URL: http://os.ghalkes.nl/t3/libt3key.html +# Paketçi: Cihan_Alkan +# Gerekler: libt3config libxcb +# Grup: kütüphane + +isim=libt3key +surum=0.2.6 +devir=1 +kaynak=(http://os.ghalkes.nl/dist/$isim-$surum.tar.bz2) + +derle() { + cd "${SRC}/${isim}-${surum}" + ./configure --prefix=/usr CFLAGS="-O2 -D_POSIX_C_SOURCE=200809L" + make + make DESTDIR="${PKG}" install + rm -rf "${PKG}/usr/share/doc/$isim/API" +} diff --git a/talimatname/genel/l/libt3widget/talimat b/talimatname/genel/l/libt3widget/talimat new file mode 100644 index 000000000..f8f0d192c --- /dev/null +++ b/talimatname/genel/l/libt3widget/talimat @@ -0,0 +1,18 @@ +# Tanım: C ++ terminal iletişim araç kiti. +# URL: http://os.ghalkes.nl/t3/libt3widget.html +# Paketçi: Cihan_Alkan +# Gerekler: libsigc++ libxcb libt3window libt3key +# Grup: kütüphane + +isim=libt3widget +surum=0.5.2 +devir=1 +kaynak=(http://os.ghalkes.nl/dist/$isim-$surum.tar.bz2) + +derle() { + cd "${SRC}/${isim}-${surum}" + CXXFLAGS="-O2 -std=c++11" ./configure --prefix=/usr + make + make DESTDIR="${PKG}" install + rm -rf "${PKG}/usr/share/doc/$isim/API" +} diff --git a/talimatname/genel/l/libt3window/talimat b/talimatname/genel/l/libt3window/talimat new file mode 100644 index 000000000..70f6d1a0d --- /dev/null +++ b/talimatname/genel/l/libt3window/talimat @@ -0,0 +1,18 @@ +# Tanım: pencere tabanlı konsol uygulamalrı oluşturmak için kütüphane +# URL: http://os.ghalkes.nl/t3/libt3window.html +# Paketçi: milisarge +# Gerekler: libtranscript libunistring +# Grup: kütüphane + +isim=libt3window +surum=0.2.3 +devir=1 +kaynak=(http://os.ghalkes.nl/dist/libt3window-$surum.tar.bz2) + +derle() { + cd "${SRC}/${isim}-${surum}" + ./configure --prefix=/usr CFLAGS="-O2 -D_POSIX_C_SOURCE=200809L" + make + make DESTDIR="${PKG}" install + rm -rf "${PKG}/usr/share/doc/$isim/API" +} diff --git a/talimatname/genel/l/libtasn1/talimat b/talimatname/genel/l/libtasn1/talimat new file mode 100644 index 000000000..1c2399d03 --- /dev/null +++ b/talimatname/genel/l/libtasn1/talimat @@ -0,0 +1,21 @@ +# Tanım: Bir ASN.1 şemasını takiben DER/BER verilerini kodlayan ve çözen son derece taşınabilir C kütüphanesi. +# URL: http://www.gnu.org/software/gnutls/ +# Paketçi: milisarge +# Gerekler: + +isim=libtasn1 +surum=4.9 +devir=1 + +kaynak=( http://ftp.gnu.org/gnu/$isim/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --disable-static \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/info/dir +} diff --git a/talimatname/genel/l/libthai/talimat b/talimatname/genel/l/libthai/talimat new file mode 100644 index 000000000..964c3744f --- /dev/null +++ b/talimatname/genel/l/libthai/talimat @@ -0,0 +1,23 @@ +# Tanım: Tay dili destek rutinleri +# URL: http://linux.thai.net/projects/libthai +# Paketçi: milisarge +# Gerekler: libdatrie + +isim=libthai +surum=0.1.24 +devir=1 + +kaynak=(https://mirrors.kernel.org/debian/pool/main/libt/${isim}/${isim}_${surum}.orig.tar.xz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --disable-static \ + --disable-doxygen-doc + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/man +} + diff --git a/talimatname/genel/l/libtheora/talimat b/talimatname/genel/l/libtheora/talimat new file mode 100644 index 000000000..6b6cf7089 --- /dev/null +++ b/talimatname/genel/l/libtheora/talimat @@ -0,0 +1,17 @@ +# Tanım: Xiph.org tarafından geliştirilen açık bir video codec bileşeni +# URL: http://www.xiph.org +# Paketçi: milisarge +# Gerekler: libogg libvorbis + +isim=libtheora +surum=1.1.1 +devir=1 + +kaynak=(http://downloads.xiph.org/releases/theora/$isim-$surum.tar.xz) +derle() { +cd $isim-$surum +sed -i 's/png_\(sizeof\)/\1/g' examples/png2theora.c +./configure --prefix=/usr --disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libtiff/talimat b/talimatname/genel/l/libtiff/talimat new file mode 100644 index 000000000..9edd8299b --- /dev/null +++ b/talimatname/genel/l/libtiff/talimat @@ -0,0 +1,21 @@ +# Tanım: TIFF görüntüleri manipüle etmek için kütüphane +# URL: http://www.remotesensing.org/libtiff/ +# Paketçi: milisarge +# Gerekler: libjpeg-turbo + +isim=libtiff +surum=4.0.6 +devir=1 + +kaynak=(http://download.osgeo.org/libtiff/tiff-$surum.tar.gz) + + +derle() { +cd tiff-$surum +./configure --prefix=/usr \ +--mandir=/usr/share/man \ +--infodir=/usr/share/info \ +--disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libtimezonemap/talimat b/talimatname/genel/l/libtimezonemap/talimat new file mode 100644 index 000000000..f238cc5de --- /dev/null +++ b/talimatname/genel/l/libtimezonemap/talimat @@ -0,0 +1,20 @@ +# Tanım: GTK+3 saat dilimi haritası aracı +# URL: https://launchpad.net/timezonemap +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: gtk3 json-glib vala gobject-introspection libsoup + +isim=libtimezonemap +surum=0.4.5 +devir=1 + + +kaynak=( https://launchpad.net/ubuntu/+archive/primary/+files/libtimezonemap_0.4.5.tar.gz) + +derle() { +cd $isim-$surum + autoreconf -vfi + ./configure --prefix=/usr --enable-introspection --with-gtk=3 + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libtins/talimat b/talimatname/genel/l/libtins/talimat new file mode 100644 index 000000000..fc205bfb8 --- /dev/null +++ b/talimatname/genel/l/libtins/talimat @@ -0,0 +1,20 @@ +# Tanım: Yüksek seviye ağ paket koklama ve işleme c++ kütüphanesi +# URL: http://libtins.github.io/ +# Paketçi: milisarge +# Gerekler: cmake libpcap + +isim=libtins +surum=3.5 +devir=1 +kaynak=(https://github.com/mfontanini/libtins/archive/v$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd "${SRC}/libtins-${surum}" + mkdir build + cd build + cmake -D CMAKE_INSTALL_PREFIX=/usr -D LIBTINS_ENABLE_CXX11=yes ../ + make + make DESTDIR="${PKG}" install + install -Dm644 ../LICENSE "${PKG}/usr/share/licenses/${isim}/LICENSE" + rm -R "${PKG}/usr/CMake/" +} diff --git a/talimatname/genel/l/libtirpc/talimat b/talimatname/genel/l/libtirpc/talimat new file mode 100644 index 000000000..a3ca72bd7 --- /dev/null +++ b/talimatname/genel/l/libtirpc/talimat @@ -0,0 +1,30 @@ +# Tanım: Transport Independent RPC library (SunRPC replacement) +# URL: http://downloads.sourceforge.net/project/libtirpc +# Paketçi: milisarge +# Gerekler: + +isim=libtirpc +surum=0.3.2 +devir=1 + +kaynak=(http://downloads.sourceforge.net/project/libtirpc/libtirpc/$surum/libtirpc-$surum.tar.bz2 + http://www.linuxfromscratch.org/patches/downloads/$isim/$isim-$surum-api_fixes-1.patch) + +derle() +{ +cd libtirpc-$surum + +patch -Np1 -i ../libtirpc-$surum-api_fixes-1.patch + +./configure --prefix=/usr \ + --sysconfdir=/etc \ + --disable-static \ + --disable-gssapi + +make +make pkgconfigdir=/usr/lib/pkgconfig DESTDIR=$PKG install +chown -R root:root $PKG +mkdir -p $PKG/lib +mv -v $PKG/usr/lib/libtirpc.so.* $PKG/lib +ln -sfv ../../lib/libtirpc.so.1.0.10 $PKG/usr/lib/libtirpc.so +} diff --git a/talimatname/genel/l/libtommath/talimat b/talimatname/genel/l/libtommath/talimat new file mode 100644 index 000000000..0e8dbb1f0 --- /dev/null +++ b/talimatname/genel/l/libtommath/talimat @@ -0,0 +1,17 @@ +# Tanım: Tamsayılı temelli sayısal teorik uygulamalar için yüksek seviyede optimize edilmiş ve taşınabilir rutinler +# URL: http://www.libtom.org/ +# Paketçi: Cihan Alkan +# Gerekler: + +isim=libtommath +surum=1.0.1 +devir=1 + +kaynak=(https://github.com/libtom/libtommath/releases/download/v$surum/ltm-$surum.tar.xz) + +derle() { + cd $isim-$surum + make -f makefile.shared IGNORE_SPEED=1 + make -f makefile.shared PREFIX=/usr DESTDIR=$PKG INSTALL_GROUP=root install + install -Dm644 LICENSE $PKG/usr/share/licenses/$isim/LICENSE +} diff --git a/talimatname/genel/l/libtorrent-rasterbar/libtorrent-boost-1.65.patch b/talimatname/genel/l/libtorrent-rasterbar/libtorrent-boost-1.65.patch new file mode 100644 index 000000000..19f951b10 --- /dev/null +++ b/talimatname/genel/l/libtorrent-rasterbar/libtorrent-boost-1.65.patch @@ -0,0 +1,34 @@ +From 7eb3cf6bc6dbada3fa7bb7ff4d5981182813a0e2 Mon Sep 17 00:00:00 2001 +From: arvidn <arvid@cs.umu.se> +Date: Tue, 11 Jul 2017 23:16:50 -0700 +Subject: [PATCH] use the official boost.config header + +--- + include/libtorrent/export.hpp | 14 +------------- + 1 file changed, 1 insertion(+), 13 deletions(-) + +diff --git a/include/libtorrent/export.hpp b/include/libtorrent/export.hpp +index 87536af2a2..503afe27a3 100644 +--- a/include/libtorrent/export.hpp ++++ b/include/libtorrent/export.hpp +@@ -33,19 +33,7 @@ POSSIBILITY OF SUCH DAMAGE. + #ifndef TORRENT_EXPORT_HPP_INCLUDED + #define TORRENT_EXPORT_HPP_INCLUDED + +-#if !defined(BOOST_COMPILER_CONFIG) && !defined(BOOST_NO_COMPILER_CONFIG) +-# include <boost/config/select_compiler_config.hpp> +-#endif +-#ifdef BOOST_COMPILER_CONFIG +-# include BOOST_COMPILER_CONFIG +-#endif +- +-#if !defined(BOOST_PLATFORM_CONFIG) && !defined(BOOST_NO_PLATFORM_CONFIG) +-# include <boost/config/select_platform_config.hpp> +-#endif +-#ifdef BOOST_PLATFORM_CONFIG +-# include BOOST_PLATFORM_CONFIG +-#endif ++#include <boost/config.hpp> + + // backwards compatibility with older versions of boost + #if !defined BOOST_SYMBOL_EXPORT && !defined BOOST_SYMBOL_IMPORT diff --git a/talimatname/genel/l/libtorrent-rasterbar/talimat b/talimatname/genel/l/libtorrent-rasterbar/talimat new file mode 100644 index 000000000..fb32db7e2 --- /dev/null +++ b/talimatname/genel/l/libtorrent-rasterbar/talimat @@ -0,0 +1,47 @@ +# Tanım: Bir C ++ bittorrent kitaplığı. +# URL: http://www.rasterbar.com/products/libtorrent/ +# Paketçi: milisarge +# Gerekler: boost + +isim=libtorrent-rasterbar +surum=1.1.4 +_surum=1_1_4 +devir=1 +kaynak=(https://github.com/arvidn/libtorrent/archive/libtorrent-$_version.tar.gz::$isim-$surum.tar.gz + libtorrent-boost-1.65.patch) + +derle() { + cd libtorrent-libtorrent-$_version + ./autotool.sh + patch -p1 -i $SRC/libtorrent-boost-1.65.patch + + #CONFIG_SHELL=/bin/bash \ + ./configure \ + --prefix=/usr \ + --enable-shared=yes \ + --enable-static=no \ + --enable-fast-install=yes \ + --enable-largefile \ + --enable-logging \ + --disable-debug \ + --enable-dht \ + --enable-encryption \ + --enable-deprecated-functions \ + --enable-examples \ + --disable-tests \ + --enable-python-binding \ + --with-libiconv + make + + # build python2 bindings (python3 bindings are built during 'make') + python2 setup.py build + make DESTDIR=$PKG install + python2 setup.py install --root="$PKG" --optimize=1 + + # license + install -D -m644 COPYING "${PKG}/usr/share/licenses/${isim}/LICENSE" + + # remove most example binaries + rm "$PKG"/usr/bin/{*_test,*_tester,simple_client,stats_counters} + +} diff --git a/talimatname/genel/l/libtorrent/talimat b/talimatname/genel/l/libtorrent/talimat new file mode 100644 index 000000000..d5c68d6ce --- /dev/null +++ b/talimatname/genel/l/libtorrent/talimat @@ -0,0 +1,21 @@ +# Tanım: Torrent kitaplığı +# URL: https://rakshasa.github.io/rtorrent +# Paketçi: milisarge +# Gerekler: libsigc++ + +isim=libtorrent +surum=0.13.6 +devir=1 +kaynak=(http://rtorrent.net/downloads/libtorrent-$surum.tar.gz) + +derle() { + cd $isim-$surum + + # remove cppunit dependency + sed -i '/AM_PATH_CPPUNIT(.*)/d' configure.ac + ./autogen.sh + + ./configure --prefix=/usr --enable-debug=no + make + make install DESTDIR=$PKG +} diff --git a/talimatname/genel/l/libtranscript/talimat b/talimatname/genel/l/libtranscript/talimat new file mode 100644 index 000000000..b7215eee4 --- /dev/null +++ b/talimatname/genel/l/libtranscript/talimat @@ -0,0 +1,21 @@ +# Tanım: Bir karakter kümesi dönüştürme kitaplığı. +# URL: http://os.ghalkes.nl/libtranscript.html +# Paketçi: Cihan Alkan +# Gerekler: gettext +# Grup: kütüphane + +isim=libtranscript +surum=0.3.2 +devir=1 + +kaynak=(http://os.ghalkes.nl/dist/$isim-$surum.tar.bz2) + +derle() { + + cd "${SRC}/${isim}-${surum}" + ./configure --prefix=/usr --with-ucm2ltc CFLAGS="-O2 -D_POSIX_C_SOURCE=200809L" + make + make DESTDIR="${PKG}" install + rm -rf "${PKG}/usr/share/doc/$isim/API" + +} diff --git a/talimatname/genel/l/libuecc/talimat b/talimatname/genel/l/libuecc/talimat new file mode 100644 index 000000000..1a11aa0ff --- /dev/null +++ b/talimatname/genel/l/libuecc/talimat @@ -0,0 +1,18 @@ +# Tanım: Çok küçük Elliptic Curve Cryptography kütüphanesi +# URL: http://git.universe-factory.net/libuecc/ +# Paketçi: milisarge +# Gerekler: cmake + +isim=libuecc +surum=7 +devir=1 + +kaynak=(https://projects.universe-factory.net/attachments/download/85/${isim}-${surum}.tar.xz) + +derle() { + mkdir -p "build-${surum}" + cd "build-${surum}" + cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr "../${isim}-${surum}" + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libunique/talimat b/talimatname/genel/l/libunique/talimat new file mode 100644 index 000000000..8a04be384 --- /dev/null +++ b/talimatname/genel/l/libunique/talimat @@ -0,0 +1,18 @@ +# Tanım: GTK3 için tekli örnek uygulamaları yazan kütüphane +# URL: http://live.gnome.org/LibUnique +# Paketçi: milisarge +# Gerekler: gtk3 gobject-introspection + +isim=libunique +surum=3.0.2 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${surum%.*}/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +rm -r $PKG/usr/share/gtk-doc +} diff --git a/talimatname/genel/l/libunique1/talimat b/talimatname/genel/l/libunique1/talimat new file mode 100644 index 000000000..8d750ab1a --- /dev/null +++ b/talimatname/genel/l/libunique1/talimat @@ -0,0 +1,25 @@ +# Tanım: Libunique paketi, tekli örnek uygulamaları yazmak için bir kütüphane içerir. +# URL: http://live.gnome.org/LibUnique +# Paketçi: milisarge +# Gerekler: gtk2 + +_isim=libunique + +isim=libunique1 +surum=1.1.6 +devir=2 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/${_name}/${surum%.*}-$surum.tar.bz2 + http://www.linuxfromscratch.org/patches/blfs/svn/libunique-$surum-upstream_fixes-1.patch) + +derle() { +cd ${_name}-$surum +patch -Np1 -i ../libunique-$surum-upstream_fixes-1.patch +autoreconf -fi +./configure --prefix=/usr --disable-static \ +--disable-dbus +make +make DESTDIR=$PKG install +rm -r $PKG/usr/share/gtk-doc +} + diff --git a/talimatname/genel/l/libunique3/talimat b/talimatname/genel/l/libunique3/talimat new file mode 100644 index 000000000..d303e3c69 --- /dev/null +++ b/talimatname/genel/l/libunique3/talimat @@ -0,0 +1,28 @@ +# Tanım: GTK3 için tekli örnek uygulamaları yazan kütüphane +# URL: http://live.gnome.org/LibUnique +# Paketçi: Cihan_Alkan +# Gerekler: gtk3 gobject-introspection +# Grup: kütüphane + +isim=libunique3 +surum=3.0.2 +devir=1 +kaynak=(https://archive.archlinux.org/repos/2014/07/01/extra/os/x86_64/libunique3-3.0.2-3-x86_64.pkg.tar.xz) + +derle() { + + cd "$SRC/" + install -Dm644 "usr/include/unique-3.0/unique/unique.h" "$PKG/usr/include/unique-3.0/unique/unique.h" + install -Dm644 "usr/include/unique-3.0/unique/uniqueapp.h" "$PKG/usr/include/unique-3.0/unique/uniqueapp.h" + install -Dm644 "usr/include/unique-3.0/unique/uniquebackend.h" "$PKG/usr/include/unique-3.0/unique/uniquebackend.h" + install -Dm644 "usr/include/unique-3.0/unique/uniqueenumtypes.h" "$PKG/usr/include/unique-3.0/unique/uniqueenumtypes.h" + install -Dm644 "usr/include/unique-3.0/unique/uniquemessage.h" "$PKG/usr/include/unique-3.0/unique/uniquemessage.h" + install -Dm644 "usr/include/unique-3.0/unique/uniqueversion.h" "$PKG/usr/include/unique-3.0/unique/uniqueversion.h" + install -Dm644 "usr/lib/girepository-1.0/Unique-3.0.typelib" "$PKG/usr/lib/girepository-1.0/Unique-3.0.typelib" + install -Dm644 "usr/lib/pkgconfig/unique-3.0.pc" "$PKG/usr/lib/pkgconfig/unique-3.0.pc" + install -Dm644 "usr/share/gir-1.0/Unique-3.0.gir" "$PKG/usr/share/gir-1.0/Unique-3.0.gir" + install -Dm755 "usr/lib/libunique-3.0.so.0.0.2" "$PKG/usr/lib/libunique-3.0.so.0.0.2" + cd "$PKG/usr/lib/" + ln -s "libunique-3.0.so.0.0.2" "libunique-3.0.so.0" + ln -s "libunique-3.0.so.0.0.2" "libunique-3.0.so" +} diff --git a/talimatname/genel/l/libunistring/talimat b/talimatname/genel/l/libunistring/talimat new file mode 100644 index 000000000..ac80bf874 --- /dev/null +++ b/talimatname/genel/l/libunistring/talimat @@ -0,0 +1,18 @@ +# Tanım: Libunistring, Unicode dizelerinin değiştirilmesi için işlevler sağlayan bir kitaplıktır +# URL: http://www.gnu.org/software/bison/ +# Paketçi: milisarge +# Gerekler: + +isim=libunistring +surum=0.9.6 +devir=1 + +kaynak=(ftp://ftp.gnu.org/gnu/$isim/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr -disable-static +make +make DESTDIR=$PKG install +rm -rf $PKG/usr/share/info/dir +} diff --git a/talimatname/genel/l/libunwind/talimat b/talimatname/genel/l/libunwind/talimat new file mode 100644 index 000000000..6e29f9a19 --- /dev/null +++ b/talimatname/genel/l/libunwind/talimat @@ -0,0 +1,19 @@ +# Tanım: Bir programın çağrı zincirini belirlemek için taşınabilir ve verimli bir C API'yi tanımlayın. +# URL: http://www.nongnu.org/libunwind/ +# Paketçi: milisarge +# Gerekler: + +isim=libunwind +surum=1.1 +devir=1 + +kaynak=(http://download.savannah.gnu.org/releases/$isim/$isim-$surum.tar.gz) + +derle() { + + cd $isim-$surum/ + ./configure --prefix=/usr --mandir=/usr/man/ + make + make -j1 DESTDIR=$PKG PREFIX=/usr install + +} diff --git a/talimatname/genel/l/libupnp/talimat b/talimatname/genel/l/libupnp/talimat new file mode 100644 index 000000000..533c836bf --- /dev/null +++ b/talimatname/genel/l/libupnp/talimat @@ -0,0 +1,22 @@ +# Tanım: Portatif bir Açık Kaynak UPnP Geliştirme Seti. +# URL: http://pupnp.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: + +isim=libupnp +surum=1.6.19 +devir=1 +kaynak=(http://downloads.sourceforge.net/project/pupnp/pupnp/libUPnP%20$surum/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + + ./configure \ + --prefix=/usr \ + --mandir=/usr/man \ + --disable-static \ + --disable-dependency-tracking + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/liburcu/talimat b/talimatname/genel/l/liburcu/talimat new file mode 100644 index 000000000..18d9143e4 --- /dev/null +++ b/talimatname/genel/l/liburcu/talimat @@ -0,0 +1,17 @@ +# Tanım: LGPLv2.1 userspace RCU (read-copy-update) library +# URL: http://lttng.org/urcu +# Paketçi: milisarge +# Gerekler: +# Grup: kütüphane + +isim=liburcu +surum=0.10.1 +devir=1 +kaynak=(https://lttng.org/files/urcu/userspace-rcu-${surum}.tar.bz2) + +derle() { + cd "$SRC"/userspace-rcu-${surum} + ./configure --prefix=/usr + make + make install DESTDIR="$PKG" +} diff --git a/talimatname/genel/l/libusb-compat/talimat b/talimatname/genel/l/libusb-compat/talimat new file mode 100644 index 000000000..ebb275eba --- /dev/null +++ b/talimatname/genel/l/libusb-compat/talimat @@ -0,0 +1,19 @@ +# Tanım: Libusb-compat paketi libusb-0.1 gibi görünme, hissetme ve davranmayı amaçlamaktadır. +# URL: https://sourceforge.net/p/libusb/wiki/Home/ +# Paketçi: milisarge +# Gerekler: libusb + +isim=libusb-compat +surum=0.1.5 +devir=1 + +kaynak=( http://sourceforge.net/projects/libusb/files/libusb-compat-0.1/libusb-compat-$surum/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--mandir=/usr/share/man \ +--infodir=/usr/share/info +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libusb/talimat b/talimatname/genel/l/libusb/talimat new file mode 100644 index 000000000..028b4fec4 --- /dev/null +++ b/talimatname/genel/l/libusb/talimat @@ -0,0 +1,20 @@ +# Tanım: Libusb paketi, bazı uygulamalar tarafından USB aygıt erişimi için kullanılan bir kitaplık içerir. +# URL: http://libusb.wiki.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: + +isim=libusb +surum=1.0.20 +devir=1 + +kaynak=( http://downloads.sourceforge.net/$isim/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr\ + --disable-build-docs\ + --mandir=/usr/share/man\ + --infodir=/usr/share/info + make -j1 + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libutempter/talimat b/talimatname/genel/l/libutempter/talimat new file mode 100644 index 000000000..41b6dd110 --- /dev/null +++ b/talimatname/genel/l/libutempter/talimat @@ -0,0 +1,19 @@ +# Tanım: Kullanıcı oturumlarını utmp ve wtmp dosyalarına kaydetmek için terminal öykünücüsü için arabirim. +# URL: ftp://ftp.altlinux.org/pub/people/ldv/utempter +# Paketçi: milisarge +# Gerekler: + +isim=libutempter +surum=1.1.6 +devir=1 + +kaynak=(http://ftp.altlinux.org/pub/people/ldv/utempter/$isim-$surum.tar.bz2) + +derle(){ + cd $isim-$surum + RPM_OPT_FLAGS="$CFLAGS" make + make + make DESTDIR=$PKG install + chown root:utmp $PKG/usr/lib/utempter/utempter + chmod 2755 $PKG/usr/lib/utempter/utempter +} diff --git a/talimatname/genel/l/libuv/talimat b/talimatname/genel/l/libuv/talimat new file mode 100644 index 000000000..49a790cd6 --- /dev/null +++ b/talimatname/genel/l/libuv/talimat @@ -0,0 +1,19 @@ +# Tanım: Multi-platform support library with a focus on asynchronous I/O +# URL: https://github.com/libuv/libuv +# Paketçi: milisarge +# Gerekler: +# Grup: kütüphane + +isim=libuv +surum=1.18.0 +devir=1 +kaynak=(https://github.com/libuv/libuv/archive/v1.18.0/libuv-$surum.tar.gz::libuv-$surum.tar.gz) + +derle() { + cd "$SRC"/$isim-$surum + ./autogen.sh + ./configure --prefix=/usr + make + make check + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/l/libva/talimat b/talimatname/genel/l/libva/talimat new file mode 100644 index 000000000..2990996c4 --- /dev/null +++ b/talimatname/genel/l/libva/talimat @@ -0,0 +1,21 @@ +# Tanım: Video Acceleration API to enable hardware accelerated video decode/encode. +# URL: http://freedesktop.org/wiki/Software/vaapi +# Paketçi: milisarge +# Gerekler: xorg-mesa + +isim=libva +surum=1.8.2 +devir=1 +kaynak=(https://www.freedesktop.org/software/vaapi/releases/$isim/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + + ./configure \ + --prefix=/usr \ + --disable-wayland \ + --disable-dependency-tracking + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libvdpau-va-gl/talimat b/talimatname/genel/l/libvdpau-va-gl/talimat new file mode 100644 index 000000000..b37e25640 --- /dev/null +++ b/talimatname/genel/l/libvdpau-va-gl/talimat @@ -0,0 +1,16 @@ +# Tanım: OpenGL/VAAPI destekli VDPAU sürücüleri +# URL: https://github.com/i-rinat/libvdpau-va-gl +# Paketçi: milisarge +# Gerekler: cmake libvdpau libva ffmpeg xorg-glu + +isim=libvdpau-va-gl +surum=0.4.2 +devir=1 +kaynak=(https://github.com/i-rinat/libvdpau-va-gl/archive/v0.4.2.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr + make + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/l/libvdpau/talimat b/talimatname/genel/l/libvdpau/talimat new file mode 100644 index 000000000..ecc52acc4 --- /dev/null +++ b/talimatname/genel/l/libvdpau/talimat @@ -0,0 +1,22 @@ +# Tanım: video çözücü apisi +# URL: http://cgit.freedesktop.org/vdpau/libvdpau +# Paketçi: milisarge +# Gerekler: xorg-libxext xorg-dri2proto +# Grup: kütüphane + +isim=libvdpau +surum=1.1.1 +devir=2 +kaynak=(http://people.freedesktop.org/~aplattner/vdpau/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --disable-dependency-tracking \ + --disable-documentation + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libvisio/talimat b/talimatname/genel/l/libvisio/talimat new file mode 100644 index 000000000..1de18ad1b --- /dev/null +++ b/talimatname/genel/l/libvisio/talimat @@ -0,0 +1,17 @@ +# Tanım: Visio diyagramlarını yorumlama ve içe aktarma kabiliyeti sağlayan kitaplık +# URL: https://wiki.documentfoundation.org/DLP/Libraries/libvisio +# Paketçi: Cihan Alkan +# Gerekler: doxygen libwpd boost librevenge icu libxml2 doxygen + +isim=libvisio +surum=0.1.5 +devir=1 + +kaynak=(https://dev-www.libreoffice.org/src/$isim/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libvlc/lua53_compat.patch b/talimatname/genel/l/libvlc/lua53_compat.patch new file mode 100644 index 000000000..aeff7b2fd --- /dev/null +++ b/talimatname/genel/l/libvlc/lua53_compat.patch @@ -0,0 +1,30 @@ +commit 41caaa08cde60c4fec4bf2e5f9610e2a1b9e6a23 +Author: Vinson Lee <vlee@freedesktop.org> +Date: Thu Feb 5 14:48:53 2015 -0800 + + lua: Define LUA_COMPAT_APIINTCASTS for Lua >= 5.3.0 compatibility. + + In Lua 5.3.0, luaL_checkint was deprecated. + + This patch fixes this build error with Lua 5.3.0. + + lua/demux.c: In function ‘vlclua_demux_peek’: + lua/demux.c:55:5: error: implicit declaration of function ‘luaL_checkint’ [-Werror=implicit-function-declaration] + int n = luaL_checkint( L, 1 ); + ^ + + Signed-off-by: Vinson Lee <vlee@freedesktop.org> + Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org> + +diff --git a/modules/lua/vlc.h b/modules/lua/vlc.h +index efd94f1..85c7fc1 100644 +--- a/modules/lua/vlc.h ++++ b/modules/lua/vlc.h +@@ -38,6 +38,7 @@ + #include <vlc_stream.h> + #include <vlc_demux.h> + ++#define LUA_COMPAT_APIINTCASTS + #define LUA_COMPAT_MODULE + #include <lua.h> /* Low level lua C API */ + #include <lauxlib.h> /* Higher level C API */ diff --git a/talimatname/genel/l/libvlc/talimat b/talimatname/genel/l/libvlc/talimat new file mode 100644 index 000000000..15ccefed9 --- /dev/null +++ b/talimatname/genel/l/libvlc/talimat @@ -0,0 +1,29 @@ +# Tanım: Vlc'den kütüphane +# URL: http://www.slackware.com/~alien/slackbuilds/vlc/ +# Paketçi: milisarge +# Gerekler: libbluray opus qt5 x264 flac libmad glib librsvg alsa-lib xorg-libxinerama xorg-libxpm libvpx libcdio vcdimager live libdvdcss libdvdread libdvdnav libogg libtheora lame faac libvorbis ffmpeg faad2 liba52 libmpeg2 libmpcdec fribidi lua libdv speex + +isim=libvlc +surum=3.0.0 +devir=20160606 + +kaynak=( http://anduin.linuxfromscratch.org/BLFS/vlc/vlc-$surum-$devir.tar.xz + lua53_compat.patch) + +derle() { + +cd vlc-$surum-$devir + +sed -i '/seems to be moved/s/^/#/' autotools/ltmain.sh + +BUILDCC=gcc \ +./configure --prefix=/usr \ + --sysconfdir=/etc \ + --enable-bluray \ + --enable-opus \ + RCC=/usr/bin/rcc-qt5 + +make +make DESTDIR=$PKG install +rm -r $PKG/usr/{lib/vlc,share,bin} +} diff --git a/talimatname/genel/l/libvncserver/talimat b/talimatname/genel/l/libvncserver/talimat new file mode 100644 index 000000000..a11fe1f0a --- /dev/null +++ b/talimatname/genel/l/libvncserver/talimat @@ -0,0 +1,17 @@ +# Tanım: VNC sunucusunu kolayca uygulamanıza olanak tanıyan çapraz platform C kütüphaneleri +# URL: https://libvnc.github.io/ +# Paketçi: milisarge +# Gerekler: libjpeg-turbo libpng gnutls libgcrypt sdl + +isim=libvncserver +surum=0.9.11 +devir=1 + +kaynak=(https://github.com/LibVNC/libvncserver/archive/LibVNCServer-${surum}.tar.gz) +derle() { + cd $isim-LibVNCServer-$surum + ./autogen.sh + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libvorbis/talimat b/talimatname/genel/l/libvorbis/talimat new file mode 100644 index 000000000..00af20bb4 --- /dev/null +++ b/talimatname/genel/l/libvorbis/talimat @@ -0,0 +1,18 @@ +# Tanım: Ücretsiz, açık ve patentsiz ses codec'i, kabaca diğer formatlarla karşılaştırılabilir. +# URL: http://www.vorbis.com/ +# Paketçi: milisarge +# Gerekler: libogg doxygen +isim=libvorbis +surum=1.3.5 +devir=1 + +kaynak=( http://downloads.xiph.org/releases/vorbis/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--disable-static +make +make DESTDIR=$PKG install +install -v -m644 doc/Vorbis* $PKG/usr/share/doc/libvorbis-$surum +} diff --git a/talimatname/genel/l/libvpx/talimat b/talimatname/genel/l/libvpx/talimat new file mode 100644 index 000000000..427b3d16c --- /dev/null +++ b/talimatname/genel/l/libvpx/talimat @@ -0,0 +1,25 @@ +# Tanım: VP8 Codec SDK'sı +# URL: http://webm.googlecode.com/files/libvpx-v1.1.0.tar.bz2 +# Paketçi: milisarge +# Gerekler: yasm + +isim=libvpx +surum=1.5.0 +devir=1 + +kaynak=(http://storage.googleapis.com/downloads.webmproject.org/releases/webm/libvpx-$surum.tar.bz2) +derle() { +cd $isim-$surum +sed -e 's/cp -p/cp/' \ + -i build/make/Makefile +chmod -v 644 vpx/*.h +mkdir ../libvpx-build +cd ../libvpx-build +../libvpx-$surum/configure --prefix=/usr \ +--enable-shared --disable-static \ +--disable-install-docs \ +--disable-install-srcs +make + +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libwacom/talimat b/talimatname/genel/l/libwacom/talimat new file mode 100644 index 000000000..01a4d4bdf --- /dev/null +++ b/talimatname/genel/l/libwacom/talimat @@ -0,0 +1,17 @@ +# Tanım: Wacom tabletlerini ve özelliklerini belirlemek için Kütüphane +# URL: http://linuxwacom.sourceforge.net/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: glib libgudev + +isim=libwacom +surum=0.21 +devir=1 + +kaynak=(http://sourceforge.net/projects/linuxwacom/files/libwacom/libwacom-$surum.tar.bz2) + +derle() { +cd $isim-$surum +./configure --prefix=/usr --disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libwebp/talimat b/talimatname/genel/l/libwebp/talimat new file mode 100644 index 000000000..e69f5696e --- /dev/null +++ b/talimatname/genel/l/libwebp/talimat @@ -0,0 +1,23 @@ +# Tanım: WebP kütüphanesi ve dönüştürme araçları +# URL: https://developers.google.com/speed/webp/ +# Paketçi: milisarge +# Gerekler: libpng libjpeg-turbo libtiff + +isim=libwebp +surum=0.5.0 +devir=1 + +kaynak=(http://downloads.webmproject.org/releases/webp/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--enable-libwebpmux \ +--enable-libwebpdemux \ +--enable-libwebpdecoder \ +--enable-libwebpextras \ +--enable-swap-16bit-csp \ +--disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libwebsockets/talimat b/talimatname/genel/l/libwebsockets/talimat new file mode 100644 index 000000000..ea6ecad4d --- /dev/null +++ b/talimatname/genel/l/libwebsockets/talimat @@ -0,0 +1,21 @@ +# Tanım: Websocket istemcileri ve sunucuları için C kütüphanesi +# URL: https://libwebsockets.org +# Paketçi: Cihan Alkan +# Gerekler: cmake +# Grup: kütüphane + +isim=libwebsockets +surum=2.4.1 +devir=1 +kaynak=(https://github.com/warmcat/libwebsockets/archive/v$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd "$isim-$surum" + mkdir build && cd build + # http2 support -DLWS_WITH_HTTP2=1 + cmake -D CMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX:PATH=/usr .. + make + make DESTDIR="${PKG}" install + cd .. + install -Dm644 LICENSE "${PKG}/usr/share/licenses/${isim}/LICENSE" +} diff --git a/talimatname/genel/l/libwlocate/talimat b/talimatname/genel/l/libwlocate/talimat new file mode 100644 index 000000000..65f7c04d0 --- /dev/null +++ b/talimatname/genel/l/libwlocate/talimat @@ -0,0 +1,19 @@ +# Tanım: Konum tabanlı hizmetler için kullanılabilen paylaşılan bir kütüphane. +# URL: http://sourceforge.net/projects/libwlocate +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: wireless-tools + +isim=libwlocate +surum=0.1 +devir=1 + +kaynak=( https://github.com/openwifi-su/lwlocate/archive/v$surum.tar.gz) + +derle() { + cd lwlocate-$surum/master + make -f Makelib + make + install -Dm644 libwlocate.so $PKG/usr/lib/libwlocate.so + install -Dm644 libwlocate.h $PKG/usr/include/libwlocate.h + install -Dm755 lwtrace $PKG/usr/bin/lwtrace +} diff --git a/talimatname/genel/l/libwmf/libwmf.0.2.8.4-libpng-1.5.patch b/talimatname/genel/l/libwmf/libwmf.0.2.8.4-libpng-1.5.patch new file mode 100644 index 000000000..7d40bbe89 --- /dev/null +++ b/talimatname/genel/l/libwmf/libwmf.0.2.8.4-libpng-1.5.patch @@ -0,0 +1,12 @@ +diff -urN libwmf-0.2.8.4.old/src/ipa/ipa/bmp.h libwmf-0.2.8.4/src/ipa/ipa/bmp.h +--- libwmf-0.2.8.4.old/src/ipa/ipa/bmp.h 2011-05-23 19:14:23.000000000 +0200 ++++ libwmf-0.2.8.4/src/ipa/ipa/bmp.h 2011-05-23 19:15:11.000000000 +0200 +@@ -66,7 +66,7 @@ + return; + } + +- if (setjmp (png_ptr->jmpbuf)) ++ if (setjmp(png_jmpbuf(png_ptr))) + { WMF_DEBUG (API,"Failed to write bitmap as PNG! (setjmp failed)"); + png_destroy_write_struct (&png_ptr,&info_ptr); + wmf_free (API,buffer); \ No newline at end of file diff --git a/talimatname/genel/l/libwmf/libwmf.0.2.8.4-useafterfree.patch b/talimatname/genel/l/libwmf/libwmf.0.2.8.4-useafterfree.patch new file mode 100644 index 000000000..0d1463ace --- /dev/null +++ b/talimatname/genel/l/libwmf/libwmf.0.2.8.4-useafterfree.patch @@ -0,0 +1,10 @@ +--- libwmf-0.2.8.4/src/extra/gd/gd_clip.c.CVE-2009-1364-im-clip-list 2009-04-24 04:06:44.000000000 -0400 ++++ libwmf-0.2.8.4/src/extra/gd/gd_clip.c 2009-04-24 04:08:30.000000000 -0400 +@@ -70,6 +70,7 @@ void gdClipSetAdd(gdImagePtr im,gdClipRe + { more = gdRealloc (im->clip->list,(im->clip->max + 8) * sizeof (gdClipRectangle)); + if (more == 0) return; + im->clip->max += 8; ++ im->clip->list = more; + } + im->clip->list[im->clip->count] = (*rect); + im->clip->count++; \ No newline at end of file diff --git a/talimatname/genel/l/libwmf/libwmf.kur-kos b/talimatname/genel/l/libwmf/libwmf.kur-kos new file mode 100644 index 000000000..22c2f7f9a --- /dev/null +++ b/talimatname/genel/l/libwmf/libwmf.kur-kos @@ -0,0 +1,4 @@ +if [ -x /usr/bin/gdk-pixbuf-query-loaders ]; then + install -d /etc/gtk-2.0 + gdk-pixbuf-query-loaders > /etc/gtk-2.0/gdk-pixbuf.loaders +fi diff --git a/talimatname/genel/l/libwmf/talimat b/talimatname/genel/l/libwmf/talimat new file mode 100644 index 000000000..7872d6760 --- /dev/null +++ b/talimatname/genel/l/libwmf/talimat @@ -0,0 +1,27 @@ +# Tanım: Microsoft'un yerli Windows Meta Dosyası Biçimi (WMF) içindeki vektör görüntülerini okumak için bir kütüphane +# URL: http://wvware.sourceforge.net/libwmf.html +# Paketçi: milisarge +# Gerekler: gsfonts libjpeg-turbo xorg-libx11 gdk-pixbuf gtk2 xorg-libxt + +isim=libwmf +surum=0.2.8.4 +devir=1 + +kaynak=( +http://downloads.sourceforge.net/sourceforge/wvware/$isim-$surum.tar.gz +libwmf.0.2.8.4-libpng-1.5.patch +libwmf.0.2.8.4-useafterfree.patch) + +derle(){ + cd $isim-$surum + patch -p1 -i $SRC/libwmf.0.2.8.4-libpng-1.5.patch + patch -p1 -i $SRC/libwmf.0.2.8.4-useafterfree.patch + ./configure --prefix=/usr \ + --with-gsfontdir=/usr/share/fonts/Type1 \ + --with-fontdir=/usr/share/fonts/Type1 \ + --with-gsfontmap=/usr/share/ghostscript/9.14/Resource/Init/Fontmap.GS + make + make DESTDIR=$PKG install + # rm fonts already in gsfonts packages + rm -rf $PKG/usr/share/fonts +} diff --git a/talimatname/genel/l/libwnck/talimat b/talimatname/genel/l/libwnck/talimat new file mode 100644 index 000000000..96c029207 --- /dev/null +++ b/talimatname/genel/l/libwnck/talimat @@ -0,0 +1,16 @@ +# Tanım: Windows navigator inşaat kiti içerir +# URL: http://www.gnome.org/ +# Paketçi: milisarge +# Gerekler: xorg-libxres gtk2 intltool gobject-introspection startup-notification gtk-doc + +isim=libwnck +surum=2.31.0 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) +derle() { + cd $isim-$surum + ./configure --prefix=/usr --program-suffix=-1 + make GETTEXT_PACKAGE=libwnck-1 + make DESTDIR=$PKG GETTEXT_PACKAGE=libwnck-1 install +} diff --git a/talimatname/genel/l/libwnck3/talimat b/talimatname/genel/l/libwnck3/talimat new file mode 100644 index 000000000..6958a7012 --- /dev/null +++ b/talimatname/genel/l/libwnck3/talimat @@ -0,0 +1,16 @@ +# Tanım: Pencere Gezgini İnşaat Takımı (GTK + 3). +# URL: http://www.gnome.org/ +# Paketçi: milisarge +# Gerekler: gtk3 perl-xml-parser xorg-libxt xorg-libxres startup-notification xorg-libxinerama xorg-libxrandr xorg-libxcursor xorg-libxdamage intltool gobject-introspection + +isim=libwnck3 +surum=3.14.1 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/libwnck/${surum%.*}/libwnck-$surum.tar.xz) +derle() { +cd libwnck-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libwpd/talimat b/talimatname/genel/l/libwpd/talimat new file mode 100644 index 000000000..9d7af1701 --- /dev/null +++ b/talimatname/genel/l/libwpd/talimat @@ -0,0 +1,17 @@ +# Tanım: WordPerfect (tm) belgelerini içe aktarmak için kitaplık +# URL: http://libwpd.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: libgsf librevenge + +isim=libwpd +surum=0.10.0 +devir=1 + +kaynak=(http://prdownloads.sourceforge.net/libwpd/libwpd-$surum.tar.gz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr --disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libwpg/talimat b/talimatname/genel/l/libwpg/talimat new file mode 100644 index 000000000..a6c0242e7 --- /dev/null +++ b/talimatname/genel/l/libwpg/talimat @@ -0,0 +1,17 @@ +# Tanım: Corel WordPerfect (tm) Grafik görüntülerini içe aktarmak ve dönüştürmek için kullanılan kitaplık. +# URL: http://libwpg.sourceforge.net/libwpg.htm +# Paketçi: milisarge +# Gerekler: libwpd + +isim=libwpg +surum=0.3.0 +devir=1 + +kaynak=(http://sourceforge.net/projects/libwpg/files/libwpg/libwpg-$surum/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --without-docs + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libwps/talimat b/talimatname/genel/l/libwps/talimat new file mode 100644 index 000000000..5ff56ea85 --- /dev/null +++ b/talimatname/genel/l/libwps/talimat @@ -0,0 +1,17 @@ +# Tanım: Microsoft Works dosya sözcük işlemci biçimi içe aktarma filtre kitaplığı +# URL: https://sourceforge.net/projects/libwps/ +# Paketçi: Cihan Alkan +# Gerekler: doxygen libwpd boost librevenge + +isim=libwps +surum=0.4.7 +devir=1 + +kaynak=(http://downloads.sourceforge.net/project/libwps/$isim/$isim-$surum/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --disable-static + make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libxcb/libxcb-1.1-no-pthread-stubs.patch b/talimatname/genel/l/libxcb/libxcb-1.1-no-pthread-stubs.patch new file mode 100644 index 000000000..3580aa4e0 --- /dev/null +++ b/talimatname/genel/l/libxcb/libxcb-1.1-no-pthread-stubs.patch @@ -0,0 +1,11 @@ +--- libxcb-1.8.1/configure.ac 2012-03-09 15:38:38.000000000 +0100 ++++ libxcb-1.8.1/configure.ac.new 2012-03-09 16:50:40.107109896 +0100 +@@ -43,7 +43,7 @@ + + # Checks for pkg-config packages + PKG_CHECK_MODULES(XCBPROTO, xcb-proto >= 1.12) +-NEEDED="pthread-stubs xau >= 0.99.2" ++NEEDED="xau >= 0.99.2" + PKG_CHECK_MODULES(NEEDED, $NEEDED) + + have_xdmcp="no" diff --git a/talimatname/genel/l/libxcb/python-35x-fixes.patch b/talimatname/genel/l/libxcb/python-35x-fixes.patch new file mode 100644 index 000000000..88de25268 --- /dev/null +++ b/talimatname/genel/l/libxcb/python-35x-fixes.patch @@ -0,0 +1,42 @@ +diff --git a/src/c_client.py b/src/c_client.py +index 57de3fb..043338d 100644 +--- a/src/c_client.py ++++ b/src/c_client.py +@@ -1364,7 +1364,7 @@ def _c_serialize(context, self): + _c(' unsigned int xcb_align_to = 0;') + if self.is_switch: + _c(' unsigned int xcb_padding_offset = %d;', +- self.get_align_offset() ) ++ self.get_align_offset() ) + prefix = [('_aux', '->', self)] + aux_ptr = 'xcb_out' + +@@ -1390,7 +1390,7 @@ def _c_serialize(context, self): + _c(' unsigned int xcb_align_to = 0;') + if self.is_switch: + _c(' unsigned int xcb_padding_offset = %d;', +- self.get_align_offset() ) ++ self.get_align_offset() ) + + elif 'sizeof' == context: + param_names = [p[2] for p in params] +@@ -1930,14 +1930,14 @@ def _c_accessors_list(self, field): + # from the request size and divide that by the member size + return '(((R->length * 4) - sizeof('+ self.c_type + '))/'+'sizeof('+field.type.member.c_wiretype+'))' + else: +- # use the accessor to get the start of the list, then +- # compute the length of it by subtracting it from ++ # use the accessor to get the start of the list, then ++ # compute the length of it by subtracting it from + # the adress of the first byte after the end of the + # request +- after_end_of_request = '(((char*)R) + R->length * 4)' +- start_of_list = '%s(R)' % (field.c_accessor_name) ++ after_end_of_request = '(((char*)R) + R->length * 4)' ++ start_of_list = '%s(R)' % (field.c_accessor_name) + bytesize_of_list = '%s - (char*)(%s)' % (after_end_of_request, start_of_list) +- return '(%s) / sizeof(%s)' % (bytesize_of_list, field.type.member.c_wiretype) ++ return '(%s) / sizeof(%s)' % (bytesize_of_list, field.type.member.c_wiretype) + else: + raise Exception( + "lengthless lists with varsized members are not supported. Fieldname '%s'" diff --git a/talimatname/genel/l/libxcb/talimat b/talimatname/genel/l/libxcb/talimat new file mode 100644 index 000000000..467e0aac5 --- /dev/null +++ b/talimatname/genel/l/libxcb/talimat @@ -0,0 +1,30 @@ +# Tanım: Geçerli Xlib arabirimini değiştiren X Pencere Sistem protokolüne arabirim. +# URL: http://xcb.freedesktop.org +# Paketçi: milisarge +# Gerekler: xcb-proto xorg-libxdmcp xorg-libxau libxslt xorg-util-macros + +isim=libxcb +surum=1.12 +devir=2 + +kaynak=(http://xcb.freedesktop.org/dist/$isim-$surum.tar.bz2 + libxcb-1.1-no-pthread-stubs.patch + python-35x-fixes.patch) + +derle() { +cd $isim-$surum +patch -Np1 -i ../libxcb-1.1-no-pthread-stubs.patch +patch -Np1 -i ../python-35x-fixes.patch + +autoreconf -vfi + +./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --docdir='${datadir}'/doc/libxcb-$surum \ + --enable-xinput \ + --enable-xkb \ + --disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libxdg-basedir/talimat b/talimatname/genel/l/libxdg-basedir/talimat new file mode 100644 index 000000000..0c139442c --- /dev/null +++ b/talimatname/genel/l/libxdg-basedir/talimat @@ -0,0 +1,18 @@ +# Tanım: XDG Temel Dizini teknik özelliklerinin bir uygulaması. +# URL: https://github.com/devnev/libxdg-basedir +# Paketçi: milisarge +# Gerekler: + +isim=libxdg-basedir +surum=1.2.0 +devir=1 +kaynak=(https://github.com/devnev/libxdg-basedir/archive/$isim-$surum.tar.gz) + +derle() { + cd $isim-$isim-$surum + + ./autogen.sh --prefix=/usr + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libxfcegui4/libxfcegui4-4.10.0-no-xfce_setenv.patch b/talimatname/genel/l/libxfcegui4/libxfcegui4-4.10.0-no-xfce_setenv.patch new file mode 100644 index 000000000..ffb216082 --- /dev/null +++ b/talimatname/genel/l/libxfcegui4/libxfcegui4-4.10.0-no-xfce_setenv.patch @@ -0,0 +1,14 @@ +http://bugs.gentoo.org/513568 +http://bugzilla.xfce.org/show_bug.cgi?id=10974 + +--- libxfcegui4/xfce-exec.c ++++ libxfcegui4/xfce-exec.c +@@ -79,7 +79,7 @@ + #ifndef G_OS_WIN32 + gchar *dpyname = user_data; + +- xfce_setenv ("DISPLAY", dpyname, TRUE); ++ g_setenv ("DISPLAY", dpyname, TRUE); + #endif + } + diff --git a/talimatname/genel/l/libxfcegui4/talimat b/talimatname/genel/l/libxfcegui4/talimat new file mode 100644 index 000000000..dba044609 --- /dev/null +++ b/talimatname/genel/l/libxfcegui4/talimat @@ -0,0 +1,26 @@ +# Tanım: Xfce4 için çeşitli Gtk widget'ları (Kullanımdan kaldırılmış kitaplık) +# URL: http://www.xfce.org/ +# Paketçi: Cihan Alkan +# Gerekler: startup-notification xfce4-conf libglade xorg-libsm hicolor-icon-theme +# Grup: xfce + +isim=libxfcegui4 +surum=4.10.0 +devir=1 +kaynak=(http://archive.xfce.org/src/xfce/$isim/${surum%.*}/$isim-$surum.tar.bz2 + libxfcegui4-4.10.0-no-xfce_setenv.patch) + + +derle() { +cd $isim-$surum + patch -Np0 -i $SRC/libxfcegui4-4.10.0-no-xfce_setenv.patch + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-static \ + --disable-debug + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libxkbcommon/talimat b/talimatname/genel/l/libxkbcommon/talimat new file mode 100644 index 000000000..6567a08f9 --- /dev/null +++ b/talimatname/genel/l/libxkbcommon/talimat @@ -0,0 +1,18 @@ +# Tanım: XKB belirtimiyle tanımlanan anahtar dizinlerinin daha düşük bir alt kümesini işleyen bir kitaplık +# URL: http://xkbcommon.org/ +# Paketçi: milisarge +# Gerekler: xorg-xkeyboard-config libxcb doxygen xorg-util-macros + +isim=libxkbcommon +surum=0.5.0 +devir=1 + +kaynak=(http://xkbcommon.org/download/libxkbcommon-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ + --disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libxml++26/talimat b/talimatname/genel/l/libxml++26/talimat new file mode 100644 index 000000000..d74b53d78 --- /dev/null +++ b/talimatname/genel/l/libxml++26/talimat @@ -0,0 +1,19 @@ +# Tanım: XML dosyalarını ayrıştırmak için kullanılan kitaplıklar ve yardımcı programlar. +# URL: http://libxmlplusplus.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: libxml2 glibmm + +isim=libxml++26 +surum=2.40.1 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/GNOME/sources/libxml++/${version:0:4}/libxml++-${surum}.tar.xz::$isim-$surum.tar.gz) + +derle() { + cd "${SRC}/libxml++-${surum}" + ./configure --prefix=/usr + + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + make + make DESTDIR="${PKG}" install +} diff --git a/talimatname/genel/l/libxml2/talimat b/talimatname/genel/l/libxml2/talimat new file mode 100644 index 000000000..2b886fc78 --- /dev/null +++ b/talimatname/genel/l/libxml2/talimat @@ -0,0 +1,19 @@ +# Tanım: XML dosyalarını ayrıştırmak için kullanılan kitaplıklar ve yardımcı programlar. +# URL: http://xmlsoft.org/ +# Paketçi: milisarge +# Gerekler: python + +isim=libxml2 +surum=2.9.5 +devir=1 + +kaynak=(ftp://xmlsoft.org/libxml2/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --disable-static --with-history + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/gtk-doc +} diff --git a/talimatname/genel/l/libxslt/talimat b/talimatname/genel/l/libxslt/talimat new file mode 100644 index 000000000..513e2d9b6 --- /dev/null +++ b/talimatname/genel/l/libxslt/talimat @@ -0,0 +1,17 @@ +# Tanım: XSLT kitaplıkları, XSLT dosyalarını desteklemek için libxml2 kitaplıklarını genişletmek için kullanılır. +# URL: http://xmlsoft.org/XSLT/ +# Paketçi: milisarge +# Gerekler: libxml2 libgcrypt + +isim=libxslt +surum=1.1.28 +devir=1 + +kaynak=( ftp://xmlsoft.org/libxml2/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libyubikey/libyubikey.70-yubikey.rules b/talimatname/genel/l/libyubikey/libyubikey.70-yubikey.rules new file mode 100644 index 000000000..e1ddb940a --- /dev/null +++ b/talimatname/genel/l/libyubikey/libyubikey.70-yubikey.rules @@ -0,0 +1,4 @@ +# 70-yubikey.rules +# give the yubico key device mode 0664 and group yubikey + +ACTION=="add|change", SUBSYSTEM=="usb", ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0010", MODE="0664", GROUP="yubikey" diff --git a/talimatname/genel/l/libyubikey/talimat b/talimatname/genel/l/libyubikey/talimat new file mode 100644 index 000000000..4e7e52964 --- /dev/null +++ b/talimatname/genel/l/libyubikey/talimat @@ -0,0 +1,20 @@ +# Tanım: Yubico C düşük seviye Kütüphane: Yubico YubiKey Tek İşlemli Parolaları (OTP'ler) işlemek için kullanılan C kütüphanesi +# URL: http://www.yubico.com/ +# Paketçi: milisarge +# Gerekler: libusb asciidoc + +isim=libyubikey +surum=1.13 +devir=1 + +kaynak=(https://github.com/Yubico/yubico-c/archive/libyubikey-$surum.tar.gz + libyubikey.70-yubikey.rules) +derle() +{ +cd yubico-c-libyubikey-$surum +autoreconf --install +./configure --prefix=/usr +make +make DESTDIR="${PKG}/" install +install -D -m0644 "${SRC}/libyubikey.70-yubikey.rules" "${PKG}/lib/udev/rules.d/70-yubikey.rules" +} diff --git a/talimatname/genel/l/libzeitgeist/talimat b/talimatname/genel/l/libzeitgeist/talimat new file mode 100644 index 000000000..ffe002eaa --- /dev/null +++ b/talimatname/genel/l/libzeitgeist/talimat @@ -0,0 +1,18 @@ +# Tanım: C ve Vala'dan Zeitgeist olay günlüğüne erişmek ve yönetmek için kullanılan istemci kitaplığı. +# URL: http://www.gnome.org/ +# Paketçi: milisarge +# Gerekler: glib + +isim=libzeitgeist +surum=0.3.18 +devir=1 + +kaynak=(http://launchpad.net/$isim/${surum%.*}/$surum/+download/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/libzen/talimat b/talimatname/genel/l/libzen/talimat new file mode 100644 index 000000000..7e488c941 --- /dev/null +++ b/talimatname/genel/l/libzen/talimat @@ -0,0 +1,34 @@ +# Tanım: Libmediainfo ve mediainfo için paylaşılan kütüphane +# URL: http://mediainfo.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: + +isim=libzen +surum=0.4.31 +devir=1 + +kaynak=( +http://downloads.sourceforge.net/zenlib/${isim}_${surum}.tar.bz2) + +derle(){ + cd $SRC/ZenLib/Project/GNU/Library + sh ./autogen + ./configure --prefix=/usr \ + --enable-shared + make clean + make + make DESTDIR=$PKG install + + install -dm755 $PKG/usr/include/ZenLib + install -m644 $SRC/ZenLib/Source/ZenLib/*.h $PKG/usr/include/ZenLib + for i in HTTP_Client Format/Html Format/Http; do + install -dm0755 $PKG/usr/include/ZenLib/$i + install -m0644 $SRC/ZenLib/Source/ZenLib/$i/*.h \ + $PKG/usr/include/ZenLib/$i + done + install -dm755 $PKG/usr/lib/pkgconfig + install -m644 $SRC/ZenLib/Project/GNU/Library/libzen.pc \ + $PKG/usr/lib/pkgconfig + sed -i -e 's|Version: |Version: '$surum'|g' \ + $PKG/usr/lib/pkgconfig/libzen.pc +} diff --git a/talimatname/genel/l/libzip/talimat b/talimatname/genel/l/libzip/talimat new file mode 100644 index 000000000..0ecdbc139 --- /dev/null +++ b/talimatname/genel/l/libzip/talimat @@ -0,0 +1,20 @@ +# Tanım: Zip arşivlerini okumak, oluşturmak ve değiştirmek için bir C kütüphanesi +# URL: http://www.nih.at/libzip/index.html +# Paketçi: milisarge +# Gerekler: + +isim=libzip +surum=1.0.1 +devir=1 + +kaynak=(http://www.nih.at/$isim/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install + +ln -s /usr/lib/libzip/include/zipconf.h $PKG/usr/include/zipconf.h +install -Dm644 LICENSE $PKG/usr/share/licenses/$isim/LICENSE +} diff --git a/talimatname/genel/l/libzmf/talimat b/talimatname/genel/l/libzmf/talimat new file mode 100644 index 000000000..d5033de61 --- /dev/null +++ b/talimatname/genel/l/libzmf/talimat @@ -0,0 +1,19 @@ +# Tanım: Zoner çizim ve bitmap dosyalarını içe aktarmak için bir kütüphane +# URL: https://wiki.documentfoundation.org/DLP/Libraries/libzmf +# Paketçi: Cihan Alkan +# Gerekler: librevenge boost libpng doxygen + +isim=libzmf +surum=0.0.1 +devir=1 + +kaynak=(https://dev-www.libreoffice.org/src/$isim/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + + ./configure --prefix=/usr --disable-werror + make + make DESTDIR=$PKG install + install -Dm644 COPYING $PKG/usr/share/licenses/$isim/COPYING +} diff --git a/talimatname/genel/l/lightdm-gtk-greeter-settings/lightdm-gtk-greeter-settings-tr.po b/talimatname/genel/l/lightdm-gtk-greeter-settings/lightdm-gtk-greeter-settings-tr.po new file mode 100644 index 000000000..1ccb3f133 --- /dev/null +++ b/talimatname/genel/l/lightdm-gtk-greeter-settings/lightdm-gtk-greeter-settings-tr.po @@ -0,0 +1,910 @@ +# Turkish translation for lightdm-gtk-greeter-settings +# Copyright (c) 2016 Rosetta Contributors and Canonical Ltd 2016 +# This file is distributed under the same license as the lightdm-gtk-greeter-settings package. +# Cihan Alkan <cihanalk@gmail.com>, 2016. +# +msgid "" +msgstr "" +"Project-Id-Version: lightdm-gtk-greeter-settings\n" +"Report-Msgid-Bugs-To: Cihan Alkan <cihanalk@gmail.com>\n" +"POT-Creation-Date: 2015-05-20 21:22-0400\n" +"PO-Revision-Date: 2016-02-09 23:31+0000\n" +"Last-Translator: Cihan Alkan <cihanalk@gmail.com>\n" +"Language-Team: Turkish <el@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2017-09-20 09:52+0000\n" +"X-Generator: Launchpad (build 18449)\n" + +#: ../lightdm-gtk-greeter-settings.desktop.in.h:1 +msgid "LightDM GTK+ Greeter settings" +msgstr "LightDM GTK+ Karşılama Ayarları" + +#: ../lightdm-gtk-greeter-settings.desktop.in.h:2 +msgid "Configure LightDM GTK+ Greeter" +msgstr "LightDM GTK+ Karşılama Ayarları" + +#: ../data/GtkGreeterSettingsWindow.ui.h:1 +msgid "LightDM GTK+ Greeter: settings" +msgstr "LightDM GTK+ Karşılama: ayarları" + +#: ../data/GtkGreeterSettingsWindow.ui.h:2 +msgctxt "option|greeter|xft-rgba" +msgid "None" +msgstr "Hiçbiri" + +#: ../data/GtkGreeterSettingsWindow.ui.h:3 +msgctxt "option|greeter|xft-rgba" +msgid "RGB" +msgstr "RGB" + +#: ../data/GtkGreeterSettingsWindow.ui.h:4 +msgctxt "option|greeter|xft-rgba" +msgid "BGR" +msgstr "BGR" + +#: ../data/GtkGreeterSettingsWindow.ui.h:5 +msgctxt "option|greeter|xft-rgba" +msgid "Vertical RGB" +msgstr "Dikey RGB" + +#: ../data/GtkGreeterSettingsWindow.ui.h:6 +msgctxt "option|greeter|xft-rgba" +msgid "Vertical BGR" +msgstr "Dikey BGR" + +#: ../data/GtkGreeterSettingsWindow.ui.h:7 +msgctxt "option|greeter|xft-hintstyle" +msgid "None" +msgstr "Hiçbiri" + +#: ../data/GtkGreeterSettingsWindow.ui.h:8 +msgctxt "option|greeter|xft-hintstyle" +msgid "Slight" +msgstr "Ελαφρύ" + +#: ../data/GtkGreeterSettingsWindow.ui.h:9 +msgctxt "option|greeter|xft-hintstyle" +msgid "Medium" +msgstr "Ortala" + +#: ../data/GtkGreeterSettingsWindow.ui.h:10 +msgctxt "option|greeter|xft-hintstyle" +msgid "Full" +msgstr "Tam" + +#: ../data/GtkGreeterSettingsWindow.ui.h:11 +msgctxt "option|greeter|xft-antialias" +msgid "Antialias" +msgstr "Yumuşat" + +#: ../data/GtkGreeterSettingsWindow.ui.h:12 +msgid "Enable this option to override system defaults" +msgstr "Sistem varsayılanlarını geçersiz kılmak için bu seçeneği etkinleştirin" + +#: ../data/GtkGreeterSettingsWindow.ui.h:13 +msgctxt "option|greeter|xft-dpi" +msgid "DPI" +msgstr "DPI" + +#: ../data/GtkGreeterSettingsWindow.ui.h:14 +msgctxt "option|greeter|xft-rgba" +msgid "Subpixel rendering" +msgstr "Altpixel oluşturma" + +#: ../data/GtkGreeterSettingsWindow.ui.h:15 +msgctxt "option|greeter|xft-hintstyle" +msgid "Hinting" +msgstr "İmalı" + +#: ../data/GtkGreeterSettingsWindow.ui.h:16 +msgid "Additional font options" +msgstr "Ek yazı tipi seçenekleri" + +#: ../data/GtkGreeterSettingsWindow.ui.h:17 +msgctxt "option|greeter|background" +msgid "Background" +msgstr "Arkaplan" + +#: ../data/GtkGreeterSettingsWindow.ui.h:18 +msgctxt "option|multihead" +msgid "" +" <i>(veya <a href=\"\">bireysel monitörler için</a> çoklu ayar kurulumunu kullanın)</i>" +msgstr "" + +#: ../data/GtkGreeterSettingsWindow.ui.h:19 +#: ../data/MultiheadSetupDialog.ui.h:9 +msgctxt "option|greeter|background" +msgid "Color" +msgstr "Renk" + +#: ../data/GtkGreeterSettingsWindow.ui.h:20 +#: ../data/MultiheadSetupDialog.ui.h:8 +msgctxt "option|greeter|background" +msgid "Image" +msgstr "Resim" + +#: ../data/GtkGreeterSettingsWindow.ui.h:21 +msgctxt "option|greeter|theme-name" +msgid "Theme" +msgstr "Tema" + +#: ../data/GtkGreeterSettingsWindow.ui.h:22 +msgctxt "option|greeter|icon-theme-name" +msgid "Icons" +msgstr "Simgeler" + +#: ../data/GtkGreeterSettingsWindow.ui.h:23 +msgctxt "option|greeter|font-name" +msgid "Font" +msgstr "Yaz Tipi" + +#: ../data/GtkGreeterSettingsWindow.ui.h:24 +msgctxt "option|greeter|hide-user-image" +msgid "User image" +msgstr "Kullanıcı Resmi" + +#: ../data/GtkGreeterSettingsWindow.ui.h:25 +msgctxt "option|greeter|default-user-image" +msgid "Default user image" +msgstr "Varsayılan kullanıcı resmi" + +#: ../data/GtkGreeterSettingsWindow.ui.h:26 +#: ../data/MultiheadSetupDialog.ui.h:11 +msgctxt "option|greeter|user-background" +msgid "Use user wallpaper if available" +msgstr "Varsa kullanıcı duvar kağıdını kullan" + +#: ../data/GtkGreeterSettingsWindow.ui.h:27 +msgctxt "tabs" +msgid "Appearance" +msgstr "Görünüm" + +#: ../data/GtkGreeterSettingsWindow.ui.h:29 +#, no-c-format +msgctxt "option|greeter|clock-format" +msgid "" +"%H %I - hours, %M - minutes, %S - seconds\n" +"%d - day, %m - month, %y %Y - year\n" +"%a %A - day of the week, %b %B - month name" +msgstr "" +"%H %I - saat, %M - dakika, %S - saniye\n" +"%d - gün, %m - ay, %y %Y - yıl\n" +"%a %A - haftanın günü, %b %B - ay adı" + +#: ../data/GtkGreeterSettingsWindow.ui.h:32 +msgctxt "option|greeter|indicators" +msgid "Add indicator to list" +msgstr "Listeye gösterge ekle" + +#: ../data/GtkGreeterSettingsWindow.ui.h:33 +msgctxt "option|greeter|indicators" +msgid "Add" +msgstr "Ekle" + +#: ../data/GtkGreeterSettingsWindow.ui.h:34 +msgctxt "option|greeter|indicators" +msgid "Remove indicator from list" +msgstr "Listeden gösterge sil" + +#: ../data/GtkGreeterSettingsWindow.ui.h:35 +msgctxt "option|greeter|indicators" +msgid "Remove" +msgstr "Sil" + +#: ../data/GtkGreeterSettingsWindow.ui.h:36 +msgctxt "option|greeter|indicators" +msgid "Move up" +msgstr "Yukarı al" + +#: ../data/GtkGreeterSettingsWindow.ui.h:37 +msgctxt "option|greeter|indicators" +msgid "Up" +msgstr "Yukarı" + +#: ../data/GtkGreeterSettingsWindow.ui.h:38 +msgctxt "option|greeter|indicators" +msgid "Move down" +msgstr "Aşağı Al" + +#: ../data/GtkGreeterSettingsWindow.ui.h:39 +msgctxt "option|greeter|indicators" +msgid "Down" +msgstr "Aşağı" + +#: ../data/GtkGreeterSettingsWindow.ui.h:40 +msgctxt "option|greeter|indicators" +msgid "Templates" +msgstr "Şablonlar" + +#: ../data/GtkGreeterSettingsWindow.ui.h:41 +msgctxt "option|greeter|clock-format" +msgid "Clock format:" +msgstr "Saat biçimi" + +#: ../data/GtkGreeterSettingsWindow.ui.h:42 +msgctxt "option|greeter|indicators" +msgid "Redefine indicators" +msgstr "Göstergeleri yeniden tanımla" + +#: ../data/GtkGreeterSettingsWindow.ui.h:43 +msgctxt "tabs" +msgid "Panel" +msgstr "Panel" + +#: ../data/GtkGreeterSettingsWindow.ui.h:44 +msgctxt "option|greeter|position" +msgid "Horizontal" +msgstr "Yatay" + +#: ../data/GtkGreeterSettingsWindow.ui.h:45 +msgctxt "option|greeter|position" +msgid "Vertical" +msgstr "Dikey" + +#: ../data/GtkGreeterSettingsWindow.ui.h:47 +#, no-c-format +msgctxt "option|greeter|position" +msgid "in %" +msgstr "içerde %" + +#: ../data/GtkGreeterSettingsWindow.ui.h:48 +msgctxt "option|greeter|position" +msgid "from right" +msgstr "Sağdan" + +#: ../data/GtkGreeterSettingsWindow.ui.h:49 +msgctxt "option|greeter|position" +msgid "from bottom" +msgstr "Alttan" + +#: ../data/GtkGreeterSettingsWindow.ui.h:50 +msgctxt "option|greeter|position" +msgid "Select base point and its position." +msgstr "Taban noktasını ve konumunu seçin." + +#: ../data/GtkGreeterSettingsWindow.ui.h:51 +msgctxt "tabs" +msgid "Window position" +msgstr "Pencere pozisyonu" + +#: ../data/GtkGreeterSettingsWindow.ui.h:52 +msgctxt "option|greeter|screensaver-timeout" +msgid "Never" +msgstr "Asla" + +#: ../data/GtkGreeterSettingsWindow.ui.h:53 +msgid "Accessibility" +msgstr "Ulaşılabilirlik" + +#: ../data/GtkGreeterSettingsWindow.ui.h:54 +msgctxt "option|greeter|reader" +msgid "Select path to reader..." +msgstr "Okuyucunun yolunu seç..." + +#: ../data/GtkGreeterSettingsWindow.ui.h:55 +msgctxt "option|greeter|reader" +msgid "Command to launch screen reader" +msgstr "Ekran okuyucuyu başlatmak için komut" + +#: ../data/GtkGreeterSettingsWindow.ui.h:56 +msgctxt "option|greeter|keyboard" +msgid "Select path to keyboard..." +msgstr "Klavyeden yolu seç..." + +#: ../data/GtkGreeterSettingsWindow.ui.h:57 +msgctxt "option|greeter|keyboard" +msgid "Command to launch on-screen keyboard" +msgstr "Ekran klavyesi başlatmak için komut" + +#: ../data/GtkGreeterSettingsWindow.ui.h:58 +msgctxt "option|greeter|a11y-states" +msgid "Disabled at start" +msgstr "Başlangıçta devre dışı bırakıldı" + +#: ../data/GtkGreeterSettingsWindow.ui.h:59 +msgctxt "option|greeter|a11y-states" +msgid "Enabled at start" +msgstr "ΕBaşlangıçta etkinleştirildi" + +#: ../data/GtkGreeterSettingsWindow.ui.h:60 +msgctxt "option|greeter|a11y-states" +msgid "Save state between launches" +msgstr "Başlangıçta ki yere kaydedin" + +#: ../data/GtkGreeterSettingsWindow.ui.h:61 +msgctxt "option|greeter|a11y-theme" +msgid "Contrast theme" +msgstr "Kontrast teması" + +#: ../data/GtkGreeterSettingsWindow.ui.h:62 +msgctxt "option|greeter|a11y-font" +msgid "Large font" +msgstr "Büyük font" + +#: ../data/GtkGreeterSettingsWindow.ui.h:63 +msgctxt "greeter|option|reader" +msgid "Reader" +msgstr "Okuyucu" + +#: ../data/GtkGreeterSettingsWindow.ui.h:64 +msgctxt "greeter|option|keyboard" +msgid "Keyboard" +msgstr "Klavya" + +#: ../data/GtkGreeterSettingsWindow.ui.h:65 +msgctxt "option|greeter|screensaver-timeout" +msgid "Timeout until the screen blanks " +msgstr "Ekran boşluklarına kadar zaman aşımı " + +#: ../data/GtkGreeterSettingsWindow.ui.h:66 +msgctxt "greeter|option|allow-debugging" +msgid "Debugging mode" +msgstr "Hata ayıklama modu" + +#: ../data/GtkGreeterSettingsWindow.ui.h:67 +msgctxt "greeter|option|allow-debugging" +msgid "" +"Enable keys to launch GtkInspector\n" +"More informative log" +msgstr "" +"GtkInspector'ı başlatmak için tuşları etkinleştir\n" +"Daha bilgilendirici günlüğü" + +#: ../data/GtkGreeterSettingsWindow.ui.h:69 +msgctxt "tabs" +msgid "Misc." +msgstr "Çeşitli" + +#: ../data/GtkGreeterSettingsWindow.ui.h:70 +#: ../data/IndicatorPropertiesDialog.ui.h:3 +msgctxt "button" +msgid "_Close" +msgstr "_Kapat" + +#: ../data/GtkGreeterSettingsWindow.ui.h:71 +msgctxt "button" +msgid "_Save" +msgstr "_Kaydet" + +#: ../data/GtkGreeterSettingsWindow.ui.h:72 +msgctxt "button" +msgid "_Reload" +msgstr "_Yeniden Yükla" + +#: ../data/GtkGreeterSettingsWindow.ui.h:73 +msgid "Read configuration file" +msgstr "Yapılandırma dosyasını oku" + +#: ../data/IconChooserDialog.ui.h:1 +msgctxt "icon-dialog" +msgid "Select icon" +msgstr "Simge seç" + +#: ../data/IconChooserDialog.ui.h:2 +msgctxt "button" +msgid "_Cancel" +msgstr "_İptal" + +#: ../data/IconChooserDialog.ui.h:3 ../data/IndicatorPropertiesDialog.ui.h:4 +#: ../data/MultiheadSetupDialog.ui.h:14 +msgctxt "button" +msgid "_OK" +msgstr "_Tamam" + +#: ../data/IconChooserDialog.ui.h:4 +msgid "Add selected indicator to the list and close this window" +msgstr "Seçilen göstergeyi listeye ekle ve bu pencereyi kapat" + +#: ../data/IconChooserDialog.ui.h:5 +msgctxt "icon-dialog" +msgid "Icon _name:" +msgstr "Simge adı:" + +#: ../data/IconChooserDialog.ui.h:6 +msgctxt "icon-dialog" +msgid "_Contexts:" +msgstr "İçerik" + +#: ../data/IconChooserDialog.ui.h:7 +msgctxt "icon-dialog" +msgid "_Icon names:" +msgstr "Simge adı:" + +#: ../data/IconChooserDialog.ui.h:8 +msgctxt "icon-dialog" +msgid "List _standard icons only" +msgstr "Yalnızca standart simgeleri listele" + +#: ../data/ImageChooserDialog.ui.h:1 +#: ../lightdm_gtk_greeter_settings/OptionEntry.py:264 +msgid "_Cancel" +msgstr "_İptal" + +#: ../data/ImageChooserDialog.ui.h:2 +#: ../lightdm_gtk_greeter_settings/OptionEntry.py:263 +msgid "_OK" +msgstr "_Tamam" + +#: ../data/IndicatorPropertiesDialog.ui.h:1 +msgctxt "option-entry|indicators" +msgid "Select file..." +msgstr "Dosya seç..." + +#: ../data/IndicatorPropertiesDialog.ui.h:2 +msgctxt "option-entry|indicators" +msgid "Indicator properties" +msgstr "Ιδιότητες δείκτη" + +#: ../data/IndicatorPropertiesDialog.ui.h:5 +msgctxt "button" +msgid "_Add" +msgstr "_Ekle" + +#: ../data/IndicatorPropertiesDialog.ui.h:6 +msgctxt "option-entry|indicators" +msgid "Indicator" +msgstr "Δείκτης" + +#: ../data/IndicatorPropertiesDialog.ui.h:7 +msgctxt "option-entry|indicators" +msgid "Display label" +msgstr "Ekran etiketi" + +#: ../data/IndicatorPropertiesDialog.ui.h:8 +msgctxt "option-entry|indicators" +msgid "Leave empty to use default value" +msgstr "" + +#: ../data/IndicatorPropertiesDialog.ui.h:9 +msgctxt "option-entry|indicators" +msgid "Display image" +msgstr "Resmi görüntüle" + +#: ../data/IndicatorPropertiesDialog.ui.h:10 +msgctxt "option-entry|indicators" +msgid "Indicator library/service:" +msgstr "Gösterge kütüphane/servis" + +#: ../data/IndicatorPropertiesDialog.ui.h:11 +msgctxt "option-entry|indicators" +msgid "Hide disabled power actions" +msgstr "Devre dışı bırakılan güç eylemlerini gizle" + +#: ../data/IndicatorPropertiesDialog.ui.h:12 +msgctxt "option-entry|indicators" +msgid "Text to display:" +msgstr "Görüntülenecek metin:" + +#: ../data/IndicatorPropertiesDialog.ui.h:13 +msgctxt "option-entry|indicators" +msgid "Spacer - fills the maximum available space" +msgstr "Spacer - maksimum kullanılabilir alanı doldurur" + +#: ../data/IndicatorPropertiesDialog.ui.h:14 +msgctxt "option-entry|indicators" +msgid "Separator - draw a separator" +msgstr "Ayırıcı - bir ayırıcı çizin" + +#: ../data/MultiheadSetupDialog.ui.h:1 +msgctxt "option|multihead" +msgid "Multihead setup" +msgstr "çoklubaşlık kurulumu" + +#: ../data/MultiheadSetupDialog.ui.h:2 +msgctxt "option|multihead" +msgid "Add configuration" +msgstr "Yapılandırma ekle" + +#: ../data/MultiheadSetupDialog.ui.h:3 +msgctxt "option|multihead" +msgid "No configured monitors found" +msgstr "Yapılandırılmış monitör bulunamadı" + +#: ../data/MultiheadSetupDialog.ui.h:4 +msgctxt "option|multihead" +msgid "Monitor name:" +msgstr "Ekran adı:" + +#: ../data/MultiheadSetupDialog.ui.h:5 +msgid "Don't leave empty" +msgstr "Boş bırakmayın" + +#: ../data/MultiheadSetupDialog.ui.h:6 +msgctxt "option|multihead" +msgid "Add new monitor configuration" +msgstr "Yeni monitör yapılandırması ekle" + +#: ../data/MultiheadSetupDialog.ui.h:7 +msgctxt "option|multihead" +msgid "Overwrite default \"background\" option" +msgstr "Varsayılan \"arka plan \" seçeneğinin üzerine yaz" + +#: ../data/MultiheadSetupDialog.ui.h:10 +msgctxt "option|multihead" +msgid "Overwrite default \"user-background\" option" +msgstr "Varsayılan \"kullanıcı arka planı \" seçeneğinin üzerine yaz" + +#: ../data/MultiheadSetupDialog.ui.h:12 +msgctxt "option|multihead" +msgid "Overwrite default \"laptop\" option" +msgstr "Varsayılan \"dizüstü \" seçeneğinin üzerine yaz" + +#: ../data/MultiheadSetupDialog.ui.h:13 +msgctxt "option|greeter|laptop" +msgid "This monitor is laptop display (detect lid closing)" +msgstr "Bu monitör dizüstü bilgisayar ekranıdır (kapağın kapanmasını algılar)" + +#: ../data/MultiheadSetupDialog.ui.h:15 +msgctxt "option|multihead" +msgid "" +"<i>Note: greeter does not set monitor geometry.\n" +"You need to configure it manually.</i>" +msgstr "" +"<i>Not: Greeter, monitör geometrisini ayarlamaz.\n" +"Manuel olarak yapılandırmanız gerekiyor.</i>" + +#: ../lightdm_gtk_greeter_settings/GtkGreeterSettingsWindow.py:179 +msgid "You don't have permissions to change greeter configuration" +msgstr "Selamlayıcı yapılandırmayı değiştirmek için izinleriniz yok" + +#: ../lightdm_gtk_greeter_settings/GtkGreeterSettingsWindow.py:183 +msgid "No permissions to save configuration" +msgstr "Yapılandırmayı kaydetmek için izin yok" + +#: ../lightdm_gtk_greeter_settings/GtkGreeterSettingsWindow.py:185 +#, python-brace-format +msgid "" +"It seems that you don't have permissions to write to file:\n" +"{path}\n" +"\n" +"Try to run this program using \"sudo\" or \"pkexec\"" +msgstr "" +"Dosyaya yazma izniniz yok gibi görünüyor:\n" +"{path}\n" +"\n" +"\"sudo\" veya \"pkexec\" kullanarak bu programı çalıştırmayı deneyin" + +#: ../lightdm_gtk_greeter_settings/GtkGreeterSettingsWindow.py:373 +msgid "<i>disabled</i>" +msgstr "<i>pasif edildi</i>" + +#: ../lightdm_gtk_greeter_settings/GtkGreeterSettingsWindow.py:375 +msgid "<i>empty string</i>" +msgstr "<i>boş dize</i>" + +#: ../lightdm_gtk_greeter_settings/GtkGreeterSettingsWindow.py:377 +msgid "<i>None</i>" +msgstr "<i>Hiçbiri</i>" + +#: ../lightdm_gtk_greeter_settings/GtkGreeterSettingsWindow.py:401 +#, python-brace-format +msgid "Value defined in file: {path}" +msgstr "Dosyada tanımlanmış değer: {path}" + +#: ../lightdm_gtk_greeter_settings/GtkGreeterSettingsWindow.py:438 +#, python-brace-format +msgid "Reset to initial value: <b>{value}</b>" +msgstr "İlk değere sıfırla: <b>{value}</b>" + +#: ../lightdm_gtk_greeter_settings/GtkGreeterSettingsWindow.py:450 +#, python-brace-format +msgid "Reset to default value: <b>{value}</b>" +msgstr "ΕVarsayılan değere sıfırla: <b>{value}</b>" + +#: ../lightdm_gtk_greeter_settings/GtkGreeterSettingsWindow.py:471 +#, python-brace-format +msgid "Reset to value: <b>{value}</b>" +msgstr "Değere sıfırla: <b>{value}</b>" + +#: ../lightdm_gtk_greeter_settings/GtkGreeterSettingsWindow.py:493 +#, python-brace-format +msgctxt "option|greeter|screensaver-timeout" +msgid "{count} min" +msgstr "{count} min" + +#: ../lightdm_gtk_greeter_settings/GtkGreeterSettingsWindow.py:556 +#, python-brace-format +msgctxt "option|greeter|allow-debugging" +msgid "" +"GtkInspector is not available on your system\n" +"Gtk version: {current} < {minimal}" +msgstr "" +"GtkInspector sisteminizde mevcut değildir\n" +"Gtk sürümü : {current} < {minimal}" + +#: ../lightdm_gtk_greeter_settings/helpers.py:175 +#, python-brace-format +msgid "File not found: {path}" +msgstr "Dosya bulunamadı: {path}" + +#: ../lightdm_gtk_greeter_settings/helpers.py:199 +#, python-brace-format +msgid "Failed to check permissions: {error}" +msgstr "İzinler kontrol edilemedi: {error}" + +#: ../lightdm_gtk_greeter_settings/helpers.py:202 +#, python-brace-format +msgid "Directory is not readable: {path}" +msgstr "ΟDizin okunamıyor: {path}" + +#: ../lightdm_gtk_greeter_settings/helpers.py:205 +#: ../lightdm_gtk_greeter_settings/helpers.py:208 +#: ../lightdm_gtk_greeter_settings/helpers.py:210 +#, python-brace-format +msgid "LightDM does not have permissions to read path: {path}" +msgstr "LightDM yolunu okumak için izinlere sahip değil: {path}" + +#: ../lightdm_gtk_greeter_settings/helpers.py:216 +#, python-brace-format +msgid "Path is not a regular file: {path}" +msgstr "Yol normal bir dosya değil: {path}" + +#: ../lightdm_gtk_greeter_settings/helpers.py:222 +#: ../lightdm_gtk_greeter_settings/helpers.py:226 +#: ../lightdm_gtk_greeter_settings/helpers.py:229 +#, python-brace-format +msgid "LightDM does not have permissions to execute file: {path}" +msgstr "LightDM dosyasının yürütülmesi için izinlere sahip değil: {path}" + +#: ../lightdm_gtk_greeter_settings/IconChooserDialog.py:200 +msgctxt "icon-dialog" +msgid "All contexts" +msgstr "Tüm İçerik" + +#. separator +#: ../lightdm_gtk_greeter_settings/IconChooserDialog.py:202 +msgctxt "icon-dialog" +msgid "Actions" +msgstr "Eylemler" + +#: ../lightdm_gtk_greeter_settings/IconChooserDialog.py:203 +msgctxt "icon-dialog" +msgid "Applications" +msgstr "Uygulamalar" + +#: ../lightdm_gtk_greeter_settings/IconChooserDialog.py:204 +msgctxt "icon-dialog" +msgid "Categories" +msgstr "Kategoriler" + +#: ../lightdm_gtk_greeter_settings/IconChooserDialog.py:205 +msgctxt "icon-dialog" +msgid "Devices" +msgstr "Aygıtlar" + +#: ../lightdm_gtk_greeter_settings/IconChooserDialog.py:206 +msgctxt "icon-dialog" +msgid "Emblems" +msgstr "Εμβλήματα" + +#: ../lightdm_gtk_greeter_settings/IconChooserDialog.py:207 +msgctxt "icon-dialog" +msgid "Emoticons" +msgstr "Εικονίδια διάθεσης" + +#: ../lightdm_gtk_greeter_settings/IconChooserDialog.py:208 +msgctxt "icon-dialog" +msgid "International" +msgstr "Uluslararası" + +#: ../lightdm_gtk_greeter_settings/IconChooserDialog.py:209 +msgctxt "icon-dialog" +msgid "MIME Types" +msgstr "MIME Türü" + +#: ../lightdm_gtk_greeter_settings/IconChooserDialog.py:210 +msgctxt "icon-dialog" +msgid "Places" +msgstr "Yerler" + +#: ../lightdm_gtk_greeter_settings/IconChooserDialog.py:211 +msgctxt "icon-dialog" +msgid "Status" +msgstr "Durum" + +#: ../lightdm_gtk_greeter_settings/IconEntry.py:85 +#, python-brace-format +msgctxt "option-entry|icon" +msgid "Unrecognized value: {value}" +msgstr "Tanınmayan değer: {value}" + +#: ../lightdm_gtk_greeter_settings/IconEntry.py:104 +msgctxt "option-entry|icon" +msgid "Select icon name..." +msgstr "Simge adı seç..." + +#: ../lightdm_gtk_greeter_settings/IconEntry.py:106 +#, python-brace-format +msgctxt "option-entry|icon" +msgid "<b>Icon: {icon}</b>" +msgstr "<b>Simge: {icon}</b>" + +#: ../lightdm_gtk_greeter_settings/IconEntry.py:126 +msgctxt "option-entry|icon" +msgid "Select file..." +msgstr "Dosya seç..." + +#: ../lightdm_gtk_greeter_settings/IconEntry.py:129 +#, python-brace-format +msgctxt "option-entry|icon" +msgid "<b>File: {path}</b>" +msgstr "<b>Dosya: {path}</b>" + +#: ../lightdm_gtk_greeter_settings/IconEntry.py:131 +#, python-brace-format +msgctxt "option-entry|icon" +msgid "<b>File: {path}</b> (failed to load)" +msgstr "<b>Αρχείο {path}</b> (αδυναμία φόρτωσης)" + +#: ../lightdm_gtk_greeter_settings/IndicatorPropertiesDialog.py:79 +msgctxt "option-entry|indicators" +msgid "Use default value..." +msgstr "Varsayılan değeri kullan..." + +#: ../lightdm_gtk_greeter_settings/IndicatorPropertiesDialog.py:81 +msgctxt "option-entry|indicators" +msgid "<b>Using default value</b>" +msgstr "<b>Varsayılan değeri kullanma</b>" + +#: ../lightdm_gtk_greeter_settings/IndicatorPropertiesDialog.py:233 +msgctxt "option-entry|indicators" +msgid "Path/Service field is not filled" +msgstr "Yol/Servis alanı doldurulmadı" + +#: ../lightdm_gtk_greeter_settings/IndicatorPropertiesDialog.py:237 +#, python-brace-format +msgctxt "option-entry|indicators" +msgid "" +"Indicator \"{name}\" is already in the list.\n" +"It will be overwritten." +msgstr "" +"Gösterge \"{name}\" zaten listede.\n" +"ΘÜzerine yazılacak." + +#: ../lightdm_gtk_greeter_settings/IndicatorsEntry.py:131 +msgctxt "option-entry|indicators|name" +msgid "External library/service" +msgstr "Harici kütüphane/servis" + +#: ../lightdm_gtk_greeter_settings/IndicatorsEntry.py:132 +msgctxt "option-entry|indicators|name" +msgid "Spacer" +msgstr "Spacer" + +#: ../lightdm_gtk_greeter_settings/IndicatorsEntry.py:133 +msgctxt "option-entry|indicators|name" +msgid "Separator" +msgstr "Ayırıcı" + +#: ../lightdm_gtk_greeter_settings/IndicatorsEntry.py:134 +msgctxt "option-entry|indicators|name" +msgid "Text" +msgstr "Metin" + +#: ../lightdm_gtk_greeter_settings/IndicatorsEntry.py:135 +msgctxt "option-entry|indicators|name" +msgid "Clock" +msgstr "Saat" + +#: ../lightdm_gtk_greeter_settings/IndicatorsEntry.py:136 +msgctxt "option-entry|indicators|name" +msgid "Host name" +msgstr "Bilgisayar adı" + +#: ../lightdm_gtk_greeter_settings/IndicatorsEntry.py:137 +msgctxt "option-entry|indicators|name" +msgid "Keyboard layout" +msgstr "Klavye modeli" + +#: ../lightdm_gtk_greeter_settings/IndicatorsEntry.py:138 +msgctxt "option-entry|indicators|name" +msgid "Sessions menu" +msgstr "Oturum menüsü" + +#: ../lightdm_gtk_greeter_settings/IndicatorsEntry.py:139 +msgctxt "option-entry|indicators|name" +msgid "Languages menu" +msgstr "Dil menüsü" + +#: ../lightdm_gtk_greeter_settings/IndicatorsEntry.py:140 +msgctxt "option-entry|indicators|name" +msgid "Accessibility menu" +msgstr "Erişilebilirlik menüsü" + +#: ../lightdm_gtk_greeter_settings/IndicatorsEntry.py:141 +msgctxt "option-entry|indicators|name" +msgid "Power menu" +msgstr "Güç menüsü" + +#: ../lightdm_gtk_greeter_settings/IndicatorsEntry.py:148 +msgctxt "option-entry|indicators|tooltip" +msgid "Spacer" +msgstr "Spacer" + +#: ../lightdm_gtk_greeter_settings/IndicatorsEntry.py:149 +msgctxt "option-entry|indicators|tooltip" +msgid "Separator" +msgstr "Ayırıcı" + +#: ../lightdm_gtk_greeter_settings/IndicatorsEntry.py:150 +msgctxt "option-entry|indicators|tooltip" +msgid "Custom text or/and image" +msgstr "Özel metin veya/ve görüntü" + +#: ../lightdm_gtk_greeter_settings/IndicatorsEntry.py:151 +msgctxt "option-entry|indicators|tooltip" +msgid "Host name" +msgstr "Bilgisayar adı" + +#: ../lightdm_gtk_greeter_settings/IndicatorsEntry.py:152 +msgctxt "option-entry|indicators|tooltip" +msgid "Clock" +msgstr "Saat" + +#: ../lightdm_gtk_greeter_settings/IndicatorsEntry.py:153 +msgctxt "option-entry|indicators|tooltip" +msgid "Layout indicator" +msgstr "Yer göstergesi" + +#: ../lightdm_gtk_greeter_settings/IndicatorsEntry.py:155 +msgctxt "option-entry|indicators|tooltip" +msgid "Sessions menu (xfce, unity, gnome etc.)" +msgstr "Oturum menüsü (xfce, cinnamon, gnome vb.)" + +#: ../lightdm_gtk_greeter_settings/IndicatorsEntry.py:156 +msgctxt "option-entry|indicators|tooltip" +msgid "Languages menu" +msgstr "Dil menüsü" + +#: ../lightdm_gtk_greeter_settings/IndicatorsEntry.py:157 +msgctxt "option-entry|indicators|tooltip" +msgid "Accessibility menu" +msgstr "Erişilebilirlik menüsü" + +#: ../lightdm_gtk_greeter_settings/IndicatorsEntry.py:158 +msgctxt "option-entry|indicators|tooltip" +msgid "Power menu" +msgstr "Güç menüsü" + +#: ../lightdm_gtk_greeter_settings/IndicatorsEntry.py:583 +msgctxt "option-entry|indicators" +msgid "Reset to _defaults" +msgstr "Varsayılanlara dön" + +#: ../lightdm_gtk_greeter_settings/IndicatorsEntry.py:585 +msgctxt "option-entry|indicators" +msgid "Display _label" +msgstr "Ekran etiketi" + +#: ../lightdm_gtk_greeter_settings/IndicatorsEntry.py:587 +msgctxt "option-entry|indicators" +msgid "Display _image" +msgstr "Resmi görüntüle" + +#: ../lightdm_gtk_greeter_settings/IndicatorsEntry.py:589 +msgctxt "option-entry|indicators" +msgid "_Remove" +msgstr "_Çıkar" + +#: ../lightdm_gtk_greeter_settings/IndicatorsEntry.py:689 +msgctxt "option-entry|indicators" +msgid "Show unused items" +msgstr "Kullanılmayan öğeleri göster" + +#: ../lightdm_gtk_greeter_settings/IndicatorsEntry.py:693 +msgctxt "option-entry|indicators" +msgid "Predefined templates:" +msgstr "Öntanımlı şablonlar:" + +#: ../lightdm_gtk_greeter_settings/OptionEntry.py:265 +msgctxt "option|StringPathEntry" +msgid "Select path" +msgstr "Yol seç" + +#: ../com.ubuntu.pkexec.lightdm-gtk-greeter-settings.policy.in.h:1 +msgid "" +"Authentication is required to run Settings editor for LightDM GTK+ Greeter" +msgstr "" +"LightDM GTK + Greeter için Ayarlar düzenleyicisini çalıştırmak için kimlik doğrulaması gerekiyor" diff --git a/talimatname/genel/l/lightdm-gtk-greeter-settings/talimat b/talimatname/genel/l/lightdm-gtk-greeter-settings/talimat new file mode 100644 index 000000000..2dec72b79 --- /dev/null +++ b/talimatname/genel/l/lightdm-gtk-greeter-settings/talimat @@ -0,0 +1,18 @@ +# Tanım: LightDM GTK+ Greeter için ayar düzenleyici +# URL: https://launchpad.net/lightdm-gtk-greeter-settings +# Paketçi: yasarciv +# Gerekler: python3 python3-distutils-extra gtk3 python3-gobject gtk-update-icon-cache desktop-file-utils lightdm-gtk-greeter +# Grup: sistem + +isim=lightdm-gtk-greeter-settings +surum=1.2.2 +devir=1 +kaynak=(https://launchpad.net/lightdm-gtk-greeter-settings/${surum%.*}/$surum/+download/$isim-$surum.tar.gz + http://kaynaklar.milislinux.org/lightdm-gtk-greeter-settings-tr.po) + +derle() { + cd "$SRC/$isim-$surum" + mv ${SRC}/lightdm-gtk-greeter-settings-tr.po po/tr.po + python3 setup.py build + python3 setup.py install --root="$PKG" --optimize=1 --xfce-integration +} diff --git a/talimatname/genel/l/lightdm-gtk-greeter/cinnamon_badge_symbolic.svg b/talimatname/genel/l/lightdm-gtk-greeter/cinnamon_badge_symbolic.svg new file mode 100644 index 000000000..1f0190a89 --- /dev/null +++ b/talimatname/genel/l/lightdm-gtk-greeter/cinnamon_badge_symbolic.svg @@ -0,0 +1,75 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> + +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + id="svg2" + version="1.1" + inkscape:version="0.48.5 r10040" + width="16" + height="16" + sodipodi:docname="cinnamon2d_badge-symbolic.png"> + <metadata + id="metadata8"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title></dc:title> + </cc:Work> + </rdf:RDF> + </metadata> + <defs + id="defs6" /> + <sodipodi:namedview + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1" + objecttolerance="10" + gridtolerance="10" + guidetolerance="10" + inkscape:pageopacity="0" + inkscape:pageshadow="2" + inkscape:window-width="640" + inkscape:window-height="483" + id="namedview4" + showgrid="false" + inkscape:zoom="14.75" + inkscape:cx="8" + inkscape:cy="7.8644068" + inkscape:window-x="276" + inkscape:window-y="177" + inkscape:window-maximized="0" + inkscape:current-layer="svg2" /> + <image + width="16" + height="16" + xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hA \ +AAABHNCSVQICAgIfAhkiAAAAcxJREFU \ +OI2tk72qGlEUhb+jHp0RdUQQwYi2l2vEELAO8RHyDEmbFwghdV4njdg4lZVIYhoDEkgxghjxB39m \ +RufOTqGG603kpsiCDQf2Wd/axd6q0+kIcK1CwOcoAX4APRH52Gw2vwNETk11ekeBGKCBOGAA1qmy \ +wDPgjVLqs23brwDUaQIAotEolmWxWq24u7vjEa2VUrcRpdRLEXkLBKZpUq/XMU3zMTNAWkTeK5Hj \ +ALZtD1Op1E2j0aDX67HZbDAMg0qlgtaa8XiMZVlks1kcx2E2mwF8jd0jrh5GVKtV0uk0YRiSz+cB \ +CIKAWq12DrmNPDSdlUwmyWQyDIdD+v0+AI7j0O12ORwOFAoFgNhVgGEYALiui+u6AHieRxiG+L7/ \ +u38V8K/6r4DD/YbneTiOw36/R0RwHIf1en0dICLfzp9TqRS73Y7RaITneYgIo9GI5XJJJBIhkUgQ \ +BAFwXFsAlFK9/X7/erFYUC6XcV0X3/cv0rTWlEoltNZMJpOj77xIrVYrYRjGl1wud1OtVonFYlzT \ +fD5nMBhcAgA6nc5zpdQnrfWTYrH4B0RE2G63TKdTTr6fFwCAdrudi8fjH4AXwFOOF/o3TZVS734B \ +6IDRhG8yhb8AAAAASUVORK5CYII= ++" + id="image10" + x="0" + y="0" /> + <path + style="fill:#000000" + d="" + id="path2987" + inkscape:connector-curvature="0" /> +</svg> diff --git a/talimatname/genel/l/lightdm-gtk-greeter/talimat b/talimatname/genel/l/lightdm-gtk-greeter/talimat new file mode 100644 index 000000000..7a935a751 --- /dev/null +++ b/talimatname/genel/l/lightdm-gtk-greeter/talimat @@ -0,0 +1,43 @@ +# Tanım: Lightdm için GTK karşılayıcı +# URL: https://launchpad.net/lightdm-gtk-greeter +# Paketçi: milisarge +# Gerekler: gtk3 lightdm exo gobject-introspection intltool +# Grup: sistem + +isim=lightdm-gtk-greeter +surum=2.0.5 +devir=1 + +kaynak=(https://launchpad.net/lightdm-gtk-greeter/${surum%.*}/$surum/+download/lightdm-gtk-greeter-$surum.tar.gz + cinnamon_badge_symbolic.svg) + +derle() { + cd $isim-$surum + + CFLAGS="-Wno-declaration-after-statement" \ + ./configure \ + --prefix=/usr \ + --libdir=/usr/lib \ + --libexecdir=/usr/lib/lightdm \ + --sbindir=/usr/bin \ + --sysconfdir=/etc \ + --with-libxklavier \ + --disable-libido \ + --disable-libindicator \ + --disable-at-spi-command \ + --disable-indicator-services-command \ + --disable-static + + make + make install DESTDIR=$PKG + + # If user has no avatar, use milis logo + mkdir -p $PKG/usr/share/lightdm-gtk-greeter + cp /sources/milis.git/ayarlar/milislogo.png $PKG/usr/share/lightdm-gtk-greeter + echo "default-user-image = /usr/share/lightdm-gtk-greeter/milislogo.png" >> $PKG/etc/lightdm/lightdm-gtk-greeter.conf + + # Add Cinnamon logo + cp $SRC/cinnamon_badge_symbolic.svg $PKG/usr/share/icons/hicolor/scalable/places/cinnamon_badge-symbolic.svg + cp $SRC/cinnamon_badge_symbolic.svg $PKG/usr/share/icons/hicolor/scalable/places/cinnamon2d_badge-symbolic.svg + +} diff --git a/talimatname/genel/l/lightdm/Xsession b/talimatname/genel/l/lightdm/Xsession new file mode 100644 index 000000000..4614f478b --- /dev/null +++ b/talimatname/genel/l/lightdm/Xsession @@ -0,0 +1,25 @@ +#!/bin/sh +# +# LightDM wrapper to run around X sessions. + +echo "Running X session wrapper" + +# Load profile +for file in "/etc/profile" "$HOME/.profile" "/etc/xprofile" "$HOME/.xprofile"; do + if [ -f "$file" ]; then + echo "Loading profile from $file"; + . "$file" + fi +done + +# Run user xsession shell script +script="$HOME/.xsession" +if [ -x "$script" -a ! -d "$script" ]; then + echo "Loading xsession script $script" + . "$script" +fi + +echo "X session wrapper complete, running session $@" + +exec $@ + diff --git a/talimatname/genel/l/lightdm/lightdm.kur-kos b/talimatname/genel/l/lightdm/lightdm.kur-kos new file mode 100644 index 000000000..00b766515 --- /dev/null +++ b/talimatname/genel/l/lightdm/lightdm.kur-kos @@ -0,0 +1,8 @@ +sed -i "s/^id:[3-5]/id:5/" /etc/inittab +userdel lightdm +groupdel lightdm +groupadd -g 800 lightdm +useradd -d /var/lib/lightdm -s /bin/false -u 800 -g 800 lightdm +[ -d /var/lib/lightdm ] && chown lightdm:lightdm /var/lib/lightdm +[ -d /var/lib/lightdm-data ] && chown lightdm:lightdm /var/lib/lightdm-data +[ `mps -kk slim` = "kurulu" ] && mps sil slim diff --git a/talimatname/genel/l/lightdm/talimat b/talimatname/genel/l/lightdm/talimat new file mode 100644 index 000000000..aa2ae92cd --- /dev/null +++ b/talimatname/genel/l/lightdm/talimat @@ -0,0 +1,67 @@ +# Tanım: Hafif bir giriş yönetici +# URL: https://launchpad.net/lightdm +# Paketçi: milisarge +# Gerekler: glib gobject-introspection intltool itstool libgcrypt xorg-libxi xorg-libx11 libxcb xorg-libxdmcp xorg-libxklavier pam polkit vala +# Grup: sistem + +isim=lightdm +surum=1.26.0 +devir=1 + +kaynak=(https://github.com/CanonicalLtd/lightdm/releases/download/${surum}/lightdm-${surum}.tar.xz + Xsession) + +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr \ + --libdir=/usr/lib \ + --libexecdir=/usr/lib/lightdm \ + --localstatedir=/var \ + --sbindir=/usr/bin \ + --sysconfdir=/etc \ + --mandir=/usr/man \ + --with-greeter-session=lightdm-gtk-greeter \ + --with-greeter-user=lightdm \ + --disable-static \ + --disable-tests \ + --disable-liblightdm-qt \ + --disable-liblightdm-qt5 + + make + make DESTDIR=$PKG install + + rm -rf $PKG/usr/man + rm -rf $PKG/usr/share/gtk-doc + rm -rf $PKG/usr/share/help + + cat $SRC/Xsession > $PKG/etc/lightdm/Xsession + chmod 755 $PKG/etc/lightdm/Xsession + + rm -rf $PKG/etc/apparmor.d + rm -rf $PKG/etc/init + + #mv $PKG/etc/lightdm/lightdm.conf $PKG/etc/lightdm/lightdm.conf.new + #mv $PKG/etc/lightdm/users.conf $PKG/etc/lightdm/users.conf.new + #mv $PKG/etc/lightdm/keys.conf $PKG/etc/lightdm/keys.conf.new + + #mv $PKG/etc/pam.d/lightdm $PKG/etc/pam.d/lightdm.new + #mv $PKG/etc/pam.d/lightdm-autologin $PKG/etc/pam.d/lightdm-autologin.new + #mv $PKG/etc/pam.d/lightdm-greeter $PKG/etc/pam.d/lightdm-greeter.new + + # Remove systemd entries from pam files + sed -i 's@^.*pam_systemd.so.*$@@' $PKG/etc/pam.d/lightdm + sed -i 's@^.*pam_systemd.so.*$@@' $PKG/etc/pam.d/lightdm-autologin + sed -i 's@^.*pam_systemd.so.*$@@' $PKG/etc/pam.d/lightdm-greeter + + # Fix session-wrapper in config + sed -i 's@^.*session-wrapper.*$@session-wrapper=/etc/lightdm/Xsession@' $PKG/etc/lightdm/lightdm.conf + + mkdir -p $PKG/var/lib/lightdm + + mkdir -p $PKG/var/lib/lightdm-data + + # servis kurulması + cd /sources/milis.git/ayarlar/servisler + make DESTDIR=$PKG kur-lightdm +} diff --git a/talimatname/genel/l/lighttpd/lighttpd.conf b/talimatname/genel/l/lighttpd/lighttpd.conf new file mode 100644 index 000000000..e112f77b5 --- /dev/null +++ b/talimatname/genel/l/lighttpd/lighttpd.conf @@ -0,0 +1,204 @@ +# +# /etc/lighttpd.conf: lighttpd(1) configuration +# + +# to use mod_rewrite you have to compile lighttpd with libpcre installed +server.modules = ("mod_accesslog") + +server.port = 80 +server.username = "lighttpd" +server.groupname = "lighttpd" +server.pid-file = "/var/run/lighttpd.pid" + +# ssl support +#server.port = 443 +#ssl.engine = "enable" +#ssl.pemfile = "/etc/ssl/certs/lighttpd.pem" + +# chrooted operation +server.chroot = "/var/www" +server.document-root = "/htdocs" +server.errorlog = "/logs/error_log" +accesslog.filename = "/logs/access_log" + +# non-chrooted operation +#server.document-root = "/var/www/htdocs" +#server.errorlog = "/var/www/logs/error_log" +#accesslog.filename = "/var/www/logs/access_log" + +server.dir-listing = "enable" +server.indexfiles = ("index.html", "index.htm", "default.htm") + +mimetype.assign = ( + ".ai" => "application/postscript", + ".aif" => "audio/x-aiff", + ".aifc" => "audio/x-aiff", + ".aiff" => "audio/x-aiff", + ".arj" => "application/x-arj-compressed", + ".asc" => "text/plain", + ".atom" => "application/atom+xml", + ".au" => "audio/ulaw", + ".avi" => "video/x-msvideo", + ".bat" => "application/x-msdos-program", + ".bcpio" => "application/x-bcpio", + ".bin" => "application/octet-stream", + ".bmp" => "image/bmp", + ".cdf" => "application/x-netcdf", + ".cgm" => "image/cgm", + ".class" => "application/octet-stream", + ".com" => "application/x-msdos-program", + ".cpio" => "application/x-cpio", + ".cpt" => "application/mac-compactpro", + ".csh" => "application/x-csh", + ".css" => "text/css", + ".dcr" => "application/x-director", + ".deb" => "application/x-debian-package", + ".dir" => "application/x-director", + ".djv" => "image/vnd.djvu", + ".djvu" => "image/vnd.djvu", + ".dl" => "video/dl", + ".dll" => "application/octet-stream", + ".dmg" => "application/octet-stream", + ".dms" => "application/octet-stream", + ".doc" => "application/msword", + ".dtd" => "application/xml-dtd", + ".dvi" => "application/x-dvi", + ".dxr" => "application/x-director", + ".eps" => "application/postscript", + ".etx" => "text/x-setext", + ".exe" => "application/x-msdos-program", + ".ez" => "application/andrew-inset", + ".fli" => "video/fli", + ".gif" => "image/gif", + ".gl" => "video/gl", + ".gram" => "application/srgs", + ".grxml" => "application/srgs+xml", + ".gtar" => "application/x-gtar", + ".tar.gz" => "application/x-tar-gz", + ".gz" => "application/x-gunzip", + ".hdf" => "application/x-hdf", + ".hqx" => "application/mac-binhex40", + ".htm" => "text/html", + ".html" => "text/html", + ".ice" => "x-conference/x-cooltalk", + ".ico" => "image/x-icon", + ".ics" => "text/calendar", + ".ief" => "image/ief", + ".ifb" => "text/calendar", + ".iges" => "model/iges", + ".igs" => "model/iges", + ".jpe" => "image/jpeg", + ".jpeg" => "image/jpeg", + ".jpg" => "image/jpeg", + ".js" => "application/x-javascript", + ".kar" => "audio/midi", + ".latex" => "application/x-latex", + ".lha" => "application/octet-stream", + ".lzh" => "application/octet-stream", + ".m3u" => "audio/x-mpegurl", + ".m4u" => "video/vnd.mpegurl", + ".man" => "application/x-troff-man", + ".mathml" => "application/mathml+xml", + ".me" => "application/x-troff-me", + ".mesh" => "model/mesh", + ".mid" => "audio/midi", + ".midi" => "audio/midi", + ".mif" => "application/x-mif", + ".mov" => "video/quicktime", + ".movie" => "video/x-sgi-movie", + ".mp2" => "video/mpeg", + ".mp3" => "audio/mpeg", + ".mpe" => "video/mpeg", + ".mpeg" => "video/mpeg", + ".mpg" => "video/mpeg", + ".mpga" => "audio/mpeg", + ".ms" => "application/x-troff-ms", + ".msh" => "model/mesh", + ".mxu" => "video/vnd.mpegurl", + ".nc" => "application/x-netcdf", + ".oda" => "application/oda", + ".ogg" => "application/ogg", + ".pbm" => "image/x-portable-bitmap", + ".pdb" => "chemical/x-pdb", + ".pdf" => "application/pdf", + ".pgm" => "image/x-portable-graymap", + ".pgn" => "application/x-chess-pgn", + ".pgp" => "application/pgp", + ".pl" => "application/x-perl", + ".pm" => "application/x-perl", + ".png" => "image/png", + ".pnm" => "image/x-portable-anymap", + ".ppm" => "image/x-portable-pixmap", + ".ppt" => "application/vnd.ms-powerpoint", + ".ps" => "application/postscript", + ".qt" => "video/quicktime", + ".ra" => "audio/x-pn-realaudio", + ".ram" => "audio/x-pn-realaudio", + ".rar" => "application/x-rar-compressed", + ".ras" => "image/x-cmu-raster", + ".rdf" => "application/rdf+xml", + ".rgb" => "image/x-rgb", + ".rm" => "application/vnd.rn-realmedia", + ".roff" => "application/x-troff", + ".rtf" => "application/rtf", + ".rtx" => "text/richtext", + ".sgm" => "text/sgml", + ".sgml" => "text/sgml", + ".sh" => "application/x-sh", + ".shar" => "application/x-shar", + ".silo" => "model/mesh", + ".sit" => "application/x-stuffit", + ".skd" => "application/x-koan", + ".skm" => "application/x-koan", + ".skp" => "application/x-koan", + ".skt" => "application/x-koan", + ".smi" => "application/smil", + ".smil" => "application/smil", + ".snd" => "audio/basic", + ".so" => "application/octet-stream", + ".spl" => "application/x-futuresplash", + ".src" => "application/x-wais-source", + ".sv4cpio" => "application/x-sv4cpio", + ".sv4crc" => "application/x-sv4crc", + ".svg" => "image/svg+xml", + ".swf" => "application/x-shockwave-flash", + ".t" => "application/x-troff", + ".tar" => "application/x-tar", + ".tcl" => "application/x-tcl", + ".tex" => "application/x-tex", + ".texi" => "application/x-texinfo", + ".texinfo" => "application/x-texinfo", + ".tgz" => "application/x-tar-gz", + ".tif" => "image/tiff", + ".tiff" => "image/tiff", + ".tr" => "application/x-troff", + ".tsv" => "text/tab-separated-values", + ".txt" => "text/plain", + ".ustar" => "application/x-ustar", + ".vcd" => "application/x-cdlink", + ".vrm" => "x-world/x-vrml", + ".vrml" => "x-world/x-vrml", + ".vxml" => "application/voicexml+xml", + ".wav" => "audio/x-wav", + ".wbmp" => "image/vnd.wap.wbmp", + ".wbxml" => "application/vnd.wap.wbxml", + ".wml" => "text/vnd.wap.wml", + ".wmlc" => "application/vnd.wap.wmlc", + ".wmls" => "text/vnd.wap.wmlscript", + ".wmlsc" => "application/vnd.wap.wmlscriptc", + ".wrl" => "x-world/x-vrml", + ".xbm" => "image/x-xbitmap", + ".xht" => "application/xhtml+xml", + ".xhtml" => "application/xhtml+xml", + ".xls" => "application/excel", + ".xml" => "application/xml", + ".xpm" => "image/x-xpixmap", + ".xsl" => "application/xml", + ".xslt" => "application/xslt+xml", + ".xul" => "application/vnd.mozilla.xul+xml", + ".xwd" => "image/x-xwindowdump", + ".xyz" => "chemical/x-xyz", + ".zip" => "application/x-zip-compressed" +) + +# End of file diff --git a/talimatname/genel/l/lighttpd/talimat b/talimatname/genel/l/lighttpd/talimat new file mode 100644 index 000000000..7b20207cb --- /dev/null +++ b/talimatname/genel/l/lighttpd/talimat @@ -0,0 +1,28 @@ +# Tanım: Hızlı,güvenli ve esnek web sunucu uygulaması +# URL: http://www.lighttpd.net/ +# Paketçi: milisarge +# Gerekler: pcre + +isim=lighttpd +surum=1.4.45 +devir=1 +kaynak=(http://download.$isim.net/$isim/releases-1.4.x/$isim-$surum.tar.xz \ + $isim.conf ) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --libdir=/usr/lib/$isim --with-openssl \ + --mandir=/usr/man --with-pcre + make + make DESTDIR=$PKG install + + install -D -m 644 $SRC/$isim.conf $PKG/etc/$isim.conf + install -d $PKG/var/www/{htdocs,logs} + install -d $PKG/var/run + install -d $PKG/etc/ssl/certs + #touch $PKG/var/run/lighttpd.pid + touch $PKG/etc/ssl/certs/lighttpd.pem + chmod 0600 $PKG/etc/ssl/certs/lighttpd.pem + cd /sources/milis.git/ayarlar/servisler + make DESTDIR=$PKG kur-lighttpd +} diff --git a/talimatname/genel/l/lila-hd-icon-theme/lila-hd-icon-theme.kur-kos b/talimatname/genel/l/lila-hd-icon-theme/lila-hd-icon-theme.kur-kos new file mode 100644 index 000000000..35dba1531 --- /dev/null +++ b/talimatname/genel/l/lila-hd-icon-theme/lila-hd-icon-theme.kur-kos @@ -0,0 +1,7 @@ +gtk-update-icon-cache -f /usr/share/icons/Lila_HD +gtk-update-icon-cache -f /usr/share/icons/Lila_HD_Kaki +gtk-update-icon-cache -f /usr/share/icons/Lila_HD_Blue +gtk-update-icon-cache -f /usr/share/icons/Lila_HD_Dark +gtk-update-icon-cache -f /usr/share/icons/Lila_HD_Green +gtk-update-icon-cache -f /usr/share/icons/Lila_HD_Light-Grey +gtk-update-icon-cache -f /usr/share/icons/Lila_HD/default diff --git a/talimatname/genel/l/lila-hd-icon-theme/talimat b/talimatname/genel/l/lila-hd-icon-theme/talimat new file mode 100644 index 000000000..b99b73cec --- /dev/null +++ b/talimatname/genel/l/lila-hd-icon-theme/talimat @@ -0,0 +1,19 @@ +# Tanım: Linux için Lila simge seti +# URL: https://github.com/ilnanny/Lila-HD-icon-theme +# Paketçi: yasarciv67@gmail.com +# Gerekler: gtk-update-icon-cache + +isim=lila-hd-icon-theme +_isim=Lila-HD-icon-theme +surum=1 +devir=1 +kaynak=() + +derle() { + git clone https://github.com/ilnanny/$_name.git + cd "${_name}" + rm {credits,icon-theme.cache,lila-hd-32-px.png,Lila-HD-Icon-theme-3.0-Preview.png,README.md,install,SupportMe} + install -d "$PKG/usr/share/icons/" + cp -a * "$PKG/usr/share/icons/" + + } diff --git a/talimatname/genel/l/links/talimat b/talimatname/genel/l/links/talimat new file mode 100644 index 000000000..c26deadd7 --- /dev/null +++ b/talimatname/genel/l/links/talimat @@ -0,0 +1,21 @@ +# Tanım: Metin ve grafik modu WWW tarayıcı. Tablolar ve çerçeveler oluşturma desteği içerir +# URL: http://links.twibright.com/ +# Paketçi: milisarge +# Gerekler: gpm libpng libtiff libjpeg-turbo +# Grup: ağ + +isim=links +surum=2.16 +devir=1 + +kaynak=(http://links.twibright.com/download/links-$surum.tar.bz2) +derle() { +cd $isim-$surum +./configure --prefix=/usr --enable-graphics \ +--mandir=/usr/share/man +make +make DESTDIR=$PKG install +mkdir -p $PKG/usr/share/doc/$isim-$surum +install -v -m644 doc/links_cal/* KEYS BRAILLE_HOWTO \ +$PKG/usr/share/doc/$isim-$surum +} diff --git a/talimatname/genel/l/linux-firmware/microcode_amd_fam17h.bin.xz b/talimatname/genel/l/linux-firmware/microcode_amd_fam17h.bin.xz new file mode 100644 index 000000000..994b9c26a Binary files /dev/null and b/talimatname/genel/l/linux-firmware/microcode_amd_fam17h.bin.xz differ diff --git a/talimatname/genel/l/linux-firmware/talimat b/talimatname/genel/l/linux-firmware/talimat new file mode 100644 index 000000000..ca17e556e --- /dev/null +++ b/talimatname/genel/l/linux-firmware/talimat @@ -0,0 +1,46 @@ +# Tanım: Kernel için firmware ikilileri +# URL: https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git;a=summary +# Paketçi: milisarge +# Gerekler: b43-fwcutter git +# Grup: sürücüler + +isim=linux-firmware +surum=20180119 +_b43=5.100.138 +_legacy=3.130.20.0 +devir=1 +kaynak=(http://mirror2.openwrt.org/sources/broadcom-wl-${_b43}.tar.bz2 + http://downloads.openwrt.org/sources/wl_apsta-${_legacy}.o + microcode_amd_fam17h.bin.xz) + +derle() { + if [ ! -d $DERLEME_KAYNAKDIZIN/$isim ];then + git clone git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git $DERLEME_KAYNAKDIZIN/$isim + else + cd $DERLEME_KAYNAKDIZIN/$isim + git pull + cd - + fi + cp -r $DERLEME_KAYNAKDIZIN/$isim $SRC/ + cd $SRC/$isim + unxz $SRC/microcode_amd_fam17h.bin.xz + # Build/Package + make DESTDIR=$PKG FIRMWAREDIR=/lib/firmware install + + # Cleanup + rm $PKG/lib/firmware/{Makefile,README,configure,GPL-{2,3}} + + install -d ${PKG}/usr/share/licenses/${isim} + install -Dm644 LICEN* WHENCE ${PKG}/usr/share/licenses/linux-firmware/ + + # install b43-firmware + b43-fwcutter -w ${PKG}/lib/firmware/ ${SRC}/broadcom-wl-${_b43}/linux/wl_apsta.o + + # install b43-legacy-firmware + b43-fwcutter -w ${PKG}/lib/firmware/ ${SRC}/wl_apsta-${_legacy}.o + + # temporary manually add latest amd firmware + cd .. + install -Dm644 microcode_amd_fam17h.bin ${PKG}/lib/firmware/amd-ucode/ + +} diff --git a/talimatname/genel/l/lirc/lirc.logrotate b/talimatname/genel/l/lirc/lirc.logrotate new file mode 100644 index 000000000..623c4f328 --- /dev/null +++ b/talimatname/genel/l/lirc/lirc.logrotate @@ -0,0 +1,5 @@ +/var/log/lircd { + missingok + notifempty + delaycompress +} diff --git a/talimatname/genel/l/lirc/lirc.tmpfiles b/talimatname/genel/l/lirc/lirc.tmpfiles new file mode 100644 index 000000000..0b80e2e47 --- /dev/null +++ b/talimatname/genel/l/lirc/lirc.tmpfiles @@ -0,0 +1 @@ +d /run/lirc 0755 root root - diff --git a/talimatname/genel/l/lirc/talimat b/talimatname/genel/l/lirc/talimat new file mode 100644 index 000000000..657bbdc1a --- /dev/null +++ b/talimatname/genel/l/lirc/talimat @@ -0,0 +1,30 @@ +# Tanım: Linux Kızılötesi Uzaktan Kumanda programları +# URL: http://www.lirc.org/ +# Paketçi: Cihan_Alkan +# Gerekler: alsa-lib xorg-libx11 libftdi libusb-compat help2man libxslt python3 python3-setuptools +# Grup: sistem + +isim=lirc +surum=0.10.1 +devir=1 + +kaynak=(https://sourceforge.net/projects/lirc/files/LIRC/0.10.1/lirc-$surum.tar.gz + lirc.logrotate + lirc.tmpfiles) + +derle() { + + cd "${SRC}/lirc-$surum" + + HAVE_UINPUT=1 ./configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --localstatedir=/var + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + make + make DESTDIR="${PKG}" -j1 install + + install -Dm644 "${SRC}"/lirc.tmpfiles "${PKG}"/usr/lib/tmpfiles.d/lirc.conf + install -Dm644 "${SRC}"/lirc.logrotate "${PKG}"/etc/logrotate.d/lirc + + rmdir "${PKG}"/var/{run/lirc/,run/} + rm -rf ${PKG}/usr/share/doc + rm -rf ${PKG}/usr/share/man +} diff --git a/talimatname/genel/l/live/talimat b/talimatname/genel/l/live/talimat new file mode 100644 index 000000000..9107579cf --- /dev/null +++ b/talimatname/genel/l/live/talimat @@ -0,0 +1,36 @@ +# Tanım: Multimedya akışı için bir dizi C ++ kütüphanesi +# URL: http://www.live555.com/liveMedia/ +# Paketçi: milisarge +# Gerekler: + +isim=live +surum=2014.07.04 +devir=1 + +kaynak=(http://downloads.nutyx.org/files/$isim.$surum.tar.gz) + +derle() { +cd $SRC/live + + sed \ + -e 's/$(INCLUDES) -I. -O2 -DSOCKLEN_T/$(INCLUDES) -I. -O2 -I. -fPIC -DRTSPCLIENT_SYNCHRONOUS_INTERFACE=1 -DSOCKLEN_T/g' \ + -e 's/\(LIBRARY_LINK =\).*/\1 $(LD) -o/g' \ + -e 's/\(LIBRARY_LINK_OPTS =\).*/\1 $(LINK_OPTS) -r -Bstatic/g' \ + -i config.linux + ./genMakefiles linux + make + + + for dir in BasicUsageEnvironment groupsock liveMedia UsageEnvironment; do + install -dm755 $PKG/usr/{bin,lib,include/${dir}} + install -m644 ${dir}/*.a $PKG/usr/lib + install -m644 ${dir}/include/*.h* $PKG/usr/include/${dir} + done + + for testprog in `find testProgs -type f -perm 755`; do + install ${testprog} $PKG/usr/bin + done + +} + + diff --git a/talimatname/genel/l/lld/0003-CMake-Fix-pthread-handling-for-out-of-tree-builds.patch b/talimatname/genel/l/lld/0003-CMake-Fix-pthread-handling-for-out-of-tree-builds.patch new file mode 100644 index 000000000..58581b2a8 --- /dev/null +++ b/talimatname/genel/l/lld/0003-CMake-Fix-pthread-handling-for-out-of-tree-builds.patch @@ -0,0 +1,78 @@ +From 548cd5eb4f45de4ec71b3421a98c9462aed75c91 Mon Sep 17 00:00:00 2001 +From: Eric Fiselier <eric@efcs.ca> +Date: Fri, 10 Feb 2017 01:59:20 +0000 +Subject: [PATCH] [CMake] Fix pthread handling for out-of-tree builds + +LLVM defines `PTHREAD_LIB` which is used by AddLLVM.cmake and various projects +to correctly link the threading library when needed. Unfortunately +`PTHREAD_LIB` is defined by LLVM's `config-ix.cmake` file which isn't installed +and therefore can't be used when configuring out-of-tree builds. This causes +such builds to fail since `pthread` isn't being correctly linked. + +This patch attempts to fix that problem by renaming and exporting +`LLVM_PTHREAD_LIB` as part of`LLVMConfig.cmake`. I renamed `PTHREAD_LIB` +because It seemed likely to cause collisions with downstream users of +`LLVMConfig.cmake`. + + +git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@294690 91177308-0d34-0410-b5e6-96231b3b80d8 +--- + COFF/CMakeLists.txt | 2 +- + ELF/CMakeLists.txt | 2 +- + lib/ReaderWriter/MachO/CMakeLists.txt | 2 +- + unittests/CoreTests/CMakeLists.txt | 2 +- + 4 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/COFF/CMakeLists.txt b/COFF/CMakeLists.txt +index 0eebe9348..8f24e36c0 100644 +--- a/COFF/CMakeLists.txt ++++ b/COFF/CMakeLists.txt +@@ -43,7 +43,7 @@ add_lld_library(lldCOFF + + LINK_LIBS + lldCore +- ${PTHREAD_LIB} ++ ${LLVM_PTHREAD_LIB} + + DEPENDS + COFFOptionsTableGen +diff --git a/ELF/CMakeLists.txt b/ELF/CMakeLists.txt +index 5652b9351..0d1e5b214 100644 +--- a/ELF/CMakeLists.txt ++++ b/ELF/CMakeLists.txt +@@ -54,7 +54,7 @@ add_lld_library(lldELF + LINK_LIBS + lldConfig + lldCore +- ${PTHREAD_LIB} ++ ${LLVM_PTHREAD_LIB} + + DEPENDS + ELFOptionsTableGen +diff --git a/lib/ReaderWriter/MachO/CMakeLists.txt b/lib/ReaderWriter/MachO/CMakeLists.txt +index 3b0698525..5a96d87f1 100644 +--- a/lib/ReaderWriter/MachO/CMakeLists.txt ++++ b/lib/ReaderWriter/MachO/CMakeLists.txt +@@ -28,7 +28,7 @@ add_lld_library(lldMachO + LINK_LIBS + lldCore + lldYAML +- ${PTHREAD_LIB} ++ ${LLVM_PTHREAD_LIB} + ) + + include_directories(.) +diff --git a/unittests/CoreTests/CMakeLists.txt b/unittests/CoreTests/CMakeLists.txt +index 98405d5c7..72e7c443f 100644 +--- a/unittests/CoreTests/CMakeLists.txt ++++ b/unittests/CoreTests/CMakeLists.txt +@@ -3,5 +3,5 @@ add_lld_unittest(CoreTests + ) + + target_link_libraries(CoreTests +- ${PTHREAD_LIB} ++ ${LLVM_PTHREAD_LIB} + ) +-- +2.12.2 + diff --git a/talimatname/genel/l/lld/talimat b/talimatname/genel/l/lld/talimat new file mode 100644 index 000000000..b8becb61e --- /dev/null +++ b/talimatname/genel/l/lld/talimat @@ -0,0 +1,24 @@ +# Tanım: LLVM linker +# URL: http://llvm.org/ +# Paketçi: milisarge +# Gerekler: llvm cmake + +isim=lld +surum=4.0.0 +devir=1 +kaynak=(http://releases.llvm.org/$surum/lld-$surum.src.tar.xz) + +derle() { + + cd $isim-$surum.src + mkdir build + cd build + cmake ../ + make -C tools/lld DESTDIR=$PKG install + cd lib + install -d $PKG/usr/lib/ + cp *.a $PKG/usr/lib/ + cp -r $SRC/$isim-$surum.src/include $PKG/usr/ + mv $PKG/usr/local/* $PKG/usr/ + rm -r $PKG/usr/local +} diff --git a/talimatname/genel/l/llvm/llvm-config.h b/talimatname/genel/l/llvm/llvm-config.h new file mode 100644 index 000000000..ccc313fbf --- /dev/null +++ b/talimatname/genel/l/llvm/llvm-config.h @@ -0,0 +1,12 @@ +/* llvm-config.h stub */ + +#ifndef __STUB__LLVMCONFIG_H__ +#define __STUB__LLVMCONFIG_H__ + +#if defined(__x86_64__) +#include "llvm-config-64.h" +#else +#include "llvm-config-32.h" +#endif + +#endif diff --git a/talimatname/genel/l/llvm/talimat b/talimatname/genel/l/llvm/talimat new file mode 100644 index 000000000..63167b174 --- /dev/null +++ b/talimatname/genel/l/llvm/talimat @@ -0,0 +1,38 @@ +# Tanım: LLVM derleyicisi +# URL: http://llvm.org/ +# Paketçi: milisarge +# Gerekler: python cmake + +isim=llvm +surum=4.0.0 +devir=1 +kaynak=(http://llvm.org/releases/$surum/$isim-$surum.src.tar.xz \ + llvm-config.h) + +derle() { + export CC=gcc + export CXX=g++ + + cd $isim-$surum.src + + mkdir build + cd build + + cmake -DLLVM_ENABLE_CXX1Y=1 \ + -DLLVM_INCLUDE_EXAMPLES=0 \ + -DLLVM_INCLUDE_TESTS=0 \ + -DLLVM_ENABLE_OCAMLDOC=0 \ + -DLLVM_TARGETS_TO_BUILD='X86;AMDGPU;BPF' \ + -DLLVM_BUILD_LLVM_DYLIB=1 \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr .. + + MAKEFLAGS="$MAKEFLAGS" make + make DESTDIR=$PKG install + + # multilib stub + mv $PKG/usr/include/llvm/Config/llvm-config{,-64}.h + + install -m 0644 $SRC/llvm-config.h $PKG/usr/include/llvm/Config/ + +} diff --git a/talimatname/genel/l/lm-sensors/talimat b/talimatname/genel/l/lm-sensors/talimat new file mode 100644 index 000000000..971970324 --- /dev/null +++ b/talimatname/genel/l/lm-sensors/talimat @@ -0,0 +1,24 @@ +# Tanım: Genel SMBus erişimi ve donanım izleme için kullanıcı alanı araçlarının toplanması +# URL: http://dl.lm-sensors.org/lm-sensors/ +# Paketçi: milisarge +# Gerekler: + +isim=lm-sensors +surum=3.4.0 +devir=1 + +kaynak=(http://ftp.osuosl.org/pub/blfs/conglomeration/lmsensors/lm_sensors-$surum.tar.bz2) + +derle() { + cd lm_sensors-$surum + make PREFIX=/usr DESTDIR=$PKG \ + BUILD_STATIC_LIB=0 \ + MANDIR=/usr/share/man + make PREFIX=/usr DESTDIR=$PKG \ + BUILD_STATIC_LIB=0 \ + MANDIR=/usr/share/man install + + install -v -m755 -d $PKG/usr/share/doc/$isim-$surum + cp -rv README INSTALL doc/* \ + $PKG/usr/share/doc/$isim-$surum +} diff --git a/talimatname/genel/l/lmdb/talimat b/talimatname/genel/l/lmdb/talimat new file mode 100644 index 000000000..ab09030a9 --- /dev/null +++ b/talimatname/genel/l/lmdb/talimat @@ -0,0 +1,19 @@ +# Tanım: Symas LMDB, Symas OpenLDAP Projesi için geliştirdiğimiz olağanüstü derecede hızlı, bellek açısından verimli bir veritabanıdır. +# URL: http://symas.com/mdb +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: + +isim=lmdb +surum=0.9.18 +devir=1 + +kaynak=( https://github.com/LMDB/lmdb/archive/LMDB_$surum.tar.gz) + +derle() { + cd $isim-LMDB_$surum + cd libraries/liblmdb + make + sed -i 's| liblmdb.a||' Makefile + make prefix=/usr DESTDIR=$PKG install + rm -rf /usr/share/doc +} diff --git a/talimatname/genel/l/lockfile/talimat b/talimatname/genel/l/lockfile/talimat new file mode 100644 index 000000000..c1c9c3c70 --- /dev/null +++ b/talimatname/genel/l/lockfile/talimat @@ -0,0 +1,16 @@ +# Tanım: Platformdan bağımsız dosya kilitleme modülü +# URL: http://launchpad.net/pylockfile +# Paketçi: milisarge +# Gerekler: python-setuptools + +isim=lockfile +surum=0.12.2 +devir=1 + +kaynak=(https://pypi.python.org/packages/source/l/lockfile/lockfile-0.12.2.tar.gz) + + +derle() { + cd "${SRC}/${isim}-${surum}" + python setup.py install --root=$PKG +} diff --git a/talimatname/genel/l/logmein-hamachi/hamachi.servis b/talimatname/genel/l/logmein-hamachi/hamachi.servis new file mode 100644 index 000000000..1b270ae06 --- /dev/null +++ b/talimatname/genel/l/logmein-hamachi/hamachi.servis @@ -0,0 +1,23 @@ +#!/bin/sh +# +# /etc/rc.d/hamachi: start/stop hamachi daemon +# + +case $1 in +start) + /usr/bin/hamachi + ;; +stop) + killall -q hamachi + ;; +restart) + $0 stop + sleep 2 + $0 start + ;; +*) +echo "usage: $0 [start|stop|restart]" + ;; +esac + +# End of file diff --git a/talimatname/genel/l/logmein-hamachi/talimat b/talimatname/genel/l/logmein-hamachi/talimat new file mode 100644 index 000000000..1d6f79fff --- /dev/null +++ b/talimatname/genel/l/logmein-hamachi/talimat @@ -0,0 +1,31 @@ +# Tanım: Bir vpn hizmeti. +# URL: https://www.vpn.net/linux +# Paketçi: kadanur +# Gerekler: + +isim=logmein-hamachi +surum=2.1.0.174 +devir=1 +kaynak=(https://www.vpn.net/installers/$isim-$surum-x64.tgz + hamachi.servis) + +derle() { + + cd "${SRC}"/logmein-hamachi-2.1.0.174-x64 + # Directories + install -d "${PKG}"/usr/bin + install -d "${PKG}"/opt/${isim}/bin + install -d "${PKG}"/usr/share/licenses/${isim} + # Files + install -m 755 hamachid "${PKG}"/opt/${isim}/bin + install -m 755 dnsup "${PKG}"/opt/${isim}/bin + install -m 755 dnsdown "${PKG}"/opt/${isim}/bin + install -m 755 uninstall.sh "${PKG}"/opt/${isim} + install -m 444 README "${PKG}"/opt/${isim} + install -m 444 LICENSE "${PKG}"/opt/${isim} + install -m 444 CHANGES "${PKG}"/opt/${isim} + ln -sf "/opt/$isim/bin/hamachid" "${PKG}"/usr/bin/hamachi + install -d $PKG/etc/rc.d/init.d + cp $SRC/hamachi.servis $PKG/etc/rc.d/init.d/hamachid + +} diff --git a/talimatname/genel/l/logrotate/logrotate.conf b/talimatname/genel/l/logrotate/logrotate.conf new file mode 100644 index 000000000..4a45811f2 --- /dev/null +++ b/talimatname/genel/l/logrotate/logrotate.conf @@ -0,0 +1,30 @@ +# Begin of /etc/logrotate.conf +# conf by linuxfromscratch +# http://www.linuxfromscratch.org/hints/downloads/files/logrorate.txt + +# Rotate log files weekly +weekly + +# Don't send mail to anybody +nomail + +# If the log file is empty, it will not be rotated +notifempty + +# Number of backups that will be kept +# This will keep the 2 newest backups only +rotate 2 + +# Create new empty files after rotate old ones +# This will create empty log files, with owner +# set to root, group set to sys, and permissions 644 +create 0664 root sys + +# Compress the backups with gzip +compress + +# RPM packages drop log rotation info in this directory +# so we include any file in it. +include /etc/logrotate.d + +# End of /etc/logrotate.conf diff --git a/talimatname/genel/l/logrotate/logrotate.okubeni b/talimatname/genel/l/logrotate/logrotate.okubeni new file mode 100644 index 000000000..34396f287 --- /dev/null +++ b/talimatname/genel/l/logrotate/logrotate.okubeni @@ -0,0 +1,56 @@ +# from http://www.linuxfromscratch.org/hints/downloads/files/logrorate.txt + +When installing sysklogd, the LFS book defines some predefined log files in +"/etc/syslog.conf". We can rotate those files by adding their definitions to +logrotate.conf. So, to add them, run this command: + for logfile in $(find /var/log/* -type f); do + echo "$logfile {" >> /etc/logrotate.conf + echo "# If the log file is larger" \ + "than 100kb, rotate it" >> /etc/logrotate.conf" + echo " size=100k" >> /etc/logrotate.conf + echo "}" >> /etc/logrotate.conf + echo "" >> /etc/logrotate.conf + done + +For details on editing this file, see logrotate(8). + + +Logrotate as a Cron job +======================= + +You can run logrotate just issuing "/usr/sbin/logrotate /etc/logrotate.conf" +but in this case, you should run that command by yourself, every day (or +week, or month...), if you want the program to work properly. This can be +very annoying :-). + +Instead, you can run it as a cron job. For the further configuration, +I will assume that you have installed Fcron from the BLFS book. + +Create a /etc/fcrontab file by issuing this command: + cat >> /etc/fcrontab << EOF + 0 12 * * * 0 /usr/sbin/logrotate /etc/logrotate.conf + EOF +This will make fcron execute logrotate once a week, on Sunday, at noon. +For details on editing fcrontab, refer to fcrontab(1). + +You will need the "check_system_crontabs" script from the fcron sources. If +you haven't installed it, do it by issuing: + tar xzf fcron-3.0.1.tar.gz + cp -v fcron-3.0.1/scripts/check_system_crontabs /usr/sbin + +Then run the script: + check_system_crontabs -v +For help, type this: + check_system_crontabs -h + + +ACKNOWLEDGEMENTS: + * Alexander E. Patrakov, for pointing me for the BLFS +version of + popt (Before I used the popt included in Slackware 10.1) + + +VERSION: 1.1 + +CHANGELOG: 1.00 First release + 1.1 Corrected popt section, fixed typos. diff --git a/talimatname/genel/l/logrotate/talimat b/talimatname/genel/l/logrotate/talimat new file mode 100644 index 000000000..6ecef1e32 --- /dev/null +++ b/talimatname/genel/l/logrotate/talimat @@ -0,0 +1,25 @@ +# Tanım: Logrotate yardımcı programı, günlük yönetimini basitleştirmek için tasarlanmıştır +# URL: https://fedorahosted.org/logrotate/ +# Paketçi: milisarge +# Gerekler: popt + +isim=logrotate +surum=3.8.8 +devir=1 + +kaynak=( +https://fedorahosted.org/releases/l/o/logrotate/logrotate-$surum.tar.gz +logrotate.conf +logrotate.README) + +derle() { + cd $isim-$surum + make WITH_ACL=yes RPM_OPT_FLAGS="$CFLAGS" EXTRA_LDFLAGS="$LDFLAGS" + make test + make PREFIX=$PKG MANDIR="/usr/share/man" install + + # add missing dir + install -dm755 $PKG/etc/logrotate.d + # install the logrotate.conf file + install -Dm644 $SRC/logrotate.conf $PKG/etc/logrotate.conf +} diff --git a/talimatname/genel/l/lpsolve/cflags.patch b/talimatname/genel/l/lpsolve/cflags.patch new file mode 100644 index 000000000..8e8804cb8 --- /dev/null +++ b/talimatname/genel/l/lpsolve/cflags.patch @@ -0,0 +1,25 @@ +diff -ru lp_solve_5.5.orig/lp_solve/ccc lp_solve_5.5/lp_solve/ccc +--- lp_solve_5.5.orig/lp_solve/ccc 2009-02-23 16:31:18.000000000 +0000 ++++ lp_solve_5.5/lp_solve/ccc 2009-02-23 16:31:29.000000000 +0000 +@@ -28,7 +28,7 @@ + fi + rm /tmp/isnan.c /tmp/isnan >/dev/null 2>&1 + +-opts='-O3' ++opts=$CFLAGS + + def= + if [ "$PLATFORM" = "SCO_UNIX" ] +diff -ru lp_solve_5.5.orig/lpsolve55/ccc lp_solve_5.5/lpsolve55/ccc +--- lp_solve_5.5.orig/lpsolve55/ccc 2009-02-23 16:31:18.000000000 +0000 ++++ lp_solve_5.5/lpsolve55/ccc 2009-02-23 16:31:29.000000000 +0000 +@@ -35,7 +35,7 @@ + so=y + fi + +-opts='-O3' ++opts=$CFLAGS + + $c -s -c -I.. -I../shared -I../bfp -I../bfp/bfp_LUSOL -I../bfp/bfp_LUSOL/LUSOL -I../colamd $opts $def $NOISNAN -DYY_NEVER_INTERACTIVE -DPARSER_LP -DINVERSE_ACTIVE=INVERSE_LUSOL -DRoleIsExternalInvEngine $src + ar rv bin/$PLATFORM/liblpsolve55.a `echo $src|sed s/[.]c/.o/g|sed 's/[^ ]*\///g'` + diff --git a/talimatname/genel/l/lpsolve/lpsolve-5.5.2.0.defines.patch b/talimatname/genel/l/lpsolve/lpsolve-5.5.2.0.defines.patch new file mode 100644 index 000000000..a325c1370 --- /dev/null +++ b/talimatname/genel/l/lpsolve/lpsolve-5.5.2.0.defines.patch @@ -0,0 +1,22 @@ +--- lp_solve_5.5/lpsolve55/ccc ++++ lp_solve_5.5/lpsolve55/ccc +@@ -18,7 +18,7 @@ + echo '#include <stdio.h>'>>/tmp/isnan.c + echo '#include <stdlib.h>'>>/tmp/isnan.c + echo '#include <math.h>'>>/tmp/isnan.c +-echo 'main(){isnan(0);}'>>/tmp/isnan.c ++echo 'main(){isnan(0.0);}'>>/tmp/isnan.c + $c /tmp/isnan.c -o /tmp/isnan $math >/dev/null 2>&1 + if [ $? = 0 ] + then NOISNAN= +--- lp_solve_5.5/lp_solve/ccc ++++ lp_solve_5.5/lp_solve/ccc +@@ -20,7 +20,7 @@ + echo '#include <stdio.h>'>>/tmp/isnan.c + echo '#include <stdlib.h>'>>/tmp/isnan.c + echo '#include <math.h>'>>/tmp/isnan.c +-echo 'main(){isnan(0);}'>>/tmp/isnan.c ++echo 'main(){isnan(0.0);}'>>/tmp/isnan.c + $c /tmp/isnan.c -o /tmp/isnan $math >/dev/null 2>&1 + if [ $? = 0 ] + then NOISNAN= diff --git a/talimatname/genel/l/lpsolve/talimat b/talimatname/genel/l/lpsolve/talimat new file mode 100644 index 000000000..ad21f5acb --- /dev/null +++ b/talimatname/genel/l/lpsolve/talimat @@ -0,0 +1,31 @@ +# Tanım: Karışık Tamsayılı Lineer Programlama (MILP) çözücü +# URL: http://lpsolve.sourceforge.net/ +# Paketçi: Cihan Alkan +# Gerekler: + +isim=lpsolve +surum=5.5.2.5 +devir=1 + +kaynak=(https://downloads.sourceforge.net/project/lpsolve/lpsolve/5.5.2.5/lp_solve_5.5.2.5_source.tar.gz + cflags.patch + lpsolve-5.5.2.0.defines.patch) + +derle() { + cd lp_solve_5.5 + + patch -Np1 -i $SRC/cflags.patch + + patch -Np1 -i $SRC/lpsolve-5.5.2.0.defines.patch + cd lpsolve55 + sh -x ccc +# rm bin/ux*/liblpsolve55.a + cd ../lp_solve + sh -x ccc + cd $SRC/lp_solve_5.5 + install -dm755 $PKG/usr/{bin,lib,include/lpsolve} + install -m755 lp_solve/bin/ux*/lp_solve $PKG/usr/bin/ + install -m755 lpsolve55/bin/ux*/liblpsolve55.so $PKG/usr/lib/ + install -m644 lp*.h $PKG/usr/include/lpsolve/ + +} diff --git a/talimatname/genel/l/lsb-release/lsbrelease b/talimatname/genel/l/lsb-release/lsbrelease new file mode 100644 index 000000000..aa434b854 --- /dev/null +++ b/talimatname/genel/l/lsb-release/lsbrelease @@ -0,0 +1,4 @@ +DISTRIB_ID="Milis" +DISTRIB_RELEASE="1.0" +DISTRIB_DESCRIPTION="Milis İsletim Sistemi 1.0" +DISTRIB_CODENAME="Atilla" diff --git a/talimatname/genel/l/lsb-release/milis-release b/talimatname/genel/l/lsb-release/milis-release new file mode 100644 index 000000000..7a4cb8e67 --- /dev/null +++ b/talimatname/genel/l/lsb-release/milis-release @@ -0,0 +1 @@ +Milis 1.0 Atilla diff --git a/talimatname/genel/l/lsb-release/system-release b/talimatname/genel/l/lsb-release/system-release new file mode 100644 index 000000000..7a4cb8e67 --- /dev/null +++ b/talimatname/genel/l/lsb-release/system-release @@ -0,0 +1 @@ +Milis 1.0 Atilla diff --git a/talimatname/genel/l/lsb-release/talimat b/talimatname/genel/l/lsb-release/talimat new file mode 100755 index 000000000..cd0017fdd --- /dev/null +++ b/talimatname/genel/l/lsb-release/talimat @@ -0,0 +1,19 @@ +# Tanım: Dağıtımın (Linux Standards Base) bilgisi verir. +# URL: http://www.linuxbase.org/ +# Paketçi: milisarge +# Gerekler: + +isim=lsb-release +surum=1.4 +devir=1 +kaynak=(http://sourceforge.net/projects/lsb/files/lsb_release/${surum}/${isim}-${surum}.tar.gz \ + lsbrelease milis-release system-release) + +derle() { + cd ${isim}-${surum} + install -Dm 755 lsb_release "$PKG/usr/bin/lsb_release" + mkdir -p $PKG/etc/ + cp $SRC/lsbrelease $PKG/etc/lsb-release + cp $SRC/milis-release $PKG/etc/milis-release + cp $SRC/system-release $PKG/etc/system-release +} diff --git a/talimatname/genel/l/lshw/lshw-gtk.desktop b/talimatname/genel/l/lshw/lshw-gtk.desktop new file mode 100644 index 000000000..7d1fb9e0f --- /dev/null +++ b/talimatname/genel/l/lshw/lshw-gtk.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +Name=Donanım Bilgisi +Comment=Donanım hakkında bilgi +Icon=lshw-gtk +Exec=lshw-gtk +Terminal=false +Categories=System; diff --git a/talimatname/genel/l/lshw/lshw-gtk.xpm b/talimatname/genel/l/lshw/lshw-gtk.xpm new file mode 100644 index 000000000..d3aad56a8 --- /dev/null +++ b/talimatname/genel/l/lshw/lshw-gtk.xpm @@ -0,0 +1,239 @@ +/* XPM */ +static char * logo_xpm[] = { +"32 32 204 2", +" c None", +". c #000000", +"+ c #160F00", +"@ c #624400", +"# c #9D6E00", +"$ c #C68A00", +"% c #DC9900", +"& c #E09C00", +"* c #D19200", +"= c #B17C00", +"- c #7E5800", +"; c #362600", +"> c #010100", +", c #2E2000", +"' c #AA7700", +") c #FAAF00", +"! c #FFB200", +"~ c #D89700", +"{ c #654600", +"] c #040300", +"^ c #0A0700", +"/ c #916500", +"( c #FCB000", +"_ c #D29300", +": c #332300", +"< c #1B1300", +"[ c #CE9000", +"} c #F2AE12", +"| c #DFA92C", +"1 c #F8B00A", +"2 c #F8AD00", +"3 c #5E4200", +"4 c #1A1200", +"5 c #DC9A00", +"6 c #E1AA2A", +"7 c #B29C6A", +"8 c #D0A540", +"9 c #948155", +"0 c #C88E0A", +"a c #FEB100", +"b c #664700", +"c c #080600", +"d c #CC8F00", +"e c #FEB201", +"f c #AE9B70", +"g c #FBB105", +"h c #EBA400", +"i c #EAA70B", +"j c #453000", +"k c #8C6200", +"l c #F4AF0F", +"m c #BD9F5C", +"n c #E7A100", +"o c #120D00", +"p c #291C00", +"q c #FBAF00", +"r c #F9B009", +"s c #B89E62", +"t c #D4970A", +"u c #916600", +"v c #A27100", +"w c #AC9B73", +"x c #906E1D", +"y c #D0A440", +"z c #F7AD00", +"A c #171000", +"B c #0F0B00", +"C c #F7AC00", +"D c #A09783", +"E c #AF9C6F", +"F c #745100", +"G c #563C00", +"H c #EDAD19", +"I c #BB9F5E", +"J c #CFA542", +"K c #FFB201", +"L c #FDB103", +"M c #C38800", +"N c #B59D66", +"O c #EDAD18", +"P c #C5A250", +"Q c #CBA348", +"R c #D9A734", +"S c #E7AB21", +"T c #B39D69", +"U c #DDA830", +"V c #060400", +"W c #B88100", +"X c #FCB104", +"Y c #D7A738", +"Z c #F7B00B", +"` c #B99E60", +" . c #D5A63A", +".. c #D3A63D", +"+. c #CAA34A", +"@. c #CEA443", +"#. c #F1AE14", +"$. c #261B00", +"%. c #CD8F00", +"&. c #CA8D00", +"*. c #AB9666", +"=. c #DEA92E", +"-. c #F9B008", +";. c #AF9C6E", +">. c #E8AC1F", +",. c #3B2900", +"'. c #D09100", +"). c #A17100", +"!. c #483D25", +"~. c #928056", +"{. c #C28E16", +"]. c #7F5900", +"^. c #1E1500", +"/. c #CF9205", +"(. c #B99E61", +"_. c #E5AB24", +":. c #3E2B00", +"<. c #C08600", +"[. c #755201", +"}. c #838383", +"|. c #828282", +"1. c #888786", +"2. c #463610", +"3. c #4F3700", +"4. c #956800", +"5. c #F1A800", +"6. c #765200", +"7. c #503800", +"8. c #ECA400", +"9. c #7A5501", +"0. c #967527", +"a. c #9F6F00", +"b. c #4D4940", +"c. c #8B8B8B", +"d. c #696969", +"e. c #78653A", +"f. c #B57F00", +"g. c #634500", +"h. c #9A6B00", +"i. c #604300", +"j. c #BF8500", +"k. c #251A00", +"l. c #F2A900", +"m. c #0E0A00", +"n. c #6A4A00", +"o. c #BE8400", +"p. c #433D30", +"q. c #636363", +"r. c #4B3910", +"s. c #402D00", +"t. c #030200", +"u. c #513900", +"v. c #1F1500", +"w. c #C28800", +"x. c #D79600", +"y. c #221800", +"z. c #FEB200", +"A. c #EDA500", +"B. c #090600", +"C. c #302200", +"D. c #8F6400", +"E. c #C18700", +"F. c #8E6300", +"G. c #5F4300", +"H. c #986A00", +"I. c #785300", +"J. c #463100", +"K. c #312200", +"L. c #4D3600", +"M. c #412E00", +"N. c #4E3600", +"O. c #BA8200", +"P. c #BD8400", +"Q. c #845C00", +"R. c #644600", +"S. c #DA9800", +"T. c #261A00", +"U. c #2F2100", +"V. c #211700", +"W. c #EFA700", +"X. c #F5AB00", +"Y. c #765300", +"Z. c #9B6C00", +"`. c #342500", +" + c #7D5700", +".+ c #F9AE00", +"++ c #EEA600", +"@+ c #704E00", +"#+ c #513800", +"$+ c #020100", +"%+ c #4C3500", +"&+ c #A97600", +"*+ c #795500", +"=+ c #B37D00", +"-+ c #2B1E00", +";+ c #0B0800", +">+ c #5F4200", +",+ c #AF7A00", +"'+ c #CB8E00", +")+ c #281C00", +"!+ c #150E00", +"~+ c #2A1E00", +"{+ c #201600", +"]+ c #050400", +" ", +" . . . . . . . ", +" . + @ # $ % & * = - ; > . ", +" . , ' ) ! ! ! ! ! ! ! ! ! ~ { ] ", +" ^ / ( ! ! ! ! ! ! ! ! ! ! ! ! ! _ : . ", +" < [ ! ! ! ! ! ! ! ! ! ! ! } | 1 ! ! 2 3 . ", +" 4 5 ! ! ! ! ! ! ! ! ! ! ! 6 7 8 9 0 ! ! a b . ", +" c d ! ! ! ! ! ! ! ! ! ! ! e f g ! h i ! ! ! ( j . ", +" . k ! ! ! ! ! ! ! ! ! ! ! ! l m ! ! ! ! ! ! ! ! n o ", +" p q ! ! ! ! ! ! ! ! ! ! ! ! r s ! ! ! ! ! ! t ! ! u . ", +" . v ! ! ! ! ! ! ! ! ! ! ! ! ! ! w ! ! ! ! ! ! x y ! z A ", +" B C ! ! ! ! ! ! ! ! ! ! ! ! ! ! D 1 ! ! ! ! ! ! E ! ! F . ", +" G ! ! ! ! ! ! ! ! ! ! ! ! ! ! H I J K ! ! ! ! L f ! ! M . ", +" . / ! ! ! ! ! ! ! ! ! ! ! ! ! e N O l P Q R S 6 T U ! ! 2 V ", +" . W ! ! ! ! ! ! ! ! ! ! ! ! X I Y Z ` I ...+.@.#.! ! ! ! $. ", +" . %.! ! ! ! ! ! ! ! ! ! ! &.*.=.-.;.>.! ! ! ! ! ! ! ! ! ! ,. ", +" . '.).!.~.{.! ! ! ! ! q ].^./.! (._.! ! ! ! ! ! ! ! ! ! ! :. ", +" . <.[.}.|.1.2.3.4.5.! 6.7.8.! 9.0.! ! ! ! ! ! ! ! ! ! ! ! , ", +" . a.5 b.c.d.e.f.g.4 h.].i.! j.k.l.! ! ! ! ! ! ! ! ! ! ! a m. ", +" . n.! o.p.q.r.! ! 5 s.; t.u.v.w.! ! ! ! ! ! ! ! ! ! ! ! x.. ", +" y.z.! A.a._ ! ! ! _ B.C.D.E.! ! ! ! ! ! ! ! ! ! ! ! ! F.. ", +" . M ! ! ! ! ! ! ! G.H.I.J.( ! ! ! ! ! ! ! ! ! ! ! ! ! K. ", +" L.! ! ! ! ! ! ! M.$ a N.F.! ! ! ! ! ! ! ! ! ! ! ! O.. ", +" . P.! ! ! ! ! ! Q.R.! S.T.! ! ! ! ! ! ! ! ! ! ! q U. ", +" V.W.! ! ! ! ! X.K.Y.Z.`.! ! ! ! ! ! ! ! ! ! ! +. ", +" . J..+! ! ! ! ! ++@+#+'.! ! ! ! ! ! ! ! ! ! ' $+ ", +" . %+X.! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! &+V ", +" . C.x.! ! ! ! ! ! ! ! ! ! ! ! ! ! .+*+$+ ", +" c *+A.! ! ! ! ! ! ! ! ! ! a =+-+. ", +" . ;+>+,+h ! ! ! ! .+'+Q.)+. ", +" . . . !+~+, {+]+. . ", +" "}; diff --git a/talimatname/genel/l/lshw/talimat b/talimatname/genel/l/lshw/talimat new file mode 100644 index 000000000..eaf55d706 --- /dev/null +++ b/talimatname/genel/l/lshw/talimat @@ -0,0 +1,30 @@ +# Tanım: donanım bilgisi gösteren bir araç +# URL: http://ezix.org/project/wiki/HardwareLiSter +# Paketçi: milisarge +# Gerekler: libglade gtk2 + +isim=lshw +surum=B.02.18 +devir=1 +kaynak=(http://ezix.org/software/files/$isim-$surum.tar.gz + lshw-gtk.desktop + lshw-gtk.xpm) + +derle() { + cd $SRC/$isim-$surum + make || return 1 + make DESTDIR=$PKG install + + # requires glade-2 + make gui || return 1 + make DESTDIR=$PKG install-gui + + # Place the desktop file and logo + mkdir $PKG/usr/share/applications + mkdir $PKG/usr/share/pixmaps + cp $SRC/lshw-gtk.desktop $PKG/usr/share/applications + cp $SRC/lshw-gtk.xpm $PKG/usr/share/pixmaps + + # Default gui is gtk-lshw, change that to lshw-gtk for better naming convention + mv $PKG/usr/sbin/gtk-lshw $PKG/usr/sbin/lshw-gtk +} diff --git a/talimatname/genel/l/lsof/talimat b/talimatname/genel/l/lsof/talimat new file mode 100644 index 000000000..55c68717c --- /dev/null +++ b/talimatname/genel/l/lsof/talimat @@ -0,0 +1,20 @@ +# Tanım: Lsof paketi, belirli bir çalışan uygulama veya işlem için Açık Dosyaları Listelemek için kullanışlıdır. +# URL: ftp://ftp.fu-berlin.de/pub/unix/tools/lsof/ +# Paketçi: milisarge +# Gerekler: + +isim=lsof +surum=4.89 +devir=1 +kaynak=(ftp://ftp.fu-berlin.de/pub/unix/tools/lsof/lsof_$surum.tar.bz2) + +derle() { + cd lsof_${surum} + tar -xf lsof_${surum}_src.tar + cd lsof_${surum}_src + yes "" | ./Configure linux + sed -i -e "s/-DLINUXV/${CFLAGS} -DLINUXV/" Makefile + make + install -D -m 755 lsof $PKG/usr/sbin/lsof + install -D -m 644 lsof.8 $PKG/usr/man/man8/lsof.8 +} diff --git a/talimatname/genel/l/lua-alt-getopt/talimat b/talimatname/genel/l/lua-alt-getopt/talimat new file mode 100644 index 000000000..f0906ce4a --- /dev/null +++ b/talimatname/genel/l/lua-alt-getopt/talimat @@ -0,0 +1,18 @@ +# Tanım: Getopt_long benzeri işlem seçenekleri için Lua modülü +# URL: http://luaforge.net/projects/alt-getopt/ +# Paketçi: milisarge +# Gerekler: lua bmake + +isim=lua-alt-getopt +surum=0.7.0 +devir=1 + +kaynak=( +http://mova.org/~cheusov/pub/lua_alt_getopt/lua-alt-getopt-$surum.tar.gz) + +derle(){ + cd $isim-$surum + bmake LUAVER=5.2 PREFIX=/usr + install -Dm755 alt_getopt $PKG/usr/bin/alt_getopt + install -Dm664 alt_getopt.lua $PKG/usr/share/lua/5.2/alt_getopt.lua +} diff --git a/talimatname/genel/l/lua-filesystem/talimat b/talimatname/genel/l/lua-filesystem/talimat new file mode 100644 index 000000000..27ed8e825 --- /dev/null +++ b/talimatname/genel/l/lua-filesystem/talimat @@ -0,0 +1,16 @@ +# Tanım: Lua Programlama Dili için Dosya Sistemi Kütüphanesi +# URL: http://www.keplerproject.org/luafilesystem/ +# Paketçi: milisarge +# Gerekler: lua + +isim=lua-filesystem +surum=1.6.3 +devir=1 +_surum=v_${version//./_} +kaynak=(https://github.com/keplerproject/luafilesystem/archive/${_version}.tar.gz) + +derle(){ + cd luafilesystem-${_version} + make + make PREFIX=$PKG/usr LUA_LIBDIR=$PKG/lib/lua/5.2 install +} diff --git a/talimatname/genel/l/lua-lgi/talimat b/talimatname/genel/l/lua-lgi/talimat new file mode 100644 index 000000000..87a3ac650 --- /dev/null +++ b/talimatname/genel/l/lua-lgi/talimat @@ -0,0 +1,39 @@ +# Tanım: Lua bindings for gnome/gobject using gobject-introspection library +# URL: https://github.com/pavouk/lgi +# Paketçi: milisarge +# Gerekler: glib libffi lua gobject-introspection + +isim=lua-lgi +surum=0.9.1 +devir=1 +kaynak=(https://github.com/pavouk/lgi/archive/$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd lgi-$surum + + make + make \ + LUA_LIBDIR=/usr/lib/lua/5.3 \ + LUA_SHAREDIR=/usr/share/lua/5.3 \ + DESTDIR="$PKG/" install + + # dump typelib tool + install -Dm755 tools/dump-typelib.lua \ + "$PKG/usr/bin/dump-typelib" + + # docs + install -d "$PKG/usr/share/doc/$isim" + install -Dm644 docs/* \ + "$PKG/usr/share/doc/$isim" + + # samples + install -d "$PKG/usr/share/$isim/samples/gtk-demo" + install -Dm644 samples/*.lua \ + "$PKG/usr/share/$isim/samples" + install -Dm644 samples/gtk-demo/* \ + "$PKG/usr/share/$isim/samples/gtk-demo" + + # license + install -Dm644 LICENSE \ + "$PKG/usr/share/licenses/$isim/LICENSE" +} diff --git a/talimatname/genel/l/lua/LICENSE b/talimatname/genel/l/lua/LICENSE new file mode 100644 index 000000000..40ec04168 --- /dev/null +++ b/talimatname/genel/l/lua/LICENSE @@ -0,0 +1,30 @@ +License + +Lua is free software distributed under the terms of the MIT license +reproduced below; it may be used for any purpose, including commercial +purposes, at absolutely no cost without having to ask us. The only +requirement is that if you do use Lua, then you should give us credit +by including the appropriate copyright notice somewhere in your +product or its documentation. + + Copyright © 1994–2015 Lua.org, PUC-Rio. + + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation + files (the "Software"), to deal in the Software without + restriction, including without limitation the rights to use, copy, + modify, merge, publish, distribute, sublicense, and/or sell copies + of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. diff --git a/talimatname/genel/l/lua/liblua.so.patch b/talimatname/genel/l/lua/liblua.so.patch new file mode 100644 index 000000000..f9e24f328 --- /dev/null +++ b/talimatname/genel/l/lua/liblua.so.patch @@ -0,0 +1,60 @@ +diff --git a/Makefile b/Makefile +index 7fa91c8..dccf485 100644 +--- a/Makefile ++++ b/Makefile +@@ -52,7 +52,7 @@ R= $V.0 + all: $(PLAT) + + $(PLATS) clean: +- cd src && $(MAKE) $@ ++ cd src && $(MAKE) $@ V=$(V) R=$(R) + + test: dummy + src/lua -v +diff --git a/src/Makefile b/src/Makefile +index 2e7a412..fa5769f 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -29,6 +29,7 @@ MYOBJS= + PLATS= aix bsd c89 freebsd generic linux macosx mingw posix solaris + + LUA_A= liblua.a ++LUA_SO= liblua.so + CORE_O= lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o \ + lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o \ + ltm.o lundump.o lvm.o lzio.o +@@ -43,7 +44,7 @@ LUAC_T= luac + LUAC_O= luac.o + + ALL_O= $(BASE_O) $(LUA_O) $(LUAC_O) +-ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) ++ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO) + ALL_A= $(LUA_A) + + # Targets start here. +@@ -59,6 +60,12 @@ $(LUA_A): $(BASE_O) + $(AR) $@ $(BASE_O) + $(RANLIB) $@ + ++$(LUA_SO): $(CORE_O) $(LIB_O) ++ $(CC) -shared -ldl -Wl,-soname,$(LUA_SO).$(V) -o $@.$(R) $? -lm $(MYLDFLAGS) ++ ln -sf $(LUA_SO).$(R) $(LUA_SO).$(V) ++ ln -sf $(LUA_SO).$(R) $(LUA_SO) ++ ++ + $(LUA_T): $(LUA_O) $(LUA_A) + $(CC) -o $@ $(LDFLAGS) $(LUA_O) $(LUA_A) $(LIBS) + +diff --git a/src/luaconf.h b/src/luaconf.h +index fd28d21..e2662cc 100644 +--- a/src/luaconf.h ++++ b/src/luaconf.h +@@ -175,7 +175,7 @@ + + #else /* }{ */ + +-#define LUA_ROOT "/usr/local/" ++#define LUA_ROOT "/usr/" + #define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR "/" + #define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR "/" + #define LUA_PATH_DEFAULT \ diff --git a/talimatname/genel/l/lua/lua.pc b/talimatname/genel/l/lua/lua.pc new file mode 100644 index 000000000..a2c04819a --- /dev/null +++ b/talimatname/genel/l/lua/lua.pc @@ -0,0 +1,20 @@ +V=%VER% +R=%REL% + +prefix=/usr +INSTALL_BIN=${prefix}/bin +INSTALL_INC=${prefix}/include +INSTALL_LIB=${prefix}/lib +INSTALL_MAN=${prefix}/man/man1 +INSTALL_LMOD=${prefix}/share/lua/${V} +INSTALL_CMOD=${prefix}/lib/lua/${V} +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: Lua +Tanım: An Extensible Extension Language +Version: ${R} +Requires: +Libs: -L${libdir} -llua -lm +Cflags: -I${includedir} diff --git a/talimatname/genel/l/lua/talimat b/talimatname/genel/l/lua/talimat new file mode 100644 index 000000000..8eaa2d041 --- /dev/null +++ b/talimatname/genel/l/lua/talimat @@ -0,0 +1,45 @@ +# Tanım: Uygulamaları genişletmek için tasarlanmış bir programlama dili +# URL: http://www.lua.org +# Paketçi: milisarge +# Gerekler: + +isim=lua +surum=5.3.4 +_majorver=${surum%.*} +devir=1 + +kaynak=(https://www.lua.org/ftp/lua-$surum.tar.gz + liblua.so.patch + lua.pc + LICENSE) + +derle() { + + cd $SRC/lua-$surum + patch -p1 -i ../liblua.so.patch + + sed "s/%VER%/$_majorver/g;s/%REL%/$surum/g" ../lua.pc > lua.pc + + # quite a lot of packages still use lua 5.1 API, enable 5.1 compat mode + make MYCFLAGS="$CFLAGS -fPIC -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1" MYLDFLAGS="$LDFLAGS" linux + + make \ + TO_LIB="liblua.a liblua.so liblua.so.$_majorver liblua.so.$surum" \ + INSTALL_DATA='cp -d' \ + INSTALL_TOP="$PKG"/usr \ + INSTALL_MAN="$PKG"/usr/share/man/man1 \ + install + + ln -sf /usr/bin/lua "$PKG"/usr/bin/lua$_majorver + ln -sf /usr/bin/luac "$PKG"/usr/bin/luac$_majorver + ln -sf /usr/lib/liblua.so.$surum "$PKG"/usr/lib/liblua$_majorver.so + + install -Dm644 lua.pc "$PKG"/usr/lib/pkgconfig/${isim}53.pc + ln -sf /usr/lib/pkgconfig/${isim}53.pc "$PKG"/usr/lib/pkgconfig/$isim.pc + + install -d "$PKG"/usr/share/doc/$isim + install -m644 doc/*.{gif,png,css,html} "$PKG"/usr/share/doc/$isim + install -Dm644 ../LICENSE "$PKG"/usr/share/licenses/$isim/LICENSE + rm -r $PKG/usr/share/doc + rm -r $PKG/usr/share/man +} diff --git a/talimatname/genel/l/lua51/talimat b/talimatname/genel/l/lua51/talimat new file mode 100644 index 000000000..284bbe7b3 --- /dev/null +++ b/talimatname/genel/l/lua51/talimat @@ -0,0 +1,46 @@ +# Tanım: Uygulamaları genişletmek için tasarlanmış bir programlama dili (sürüm 5.1) +# URL: URL: http://www.lua.org +# Paketçi: milisarge +# Gerekler: + +isim=lua51 +surum=5.1.5 +devir=1 + +kaynak=( +http://www.lua.org/ftp/lua-$surum.tar.gz +http://www.linuxfromscratch.org/patches/blfs/7.4/lua-5.1.5-shared_library-2.patch) + +derle(){ + cd lua-$surum + patch -Np1 -i ../lua-5.1.5-shared_library-2.patch + sed -i '/#define LUA_ROOT/s:/usr/local/:/usr/:' src/luaconf.h + + [ `uname -i` == "x86_64" ] && export CFLAGS="$CFLAGS -fPIC" + sed -e 's:llua:llua5.1:' -e 's:/include:/include/lua5.1:' -i etc/lua.pc + sed -r -e '/^LUA_(SO|A|T)=/ s/lua/lua5.1/' -e '/^LUAC_T=/ s/luac/luac5.1/' \ + -i src/Makefile + make linux + make \ + INSTALL_TOP=$PKG/usr \ + TO_BIN='lua5.1 luac5.1' \ + TO_LIB="liblua5.1.a liblua5.1.so liblua5.1.so.5.1 liblua5.1.so.$surum" \ + INSTALL_INC=$PKG/usr/include/lua5.1 \ + INSTALL_DATA="cp -d" \ + INSTALL_MAN=$PKG/usr/share/man/man1 \ + install + rm -r $PKG/usr/share/lua + # pkg-config, change name so that others lua version can be installed + install -Dm644 etc/lua.pc $PKG/usr/lib/pkgconfig/lua5.1.pc + # symlinks + ln -s liblua5.1.so $PKG/usr/lib/liblua.so.5.1 + ln -s liblua5.1.so $PKG/usr/lib/liblua.so.$surum + # rename man pages + cd $PKG/usr/share/man/man1 + mv lua.1 lua5.1.1 + mv luac.1 luac5.1.1 +} + + + +# NuTyX Pkgfile (http://nutyx.org) diff --git a/talimatname/genel/l/lua52/lua-5.2-cflags.diff b/talimatname/genel/l/lua52/lua-5.2-cflags.diff new file mode 100644 index 000000000..b94515659 --- /dev/null +++ b/talimatname/genel/l/lua52/lua-5.2-cflags.diff @@ -0,0 +1,19 @@ +Binary files lua-5.2.4.orig/src/.Makefile.un~ and lua-5.2.4/src/.Makefile.un~ differ +diff -pruN lua-5.2.4.orig/src/Makefile lua-5.2.4/src/Makefile +--- lua-5.2.4.orig/src/Makefile 2015-12-06 00:26:37.000000000 +0000 ++++ lua-5.2.4/src/Makefile 2015-12-06 00:33:01.000000000 +0000 +@@ -6,9 +6,11 @@ + # Your platform. See PLATS for possible values. + PLAT= none + +-CC= gcc +-CFLAGS= -O2 -Wall -DLUA_COMPAT_ALL $(SYSCFLAGS) $(MYCFLAGS) +-LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS) ++CC ?= gcc ++CFLAGS ?= -O2 -Wall ++CFLAGS += -fPIC -DLUA_COMPAT_ALL $(SYSCFLAGS) $(MYCFLAGS) ++LDFLAGS ?= ++LDFLAGS += $(SYSLDFLAGS) $(MYLDFLAGS) + LIBS= -lm $(SYSLIBS) $(MYLIBS) + + AR= ar rcu diff --git a/talimatname/genel/l/lua52/lua.diff b/talimatname/genel/l/lua52/lua.diff new file mode 100644 index 000000000..92c1f3ac4 --- /dev/null +++ b/talimatname/genel/l/lua52/lua.diff @@ -0,0 +1,57 @@ +diff -ru lua-5.2.1/Makefile lua-5.2.1.new/Makefile +--- lua-5.2.1/Makefile 2012-05-17 16:05:54.000000000 +0200 ++++ lua-5.2.1.new/Makefile 2012-09-12 22:39:07.162748096 +0200 +@@ -52,7 +52,7 @@ + all: $(PLAT) + + $(PLATS) clean: +- cd src && $(MAKE) $@ ++ cd src && $(MAKE) $@ V=$(V) R=$(R) + + test: dummy + src/lua -v +diff -ru lua-5.2.1/src/luaconf.h lua-5.2.1.new/src/luaconf.h +--- lua-5.2.1/src/luaconf.h 2012-05-11 16:14:42.000000000 +0200 ++++ lua-5.2.1.new/src/luaconf.h 2012-09-12 22:40:27.986622772 +0200 +@@ -100,7 +100,7 @@ + #else /* }{ */ + + #define LUA_VDIR LUA_VERSION_MAJOR "." LUA_VERSION_MINOR "/" +-#define LUA_ROOT "/usr/local/" ++#define LUA_ROOT "/usr/" + #define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR + #define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR + #define LUA_PATH_DEFAULT \ +diff -ru lua-5.2.1/src/Makefile lua-5.2.1.new/src/Makefile +--- lua-5.2.1/src/Makefile 2012-03-09 17:32:16.000000000 +0100 ++++ lua-5.2.1.new/src/Makefile 2012-09-12 22:38:08.591386896 +0200 +@@ -29,6 +29,7 @@ + PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris + + LUA_A= liblua.a ++LUA_SO= liblua.so + CORE_O= lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o \ + lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o \ + ltm.o lundump.o lvm.o lzio.o +@@ -43,7 +44,7 @@ + LUAC_O= luac.o + + ALL_O= $(BASE_O) $(LUA_O) $(LUAC_O) +-ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) ++ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO) + ALL_A= $(LUA_A) + + # Targets start here. +@@ -59,6 +60,12 @@ + $(AR) $@ $(BASE_O) + $(RANLIB) $@ + ++$(LUA_SO): $(CORE_O) $(LIB_O) ++ $(CC) -shared -ldl -Wl,-soname,$(LUA_SO).$(V) -o $@.$(R) $? -lm $(MYLDFLAGS) ++ ln -sf $(LUA_SO).$(R) $(LUA_SO).$(V) ++ ln -sf $(LUA_SO).$(R) $(LUA_SO) ++ ++ + $(LUA_T): $(LUA_O) $(LUA_A) + $(CC) -o $@ $(LDFLAGS) $(LUA_O) $(LUA_A) $(LIBS) + diff --git a/talimatname/genel/l/lua52/lua.pc b/talimatname/genel/l/lua52/lua.pc new file mode 100644 index 000000000..a2c04819a --- /dev/null +++ b/talimatname/genel/l/lua52/lua.pc @@ -0,0 +1,20 @@ +V=%VER% +R=%REL% + +prefix=/usr +INSTALL_BIN=${prefix}/bin +INSTALL_INC=${prefix}/include +INSTALL_LIB=${prefix}/lib +INSTALL_MAN=${prefix}/man/man1 +INSTALL_LMOD=${prefix}/share/lua/${V} +INSTALL_CMOD=${prefix}/lib/lua/${V} +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: Lua +Tanım: An Extensible Extension Language +Version: ${R} +Requires: +Libs: -L${libdir} -llua -lm +Cflags: -I${includedir} diff --git a/talimatname/genel/l/lua52/talimat b/talimatname/genel/l/lua52/talimat new file mode 100644 index 000000000..ef468d222 --- /dev/null +++ b/talimatname/genel/l/lua52/talimat @@ -0,0 +1,47 @@ +# Tanım: Uygulamaları genişletmek için tasarlanmış bir programlama dili (5.2 sürümü). +# URL: http://www.lua.org/ +# Paketçi: milisarge +# Gerekler: readline + +isim=lua52 +surum=5.2.4 +devir=1 +kaynak=(http://www.lua.org/ftp/lua-$surum.tar.gz + lua.diff lua-5.2-cflags.diff lua.pc) + +derle() { + cd lua-$surum + + patch -p1 -i $SRC/lua.diff + patch -p1 -i $SRC/lua-5.2-cflags.diff + + sed -e "s/%VER%/${surum%.*}/g;s/%REL%/$surum/g" $SRC/lua.pc > lua.pc + sed -e 's:llua:llua5.2:' -e 's:/include:/include/lua5.2:' -i lua.pc + + sed -r \ + -e '/^LUA_(SO|A|T)=/ s/lua/lua5.2/' \ + -e '/^LUAC_T=/ s/luac/luac5.2/' \ + -i src/Makefile + + make MYCFLAGS="$CFLAGS" MYLDFLAGS="$LDFLAGS" linux + + install -d $PKG/usr/include/lua5.2 $PKG/usr/share/man/man1 $PKG/usr/lib + + make \ + TO_BIN="lua5.2 luac5.2" \ + TO_LIB="liblua5.2.a liblua5.2.so liblua5.2.so.5.2 liblua5.2.so.$surum" \ + INSTALL_DATA='cp -d' \ + INSTALL_TOP="$PKG/usr" \ + INSTALL_INC="$PKG/usr/include/lua5.2" \ + INSTALL_MAN="$PKG/usr/share/man/man1" \ + install + + install -m 0644 -D lua.pc $PKG/usr/lib/pkgconfig/lua5.2.pc + + # fixups + ln -s liblua5.2.so $PKG/usr/lib/liblua.so.5.2 + ln -s liblua5.2.so $PKG/usr/lib/liblua.so.$surum + cd $PKG/usr/share/man/man1 + mv lua.1 lua5.2.1 + mv luac.1 luac5.2.1 +} diff --git a/talimatname/genel/l/luajit/talimat b/talimatname/genel/l/luajit/talimat new file mode 100644 index 000000000..538379f54 --- /dev/null +++ b/talimatname/genel/l/luajit/talimat @@ -0,0 +1,16 @@ +# Tanım: Lua için Just-In-Time Derleyici +# URL: http://luajit.org/ +# Paketçi: milisarge +# Gerekler: + +isim=luajit +surum=2.0.4 +devir=1 +kaynak=(http://luajit.org/download/LuaJIT-$surum.tar.gz) + +derle() { + cd LuaJIT-$surum + sed -i 's/PREFIX= \/usr\/local/\PREFIX= \/usr/' Makefile + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/luarocks-51/talimat b/talimatname/genel/l/luarocks-51/talimat new file mode 100644 index 000000000..c3db2fb97 --- /dev/null +++ b/talimatname/genel/l/luarocks-51/talimat @@ -0,0 +1,25 @@ +# Tanım: Lua5.1 kütüphane yöneticisi +# URL: http://luarocks.org +# Paketçi: milisarge +# Gerekler: lua51 unzip + +isim=luarocks-51 +surum=2.4.3 +devir=1 +kaynak=(http://luarocks.org/releases/luarocks-$surum.tar.gz) + +derle() { + cd luarocks-$surum + + ./configure --prefix=/usr \ + --sysconfdir=/etc/luarocks \ + --with-lua-include=/usr/include/lua5.1 \ + --lua-version=5.1 \ + --lua-suffix=5.1 \ + --versioned-rocks-dir + make build + make DESTDIR=$PKG install + sed -i '/^LUAROCKS_UNAME_M/d' "$PKG"/usr/share/lua/5.1/luarocks/site_config.lua + unlink $PKG/usr/bin/luarocks + unlink $PKG/usr/bin/luarocks-admin +} diff --git a/talimatname/genel/l/luarocks-52/talimat b/talimatname/genel/l/luarocks-52/talimat new file mode 100644 index 000000000..f2af58cc8 --- /dev/null +++ b/talimatname/genel/l/luarocks-52/talimat @@ -0,0 +1,25 @@ +# Tanım: Lua5.2 kütüphane yöneticisi +# URL: http://luarocks.org +# Paketçi: milisarge +# Gerekler: lua52 unzip + +isim=luarocks-52 +surum=2.4.3 +devir=1 +kaynak=(http://luarocks.org/releases/luarocks-$surum.tar.gz) + +derle() { + cd luarocks-$surum + + ./configure --prefix=/usr \ + --sysconfdir=/etc/luarocks \ + --with-lua-include=/usr/include/lua5.2 \ + --lua-version=5.2 \ + --lua-suffix=5.2 \ + --versioned-rocks-dir + make build + make DESTDIR=$PKG install + sed -i '/^LUAROCKS_UNAME_M/d' "$PKG"/usr/share/lua/5.2/luarocks/site_config.lua + unlink $PKG/usr/bin/luarocks + unlink $PKG/usr/bin/luarocks-admin +} diff --git a/talimatname/genel/l/luarocks-53/talimat b/talimatname/genel/l/luarocks-53/talimat new file mode 100644 index 000000000..186263faa --- /dev/null +++ b/talimatname/genel/l/luarocks-53/talimat @@ -0,0 +1,23 @@ +# Tanım: Lua kütüphane yöneticisi +# URL: http://luarocks.org +# Paketçi: milisarge +# Gerekler: lua unzip + +isim=luarocks-53 +surum=2.4.3 +devir=1 +kaynak=(http://luarocks.org/releases/luarocks-$surum.tar.gz) + +derle() { + cd luarocks-$surum + + ./configure --prefix=/usr \ + --sysconfdir=/etc/luarocks \ + --with-lua-include=/usr/include/ \ + --lua-version=5.3 \ + --lua-suffix=5.3 \ + --versioned-rocks-dir + make build + make DESTDIR=$PKG install + sed -i '/^LUAROCKS_UNAME_M/d' "$PKG"/usr/share/lua/5.3/luarocks/site_config.lua +} diff --git a/talimatname/genel/l/lucenepp/talimat b/talimatname/genel/l/lucenepp/talimat new file mode 100644 index 000000000..db4ea003b --- /dev/null +++ b/talimatname/genel/l/lucenepp/talimat @@ -0,0 +1,28 @@ +# Tanım: Java Lucene kütüphanesinin c++ sürümü +# URL: https://github.com/luceneplusplus/LucenePlusPlus +# Paketçi: milisarge +# Gerekler: boost cmake subversion +# Grup: kütüphane + +isim=lucenepp +surum=3.0.7 +devir=1 +kaynak=(https://github.com/luceneplusplus/LucenePlusPlus/archive/master.tar.gz::$isim-$surum.tar.gz) + +derle() { + mkdir build + sed -i \ + -e 's#SET(LUCENE++_VERSION_REVISION.*#SET(LUCENE++_VERSION_REVISION "5")#' \ + -e 's#SET(LUCENE++_VERSION_PATCH.*#SET(LUCENE++_VERSION_PATCH "0")#' \ + "$SRC"/LucenePlusPlus-master/CMakeLists.txt + cd build + cmake ../LucenePlusPlus-master \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_DESTINATION=/usr/lib \ + -DBoost_LIBRARY_DIR=/usr/lib \ + -DENABLE_CUSTOM_ALLOCATOR='FALSE' \ + -DCMAKE_CXX_FLAGS='-DBOOST_VARIANT_USE_RELAXED_GET_BY_DEFAULT' + # RELAXED for boost 1.58 breakage, remove when lucene++ updates + make + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/l/lumina-desktop/talimat b/talimatname/genel/l/lumina-desktop/talimat new file mode 100644 index 000000000..53a2e188a --- /dev/null +++ b/talimatname/genel/l/lumina-desktop/talimat @@ -0,0 +1,22 @@ +# Tanım: FreeBSD için Hafif QT5 Masaüstü +# URL: https://github.com/pcbsd/lumina +# Paketçi: milisarge +# Gerekler: qt5 fluxbox kf5-kwindowsystem kf5-oxygen-icons5 xcb-util-image xscreensaver desktop-file-utils + +isim=lumina-desktop +surum=0.8.7 +devir=1 + +kaynak=() + +derle(){ + git clone https://github.com/pcbsd/lumina.git + cd $SRC/lumina/ + $SRC/lumina/libLumina/make-linux-distro.sh Debian + find $SRC/lumina -name *.desktop -exec sed -i 's/usr\/local/usr/' {} \; + qmake-qt5 PREFIX="/usr" QT5LIBDIR=/usr/lib/qt + make + + make INSTALL_ROOT="${PKG}" install + mv "${PKG}"/usr/etc "${PKG}"/etc +} diff --git a/talimatname/genel/l/lxc/lxc.tmpfiles.d b/talimatname/genel/l/lxc/lxc.tmpfiles.d new file mode 100644 index 000000000..04bac4db4 --- /dev/null +++ b/talimatname/genel/l/lxc/lxc.tmpfiles.d @@ -0,0 +1 @@ +w /sys/fs/cgroup/memory/memory.use_hierarchy - - - - 1 diff --git a/talimatname/genel/l/lxc/talimat b/talimatname/genel/l/lxc/talimat new file mode 100644 index 000000000..9c8453f26 --- /dev/null +++ b/talimatname/genel/l/lxc/talimat @@ -0,0 +1,41 @@ +# Tanım: Linux Konteynerleri +# URL: http://linuxcontainers.org +# Paketçi: Cihan_Alkan +# Gerekler: docbook2x lua python3-setuptools perl libseccomp libcap python3 cgmanager rsync +# Grup: sistem + +isim=lxc +surum=3.0.0 +devir=1 +kaynak=(https://github.com/lxc/lxc/archive/$isim-$surum.tar.gz + lxc.tmpfiles.d) + +derle() { + + cd $isim-$isim-$surum + sed -i \ + -e 's|"\\"-//Davenport//DTD DocBook V3.0//EN\\""|"\\"-//OASIS//DTD DocBook XML\\" \\"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd\\""|' \ + configure.ac + sed -i \ + -e 's|\${prefix}/||g' \ + lxc.pc.in + ./autogen.sh + bashcompdir=/usr/share/bash-completion/completions ./configure \ + --prefix=/usr \ + --sbindir=/usr/bin \ + --localstatedir=/var \ + --libexecdir=/usr/lib \ + --libdir=/usr/lib \ + --sysconfdir=/etc \ + --disable-apparmor \ + --enable-seccomp \ + --enable-cgmanager \ + --enable-capabilities \ + --enable-lua + make + + make DESTDIR="$PKG" install + install -d -m755 "$PKG/var/lib/lxc" + install -d -m755 "$PKG/usr/lib/lxc/rootfs/dev" + install -D -m644 "$SRC"/lxc.tmpfiles.d "$PKG"/usr/lib/tmpfiles.d/lxc.conf +} diff --git a/talimatname/genel/l/lxde-appearance-obconf/talimat b/talimatname/genel/l/lxde-appearance-obconf/talimat new file mode 100755 index 000000000..a1a31cc4d --- /dev/null +++ b/talimatname/genel/l/lxde-appearance-obconf/talimat @@ -0,0 +1,20 @@ +# Tanım: LXAppearance OBconf paketi, OpenBox'u yapılandırmak üzere LXAppearance için bir eklenti içerir. +# URL: http://lxde.org/ +# Paketçi: milisarge@gmail.com +# Gerekler: gtk2 intltool lxde-appearance openbox + +isim=lxde-appearance-obconf +_isim=lxappearance-obconf +surum=0.2.2 +devir=1 + +kaynak=(http://downloads.sourceforge.net/lxde/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +./configure --prefix=/usr --disable-static +make +make DESTDIR=$PKG install + +} + diff --git a/talimatname/genel/l/lxde-appearance/talimat b/talimatname/genel/l/lxde-appearance/talimat new file mode 100755 index 000000000..5a35e3ee1 --- /dev/null +++ b/talimatname/genel/l/lxde-appearance/talimat @@ -0,0 +1,24 @@ +# Tanım: GTK + 2 için masaüstünden bağımsız bir tema değiştirici içeriyor +# URL: http://lxde.org/ +# Paketçi: milisarge@gmail.com +# Gerekler: gtk2 intltool + +isim=lxde-appearance +_isim=lxappearance +surum=0.6.2 +devir=1 + +kaynak=(http://downloads.sourceforge.net/lxde/files/${_name}-$surum.tar.xz) + + +derle() { +cd ${_name}-$surum +./configure --prefix=/usr \ + --sysconfdir=/etc \ + --disable-static \ + --enable-dbus + +make +make DESTDIR=$PKG install + +} diff --git a/talimatname/genel/l/lxde-common/chrystal_red_root.png b/talimatname/genel/l/lxde-common/chrystal_red_root.png new file mode 100644 index 000000000..d4e1e9f24 Binary files /dev/null and b/talimatname/genel/l/lxde-common/chrystal_red_root.png differ diff --git a/talimatname/genel/l/lxde-common/lxde-common.kur-kos b/talimatname/genel/l/lxde-common/lxde-common.kur-kos new file mode 100644 index 000000000..899e3ed43 --- /dev/null +++ b/talimatname/genel/l/lxde-common/lxde-common.kur-kos @@ -0,0 +1,3 @@ +update-mime-database /usr/share/mime +gtk-update-icon-cache -qf /usr/share/icons/hicolor +update-desktop-database -q diff --git a/talimatname/genel/l/lxde-common/lxde.desktop b/talimatname/genel/l/lxde-common/lxde.desktop new file mode 100755 index 000000000..f12322ed5 --- /dev/null +++ b/talimatname/genel/l/lxde-common/lxde.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Encoding=UTF-8 +# The names/descriptions should really be better +Name=lxde +Name[tr]=lxde +Comment=Select this session to use lxde as user graphical interface +Comment[tr]=lxde genel masaüstü kullanımı + +Exec=startlxde +Icon= +Type=Application diff --git a/talimatname/genel/l/lxde-common/okubeni b/talimatname/genel/l/lxde-common/okubeni new file mode 100644 index 000000000..1cc120f33 --- /dev/null +++ b/talimatname/genel/l/lxde-common/okubeni @@ -0,0 +1,4 @@ +cat > ~/.xinitrc << "EOF" +ck-launch-session startlxde +EOF +startx diff --git a/talimatname/genel/l/lxde-common/talimat b/talimatname/genel/l/lxde-common/talimat new file mode 100755 index 000000000..50f5a2d71 --- /dev/null +++ b/talimatname/genel/l/lxde-common/talimat @@ -0,0 +1,33 @@ +# Tanım: LXDE için bir varsayılan yapılandırma kümesi sağlar +# URL: http://lxde.org/about.html +# Paketçi: milisarge@gmail.com +# Gerekler: consolekit2 desktop-file-utils gtk2 hicolor-icon-theme lxde-icon-theme lxde-panel lxde-session openbox pcmanfm shared-mime-info menu-cache lxde-menu-data + +isim=lxde-common +surum=0.99.1 +devir=1 + +kaynak=(http://downloads.sourceforge.net/lxde/$isim-$surum.tar.xz + http://nutyx.meticul.eu/files/patchs/oxygen-icons/icon-sekong.png + http://nutyx.meticul.eu/files/patchs/lxde-common/chrystal_red_root.png + lxde.desktop) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ + --sysconfdir=/etc +make +make DESTDIR=$PKG install +# install -D -m644 ../config \ +# $PKG/usr/share/lxde/config +install -D -m644 ../chrystal_red_root.png \ + $PKG/usr/share/lxpanel/images/chrystal_red_root.png +cp ../icon-sekong.png \ +$PKG/usr/share/lxde/images/lxde-icon.png +cp ../icon-sekong.png \ +$PKG/usr/share/lxde/images/logout-banner.png +sed -i "s/lxde_blue.jpg/wall-sekong.jpg/" \ +$PKG/etc/xdg/pcmanfm/LXDE/pcmanfm.conf +install -D -m644 ../lxde.desktop \ +$PKG/usr/share/xsessions/lxde.desktop +} diff --git a/talimatname/genel/l/lxde-gpicview/talimat b/talimatname/genel/l/lxde-gpicview/talimat new file mode 100755 index 000000000..1e9227a3c --- /dev/null +++ b/talimatname/genel/l/lxde-gpicview/talimat @@ -0,0 +1,19 @@ +# Tanım: GPicView paketi hafif resim görüntüleyici içerir +# URL: http://lxde.org/ +# Paketçi: milisarge@gmail.com +# Gerekler: gtk2 + +isim=lxde-gpicview +_isim=gpicview +surum=0.2.4 +devir=1 + +kaynak=(http://downloads.sourceforge.net/lxde/${_name}-$surum.tar.gz) + +derle() { +cd ${_name}-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +sed -i 's/Utility;//' $PKG/usr/share/applications/gpicview.desktop +} diff --git a/talimatname/genel/l/lxde-icon-theme/lxde-icon-theme.kur-kos b/talimatname/genel/l/lxde-icon-theme/lxde-icon-theme.kur-kos new file mode 100644 index 000000000..52f99925c --- /dev/null +++ b/talimatname/genel/l/lxde-icon-theme/lxde-icon-theme.kur-kos @@ -0,0 +1 @@ +gtk-update-icon-cache -qf usr/share/icons/nuoveXT2 diff --git a/talimatname/genel/l/lxde-icon-theme/talimat b/talimatname/genel/l/lxde-icon-theme/talimat new file mode 100644 index 000000000..351b30c5c --- /dev/null +++ b/talimatname/genel/l/lxde-icon-theme/talimat @@ -0,0 +1,18 @@ +# Tanım: LXDE Simge Tema paketi, LXDE için nuoveXT 2.2 Simge Teması içeriyor. +# URL: http://lxde.org/ +# Paketçi: geantbrun at gmail dot com +# Gerekler: gtk-update-icon-cache + +isim=lxde-icon-theme +surum=0.5.1 +devir=2 + +kaynak=(http://downloads.sourceforge.net/lxde/$isim-$surum.tar.xz) + + +derle() { +cd $isim-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/lxde-input/talimat b/talimatname/genel/l/lxde-input/talimat new file mode 100755 index 000000000..decbf3a3e --- /dev/null +++ b/talimatname/genel/l/lxde-input/talimat @@ -0,0 +1,19 @@ +# Tanım: lxde giris +# URL: http://lxde.org/ +# Maintainer: Martin Bagge +# Paketçi: milisarge@gmail.com +# Gerekler: gtk2 + +isim=lxde-input +_isim=lxinput +surum=0.3.4 +devir=1 + +kaynak=(http://downloads.sourceforge.net/lxde/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/lxde-menu-data/talimat b/talimatname/genel/l/lxde-menu-data/talimat new file mode 100644 index 000000000..5af247e6b --- /dev/null +++ b/talimatname/genel/l/lxde-menu-data/talimat @@ -0,0 +1,18 @@ +# Tanım: LXDE için freedesktop.org menü spesifik uyumlu masaüstü menüleri oluşturmak için gerekli dosyalar. +# URL: http://lxde.org/ +# Paketçi: milisarge +# Gerekler: intltool + +isim=lxde-menu-data +surum=0.1.5 +devir=2 +_isim=lxmenu-data + +kaynak=(http://downloads.sourceforge.net/lxde/${_isim}-$surum.tar.xz) +derle() { +cd $_isim-$surum +./configure --prefix=/usr --sysconfdir=/etc +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/l/lxde-panel/fix-crash.patch b/talimatname/genel/l/lxde-panel/fix-crash.patch new file mode 100644 index 000000000..86f372f56 --- /dev/null +++ b/talimatname/genel/l/lxde-panel/fix-crash.patch @@ -0,0 +1,71 @@ +From 5efc0f05fc06cdb52c54338d0139d7316c3c1133 Mon Sep 17 00:00:00 2001 +From: Mamoru TASAKA <mtasaka@fedoraproject.org> +Date: Sun, 4 Mar 2018 23:15:51 +0900 +Subject: [PATCH] [SF#900] taskbutton: detach menu from widget before widget is + destroyed + +Although GTK+ 2 version doxygen lacks such information, +https://developer.gnome.org/gtk3/stable/GtkMenu.html#gtk-menu-attach-to-widget +says that the attached menu is to be destroyed when the widget is destroyed. + +So to "reuse" created menu, menu must be detached before the widget is to +be destroyed, +--- + plugins/task-button.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/plugins/task-button.c b/plugins/task-button.c +index 3e99068..9e8c398 100644 +--- a/plugins/task-button.c ++++ b/plugins/task-button.c +@@ -1538,7 +1538,17 @@ void task_button_update_windows_list(TaskButton *button, Window *list, gint n) + l = next; /* go next details */ + } + if (button->details == NULL) /* all windows were deleted */ ++ { ++ GList *menu_list = gtk_menu_get_for_attach_widget(GTK_WIDGET(button)); ++ menu_list = g_list_copy(menu_list); ++ for (l = menu_list; l; l = l->next) ++ { ++ GtkMenu *menu = GTK_MENU(l->data); ++ gtk_menu_detach(menu); ++ } ++ g_list_free(menu_list); + gtk_widget_destroy(GTK_WIDGET(button)); ++ } + else if (has_removed && task_update_visibility(button)) + task_redraw_label(button); + // FIXME: test if need to update menu +-- +2.1.4 + +From 7aa84571eef5247c0335df57d6ac616cd03d46ee Mon Sep 17 00:00:00 2001 +From: Mamoru TASAKA <mtasaka@fedoraproject.org> +Date: Wed, 14 Feb 2018 00:11:53 +0900 +Subject: [PATCH] [SF#905] plugins/monitors: reset the color if empty + +User may remove color value, or when doing copy/paste color value from somewhere, +it seems that color value can once disappear. +In such case, reset to the default to prevent segv +--- + plugins/monitors/monitors.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/plugins/monitors/monitors.c b/plugins/monitors/monitors.c +index 19b8472..75f00c1 100644 +--- a/plugins/monitors/monitors.c ++++ b/plugins/monitors/monitors.c +@@ -748,6 +748,10 @@ monitors_apply_config (gpointer user_data) + start: + for (i = 0; i < N_MONITORS; i++) + { ++ /* User may remove color value. In such case, reset to the default */ ++ if (!colors[i]) ++ colors[i] = g_strndup(default_colors[i], COLOR_SIZE-1); ++ + if (mp->displayed_monitors[i]) + current_n_monitors++; + +-- +2.1.4 + diff --git a/talimatname/genel/l/lxde-panel/talimat b/talimatname/genel/l/lxde-panel/talimat new file mode 100755 index 000000000..aae2823ed --- /dev/null +++ b/talimatname/genel/l/lxde-panel/talimat @@ -0,0 +1,30 @@ +# Tanım: Hafif bir X11 masaüstü paneli içerir +# URL: http://lxde.org/ +# Paketçi: cihan_alkan +# Gerekler: gtk2 menu-cache alsa-lib libwnck wireless-tools keybinder2 libfm +# Grup: lxde + +isim=lxde-panel +_isim=lxpanel +surum=0.9.3 +devir=1 +kaynak=(https://downloads.sourceforge.net/lxde/${_isim}-$surum.tar.xz + fix-crash.patch) + +derle() { + + cd ${_isim}-$surum + # Fix crash + patch -Np1 -i ../fix-crash.patch + + ./configure \ + --sysconfdir=/etc \ + --prefix=/usr + + #https://bugzilla.gnome.org/show_bug.cgi?id=656231 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + + make + make DESTDIR="$PKG" install +} + diff --git a/talimatname/genel/l/lxde-randr/talimat b/talimatname/genel/l/lxde-randr/talimat new file mode 100755 index 000000000..eebde700a --- /dev/null +++ b/talimatname/genel/l/lxde-randr/talimat @@ -0,0 +1,21 @@ +# Tanım: lxde icin ekran ayarlama +# URL: http://lxde.org/about.html +# Maintainer: Martin Bagge brother at bsnet dot se Hong Jen Yee (PCMan) pcman dot tw at gmail dotcom +# Paketçi: milisarge@gmail.com +# Gerekler: gtk2 xorg-app + +isim=lxde-randr +_isim=lxrandr +surum=0.3.0 +devir=1 +kaynak=(http://downloads.sourceforge.net/lxde/lxrandr-$surum.tar.xz) + +derle() { + cd ${_name}-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install + +} + + diff --git a/talimatname/genel/l/lxde-session/talimat b/talimatname/genel/l/lxde-session/talimat new file mode 100755 index 000000000..d2aa6c6f1 --- /dev/null +++ b/talimatname/genel/l/lxde-session/talimat @@ -0,0 +1,19 @@ +# Tanım: LXDE için varsayılan oturum yöneticisini içerir +# URL: http://lxde.org/ +# Paketçi: milisarge@gmail.com +# Gerekler: dbus-glib gtk2 libunique1 lsb-release polkit vala upower pm-utils + +isim=lxde-session +_isim=lxsession +surum=0.5.2 +devir=3 + +kaynak=(http://downloads.sourceforge.net/lxde/${_name}-$surum.tar.xz) + + +derle() { +cd ${_name}-$surum +./configure --prefix=/usr --disable-man +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/lxde-task/talimat b/talimatname/genel/l/lxde-task/talimat new file mode 100755 index 000000000..344be4d5c --- /dev/null +++ b/talimatname/genel/l/lxde-task/talimat @@ -0,0 +1,20 @@ +# Tanım: lxde surec yoneticisi +# URL: http://lxde.org/about.html +# Maintainer: pcman dot tw at gmail dot com +# Paketçi: milisarge@gmail.com +# Gerekler: gtk2 + + +isim=lxde-task +_isim=lxtask +surum=0.1.6 +devir=1 +kaynak=(http://downloads.sourceforge.net/lxde/${_name}-$surum.tar.xz) + +derle() { + cd ${_name}-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install + +} diff --git a/talimatname/genel/l/lxde-terminal/lxde-terminal.kur-kos b/talimatname/genel/l/lxde-terminal/lxde-terminal.kur-kos new file mode 100755 index 000000000..0fd2e1c87 --- /dev/null +++ b/talimatname/genel/l/lxde-terminal/lxde-terminal.kur-kos @@ -0,0 +1 @@ +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor diff --git a/talimatname/genel/l/lxde-terminal/talimat b/talimatname/genel/l/lxde-terminal/talimat new file mode 100755 index 000000000..cdd40d481 --- /dev/null +++ b/talimatname/genel/l/lxde-terminal/talimat @@ -0,0 +1,20 @@ +# Tanım: lxde terminal uygulaması +# URL: http://lxde.org/ +# Paketçi: milisarge +# Gerekler: intltool vte gtk3 vte3 +# Grup: lxde + +isim=lxde-terminal +_isim=lxterminal +surum=0.3.1 +devir=1 + +kaynak=(http://downloads.sourceforge.net/lxde/lxterminal-$surum.tar.xz) + +derle() { +cd ${_isim}-$surum +./configure --sysconfdir=/etc --prefix=/usr --enable-gtk3 +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/l/lxdm-tema/talimat b/talimatname/genel/l/lxdm-tema/talimat new file mode 100644 index 000000000..3f4c56fd7 --- /dev/null +++ b/talimatname/genel/l/lxdm-tema/talimat @@ -0,0 +1,17 @@ +# Tanım: milislinux lxdm teması +# URL: http://milis.gungre.ch/ +# Paketçi: milisarge yasarciv +# Gerekler: lxdm mate-themes + +isim=lxdm-tema +surum=1.0 +devir=1 +kaynak=(https://github.com/yasarciv/$isim/archive/$surum.tar.gz) + +derle() { + cd $isim-$surum + install -d "$PKG/usr/share/lxdm/themes" + install -d "$PKG/etc/lxdm" + cp -r lxdm-themes/Milis-Lxdm-Tema "$PKG/usr/share/lxdm/themes" + cp lxdm/lxdm.conf "$PKG/etc/lxdm/" +} diff --git a/talimatname/genel/l/lxdm/Xsession b/talimatname/genel/l/lxdm/Xsession new file mode 100755 index 000000000..9c6954bf1 --- /dev/null +++ b/talimatname/genel/l/lxdm/Xsession @@ -0,0 +1,48 @@ +#!/bin/bash + +# use bash for "exec -l", howto run login shell by /bin/sh ? + +if [ `which "$1"` ]; then + LXSESSION=$1 +else +# default session + LXSESSION=`grep -ri "exec" ~/.xinitrc | cut -d' ' -f2` +fi + +[ -f /etc/profile ] && . /etc/profile +[ -f /etc/bashrc ] && . /etc/bashrc + +if [ -f /etc/X11/xinit/xinitrc-common ]; then +# fedora + . /etc/X11/xinit/xinitrc-common + exec -l bash -c "$LXSESSION" +elif [ -x /etc/X11/xinit/Xsession ]; then +# fedora + exec /etc/X11/xinit/Xsession "$LXSESSION" +elif [ -x /etc/X11/Xsession ]; then +# mandriva, debian, ubuntu + exec /etc/X11/Xsession "$LXSESSION" +elif [ -x /etc/X11/xinit/xinitrc ]; then +#suse + export WINDOWMANAGER=$LXSESSION + exec -l bash -c /etc/X11/xinit/xinitrc +else +# unknown, user should custom /etc/lxdm/xinitrc self + if [ -x /etc/lxdm/xinitrc ]; then + . /etc/lxdm/xinitrc "$LXSESSION" + fi + if [ -d /etc/X11/xinit/xinitrc.d ] ; then + for f in /etc/X11/xinit/xinitrc.d/* ; do + [ -x "$f" ] && . "$f" + done + unset f + fi + + if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; + then + eval "$(dbus-launch --sh-syntax --exit-with-session)" + fi + + exec -l bash -c "$LXSESSION" +fi + diff --git a/talimatname/genel/l/lxdm/lxdm.conf.in.patch b/talimatname/genel/l/lxdm/lxdm.conf.in.patch new file mode 100644 index 000000000..50435a60c --- /dev/null +++ b/talimatname/genel/l/lxdm/lxdm.conf.in.patch @@ -0,0 +1,20 @@ +--- a/data/lxdm.conf.in 2015-10-18 19:22:46.386331477 -0200 ++++ b/data/lxdm.conf.in 2015-10-18 19:33:38.514873184 -0200 +@@ -23,7 +23,7 @@ + + [server] + ## arg used to start xserver, not fully function +-# arg=/usr/bin/X -background vt1 ++arg=/usr/bin/X -background vt1 + # uncomment this if you really want xserver listen to tcp + # tcp_listen=1 + # uncoment this if you want reset the xserver after logou +@@ -34,7 +34,7 @@ + gtk_theme=Clearlooks + + ## background of the greeter +-bg=/usr/share/backgrounds/default.png ++#bg=/usr/share/backgrounds/default.png + + ## if show bottom pane + bottom_pane=1 diff --git a/talimatname/genel/l/lxdm/lxdm.in.patch b/talimatname/genel/l/lxdm/lxdm.in.patch new file mode 100644 index 000000000..be6c8283b --- /dev/null +++ b/talimatname/genel/l/lxdm/lxdm.in.patch @@ -0,0 +1,26 @@ +--- a/data/lxdm.in 2015-10-18 19:22:46.386331477 -0200 ++++ b/data/lxdm.in 2015-10-18 19:28:46.354787701 -0200 +@@ -1,21 +1,13 @@ + #!/bin/sh + +-[ -f /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n +- +-if [ -z "$LANG" -a -e /etc/sysconfig/language ]; then +- . /etc/sysconfig/language +- if [ -n "$RC_LANG"]; then +- LANG=$RC_LANG +- fi ++if [ -r /etc/profile.d/locale.sh ]; then ++ . /etc/profile.d/locale.sh + fi + + if [ -n "$LANG" ]; then + export LANG + fi + +-[ -f /etc/sysconfig/desktop ] && . /etc/sysconfig/desktop +-[ -f /etc/sysconfig/windowmanager ] && . /etc/sysconfig/windowmanager +- + if [ -n "$DEFAULT_WM" ]; then + PREFERRED=$DEFAULT_WM + fi diff --git a/talimatname/genel/l/lxdm/lxdm.kur-kos b/talimatname/genel/l/lxdm/lxdm.kur-kos new file mode 100644 index 000000000..0787ef231 --- /dev/null +++ b/talimatname/genel/l/lxdm/lxdm.kur-kos @@ -0,0 +1,2 @@ +sed -i "s/^id:[3-5]/id:5/" /etc/inittab +cp -f /sources/milis.git/talimatname/genel/lxdm/Xsession /etc/lxdm/ diff --git a/talimatname/genel/l/lxdm/lxdm.pam b/talimatname/genel/l/lxdm/lxdm.pam new file mode 100644 index 000000000..f33486047 --- /dev/null +++ b/talimatname/genel/l/lxdm/lxdm.pam @@ -0,0 +1,6 @@ +#%PAM-1.0 +auth required pam_unix.so +auth requisite pam_nologin.so +account required pam_unix.so +password required pam_unix.so +session required pam_unix.so diff --git a/talimatname/genel/l/lxdm/talimat b/talimatname/genel/l/lxdm/talimat new file mode 100644 index 000000000..b7f25d5c3 --- /dev/null +++ b/talimatname/genel/l/lxdm/talimat @@ -0,0 +1,41 @@ +# Tanım: hafif linux giriş yöneticisi +# URL: http://sourceforge.net/projects/lxdm/ +# Paketçi: milisarge +# Gerekler: iso-codes librsvg xorg-libxinerama xorg-libxrandr xorg-libxcursor xorg-libxdamage gtk2 consolekit2 mate-themes + +isim=lxdm +surum=0.5.3 +devir=7 +uisim=lxdm-a548c73 +tema=lxdm-tema +tsurum=1.1 + +kaynak=(http://kaynaklar.milislinux.org/$uisim.tar.xz +https://github.com/yasarciv/$tema/archive/$tsurum.tar.gz +lxdm.in.patch +lxdm.conf.in.patch +lxdm.pam +Xsession) + +derle() { + + cd $uisim + patch -Np1 < ../lxdm.in.patch + patch -Np1 < ../lxdm.conf.in.patch + cp ../lxdm.pam pam/lxdm + cp ../Xsession data/Xsession + ./autogen.sh + ./configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc \ + --libexecdir=/usr/lib/lxdm --localstatedir=/var + make + make DESTDIR=$PKG install + + install -dm 755 ${PKG}/var/lib/lxdm + echo 'GDK_CORE_DEVICE_EVENTS=true' > "$PKG"/var/lib/lxdm/.pam_environment + + #milis linux temasının ayarlanması + cp -r ${SRC}/$tema-$tsurum/lxdm-themes/Milis-Lxdm-Tema "$PKG/usr/share/lxdm/themes" + cp ${SRC}/$tema-$tsurum/lxdm/lxdm.conf "$PKG/etc/lxdm/" + cd /sources/milis.git/ayarlar/servisler + make DESTDIR=$PKG kur-lxdm +} diff --git a/talimatname/genel/l/lximage-qt/talimat b/talimatname/genel/l/lximage-qt/talimat new file mode 100644 index 000000000..1fc37fd23 --- /dev/null +++ b/talimatname/genel/l/lximage-qt/talimat @@ -0,0 +1,21 @@ +# Tanım: Lximage-qt paketi, hafif bir resim görüntüleyici ve ekran görüntüsü programı içerir. +# URL: http://lxqt.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: libfm-qt libexif +# Grup: lxqt + +isim=lximage-qt +surum=0.7.0 +devir=1 +kaynak=(https://github.com/lxde/$isim/releases/download/$surum/$isim-$surum.tar.xz) + + +derle() { + mkdir -v build + cd build + cmake $SRC/$isim-$surum \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/lxqt-about/talimat b/talimatname/genel/l/lxqt-about/talimat new file mode 100644 index 000000000..68925a2d2 --- /dev/null +++ b/talimatname/genel/l/lxqt-about/talimat @@ -0,0 +1,21 @@ +# Tanım: Lxqt-about paketi bağımsız LXQt "Hakkında" iletişim kutusunu sağlar. +# URL: http://lxqt.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: liblxqt +# Grup: lxqt + +isim=lxqt-about +surum=0.13.0 +devir=1 +kaynak=(https://github.com/lxde/$isim/releases/download/$surum/$isim-$surum.tar.xz) + +derle() { + mkdir -v build + cd build + cmake $SRC/$isim-$surum \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/lxqt-admin/talimat b/talimatname/genel/l/lxqt-admin/talimat new file mode 100644 index 000000000..afce33083 --- /dev/null +++ b/talimatname/genel/l/lxqt-admin/talimat @@ -0,0 +1,21 @@ +# Tanım: Lxqt-admin paketi, LXQt'nin çalıştığı işletim sisteminin ayarlarını yapmak için iki GUI aracı sunar. +# URL: http://lxqt.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: liblxqt polkit +# Grup: lxqt + +isim=lxqt-admin +surum=0.13.0 +devir=1 +kaynak=(https://github.com/lxde/$isim/releases/download/$surum/$isim-$surum.tar.xz) + +derle() { + mkdir -v build + cd build + cmake $SRC/$isim-$surum \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/lxqt-build-tools/talimat b/talimatname/genel/l/lxqt-build-tools/talimat new file mode 100644 index 000000000..530dad9cd --- /dev/null +++ b/talimatname/genel/l/lxqt-build-tools/talimat @@ -0,0 +1,20 @@ +# Tanım: LXQt uygulamaları için çeşitli paketleme araçları ve komut dosyaları +# URL: http://lxqt.org +# Paketçi: milisarge +# Gerekler: cmake qt5 + +isim=lxqt-build-tools +surum=0.5.0 +devir=1 +kaynak=(https://github.com/lxde/$isim/releases/download/$surum/$isim-$surum.tar.xz) + + +derle() { + mkdir -v build + cd build + cmake $SRC/$isim-$surum \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/lxqt-common/talimat b/talimatname/genel/l/lxqt-common/talimat new file mode 100644 index 000000000..be3af8e2c --- /dev/null +++ b/talimatname/genel/l/lxqt-common/talimat @@ -0,0 +1,24 @@ +# Tanım: Lxqt-common paketi çeşitli LXQt bileşenleri için ortak dosyalar sağlar. +# URL: http://lxqt.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: hicolor-icon-theme xorg-app + +isim=lxqt-common +surum=0.11.2 +devir=1 +kaynak=(https://github.com/lxde/$isim/releases/download/$surum/$isim-$surum.tar.xz) + +sed -e '/TryExec/s@=@=/usr/bin/@' \ + -i xsession/lxqt.desktop.in + +derle() { + mkdir -v build + cd build + cmake $SRC/$isim-$surum \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr + + make + mkdir -pv /usr/share/lxqt/graphics && + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/lxqt-config/talimat b/talimatname/genel/l/lxqt-config/talimat new file mode 100644 index 000000000..ba8cb6a14 --- /dev/null +++ b/talimatname/genel/l/lxqt-config/talimat @@ -0,0 +1,22 @@ +# Tanım: Lxqt-config paketi LXQt sistem ayarlar merkezi sağlar. +# URL: http://lxqt.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: liblxqt plasma-libkscreen + +isim=lxqt-config +surum=0.11.1 +devir=1 +kaynak=(https://github.com/lxde/$isim/releases/download/$surum/$isim-$surum.tar.xz) + + +derle() { + mkdir -v build + cd build + cmake $SRC/$isim-$surum \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_LIBDIR=lib + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/lxqt-globalkeys/talimat b/talimatname/genel/l/lxqt-globalkeys/talimat new file mode 100644 index 000000000..52b2d3db4 --- /dev/null +++ b/talimatname/genel/l/lxqt-globalkeys/talimat @@ -0,0 +1,22 @@ +# Tanım: Lxqt-globalkeys paketi genel klavye kısayollarını ve bir kısayol GUI editörünü kaydetmek için kullanılan bir arka plan programı içerir. +# URL: http://lxqt.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: liblxqt +# Grup: lxqt + +isim=lxqt-globalkeys +surum=0.13.0 +devir=1 +kaynak=(https://github.com/lxde/$isim/releases/download/$surum/$isim-$surum.tar.xz) + +derle() { + mkdir -v build + cd build + cmake $SRC/$isim-$surum \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/lxqt-l10n/talimat b/talimatname/genel/l/lxqt-l10n/talimat new file mode 100644 index 000000000..b447ce6b9 --- /dev/null +++ b/talimatname/genel/l/lxqt-l10n/talimat @@ -0,0 +1,21 @@ +# Tanım: Lxqt-l10n paketi LXQt masaüstünün tüm bileşenleri için çeviri sağlar +# URL: http://lxqt.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: liblxqt +# Grup: lxqt + +isim=lxqt-l10n +surum=0.13.0 +devir=1 +kaynak=(https://github.com/lxde/$isim/releases/download/$surum/$isim-$surum.tar.xz) + +derle() { + mkdir -v build + cd build + cmake $SRC/$isim-$surum \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/lxqt-notificationd/talimat b/talimatname/genel/l/lxqt-notificationd/talimat new file mode 100644 index 000000000..5fe80327f --- /dev/null +++ b/talimatname/genel/l/lxqt-notificationd/talimat @@ -0,0 +1,23 @@ +# Tanım: Lxqt-notificationd paketi, LXQt bildirim arka plan programıdır. +# URL: http://lxqt.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: lxqt-common liblxqt +# Grup: lxqt + +isim=lxqt-notificationd +surum=0.13.0 +devir=1 +kaynak=(https://github.com/lxde/$isim/releases/download/$surum/$isim-$surum.tar.xz) + + +derle() { + mkdir -v build + cd build + cmake $SRC/$isim-$surum \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/l/lxqt-openssh-askpass/talimat b/talimatname/genel/l/lxqt-openssh-askpass/talimat new file mode 100644 index 000000000..724e2f5ac --- /dev/null +++ b/talimatname/genel/l/lxqt-openssh-askpass/talimat @@ -0,0 +1,21 @@ +# Tanım: LXQt openssh şifre istemi +# URL: http://lxqt.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: liblxqt lxqt-build-tools +# Grup: lxqt + +isim=lxqt-openssh-askpass +surum=0.13.0 +devir=1 +kaynak=(https://github.com/lxde/$isim/releases/download/$surum/$isim-$surum.tar.xz) + + +derle() { + mkdir -v build + cd build + cmake $SRC/$isim-$surum \ + -DCMAKE_INSTALL_PREFIX=/usr \ + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/lxqt-panel/talimat b/talimatname/genel/l/lxqt-panel/talimat new file mode 100644 index 000000000..3178d6816 --- /dev/null +++ b/talimatname/genel/l/lxqt-panel/talimat @@ -0,0 +1,29 @@ +# Tanım: Lxqt-panel paketi hafif bir X11 masaüstü paneli içeriyor. +# URL: http://lxqt.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: kf5-solid kf5-kguiaddons lxqt-globalkeys libdbusmenu-qt5 liblxqt lxde-menu-data menu-cache libsysstat libstatgrab pulseaudio libxkbcommon lm-sensors + +isim=lxqt-panel +surum=0.11.1 +devir=1 +kaynak=(https://github.com/lxde/$isim/releases/download/$surum/$isim-$surum.tar.xz) + + +derle() { +cd $isim-$surum + +sed -e 's:<KF5/KWindowSystem/:<:' \ + -i plugin-taskbar/lxqttaskgroup.{h,cpp} + +sed -e '/kbdinfo.h/i #undef explicit' \ + -i plugin-kbindicator/src/x11/kbdlayout.cpp + + mkdir -v build + cd build + cmake $SRC/$isim-$surum \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/lxqt-policykit/talimat b/talimatname/genel/l/lxqt-policykit/talimat new file mode 100644 index 000000000..282529673 --- /dev/null +++ b/talimatname/genel/l/lxqt-policykit/talimat @@ -0,0 +1,20 @@ +# Tanım: LXQt politika kimliği doğrulama aracısı +# URL: http://lxqt.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: liblxqt polkit-qt5 +# Grup: lxqt + +isim=lxqt-policykit +surum=0.13.0 +devir=1 +kaynak=(https://github.com/lxde/$isim/releases/download/$surum/$isim-$surum.tar.xz) + +derle() { + mkdir -v build + cd build + cmake $SRC/$isim-$surum \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/lxqt-powermanagement/talimat b/talimatname/genel/l/lxqt-powermanagement/talimat new file mode 100644 index 000000000..c3c506eb5 --- /dev/null +++ b/talimatname/genel/l/lxqt-powermanagement/talimat @@ -0,0 +1,20 @@ +# Tanım: Lxqt-powermanagement paketi, LXQt için güç yönetimi modülünü sağlar. +# URL: http://lxqt.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: liblxqt hicolor-icon-theme kf5-kidletime kf5-solid upower xscreensaver + +isim=lxqt-powermanagement +surum=0.13.0 +devir=1 +kaynak=(https://github.com/lxde/$isim/releases/download/$surum/$isim-$surum.tar.xz) + + +derle() { + mkdir -v build + cd build + cmake $SRC/$isim-$surum \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/lxqt-qtermwidget/talimat b/talimatname/genel/l/lxqt-qtermwidget/talimat new file mode 100644 index 000000000..61bbd8a0a --- /dev/null +++ b/talimatname/genel/l/lxqt-qtermwidget/talimat @@ -0,0 +1,22 @@ +# Tanım: Adından da anlaşılacağı üzere qtermwidget Qt için bir terminal widgettır. +# URL: http://lxqt.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: cmake qt5 + +isim=lxqt-qtermwidget +_isim=qtermwidget +surum=0.7.1 +devir=1 +kaynak=(https://github.com/lxde/$_name/releases/download/$surum/$_name-$surum.tar.xz) + + +derle() { + mkdir -v build + cd build + cmake $SRC/$_name-$surum \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/lxqt-qtplugin/lxqt-qtplugin.kur-kos b/talimatname/genel/l/lxqt-qtplugin/lxqt-qtplugin.kur-kos new file mode 100644 index 000000000..8d821fddd --- /dev/null +++ b/talimatname/genel/l/lxqt-qtplugin/lxqt-qtplugin.kur-kos @@ -0,0 +1,7 @@ +cat >> /etc/profile.d/lxqt.sh << "EOF" +# Begin lxqt-qtplugin configuration + +export QT_QPA_PLATFORMTHEME=lxqt + +# End lxqt-qtplugin configuration +EOF diff --git a/talimatname/genel/l/lxqt-qtplugin/talimat b/talimatname/genel/l/lxqt-qtplugin/talimat new file mode 100644 index 000000000..e132bb238 --- /dev/null +++ b/talimatname/genel/l/lxqt-qtplugin/talimat @@ -0,0 +1,22 @@ +# Tanım: Qt için LXQt platform entegrasyonu +# URL: http://lxqt.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: liblxqt libdbusmenu-qt5 lxqt-build-tools libqtxdg libfm-qt +# Grup: lxqt + +isim=lxqt-qtplugin +surum=0.13.0 +devir=1 +kaynak=(https://github.com/lxde/$isim/releases/download/$surum/$isim-$surum.tar.xz) + + +derle() { + mkdir -v build + cd build + cmake $SRC/$isim-$surum \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/lxqt-runner/talimat b/talimatname/genel/l/lxqt-runner/talimat new file mode 100644 index 000000000..2e8633338 --- /dev/null +++ b/talimatname/genel/l/lxqt-runner/talimat @@ -0,0 +1,22 @@ +# Tanım: Lxqt-runner paketi, adlarını yazarak programları hızlı bir şekilde başlatmak için kullanılan bir araç sağlar. +# URL: http://lxqt.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: lxqt-globalkeys menu-cache +# Grup: lxqt + +isim=lxqt-runner +surum=0.13.0 +devir=1 +kaynak=(https://github.com/lxde/$isim/releases/download/$surum/$isim-$surum.tar.xz) + +derle() { + mkdir -v build + cd build +cmake $SRC/$isim-$surum \ + -DCMAKE_BUILD_TYPE=Release \ + -DRUNNER_MATH=OFF \ + -DCMAKE_INSTALL_PREFIX=/usr + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/l/lxqt-session/talimat b/talimatname/genel/l/lxqt-session/talimat new file mode 100644 index 000000000..1ec21c27b --- /dev/null +++ b/talimatname/genel/l/lxqt-session/talimat @@ -0,0 +1,21 @@ +# Tanım: Lxqt-session paketi, LXQt için varsayılan oturum yöneticisini içerir. +# URL: http://lxqt.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: liblxqt xdg-user-dirs kf5-kwindowsystem kf5-breeze-icons kf5-oxygen-icons5 lxqt-build-tools +# Grup: lxqt + +isim=lxqt-session +surum=0.13.0 +devir=1 +kaynak=(https://github.com/lxde/$isim/releases/download/$surum/$isim-$surum.tar.xz) + +derle() { + mkdir -v build + cd build + cmake $SRC/$isim-$surum \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/lxqt-sudo/talimat b/talimatname/genel/l/lxqt-sudo/talimat new file mode 100644 index 000000000..4528be21a --- /dev/null +++ b/talimatname/genel/l/lxqt-sudo/talimat @@ -0,0 +1,21 @@ +# Tanım: Lxqt-sudo sırasıyla sudo ve su komutlarının grafik ön ucudur. +# URL: http://lxqt.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: liblxqt qt5 +# Grup: lxqt + +isim=lxqt-sudo +surum=0.13.0 +devir=1 +kaynak=(https://github.com/lxde/$isim/releases/download/$surum/$isim-$surum.tar.xz) + + +derle() { + mkdir -v build + cd build + cmake $SRC/$isim-$surum \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/lxqt/lxqt.sira b/talimatname/genel/l/lxqt/lxqt.sira new file mode 100644 index 000000000..bd3b68b1d --- /dev/null +++ b/talimatname/genel/l/lxqt/lxqt.sira @@ -0,0 +1,31 @@ +libstatgrab +libdbusmenu-qt +libqtxdg +lxqt-build-tools +libsysstat +liblxqt +compton-conf +libfm-qt +lxqt-common +lxqt-l10n +lxqt-qtplugin +obconf-qt +pavucontrol-qt +qtermwidget +lximage-qt +pcmanfm-qt +lxqt-about +lxqt-admin +lxqt-config +lxqt-globalkeys +lxqt-notificationd +lxqt-openssh-askpass +lxqt-policykit +lxqt-powermanagement +lxqt-qtermwidget +lxqt-session +lxqt-sudo +lxqt-panel +lxqt-runner +qterminal +qps diff --git a/talimatname/genel/l/lxqt/talimat b/talimatname/genel/l/lxqt/talimat new file mode 100644 index 000000000..cd57188ff --- /dev/null +++ b/talimatname/genel/l/lxqt/talimat @@ -0,0 +1,15 @@ +# Tanım: Lxqt masaüstü ortamı +# URL: https://lxqt.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: compton-conf libqtxdg lxqt-build-tools libsysstat liblxqt libfm-qt lxqt-common lxqt-l10n lxqt-qtplugin obconf-qt pavucontrol-qt qtermwidget lximage-qt pcmanfm-qt qterminal lxqt-about lxqt-admin lxqt-config lxqt-globalkeys lxqt-notificationd lxqt-openssh-askpass lxqt-policykit lxqt-powermanagement lxqt-session lxqt-sudo lxqt-panel lxqt-runner qps +# Grup:lxqt + +isim=lxqt +surum=0.13.0 +devir=1 + +kaynak=() + +derle() { +echo "lxqt sistem" +} diff --git a/talimatname/genel/l/lynx/talimat b/talimatname/genel/l/lynx/talimat new file mode 100644 index 000000000..71f846864 --- /dev/null +++ b/talimatname/genel/l/lynx/talimat @@ -0,0 +1,24 @@ +# Tanım: Metin tabanlı web tarayıcısı. +# URL: http://lynx.isc.org/ +# Paketçi: milisarge +# Gerekler: + +isim=lynx +surum=2.8.9dev.14 +devir=1 +kaynak=(http://invisible-island.net/datafiles/release/lynx-cur.tar.bz2) + +derle() { + cd lynx$surum + ./configure \ + --prefix=/usr \ + --enable-nls \ + --enable-color-style \ + --enable-ipv6 \ + --with-ssl=/usr/lib \ + --with-zlib \ + --enable-default-colors \ + --with-screen=ncursesw + make -s -j1 + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/l/lziprecover/talimat b/talimatname/genel/l/lziprecover/talimat new file mode 100644 index 000000000..1b2b01e74 --- /dev/null +++ b/talimatname/genel/l/lziprecover/talimat @@ -0,0 +1,17 @@ +# Tanım: lzip arşiv kontrol ve tamir programı +# URL: http://www.nongnu.org/lzip +# Paketçi: milisarge +# Gerekler: + +isim=lziprecover +surum=1.18 +devir=1 + +kaynak=(http://download.savannah.gnu.org/releases/lzip/$isim/$isim-$surum.tar.gz) + +derle(){ + cd $isim-$surum + ./configure --prefix=/usr + make + make prefix=$PKG/usr install +} diff --git a/talimatname/genel/l/lzop/talimat b/talimatname/genel/l/lzop/talimat new file mode 100644 index 000000000..de81032bd --- /dev/null +++ b/talimatname/genel/l/lzop/talimat @@ -0,0 +1,19 @@ +# Tanım: lzo tabanlı sıkıştırıcı uygulama +# URL: http://www.lzop.org/ +# Paketçi: milisarge +# Gerekler: lzo + +isim=lzop +surum=1.03 +devir=1 +kaynak="http://www.lzop.org/download/$isim-$surum.tar.gz" + +derle() { + cd $isim-$surum + + ./configure \ + --prefix=/usr \ + --enable-shared + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/maclookup/talimat b/talimatname/genel/m/maclookup/talimat new file mode 100644 index 000000000..a99c71911 --- /dev/null +++ b/talimatname/genel/m/maclookup/talimat @@ -0,0 +1,19 @@ +# Tanım: IEEE MA-L/OUI açık listesinden MAC adresi görüntüleme aracı. +# URL: https://github.com/paraxor/maclookup +# Paketçi: yakar (aydin@komutan.org) +# Gerekler: + +isim=maclookup +surum=0.4 +devir=1 +kaynak=(https://github.com/paraxor/$isim/archive/${surum}.tar.gz) + +derle() { + cd "$SRC/$isim-$surum" + + mkdir -p "$PKG/usr/share/$isim" + + install -Dm755 $isim.sh "$PKG/usr/bin/$isim" + + sh $isim.sh -u -f "$PKG/usr/share/$isim/oui.txt" +} diff --git a/talimatname/genel/m/macos-simge-tema/talimat b/talimatname/genel/m/macos-simge-tema/talimat new file mode 100644 index 000000000..13a17251a --- /dev/null +++ b/talimatname/genel/m/macos-simge-tema/talimat @@ -0,0 +1,19 @@ +# Tanım: MacOS Simge Teması +# URL: https://www.opendesktop.org/p/1102582 +# Paketçi: Oltulu +# Gerekler: +# Grup: grafik_tasarım + +isim=macos-simge-tema +surum=4.1.5 +devir=1 + +kaynak=(https://dl.opendesktop.org/api/files/downloadfile/id/1510321229/s/4b235bb70e9c6341be771802bc542e92/t/1513887320/macOS.tar.xz) + +derle() { + find -name '* *' -delete + cp macOS/status/symbolic/*.svg macOS/devices/symbolic + mv macOS/apps/128/accessories_calculator.png macOS/apps/128/accessories-calculator.png + + find */ -type f -exec install -Dm644 '{}' $PKG/usr/share/icons/'{}' \; +} diff --git a/talimatname/genel/m/mailcommon/talimat b/talimatname/genel/m/mailcommon/talimat new file mode 100644 index 000000000..7f7d9e887 --- /dev/null +++ b/talimatname/genel/m/mailcommon/talimat @@ -0,0 +1,21 @@ +# Tanım: Posta uygulamaları için destek sağlayan KDE PIM kütüphanesi +# URL : https://community.kde.org/KDE_PIM +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: mailimporter messagelib kf5-extra-cmake-modules kf5-kdoctools boost qt5 + +isim=mailcommon +surum=16.08.2 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/mailimporter/talimat b/talimatname/genel/m/mailimporter/talimat new file mode 100644 index 000000000..c5642b0bf --- /dev/null +++ b/talimatname/genel/m/mailimporter/talimat @@ -0,0 +1,21 @@ +# Tanım: Çeşitli kaynaklardan posta almayı sağlayan Kitaplık +# URL : https://community.kde.org/KDE_PIM +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: libkdepim kf5-extra-cmake-modules kf5-kdoctools boost qt5 + +isim=mailimporter +surum=16.08.2 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/mailx/talimat b/talimatname/genel/m/mailx/talimat new file mode 100644 index 000000000..049e5543d --- /dev/null +++ b/talimatname/genel/m/mailx/talimat @@ -0,0 +1,27 @@ +# Tanım: Berkeley Mail'den türetilen bir komut satırı posta kullanıcı aracısı. +# URL: http://heirloom.sourceforge.net/mailx.html +# Paketçi: milisarge +# Gerekler: openssl kerberos sendmail + +isim=mailx +surum=12.5 +devir=1 +kaynak=(http://ftp.debian.org/debian/pool/main/h/heirloom-$isim/heirloom-mailx_12.5.orig.tar.gz + http://www.linuxfromscratch.org/patches/blfs/svn/heirloom-$isim-12.5-fixes-1.patch ) + +derle() { + +cd heirloom-$isim-$surum + +patch -Np1 -i $SRC/heirloom-mailx-12.5-fixes-1.patch + +make SENDMAIL=/usr/sbin/sendmail -j1 + +make PREFIX=$PKG/usr UCBINSTALL=/usr/bin/install install + +ln -v -sf mailx $PKG/usr/bin/mail +ln -v -sf mailx $PKG/usr/bin/nail +install -v -m755 -d $PKG/usr/share/doc/heirloom-mailx-12.5 +install -v -m644 README $PKG/usr/share/doc/heirloom-mailx-12.5 + +} diff --git a/talimatname/genel/m/maim/talimat b/talimatname/genel/m/maim/talimat new file mode 100644 index 000000000..1f03435c8 --- /dev/null +++ b/talimatname/genel/m/maim/talimat @@ -0,0 +1,16 @@ +# Tanım: Ekran görüntüsü alma uygulaması +# URL: https://github.com/naelstrof/maim +# Paketçi: milisarge +# Gerekler: cmake slop freetype xorg-libxfixes xorg-libxrandr libjpeg-turbo xorg-libxcomposite + +isim=maim +surum=4.4.62 +devir=1 +kaynak=(https://github.com/naelstrof/maim/archive/v$surum.tar.gz) + +derle() { + cd $isim-$surum + cmake -DJPEG_INCLUDE_DIR:PATH=C:/MinGW/include/ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/makemkv/makemkv.1 b/talimatname/genel/m/makemkv/makemkv.1 new file mode 100644 index 000000000..c3e27c046 --- /dev/null +++ b/talimatname/genel/m/makemkv/makemkv.1 @@ -0,0 +1,30 @@ +.TH MAKEMKV "1" "May 2014" "MakeMKV 1.8" + +\" Completely disable hyphenation. It is a very annoying feature while reading man pages, in my opinion. +.nh + +.SH NAME +MakeMKV \- Decrypt DVD and Blu-ray discs to your hard disk using a simple GUI. + +.SH SYNOPSIS +.B makemkv + +.SH DESCRIPTION +MakeMKV is a simple solution to convert video that you own into a free and patents-unencumbered format which can be played everywhere. MakeMKV is a format converter, otherwise called a "transcoder". It converts the video clips from proprietary (and usually encrypted) disc into a set of MKV files, preserving most information but not changing it in any way. Additionally MakeMKV can instantly stream decrypted video without intermediate conversion to wide range of media players. + +.SH AUTHOR +This manual page was written by Karl Lenz <xorangekiller@gmail.com> for the Debian project (but may be used by others). + +.SH COPYRIGHT +2007-2014 GuinpinSoft Inc. + +Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. + +MakeMKV is provided "as is" with no warranty. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 2.1 of the License, or (at your option) any later version. On Debian systems, the complete text of the GNU Lesser General Public License version 2.1 can be found in "/usr/share/common-licenses/LGPL-2.1". + +.SH SEE\ ALSO +.BR makemkvcon (1), +.BR mmdtsdec (1), +.BR ffmpeg (1), +.BR vlc (1), +.BR mpv (1) diff --git a/talimatname/genel/m/makemkv/makemkv.kur-kos b/talimatname/genel/m/makemkv/makemkv.kur-kos new file mode 100644 index 000000000..b036cd975 --- /dev/null +++ b/talimatname/genel/m/makemkv/makemkv.kur-kos @@ -0,0 +1,6 @@ +echo "The makemkv package is licensed software." +echo "You MUST read and agree to the license stored in" +echo "/usr/share/licenses/makemkv/eula_en_linux.txt before using it." + +update-desktop-database -q +xdg-icon-resource forceupdate --theme hicolor diff --git a/talimatname/genel/m/makemkv/makemkvcon.1 b/talimatname/genel/m/makemkv/makemkvcon.1 new file mode 100644 index 000000000..239f74986 --- /dev/null +++ b/talimatname/genel/m/makemkv/makemkvcon.1 @@ -0,0 +1,266 @@ +.TH MAKEMKVCON "1" "May 2014" "MakeMKV 1.8" + +\" Completely disable hyphenation. It is a very annoying feature while reading man pages, in my opinion. +.nh + +.SH NAME +makemkvcon \- Decrypt DVD and Blu-ray discs to your hard disk using a simple command line interface. + +.SH SYNOPSIS +.B makemkvcon +[\fIOPTIONS\fR] +\fICOMMAND\fR +[\fIPARAMETERS\fR] + +.SH DESCRIPTION +MakeMKV is a simple solution to convert video that you own into a free and patents-unencumbered format which can be played everywhere. MakeMKV is a format converter, otherwise called a "transcoder". It converts the video clips from proprietary (and usually encrypted) disc into a set of MKV files, preserving most information but not changing it in any way. Additionally MakeMKV can instantly stream decrypted video without intermediate conversion to wide range of media players. + +.SH GENERAL\ OPTIONS +The options described below apply to all makemkvcon \fICOMMANDS\fR. + +.IP \fB--messages\fR=\fIFILE\fR +Output all messages to \fIFILE\fR instead of stdandard output. + +The following special \fIFILE\fR names are recognized: +.TS +left allbox tab(%); +c c +l l +l l +l l. + \fBFILE\fR % \fBSpecial Meaning\fR +-stdout % standard output +-stderr % standard error +-null % disable output +.TE + +.IP \fB--progress\fR=\fIFILE\fR +Output all progress messages to \fIFILE\fR. By default no progress is output. + +The same special \fIFILE\fR names as supported by \fI--messages\fR are recognized, with one addition: +.TS +left allbox tab(%); +c c +l l. + \fBFILE\fR % \fBSpecial Meaning\fR +-same % output to the same \fIFILE\fR as \fI--messages\fR +.TE + +.IP \fB--debug\fR[=\fIFILE\fR] +Enable debug messages, and, optionally, output those messages to \fIFILE\fR instead of the debug location specified in program preferences. + +.IP \fB--directio\fR=\fIBOOL\fR +Disable direct disc access if \fIBOOL\fR is \fIfalse\fR. Enable direct disc access if \fIBOOL\fR is \fItrue\fR. + +.IP \fB--noscan\fR +Do not access any media while scanning a disc, and do not check for media insertion and removal. This option may be helpful when other applications are actively accessing discs in other drives. It does not, however, alleviate the need to MakeMKV to have exclusive access to the disc drive you specify to this program. + +.IP \fB--cache\fR=\fISIZE\fR +Specify the maximum \fISIZE\fR of the read cache used by MakeMKV (in megabytes). By default this program may consume a very large amount of memory. Although this high memory consumption allows MakeMKV to quickly and efficiently buffer chunks of data from the DVD or Blu-ray disc, it may noticeably slow down memory-constrained systems or those with very little free RAM. If you choose to limit the cache \fISIZE\fR with this option, please keep in mind that 128 MB is the recommended minimum for streaming and backup, at least 512 MB is necessary for smooth DVD conversion, and at least 1024 MB is necessary for smooth Blu-ray conversion. + +.SH CONVERSION\ OPTIONS +The options described below are for source conversion and apply only to the \fImkv\fR \fICOMMAND\fR. + +.IP \fB--minlength\fR=\fILENGTH\fR +Only capture titles that are at least \fILENGTH\fR seconds long. + +.SH STREAMING\ OPTIONS +The options described below are for network related and apply only to the \fIstream\fR \fICOMMAND\fR. + +.IP \fB--upnp\fR=\fIBOOL\fR +Disable Universal Plug-and-Play (UPNP) streaming if \fIBOOL\fR is \fIfalse\fR. Enable UPNP streaming if \fIBOOL\fR is \fItrue\fR. + +.IP \fB--bindip\fR=\fIADDRESS\fR +Exclusively bind the UPNP server to \fIADDRESS\fR. By default server binds to the first available address, and its local web server listens on all available addresses. + +.IP \fB--bindport\fR=\fIPORT\fR +Bind the web server to \fIPORT\fR instead of 51000. + +.SH BACKUP\ OPTIONS +The options described below related to backup purposes and apply only to the \fIbackup\fR \fICOMMAND\fR. + +.IP \fB--decrypt\fR +Decrypt stream files during backup. By default a strict backup will be made, which means nothing is decrypted sans this option. + +.SH AUTOMATION\ OPTIONS +The options described below are designed to be used by those wishing to automate aspects of this program. They are particularly useful in shell scripts. + +.IP \fB-r\fR,\ \fB--robot\fR +Enable automation mode. In this mode MakeMKV will output more information in a format that is easier to parse by scripts (particularly with regular expressions), but may slightly hinder direct human consumption. All output is line-based and flushed on line end. All strings are quoted, and all control characters and quotes are escaped by backlashes. If you intend to automate this program, it is highly recommended that you use this option. Some options make reference to \fIapdefs.h\fR, which is among the open-source components of MakeMKV and can be found in the makemkv-oss source package in Debian. These values will not change in future versions. + +.SH COMMANDS +Each instantiation of this program requires a \fICOMMAND\fR. This \fICOMMAND\fR determines, on a holistic level, which action MakeMKV should attempt to perform. All supported commands are described below. + +.IP \fBinfo\fR\ \fISOURCE\fR +Print detailed descriptory information about the \fISOURCE\fR disc. + +.IP \fBmkv\fR\ \fISOURCE\fR\ \fITITLE_ID\fR\ \fIDESTINATION_DIRECTORY\fR +Save the title on the \fISOURCE\fR disc with the ID \fITITLE_ID\fR to an MKV file in the directory \fIDESTINATION_DIRECTORY\fR. + +.IP \fBstream\fR\ \fISOURCE\fR +Start a local streaming server backed by the titles on \fISOURCE\fR. + +.IP \fBbackup\fR\ \fISOURCE\fR\ \fIDESTINATION_DIRECTORY\fR +Faithfully backup the contents of \fISOURCE\fR to the \fIDESTINATION_DIRECTORY\fR on your hard disk. + +.SH SOURCES +Since MakeMKV is primarily designed to operate on optical media, each \fICOMMAND\fR must be immediately postfixed by a \fISOURCE\fR. However, because this program supports a wide range of input sources - including ISO images, directories, optical discs, and raw devices - each \fISOURCE\fR must be specified according to the source specification detailed below. The prefixes mandated by this specification hint to MakeMKV the type of media it should attempt to access. If in doubt, try the \fIdisc\fR \fISOURCE\fR; it is the most commonly used. + +.TS +left allbox tab(%); +c c +l l +l l +l l +l l. + \fBSOURCE\fR % \fBDescription\fR +iso:\fIFILE\fR % Open the ISO image specified by \fIFILE\fR. +file:\fIDIRECTORY\fR % Open the files contained in \fIDIRECTORY\fR. +disc:\fIDISC_ID\fR % Open the optical disc with the ID \fIDISC_ID\fR. Use the \fIinfo\fR command to get a list available \fIDISC_ID\fR's. +dev:\fIDEVICE\fR % Open the raw device with the name \fIDEVICE\fR. On Linux the first optical disc drive (and hence the first available \fIDEVICE\fR) is typically /dev/sr0. +.TE + +.SH MESSAGE\ FORMATS +There are several different types of messages that MakeMKV might generate. Each type is documented below. The short codes documented first are used to prefix messages in \fI--robot\fR mode. + +\fBMessage Output Format:\fR\ \fIMSG\fR:code,flags,count,message,format,param0,param1,... +.TS +left allbox tab(%); +c c +l l +l l +l l +l l +l l +l l. + \fBMSG\fR % \fBDescription\fR +code % unique message code which should be used to identify a particular string in a language-neutral way +flags % message flags (see \fIAP_UIMSG_xxx\fR flags in \fIapdefs.h\fR) +count % number of parameters +message % raw message string suitable for output +format % localized format string used for the message +param[0-9]+ % parameter for the message +.TE + + +.br +\fBCurrent Progress Title Format:\fR\ \fIPRGC\fR:code,id,name +.br +\fBTotal Progress Title Format:\fR\ \fIPRGT\fR:code,id,name +.TS +left allbox tab(%); +c c +l l +l l +l l. + \fBPRGC|PRGT\fR % \fBDescription\fR +code % unique message code +id % operation sub-id +name % name string +.TE + + +.br +\fBProgress Bar Format (for current and total progress)\fR:\ \fIPRGV\fR:current,total,max +.TS +left allbox tab(%); +c c +l l +l l +l l. + \fBPRGV\fR % \fBDescription\fR +current % current progress value +total % total progress value +max % maximum possible value for a progress bar (constant) +.TE + + +.br +\fBDrive Scan Message Format\fR:\ \fIDRV\fR:index,visible,enabled,flags,drive_name,disc_name +.TS +left allbox tab(%); +c c +l l +l l +l l +l l +l l +l l. + \fBDRV\fR % \fBDescription\fR +index % drive index +visible % set to 1 if drive is present +enabled % set to 1 if drive is accessible +flags % media flags (see \fIAP_DskFsFlagXXX\fR in \fIapdefs.h\fR) +drive name % drive name string +disc name % disc name string +.TE + + +.br +\fBDisc Information Output Format\fR:\ \fITCOUT\fR:count +.TS +left allbox tab(%); +c c +l l. + \fBTCOUT\fR % \fBDescription\fR +count % number of titles on the disc +.TE + + +.br +\fBDisc Information Format\fR:\ \fICINFO\fR:id,code,value +.br +\fBTitle Information Format\fR:\ \fITINFO\fR:id,code,value +.br +\fBStream Information Format\fR:\ \fISINFO\fR:id,code,value +.TS +left allbox tab(%); +c c +l l +l l +l l. + \fBCINFO|TINFO|SINFO\fR % \fBDescription\fR +id % attribute id (see \fIAP_ItemAttributeId\fR in \fIapdefs.h\fR) +code % message code (if the attribute value is a constant string) +value % attribute value +.TE + +.SH EXAMPLES +The following examples demonstrate the proper syntax for performing various common operations. If you need more help interpreting them, read the documentation above, and use common sense. + +\fB1.\fR\ Copy all titles from the first disc, and save them as decrypted MKV files in the \fIVideos\fR directory in your home folder. + +.br + \fBmakemkvcon mkv disc:0 all ~/Videos\fR + +\fB2.\fR\ List all available disc drives. + +.br + \fBmakemkvcon -r --cache=1 info disc:9999\fR + +\fB3.\fR\ Decrypt and backup the first disc to \fI/tmp\fR in automation mode with progress output. + +.br + \fBmakemkvcon backup --decrypt --cache=16 --noscan -r --progress=-same disc:0 /tmp\fR + +\fB4.\fR\ Start a UPNP streaming server with all output suppressed on port 51000 with the address 192.168.1.102. + +.br + \fBmakemvcon stream --upnp=1 --cache=128 --bindip=192.168.1.102 --bindport=51000 --messages=-none\fR + +.SH AUTHOR +This manual page was written by Karl Lenz <xorangekiller@gmail.com> for the Debian project (but may be used by others). + +.SH COPYRIGHT +2007-2014 GuinpinSoft Inc. + +Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. + +The MakeMKV console interface is provided "as is" with no warranty. This program is proprietary software: you can redistribute it under the terms of the MakeMKV End-User License Agreement (EULA) as provided by GuinpinSoft Incorporated. On Debian systems, the complete text of this license can be found in "/usr/share/doc/makemkv-cli/copyright". + +.SH SEE\ ALSO +.BR makemkv (1), +.BR mmdtsdec (1), +.BR ffmpeg (1), +.BR vlc (1), +.BR mpv (1) diff --git a/talimatname/genel/m/makemkv/mmdtsdec.1 b/talimatname/genel/m/makemkv/mmdtsdec.1 new file mode 100644 index 000000000..1dfe81bdb --- /dev/null +++ b/talimatname/genel/m/makemkv/mmdtsdec.1 @@ -0,0 +1,51 @@ +.TH MMDTSDEC "1" "May 2014" "MakeMKV 1.8" + +\" Completely disable hyphenation. It is a very annoying feature while reading man pages, in my opinion. +.nh + +.SH NAME +mmdtsdec \- Decode a Multimedia Display MPEG Transport Stream encoded file into Waveform Audio File format. + +.SH SYNOPSIS +.B mmdtsdec +[\fIOPTIONS\fR] +\fIINPUT_FILE\fR +\fIOUTPUT_FILE\fR + +.SH DESCRIPTION +Mmdtsdec is a command line program to decode Multimedia Display MPEG Transport Stream (TS) encoded files into into Waveform Audio File (WAV) format. Transport Stream is specified in the MPEG-2 Part 1 standard, and is commonly used to store audio, video, and data on DVD and Blu-ray discs. WAV files, on the other hand, are only lightly compressed, but are supported by a large number audio/video programs thanks to the format's relative simplicity. This program is part of the MakeMKV suite, and is designed first-and-foremost to complement MakeMKV. + +.SH OPTIONS + +.IP \fB-d\fR,\ \fB--dll\fR\ \fIFILE\fR +Use the shared library \fIFILE\fR to decode the \fIINPUT_FILE\fR. + +.SH INPUT_FILE +Each instance of this program must have an \fIINPUT_FILE\fR. This parameter should be the file name and path to an MPEG Transport Stream encoded file. (Which typically terminates with a \fI.ts\fR or \fI.dts\fR file extension.) + +.SH OUTPUT_FILE +Each instance of this program must have an \fIOUTPUT_FILE\fR. The file specified by this parameter should not exist prior to this program being executed. If \fIOUTPUT_FILE\fR already exists, it will be unconditionally overwritten. Since a Waveform Audio File will be produced, this file name should end with the \fI.wav\fR file extension. + +.SH EXAMPLES +The following examples demonstrate the proper syntax for performing various common operations. + +\fB1.\fR\ Decode \fIInputFile.dts\fR to \fIOutputFile.wav\fR using the default decoder library. + +.br + \fBmmdtsdec InputFile.dts OutputFile.wav\fR + +.SH AUTHOR +This manual page was written by Karl Lenz <xorangekiller@gmail.com> for the Debian project (but may be used by others). + +.SH COPYRIGHT +2007-2014 GuinpinSoft Inc. + +Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. + +The MakeMKV Multimedia Display MPEG Transport Stream Decoder is provided "as is" with no warranty. This program is proprietary software: you can redistribute it under the terms of the MakeMKV End-User License Agreement (EULA) as provided by GuinpinSoft Incorporated. On Debian systems, the complete text of this license can be found in "/usr/share/doc/makemkv-dec/copyright". + +.SH SEE\ ALSO +.BR makemkv (1), +.BR makemkvcon (1), +.BR ffmpeg (1), +.BR mencoder (1) diff --git a/talimatname/genel/m/makemkv/talimat b/talimatname/genel/m/makemkv/talimat new file mode 100644 index 000000000..22145d186 --- /dev/null +++ b/talimatname/genel/m/makemkv/talimat @@ -0,0 +1,25 @@ +# Tanım: MakeMKV, kendi videonuzu ücretsiz ve patentlere dönüştürmek için tek tıklamayla çözümünüzdür, her yere oynatılabilecek kayıtsız format. +# URL: http://www.makemkv.com +# Paketçi: milisarge +# Gerekler: qt5 libxkbcommon hicolor-icon-theme icu ffmpeg desktop-file-utils + +isim=makemkv +surum=1.12.0 +devir=3 + +kaynak=(http://www.makemkv.com/download/${isim}-bin-${surum}.tar.gz + http://www.makemkv.com/download/${isim}-oss-${surum}.tar.gz) + + +derle() { + cd "${SRC}/${isim}-oss-${surum}" + CC=gcc CXX=g++ ./configure --prefix=/usr + make + make DESTDIR=\""${PKG}"\" install + + cd "${SRC}/${isim}-bin-${surum}" + install -d tmp + echo accepted > tmp/eula_accepted + make DESTDIR=\""${PKG}"\" install + install -Dm 644 src/eula_en_linux.txt "${PKG}/usr/share/licenses/${isim}/eula_en_linux.txt" +} diff --git a/talimatname/genel/m/maltego/talimat b/talimatname/genel/m/maltego/talimat new file mode 100644 index 000000000..46292ae41 --- /dev/null +++ b/talimatname/genel/m/maltego/talimat @@ -0,0 +1,27 @@ +# Tanım: DNS, Alan Adı, IP adresleri, web siteleri, kişiler vb. hakkında bilgi toplamak için açık kaynaklı bir istihbarat ve adli bilişim uygulaması. +# URL: http://www.paterva.com/web5 +# Paketçi: yakar (aydin@komutan.org) +# Gerekler: giflib + +isim=maltego +surum=4.0.11.9358 +devir=1 +kaynak=(https://www.paterva.com/malv4/community/MaltegoCE.v${surum}.zip) + +derle() { + cd "$SRC/MaltegoCommunity_4.0.11CE" + + mkdir -p "$PKG/usr/bin" + mkdir -p "$PKG/usr/share/maltego" + mkdir -p "$PKG/usr/share/doc/maltego" + + cp -aR * "$PKG/usr/share/maltego" + + cat > "$PKG/usr/bin/maltego" << EOF +#!/bin/sh +cd /usr/share/maltego/bin +exec ./maltego "\$@" +EOF + + chmod +x "$PKG/usr/bin/maltego" +} diff --git a/talimatname/genel/m/manokwari/talimat b/talimatname/genel/m/manokwari/talimat new file mode 100644 index 000000000..b382d5e00 --- /dev/null +++ b/talimatname/genel/m/manokwari/talimat @@ -0,0 +1,28 @@ +# Tanım: BlankOn Projelerinden HTML5 masaüstü kabuğu +# URL: https://manokwari.blankonlinux.or.id +# Paketçi: Cihan_Alkan +# Gerekler: gnome-common vala mutter libunique3 gnome-session glib gtk3 libwnck3 libgee webkitgtk3 gnome-menus libnotify +# Grup: manokwari + +isim=manokwari +surum=1.0.20 +devir=1 +kaynak=(https://github.com/BlankOn/$isim/archive/$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd ${isim}-${surum} + # Use libgee 0.8 rather than libgee 0.6 + sed -i 's/gee-1.0/gee-0.8/g' configure.ac + # Install documentation to the correct location + sed -i 's:\(manokwaridocdir =\).*:\1 ${prefix}/share/doc/manokwari:' Makefile.am + cat << @@@ > files/bin/Makefile.am +sessiondir = $(bindir) +dist_bin_SCRIPTS = blankon-session +CLEANFILES = $(dist_bin_SCRIPTS) +@@@ + ./autogen.sh --prefix=/usr + make + + make DESTDIR="$PKG/" install +# chmod +x $PKG/usr/bin/blankon-session +} diff --git a/talimatname/genel/m/marble/talimat b/talimatname/genel/m/marble/talimat new file mode 100644 index 000000000..1a275b558 --- /dev/null +++ b/talimatname/genel/m/marble/talimat @@ -0,0 +1,32 @@ +# Tanım: Marble, Dünya hakkında daha fazla bilgi edinmek için kullanabileceğiniz bir Sanal Küre ve Dünya Atlası'dır. +# URL: https://www.kde.org/applications/system/marble +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules qt5 qt5-webkit libwlocate kf5-kdoctools kf5-kio kf5-kparts kf5-knewstuff kf5-kcrash kf5-kcoreaddons kf5-ki18n kf5-kwallet kf5-krunner + +isim=marble +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { +mkdir -p build +sed -e '/mobile/d' \ + -e '/qt/d' \ + -e '/Quick/d' \ + -e '/touch/d' \ + -i $isim-$surum/src/apps/CMakeLists.txt +cd build +cmake ../$isim-$surum \ + -DWITH_libshp=OFF \ + -DWITH_libgps=OFF \ + -DWITH_QextSerialPort=OFF \ + -DWITH_liblocation=OFF \ + -DBUILD_MARBLE_TOOLS=YES \ + -DBUILD_TESTING=OFF \ + -DBUILD_MARBLE_EXAMPLES=OFF \ + -DBUILD_MARBLE_TESTS=OFF \ + -DMOBILE=OFF +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/marco/marco.kur-kos b/talimatname/genel/m/marco/marco.kur-kos new file mode 100755 index 000000000..391272c83 --- /dev/null +++ b/talimatname/genel/m/marco/marco.kur-kos @@ -0,0 +1,4 @@ +/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas + +/usr/bin/update-desktop-database + diff --git a/talimatname/genel/m/marco/talimat b/talimatname/genel/m/marco/talimat new file mode 100644 index 000000000..a62640d53 --- /dev/null +++ b/talimatname/genel/m/marco/talimat @@ -0,0 +1,23 @@ +# Tanım: MATE için bir pencere yöneticisi +# URL: http://www.mate-desktop.org/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: libcanberra libgtop mate-desktop zenity intltool itstool + +isim=marco +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --enable-startup-notification + + #https://bugzilla.gnome.org/show_bug.cgi?id=656231 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/mariadb/mariadb.kur-kos b/talimatname/genel/m/mariadb/mariadb.kur-kos new file mode 100644 index 000000000..521749315 --- /dev/null +++ b/talimatname/genel/m/mariadb/mariadb.kur-kos @@ -0,0 +1,6 @@ +. /lib/lsb/init-functions +log_warning_msg "${WARNING} Create a /etc/mysql/my.cnf by comparing it with /etc/mysql/my.cnf.example ${NORMAL}" +log_warning_msg "${WARNING} Create a database if need by run the command: ${NORMAL}" +mkdir -p /srv/mysql +printf "# mysql_install_db --basedir=/usr --datadir=/srv/mysql --user=mysql\n" +printf "# chown -R mysql:mysql /srv/mysql\n" diff --git a/talimatname/genel/m/mariadb/mariadb.okubeni b/talimatname/genel/m/mariadb/mariadb.okubeni new file mode 100644 index 000000000..3c8f505eb --- /dev/null +++ b/talimatname/genel/m/mariadb/mariadb.okubeni @@ -0,0 +1,45 @@ +il est très important de procéder comme ci-dessous +pour avoir un serveur mysql sécurisé. +Installer le serveur mysql en procédant comme ceci + +***************************************************************** +* LES COMMANDES CI-DESSOUS DOIVENT ETRE RETAPEES TEL QUEL * +* NE PAS UTILISER LE COPIER / COLLER * +***************************************************************** + +1. Si le service mysql est en service, on l'arrête + +/etc/rc.d/init.d/mysql stop + +2. On lance le service en mode safe pour spécifier + le nouveau mot de passe de l'administrateur mysql + Noter que le & est très important pour avoir la main en console: + +mysqld_safe --user=mysql 2>&1 >/dev/null & + +3. On peut maintenant spécifier un nouveau mot de passe + pour le compte administrateur de mysql (root): + +mysqladmin -u root password <nouveau-mot-de-passe> + +4. La configuration du serveur est terminée. + Il faut arrêter le service mysql en mode safe, + le mot de passe entré en point 3 sera demandé: + +mysqladmin -p shutdown + + +5. Votre serveur mysql est maintenant sécurisé, vous pouvez démarrer le service + de façon définitive, si tout s'est déroulé correctement, il ne doit y avoir + AUCUNE erreur. Au prochain lancement de la machine, mysql se lancera correctement, + ne perdez pas le mot de passe administrateur: + +/etc/rc.d/init.d/mysql start + +Veuillez également consulter les pages concernant mysql + +version anglaise: +http://www.linuxfromscratch.org/blfs/view/svn/server/mysql.html + +version française: +http://lfs.traduc.org/view/blfs-svn/server/mysql.html diff --git a/talimatname/genel/m/mariadb/talimat b/talimatname/genel/m/mariadb/talimat new file mode 100644 index 000000000..9c57ce411 --- /dev/null +++ b/talimatname/genel/m/mariadb/talimat @@ -0,0 +1,139 @@ +# Tanım: MariaDB bir çatal ve MySQL ilişkisel veritabanı yönetim sisteminin yerini alıyor. +# URL: http://www.mariadb.org/en/about/ +# Paketçi: milisarge +# Gerekler: pcre cmake libevent + +isim=mariadb +surum=10.1.26 +devir=1 + +kaynak=(ftp://mirrors.fe.up.pt/pub/mariadb/mariadb-$surum/source/mariadb-$surum.tar.gz) + + +derle() { +cd $isim-$surum +mkdir build +cd build + +cmake $SRC/${isim}-${surum} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DMYSQL_DATADIR=/var/lib/mysql \ + -DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock \ + -DDEFAULT_CHARSET=utf8 \ + -DDEFAULT_COLLATION=utf8_general_ci \ + -DENABLED_LOCAL_INFILE=ON \ + -DINSTALL_MANDIR=share/man \ + -DINSTALL_PLUGINDIR=/usr/lib/mysql/plugin \ + -DINSTALL_SCRIPTDIR=bin \ + -DINSTALL_INCLUDEDIR=include/mysql \ + -DINSTALL_DOCREADMEDIR=share/mysql \ + -DINSTALL_SUPPORTFILESDIR=share/mysql \ + -DINSTALL_MYSQLSHAREDIR=share/mysql \ + -DINSTALL_DOCDIR=share/mysql/docs \ + -DINSTALL_SHAREDIR=share/mysql \ + -DWITH_PCRE=system \ + -DWITH_READLINE=ON \ + -DWITH_ZLIB=system \ + -DWITH_SSL=system \ + -DWITH_LIBWRAP=OFF \ + -DWITH_EXTRA_CHARSETS=complex \ + -DWITH_EMBEDDED_SERVER=ON \ + -DWITH_ARCHIVE_STORAGE_ENGINE=1 \ + -DWITH_BLACKHOLE_STORAGE_ENGINE=1 \ + -DWITH_INNOBASE_STORAGE_ENGINE=1 \ + -DWITH_PARTITION_STORAGE_ENGINE=1 \ + -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \ + -DWITHOUT_FEDERATED_STORAGE_ENGINE=1 \ + -DWITHOUT_TOKUDB_STORAGE_ENGINE=1 \ + -DCMAKE_C_FLAGS="-fPIC ${CFLAGS} -fno-strict-aliasing -DBIG_JOINS=1 -fomit-frame-pointer" \ + -DCMAKE_CXX_FLAGS="-fPIC ${CXXFLAGS} -fno-strict-aliasing -DBIG_JOINS=1 -felide-constructors -fno-rtti" \ + -DWITH_MYSQLD_LDFLAGS="${LDFLAGS}" + +make + +make DESTDIR=$PKG install + +install -v -dm 755 $PKG/etc/mysql + +cat > $PKG/etc/mysql/my.cnf.example << "EOF" +# Begin /etc/mysql/my.cnf + +# The following options will be passed to all MySQL clients +[client] +#password = your_password +port = 3306 +socket = /run/mysqld/mysqld.sock + +# The MySQL server +[mysqld] +port = 3306 +socket = /run/mysqld/mysqld.sock +datadir = /srv/mysql +skip-external-locking +key_buffer_size = 16M +max_allowed_packet = 1M +sort_buffer_size = 512K +net_buffer_length = 16K +myisam_sort_buffer_size = 8M + +# Don't listen on a TCP/IP port at all. +#skip-networking + +# required unique id between 1 and 2^32 - 1 +server-id = 1 + +# Uncomment the following if you are using BDB tables +#bdb_cache_size = 4M +#bdb_max_lock = 10000 + +# Uncomment the following if you are using InnoDB tables +#innodb_data_home_dir = /srv/mysql +#innodb_data_file_path = ibdata1:10M:autoextend +#innodb_log_group_home_dir = /srv/mysql +# You can set .._buffer_pool_size up to 50 - 80 % +# of RAM but beware of setting memory usage too high +#innodb_buffer_pool_size = 16M +#innodb_additional_mem_pool_size = 2M +# Set .._log_file_size to 25 % of buffer pool size +#innodb_log_file_size = 5M +#innodb_log_buffer_size = 8M +#innodb_flush_log_at_trx_commit = 1 +#innodb_lock_wait_timeout = 50 + +[mysqldump] +quick +max_allowed_packet = 16M + +[mysql] +no-auto-rehash +# Remove the next comment character if you are not familiar with SQL +#safe-updates + +[isamchk] +key_buffer = 20M +sort_buffer_size = 20M +read_buffer = 2M +write_buffer = 2M + +[myisamchk] +key_buffer_size = 20M +sort_buffer_size = 20M +read_buffer = 2M +write_buffer = 2M + +[mysqlhotcopy] +interactive-timeout + +# End /etc/mysql/my.cnf +EOF + + +#servis +cd /sources/milis.git/ayarlar/servisler +make DESTDIR=$PKG kur-mysql + +#gereksizler +rm -r ${PKG}/usr/{data,mysql-test,sql-bench} +rm ${PKG}/usr/share/man/man1/mysql-test-run.pl.1 +} diff --git a/talimatname/genel/m/masscan/talimat b/talimatname/genel/m/masscan/talimat new file mode 100644 index 000000000..3fd777819 --- /dev/null +++ b/talimatname/genel/m/masscan/talimat @@ -0,0 +1,19 @@ +# Tanım: TCP port tarayıcı,asenkron SYNC paketleri kullanarak tarama yapar. +# URL: https://github.com/robertdavidgraham/masscan +# Paketçi: milisarge +# Gerekler: libpcap + +isim=masscan +surum=master +devir=1 +kaynak=(https://github.com/robertdavidgraham/masscan/archive/master.tar.gz::$isim-master.tar.gz) + + +derle() { + cd ${isim}-master + make + make DESTDIR="${PKG}" install + install -Dm 644 doc/masscan.8 "${PKG}/usr/share/man/man8/masscan.8" + install -Dm 644 README.md "${PKG}/usr/share/doc/${isim}/README" + install -Dm 644 doc/masscan.8.markdown "${PKG}/usr/share/doc/${isim}/DOCUMENTATION" +} diff --git a/talimatname/genel/m/mate-applets/mate-applets.kur-kos b/talimatname/genel/m/mate-applets/mate-applets.kur-kos new file mode 100755 index 000000000..28c3e5d79 --- /dev/null +++ b/talimatname/genel/m/mate-applets/mate-applets.kur-kos @@ -0,0 +1,3 @@ +/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas + +/usr/bin/gtk-update-icon-cache -f -t /usr/share/icons/hicolor diff --git a/talimatname/genel/m/mate-applets/talimat b/talimatname/genel/m/mate-applets/talimat new file mode 100644 index 000000000..65b63da08 --- /dev/null +++ b/talimatname/genel/m/mate-applets/talimat @@ -0,0 +1,22 @@ +# Tanım: MATE paneli için appletler +# URL: http://www.mate-desktop.org/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: intltool itstool gtksourceview3 libgtop libnotify mate-panel polkit dbus-python python-gobject upower wireless-tools + +isim=mate-applets +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum + PYTHON=/usr/bin/python2 ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib/$isim \ + --enable-polkit \ + --enable-ipv6 + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/m/mate-backgrounds/talimat b/talimatname/genel/m/mate-backgrounds/talimat new file mode 100644 index 000000000..34cb871a2 --- /dev/null +++ b/talimatname/genel/m/mate-backgrounds/talimat @@ -0,0 +1,17 @@ +# Tanım: MATE için arka plan resimleri ve verileri +# URL: http://www.mate-desktop.org/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: intltool + +isim=mate-backgrounds +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/mate-calc/mate-calc.kur-kos b/talimatname/genel/m/mate-calc/mate-calc.kur-kos new file mode 100755 index 000000000..3b2f1e8c0 --- /dev/null +++ b/talimatname/genel/m/mate-calc/mate-calc.kur-kos @@ -0,0 +1,3 @@ +/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas + +/usr/bin/update-desktop-database diff --git a/talimatname/genel/m/mate-calc/talimat b/talimatname/genel/m/mate-calc/talimat new file mode 100644 index 000000000..6107df09c --- /dev/null +++ b/talimatname/genel/m/mate-calc/talimat @@ -0,0 +1,17 @@ +# Tanım: MATE masaüstü için hesap makinesi +# URL: http://www.mate-desktop.org/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: intltool itstool gtk3 + +isim=mate-calc +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/mate-common/talimat b/talimatname/genel/m/mate-common/talimat new file mode 100644 index 000000000..b1de38842 --- /dev/null +++ b/talimatname/genel/m/mate-common/talimat @@ -0,0 +1,17 @@ +# Tanım: MATE için yaygın geliştirme makroları +# URL: http://www.mate-desktop.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: gtk-doc intltool + +isim=mate-common +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/mate-control-center/mate-control-center.kur-kos b/talimatname/genel/m/mate-control-center/mate-control-center.kur-kos new file mode 100755 index 000000000..22fbaee6f --- /dev/null +++ b/talimatname/genel/m/mate-control-center/mate-control-center.kur-kos @@ -0,0 +1,5 @@ +/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas + +/usr/bin/gtk-update-icon-cache -f -t /usr/share/icons/hicolor + +/usr/bin/update-desktop-database diff --git a/talimatname/genel/m/mate-control-center/talimat b/talimatname/genel/m/mate-control-center/talimat new file mode 100644 index 000000000..fa70eb856 --- /dev/null +++ b/talimatname/genel/m/mate-control-center/talimat @@ -0,0 +1,26 @@ +# Tanım: MATE için Kontrol Merkezi +# URL: http://www.mate-desktop.org/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: intltool itstool mate-desktop mate-menus mate-settings-daemon marco xorg-libxscrnsaver + +isim=mate-control-center +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --sbindir=/usr/bin \ + --localstatedir=/var \ + --disable-update-mimedb + + #https://bugzilla.gnome.org/show_bug.cgi?id=656231 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + + make + make DESTDIR=$PKG install + rm $PKG/usr/share/applications/mimeinfo.cache +} diff --git a/talimatname/genel/m/mate-desktop/mate-desktop.kur-kos b/talimatname/genel/m/mate-desktop/mate-desktop.kur-kos new file mode 100755 index 000000000..22fbaee6f --- /dev/null +++ b/talimatname/genel/m/mate-desktop/mate-desktop.kur-kos @@ -0,0 +1,5 @@ +/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas + +/usr/bin/gtk-update-icon-cache -f -t /usr/share/icons/hicolor + +/usr/bin/update-desktop-database diff --git a/talimatname/genel/m/mate-desktop/talimat b/talimatname/genel/m/mate-desktop/talimat new file mode 100644 index 000000000..7e9c55f1a --- /dev/null +++ b/talimatname/genel/m/mate-desktop/talimat @@ -0,0 +1,23 @@ +# Tanım: Çeşitli MATE modülleri için ortak API'li kitaplık +# URL: http://www.mate-desktop.org/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: gobject-introspection intltool gtk3 startup-notification dconf + +isim=mate-desktop +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum + ./configure \ + --prefix=/usr \ + --disable-schemas-compile + + #https://bugzilla.gnome.org/show_bug.cgi?id=656231 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/m/mate-icon-theme-faenza/mate-icon-theme-faenza.kur-kos b/talimatname/genel/m/mate-icon-theme-faenza/mate-icon-theme-faenza.kur-kos new file mode 100755 index 000000000..4122a22dc --- /dev/null +++ b/talimatname/genel/m/mate-icon-theme-faenza/mate-icon-theme-faenza.kur-kos @@ -0,0 +1,4 @@ +/usr/bin/gtk-update-icon-cache -f -t /usr/share/icons/matefaenza +/usr/bin/gtk-update-icon-cache -f -t /usr/share/icons/matefaenzadark +/usr/bin/gtk-update-icon-cache -f -t /usr/share/icons/matefaenzagray + diff --git a/talimatname/genel/m/mate-icon-theme-faenza/talimat b/talimatname/genel/m/mate-icon-theme-faenza/talimat new file mode 100644 index 000000000..8eee7ae04 --- /dev/null +++ b/talimatname/genel/m/mate-icon-theme-faenza/talimat @@ -0,0 +1,19 @@ +# Tanım: MATE için Faenza simge teması +# URL: http://www.mate-desktop.org/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: mate-common +# Grup: mate + +isim=mate-icon-theme-faenza +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./autogen.sh + ./configure \ + --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/mate-icon-theme/mate-icon-theme.kur-kos b/talimatname/genel/m/mate-icon-theme/mate-icon-theme.kur-kos new file mode 100755 index 000000000..c583c7d85 --- /dev/null +++ b/talimatname/genel/m/mate-icon-theme/mate-icon-theme.kur-kos @@ -0,0 +1,3 @@ +/usr/bin/gtk-update-icon-cache -f -t /usr/share/icons/mate +/usr/bin/gtk-update-icon-cache -f -t /usr/share/icons/menta + diff --git a/talimatname/genel/m/mate-icon-theme/talimat b/talimatname/genel/m/mate-icon-theme/talimat new file mode 100644 index 000000000..d894e735e --- /dev/null +++ b/talimatname/genel/m/mate-icon-theme/talimat @@ -0,0 +1,19 @@ +# Tanım: MATE için simge teması +# URL: http://www.mate-desktop.org/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: icon-naming-utils intltool +# Grup: mate + +isim=mate-icon-theme +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum +./configure \ + --prefix=/usr + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/m/mate-indicator-applet/mate-indicator-applet.kur-kos b/talimatname/genel/m/mate-indicator-applet/mate-indicator-applet.kur-kos new file mode 100755 index 000000000..5078fa193 --- /dev/null +++ b/talimatname/genel/m/mate-indicator-applet/mate-indicator-applet.kur-kos @@ -0,0 +1 @@ +/usr/bin/gtk-update-icon-cache -f -t /usr/share/icons/hicolor diff --git a/talimatname/genel/m/mate-indicator-applet/talimat b/talimatname/genel/m/mate-indicator-applet/talimat new file mode 100644 index 000000000..25f084ba5 --- /dev/null +++ b/talimatname/genel/m/mate-indicator-applet/talimat @@ -0,0 +1,19 @@ +# Tanım: MATE panelindeki çeşitli uygulamalardan gelen bilgileri görüntülemek için küçük bir applet +# URL: http://www.mate-desktop.org/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: libindicator mate-panel +# Grup: mate + +isim=mate-indicator-applet +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum + ./configure --prefix=/usr \ +--libexecdir=/usr/lib/$isim + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/mate-media/mate-media.kur-kos b/talimatname/genel/m/mate-media/mate-media.kur-kos new file mode 100755 index 000000000..5dedec1b8 --- /dev/null +++ b/talimatname/genel/m/mate-media/mate-media.kur-kos @@ -0,0 +1 @@ +/usr/bin/update-desktop-database diff --git a/talimatname/genel/m/mate-media/talimat b/talimatname/genel/m/mate-media/talimat new file mode 100644 index 000000000..39e383cfb --- /dev/null +++ b/talimatname/genel/m/mate-media/talimat @@ -0,0 +1,21 @@ +# Tanım: MATE için medya araçları +# URL: http://www.mate-desktop.org/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: intltool libcanberra libmatemixer mate-desktop +# Grup: mate + +isim=mate-media +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib/$isim \ + --localstatedir=/var + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/mate-menus/talimat b/talimatname/genel/m/mate-menus/talimat new file mode 100644 index 000000000..5b1a904ef --- /dev/null +++ b/talimatname/genel/m/mate-menus/talimat @@ -0,0 +1,25 @@ +# Tanım: Freedesktop.org'dan Masaüstü Menüsü Teknik Özelliklerini uygulayan bir kütüphane +# URL: http://www.mate-desktop.org/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: glib gobject-introspection intltool python + +isim=mate-menus +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + PYTHON=/usr/bin/python2 ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --enable-python + + #https://bugzilla.gnome.org/show_bug.cgi?id=656231 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/m/mate-netbook/mate-netbook.kur-kos b/talimatname/genel/m/mate-netbook/mate-netbook.kur-kos new file mode 100644 index 000000000..1d319936d --- /dev/null +++ b/talimatname/genel/m/mate-netbook/mate-netbook.kur-kos @@ -0,0 +1 @@ +glib-compile-schemas /usr/share/glib-2.0/schemas/ diff --git a/talimatname/genel/m/mate-netbook/talimat b/talimatname/genel/m/mate-netbook/talimat new file mode 100644 index 000000000..d24a9e31f --- /dev/null +++ b/talimatname/genel/m/mate-netbook/talimat @@ -0,0 +1,20 @@ +# Tanım: Basit bir pencere yönetim aracı +# URL: http://www.mate-desktop.org/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: intltool libfakekey mate-panel +# Grup: mate + +isim=mate-netbook +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr \ + --libexec=/usr/lib/$isim \ + --sysconfdir=/etc + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/mate-notification-daemon/mate-notification-daemon.kur-kos b/talimatname/genel/m/mate-notification-daemon/mate-notification-daemon.kur-kos new file mode 100755 index 000000000..22fbaee6f --- /dev/null +++ b/talimatname/genel/m/mate-notification-daemon/mate-notification-daemon.kur-kos @@ -0,0 +1,5 @@ +/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas + +/usr/bin/gtk-update-icon-cache -f -t /usr/share/icons/hicolor + +/usr/bin/update-desktop-database diff --git a/talimatname/genel/m/mate-notification-daemon/talimat b/talimatname/genel/m/mate-notification-daemon/talimat new file mode 100644 index 000000000..407905e7b --- /dev/null +++ b/talimatname/genel/m/mate-notification-daemon/talimat @@ -0,0 +1,24 @@ +# Tanım: MATE için bildirim uygulaması +# URL: http://www.mate-desktop.org/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: dbus-glib libcanberra libwnck3 libnotify intltool +# Grup: mate + +isim=mate-notification-daemon +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr \ + --libexecdir=/usr/lib/$isim + + #https://bugzilla.gnome.org/show_bug.cgi?id=656231 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/m/mate-panel/mate-panel.kur-kos b/talimatname/genel/m/mate-panel/mate-panel.kur-kos new file mode 100755 index 000000000..22fbaee6f --- /dev/null +++ b/talimatname/genel/m/mate-panel/mate-panel.kur-kos @@ -0,0 +1,5 @@ +/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas + +/usr/bin/gtk-update-icon-cache -f -t /usr/share/icons/hicolor + +/usr/bin/update-desktop-database diff --git a/talimatname/genel/m/mate-panel/talimat b/talimatname/genel/m/mate-panel/talimat new file mode 100644 index 000000000..6e357ed2c --- /dev/null +++ b/talimatname/genel/m/mate-panel/talimat @@ -0,0 +1,28 @@ +# Tanım: MATE paneli +# URL: http://www.mate-desktop.org/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: dbus-glib libwnck3 libcanberra libmateweather xorg-libsm mate-menus mate-desktop intltool itstool gobject-introspection + +isim=mate-panel +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr \ + --libexecdir=/usr/lib/$isim \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --enable-introspection \ + --with-gtk=3.0 + + #https://bugzilla.gnome.org/show_bug.cgi?id=656231 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + + make + make DESTDIR=$PKG install +} + +# vim: set ts=2 et: diff --git a/talimatname/genel/m/mate-polkit/talimat b/talimatname/genel/m/mate-polkit/talimat new file mode 100644 index 000000000..2356b215d --- /dev/null +++ b/talimatname/genel/m/mate-polkit/talimat @@ -0,0 +1,27 @@ +# Tanım: MATE masaüstü için PolicyKit entegrasyonu +# URL: http://www.mate-desktop.org/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: gtk3 polkit accountsservice gobject-introspection intltool +# Grup: mate + +isim=mate-polkit +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr \ + --libexecdir=/usr/lib/$isim \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --enable-introspection + + #https://bugzilla.gnome.org/show_bug.cgi?id=656231 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/m/mate-power-manager/mate-power-manager.kur-kos b/talimatname/genel/m/mate-power-manager/mate-power-manager.kur-kos new file mode 100755 index 000000000..22fbaee6f --- /dev/null +++ b/talimatname/genel/m/mate-power-manager/mate-power-manager.kur-kos @@ -0,0 +1,5 @@ +/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas + +/usr/bin/gtk-update-icon-cache -f -t /usr/share/icons/hicolor + +/usr/bin/update-desktop-database diff --git a/talimatname/genel/m/mate-power-manager/talimat b/talimatname/genel/m/mate-power-manager/talimat new file mode 100644 index 000000000..0ce5997ef --- /dev/null +++ b/talimatname/genel/m/mate-power-manager/talimat @@ -0,0 +1,24 @@ +# Tanım: MATE masaüstü için güç yönetim aracı +# URL: http://www.mate-desktop.org/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: intltool itstool mate-panel dbus-glib libcanberra libgnome-keyring libnotify upower consolekit2 +# Grup: mate + +isim=mate-power-manager +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr \ + --libexecdir=/usr/lib/$isim \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --sbindir=/usr/bin \ + --enable-applets \ + --disable-strict + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/mate-screensaver-hacks/LICENSE b/talimatname/genel/m/mate-screensaver-hacks/LICENSE new file mode 100644 index 000000000..4f587b5a3 --- /dev/null +++ b/talimatname/genel/m/mate-screensaver-hacks/LICENSE @@ -0,0 +1,9 @@ +/* xscreensaver, Copyright (c) 1993-2006 Jamie Zawinski <jwz@jwz.org> + * Permission to use, copy, modify, distribute, and sell this software and its + * documentation for any purpose is hereby granted without fee, provided that + * the above copyright notice appear in all copies and that both that + * copyright notice and this permission notice appear in supporting + * documentation. No representations are made about the suitability of this + * software for any purpose. It is provided "as is" without express or + * implied warranty. + */ diff --git a/talimatname/genel/m/mate-screensaver-hacks/migrate-xscreensaver-config.sh b/talimatname/genel/m/mate-screensaver-hacks/migrate-xscreensaver-config.sh new file mode 100644 index 000000000..860a0d5dd --- /dev/null +++ b/talimatname/genel/m/mate-screensaver-hacks/migrate-xscreensaver-config.sh @@ -0,0 +1,34 @@ +#!/bin/sh + +DIST_BIN=`dirname "$0"` + +CMD=xsltproc +XSL=${DIST_BIN}/xscreensaver-config.xsl + +if test "x$1" = "x" -o "x$1" = "x-h" -o "x$1" = "x--help"; then + echo "usage: $0 [file] ..." + exit 1 +fi + +if [ ! -r ${XSL} ]; then + echo "Cannot find XSLT file" + exit 1 +fi + +FILES="$@" +for FILE in $FILES; do + echo "${FILE}" | grep ".xml$" > /dev/null + if [ $? -ne 0 ]; then + echo "Skipping non-xml file: ${FILE}" + continue + fi + + d=`dirname ${FILE}` + b=`basename ${FILE} .xml` + + outfile="${b}.desktop" + echo "Creating: ${outfile}" + ${CMD} -o ${outfile} ${XSL} ${FILE} +done + + exit 0 diff --git a/talimatname/genel/m/mate-screensaver-hacks/talimat b/talimatname/genel/m/mate-screensaver-hacks/talimat new file mode 100644 index 000000000..acf957efd --- /dev/null +++ b/talimatname/genel/m/mate-screensaver-hacks/talimat @@ -0,0 +1,18 @@ +# Tanım: MATE için xscreensaver'dan ekran koruyucularını etkinleştir. +# URL: http://www.jwz.org/xscreensaver/ +# Paketçi: yasarciv +# Gerekler: xscreensaver + +isim=mate-screensaver-hacks +surum=5.26 +devir=1 +kaynak=(migrate-xscreensaver-config.sh + xscreensaver-config.xsl LICENSE) + +derle() { +mkdir -p ${PKG}/usr/share/applications/screensavers/ + cd ${PKG}/usr/share/applications/screensavers/ + sh $SRC/migrate-xscreensaver-config.sh /usr/share/xscreensaver/config/*.xml + rm ${PKG}/usr/share/applications/screensavers/popsquares.desktop + install -D -m644 ${SRC}/LICENSE $PKG/usr/share/licenses/$isim/LICENSE +} diff --git a/talimatname/genel/m/mate-screensaver-hacks/xscreensaver-config.xsl b/talimatname/genel/m/mate-screensaver-hacks/xscreensaver-config.xsl new file mode 100644 index 000000000..039ffcdc9 --- /dev/null +++ b/talimatname/genel/m/mate-screensaver-hacks/xscreensaver-config.xsl @@ -0,0 +1,27 @@ +<?xml surum='1.0'?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + surum="1.0"> +<xsl:output method="text" indent="no" /> +<xsl:strip-space elements="*"/> + +<xsl:template match="screensaver"> +[Desktop Entry] +Encoding=UTF-8 +Name=<xsl:value-of select="@_label" /> +Comment=<xsl:value-of select="normalize-space(_description)" /> +<xsl:if test="count(command/@name) != 0"> +TryExec=<xsl:value-of select="normalize-space(command/@name)" /> +Exec=<xsl:value-of select="normalize-space(command/@name)" /><xsl:text> </xsl:text><xsl:value-of select="normalize-space(command/@arg)" /> +</xsl:if> +<xsl:if test="count(command/@name) = 0"> +TryExec=<xsl:value-of select="normalize-space(@name)" /> +Exec=<xsl:value-of select="normalize-space(@name)" /><xsl:text> </xsl:text><xsl:value-of select="normalize-space(command/@arg)" /> +</xsl:if> +StartupNotify=false +Terminal=false +Type=Application +Categories=Screensaver; +OnlyShowIn=MATE; +</xsl:template> + +</xsl:stylesheet> diff --git a/talimatname/genel/m/mate-screensaver/mate-screensaver.kur-kos b/talimatname/genel/m/mate-screensaver/mate-screensaver.kur-kos new file mode 100755 index 000000000..3b2f1e8c0 --- /dev/null +++ b/talimatname/genel/m/mate-screensaver/mate-screensaver.kur-kos @@ -0,0 +1,3 @@ +/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas + +/usr/bin/update-desktop-database diff --git a/talimatname/genel/m/mate-screensaver/talimat b/talimatname/genel/m/mate-screensaver/talimat new file mode 100644 index 000000000..e9b247c08 --- /dev/null +++ b/talimatname/genel/m/mate-screensaver/talimat @@ -0,0 +1,26 @@ +# Tanım: MATE için ekran koruyucu ve kilitleyici +# URL: http://www.mate-desktop.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: intltool libmatekbd libnotify xorg-libxscrnsaver mate-desktop mate-menus mate-session-manager +# Grup: mate + +isim=mate-screensaver +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr \ + --libexecdir=/usr/lib/$isim \ + --sysconfdir=/etc \ + --with-xscreensaverdir=/usr/share/xscreensaver/config \ + --with-xscreensaverhackdir=/usr/lib/xscreensaver \ + --with-mit-ext \ + --with-libnotify \ + --enable-locking \ + --without-console-kit + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/mate-sensors-applet/mate-sensors-applet.kur-kos b/talimatname/genel/m/mate-sensors-applet/mate-sensors-applet.kur-kos new file mode 100755 index 000000000..28c3e5d79 --- /dev/null +++ b/talimatname/genel/m/mate-sensors-applet/mate-sensors-applet.kur-kos @@ -0,0 +1,3 @@ +/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas + +/usr/bin/gtk-update-icon-cache -f -t /usr/share/icons/hicolor diff --git a/talimatname/genel/m/mate-sensors-applet/talimat b/talimatname/genel/m/mate-sensors-applet/talimat new file mode 100644 index 000000000..3e8bc0987 --- /dev/null +++ b/talimatname/genel/m/mate-sensors-applet/talimat @@ -0,0 +1,23 @@ +# Tanım: İşlemci sıcaklığı, fan hızı ve voltaj okumaları da dahil olmak üzere donanım sensörlerinden okumaları görüntülemek için kullanılan MATE Panel uygulaması +# URL: http://www.mate-desktop.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: docbook-xsl intltool itstool libatasmart libnotify lm-sensors mate-panel +# Grup: mate + +isim=mate-sensors-applet +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr \ + --libexecdir=/usr/lib/$isim + + #https://bugzilla.gnome.org/show_bug.cgi?id=656231 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/mate-session-manager/mate-session-manager.kur-kos b/talimatname/genel/m/mate-session-manager/mate-session-manager.kur-kos new file mode 100755 index 000000000..22fbaee6f --- /dev/null +++ b/talimatname/genel/m/mate-session-manager/mate-session-manager.kur-kos @@ -0,0 +1,5 @@ +/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas + +/usr/bin/gtk-update-icon-cache -f -t /usr/share/icons/hicolor + +/usr/bin/update-desktop-database diff --git a/talimatname/genel/m/mate-session-manager/talimat b/talimatname/genel/m/mate-session-manager/talimat new file mode 100644 index 000000000..dc646fb50 --- /dev/null +++ b/talimatname/genel/m/mate-session-manager/talimat @@ -0,0 +1,22 @@ +# Tanım: MATE oturum yönetici ve yapılandırma programı +# URL: http://www.mate-desktop.org/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: dbus-glib gtk3 xorg-libsm mate-desktop intltool xorg-xtrans gnome-keyring xdg-user-dirs + +isim=mate-session-manager +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr \ + --libexecdir=/usr/lib/$isim \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-upower + make + make DESTDIR=$PKG install + +} diff --git a/talimatname/genel/m/mate-settings-daemon/mate-settings-daemon.kur-kos b/talimatname/genel/m/mate-settings-daemon/mate-settings-daemon.kur-kos new file mode 100755 index 000000000..4ee9aecf5 --- /dev/null +++ b/talimatname/genel/m/mate-settings-daemon/mate-settings-daemon.kur-kos @@ -0,0 +1,6 @@ +/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas + +/usr/bin/gtk-update-icon-cache -f -t /usr/share/icons/hicolor + +/usr/bin/gtk-update-icon-cache -f -t /usr/share/icons/mate + diff --git a/talimatname/genel/m/mate-settings-daemon/talimat b/talimatname/genel/m/mate-settings-daemon/talimat new file mode 100644 index 000000000..390063195 --- /dev/null +++ b/talimatname/genel/m/mate-settings-daemon/talimat @@ -0,0 +1,25 @@ +# Tanım: MATE Ayarlar programı +# URL: http://www.mate-desktop.org/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: dbus-glib libcanberra libmatekbd libmatemixer libnotify mate-desktop nss polkit intltool + +isim=mate-settings-daemon +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr \ + --libexecdir=/usr/lib/$isim \ + --sysconfdir=/etc \ + --enable-polkit \ + --enable-pulse + + #https://bugzilla.gnome.org/show_bug.cgi?id=656231 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/mate-system-monitor/mate-system-monitor.kur-kos b/talimatname/genel/m/mate-system-monitor/mate-system-monitor.kur-kos new file mode 100755 index 000000000..3b2f1e8c0 --- /dev/null +++ b/talimatname/genel/m/mate-system-monitor/mate-system-monitor.kur-kos @@ -0,0 +1,3 @@ +/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas + +/usr/bin/update-desktop-database diff --git a/talimatname/genel/m/mate-system-monitor/talimat b/talimatname/genel/m/mate-system-monitor/talimat new file mode 100644 index 000000000..522ba2e76 --- /dev/null +++ b/talimatname/genel/m/mate-system-monitor/talimat @@ -0,0 +1,20 @@ +# Tanım: MATE için bir sistem monitörü +# URL: http://www.mate-desktop.org/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: intltool itstool gtkmm3 libgtop libwnck3 +# Grup: mate + +isim=mate-system-monitor +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr \ + --libexecdir=/usr/lib/$isim \ + --localstatedir=/var + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/mate-terminal/mate-terminal.kur-kos b/talimatname/genel/m/mate-terminal/mate-terminal.kur-kos new file mode 100755 index 000000000..3b2f1e8c0 --- /dev/null +++ b/talimatname/genel/m/mate-terminal/mate-terminal.kur-kos @@ -0,0 +1,3 @@ +/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas + +/usr/bin/update-desktop-database diff --git a/talimatname/genel/m/mate-terminal/talimat b/talimatname/genel/m/mate-terminal/talimat new file mode 100644 index 000000000..72bca7b29 --- /dev/null +++ b/talimatname/genel/m/mate-terminal/talimat @@ -0,0 +1,18 @@ +# Tanım: MATE terminal emülatorü +# URL: http://www.mate-desktop.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: intltool itstool xorg-libsm mate-desktop vte3 dconf +# Grup: mate + +isim=mate-terminal +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/mate-themes/mate-themes.kur-kos b/talimatname/genel/m/mate-themes/mate-themes.kur-kos new file mode 100644 index 000000000..0ebf352bf --- /dev/null +++ b/talimatname/genel/m/mate-themes/mate-themes.kur-kos @@ -0,0 +1,3 @@ +gtk-update-icon-cache -q -t -f /usr/share/icons/ContrastHigh +gtk-update-icon-cache -q -t -f /usr/share/icons/mate + diff --git a/talimatname/genel/m/mate-themes/talimat b/talimatname/genel/m/mate-themes/talimat new file mode 100644 index 000000000..610bd9120 --- /dev/null +++ b/talimatname/genel/m/mate-themes/talimat @@ -0,0 +1,18 @@ +# Tanım: MATE temaları +# URL: http://mate-desktop.org +# Paketçi: milisarge yasarciv +# Gerekler: gtk2 intltool gtk-engines gtk-engine-murrine mate-icon-theme + + +isim=mate-themes +surum=3.22.12 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/themes/${surum%.*}.tar.xz) + +derle() { + cd ${isim}-${surum} + ./configure \ + --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/mate-user-guide/talimat b/talimatname/genel/m/mate-user-guide/talimat new file mode 100644 index 000000000..83300f2bd --- /dev/null +++ b/talimatname/genel/m/mate-user-guide/talimat @@ -0,0 +1,20 @@ +# Tanım: MATE Kullanım Kılavuzu +# URL: http://www.mate-desktop.org/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: yelp itstool intltool +# Grup: mate + +isim=mate-user-guide +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr + make + make DESTDIR=$PKG install + +} + diff --git a/talimatname/genel/m/mate-user-share/mate-user-share.kur-kos b/talimatname/genel/m/mate-user-share/mate-user-share.kur-kos new file mode 100644 index 000000000..a96c64f40 --- /dev/null +++ b/talimatname/genel/m/mate-user-share/mate-user-share.kur-kos @@ -0,0 +1,3 @@ +glib-compile-schemas /usr/share/glib-2.0/schemas/ +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor +update-desktop-database -q diff --git a/talimatname/genel/m/mate-user-share/talimat b/talimatname/genel/m/mate-user-share/talimat new file mode 100644 index 000000000..26c9b92f7 --- /dev/null +++ b/talimatname/genel/m/mate-user-share/talimat @@ -0,0 +1,25 @@ +# Tanım: MATE için WebDAV aracılığıyla kullanıcı düzeyinde ortak dosya paylaşımı +# URL: http://www.mate-desktop.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: caja dbus-glib intltool itstool libcanberra libnotify gtk3 mod-dnssd +# Grup: mate + +isim=mate-user-share +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + PYTHON=/usr/bin/python2 ./configure \ + --prefix=/usr \ + --libexec=/usr/lib/$isim \ + --sysconfdir=/etc \ + --disable-bluetooth + + #https://bugzilla.gnome.org/show_bug.cgi?id=656231 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/mate-utils/mate-utils.kur-kos b/talimatname/genel/m/mate-utils/mate-utils.kur-kos new file mode 100755 index 000000000..22fbaee6f --- /dev/null +++ b/talimatname/genel/m/mate-utils/mate-utils.kur-kos @@ -0,0 +1,5 @@ +/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas + +/usr/bin/gtk-update-icon-cache -f -t /usr/share/icons/hicolor + +/usr/bin/update-desktop-database diff --git a/talimatname/genel/m/mate-utils/talimat b/talimatname/genel/m/mate-utils/talimat new file mode 100644 index 000000000..edf5150f6 --- /dev/null +++ b/talimatname/genel/m/mate-utils/talimat @@ -0,0 +1,26 @@ +# Tanım: Disk kullanımı, günlükleri ve yazı tiplerini görüntüleme, ekran görüntüsü alma, sözlükleri yönetme ve dosyaları arama için ortak MATE yardımcı programları +# URL: http://www.mate-desktop.org/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: intltool itstool mate-panel mate-desktop libcanberra libgtop xorg-libsm +# Grup: mate + +isim=mate-utils +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr \ + --libexecdir=/usr/lib/$isim \ + --sysconfdir=/etc \ + --disable-maintainer-flags + + #https://bugzilla.gnome.org/show_bug.cgi?id=656231 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + + make + make DESTDIR=$PKG install + +} diff --git a/talimatname/genel/m/mate/talimat b/talimatname/genel/m/mate/talimat new file mode 100644 index 000000000..7a6779d4e --- /dev/null +++ b/talimatname/genel/m/mate/talimat @@ -0,0 +1,15 @@ +# Tanım: mate sistem +# URL: sistem +# Paketçi: yasarciv67 +# Gerekler: atril caja caja-extensions engrampa eom libmatekbd libmatemixer libmateweather libpeas marco mate-applets mate-backgrounds mate-calc mate-common mate-control-center mate-desktop mate-icon-theme mate-icon-theme-faenza mate-indicator-applet mate-media mate-menus mate-netbook mate-notification-daemon mate-panel mate-polkit mate-power-manager mate-screensaver mate-sensors-applet mate-session-manager mate-settings-daemon mate-system-monitor mate-terminal mate-themes mate-user-guide mate-user-share mate-utils mozo pluma python-caja + +isim=mate +surum=1 +devir=1 + +kaynak=(talimat) + +derle() { +mkdir $PKG/tmp +echo "mate sistem" > $PKG/tmp/masa +} diff --git a/talimatname/genel/m/maven/maven.sh b/talimatname/genel/m/maven/maven.sh new file mode 100644 index 000000000..7fc96502b --- /dev/null +++ b/talimatname/genel/m/maven/maven.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +export MAVEN_OPTS=-Xmx512m +#export M2_HOME=/opt/maven +#export PATH=$PATH:$M2_HOME/bin diff --git a/talimatname/genel/m/maven/talimat b/talimatname/genel/m/maven/talimat new file mode 100644 index 000000000..cc30f6f50 --- /dev/null +++ b/talimatname/genel/m/maven/talimat @@ -0,0 +1,36 @@ +# Tanım: Bir Java proje yönetimi ve proje anlama aracı +# URL: http://maven.apache.org +# Paketçi: milisarge +# Gerekler: openjdk +# Grup: geliştirme + +isim=maven +surum=3.5.2 +devir=1 +kaynak=(http://apache-mirror.rbc.ru/pub/apache/maven/maven-3/$surum/source/apache-maven-$surum-src.tar.gz + maven.sh) + + +derle() { + + mkdir $SRC/maven-bin + if [ ! -f $DERLEME_KAYNAKDIZIN/apache-maven-$surum-bin.tar.gz ];then + wget http://apache-mirror.rbc.ru/pub/apache/maven/maven-3/3.5.2/binaries/apache-maven-3.5.2-bin.tar.gz \ + -P $DERLEME_KAYNAKDIZIN/ + fi + [ -f $DERLEME_KAYNAKDIZIN/apache-maven-$surum-bin.tar.gz ] && tar xf $DERLEME_KAYNAKDIZIN/apache-maven-$surum-bin.tar.gz \ + -C $SRC/maven-bin + cd "$SRC"/apache-maven-$surum + + export PATH=${PATH}:/opt/jdk/bin + + mkdir -p "$SRC"/repo + mkdir -p "$PKG"/opt/maven + mkdir -p "$PKG"/usr/bin + + $SRC/maven-bin/apache-maven-3.5.2/bin/mvn package -Dmaven.repo.local="$SRC"/repo -DdistributionTargetDir="$PKG"/opt/maven + + install -D -m 755 "$SRC"/maven.sh "$PKG"/etc/profile.d/maven.sh + ln -s /opt/maven/bin/mvn "$PKG"/usr/bin/mvn + ln -s /opt/maven/bin/mvnDebug "$PKG"/usr/bin/mvnDebug +} diff --git a/talimatname/genel/m/mbedtls/talimat b/talimatname/genel/m/mbedtls/talimat new file mode 100644 index 000000000..99120e82b --- /dev/null +++ b/talimatname/genel/m/mbedtls/talimat @@ -0,0 +1,22 @@ +# Tanım: Gömülü sistemler için şifreleme kütüphanesi (eskiden PolarSSL olarak bilinir). +# URL: https://tls.mbed.org +# Paketçi: milisarge +# Gerekler: + +isim=mbedtls +surum=2.3.0 +devir=1 + +kaynak=(https://tls.mbed.org/download/mbedtls-$surum-gpl.tgz) + +derle() { + cd $isim-$surum + sed -i 's|//\(#define MBEDTLS_THREADING_C\)|\1|' include/mbedtls/config.h + sed -i 's|//\(#define MBEDTLS_THREADING_PTHREAD\)|\1|' include/mbedtls/config.h + + # FS#49914 (2.3.0-2) + sed -i 's|<time.h>|"platform.h"|' include/mbedtls/ssl.h + LDFLAGS+=" -I../include " make SHARED=1 no_test + make SHARED=1 check + make DESTDIR=$PKG/usr install +} diff --git a/talimatname/genel/m/mc/talimat b/talimatname/genel/m/mc/talimat new file mode 100644 index 000000000..15a537569 --- /dev/null +++ b/talimatname/genel/m/mc/talimat @@ -0,0 +1,20 @@ +# Tanım: Midnight Commander, Norton Commander'ı öykünen metin tabanlı bir dosya yöneticisi/kabuğu +# URL: https://www.midnight-commander.org/ +# Paketçi: milisarge@gmail.com +# Gerekler: pcre glib gpm + +isim=mc +surum=4.8.15 +devir=1 + +kaynak=(https://www.midnight-commander.org/downloads/$isim-$surum.tar.xz) +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--enable-charset \ +--disable-static \ +--sysconfdir=/etc \ +--with-screen=ncurses +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/mdadm/talimat b/talimatname/genel/m/mdadm/talimat new file mode 100644 index 000000000..5ac372acd --- /dev/null +++ b/talimatname/genel/m/mdadm/talimat @@ -0,0 +1,18 @@ +# Tanım: The mdadm package contains administration tools for software RAID. +# URL: http://www.cse.unsw.edu.au/~neilb/source/mdadm/ +# Paketçi: milisarge +# Gerekler: + +isim=mdadm +surum=3.4 +devir=1 + +kaynak=(http://www.kernel.org/pub/linux/utils/raid/$isim/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +sed -i 's/Wall -Werror/Wall/' Makefile +make +make INSTALL=/usr/bin/install DESTDIR=$PKG install +rm -r $PKG/lib +} diff --git a/talimatname/genel/m/mdds/talimat b/talimatname/genel/m/mdds/talimat new file mode 100644 index 000000000..d878c2a98 --- /dev/null +++ b/talimatname/genel/m/mdds/talimat @@ -0,0 +1,17 @@ +# Tanım: Çok boyutlu veri yapıları ve indeksleme algoritmalarının bir koleksiyonu +# URL: https://gitlab.com/mdds/mdds +# Paketçi: Cihan Alkan +# Gerekler: boost + +isim=mdds +surum=1.2.3 +devir=1 + +kaynak=(https://kohei.us/files/mdds/src/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + ./autogen.sh --prefix=/usr + make DESTDIR=$PKG install + install -Dm644 LICENSE "$PKG/usr/share/licenses/$isim/LICENSE" +} diff --git a/talimatname/genel/m/mdm/defaults.conf b/talimatname/genel/m/mdm/defaults.conf new file mode 100644 index 000000000..fb6bd308a --- /dev/null +++ b/talimatname/genel/m/mdm/defaults.conf @@ -0,0 +1,748 @@ +# MDM System Defaults Configuration file. +# +# This file should not be updated by hand. Since GDM 2.13.0.4, configuration +# choices in the MDM Custom Configuration file will override the default +# values specified in this file. This MDM System Defaults Configuration file +# may be overwritten on upgrade, so to ensure that your configuration choices +# are not lost, please make sure that your changes are made only the MDM Custom +# Configuration file. The MDM Custom Configuration file is found at the +# following location: +# +# /etc/mdm/custom.conf +# +# If you were using an older version of MDM, your system may have the the older +# mdm.conf configuration file on the system. If so, then this file is used +# instead of the MDM Custom Configuration file for backwards support. If you +# make changes to the MDM Custom Configuration file and they seem to not be +# taking effect, this is likely the problem. Consider migrating your +# configuration to the new configuration file and removing the mdm.conf file. +# +# You can use the mdmsetup program to graphically edit the mdm.conf-custom +# file. Note that mdmsetup does not support every option in this file, just +# the most common ones that users want to change. If you feel that mdmsetup +# should support additional configuration options, please file a bug report at +# http://bugzilla.gnome.org/. +# +# If you hand-edit the MDM configuration, you should run the following command +# to get the MDM daemon to recognize the change. Any running MDM GUI programs +# will also be notified to update with the new configuration. +# +# mdmflexiserver --command="UPDATE_CONFIG <configuration key>" +# +# e.g, the "Enable" key in the "[debug]" section would be "debug/Enable". +# +# You can also run mdm-restart or mdm-safe-restart to cause MDM to restart and +# re-read the new configuration settings. You can also restart MDM by sending +# a HUP or USR1 signal to the daemon. HUP behaves like mdm-restart and causes +# any user session started by MDM to exit immediately while USR1 behaves like +# mdm-safe-restart and will wait until all users log out before restarting MDM. +# +# For full reference documentation see the GNOME help browser under +# GNOME|System category. You can also find the docs in HTML form on +# http://www.gnome.org/projects/mdm/ +# +# NOTE: Some values are commented out, but show their default values. Lines +# that begin with "#" are considered comments. +# +# Have fun! + +[daemon] +# Automatic login, if true the first attached screen will automatically logged +# in as user as set with AutomaticLogin key. +AutomaticLoginEnable=false +AutomaticLogin= + +# Timed login, useful for kiosks. Log in a certain user after a certain amount +# of time. +TimedLoginEnable=false +TimedLogin= +TimedLoginDelay=30 + +# The MDM configuration program that is run from the login screen, you should +# probably leave this alone. +#Configurator=/usr/sbin/mdmsetup --disable-sound --disable-crash-dialog + +# The chooser program. Must output the chosen host on stdout, probably you +# should leave this alone. +#Chooser=/usr/lib/mdm/mdmchooser + +# The greeter for attached (non-xdmcp) logins. Change mdmlogin to mdmgreeter +# to get the new graphical greeter. +#Greeter=/usr/lib/mdm/mdmlogin + +# The greeter for xdmcp logins, usually you want a less graphically intensive +# greeter here so it's better to leave this with mdmlogin +#RemoteGreeter=/usr/lib/mdm/mdmlogin + +# Launch the greeter with an additional list of colon separated GTK+ modules. +# This is useful for enabling additional feature support e.g. GNOME +# accessibility framework. Only "trusted" modules should be allowed to minimize +# security holes +AddGtkModules=true +# By default, these are the accessibility modules. +GtkModulesList=gail:atk-bridge:/usr/lib/gtk-2.0/modules/libdwellmouselistener:/usr/lib/gtk-2.0/modules/libkeymouselistener + +# Default path to set. The profile scripts will likely override this value. +# This value will be overridden with the value from /etc/default/login if it +# contains "ROOT=<pathvalue>". +#DefaultPath=/bin:/usr/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/local/bin:/opt/X11R6/bin +# Default path for root. The profile scripts will likely override this value. +# This value will be overridden with the value from /etc/default/login if it +# contains "SUROOT=<pathvalue>". +#RootPath=/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/local/bin:/opt/X11R6/bin + +# If you are having trouble with using a single server for a long time and want +# MDM to kill/restart the server, turn this on. On Solaris, this value is +# always true and this configuration setting is ignored. +AlwaysRestartServer=true + +# User and group used for running MDM GUI applications. By default this is set +# to user "mdm" and group "mdm". This user/group should have very limited +# permissions and access to only the mdm directories and files. +User=mdm +Group=mdm + +# To try to kill all clients started at greeter time or in the Init script. +# does not always work, only if those clients have a window of their own. +#KillInitClients=true +LogDir=/var/log/mdm + +# Note that a post login script is run before a PreSession script. It is run +# after the login is successful and before any setup is run on behalf of the +# user. +PostLoginScriptDir=/etc/mdm/PostLogin/ +PreSessionScriptDir=/etc/mdm/PreSession/ +PostSessionScriptDir=/etc/mdm/PostSession/ +DisplayInitDir=/etc/mdm/Init +# Distributions: If you have some script that runs an X server in say VGA +# mode, allowing a login, could you please send it to me? +#FailsafeXServer= +# if X keeps crashing on us we run this script. The default one does a bunch +# of cool stuff to figure out what to tell the user and such and can run an X +# configuration program. +XKeepsCrashing=/etc/mdm/XKeepsCrashing + +# System command support. +# +# Reboot, Halt and suspend commands, you can add different commands separated +# by a semicolon. MDM will use the first one it can find. +RebootCommand=/sbin/reboot;/sbin/shutdown -r now +HaltCommand=/sbin/poweroff;/sbin/shutdown -h now +SuspendCommand=/usr/sbin/pm-suspend + +# The following options specify how MDM system commands are supported. +# +# Specify which actions are displayed in the greeter. Valid values are HALT, +# REBOOT, SUSPEND, and CUSTOM_CMD separated by semicolons. +SystemCommandsInMenu=HALT;REBOOT;SUSPEND;CUSTOM_CMD + +# Specify which actions are supported by QUERY_LOGOUT_ACTION, SET_LOGOUT_ACTION +# and SET_SAFE_LOGOUT_ACTION. Valid values are HALT, REBOOT, SUSPEND, and +# CUSTOM_CMD separated by semicolons. +AllowLogoutActions=HALT;REBOOT;SUSPEND;CUSTOM_CMD + +# This feature is only functional if MDM is compiled with RBAC (Role Based +# Access Control) support. +# Specify the RBAC key used to determine if the user has permission to use +# the action via QUERY_LOGOUT_ACTION, SET_LOGOUT_ACTION and +# SET_SAFE_LOGOUT_ACTION. The MDM GUI will only display the action if the +# "mdm" user has RBAC permissions to use the action. RBAC keys for multiple +# actions can be specified by separating them by semicolons. The format for +# each is "Action:RBAC key". If an action is not specified, it is assumed +# all users have permission for this action. For example: +# HALT:key.for.halt,REBOOT:key.for.reboot,[...] +RBACSystemCommandKeys= + +# Probably should not touch the below this is the standard setup. +ServAuthDir=/var/lib/mdm +# This is our standard startup script. A bit different from a normal X +# session, but it shares a lot of stuff with that. See the provided default +# for more information. +BaseXsession=/etc/mdm/Xsession +# This is a directory where .desktop files describing the sessions live. It is +# really a PATH style variable since 2.4.4.2 to allow actual interoperability +# with KDM. Note that <dmconfdir>/Sessions is there for backwards +# compatibility reasons with 2.4.4.x. +#SessionDesktopDir=/etc/X11/sessions/:/etc/dm/Sessions/:/usr/share/mdm/BuiltInSessions/:/usr/share/xsessions/ +# This is the default .desktop session. One of the ones in SessionDesktopDir +#DefaultSession=gnome.desktop +# Better leave this blank and HOME will be used. You can use syntax ~/ below +# to indicate home directory of the user. You can also set this to something +# like /tmp if you don't want the authorizations to be in home directories. +# This is useful if you have NFS mounted home directories. Note that if this +# is the home directory the UserAuthFBDir will still be used in case the home +# directory is NFS, see security/NeverPlaceCookiesOnNFS to override this +# behavior. +UserAuthDir= +# Fallback directory for writing authorization file if user's home directory +# is not writable. +UserAuthFBDir=/tmp +UserAuthFile=.Xauthority +# The X server to use if we can't figure out what else to run. +StandardXServer=/usr/bin/Xorg +# The maximum number of flexible X servers to run. +#FlexibleXServers=5 +# And after how many minutes should we reap the flexible server if there is no +# activity and no one logged on. Set to 0 to turn off the reaping. Does not +# affect nested flexiservers. +#FlexiReapDelayMinutes=5 + +# The X nest command. +# Examples of valid commands (assuming installed to /usr/X11/bin: +# Xorg Xnest: /usr/X11/bin/Xnest -audit 0 -name Xnest +# Xsun Xnest: /usr/openwin/bin/Xnest -audit 0 -name Xnest -pn +# Xephyr: /usr/X11/bin/Xephyr -audit 0 +Xnest=/usr/bin/Xephyr -audit 0 +# Xsun Xnest does not support font paths (passed into Xnest -fp argument) +# that include the ":unscaled" suffix after a path name. Setting this to +# false will strip any ":unscaled" suffix from the font path. If not +# using this Xnest, the value should be true. +XnestUnscaledFontPath=true + +# Automatic VT allocation. Right now only works on Linux. This way we force +# X to use specific vts. Turn VTAllocation to false if this is causing +# problems. +#FirstVT=7 +#VTAllocation=true +# Should double login be treated with a warning (and possibility to change VT's +# on Linux and FreeBSD systems for console logins) +#DoubleLoginWarning=true +# Should a second login always resume the current session and switch VT's on +# Linux and FreeBSD systems for console logins +#AlwaysLoginCurrentSession=true + +# If true then the last login information is printed to the user before being +# prompted for password. While this gives away some info on what users are on +# a system, it on the other hand should give the user an idea of when they +# logged in and if it doesn't seem kosher to them, they can just abort the +# login and contact the sysadmin (avoids running malicious startup scripts). +#DisplayLastLogin=false + +# Program used to play sounds. Should not require any 'daemon' or anything +# like that as it will be run when no one is logged in yet. +#SoundProgram=/usr/bin/play + +# These are the languages that the console cannot handle because of font +# issues. Here we mean the text console, not X. This is only used when there +# are errors to report and we cannot start X. +# This is the default: +#ConsoleCannotHandle=am,ar,az,bn,el,fa,gu,hi,ja,ko,ml,mr,pa,ta,zh + +# This determines whether MDM will honor requests DYNAMIC requests from the +# mdmdynamic command. +#DynamicXServers=false + +# This determines whether MDM will send notifications to the console. +#ConsoleNotify=true + +# How long mdm should wait before it assumes a started Xserver is defunct and +# kills it. 10 seconds should be long enough for X, but Xgl may need 20 or 25. +MdmXserverTimeout=10 + +[security] +# Allow root to login. It makes sense to turn this off for kiosk use, when +# you want to minimize the possibility of break in. +AllowRoot=true +# Allow login as root via XDMCP. This value will be overridden and set to +# false if the /etc/default/login file exists and contains +# "CONSOLE=/dev/login", and set to true if the /etc/default/login file exists +# and contains any other value or no value for CONSOLE. +AllowRemoteRoot=false +# This will allow remote timed login. +AllowRemoteAutoLogin=false +# 0 is the most restrictive, 1 allows group write permissions, 2 allows all +# write permissions. +RelaxPermissions=0 +# Check if directories are owned by logon user. Set to false, if you have, for +# example, home directories owned by some other user. +CheckDirOwner=true +# If your HOME is managed by automounter, set to true +SupportAutomount=false +# Number of seconds to wait after a failed login +#RetryDelay=1 +# Maximum size of a file we wish to read. This makes it hard for a user to DoS +# us by using a large file. +#UserMaxFile=65536 +# If true this will basically append -nolisten tcp to every X command line, a +# good default to have (why is this a "negative" setting? because if it is +# false, you could still not allow it by setting command line of any particular +# server). It's probably better to ship with this on since most users will not +# need this and it's more of a security risk then anything else. +# Note: Anytime we find a -query or -indirect on the command line we do not add +# a "-nolisten tcp", as then the query just wouldn't work, so this setting only +# affects truly attached sessions. +#DisallowTCP=true +# By default never place cookies if we "detect" NFS. We detect NFS by +# detecting "root-squashing". It seems bad practice to place cookies on things +# that go over the network by default and thus we do not do it by default. +# Sometimes you can however use safe remote filesystems where this is OK and +# you may want to have the cookie in your home directory. +#NeverPlaceCookiesOnNFS=true +# Will cause PAM_DISALLOW_NULL_AUTHTOK to be passed as a flag to +# pam_authenticate and pam_acct_mgmt, disallowing NULL password. This setting +# will only take effect if PAM is being used by MDM. This value will be +# overridden with the value from /etc/default/login if it contains +# "PASSREQ=[YES|NO]" +#PasswordRequired=false +# Specifies the PAM Stack to use, "mdm" by default. +PamStack=mdm +# MDM allows configuration of how ut_line is set when it does utmp/wtmp and +# audit processing. If VT is being used, then ut_line will be set to the +# device associated with the VT. If the console is attached and has a device +# name specified in the [servers] section, then this value will be used. +# Otherwise the value is defaulted to the value specified in UtmpLineAttached +# for attached displays and UtmpLineRemote for remote displays. The value +# can be left empty which means that ut_line will be set to an empty value +# (if not VT and no value specified in the [servers] section. The values +# can contain "%d" which is translated to the DISPLAY value or %h which +# is translated to the hostname. The values for both keys must begin with +# "/dev/". +UtmpLineAttached=/dev/console +UtmpLineRemote= +# If true and the specified UtmpLineAttached or UtmpLineRemote does not exist, +# then create a pseudo-device filename that will be touched when the utmp +# record is updated. Creating such a psuedo-device ensures that programs +# that stat the utmp device associated with ut_line such as finger, last, +# etc. work in a reasonable way. +UtmpPseudoDevice=false + +# XDMCP is the protocol that allows remote login. If you want to log into MDM +# remotely (I'd never turn this on on open network, use ssh for such remote +# usage). You can then run X with -query <thishost> to log in, or +# -indirect <thishost> to run a chooser. Look for the 'Terminal' server type +# at the bottom of this config file. +[xdmcp] +# Distributions: Ship with this off. It is never a safe thing to leave out on +# the net. Setting up /etc/hosts.allow and /etc/hosts.deny to only allow local +# access is another alternative but not the safest. Firewalling port 177 is +# the safest if you wish to have xdmcp on. Read the manual for more notes on +# the security of XDMCP. +Enable=false +# Honor indirect queries, we run a chooser for these, and then redirect the +# user to the chosen host. Otherwise we just log the user in locally. +#HonorIndirect=true +# Maximum pending requests. +#MaxPending=4 +#MaxPendingIndirect=4 +# Maximum open XDMCP sessions at any point in time. +#MaxSessions=16 +# Maximum wait times. +#MaxWait=15 +#MaxWaitIndirect=15 +# How many times can a person log in from a single host. Usually better to +# keep low to fend off DoS attacks by running many logins from a single host. +# This is now set at 2 since if the server crashes then MDM doesn't know for +# some time and wouldn't allow another session. +#DisplaysPerHost=2 +# The number of seconds after which a non-responsive session is logged off. +# Better keep this low. +#PingIntervalSeconds=15 +# The port. 177 is the standard port so better keep it that way. +#Port=177 +# Willing script, none is shipped and by default we'll send hostname system id. +# But if you supply something here, the output of this script will be sent as +# status of this host so that the chooser can display it. You could for +# example send load, or mail details for some user, or some such. +#Willing=/etc/mdm/Xwilling + +[gui] +# The specific gtkrc file we use. It should be the full path to the gtkrc that +# we need. Unless you need a specific gtkrc that doesn't correspond to a +# specific theme, then just use the GtkTheme key. +#GtkRC=/usr/share/themes/Default/gtk-2.0/gtkrc + +# The GTK+ theme to use for the GUI. +GtkTheme=BlackMATE +# If to allow changing the GTK+ (widget) theme from the greeter. Currently +# this only affects the standard greeter as the graphical greeter does not yet +# have this ability. +AllowGtkThemeChange=true +# Comma separated list of themes to allow. These must be the names of the +# themes installed in the standard locations for gtk themes. You can also +# specify 'all' to allow all installed themes. These should be just the +# basenames of the themes such as 'Thinice' or 'LowContrast'. +GtkThemesToAllow=all + +# Maximum size of an icon, larger icons are scaled down. +#MaxIconWidth=128 +#MaxIconHeight=128 + +[greeter] +# The following options for setting titlebar and setting window position are +# only useful for the standard login (mdmlogin) and are not used by the +# themed login (mdmgreeter). +# +# The standard login has a title bar that the user can move. +#TitleBar=true +# Don't allow user to move the standard login window. Only makes sense if +# TitleBar is on. +#LockPosition=false +# Set a position for the standard login window rather then just centering the +# window. If you enter negative values for the position it is taken as an +# offset from the right or bottom edge. +#SetPosition=false +#PositionX=0 +#PositionY=0 + +# Enable the Face browser. Note that the Browser key is only used by the +# standard login (mdmlogin) program. The Face Browser is enabled in +# the Graphical greeter by selecting a theme that includes the Face +# Browser, such as happygnome-list. The other configuration values that +# affect the Face Browser (MinimalUID, DefaultFace, Include, Exclude, +# IncludeAll, GlobalFaceDir) are used by both the Standard and Themed +# greeter. +Browser=true +# The default picture in the browser. +DefaultFace=/usr/share/pixmaps/nobody.png +# User ID's less than the MinimalUID value will not be included in the face +# browser or in the mdmselection list for Automatic/Timed login. They will not +# be displayed regardless of the settings for Include and Exclude. +MinimalUID=100 +# Users listed in Include will be included in the face browser and in the +# mdmsetup selection list for Automatic/Timed login. Users should be separated +# by commas. +Include=users +# Users listed in Exclude are excluded from the face browser and from the +# mdmsetup selection list for Automatic/Timed login. Excluded users will still +# be able to log in, but will have to type their username. Users should be +# separated by commas. +Exclude=bin,daemon,adm,lp,sync,shutdown,halt,mail,news,uucp,operator,nobody,mdm,postgres,pvm,rpm,nfsnobody,pcap +# By default, an empty include list means display no users. By setting +# IncludeAll to true, the password file will be scanned and all users will be +# displayed except users excluded via the Exclude setting and user ID's less +# than MinimalUID. Scanning the password file can be slow on systems with +# large numbers of users and this feature should not be used in such +# environments. The setting of IncludeAll does nothing if Include is set to a +# non-empty value. +IncludeAll=true +# If user or user.png exists in this dir it will be used as his picture. +GlobalFaceDir=/usr/share/pixmaps/faces/ + +# File which contains the locale we show to the user. Likely you want to use +# the one shipped with MDM and edit it. It is not a standard locale.alias +# file, although MDM will be able to read a standard locale.alias file as well. +#LocaleFile=/etc/mdm/locale.alias +# Logo shown in the standard greeter. +#Logo=/usr/share/pixmaps/mdm-foot-logo.png +# Logo shown on file chooser button in mdmsetup (do not modify this value). +#ChooserButtonLogo=/usr/share/pixmaps/mdm-foot-logo.png +# The standard greeter should shake if a user entered the wrong username or +# password. Kind of cool looking +#Quiver=true + +# The Actions menu (formerly system menu) is shown in the greeter, this is the +# menu that contains reboot, shutdown, suspend, config and chooser. None of +# these is available if this is off. They can be turned off individually +# however. +SystemMenu=true +# Configuration is available from the system menu of the greeter. +ConfigAvailable=true +# Should the chooser button be shown. If this is shown, MDM can drop into +# chooser mode which will run the xdmcp chooser locally and allow the user to +# connect to some remote host. Local XDMCP does not need to be enabled, +# however. +ChooserButton=true + +# Welcome is for all console logins and RemoteWelcome is for remote logins +# (through XDMCP). +# DefaultWelcome and DefaultRemoteWelcome set the string for Welcome to +# "Welcome" and for DefaultWelcome to "Welcome to %n", and properly translate +# the message to the appropriate language. Note that %n gets translated to the +# hostname of the machine. These default values can be overridden by setting +# DefaultWelcome and/or DefaultRemoteWelcome to false, and setting the Welcome +# and DefaultWelcome values as desired. Just make sure the strings are in +# utf-8 Note to distributors, if you wish to have a different Welcome string +# and wish to have this translated you can have entries such as +# "Welcome[cs]=Vitejte na %n". +DefaultWelcome=true +DefaultRemoteWelcome=true +#Welcome=Welcome +#RemoteWelcome=Welcome to %n + +# Xinerama screen we use to display the greeter on. Not for true multihead, +# currently only works for Xinerama. +XineramaScreen=0 +# Background settings for the standard greeter: +# Type can be 0=None, 1=Image & Color, 2=Color, 3=Image +BackgroundType=1 +BackgroundImage=/usr/share/mdm/themes/resim-1.jpg +#BackgroundScaleToFit=true +# The Standard greeter (mdmlogin) uses BackgroundColor as the background +# color, while the themed greeter (mdmgreeter) uses GraphicalThemedColor +# as the background color. +BackgroundColor=#76848F +GraphicalThemedColor=#76848F +# XDMCP session should only get a color, this is the sanest setting since you +# don't want to take up too much bandwidth +#BackgroundRemoteOnlyColor=true + +# Program to run to draw the background in the standard greeter. Perhaps +# something like an xscreensaver hack or some such. +#BackgroundProgram= +# If this is true then the background program is run always, otherwise it is +# only run when the BackgroundType is 0 (None). +#RunBackgroundProgramAlways=false +# Delay before starting background program +#BackgroundProgramInitialDelay=30 +# Should the background program be restarted if it is exited. +#RestartBackgroundProgram=true +# Delay before restarting background program +#BackgroundProgramRestartDelay=30 + +# Show the Failsafe sessions. These are much MUCH nicer (focus for xterm for +# example) and more failsafe then those supplied by scripts so distros should +# use this rather then just running an xterm from a script. +ShowGnomeFailsafeSession=true +ShowXtermFailsafeSession=true +# Normally there is a session type called 'Last' that is shown which refers to +# the last session the user used. If off, we will be in 'switchdesk' mode +# where the session saving stuff is disabled in MDM +ShowLastSession=true +# Always use 24 hour clock no matter what the locale. +#Use24Clock=auto +# Use circles in the password field. Looks kind of cool actually, but only +# works with certain fonts. +UseCirclesInEntry=true +# Do not show any visible feedback in the password field. This is standard for +# instance in console, xdm and ssh. +#UseInvisibleInEntry=false + +# These two keys are for the themed greeter (mdmgreeter). Circles is the +# standard shipped theme. If you want MDM to select a random theme from a +# list then provide a list that is delimited by /: to the GraphicalThemes +# key and set GraphicalThemeRand to true. Otherwise use GraphicalTheme +# and specify just one theme. +#GraphicalTheme=circles +#GraphicalThemes=circles/:happygnome +GraphicalThemeDir=/usr/share/mdm/themes/ +GraphicalThemeRand=false + +# If InfoMsgFile points to a file, the greeter will display the contents of the +# file in a modal dialog box before the user is allowed to log in. +#InfoMsgFile= +# If InfoMsgFile is present then InfoMsgFont can be used to specify the font to +# be used when displaying the contents of the file. +#InfoMsgFont=Sans 24 + +# If SoundOnLogin is true, then the greeter will beep when login is ready for +# user input. If SoundOnLogin is a file and the greeter finds the 'play' +# executable (see daemon/SoundProgram) it will play that file instead of just +# beeping. +#SoundOnLogin=true +#SoundOnLoginFile= +# If SoundOnLoginSuccess, then the greeter will play a sound (as above) when a +# user successfully logs in. +#SoundOnLoginSuccess=false +#SoundOnLoginSuccessFile= +# If SoundOnLoginFailure, then the greeter will play a sound (as above) when a +# user fails to log in. +#SoundOnLoginFailure=false +#SoundOnLoginFailureFile= + +# Specifies a program to be called by the greeter/login program when the +# initial screen is displayed. The purpose is to provide a hook where files +# used after login can be preloaded to speed performance for the user. The +# program will only be called once only, the first time a greeter is displayed. +# The mdmprefetch command may be used. This utility will load any libraries +# passed in on the command line, or if the argument starts with a "@" +# character, it will process the file assuming it is an ASCII file containing a +# list of libraries, one per line, and load each library in the file. +PreFetchProgram= + +# The chooser is what's displayed when a user wants an indirect XDMCP session, +# or selects Run XDMCP chooser from the system menu +[chooser] +# Default image for hosts. +#DefaultHostImg=/usr/share/pixmaps/nohost.png +# Directory with host images, they are named by the hosts: host or host.png. +HostImageDir=/usr/share/hosts/ +# Time we scan for hosts (well only the time we tell the user we are scanning +# actually, we continue to listen even after this has expired). +#ScanTime=4 +# A comma separated lists of hosts to automatically add (if they answer to a +# query of course). You can use this to reach hosts that broadcast cannot +# reach. +Hosts= +# Broadcast a query to get all hosts on the current network that answer. +Broadcast=true +# Set it to true if you want to send a multicast query to hosts. +Multicast=false +# It is an IPv6 multicast address.It is hardcoded here and will be replaced +# when officially registered xdmcp multicast address of TBD will be available. +#Multicast_Addr=ff02::1 +# Allow adding random hosts to the list by typing in their names. +#AllowAdd=true + +[debug] +# This will cause MDM to send debugging information to the system log, which +# will create a LOT of output. It is not recommended to turn this on for +# normal use, but it can be useful to determine the cause when MDM is not +# working properly. +Enable=false +# This will enable debug messages for accessibilty gesture listeners into the +# syslog. This includes output about key events, mouse button events, and +# pointer motion events. This is useful for figuring out the cause of why the +# gesture listeners may not be working, but is too verbose for general debug. +Gestures=false + +# Attached DISPLAY Configuration +# +[servers] +# This section defines which attached DISPLAYS should be started by MDM by +# default. You can add as many DISPLAYS as desired and they will always be +# started. The key for each entry must be a unique number that cooresponds to +# the DISPLAY number to start the X server. For a typical single-display +# machine, there will only be one entry "0" for DISPLAY ":0". The first word +# in the value corresponds to an X server definition in the "X Server +# Definitions" section of the configuration file. For example, the entry: +# +# 0=Standard +# +# Means that DISPLAY ":0" will start an X server as defined in the +# [server-Standard] section. +# +# The optional device argument is used to specify the device that is associated +# with the DISPLAY. When using Virtual Terminals (VT), this value is ignored +# and MDM will use the correct device name associated with the VT. If not +# using VT, then MDM will use the value specified by this optional argument. +# If the device argument is not defined, then MDM will use the default setting +# for attached displays defined in the UtmpLineAttached configuration option. +# For the main display (typically DISPLAY ":0"), "/dev/console" is a reasonable +# value. For other displays it is probably best to not include this argument +# unless you know the specific device associated with the DISPLAY. The device +# value can contain "%d" which is translated to the DISPLAY value or %h which +# is translated to the hostname. +# +0=Standard device=/dev/console + +# Example of how to set up DISPLAY :1 to also use Standard. +#1=Standard + +# If you wish to run the XDMCP chooser on the local display use the following +# line +#0=Chooser + +# X Server Definitions +# +# Note: Is your X server not listening to TCP requests? Refer to the +# security/DisallowTCP setting! + +[server-Standard] +name=Standard server +command=/usr/bin/Xorg -audit 0 +flexible=true +# Indicates that the X server should be started at a different process +# priority. Values can be any integer value accepted by the setpriority C +# library function (normally between -20 and 20) with 0 being the default. For +# highly interactive applications, -5 yields good responsiveness. The default +# value is 0 and the setpriority function is not called if the value is 0. + +#priority=0 + +# To use this server type you should add -query host or -indirect host to the +# command line. +[server-Terminal] +name=Terminal server +# Add -terminate to make things behave more nicely +command=/usr/bin/Xorg -audit 0 -terminate +# Make this not appear in the flexible servers (we need extra params anyway, +# and terminate would be bad for xdmcp choosing). You can make a terminal +# server flexible, but not with an indirect query. If you need flexible +# indirect query server, then you must get rid of the -terminate and the only +# way to kill the flexible server will then be by Ctrl-Alt-Backspace. +flexible=false +# Do not handle this X server for attached displays. +handled=false + +# To use this server type you should add -query host or -indirect host to the +# command line. +[server-Chooser] +name=Chooser server +command=/usr/bin/Xorg -audit 0 +# Make this not appear in the flexible servers for now, but if you wish to +# allow a chooser server then make this true. This is the only way to make a +# flexible chooser server that behaves nicely. +flexible=false +# Run the chooser instead of the greeter. When the user chooses a machine they +# will get this same server but run with "-terminate -query hostname". +chooser=true + +[customcommand] +# This section allows you specify up to 10 custom commands. Each of the +# commands can be defined by the seven parameters listed below. In each of the +# descriptions of the parameters N can take on any values between 0 and 9, +# i.e. CustomCommand0=,CustomCommand1=,...,CustomCommand9=. The numbers +# can have gaps as long as they fit within predefined set of 10, and their +# placement order within this section and with respect to each other is +# not important. +# +# CustomCommandN, CustomCommandTextN, CustomCommandLabelN, +# CustomCommandLRLabelN, CustomCommandTooltipN, CustomCommandIsPersistentN +# and CustomCommandNoRestartN should all be defined for a given integer N, +# where N can be a number from 0-9 (if not the default values will be +# assigned except CustomCommandN for which no default exists). + +# Custom command to run. Multiple commands may be specified separated by +# semicolons. GMM will use the first valid command. Examples: +# /sbin/bootwindoze;/usr/bin/bootwindoze, or +# /sbin/runupdate;/usr/local/sbin/runupdate +# +#CustomCommandN= + +# Custom command dialog message that will appear on all warning dialogs. +# This will vary depending on what you want to do. Examples: +# Are you sure you want to restart system into Windoze?, or +# Are you sure you want do do this? +#CustomCommandTextN= + +# Custom command label that will appear as stock label on buttons/menu items. +# This option can't contain any semicolon characters (i.e. ";"). +# Examples: +# _Windoze, or +# _Update Me +#CustomCommandLabelN= + +# Custom command label that will appear as stock label on radio buttons/list +# items. The underscore indicates the mnemonic used with this item. Examples: +# Restart into _Windoze +# Perform system _Update +#CustomCommandLRLabelN= + +# Custom command tooltip. Examples +# Restarts the computer into Windoze +# Updates the computer software to the most recent version(s) +#CustomCommandTooltipN= + +# Custom command persistence option. Setting it to true will allow this +# command to appear outside the login manager, e.g. on the desktop through +# Log Out/Shut Down dialogs. The default value is false. +#CustomCommandIsPersistentN= + +# Custom command mdm/system restart option. Setting it to true will not +# restart mdm after command execution. The default commands (reboot, shut +# down) all reboot the system by default which is why the default setting +# is true. +# In addition when corresponding CustomCommandIsPersistentN option is set to +# true, setting CustomCommandNoRestartN to false will place CustomCommandN +# in the Shut Down dialog set of actions, setting it to true will place +# CustomCommandN in the Log Out dialog set of actions. +#CustomCommandNoRestartN= +# +# Example layout for more than one command: +#CustomCommand0= +#CustomCommandText0= +#CustomCommandLabel0= +#CustomCommandLRLabel0= +#CustomCommandTooltip0= +#CustomCommandIsPersistent0= +#CustomCommandNoRestart0= +# +#CustomCommand1= +#CustomCommandText1= +#CustomCommandLabel1= +#CustomCommandLRLabel1= +#CustomCommandTooltip1= +#CustomCommandIsPersistent1= +#CustomCommandNoRestart1= +# +# and so on diff --git a/talimatname/genel/m/mdm/mdm-autologin.pam b/talimatname/genel/m/mdm/mdm-autologin.pam new file mode 100644 index 000000000..f3b1541ac --- /dev/null +++ b/talimatname/genel/m/mdm/mdm-autologin.pam @@ -0,0 +1,25 @@ +#%PAM-1.0 +auth requisite pam_nologin.so +auth required pam_env.so + +auth required pam_permit.so + +auth sufficient pam_succeed_if.so uid >= 1000 quiet +auth required pam_deny.so + +account required pam_access.so +account required pam_time.so +account required pam_unix.so + +password required pam_unix.so +password required pam_deny.so + +session required pam_limits.so +session required pam_unix.so + +session required pam_loginuid.so +-session optional pam_systemd.so + +session optional pam_keyinit.so revoke +session required pam_limits.so +session required pam_unix.so diff --git a/talimatname/genel/m/mdm/mdm.kur-kos b/talimatname/genel/m/mdm/mdm.kur-kos new file mode 100644 index 000000000..a4ac4a4d6 --- /dev/null +++ b/talimatname/genel/m/mdm/mdm.kur-kos @@ -0,0 +1,16 @@ +getent group mdm >/dev/null 2>&1 || groupadd -g 128 mdm +getent passwd mdm >/dev/null 2>&1 || /usr/sbin/useradd -c 'Linux Mint Display Manager' -u 128 -g mdm -d /var/lib/mdm -s /sbin/nologin mdm +passwd -l mdm > /dev/null +chown root:mdm /var/lib/mdm > /dev/null +chmod 1770 /var/lib/mdm > /dev/null +mps serkur mdm && mps sersil slim && mps sersil lxdm && mps sersil gdm + +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor +printf "\n Varsayılan olarak tty1 devre dışıdır, çünkü bu bir hata" +printf "\n tty1 çalışıyorsa, mdm otomatik olarak çalışır " +printf "\n sonsuz bir döngü içinde yeniden başlatıldığında, bu etrafında almak " +printf "\n giriş yaptıktan 1 dakika sonraya kadar lütfen zor kullanmayın " +printf "\n sorunla nasıl başa çıkacağınızı bilmiyorsanız getty@tty1" +printf "\n" + + diff --git a/talimatname/genel/m/mdm/mdm.pam b/talimatname/genel/m/mdm/mdm.pam new file mode 100644 index 000000000..a4fc75c53 --- /dev/null +++ b/talimatname/genel/m/mdm/mdm.pam @@ -0,0 +1,14 @@ +#%PAM-1.0 +auth requisite pam_nologin.so +auth required pam_env.so + +auth required pam_unix.so + +account required pam_unix.so + +session required pam_limits.so +session required pam_unix.so +#session optional pam_systemd.so +session optional pam_ck_connector.so nox11 + +password required pam_unix.so diff --git a/talimatname/genel/m/mdm/mdm.sil-kos b/talimatname/genel/m/mdm/mdm.sil-kos new file mode 100644 index 000000000..c1fbc33e9 --- /dev/null +++ b/talimatname/genel/m/mdm/mdm.sil-kos @@ -0,0 +1,3 @@ +gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +getent passwd mdm || userdel mdm +getent group mdm || groupdel mdm diff --git a/talimatname/genel/m/mdm/org.cinnamon.pkexec.mdmsetup.policy b/talimatname/genel/m/mdm/org.cinnamon.pkexec.mdmsetup.policy new file mode 100644 index 000000000..410d3ee1f --- /dev/null +++ b/talimatname/genel/m/mdm/org.cinnamon.pkexec.mdmsetup.policy @@ -0,0 +1,21 @@ +<?xml surum="1.0" encoding="UTF-8"?> +<!DOCTYPE policyconfig PUBLIC + "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN" + "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd"> +<policyconfig> + <vendor>Cinnamon Desktop environment</vendor> + <vendor_url>http://www.gnome.org/projects/mdm/</vendor_url> + <action id="org.cinnamon.pkexec.mdmsetup"> + <description>MDM login window appearance and behavior</description> + <message>Privileges are required to change MDM Settings</message> + <icon_name>mdmsetup</icon_name> + <defaults> + <allow_any>no</allow_any> + <allow_inactive>no</allow_inactive> + <allow_active>auth_admin</allow_active> + </defaults> + <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/mdmsetup</annotate> + <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate> + </action> +</policyconfig> + diff --git a/talimatname/genel/m/mdm/resim-1.jpg b/talimatname/genel/m/mdm/resim-1.jpg new file mode 100644 index 000000000..ed7f976b4 Binary files /dev/null and b/talimatname/genel/m/mdm/resim-1.jpg differ diff --git a/talimatname/genel/m/mdm/talimat b/talimatname/genel/m/mdm/talimat new file mode 100644 index 000000000..0ae7f651d --- /dev/null +++ b/talimatname/genel/m/mdm/talimat @@ -0,0 +1,68 @@ +# Tanım: MDM Giriş Yöneticisi (consolekit destekli) +# URL: http://www.linuxmint.com +# Paketçi: yasarciv67@gmail.com +# Gerekler: gnome-common intltool gnome-doc-utils xorg-server pango zenity popt xorg-libdmx libgnomecanvas dbus-glib webkitgtk2 + +isim=mdm +surum=2.0.17 +devir=1 + +kaynak=(https://github.com/linuxmint/$isim/archive/$surum.tar.gz +mdm.pam +mdm-autologin.pam +defaults.conf +org.cinnamon.pkexec.mdmsetup.policy +resim-1.jpg) + +derle() { + cd $isim-$surum + aclocal --install + gnome-doc-prepare --force + chmod +x ./autogen.sh + export AUTOMAKE=automake + ./autogen.sh --enable-ipv6=yes --with-prefetch \ + --prefix=/usr --with-console-kit=yes --sysconfdir=/etc \ + --with-systemd=no --libexecdir=/usr/lib/mdm --localstatedir=/var/lib \ + --disable-static --with-xevie=yes --disable-scrollkeeper \ + --enable-secureremote=yes --enable-ipv6=yes \ + --enable-compile-warnings=no --sbindir=/usr/bin \ + LDFLAGS="-lXau -lm" + + sed -i -e 's|${prefix}|/usr|' config.h + + make DESTDIR=$PKG + make DESTDIR=$PKG install + + #PAM, we use our own, not LinuxMint stuff, problem?... + install -m755 -d "${PKG}/etc/pam.d" + install -m644 "${SRC}/mdm-autologin.pam" "${PKG}/etc/pam.d/mdm-autologin" + install -m644 "${SRC}/mdm.pam" "${PKG}/etc/pam.d/mdm" + + #configuration + install -m444 "${SRC}/defaults.conf" "${PKG}/usr/share/mdm/" + install -m444 "${SRC}/defaults.conf" "${PKG}/usr/share/mdm/distro.conf" + cp "${SRC}/resim-1.jpg" "${PKG}/usr/share/mdm/themes/" + rm -f "${PKG}/usr/share/xsessions/gnome.desktop" || true + + #PolicyKit execution scheme (need some tests) + install -m755 -d "${PKG}/usr/share/polkit-1/actions/" + install -m644 "${SRC}/org.cinnamon.pkexec.mdmsetup.policy" "${PKG}/usr/share/polkit-1/actions/" + + #Why on the hay this directory is created empty in etc, remove it + rmdir "${PKG}/etc/dm" + + #Fix mdm files conflict with gnome-control-center (usr/share/pixmaps/faces/*) + install -m755 -d "${PKG}/usr/share/pixmaps/faces/" + make DESTDIR=${PKG} install -C gui/faces + + #Fix gdmsetup.desktop + sed -i -e 's|^Exec=gksu|Exec=pkexec|' "${PKG}/usr/share/mdm/applications/mdmsetup.desktop" + sed -i -e 's|^Categories=|Categories=GNOME;GTK;System;Settings;X-GNOME-Settings-Panel;X-GNOME-SystemSettings;X-XFCE-SettingsDialog;X-XFCE-SystemSettings;|' "${PKG}/usr/share/mdm/applications/mdmsetup.desktop" + + #Fix erroneous path for certain applications + install -m755 -d "${PKG}/usr/share/applications" + mv -f ${PKG}/usr/share/mdm/applications/*.* "${PKG}/usr/share/applications" + chmod 755 ${PKG}/usr/share/applications/*.* + rmdir "${PKG}/usr/share/mdm/applications" + +} diff --git a/talimatname/genel/m/media-player-info/talimat b/talimatname/genel/m/media-player-info/talimat new file mode 100644 index 000000000..5d3ccebf3 --- /dev/null +++ b/talimatname/genel/m/media-player-info/talimat @@ -0,0 +1,20 @@ +# Tanım: Medya oynatıcı özelliklerini açıklayan veri dosyaları, post-HAL sistemleri için +# URL: http://cgit.freedesktop.org/media-player-info/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: python3 + +isim=media-player-info +surum=22 +devir=1 + +kaynak=(http://www.freedesktop.org/software/$isim/$isim-$surum.tar.gz ) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --with-udevdir=/lib/udev + + LANG="en_US.UTF-8" make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/m/mediainfo/talimat b/talimatname/genel/m/mediainfo/talimat new file mode 100644 index 000000000..80f3c41e5 --- /dev/null +++ b/talimatname/genel/m/mediainfo/talimat @@ -0,0 +1,19 @@ +# Tanım: Video veya ses dosyası ile ilgili teknik ve etiket bilgilerini gösterin. +# URL: http://mediainfo.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: libmediainfo + +isim=mediainfo +surum=0.7.69 +devir=1 + +kaynak=( http://downloads.sourceforge.net/mediainfo/${isim}_${surum}.tar.bz2) + +derle(){ + cd $SRC/MediaInfo/Project/GNU/CLI + sh ./autogen + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/m/meld/meld.kur-kos b/talimatname/genel/m/meld/meld.kur-kos new file mode 100644 index 000000000..1d319936d --- /dev/null +++ b/talimatname/genel/m/meld/meld.kur-kos @@ -0,0 +1 @@ +glib-compile-schemas /usr/share/glib-2.0/schemas/ diff --git a/talimatname/genel/m/meld/talimat b/talimatname/genel/m/meld/talimat new file mode 100644 index 000000000..d7bb026ce --- /dev/null +++ b/talimatname/genel/m/meld/talimat @@ -0,0 +1,16 @@ +# Tanım: Farklılıkları tespit etme ve birleştirme aracı. +# URL: http://meldmerge.org/ +# Paketçi: milisarge +# Gerekler: python3-gobject python3-cairo gtksourceview3 gsettings-desktop-schemas dconf + +isim=meld +surum=3.18.0 +devir=1 +kaynak=(https://download.gnome.org/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + python3 setup.py build + python3 setup.py --no-update-icon-cache --no-compile-schemas \ + install --prefix=/usr --root="$PKG" --optimize=1 +} diff --git a/talimatname/genel/m/menu-cache/talimat b/talimatname/genel/m/menu-cache/talimat new file mode 100644 index 000000000..14b4d7364 --- /dev/null +++ b/talimatname/genel/m/menu-cache/talimat @@ -0,0 +1,17 @@ +# Tanım: Freedesktop.org uyumlu menüler için önbellekleme mekanizması +# URL: http://lxde.org/ +# Paketçi: milisarge +# Gerekler: libfm-extra + + +isim=menu-cache +surum=1.1.0 +devir=1 + +kaynak=(http://downloads.sourceforge.net/lxde/$isim-$surum.tar.xz) +derle() { +cd $isim-$surum +./configure --prefix=/usr --disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/menulibre/talimat b/talimatname/genel/m/menulibre/talimat new file mode 100644 index 000000000..fbbf40dff --- /dev/null +++ b/talimatname/genel/m/menulibre/talimat @@ -0,0 +1,14 @@ +# Tanım: An advanced menu editor that provides modern features in a clean, easy-to-use interface. All without GNOME dependencies +# URL: https://launchpad.net/menulibre +# Paketçi: milisarge +# Gerekler: python3-distutils-extra gdk-pixbuf gnome-menus gsettings-desktop-schemas gtksourceview3 python3 python3-gobject python3-psutil python3-xdg xdg-utils + +isim=menulibre +surum=2.1.3 +devir=1 +kaynak=(https://launchpad.net/menulibre/2.1/$surum/+download/$isim-$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + python3 setup.py install --root="$PKG/" --optimize=1 +} diff --git a/talimatname/genel/m/mercurial/mercurial.profile b/talimatname/genel/m/mercurial/mercurial.profile new file mode 100644 index 000000000..fc961828c --- /dev/null +++ b/talimatname/genel/m/mercurial/mercurial.profile @@ -0,0 +1 @@ +export HG=/usr/bin/hg diff --git a/talimatname/genel/m/mercurial/talimat b/talimatname/genel/m/mercurial/talimat new file mode 100644 index 000000000..5cefbd13b --- /dev/null +++ b/talimatname/genel/m/mercurial/talimat @@ -0,0 +1,45 @@ +# Tanım: Python'da yazılmış, Git ve Bazaar'a benzer,dağıtılmış bir kaynak denetim yönetimi aracıdır. +# URL: http://mercurial.selenic.com +# Paketçi: milisarge +# Gerekler: python tk + +isim=mercurial +surum=4.3.1 +devir=1 +kaynak=(https://www.mercurial-scm.org/release/mercurial-$surum.tar.gz + mercurial.profile) + +derle() { + cd $isim-$surum + sed -i -e 's#env python#env python2#' mercurial/lsprof.py + cd contrib/chg + make + cd $SRC/${isim}-${surum} + python2 setup.py install --root="${PKG}/" --optimize=1 + + install -d ${PKG}/usr/share/man/{man1,man5} + install -m644 doc/hg.1 "${PKG}/usr/share/man/man1" + install -m644 doc/{hgrc.5,hgignore.5} "${PKG}/usr/share/man/man5" + install -m755 contrib/hgk "${PKG}/usr/bin" + install -m644 -D contrib/zsh_completion "${PKG}/usr/share/zsh/site-functions/_hg" + install -m644 -D contrib/bash_completion "${PKG}/usr/share/bash-completion/completions/hg" + install -d "${PKG}/usr/share/emacs/site-lisp" + install -m644 contrib/{mq.el,mercurial.el} "${PKG}/usr/share/emacs/site-lisp" + + vimpath="${PKG}/usr/share/vim/vimfiles" + install -Dm644 contrib/vim/HGAnnotate.vim "${vimpath}/syntax/HGAnnotate.vim" + + # set some variables + install -m755 -d ${PKG}/etc/profile.d + install -m755 ${SRC}/mercurial.profile "${PKG}/etc/profile.d/mercurial.sh" + + # install configuration file + install -m755 -d ${PKG}/etc/mercurial + # install -m644 contrib/sample.hgrc "${PKG}/etc/mercurial/hgrc" + + # FS#38825 - Add certs config to package + echo -e "\n[web]\ncacerts = /etc/ssl/certs/ca-certificates.crt\n" >> "${PKG}/etc/mercurial/hgrc" + + cd contrib/chg + make DESTDIR="${PKG}" PREFIX=/usr install +} diff --git a/talimatname/genel/m/meson/milis-meson b/talimatname/genel/m/meson/milis-meson new file mode 100644 index 000000000..17241018a --- /dev/null +++ b/talimatname/genel/m/meson/milis-meson @@ -0,0 +1,21 @@ +#!/bin/bash -ex +# Milis Linux için Meson sargısı + +exec meson setup \ + --prefix /usr \ + --libdir /usr/lib \ + --libexecdir /usr/lib \ + --bindir /usr/bin \ + --sbindir /usr/bin \ + --includedir /usr/include \ + --datadir /usr/share \ + --mandir /usr/share/man \ + --infodir /usr/share/info \ + --localedir /usr/share/locale \ + --sysconfdir /etc \ + --localstatedir /var \ + --sharedstatedir /var/lib \ + --buildtype release \ + --wrap-mode nofallback \ + "$@" \ + -D b_lto=true diff --git a/talimatname/genel/m/meson/talimat b/talimatname/genel/m/meson/talimat new file mode 100644 index 000000000..9e58c85e9 --- /dev/null +++ b/talimatname/genel/m/meson/talimat @@ -0,0 +1,26 @@ +# Tanım: Meson hem son derece hızlı, hem de daha da önemlisi, mümkün olduğunca kullanıcı dostu olmak için tasarlanmış bir açık kaynak kodlu yapı sistemidir. +# URL: http://mesonbuild.com/ +# Paketçi: milisarge +# Gerekler: python3 git ninja + +isim=meson +surum=0.46.0 +devir=1 + +kaynak=(https://github.com/mesonbuild/meson/releases/download/$surum/$isim-$surum.tar.gz + milis-meson) + +derle() { + cd $isim-$surum + python3 setup.py build + python3 setup.py install --root="${PKG}" --optimize=1 --skip-build + + install -d "${PKG}/usr/share/vim/vimfiles" + cp -rt "${PKG}/usr/share/vim/vimfiles" data/syntax-highlighting/vim/* + + install -Dt "${PKG}/usr/share/emacs/site-lisp" -m644 data/syntax-highlighting/emacs/* + install -Dt "${PKG}/usr/share/zsh/site-functions" -m644 data/shell-completions/zsh/* + + # Milis paket yardımcı + install -D ../milis-meson -t "${PKG}/usr/bin" +} diff --git a/talimatname/genel/m/messagelib/talimat b/talimatname/genel/m/messagelib/talimat new file mode 100644 index 000000000..16ce24e91 --- /dev/null +++ b/talimatname/genel/m/messagelib/talimat @@ -0,0 +1,21 @@ +# Tanım: KDE PIM mesajlaşma kütüphanesi +# URL : https://community.kde.org/KDE_PIM +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kdepim-apps-libs kmailtransport kmbox libgravatar akonadi-notes kidentitymanagement kf5-extra-cmake-modules kf5-kdoctools boost qt5 + +isim=messagelib +surum=16.08.2 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/metasploit/talimat b/talimatname/genel/m/metasploit/talimat new file mode 100644 index 000000000..24348368a --- /dev/null +++ b/talimatname/genel/m/metasploit/talimat @@ -0,0 +1,41 @@ +# Tanım: ileri düzey exploit kullanarak geliştirme ve test etme çatı uygulaması +# URL: http://www.metasploit.com +# Paketçi: milisarge +# Gerekler: ruby libpcap postgresql ruby-bundler sqlite libxslt clang + +isim=metasploit +surum=4.14.24 +devir=1 +kaynak=(https://github.com/rapid7/metasploit-framework/archive/$surum.tar.gz) + +derle() { + cd "${isim}-framework-$surum" + bundle config build.nokogiri --use-system-libraries + sed 's|git ls-files|find -type f|' -i metasploit-framework.gemspec + export CC=clang + export CXX=clang++ + bundle install -j"$(nproc)" --no-cache --deployment + find vendor/bundle/ruby -exec chmod o+r '{}' \; + + install -d "${PKG}/opt/${isim}" "${PKG}/usr/bin" + find . -maxdepth 1 -mindepth 1 -not -path './.git*' -exec cp -r '{}' "${PKG}/opt/${isim}" \; + + for f in "${PKG}"/opt/${isim}/msf*; do + local _msffile="${PKG}/usr/bin/`basename "${f}"`" + echo -e "#!/bin/sh\nBUNDLE_GEMFILE=/opt/${isim}/Gemfile bundle exec ruby /opt/${isim}/`basename "${f}"` \"\$@\"" > "${_msffile}" + chmod 755 "${_msffile}" + done + + (cd "${PKG}/opt/${isim}" + for f in tools/*/*.rb; do + install -Dm 755 "${f}" ".${f}" + echo -e "#!/bin/sh\nBUNDLE_GEMFILE=/opt/${isim}/Gemfile bundle exec ruby /opt/${isim}/."${f}" \"\$@\"" > "${f}" + chmod 755 "${f}" + done + ) + + install -Dm 644 external/zsh/_* -t "${PKG}/usr/share/zsh/site-functions" + install -d "${PKG}/usr/share/doc" + mv "${PKG}/opt/${isim}/documentation" "${PKG}/usr/share/doc/${isim}" + rm "${PKG}/usr/bin/msfupdate" +} diff --git a/talimatname/genel/m/mhash/talimat b/talimatname/genel/m/mhash/talimat new file mode 100644 index 000000000..f863cf00e --- /dev/null +++ b/talimatname/genel/m/mhash/talimat @@ -0,0 +1,20 @@ +# Tanım: Farklı hash algoritmaları kütüphanesi +# URL: http://mhash.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: +# Grup: kütüphane + +isim=mhash +surum=0.9.9.9 +devir=1 +kaynak=(http://downloads.sourceforge.net/mhash/mhash-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --mandir=/usr/share/man + make + make DESTDIR=$PKG \ + PREFIX=/usr \ + MANDIR=/usr/share/man\ + install +} diff --git a/talimatname/genel/m/miam-player/talimat b/talimatname/genel/m/miam-player/talimat new file mode 100644 index 000000000..311eab5a9 --- /dev/null +++ b/talimatname/genel/m/miam-player/talimat @@ -0,0 +1,29 @@ +# Tanım: Çapraz platform açık kaynaklı müzik çalar +# URL: https://github.com/MBach/Miam-Player +# Paketçi: Cihan Alkan +# Gerekler: qt5 taglib qtav +# Grup: medya + +isim=miam-player +surum=0.8.0 +devir=1 +kaynak=(https://github.com/MBach/Miam-Player/archive/v$surum.tar.gz::$isim-$surum.tar.gz + http://kaynaklar.milislinux.org/miam-data.tar.xz) + +derle() { + cd Miam-Player-$surum + cp -p ../player_tr.ts src/Player/translations/player_en.ts + cp -p ../core_tr.ts src/Core/translations/core_en.ts + cp -p ../uniqueLibrary_tr.ts src/Player/translations/player_en.ts + cp -p ../tabPlaylists_tr.ts src/Core/translations/core_en.ts + cp -p ../library_tr.ts src/Core/translations/core_en.ts + cp -p ../tr.png src/Player/language/en.png + + /usr/lib/qt5/bin/lrelease ../player_tr.ts -qm src/Player/translations/player_en.qm + /usr/lib/qt5/bin/lrelease ../core_tr.ts -qm src/Core/translations/core_en.qm + /usr/lib/qt5/bin/lrelease ../uniqueLibrary_tr.ts -qm src/UniqueLibrary/translations/uniqueLibrary_en.qm + /usr/lib/qt5/bin/lrelease ../tabPlaylists_tr.ts -qm src/TabPlaylists/translations/tabPlaylists_en.qm + qmake-qt5 + make + make INSTALL_ROOT="$PKG" install +} diff --git a/talimatname/genel/m/midori/midori.kur-kos b/talimatname/genel/m/midori/midori.kur-kos new file mode 100644 index 000000000..0a4d8a2f4 --- /dev/null +++ b/talimatname/genel/m/midori/midori.kur-kos @@ -0,0 +1,2 @@ +/usr/bin/update-desktop-database -q +/usr/bin/gtk-update-icon-cache -f -q -t /usr/share/icons/hicolor diff --git a/talimatname/genel/m/midori/talimat b/talimatname/genel/m/midori/talimat new file mode 100644 index 000000000..69157254d --- /dev/null +++ b/talimatname/genel/m/midori/talimat @@ -0,0 +1,25 @@ +# Tanım: WebKitGTK+ kullanan hafif tarayıcı +# URL: http://www.twotoasts.de +# Paketçi: milisarge +# Gerekler: meson cmake gcr webkitgtk2 gtk3 webkit2gtk3 webkitgtk3 vala glib-networking libnotify librsvg libunique1 desktop-file-utils hicolor-icon-theme gstreamer1-plugins-libav gstreamer1-plugins-base gstreamer1-plugins-good + +isim=midori +surum=0.5.11 +devir=3 + +kaynak=(http://www.midori-browser.org/downloads/${isim}_${surum}_all_.tar.bz2) +derle() { + cd $isim-$surum + mkdir -p build + cd build + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DHALF_BRO_INCOM_WEBKIT2=ON \ + -DCMAKE_C_FLAGS="$CFLAGS -w" \ + -DUSE_ZEITGEIST=OFF \ + -DUSE_GTK3=1 \ + -G Ninja + ninja + DESTDIR="$PKG" ninja -C "$SRC/$isim-$surum/build" install +} diff --git a/talimatname/genel/m/mikrolock/mikrolock_tr_TR.ts b/talimatname/genel/m/mikrolock/mikrolock_tr_TR.ts new file mode 100644 index 000000000..f8002d9b1 --- /dev/null +++ b/talimatname/genel/m/mikrolock/mikrolock_tr_TR.ts @@ -0,0 +1,632 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.1" language="de_DE"> +<context> + <name>MlockMainWindow</name> + <message> + <location filename="mlockmainwindow.ui" line="17"/> + <source>MikroLock</source> + <oldsource>µlock</oldsource> + <translation>MikroLock</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="46"/> + <source>Your mail address:</source> + <translation>E-Posta Adresiniz:</translation> + </message> + <message> + <source>To remain compatible with the Chrome miniLock extension, enter a valid mail address.</source> + <translation type="vanished">Chrome miniLock uzantısıyla uyumlu kalabilmek için geçerli bir posta adresi girin.</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="126"/> + <source>Your secret passphrase:</source> + <translation>Parolanız:</translation> + </message> + <message> + <source>Enter a secret passphrase which consists of several random words.</source> + <translation type="vanished">Birkaç rastgele kelime içeren gizli bir parola girin.</translation> + </message> + <message> + <source><html><head/><body><p>Enter a secret passphrase which consists of several random words. A weak passphrase may be declined by the original miniLock Chrome extension.</p></body></html></source> + <translation type="vanished"><html><head/><body><p>Birkaç rastgele kelime içeren gizli bir parola girin. Orijinal miniLock Chrome uzantısı zayıf bir parola reddedebilir.</p></body></html></translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="278"/> + <source>Press this button to get to the file processing screen.</source> + <translation>Dosya işleme ekranına gitmek için bu düğmeye basın.</translation> + </message> + <message> + <source>Generate my miniLock ID</source> + <translation type="vanished">MiniLock kimliğimi oluştur</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="327"/> + <source>Enter your mail address and your passphrase.</source> + <translation>Posta adresinizi ve parolanızı girin.</translation> + </message> + <message> + <source><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Sans Serif'; font-size:8pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">mlock uses your email and passphrase to derive your <span style=" font-weight:600;">miniLock ID</span>.</p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Refer to <a href="http://world.std.com/~reinhold/diceware.html"><span style=" text-decoration: underline; color:#0000ff;">Diceware</span></a> for a method to generate good passphrases.</p></body></html></source> + <translation type="vanished"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Sans Serif'; font-size:8pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">mlock berechnet Deine <span style=" font-weight:600;">miniLock ID</span> aus der Mail-Adresse und dem Passwort.</p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Mit der <a href="http://world.std.com/~reinhold/diceware.html"><span style=" text-decoration: underline; color:#0000ff;">Diceware</span></a> Methode kannst Du gute Passwörter erzeugen.</p></body></html></translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="55"/> + <source><html><head/><body><p>Enter your mail address (or any other value) as salt.</p></body></html></source> + <oldsource><html><head/><body><p>To remain compatible with the Chrome miniLock extension, enter a valid mail address (you may enter anything as salt value).</p></body></html></oldsource> + <translation>Posta adresinizi (veya başka bir değeri) girin</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="135"/> + <source><html><head/><body><p>Enter a secret passphrase (minimum length: 20 characters). If the length does not exceed 40 characters, the passphrase must consist of at least five random words.</p></body></html></source> + <oldsource><html><head/><body><p>Enter a secret passphrase (minimum length: 20 characters). If the length does not exceed 40 characters, the passphrase must consist of at least five random words. A weak passphrase may be declined by the original miniLock Chrome extension.</p></body></html></oldsource> + <translation><html><head/><body><p>Gizli bir parola girin (minimum uzunluk: 20 karakter). Uzunluğu 40 karakteri aşmıyorsa, parolanın en az beş rastgele kelime içermesi gerekir.</p></body></html></translation> + </message> + <message> + <source><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Sans Serif'; font-size:8pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">MikroLock uses your email and passphrase to derive your <span style=" font-weight:600;">miniLock ID</span>.</p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Refer to <a href="http://www.diceware.com"><span style=" text-decoration: underline; color:#0000ff;">Diceware.com</span></a> for a method to generate good passphrases.</p></body></html></source> + <oldsource><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Sans Serif'; font-size:8pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">µlock uses your email and passphrase to derive your <span style=" font-weight:600;">miniLock ID</span>.</p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Refer to <a href="http://www.diceware.com"><span style=" text-decoration: underline; color:#0000ff;">Diceware.com</span></a> for a method to generate good passphrases.</p></body></html></oldsource> + <translation type="vanished"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Sans Serif'; font-size:8pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">MikroLock nutzt die Mail-Adresse und das Passwort, um eine <span style=" font-weight:600;">miniLock ID</span> zu berechnen.</p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Sieh unter <a href="http://www.diceware.com"><span style=" text-decoration: underline; color:#0000ff;">Diceware.com</span></a> nach, wie man gute Passwörter erzeugen kann.</p></body></html></translation> + </message> + <message> + <source>Send your miniLock ID to others so they can encrypt files to you.<br>Encrypt files to friends using their miniLock IDs. <br><br>Your email is only used to derive your miniLock ID -<br> it remains completely secret and anonymous.</source> + <translation type="vanished">MiniLock kimliğinizi başkalarına gönderin, böylece size dosyaları şifreleyebilirler.<br><br>MiniLock Kimlikleri ile dosyaları şifreleyin.<br><br>E-posta adresiniz yalnızca MiniLock Kimliğinizi oluşturmak için kullanılacaktır - gizli ve anonim kalacaktır.</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="424"/> + <source>Select the directory to store the encrypted or decrypted file.</source> + <translation>Şifreli veya şifresi çözülmüş dosyayı saklamak için dizini seçin.</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="427"/> + <source>Select the destination directory</source> + <translation>Hedef dizini seçin</translation> + </message> + <message> + <source>Enter the directory to store the encrypted or decrypted file.</source> + <translation type="vanished">Gib das Ausgabeverzeichnis ein.</translation> + </message> + <message> + <source><html><head/><body><p>This is your destination directory.</p></body></html></source> + <translation type="vanished"><html><head/><body><p>Dies ist das Ausgabeverzeichnis.</p></body></html></translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="473"/> + <source>Select a minilock file to decrypt or any other file to encrypt.</source> + <translation>Şifresini çözmek için bir minilock dosyası veya şifrelemek için başka bir dosya seçin.</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="476"/> + <location filename="mlockmainwindow.cpp" line="383"/> + <source>Select the input file</source> + <translation>Girdi dosyasını seçin</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="549"/> + <source>Drop a file here after selecting the destination directory.</source> + <translation>Hedef dizini seçtikten sonra buraya bir dosya bırakın.</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="617"/> + <source><html><head/><body><p><span style=" font-weight:600;">Select the destination directory and the input file.</span></p><p>A miniLock file will be decrypted automatically. </p><p>Any other file will be encrypted.</p><p>You may drag and drop a file onto this window.</p></body></html></source> + <oldsource><html><head/><body><p><span style=" font-weight:600;">Select the destination directory and the input file.</span></p><p>A miniLock file will be decrypted automatically. </p><p>Any other file will be encrypted.</p><p>You may drag and drop files onto this window.</p></body></html></oldsource> + <translation><html><head/><body><p><span style=" font-weight:600;">Hedef dizini ve girdi dosyasını seçin.</span></p><p>MiniLock dosyası otomatik olarak şifresiz çözülür. </p><p>Başka herhangi bir dosya şifrelenir.</p><p>Dosyayı bu pencereye sürükleyip bırakabilirsiniz.</p></body></html></translation> + </message> + <message> + <source>List of recipient miniLock IDs:</source> + <translation type="vanished">Liste der Empfänger-IDs:</translation> + </message> + <message> + <source>Add a miniLock ID of whom should be able to open the file.</source> + <translation type="vanished">Füge eine ID der Person hinzu, die deine miniLock-Datei öffnen darf.</translation> + </message> + <message> + <source>Add miniLock ID</source> + <translation type="vanished">MiniLock-ID hinzufügen</translation> + </message> + <message> + <source><html><head/><body><p>Open a text file which contains one miniLock ID per line and use the entries to replace the recipient IDs above.</p></body></html></source> + <translation type="vanished"><html><head/><body><p>Öffne eine Textdatei, die eine miniLock-ID pro Zeile enthält, und ersetze damit die obigen Empfänger-IDs.</p></body></html></translation> + </message> + <message> + <source>Read list file</source> + <translation type="vanished">Liste einlesen</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="200"/> + <source>Select a function to calculate a key from the input fields above. Always use the same function to generate your Lock-ID.</source> + <translation>Yukarıdaki girdi alanlarından bir anahtarı hesaplamak için bir işlev seçin. Kilit Kimliği'nizi oluşturmak için daima aynı işlevi kullanın.</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="203"/> + <source>Key derivation function</source> + <translation>Anahtar Türetme Fonksiyonu</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="209"/> + <source>Select scrypt as key derivation function.</source> + <translation>Anahtar türetme işlevi olarak kriptolama'yı seçin.</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="212"/> + <source>s&crypt</source> + <translation>scrypt</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="222"/> + <source>Use Argon2 as key derivation function.</source> + <translation>Anahtar türetme işlevi olarak Argon2'yi kullanın.</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="225"/> + <source>Argon&2</source> + <translation>Argon2</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="281"/> + <source>Generate my Lock-ID</source> + <translation>Kilit Kimliği'ni oluştur</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="353"/> + <source><html><head/><body><p>MikroLock uses your email and passphrase to derive your <span style=" font-weight:600;">Lock-ID</span>.</p> + +<p>Refer to <a href="http://www.diceware.com"><span style=" text-decoration: underline; color:#0000ff;">Diceware.com</span></a> for a method to generate good passphrases.</p></body></html></source> + <translation><html><head/><body><p>MikroLock, türetmek için e-postanızı ve parolanızı kullanır.<span style="font-weight:600;">Lock-ID</span> hesapla.</p> +<p>Ziyaret edin <a href="http://www.diceware.com"><span style=" text-decoration: underline; color:#0000ff;">Diceware.com</span></a> iyi bir parola deyimi üretmek için. </p></body></html></translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="390"/> + <source><html><head/><body><p>Send your Lock-ID to others so they can encrypt files to you.<br/>Encrypt files to friends using their Lock-IDs. <br/><br/>Your email is only used to derive your Lock ID - it remains completely secret and anonymous.</p></body></html></source> + <translation><html><head/><body><p>Send your Lock-ID to others so they can encrypt files to you.<br/>Encrypt files to friends using their Lock-IDs. <br/><br/>Your email is only used to derive your Lock ID - it remains completely secret and anonymous.</p></body></html></translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="444"/> + <source>This is your destination directory.</source> + <translation>Bu hedef dizininiz.</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="648"/> + <source>List of recipient Lock-IDs:</source> + <translation>Alıcı Kilit Kimlikleri Listesi:</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="678"/> + <source>Add a Lock-ID of whom should be able to open the file.</source> + <translation>Dosyayı açabilecek durumda olan bir Lock-ID ekleyin.</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="681"/> + <source>Add Lock-ID</source> + <translation>Kilit Kimliği Ekle</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="700"/> + <source><html><head/><body><p>Open a text file which contains one Lock-ID per line and use the entries to replace the recipient IDs above.</p></body></html></source> + <translation><html><head/><body><p>Her hat için bir Lock-ID içeren bir metin dosyasını açın ve yukarıdaki alıcı kimliklerini değiştirmek için girdileri kullanın.</p></body></html></translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="703"/> + <source>Read list of IDs</source> + <translation>Kimliklerin listesini okuyun</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="714"/> + <source>Clear the recipient list.</source> + <translation>Alıcı listesini temizle.</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="717"/> + <source>Clear recipients</source> + <translation>Alıcıları temizle</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="730"/> + <source>Omit my ID</source> + <translation>Kimliğimi atla</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="737"/> + <source>Generate a random output filename</source> + <translation>Rastgele bir çıktı dosyası oluştur</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="766"/> + <source>Encrypt the file</source> + <translation>Dosyayı şifreleme</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="800"/> + <source><html><head/><body><p><span style=" font-weight:600;">Encrypt your file!</span></p><p>Add the Lock-ID of each person which should be able to decrypt the file.</p><p>If you omit your own ID, you will not be able to decrypt the resulting file.</p><p>A miniLock file does not give visible hints about the sender nor the recipients.</p></body></html></source> + <translation><html><head/><body><p><span style=" font-weight:600;">Dosyanızı şifreleyin!</span></p><p>Dosyanın şifresini çözebilecek her kişinin Kilit Kimliği'ni ekleyin.</p><p>Kendi kimliğinizi atlarsanız, elde edilen dosyanın şifresini çözemezsiniz.</p><p>Bir miniLock dosyası, gönderen veya alıcılar hakkında görünür ipuçları vermez.</p></body></html></translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="853"/> + <source>Move to the previous screen.</source> + <translation>Bir önceki ekrana geçin.</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="880"/> + <source>This is your Lock-ID.</source> + <translation>Bu senin Lock-ID.</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="883"/> + <source><My Lock-ID></source> + <translation><Kilit Kimliğim></translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="893"/> + <source>Copy your Lock-ID to the clipboard.</source> + <translation>Lock-ID'nizi panoya kopyalayın.</translation> + </message> + <message> + <source><html><head/><body><p><span style=" font-weight:600;">Encrypt your file!</span></p><p>Add the miniLock ID of each person which should be able to decrypt the file.</p><p>If you omit your own ID, you will not be able to decrypt the resulting file.</p><p>A miniLock file does not give visible hints about the sender nor the recipients.</p></body></html></source> + <oldsource><html><head/><body><p><span style=" font-weight:600;">Encrypt your file!</span></p><p>Add the miniLock ID of each person which should be able to decrypt the file.</p><p>You can add up to 128 recipient IDs.</p><p>If you omit your own ID, you will not be able to decrypt the resulting file.</p><p>A miniLock file does not give visible hints about the sender nor the recipients.</p></body></html></oldsource> + <translation type="vanished"><html><head/><body><p><span style=" font-weight:600;">Verschlüssele deine Datei!</span></p><p>Füge die miniLock-ID jeder Person hinzu, die die Datei öffnen soll.</p><p>Wenn Du Deine ID auslässt, kannst du die verschlüsselte Datei nicht öffnen.</p><p>Eine miniLock-Datei enthält keine sichtbaren Hinweise auf Sender oder Empfänger.</p></body></html></translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="1007"/> + <source>&Translation hints</source> + <translation>Tercüme ipuçları</translation> + </message> + <message> + <source><html><head/><body><p><span style=" font-weight:600;">Encrypt your file!</span></p><p>Add the miniLock ID of each person which should be able to decrypt the file.</p><p>You can add up to 50 recipient IDs.</p><p>If you omit your own ID, you will not be able to decrypt the resulting file.</p></body></html></source> + <translation type="vanished"><html><head/><body><p><span style=" font-weight:600;">Datei verschlüsseln!</span></p><p>Füge die miniLock-ID jeder Person hinzu, welche die Datei entschlüsseln darf.</p><p>Du kannst bis zu 50 Empfänger-IDs angeben.</p><p>Wenn Du deine eigene ID auslässt, kannst du die verschlüsselte Datei nicht mehr öffnen.</p></body></html></translation> + </message> + <message> + <source>Move to the previous screen</source> + <translation type="vanished">Zum vorherigen Dialog wechseln</translation> + </message> + <message> + <source>This is your miniLock ID</source> + <translation type="vanished">Dies ist Deine miniLock ID</translation> + </message> + <message> + <source><My miniLock ID></source> + <translation type="vanished"><Meine MiniLock ID></translation> + </message> + <message> + <source>Copy your miniLock ID to the clipboard</source> + <translation type="vanished">Kopiere Deine MiniLock ID in die Zwischenablage</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="958"/> + <source>Browse the destination directory.</source> + <translation>Hedef dizine göz atın.</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="985"/> + <source>He&lp</source> + <translation>&Yardım</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="997"/> + <source>&About MikroLock</source> + <oldsource>&About µlock</oldsource> + <translation>&MikroLock Hakkında</translation> + </message> + <message> + <location filename="mlockmainwindow.ui" line="1002"/> + <source>&Manual</source> + <translation>&Hakkında</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="89"/> + <location filename="mlockmainwindow.cpp" line="421"/> + <location filename="mlockmainwindow.cpp" line="560"/> + <source>Input file %1</source> + <translation>%1 giriş dosyası</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="99"/> + <source>The passphrase is too short (minimum: 20 characters).</source> + <translation>Parolanız çok kısa (minimum: 20 karakter).</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="105"/> + <source>The passphrase is strong.</source> + <translation>Parola güçlüdür.</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="112"/> + <source>The passphrase must consist of at least five random words. It may be declined by the original miniLock Chrome extension.</source> + <translation>Parolanın en az beş rasgele sözcükten oluşması gerekir. Orijinal miniLock Chrome uzantısı tarafından reddedilebilir.</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="133"/> + <source>You do not need to enter an email address here unless you intend to use the Chrome miniLock extension.</source> + <translation>Chrome miniLock uzantısını kullanmayacaksanız burada bir e-posta adresi girmeniz gerekmez.</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="180"/> + <source>Scrypt error</source> + <translation>Scrypt hatası</translation> + </message> + <message> + <source>You do not need to enter an email address here unless you want to use the Chrome miniLock extension.</source> + <translation type="vanished">Du musst hier keine Mail-Adresse angeben, wenn du nicht auch das Chrome miniLock-Plugin benutzen willst.</translation> + </message> + <message> + <source>Invalid argument</source> + <translation type="vanished">Ungültiges Argument</translation> + </message> + <message> + <source>%1 is not a minilock file.</source> + <translation type="vanished">%1 ist keine minilock-Datei.</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="136"/> + <source>This mail address appears to be valid.</source> + <translation>Bu posta adresi geçerli gibi görünüyor.</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="139"/> + <source>This mail address appears to be invalid.</source> + <translation>Bu posta adresi geçersiz görünüyor.</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="180"/> + <source>Key derivation failed</source> + <translation>Anahtar türetme başarısız oldu</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="180"/> + <source>Argon2 error</source> + <translation>Argon2 hatası</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="207"/> + <source>%1 file %2...</source> + <translation>%1 dosya %2...</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="209"/> + <source>Decrypting</source> + <translation>Şifresini Çözme</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="209"/> + <source>Encrypting</source> + <translation>Şifreleme</translation> + </message> + <message> + <source>Bad miniLock ID</source> + <translation type="vanished">Ungültige MiniLock ID</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="256"/> + <source>The ID %1 is invalid.</source> + <translation>%1 kimliği geçersiz.</translation> + </message> + <message> + <source>No recipients</source> + <translation type="vanished">Keine Empfänger</translation> + </message> + <message> + <source>You need to define some recipient IDs.</source> + <translation type="vanished">Du musst einige Empfänger IDs angeben.</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="256"/> + <source>Bad Lock-ID</source> + <translation>Kötü Kilit-Kimliği</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="284"/> + <source>%1 file %2 in %3s</source> + <translation>Dosya %2, %3 %1</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="286"/> + <source>Decrypted</source> + <translation>Şifrelenmiş</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="286"/> + <source>Encrypted</source> + <translation>Şifre çözülmüş</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="299"/> + <location filename="mlockmainwindow.cpp" line="303"/> + <location filename="mlockmainwindow.cpp" line="307"/> + <location filename="mlockmainwindow.cpp" line="311"/> + <location filename="mlockmainwindow.cpp" line="315"/> + <location filename="mlockmainwindow.cpp" line="319"/> + <location filename="mlockmainwindow.cpp" line="323"/> + <location filename="mlockmainwindow.cpp" line="327"/> + <location filename="mlockmainwindow.cpp" line="331"/> + <location filename="mlockmainwindow.cpp" line="335"/> + <location filename="mlockmainwindow.cpp" line="339"/> + <location filename="mlockmainwindow.cpp" line="343"/> + <location filename="mlockmainwindow.cpp" line="348"/> + <source>Error</source> + <translation>Hata</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="299"/> + <source>Unknown error.</source> + <translation>Bilinmeyen hata </translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="303"/> + <source>Could not decrypt the file.</source> + <translation>Dosya şifresi çözülemedi.</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="307"/> + <source>Could not encrypt the file.</source> + <translation>Dosya şifrelenemedi.</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="311"/> + <source>Could not open the file.</source> + <translation>Dosya açılamadı.</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="315"/> + <source>Could not read the file.</source> + <translation>Dosya okunamadı.</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="319"/> + <source>Could not write the file.</source> + <translation>Dosya yazılamadı.</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="323"/> + <source>Could not calculate the hash of the file.</source> + <translation>Dosyanın karmasını hesaplayamadı.</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="327"/> + <source>Illegal minilock file format.</source> + <translation>Yasadışı minilock dosya biçimi.</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="331"/> + <source>No recipients defined.</source> + <translation>Hiç alıcı tanımlanmadı.</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="335"/> + <source>You are not allowed to decrypt the file.</source> + <translation>Dosyanın şifresini çözmenize izin verilmiyor.</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="339"/> + <source>Empty input file.</source> + <translation>Boş giriş dosyası.</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="343"/> + <source>Output file exists: +%1</source> + <translation>Çıktı dosyası var: +%1</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="348"/> + <source>Undefined error.</source> + <translation>Tanımsız hata.</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="374"/> + <source>Select destination directory</source> + <translation>Hedef dizini seçin</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="393"/> + <source>Process given file</source> + <translation>Verilen dosyayı işleme</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="394"/> + <source>%1 %2 +into %3 ?</source> + <translation>%1 %2 +in %3 ?</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="395"/> + <source>Decrypt</source> + <translation>Decrypt</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="396"/> + <source>Encrypt</source> + <translation>Encrypt</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="464"/> + <source>About providing translations</source> + <translation>Çeviriler sağlama hakkında</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="465"/> + <source>This GUI was developed using the Qt toolkit, and translations may be provided using the tools Qt Linguist and lrelease. +The ts files for Linguist reside in the src/gui/qt-widgets subdirectory. +The qm file generated by lrelease has to be saved in l10n. + +Please send a note to as (at) andre-simon (dot) de if you have issues while translating or if you have finished or updated a translation.</source> + <translation>Bu GUI Qt araç setini kullanarak geliştirildi ve çeviriler Qt Linguist ve lrelease araçlarını kullanarak sağlanabilir. +Dilbilimcinin ts dosyaları src / gui / qt-widgets alt dizininde bulunur. +Lrelease tarafından üretilen qm dosyası l10n'ye kaydedilmelidir. + +Çeviri yaparken ya da bir çeviriyi tamamladığınızda veya güncellediğinizde lütfen sorun yaşarsanız, bir (as) andre-simon (nokta) de adresine bir not gönderin.</translation> + </message> + <message> + <source>Decrypt given file</source> + <translation type="vanished">Entschlüssele angegebene Datei</translation> + </message> + <message> + <source>Decrypt %1 +into %2 ?</source> + <translation type="vanished">%1 in +%2 +entschlüsseln?</translation> + </message> + <message> + <source>Decrypt %1?</source> + <translation type="vanished">%1 entschlüsseln?</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="497"/> + <source>Select the recipient list file</source> + <translation>Alıcı listesi dosyasını seçin</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="555"/> + <source>Enter your mail adress and passphrase</source> + <translation>E-posta adresinizi ve parolanızı girin</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="567"/> + <source>Set input and output parameters</source> + <translation>Giriş ve çıkış parametrelerini ayarla</translation> + </message> + <message> + <location filename="mlockmainwindow.cpp" line="572"/> + <source>Set encryption options for %1</source> + <translation>%1 için şifreleme seçeneklerini ayarla</translation> + </message> +</context> +<context> + <name>ShowManualDialog</name> + <message> + <location filename="showmanualdialog.ui" line="14"/> + <source>MikroLock manual</source> + <oldsource>mlock manual</oldsource> + <translation>MikroLock manual</translation> + </message> +</context> +</TS> diff --git a/talimatname/genel/m/mikrolock/talimat b/talimatname/genel/m/mikrolock/talimat new file mode 100644 index 000000000..6c8616b4a --- /dev/null +++ b/talimatname/genel/m/mikrolock/talimat @@ -0,0 +1,40 @@ +# Tanım: Minilock dosya biçiminin, şifrelenmiş miniLock dosyalarını okuyabilen ve yazabilen hızlı yerel bir uygulaması. +# URL: http://andre-simon.de/doku/mlock/en/mlock.php +# Paketçi: Cihan_Alkan +# Gerekler: qt5 libsodium +# Grup: güvenlik + +isim=mikrolock +surum=1.1 +devir=1 +kaynak=(http://andre-simon.de/zip/$isim-$surum.tar.bz2 + mikrolock_tr_TR.ts) + +derle() { + [ ! -f /usr/bin/qmake ] && ln -s /usr/bin/qmake-qt5 /usr/bin/qmake + cd $isim-$surum + make help + make + make gui + + make DESTDIR="$PKG" install + make DESTDIR="$PKG" install-gui + +# Başlatıcı +mkdir -pv $PKG/usr/share/applications && +cat > $PKG/usr/share/applications/$isim.desktop << "EOF" && +[Desktop Entry] +Version=1.0 +Name=MikroLock +Type=Application +Comment=MikroLock, şifreli miniLock dosyalarını okur ve yazar. +Exec=mikrolock-gui +TryExec=mikrolock-gui +Icon=mikrolock +Categories=Utility;TextTools; +StartupNotify=true +EOF + + lrelease-qt5 ../mikrolock_tr_TR.ts -qm $PKG/usr/share/mikrolock/l10n/mikrolock_tr_TR.qm + +} diff --git a/talimatname/genel/m/milis-yukleyici/talimat b/talimatname/genel/m/milis-yukleyici/talimat new file mode 100644 index 000000000..685bbb0f4 --- /dev/null +++ b/talimatname/genel/m/milis-yukleyici/talimat @@ -0,0 +1,26 @@ +# Tanım: Milis linux python3 qt5 tabanlı kurulum aracı +# URL: https://github.com/sonakinci41/Milis-Yukleyici +# Paketçi: milisarge +# Gerekler: python3 python3-pip python3-yaml python3-qt5 python3-parted python3-pytz + +isim=milis-yukleyici +surum=1.0 +devir=1 +kaynak=(https://github.com/sonakinci41/Milis-Yukleyici/archive/master.tar.gz::$isim-$surum.tar.gz + yukleyici.desktop) + +derle() { + + install -d $PKG/usr/share/milis-yukleyici + install -d $PKG/usr/share/applications + install -d $PKG/usr/bin + cp -r $SRC/Milis-Yukleyici-master/* $PKG/usr/share/milis-yukleyici + cp $SRC/yukleyici.desktop $PKG/usr/share/applications/yukleyici.desktop + chmod 755 $PKG/usr/share/milis-yukleyici/milis-kur + cat > "$PKG/usr/bin/milis-kurulum" << EOF +#!/bin/sh +python3 /usr/share/$isim/milis-kur "\$@" +EOF + + chmod +x "$PKG"/usr/bin/milis-kurulum +} diff --git a/talimatname/genel/m/milis-yukleyici/yukleyici.desktop b/talimatname/genel/m/milis-yukleyici/yukleyici.desktop new file mode 100644 index 000000000..cfe36f390 --- /dev/null +++ b/talimatname/genel/m/milis-yukleyici/yukleyici.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Path=/usr/share/milis-yukleyici +Name=Milis Linux Yükleyicisi +Comment=Milis Linux Yükleyicisi +Exec=milis-kurulum +Terminal=false +Type=Application +Icon=/sources/milis.git/ayarlar/milislogo.png +Categories=System; +StartupNotify=false diff --git a/talimatname/genel/m/milislinux-saat/kk_milislinux-saat b/talimatname/genel/m/milislinux-saat/kk_milislinux-saat new file mode 100755 index 000000000..1dc84ad76 --- /dev/null +++ b/talimatname/genel/m/milislinux-saat/kk_milislinux-saat @@ -0,0 +1,53 @@ +#!/bin/sh + +# Milislinux uyarlı zaman ayarlama betiği + +if [ ! -d "/var/lib/pkg/DB/xdialog" ];then + echo "xdialog paketini kurunuz-> mps kur xdialog" + exit 1 +fi + +HWCLOCK=/sbin/hwclock +if [ -f "/usr/sbin/hwclock" ];then + HWCLOCK=/usr/sbin/hwclock +fi + +# Title to be used for all Xdialog boxes. +TITLE="Saat Ayarlama Aracı" + +# Now check for hwclock existence... +if ! [ -f $HWCLOCK ] ; then + Xdialog --title "$TITLE" --msgbox "$HWCLOCK bulunamadı..." 0 0 + exit 0 +fi + +# Get the date (returned in DD/MM/YYYY format by Xdialog. +ENTEREDDATE=`Xdialog --stdout --title "$TITLE" --calendar "Tarihi ayarlayın..." 0 0 0 0 0` +#xmessage $? + +if [ "$?" != "0" ] ; then + Xdialog --title "$TITLE" --msgbox "İptal edildi." 0 0 + exit 0 +fi + +# Convert the date to the MM/DD/YYYY format needed by hwclock. +NEWDATE=`echo "$ENTEREDDATE" | awk --source 'BEGIN { FS="/" }' --source '{ print $2 "/" $1 "/" $3 }'` + +# Get the time in HH:MM:SS format. +NEWTIME=`Xdialog --stdout --title "$TITLE" --timebox "Zamanı ayarlayın..." 0 0` +if [ "$?" != "0" ] ; then + Xdialog --title "$TITLE" --msgbox "Aborted." 0 0 + exit 0 +fi + + +# Set the hardware clock (RTC) and then the system clock + +Xdialog --title "bilgi" --msgbox "Gerekli ayarlamalar yapılıyor..." 0 0 + +$HWCLOCK --set --date="$NEWDATE $NEWTIME"&&$HWCLOCK --hctosys + +THEDATE=`date` +Xdialog --title "bilgi" --msgbox "Zaman ayarlama yapıldı. $THEDATE" 0 0 + +pgrep xfce4-panel && xfce4-panel -r diff --git a/talimatname/genel/m/milislinux-saat/milislinux-saat.desktop b/talimatname/genel/m/milislinux-saat/milislinux-saat.desktop new file mode 100644 index 000000000..78c02c51c --- /dev/null +++ b/talimatname/genel/m/milislinux-saat/milislinux-saat.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Path=/usr/bin/milis-saat +Name=Milis Saat Ayarlama Uygulaması +Comment=Milis Saat Ayarlama Uygulaması +Exec=sudo /usr/bin/milislinux-saat +Terminal=false +Type=Application +Icon=milislinux-saat +Categories=System; diff --git a/talimatname/genel/m/milislinux-saat/milislinux-saat.xpm b/talimatname/genel/m/milislinux-saat/milislinux-saat.xpm new file mode 100644 index 000000000..4790492ee --- /dev/null +++ b/talimatname/genel/m/milislinux-saat/milislinux-saat.xpm @@ -0,0 +1,23 @@ +/* XPM */ +static char * icon_xpm[] = { +"16 16 4 1", +" c None", +". c #000000", +"+ c #C0C0C0", +"@ c #FFFFFF", +" ", +" ..... ", +" ..@@@@@.. ", +" .+@@@.@@@+. ", +" .@@@@.@@@@. ", +" .@@@@@.@@@@@. ", +" .@@@@@.@@@@@. ", +" .@@@@..@@@@@. ", +" .@@@@@..@@@@. ", +" .@@@@@.@.@@@. ", +" .@@@@@@@@@. ", +" .+@@@@@@@+. ", +" ..@@@@@.. ", +" ..... ", +" ", +" "}; diff --git a/talimatname/genel/m/milislinux-saat/talimat b/talimatname/genel/m/milislinux-saat/talimat new file mode 100644 index 000000000..fdf330a2e --- /dev/null +++ b/talimatname/genel/m/milislinux-saat/talimat @@ -0,0 +1,20 @@ +# Tanım: milislinux saat ayarlama uygulaması +# URL: http://milislinux.org +# Paketçi: milisarge +# Gerekler: xdialog + +isim=milislinux-saat +surum=1.0 +devir=2 +kaynak=(kk_milislinux-saat + milislinux-saat.xpm + milislinux-saat.desktop) + +derle() { + install -d "$PKG/usr/share/pixmaps" + install -d "$PKG/usr/share/applications" + install -d "$PKG/usr/bin" + cp $SRC/kk_milislinux-saat "$PKG/usr/bin/milislinux-saat" + cp $SRC/milislinux-saat.desktop "$PKG/usr/share/applications" + cp $SRC/milislinux-saat.xpm "$PKG/usr/share/pixmaps" +} diff --git a/talimatname/genel/m/minidlna/minidlna b/talimatname/genel/m/minidlna/minidlna new file mode 100644 index 000000000..99ae2e948 --- /dev/null +++ b/talimatname/genel/m/minidlna/minidlna @@ -0,0 +1,55 @@ +#!/bin/sh +######################################################################## +# Begin minidlna +# +# Tanım: ReadyMedia is a simple media server software +# +# Authors : tnut +# +# Version : LFS x.x saravane +# +# Notes : +# +######################################################################## + +### BEGIN INIT INFO +# Provides: minidlna +# Required-Start: +# Should-Start: +# Required-Stop: +# Should-Stop: +# Default-Start: +# Default-Stop: +# Short-Tanım: +# Tanım: +# X-LFS-Provided-By: +### END INIT INFO + +. /lib/lsb/init-functions + +case "${1}" in + start) + log_info_msg "Starting ReadyMedia..." + start_daemon /usr/sbin/minidlnad + ;; + + stop) + log_info_msg "Stopping ReadyMedia..." + killproc /usr/sbin/minidlnad + ;; + + restart) + ${0} stop + sleep 1 + ${0} start + ;; + + *) + echo "Usage: ${0} {start|stop|restart}" + exit 1 + ;; +esac + +exit 0 + +# End minidlna diff --git a/talimatname/genel/m/minidlna/talimat b/talimatname/genel/m/minidlna/talimat new file mode 100644 index 000000000..1155cb92f --- /dev/null +++ b/talimatname/genel/m/minidlna/talimat @@ -0,0 +1,44 @@ +# Tanım: Bir DLNA / UPnP-AV Medya sunucusu (ReadyDLNA olarak da bilinir) +# URL: http://minidlna.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: libexif libjpeg-turbo libid3tag flac libvorbis ffmpeg sqlite + +isim=minidlna +surum=1.1.4 +devir=1 + +kaynak=(http://downloads.sourceforge.net/project/$isim/$isim/$surum/minidlna-$surum.tar.gz + minidlna) + +derle() { + cd $isim-$surum + sed -i 's|#user=.*|user=nobody|g' minidlna.conf + ./configure --prefix=/usr + make + make DESTDIR=$PKG install + install -Dm644 minidlna.conf $PKG/etc/minidlna.conf + + # Man + install -Dm644 minidlna.conf.5 \ + $PKG/usr/share/man/man5/minidlna.conf.5 + + install -Dm644 minidlnad.8 \ + $PKG/usr/share/man/man8/minidlnad.8 + + # Service + mkdir -p $PKG/etc/rc.d/init.d + install -Dm754 $SRC/minidlna $PKG/etc/rc.d/init.d/minidlna + for i in 0 1 6 + do + mkdir -p $PKG/etc/rc.d/rc${i}.d + cd $PKG/etc/rc.d/rc${i}.d + ln -s ../init.d/minidlna K10minidlna + done + for i in 2 3 4 5 + do + mkdir -p $PKG/etc/rc.d/rc${i}.d + cd $PKG/etc/rc.d/rc${i}.d + ln -s ../init.d/minidlna S90minidlna + done + +} diff --git a/talimatname/genel/m/mininet/talimat b/talimatname/genel/m/mininet/talimat new file mode 100644 index 000000000..d03f8130b --- /dev/null +++ b/talimatname/genel/m/mininet/talimat @@ -0,0 +1,24 @@ +# Tanım: İşlem tabanlı ağ emülatörü +# URL: https://github.com/mininet/mininet/ +# Paketçi: Cihan_Alkan +# Gerekler: help2man python-setuptools python pynetworkx net-tools iputils iperf openvswitch +# Grup: ağ + +isim=mininet +surum=2.2.1 +devir=1 +kaynak=(https://github.com/mininet/mininet/archive/$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + + cd $isim-$surum + grep python Makefile + grep -rIil '#!.*python' . | xargs -n1 sed -i 's:#!/usr/bin/env python:#!/usr/bin/env python2:g' + grep -rIil '#!.*python' . | xargs -n1 sed -i 's:#!/usr/bin/python:#!/usr/bin/python2:g' + sed 's:BINDIR = /usr/bin:BINDIR = $(DESTDIR)/usr/bin:g' -i Makefile + sed 's:MANDIR = /usr/share/man/man1:MANDIR = $(DESTDIR)/usr/share/man/man1:g' -i Makefile + sed 's:install $(MNEXEC) $(BINDIR):mkdir -p $(BINDIR); install $(MNEXEC) $(BINDIR):g' -i Makefile + sed 's:install $(MANPAGES) $(MANDIR):mkdir -p $(MANDIR);install $(MANPAGES) $(MANDIR):g' -i Makefile + sed 's:python setup.py:python setup.py install --prefix=/usr --root="$(DESTDIR)" --optimize=1:g' -i Makefile + make DESTDIR="${PKG}" install +} diff --git a/talimatname/genel/m/miniupnpc/talimat b/talimatname/genel/m/miniupnpc/talimat new file mode 100644 index 000000000..2be9d3d0f --- /dev/null +++ b/talimatname/genel/m/miniupnpc/talimat @@ -0,0 +1,16 @@ +# Tanım: Internet Ağ Geçidi Aygıtlarına erişmek için küçük bir UPnP istemci kitaplığı/aracı +# URL: http://miniupnp.free.fr +# Paketçi: milisarge +# Gerekler: + +isim=miniupnpc +surum=1.9 +devir=1 + +kaynak=(http://miniupnp.free.fr/files/$isim-$surum.tar.gz) + +derle() { + cd $SRC/$isim-$surum + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/minizip/talimat b/talimatname/genel/m/minizip/talimat new file mode 100644 index 000000000..e46602402 --- /dev/null +++ b/talimatname/genel/m/minizip/talimat @@ -0,0 +1,27 @@ +# Tanım: Gzip ve PKZIP'de bulunan deflate sıkıştırma yöntemini uygulayan sıkıştırma kitaplığı +# URL: https://www.zlib.net/ +# Paketçi: milisarge +# Gerekler: + +isim=minizip +surum=1.2.11 +devir=1 +kaynak=(https://zlib.net/zlib-${surum}.tar.gz) + +derle() { + cd zlib-$surum + grep -A 24 '^ Copyright' zlib.h > LICENSE + ./configure --prefix=/usr + make + + cd contrib/minizip + cp Makefile Makefile.orig + cp ../README.contrib readme.txt + autoreconf --install + ./configure --prefix=/usr --enable-static=no + make + + cd ${SRC}/zlib-$surum/contrib/minizip + make install DESTDIR=${PKG} + install -D -m644 ${SRC}/zlib-$surum/LICENSE ${PKG}/usr/share/licenses/minizip/LICENSE +} diff --git a/talimatname/genel/m/mixxx/talimat b/talimatname/genel/m/mixxx/talimat new file mode 100644 index 000000000..9f3f78831 --- /dev/null +++ b/talimatname/genel/m/mixxx/talimat @@ -0,0 +1,18 @@ +# Tanım: Dijital DJ'ler için ücretsiz açık kaynaklı yazılım. +# URL: http://www.mixxx.org/ +# Paketçi: milisarge +# Gerekler: fftw libid3tag libmad libogg libshout libsndfile libusb libmp4v2 portaudio portmidi ffmpeg taglib protobuf qt4 taglib vamp-plugin-sdk xorg-glu xorg-mesa scons + +isim=mixxx +surum=1.11.0 +devir=2 + +kaynak=(http://downloads.mixxx.org/$isim-$surum/$isim-$surum-src.tar.gz) + +derle() { +cd $SRC/$isim-$surum +scons qtdir=/usr prefix=/usr faad=1 +scons qtdir=/usr prefix=/usr install_root=$PKG/usr install +} + + diff --git a/talimatname/genel/m/mlocate/mlocate.kur-kos b/talimatname/genel/m/mlocate/mlocate.kur-kos new file mode 100644 index 000000000..656f85d2b --- /dev/null +++ b/talimatname/genel/m/mlocate/mlocate.kur-kos @@ -0,0 +1 @@ +groupadd locate diff --git a/talimatname/genel/m/mlocate/talimat b/talimatname/genel/m/mlocate/talimat new file mode 100644 index 000000000..410aeadfa --- /dev/null +++ b/talimatname/genel/m/mlocate/talimat @@ -0,0 +1,28 @@ +# Tanım: locate/updatedb birleştirilmiş uygulaması +# Url: https://fedorahosted.org/mlocate/ +# Paketçi: milisarge +# Gerekler: + +isim=mlocate +surum=0.26 +devir=1 + +kaynak=(https://fedorahosted.org/releases/m/l/mlocate/mlocate-${surum}.tar.xz + updatedb.conf) + +derle() { + cd ${isim}-$surum + sed -i '/^groupname /s/mlocate/locate/' Makefile.in + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib + make + make DESTDIR="${PKG}" install + + chgrp 21 "${PKG}/usr/bin/locate" + chmod 2755 "${PKG}/usr/bin/locate" + ln -s locate "${PKG}/usr/bin/slocate" + + install -dm755 "${PKG}/var/lib" + install -dm750 -g21 "${PKG}/var/lib/locate" + + install -Dm644 ../updatedb.conf "${PKG}/etc/updatedb.conf" +} diff --git a/talimatname/genel/m/mlocate/updatedb.conf b/talimatname/genel/m/mlocate/updatedb.conf new file mode 100644 index 000000000..633c17482 --- /dev/null +++ b/talimatname/genel/m/mlocate/updatedb.conf @@ -0,0 +1,4 @@ +PRUNE_BIND_MOUNTS = "yes" +PRUNEFS = "9p afs anon_inodefs auto autofs bdev binfmt_misc cgroup cifs coda configfs cpuset cramfs debugfs devpts devtmpfs ecryptfs exofs ftpfs fuse fuse.encfs fuse.sshfs fusectl gfs gfs2 hugetlbfs inotifyfs iso9660 jffs2 lustre mqueue ncpfs nfs nfs4 nfsd pipefs proc ramfs rootfs rpc_pipefs securityfs selinuxfs sfs shfs smbfs sockfs sshfs sysfs tmpfs ubifs udf usbfs vboxsf" +PRUNENAMES = ".git .hg .svn" +PRUNEPATHS = "/afs /media /mnt /net /sfs /tmp /udev /var/cache /var/lib/pacman/local /var/lock /var/run /var/spool /var/tmp" diff --git a/talimatname/genel/m/mlt/talimat b/talimatname/genel/m/mlt/talimat new file mode 100644 index 000000000..37550ff24 --- /dev/null +++ b/talimatname/genel/m/mlt/talimat @@ -0,0 +1,28 @@ +# Tanım: Açık kaynak multimedya çerçevesi +# URL: http://www.mltframework.org +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: ladspa frei0r-plugins libdv sdl-image libsamplerate sox ffmpeg vid-stab qt5 jack libexif swig movit eigen3 + +isim=mlt +surum=6.2.0 +devir=1 + +kaynak=(https://github.com/mltframework/mlt/archive/v$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --avformat-swscale \ + --enable-gpl --enable-gpl3 \ + --qt-libdir=/usr/lib --qt-includedir=/usr/include/qt + make + make DESTDIR=$PKG install + + # mlt python bindings + cd src/swig/python + ./build + mkdir -p $PKG/usr/lib/python2.7/ + install -m755 mlt.py $PKG/usr/lib/python2.7/ + install -m755 _mlt.so $PKG/usr/lib/python2.7/ + install -m755 mlt_wrap.o $PKG/usr/lib/python2.7/ +} diff --git a/talimatname/genel/m/mlton/talimat b/talimatname/genel/m/mlton/talimat new file mode 100644 index 000000000..7c392acb4 --- /dev/null +++ b/talimatname/genel/m/mlton/talimat @@ -0,0 +1,16 @@ +# Tanım: standart ML derleyicisi +# URL: http://mlton.org/ +# Paketçi: milisarge +# Gerekler: setconf python + +isim=mlton +surum=20130715 +devir=1 +kaynak=(http://downloads.sourceforge.net/project/$isim/$isim/$surum/$isim-$surum.src.tgz + http://downloads.sourceforge.net/project/$isim/$isim/$surum/$isim-$surum-1.amd64-linux.tgz) + +derle() { + setconf usr/bin/mlton lib="$SRC/usr/lib/mlton" + PATH="$PATH:$SRC/usr/bin" make -C "$isim-$surum" -j1 all-no-docs + make -C "$isim-$surum" DESTDIR="$PKG" -j1 install-no-docs +} diff --git a/talimatname/genel/m/mobile-broadband-provider-info/talimat b/talimatname/genel/m/mobile-broadband-provider-info/talimat new file mode 100644 index 000000000..ce6e0c05f --- /dev/null +++ b/talimatname/genel/m/mobile-broadband-provider-info/talimat @@ -0,0 +1,17 @@ +# Tanım: Çeşitli servis sağlayıcılar için mobil geniş bant ayarları +# URL: http://git.gnome.org/browse/mobile-broadband-provider-info/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: + +isim=mobile-broadband-provider-info +surum=20151214 +devir=1 + +kaynak=(http://download.gnome.org/sources/$isim/$surum/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/moc/talimat b/talimatname/genel/m/moc/talimat new file mode 100644 index 000000000..d92773cd3 --- /dev/null +++ b/talimatname/genel/m/moc/talimat @@ -0,0 +1,25 @@ +# Tanım: Konsol müzik çalar. +# URL: http://moc.daper.net/ +# Paketçi: milisarge +# Gerekler: curl libsndfile jack libid3tag libmad + + +isim=moc +surum=2.5.1 +devir=1 +kaynak=(ftp://ftp.daper.net/pub/soft/$isim/stable/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + autoreconf -f -i -Wall,no-obsolete + ./configure --prefix=/usr --without-rcc \ + --with-alsa --with-jack --with-aac --with-mp3 \ + --with-musepack --with-vorbis --with-flac --with-wavpack \ + --with-sndfile --with-modplug --with-ffmpeg --with-speex \ + --with-samplerate --with-curl --with-sidplay2 --disable-debug + + make + make DESTDIR=$PKG install + install -D -m 0644 -t $PKG/usr/share/moc/ config.example keymap.example + rm -rf $PKG/usr/share/doc +} diff --git a/talimatname/genel/m/mod-dnssd/fix_undefined_reference.patch b/talimatname/genel/m/mod-dnssd/fix_undefined_reference.patch new file mode 100644 index 000000000..e0567c613 --- /dev/null +++ b/talimatname/genel/m/mod-dnssd/fix_undefined_reference.patch @@ -0,0 +1,21 @@ +diff --git a/src/mod_dnssd.c b/src/mod_dnssd.c +index 6179276..3363701 100644 (file) +--- a/src/mod_dnssd.c ++++ b/src/mod_dnssd.c +@@ -24,6 +24,7 @@ + #include <ap_config.h> + #include <apr_strings.h> + #include <unixd.h> ++#include <mod_unixd.h> + #include <apr_signal.h> + #include <mpm_common.h> + +@@ -576,7 +577,7 @@ static void child_process(apr_pool_t *p, server_rec *server, struct global_confi + + ap_assert(d); + +- unixd_setup_child(); ++ ap_unixd_setup_child(); + + if (pipe(sigterm_pipe_fds) < 0) { + ap_log_error(APLOG_MARK, APLOG_ERR, 0, r.main_server, "pipe() failed: %s", strerror(errno)); diff --git a/talimatname/genel/m/mod-dnssd/talimat b/talimatname/genel/m/mod-dnssd/talimat new file mode 100644 index 000000000..c1650fc57 --- /dev/null +++ b/talimatname/genel/m/mod-dnssd/talimat @@ -0,0 +1,21 @@ +# Tanım: Apache için Zeroconf modülü +# URL: http://0pointer.de/lennart/projects/mod_dnssd +# Paketçi: milisarge +# Gerekler: avahi apache + +_isim=mod_dnssd +isim=mod-dnssd +surum=0.6 +devir=1 + +kaynak=(http://0pointer.de/lennart/projects/${_name}/${_name}-${surum}.tar.gz + fix_undefined_reference.patch) + +derle() { + cd ${_name}-$surum + patch -p1 < ${SRC}/fix_undefined_reference.patch + ./configure --prefix=/usr --disable-lynx + make + install -D -m755 src/.libs/mod_dnssd.so ${PKG}/usr/lib/httpd/modules/mod_dnssd.so +} + diff --git a/talimatname/genel/m/modemmanager/talimat b/talimatname/genel/m/modemmanager/talimat new file mode 100644 index 000000000..00eced261 --- /dev/null +++ b/talimatname/genel/m/modemmanager/talimat @@ -0,0 +1,26 @@ +# Tanım: Mobil geniş bant modem yönetim hizmeti +# URL: http://www.freedesktop.org/wiki/Software/ModemManager/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: intltool glib gobject-introspection libgudev polkit libmbim vala libqmi + +isim=modemmanager +surum=1.4.14 +devir=1 +_isim=ModemManager + +kaynak=( http://www.freedesktop.org/software/${_name}/${_name}-$surum.tar.xz) + + +derle() { +cd ${_name}-$surum +./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-gtk-doc \ + --enable-more-warnings=no \ + --disable-static + +make +make DESTDIR=$PKG install + +} diff --git a/talimatname/genel/m/moka-icon-theme/moka-icon-theme.kur-kos b/talimatname/genel/m/moka-icon-theme/moka-icon-theme.kur-kos new file mode 100644 index 000000000..b09e954be --- /dev/null +++ b/talimatname/genel/m/moka-icon-theme/moka-icon-theme.kur-kos @@ -0,0 +1 @@ +gtk-update-icon-cache -q -t -f /usr/share/icons/Moka diff --git a/talimatname/genel/m/moka-icon-theme/talimat b/talimatname/genel/m/moka-icon-theme/talimat new file mode 100644 index 000000000..a95f00c8f --- /dev/null +++ b/talimatname/genel/m/moka-icon-theme/talimat @@ -0,0 +1,17 @@ +# Tanım: Moka, net, basit ve tutarlı olacak şekilde tasarlanmış, stil sahibi bir Linux masaüstü simge setidir. Moka Icon Teması (simge varlıkları ve kaynakları) bir Creative Commons Attribution-ShareAlike 4.0 lisansı altındadır. +# URL: https://github.com/snwh/moka-icon-theme +# Paketçi: yasarciv +# Gerekler: gtk-update-icon-cache faba-icon-theme + + +isim=moka-icon-theme +surum=5.3.5 +devir=1 +kaynak=(https://github.com/snwh/$isim/archive/v$surum.tar.gz) + +derle() { +cd $isim-$surum + bash autogen.sh --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/mono-addins/talimat b/talimatname/genel/m/mono-addins/talimat new file mode 100644 index 000000000..db4e29578 --- /dev/null +++ b/talimatname/genel/m/mono-addins/talimat @@ -0,0 +1,27 @@ +# Tanım: mono eklentileri +# URL: http://www.mono-project.com/Mono.Addins +# Paketçi: milisarge +# Gerekler: gtk-sharp2 gtk-sharp3 mono +# Grup: geliştirme + +isim=mono-addins +surum=1.3.3 +devir=1 +kaynak=(https://github.com/mono/mono-addins/archive/mono-addins-$surum.tar.gz + https://github.com/Microsoft/msbuild/releases/download/mono-hosted-msbuild-v0.03/mono_msbuild_d25dd923839404bd64cc63f420e75acf96fc75c4.zip) + +derle() { + local msbuild="$SRC/msbuild/MSBuild.exe" + cd ${isim}-${isim}-${surum} + ./autogen.sh --prefix=/usr --enable-gui + make + mono "$msbuild" Mono.Addins/Mono.Addins.csproj /p:WarningLevel=0;Configuration=Release + mono "$msbuild" Mono.Addins.CecilReflector/Mono.Addins.CecilReflector.csproj /p:WarningLevel=0;Configuration=Release + mono "$msbuild" Mono.Addins.Gui/Mono.Addins.Gui.csproj /p:WarningLevel=0;Configuration=Release + mono "$msbuild" Mono.Addins.GuiGtk3/Mono.Addins.GuiGtk3.csproj /p:WarningLevel=0;Configuration=Release + mono "$msbuild" Mono.Addins.MSBuild/Mono.Addins.MSBuild.csproj /p:WarningLevel=0;Configuration=Release + mono "$msbuild" Mono.Addins.Setup/Mono.Addins.Setup.csproj /p:WarningLevel=0;Configuration=Release + cd $SRC/${isim}-${isim}-${surum} + make DESTDIR=$PKG install + install -Dm644 COPYING ${PKG}/usr/share/licenses/${isim}/COPYING +} diff --git a/talimatname/genel/m/mono/mono.binfmt.d b/talimatname/genel/m/mono/mono.binfmt.d new file mode 100644 index 000000000..3075b0dc5 --- /dev/null +++ b/talimatname/genel/m/mono/mono.binfmt.d @@ -0,0 +1 @@ +:CLR:M::MZ::/usr/bin/mono: diff --git a/talimatname/genel/m/mono/mono.kur-kos b/talimatname/genel/m/mono/mono.kur-kos new file mode 100644 index 000000000..d522e0b92 --- /dev/null +++ b/talimatname/genel/m/mono/mono.kur-kos @@ -0,0 +1 @@ +ln -sf /usr/bin/mono-sgen /usr/bin/mono diff --git a/talimatname/genel/m/mono/talimat b/talimatname/genel/m/mono/talimat new file mode 100644 index 000000000..5d43bdac9 --- /dev/null +++ b/talimatname/genel/m/mono/talimat @@ -0,0 +1,31 @@ +# Tanım: .NET'in ücretsiz uygulanması +# URL: http://www.mono-project.com/ +# Paketçi: milisarge +# Gerekler: ca-certificates libgdiplus python + +isim=mono +surum=5.0.0.94 +devir=1 + +kaynak=(http://download.mono-project.com/sources/$isim/$isim-$surum.tar.bz2 + mono.binfmt.d) + +derle() { + cd $isim-${surum%.*} + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --bindir=/usr/bin \ + --sbindir=/usr/bin \ + --disable-quiet-build \ + --disable-system-aot \ + --with-mcs-docs=no + make + make DESTDIR=$PKG install + cd $SRC/${isim}-${surum%.*}/mcs/jay + make DESTDIR=$PKG prefix=/usr INSTALL=../../install-sh install + + # install binfmt conf file and pathes + install -D -m644 $SRC/mono.binfmt.d $PKG/usr/lib/binfmt.d/mono.conf + #fix .pc file to be able to request mono on what it depends, fixes #go-oo build + sed -i -e "s:#Requires:Requires:" ${PKG}/usr/lib/pkgconfig/mono.pc +} diff --git a/talimatname/genel/m/moreutils/talimat b/talimatname/genel/m/moreutils/talimat new file mode 100644 index 000000000..17fd16bde --- /dev/null +++ b/talimatname/genel/m/moreutils/talimat @@ -0,0 +1,19 @@ +# Tanım: ek unix araçları +# URL: https://joeyh.name/code/moreutils/ +# Paketçi: milisarge +# Gerekler: docbook2x docbook-xml perl-xml-sax git perl-timedate perl-time-duration + +isim=moreutils +surum=0.61 +devir=1 +kaynak=(https://github.com/rtlanceroad/$isim/archive/$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + make DOCBOOK2XMAN=docbook2man + make PREFIX="$PKG"/usr install + chmod 0644 "$PKG"/usr/share/man/man1/* + mv "$PKG"/usr/share/man/man1/ts.1 "$PKG"/usr/share/man/man1/ts.1moreutils + mv "$PKG"/usr/share/man/man1/parallel.1 "$PKG"/usr/share/man/man1/parallel-moreutils.1 + mv "$PKG"/usr/bin/parallel "$PKG"/usr/bin/parallel-moreutils +} diff --git a/talimatname/genel/m/mosh/talimat b/talimatname/genel/m/mosh/talimat new file mode 100644 index 000000000..9425fa0bb --- /dev/null +++ b/talimatname/genel/m/mosh/talimat @@ -0,0 +1,24 @@ +# Tanım: Dolaşıma izin veren, aralıklı bağlantıyı destekleyen ve kullanıcı tuş vuruşlarının akıllı yerel eko ve hat düzenini sağlayan uzak terminal uygulaması. +# URL: http://mosh.mit.edu/ +# Paketçi: milisarge +# Gerekler: libutempter perl-io-tty protobuf + +isim=mosh +surum=1.2.4 +devir=1 + +kaynak=(http://mosh.mit.edu/$isim-$surum.tar.gz) + +derle(){ + cd $isim-$surum + ./autogen.sh + ./configure --prefix=/usr + make + make DESTDIR=$PKG install + install -Dm644 conf/bash_completion.d/$isim \ + $PKG/usr/share/bash-completion/completions/$isim +} + + + +# NuTyX Pkgfile (http://nutyx.org) diff --git a/talimatname/genel/m/mosquitto-php/talimat b/talimatname/genel/m/mosquitto-php/talimat new file mode 100644 index 000000000..52ffda562 --- /dev/null +++ b/talimatname/genel/m/mosquitto-php/talimat @@ -0,0 +1,28 @@ +# Tanım: Açık Kaynaklı MQTT v3.1 Broker Php kütüphanesi +# URL: https://github.com/mgdm/Mosquitto-PHP +# Paketçi: Cihan_Alkan +# Gerekler: mosquitto php +# Grup: kütüphane + +isim=mosquitto-php +surum=0.2 +devir=1 + +kaynak=() + +derle() { + if [ ! -d $DERLEME_KAYNAKDIZIN/$isim ];then + git clone https://github.com/mgdm/Mosquitto-PHP $DERLEME_KAYNAKDIZIN/$isim + else + cd $DERLEME_KAYNAKDIZIN/$isim + git pull + cd - + fi + cp -r $DERLEME_KAYNAKDIZIN/$isim $SRC/ + cd $SRC/$isim +phpize +./configure --with-mosquitto=/usr/lib/libmosquitto +make +make INSTALL_ROOT=$PKG install + +} diff --git a/talimatname/genel/m/mosquitto/talimat b/talimatname/genel/m/mosquitto/talimat new file mode 100644 index 000000000..492daaa4c --- /dev/null +++ b/talimatname/genel/m/mosquitto/talimat @@ -0,0 +1,25 @@ +# Tanım: Açık Kaynaklı MQTT v3.1 Broker'ı +# URL: http://mosquitto.org/ +# Paketçi: Cihan_Alkan +# Gerekler: mercurial python docbook-xsl c-ares libwebsockets + +isim=mosquitto +surum=1.4.14 +devir=1 + +kaynak=(https://mosquitto.org/files/source/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + + # FIX upstream by making SBINDIR=foo or use CMAKE + sed -i 's|/sbin|/bin|g' src/Makefile + make WITH_WEBSOCKETS=yes + + make prefix=/usr DESTDIR="$PKG" install + + # Shipped in git. + install -Dm644 LICENSE.txt "$PKG/usr/share/licenses/$isim/LICENSE" + + mv "$PKG/etc/$isim/$isim.conf.example" "$PKG/etc/$isim/$isim.conf" +} diff --git a/talimatname/genel/m/mousepad/mousepad.kur-kos b/talimatname/genel/m/mousepad/mousepad.kur-kos new file mode 100644 index 000000000..5cb939023 --- /dev/null +++ b/talimatname/genel/m/mousepad/mousepad.kur-kos @@ -0,0 +1,2 @@ +update-desktop-database /usr/share/applications +/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas/ diff --git a/talimatname/genel/m/mousepad/talimat b/talimatname/genel/m/mousepad/talimat new file mode 100644 index 000000000..863acfc90 --- /dev/null +++ b/talimatname/genel/m/mousepad/talimat @@ -0,0 +1,24 @@ +# Tanım: Mousepad, Xfce masaüstü ortamı için basit bir GTK+2 metin editörüdür. +# URL: http://www.xfce.org/projects/mousepad/ +# Paketçi: milisarge +# Gerekler: dbus-glib startup-notification xorg-libxrandr xorg-libxinerama xorg-libsm desktop-file-utils gtksourceview3 gtk-update-icon-cache + +isim=mousepad +surum=0.4.0 +devir=4 + +kaynak=(http://archive.xfce.org/src/apps/$isim/${surum%.*}/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib/xfce4 \ + --localstatedir=/var \ + --disable-static \ + --disable-debug \ + --enable-gtk3 + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/movit/talimat b/talimatname/genel/m/movit/talimat new file mode 100644 index 000000000..36402a043 --- /dev/null +++ b/talimatname/genel/m/movit/talimat @@ -0,0 +1,17 @@ +# Tanım: Modern video araç seti +# URL: http://movit.sesse.net/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: eigen3 gtest sdl2 fftw libepoxy + +isim=movit +surum=1.3.2 +devir=1 + +kaynak=(https://movit.sesse.net/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/mozo/mozo.kur-kos b/talimatname/genel/m/mozo/mozo.kur-kos new file mode 100755 index 000000000..89379a5ed --- /dev/null +++ b/talimatname/genel/m/mozo/mozo.kur-kos @@ -0,0 +1,3 @@ +/usr/bin/gtk-update-icon-cache -f -t /usr/share/icons/hicolor + +/usr/bin/update-desktop-database diff --git a/talimatname/genel/m/mozo/talimat b/talimatname/genel/m/mozo/talimat new file mode 100644 index 000000000..5f25cfc48 --- /dev/null +++ b/talimatname/genel/m/mozo/talimat @@ -0,0 +1,18 @@ +# Tanım: MATE menü düzenleme aracı +# URL: http://www.mate-desktop.org/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: intltool gtk3 mate-menus python-gobject +# Grup: mate + +isim=mozo +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + PYTHON=/usr/bin/python2 ./configure \ + --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/mpd/servis b/talimatname/genel/m/mpd/servis new file mode 100644 index 000000000..40ce0fdd1 --- /dev/null +++ b/talimatname/genel/m/mpd/servis @@ -0,0 +1,28 @@ +#!/bin/sh +# +# /etc/init.d/mpd: start/stop mpd daemon +# + +case $1 in +start) + /usr/bin/mpd + ;; +stop) + if [ -f /var/run/mpd.pid ]; then + kill $(< /var/run/mpd.pid) + rm -f /var/run/mpd.pid + else + pkill /usr/bin/mpd + fi +;; +restart) + $0 stop + sleep 2 + $0 start + ;; +*) + echo "usage: $0 [start|stop|restart|status]" + ;; +esac + +# End of file diff --git a/talimatname/genel/m/mpd/talimat b/talimatname/genel/m/mpd/talimat new file mode 100644 index 000000000..813f691d7 --- /dev/null +++ b/talimatname/genel/m/mpd/talimat @@ -0,0 +1,32 @@ +# Tanım: Esnek,güçlü sunucu bazlı müzik çalıcısı +# URL: https://www.musicpd.org/ +# Paketçi: milisarge +# Gerekler: libmad libvorbis libid3tag glib faad2 flac libshout fluidsynth boost ffmpeg + +isim=mpd +surum=0.20.12 +devir=1 +kaynak=(http://www.musicpd.org/download/$isim/0.20/$isim-$surum.tar.xz + servis) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --enable-ffmpeg \ + --enable-flac \ + --enable-fluidsynth \ + --enable-pipe-output \ + --enable-shout \ + --enable-vorbis \ + --enable-vorbis-encoder \ + --enable-wave-encoder + make + make DESTDIR=$PKG install + mkdir -p $PKG/etc + install -m 0644 doc/mpdconf.example $PKG/etc/mpd.conf + mkdir -p $PKG/etc/rc.d/init.d + install -D $SRC/servis $PKG/etc/rc.d/init.d/mpd + rm -r $PKG/usr/share/doc +} diff --git a/talimatname/genel/m/mpg123/talimat b/talimatname/genel/m/mpg123/talimat new file mode 100644 index 000000000..fc45abf61 --- /dev/null +++ b/talimatname/genel/m/mpg123/talimat @@ -0,0 +1,16 @@ +# Tanım: Konsol tabanlı bir MP3 çalar. Unix için en hızlı MP3 kod çözücüsü olduğunu iddia ediyor. +# URL: http://mpg123.de/ +# Paketçi: milisarge +# Gerekler: alsa-lib pulseaudio + +isim=mpg123 +surum=1.25.6 +devir=1 + +kaynak=( http://downloads.sourceforge.net/$isim/$isim-$surum.tar.bz2) +derle() { + cd $isim-$surum + ./configure --prefix=/usr --with-module-suffix=.so + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/mplayer/mplayer.conf b/talimatname/genel/m/mplayer/mplayer.conf new file mode 100644 index 000000000..90aa053cc --- /dev/null +++ b/talimatname/genel/m/mplayer/mplayer.conf @@ -0,0 +1,4 @@ +vo=gl +ao=sdl +loop=0 +progbar-align=100 diff --git a/talimatname/genel/m/mplayer/mplayer.kur-kos b/talimatname/genel/m/mplayer/mplayer.kur-kos new file mode 100644 index 000000000..995e86875 --- /dev/null +++ b/talimatname/genel/m/mplayer/mplayer.kur-kos @@ -0,0 +1,2 @@ +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor +update-desktop-database -q diff --git a/talimatname/genel/m/mplayer/talimat b/talimatname/genel/m/mplayer/talimat new file mode 100644 index 000000000..56e779787 --- /dev/null +++ b/talimatname/genel/m/mplayer/talimat @@ -0,0 +1,69 @@ +# Tanım: MPlayer, komut satırı üzerinden kontrol edilen güçlü bir ses/video oynatıcı. +# URL: http://www.mplayerhq.hu +# Paketçi: milisarge +# Gerekler: gtk2 yasm desktop-file-utils libdvdnav libdvdcss cdparanoia libcdio-paranoia libdvdread samba libbluray live xorg-libxvmc opus alsa-utils pulseaudio sdl jack openal sgml-common aalib giflib libjpeg-turbo libmng libpng openjpeg libcaca faac faad2 lame liba52 libdv libmad libmpeg2 libtheora libvpx lzo mpg123 speex xvid libmpcdec xorg-fontconfig freetype gnutls openssl opus unrar libxslt docbook-xsl docbook-xml enca glib xorg-libxxf86dga + +isim=mplayer +surum=1.3.0 +devir=1 + +kaynak=(http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.3.0.tar.xz + ftp://ftp.mplayerhq.hu/MPlayer/skins/Clearlooks-1.7.tar.bz2 + ftp://ftp.mplayerhq.hu/MPlayer/skins/KDE-0.3.tar.bz2 + ftp://ftp.mplayerhq.hu/MPlayer/skins/XFce4-1.0.tar.bz2 + ftp://ftp.mplayerhq.hu/MPlayer/skins/Orange-1.3.tar.bz2 + $isim.conf) + + +derle() { + +cd MPlayer-$surum + +./configure --prefix=/usr \ + --confdir=/etc/mplayer \ + --enable-dynamic-plugins \ + --enable-menu \ + --enable-gui \ + --enable-radio \ + --enable-radio-capture \ + --enable-rpath \ + --with-vidix-drivers=radeon,nvidia,cyberblade,ivtv,mach64,mga,mga_crtc2,pm2,pm3,rage128,s3,sis,unichrome\ + --enable-dhahelper \ + --enable-xvmc \ + --enable-mga \ + --enable-xmga \ + --enable-mlib \ + --enable-3dfx \ + --enable-tdfxfb \ + --enable-joystick \ + --enable-s3fb \ + --enable-wii \ + --enable-bl \ + --enable-tdfxvid \ + --language-msg=tr \ + --language=all +make +make DESTDIR=$PKG install + +install -v -m644 etc/codecs.conf $PKG/etc/mplayer + +install -v -m644 etc/*.conf $PKG/etc/mplayer + +install -v -m644 ../mplayer.conf $PKG/etc/mplayer + + +mv ../Clearlooks \ + $PKG/usr/share/mplayer/skins + +mv ../KDE \ + $PKG/usr/share/mplayer/skins + +mv ../XFce4 \ + $PKG/usr/share/mplayer/skins + +mv ../Orange \ + $PKG/usr/share/mplayer/skins + + +ln -sfvn KDE $PKG/usr/share/mplayer/skins/default +} diff --git a/talimatname/genel/m/mpsweb/talimat b/talimatname/genel/m/mpsweb/talimat new file mode 100644 index 000000000..0ec005085 --- /dev/null +++ b/talimatname/genel/m/mpsweb/talimat @@ -0,0 +1,25 @@ +# Tanım: Milis Paket Yöneticisi Web Arayüzü +# URL: milislinux.org +# Paketçi: milisarge +# Gerekler: nginx nginx-mod-nchan +# Grup: sistem + +isim=mpsweb +hesap=milisarge +surum=1.0 +devir=1 +kaynak=() + +derle() { + + if [ ! -d $DERLEME_KAYNAKDIZIN/$isim ];then + git clone https://github.com/$hesap/$isim $DERLEME_KAYNAKDIZIN/$isim + else + cd $DERLEME_KAYNAKDIZIN/$isim + git pull + cd - + fi + cp -r $DERLEME_KAYNAKDIZIN/$isim $SRC/ + cd $SRC/$isim + ./kur.sh $PKG +} diff --git a/talimatname/genel/m/mpv/talimat b/talimatname/genel/m/mpv/talimat new file mode 100644 index 000000000..ecad9c0b4 --- /dev/null +++ b/talimatname/genel/m/mpv/talimat @@ -0,0 +1,115 @@ +# Tanım: mplayer ve mplayer2 tabanlı çoklu kütüphane destekli medya uygulaması +# URL: http://mpv.io/ +# Paketçi: milisarge +# Gerekler: sdl2 sndio rsound openal uchardet v4l-utils libcdio-paranoia ffmpeg lcms2 samba ladspa xorg-libxscrnsaver libbluray libvdpau libquvi xorg-libxinerama xorg-libxv libxkbcommon desktop-file-utils hicolor-icon-theme xdg-utils lua lua52 libdvdnav xorg-libxrandr jack +# Grup: medya + +isim=mpv +surum=0.27.0 +devir=1 +kaynak=(https://github.com/$isim-player/$isim/archive/v$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + + ./bootstrap.py + +./waf configure \ + --color=yes \ + --prefix=/usr \ + --confdir=/etc/mpv \ + --progress \ + \ + --enable-libmpv-shared \ + --disable-libmpv-static \ + --disable-static-build \ + --disable-debug-build \ + \ + --disable-manpage-build \ + --disable-html-build \ + --disable-pdf-build \ + \ + --enable-cplugins \ + --enable-zsh-comp \ + --disable-test \ + --disable-clang-database \ + \ + --disable-win32-internal-pthreads \ + --enable-iconv \ + --enable-libsmbclient \ + --enable-libass \ + --enable-libass-osd \ + --enable-encoding \ + --enable-libbluray \ + --enable-dvdread \ + --enable-dvdnav \ + --enable-cdda \ + --enable-uchardet \ + --disable-rubberband \ + --enable-lcms2 \ + --disable-vapoursynth \ + --disable-vapoursynth-lazy \ + --enable-libarchive \ + --enable-libavdevice \ + \ + --enable-sdl2 \ + --disable-sdl1 \ + --enable-oss-audio \ + --enable-rsound \ + --enable-sndio \ + --enable-pulse \ + --enable-jack \ + --enable-openal \ + --disable-opensles \ + --enable-alsa \ + --disable-coreaudio \ + --disable-audiounit \ + --disable-wasapi \ + \ + --disable-cocoa \ + --enable-drm \ + --enable-gbm \ + --disable-wayland \ + --enable-x11 \ + --enable-xv \ + --disable-gl-cocoa \ + --enable-gl-x11 \ + --enable-egl-x11 \ + --enable-egl-drm \ + --disable-gl-wayland \ + --disable-gl-win32 \ + --disable-gl-dxinterop \ + --disable-egl-angle \ + --disable-egl-angle-lib \ + --enable-vdpau \ + --enable-vdpau-gl-x11 \ + --enable-vaapi \ + --enable-vaapi-x11 \ + --disable-vaapi-wayland \ + --disable-vaapi-drm \ + --disable-vaapi-glx \ + --disable-vaapi-x-egl \ + --disable-caca \ + --enable-jpeg \ + --disable-direct3d \ + --disable-android \ + --disable-rpi \ + --disable-ios-gl \ + --enable-plain-gl \ + --disable-mali-fbdev \ + --enable-gl \ + \ + --disable-videotoolbox-gl \ + --enable-cuda-hwaccel \ + \ + --enable-tv \ + --enable-tv-v4l2 \ + --enable-libv4l2 \ + --enable-audio-input \ + --enable-dvbin \ + \ + --disable-apple-remote \ + --disable-macos-touchbar + ./waf build + ./waf install --destdir="$PKG" +} diff --git a/talimatname/genel/m/mruby/talimat b/talimatname/genel/m/mruby/talimat new file mode 100644 index 000000000..f5ebbc056 --- /dev/null +++ b/talimatname/genel/m/mruby/talimat @@ -0,0 +1,21 @@ +# Tanım: Hafif Ruby yorumlayıcısı +# URL: https://github.com/mruby/mruby +# Paketçi: milisarge +# Gerekler: git ruby +# Grup: geliştirme + +isim=mruby +surum=1.3.0 +devir=1 +kaynak=(https://github.com/mruby/mruby/archive/$surum.zip::mruby-$surum.zip) + +derle() { + cd mruby-$surum + make + make test + install -d "$PKG/usr/bin" "$PKG/usr/lib" "$PKG/usr/share/licenses/mruby" + cp build/host/bin/* "$PKG/usr/bin" + cp build/host/lib/*.a "$PKG/usr/lib" + cp -r include "$PKG/usr" + cp MITL "$PKG/usr/share/licenses/mruby/LICENSE" +} diff --git a/talimatname/genel/m/msgpack-c/talimat b/talimatname/genel/m/msgpack-c/talimat new file mode 100644 index 000000000..64fe647d8 --- /dev/null +++ b/talimatname/genel/m/msgpack-c/talimat @@ -0,0 +1,20 @@ +# Tanım: Verimli bir nesne serileştirme kitaplığı, C / C ++ sürümü. +# URL: https://github.com/msgpack/msgpack-c +# Paketçi: milisarge +# Gerekler: cmake + +isim=msgpack-c +surum=2.1.5 +devir=1 +kaynak=(https://github.com/msgpack/msgpack-c/releases/download/cpp-${surum}/msgpack-${surum}.tar.gz) + +derle() { + cd msgpack-$surum + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DMSGPACK_CXX11=ON \ + -DMSGPACK_BUILD_EXAMPLES=OFF \ + -DCMAKE_BUILD_TYPE=Release \ + . + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/mtdev/talimat b/talimatname/genel/m/mtdev/talimat new file mode 100644 index 000000000..03bdc0abf --- /dev/null +++ b/talimatname/genel/m/mtdev/talimat @@ -0,0 +1,19 @@ +# Tanım: Mtdev paketi Çoklu İletişim Protokolü Çeviri Kitaplığı içerir. +# URL: http://bitmath.org/code/mtdev/ +# Paketçi: milisarge +# Gerekler: + +isim=mtdev +surum=1.1.5 +devir=1 + +kaynak=(http://bitmath.org/code/mtdev/mtdev-$surum.tar.bz2) + +derle() +{ +cd $isim-$surum +./configure --prefix=/usr \ +--disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/mtools/talimat b/talimatname/genel/m/mtools/talimat new file mode 100644 index 000000000..a97790a8e --- /dev/null +++ b/talimatname/genel/m/mtools/talimat @@ -0,0 +1,26 @@ +# Tanım: Dosya sistemine erişmek için kullanılan araçların toplanması MS-DOS +# URL: http://mtools.linux.lu/ +# Paketçi: milisarge +# Gerekler: + +isim=mtools +surum=4.0.18 +devir=1 + +kaynak=(ftp://ftp.gnu.org/gnu/mtools/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + + sed -i '/^SAMPLE FILE$/s:^:# :' mtools.conf + + ./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --sysconfdir=/etc + + make + make -j1 prefix=$PKG/usr install + + install -Dm644 mtools.conf $PKG/etc/mtools.conf +} diff --git a/talimatname/genel/m/mtr/talimat b/talimatname/genel/m/mtr/talimat new file mode 100644 index 000000000..c69497fab --- /dev/null +++ b/talimatname/genel/m/mtr/talimat @@ -0,0 +1,22 @@ +# Tanım: Matt's traceroute - ağ test aracı +# URL: http://www.bitwizard.nl/mtr/ +# Paketçi: milisarge +# Gerekler: libcap + +isim=mtr +surum=0.92 +devir=1 +kaynak=(ftp://ftp.bitwizard.nl/mtr/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + + ./configure \ + --prefix=/usr \ + --mandir=/usr/man \ + --sbindir=/usr/bin \ + --without-gtk + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/muffin/talimat b/talimatname/genel/m/muffin/talimat new file mode 100644 index 000000000..bebef6ab3 --- /dev/null +++ b/talimatname/genel/m/muffin/talimat @@ -0,0 +1,34 @@ +# Tanım: Cinnamon Pencere Yöneticisi +# URL: https://github.com/linuxmint/muffin +# Paketçi: Cihan_Alkan +# Gerekler: clutter gobject-introspection cinnamon-desktop libcanberra xorg-libsm zenity dconf intltool gnome-doc-utils gnome-common gtk-doc +# Grup: cinnamon + +isim=muffin +surum=3.8.1 +devir=1 +kaynak=(https://github.com/linuxmint/$isim/archive/$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum + gio-querymodules /usr/lib/gio/modules + glib-compile-schemas /usr/share/glib-2.0/schemas/ + PYTHON=python ./autogen.sh \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib/muffin \ + --localstatedir=/var \ + --disable-static \ + --disable-schemas-compile \ + --enable-compile-warnings=minimum + + #https://bugzilla.gnome.org/show_bug.cgi?id=656231 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + + make + make DESTDIR=$PKG install + make -C src DESTDIR="$PKG" uninstall-binPROGRAMS uninstall-desktopfilesDATA + make -C src/tools DESTDIR="$PKG" uninstall + make -C src/compositor/plugins DESTDIR="$PKG" uninstall + make -C doc/man DESTDIR="$PKG" uninstall +} diff --git a/talimatname/genel/m/mugshot-milis/talimat b/talimatname/genel/m/mugshot-milis/talimat new file mode 100644 index 000000000..b32549224 --- /dev/null +++ b/talimatname/genel/m/mugshot-milis/talimat @@ -0,0 +1,13 @@ +# Tanım: Kişisel bilgileri düzenleme uygulaması +# URL: https://launchpad.net/mugshot +# Paketçi: milisarge +# Gerekler: intltool gtk3 python3-distutils-extra python3-pexpect dbus-python python3-cairo python3-gobject accountsservice + +isim=mugshot-milis +surum=0.3.2 +devir=1 +kaynak=(https://kaynaklar.milislinux.org/$isim-$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cp -r "${SRC}/usr" "${PKG}/" +} diff --git a/talimatname/genel/m/mugshot/missing_default_face.patch b/talimatname/genel/m/mugshot/missing_default_face.patch new file mode 100644 index 000000000..4502e84f0 --- /dev/null +++ b/talimatname/genel/m/mugshot/missing_default_face.patch @@ -0,0 +1,28 @@ +diff -Naur ./mugshot-0.3.2.old/mugshot/MugshotWindow.py ./mugshot-0.3.2/mugshot/MugshotWindow.py +--- ./mugshot-0.3.2.old/mugshot/MugshotWindow.py 2016-11-06 09:13:47.604768017 -0500 ++++ ./mugshot-0.3.2/mugshot/MugshotWindow.py 2016-11-06 09:14:11.431116827 -0500 +@@ -257,10 +257,11 @@ + logger.debug('Found profile image: %s' % str(image)) + + if os.path.isfile(face): +- if os.path.samefile(image, face): +- self.updated_image = face +- else: +- self.updated_image = None ++ if os.path.exists(image): ++ if os.path.samefile(image, face): ++ self.updated_image = face ++ else: ++ self.updated_image = None + self.set_user_image(face) + elif os.path.isfile(image): + self.updated_image = image +@@ -612,7 +613,7 @@ + success = False + + logger.debug('Updating Office Phone...') +- ++ + command = "%s -w \"%s\" %s" % (chfn, office_phone, username) + # Office phone is potentially handled by the -o flag in newer versions of chfn + command2 = "%s -o \"%s\" %s" % (chfn, office_phone, username) diff --git a/talimatname/genel/m/mugshot/office-phone.patch b/talimatname/genel/m/mugshot/office-phone.patch new file mode 100644 index 000000000..dbca2c59d --- /dev/null +++ b/talimatname/genel/m/mugshot/office-phone.patch @@ -0,0 +1,35 @@ +From 8f639e7a29b3bfebbbbd8f520c05637377560bb3 Mon Sep 17 00:00:00 2001 +From: Mike Keen <mkeen.atl@gmail.com> +Date: Thu, 5 Nov 2015 11:47:30 -0500 +Subject: [PATCH] Support the -o flag if the -w flag fails + +--- +mugshot/MugshotWindow.py | 9 ++++++++- + 1 file changed, 8 insertions(+), 1 deletion(-) + +diff --git a/mugshot/MugshotWindow.py b/mugshot/MugshotWindow.py +index 35323be..b557edf 100644 +--- a/mugshot/MugshotWindow.py ++++ b/mugshot/MugshotWindow.py +@@ -632,11 +632,18 @@ class MugshotWindow(Window): + success = False + + logger.debug('Updating Office Phone...') ++ + command = "%s -w \"%s\" %s" % (chfn, office_phone, username) ++ # Office phone is potentially handled by the -o flag in newer versions of chfn ++ command2 = "%s -o \"%s\" %s" % (chfn, office_phone, username) + if self.process_terminal_password(command, password): + self.office_phone = office_phone + else: +- success = False ++ # Retry with command2 ++ if self.process_terminal_password(command2, password): ++ self.office_phone = office_phone ++ else: ++ success = False + + return (success, response) + +-- +2.6.2 diff --git a/talimatname/genel/m/mugshot/talimat b/talimatname/genel/m/mugshot/talimat new file mode 100644 index 000000000..8a16606d2 --- /dev/null +++ b/talimatname/genel/m/mugshot/talimat @@ -0,0 +1,24 @@ +# Tanım: Program to update personal user details +# URL: https://launchpad.net/mugshot +# Paketçi: milisarge +# Gerekler: intltool gtk3 python3-distutils-extra python3-pexpect dbus-python python3-cairo python3-gobject accountsservice + +isim=mugshot +surum=0.3.2 +devir=1 +kaynak=(https://launchpad.net/mugshot/${surum%.*}/0.3.2/+download/$isim-$surum.tar.gz::$isim-$surum.tar.gz + office-phone.patch + missing_default_face.patch) + +derle() { + cd "${SRC}/${isim}-${surum}" + patch -p1 -i "${SRC}"/office-phone.patch + cd "${SRC}" + patch -Np1 -i "${SRC}"/missing_default_face.patch + cd "${SRC}/${isim}-${surum}" + python3 setup.py build + python3 setup.py install --root=$PKG --optimize=1 + if [ -d $PKG/usr/share/doc ]; then + rm -rf $PKG/usr/share/doc + fi +} diff --git a/talimatname/genel/m/multibootusb/multibootusb.desktop b/talimatname/genel/m/multibootusb/multibootusb.desktop new file mode 100644 index 000000000..17ca8968e --- /dev/null +++ b/talimatname/genel/m/multibootusb/multibootusb.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Name=multibootusb +Comment=Install multiple Linux Operating System on USB +Icon=multibootusb +Name[tr]=Birden fazla Linux'u USB'e kurma +Comment[tr]=Birden fazla Linux'u USB'e kurma +Exec=multibootusb-pkexec +Categories=System; +StartupNotify=true diff --git a/talimatname/genel/m/multibootusb/talimat b/talimatname/genel/m/multibootusb/talimat new file mode 100644 index 000000000..7da90734b --- /dev/null +++ b/talimatname/genel/m/multibootusb/talimat @@ -0,0 +1,19 @@ +# Tanım: Birden fazla iso dosyasini usb bellege yazdirma programı +# URL: https://multibootusb.org +# Paketçi: Cihan Alkan +# Gerekler: mtools parted python3-qt5 dbus-python python3-pip python3-six mtools util-linux p7zip +# Grup: sistem + +isim=multibootusb +surum=9.1.0 +devir=1 + +kaynak=(https://github.com/mbusb/multibootusb/archive/v9.1.0.tar.gz::$isim-$surum.tar.gz + $isim.desktop) + +derle() { + cd $SRC/$isim-$surum + cp ../$isim.desktop $SRC/$isim-$surum/data/ + chmod 755 "$SRC/$isim-$surum/data/$isim.desktop" + python3 setup.py install --root="$PKG/" --optimize=1 +} diff --git a/talimatname/genel/m/mumble-client/talimat b/talimatname/genel/m/mumble-client/talimat new file mode 100644 index 000000000..5e7527c14 --- /dev/null +++ b/talimatname/genel/m/mumble-client/talimat @@ -0,0 +1,37 @@ +# Tanım: Sesli chat uygulaması- bağlanıcı uygulama +# URL: http://mumble.sourceforge.net +# Paketçi: milisarge +# Gerekler: boost qt4 speex speexdsp libsndfile protobuf + +isim=mumble-client +surum=1.2.19 +devir=1 +kaynak=(https://github.com/mumble-voip/mumble/releases/download/$surum/mumble-$surum.tar.gz) + +derle() { + cd mumble-$surum + + qmake-qt4 main.pro \ + CONFIG+=no-bundled-speex \ + CONFIG+=no-dbus \ + CONFIG+=no-embed-qt-translations \ + CONFIG+=no-speechd \ + CONFIG+=no-bonjour \ + CONFIG+=no-g15 \ + CONFIG+=no-11x \ + CONFIG+=no-server \ + DEFINES+="PLUGIN_PATH=/usr/lib/mumble" + + make release + + install -d $PKG/usr/{bin,lib} + install -o root -g root release/mumble $PKG/usr/bin/mumble + + install -m755 -o root -g root -D release/plugins/liblink.so $PKG/usr/lib/mumble/liblink.so + install -m755 -o root -g root -D release/plugins/libmanual.so $PKG/usr/lib/mumble/libmanual.so + install -o root -g root release/libcelt0.so.0.7.0 $PKG/usr/lib/mumble + cd $PKG/usr/lib/mumble + ln -s libcelt0.so.0.7.0 libcelt0.so.0.7 + ln -s libcelt0.so.0.7.0 libcelt0.so.0 + ln -s libcelt0.so.0.7.0 libcelt0.so +} diff --git a/talimatname/genel/m/mumble/talimat b/talimatname/genel/m/mumble/talimat new file mode 100644 index 000000000..756b84043 --- /dev/null +++ b/talimatname/genel/m/mumble/talimat @@ -0,0 +1,38 @@ +# Tanım: TeamSpeak'a benzer bir sesli sohbet uygulaması +# URL: http://mumble.sourceforge.net/ +# Paketçi: Cihan_Alkan +# Gerekler: qt5 speex avahi protobuf pulseaudio opus xdg-utils libpng freetype xorg-fontconfig xorg-libxrender boost xorg-mesa +# Grup: ağ + +isim=mumble +surum=1.3.0 +devir=2 +kaynak=(http://mumble.info/snapshot/${isim}-1.3.0~2586~g894ade2~snapshot.tar.gz) + +derle() { + cd $SRC/$isim-1.3.0~2586~g894ade2~snapshot + + # mumble derleniyor + qmake-qt5 main.pro \ + CONFIG+="bundled-celt no-bundled-opus no-bundled-speex no-speechd no-g15 no-xevie no-server \ + no-embed-qt-translations no-update packaged" \ + DEFINES+="PLUGIN_PATH=/usr/lib/mumble" + make release + + # bin stuff + install -m755 -D ./release/mumble $PKG/usr/bin/mumble + install -m755 -D ./scripts/mumble-overlay $PKG/usr/bin/mumble-overlay + + # lib stuff + install -m755 -D ./release/libmumble.so.$surum $PKG/usr/lib/mumble/libmumble.so.$surum + ln -s libmumble.so.$surum $PKG/usr/lib/mumble/libmumble.so + ln -s libmumble.so.$surum $PKG/usr/lib/mumble/libmumble.so.1 + ln -s libmumble.so.$surum $PKG/usr/lib/mumble/libmumble.so.1.3 + install -m755 -D ./release/plugins/liblink.so $PKG/usr/lib/mumble/liblink.so + install -m755 -D ./release/libcelt* $PKG/usr/lib/mumble/ + + # other stuff + install -m644 -D ./scripts/mumble.desktop $PKG/usr/share/applications/mumble.desktop + install -m644 -D ./icons/mumble.svg $PKG/usr/share/icons/hicolor/scalable/apps/mumble.svg + install -m644 -D ./LICENSE $PKG/usr/share/licenses/$isim/LICENSE +} diff --git a/talimatname/genel/m/muparser/talimat b/talimatname/genel/m/muparser/talimat new file mode 100644 index 000000000..780331664 --- /dev/null +++ b/talimatname/genel/m/muparser/talimat @@ -0,0 +1,19 @@ +# Tanım: hızlı bir matematik ayrıştırıcı kütüphanesi +# URL: http://muparser.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: +# Grup: kütüphane + +isim=muparser +surum=2.2.5 +devir=1 +kaynak=(https://github.com/beltoforion/muparser/archive/v$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd $SRC/${isim}-${surum} + sh ./configure --prefix=/usr + make -j1 + make DESTDIR=$PKG install + # license + install -D -m644 License.txt $PKG/usr/share/licenses/${isim}/LICENSE +} diff --git a/talimatname/genel/m/mupdf/talimat b/talimatname/genel/m/mupdf/talimat new file mode 100644 index 000000000..b18ff56a0 --- /dev/null +++ b/talimatname/genel/m/mupdf/talimat @@ -0,0 +1,20 @@ +# Tanım: Hafif bir PDF ve XPS görüntüleyici +# URL: http://www.mupdf.com/ +# Paketçi: milisarge +# Gerekler: curl freetype libjpeg-turbo xorg-libxext + +isim=mupdf +surum=1.9a +devir=1 +kaynak=(http://mupdf.com/downloads/$isim-$surum-source.tar.gz) + +derle() { + cd $isim-$surum-source + + rm -r thirdparty/{freetype*,jpeg*,zlib,curl} + make build=release + make prefix=$PKG/usr mandir=$PKG/usr/share/man install + + ln -s mupdf-x11-curl $PKG/usr/bin/mupdf + rm -r $PKG/usr/share/doc +} diff --git a/talimatname/genel/m/murrine/talimat b/talimatname/genel/m/murrine/talimat new file mode 100644 index 000000000..afd4b33e4 --- /dev/null +++ b/talimatname/genel/m/murrine/talimat @@ -0,0 +1,22 @@ +# Tanım: Cairo tabanlı GTK motoru. +# URL: http://www.cimitan.com/murrine/ +# Paketçi: milisarge +# Gerekler: gtk2 + +isim=murrine +surum=0.98.2 +devir=2 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { +cd murrine-$surum + +./configure \ +--prefix=/usr \ +--enable-animation \ +--enable-animationrtl + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/musl/talimat b/talimatname/genel/m/musl/talimat new file mode 100644 index 000000000..8f00de55a --- /dev/null +++ b/talimatname/genel/m/musl/talimat @@ -0,0 +1,23 @@ +# Tanım: C standart kütüphanesinin hafif gerçeklemesi +# URL: http://www.musl-libc.org/ +# Paketçi: milisarge +# Gerekler: + +isim=musl +surum=1.1.17 +devir=1 +kaynak=(https://www.musl-libc.org/releases/musl-1.1.17.tar.gz{,.asc} +) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr/lib/musl \ + --exec-prefix=/usr \ + --enable-wrapper=all + make + make DESTDIR="$PKG" install + install -dm755 "$PKG"/usr/lib/ + mv "$PKG"/lib/ld-musl*.so* "$PKG"/usr/lib/ + rmdir "$PKG"/lib + install -Dm0644 COPYRIGHT "$PKG"/usr/share/licenses/musl/COPYRIGHT +} diff --git a/talimatname/genel/m/mutagen/talimat b/talimatname/genel/m/mutagen/talimat new file mode 100644 index 000000000..d963c002d --- /dev/null +++ b/talimatname/genel/m/mutagen/talimat @@ -0,0 +1,17 @@ +# Tanım: Bir ses meta veri etiketi okuyucu ve yazıcı +# URL: https://bitbucket.org/lazka/mutagen +# Paketçi: milisarge +# Gerekler: python + +isim=mutagen +surum=1.38 +devir=1 + +kaynak=(https://github.com/quodlibet/mutagen/archive/release-$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd $isim-release-$surum + python2 setup.py install --root=$PKG + mkdir -p $PKG/usr/bin + install -m755 tools/* $PKG/usr/bin +} diff --git a/talimatname/genel/m/mutt/mutt.kos-kur b/talimatname/genel/m/mutt/mutt.kos-kur new file mode 100644 index 000000000..b17d3d57e --- /dev/null +++ b/talimatname/genel/m/mutt/mutt.kos-kur @@ -0,0 +1,2 @@ +groupadd -g 34 mail + diff --git a/talimatname/genel/m/mutt/talimat b/talimatname/genel/m/mutt/talimat new file mode 100644 index 000000000..1d101442d --- /dev/null +++ b/talimatname/genel/m/mutt/talimat @@ -0,0 +1,31 @@ +# Tanım: Mutt paketi bir posta kullanıcı aracısı içerir. Bu, e-postanızı okumak, yazmak, cevaplamak, kaydetmek ve silmek için yararlıdır. +# URL: http://www.mutt.org/ +# Paketçi: milisarge +# Gerekler: aspell aspell-fr cyrus-sasl gdb gnupg gpgme libidn kerberos sendmail slang openssl gnutls db libxslt lynx + +isim=mutt +surum=1.5.24 +devir=1 +kaynak=(ftp://ftp.mutt.org/pub/mutt/$isim-$surum.tar.gz) + +derle() { + +cd $isim-$surum + +cp -v doc/manual.txt{,.shipped} +./configure --prefix=/usr \ + --sysconfdir=/etc \ + --with-docdir=/usr/share/doc/mutt-1.5.24 \ + --enable-pop \ + --enable-imap \ + --enable-hcache \ + --without-qdbm \ + --with-gdbm \ + --without-bdb \ + --without-tokyocabinet +make +test -s doc/manual.txt || mv -v doc/manual.txt{.shipped,} + +make DESTDIR=$PKG install + +} diff --git a/talimatname/genel/m/mutter/mutter.kur-kos b/talimatname/genel/m/mutter/mutter.kur-kos new file mode 100644 index 000000000..6ba5ccf8f --- /dev/null +++ b/talimatname/genel/m/mutter/mutter.kur-kos @@ -0,0 +1 @@ +glib-compile-schemas /usr/share/glib-2.0/schemas diff --git a/talimatname/genel/m/mutter/talimat b/talimatname/genel/m/mutter/talimat new file mode 100644 index 000000000..9b1a5fa92 --- /dev/null +++ b/talimatname/genel/m/mutter/talimat @@ -0,0 +1,21 @@ +# Tanım: GNOME için bir pencere yöneticisi +# URL: http://www.gnome.org/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: libinput clutter gnome-desktop libxkbcommon upower zenity gobject-introspection libcanberra startup-notification gtk-doc + +isim=mutter +surum=3.22.2 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--disable-static \ +--enable-gtk-doc \ +--disable-wayland \ +--enable-compile-warnings=minimum +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/m/mygpoclient/talimat b/talimatname/genel/m/mygpoclient/talimat new file mode 100644 index 000000000..8de2789ad --- /dev/null +++ b/talimatname/genel/m/mygpoclient/talimat @@ -0,0 +1,14 @@ +# Tanım: Podcast aboneliği senkronizasyonu aracı +# URL: http://thp.io/2010/mygpoclient +# Paketçi: milisarge +# Gerekler: python + +isim=mygpoclient +surum=1.7 +devir=2 +kaynak=(http://thp.io/2010/mygpoclient/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + python setup.py install --root=$PKG +} diff --git a/talimatname/genel/m/mygui/talimat b/talimatname/genel/m/mygui/talimat new file mode 100644 index 000000000..9dfd97ab9 --- /dev/null +++ b/talimatname/genel/m/mygui/talimat @@ -0,0 +1,46 @@ +# Tanım: OGRE için çok katmanlı ve üst üste bindirilebilir bir GUI Sistemi +# URL: http://mygui.info/ +# Paketçi: Cihan_Alkan +# Gerekler: boost cmake doxygen graphviz dejavu-ttf ogre ois +# Grup: geliştirme + + +isim=mygui +surum=3.2.2 +devir=1 +kaynak=(https://github.com/MyGUI/mygui/archive/MyGUI$surum.tar.gz) + +derle() { +cd $SRC/mygui-MyGUI$surum + sed -i 's:"bin:"../opt/MYGUI:' CMake/Utils/MyGUIConfigTargets.cmake + sed -i -e 's:../share:/usr/share:' \ + -e 's:"bin":"../opt/MYGUI":' \ + CMake/InstallResources.cmake + sed -i '71 i set(MYGUI_GCC_VISIBILITY_FLAGS "")' CMakeLists.txt + sed -i 's/\${OIS_LIBRARIES}/${OIS_LIBRARIES} boost_system/g' Common/CMakeLists.txt + + mkdir -p build + cd build + + export PKG_CONFIG_PATH="/usr/share/OGRE/lib/pkgconfig:$PKG_CONFIG_PATH" + + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DMYGUI_INSTALL_SAMPLES=TRUE \ + -DMYGUI_INSTALL_TOOLS=TRUE \ + -DMYGUI_INSTALL_DOCS=TRUE \ + -DMYGUI_INSTALL_MEDIA=TRUE \ + -DFREETYPE_INCLUDE_DIR=/usr/include/freetype2/ \ + -DMYGUI_BUILD_DEMOS=FALSE \ + -DMYGUI_BUILD_TOOLS=FALSE \ + -DCMAKE_BUILD_TYPE=Release \ + -DMYGUI_RENDERSYSTEM=7 \ + -DBUILD_SHARED_LIBS=TRUE + + make + make api-docs + + make DESTDIR="$PKG" install + install -d $PKG/usr/share/doc/ + cp -r Docs/html $PKG/usr/share/doc/MYGUI +} diff --git a/talimatname/genel/m/mypaint-brushes/talimat b/talimatname/genel/m/mypaint-brushes/talimat new file mode 100644 index 000000000..d84a2b7a5 --- /dev/null +++ b/talimatname/genel/m/mypaint-brushes/talimat @@ -0,0 +1,24 @@ +# Tanım: MyPaint ve diğer yazılımlar tarafından libmypaint kullanılarak kullanılan fırçalar. +# URL: https://github.com/Jehan/mypaint-brushes +# Paketçi: Cihan_Alkan +# Gerekler: libmypaint +# Grup: kütüphane + +isim=mypaint-brushes +surum=1.3.0 +devir=1 + +kaynak=(https://github.com/Jehan/mypaint-brushes/archive/v${surum}.tar.gz::$isim-$surum.tar.gz) + +derle() { + + cd "$isim-$surum" + + ./autogen.sh + ./configure --prefix=/usr + make + + make DESTDIR="$PKG" install + install -D -m644 COPYING "$PKG/usr/share/licenses/$isim/LICENSE" + +} diff --git a/talimatname/genel/m/mypaint/talimat b/talimatname/genel/m/mypaint/talimat new file mode 100644 index 000000000..41910ab1a --- /dev/null +++ b/talimatname/genel/m/mypaint/talimat @@ -0,0 +1,22 @@ +# Tanım: hızlı ve kolay boyama uygulaması +# URL: http://mypaint.intilinux.com/ +# Paketçi: milisarge +# Gerekler: desktop-file-utils gtk3 gegl babl lcms2 json-c python-cairo python-gobject python-gtk python-numpy python-protobuf scons swig libmypaint + +isim=mypaint +surum=1.3.0 +devir=1 +kaynak=() + +derle() +{ + if [ -d $DERLEME_KAYNAKDIZIN/$isim ];then + cd $DERLEME_KAYNAKDIZIN/$isim + git pull + else + git clone https://github.com/mypaint/mypaint.git $DERLEME_KAYNAKDIZIN/$isim + fi + cd $DERLEME_KAYNAKDIZIN/$isim + scons prefix="/usr" enable_gegl=true use_sharedlib=yes + scons prefix="/usr" enable_gegl=true use_sharedlib=yes --install-sandbox="$PKG" "$PKG" +} diff --git a/talimatname/genel/m/myrddin/talimat b/talimatname/genel/m/myrddin/talimat new file mode 100644 index 000000000..9506cfdca --- /dev/null +++ b/talimatname/genel/m/myrddin/talimat @@ -0,0 +1,27 @@ +# Tanım: Myrddin programlama dili için derleyici ve araçlar +# URL: https://myrlang.org/ +# Paketçi: milisarge +# Gerekler: +# Grup: geliştirme + +isim=myrddin +surum=git +devir=3 +kaynak=() + +derle() { + adres="git://git.eigenstate.org/ori/mc.git" + git_indir ${adres} ${isim} + cd $SRC/${isim} + ./configure --prefix="/usr" + make bootstrap + make + make DESTDIR="$PKG" install + + install -Dm644 LICENSE "${PKG}/usr/share/licenses/${isim}/LICENSE" + + cd support/vim/ + for dir in *; do + install -t "${PKG}/usr/share/${isim}/vim/${dir}" -Dm644 "${dir}"/*.vim + done +} diff --git a/talimatname/genel/m/mythes/talimat b/talimatname/genel/m/mythes/talimat new file mode 100644 index 000000000..ab6a086be --- /dev/null +++ b/talimatname/genel/m/mythes/talimat @@ -0,0 +1,18 @@ +# Tanım: basit bir eş anlamlılar listesi +# URL: http://hunspell.sourceforge.net/ +# Paketçi: Cihan Alkan +# Gerekler: hunspell + +isim=mythes +surum=1.2.4 +devir=1 + +kaynak=(https://downloads.sourceforge.net/project/hunspell/MyThes/1.2.4/mythes-1.2.4.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --disable-static + make + make DESTDIR=$PKG install + install -m0644 -D COPYING "$PKG"/usr/share/licenses/mythes/COPYING +} diff --git a/talimatname/genel/n/nana/talimat b/talimatname/genel/n/nana/talimat new file mode 100644 index 000000000..40792ffcc --- /dev/null +++ b/talimatname/genel/n/nana/talimat @@ -0,0 +1,19 @@ +# Tanım: C++ statik bağlamlı arayüz kütüphanesi +# URL: http://nanapro.org/en-us/ +# Paketçi: milisarge +# Gerekler: alsa-lib cmake libjpeg-turbo libpng xorg-libx11 xorg-libxft xorg-proto + +isim=nana +surum=1.5.5 +devir=1 +kaynak=(https://downloads.sourceforge.net/project/nanapro/Nana/Nana%201.x/nana%20$surum.zip) + +derle() { + cd ${SRC}/${isim} + cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DNANA_CMAKE_NANA_FILESYSTEM_FORCE=YES + make + make DESTDIR="${PKG}" install +} diff --git a/talimatname/genel/n/nautilus/nautilus.kur-kos b/talimatname/genel/n/nautilus/nautilus.kur-kos new file mode 100644 index 000000000..7b04491d7 --- /dev/null +++ b/talimatname/genel/n/nautilus/nautilus.kur-kos @@ -0,0 +1,2 @@ +glib-compile-schemas /usr/share/glib-2.0/schemas +update-desktop-database -q diff --git a/talimatname/genel/n/nautilus/talimat b/talimatname/genel/n/nautilus/talimat new file mode 100644 index 000000000..5a8f21173 --- /dev/null +++ b/talimatname/genel/n/nautilus/talimat @@ -0,0 +1,19 @@ +# Tanım: GNOME dosya yöneticisi +# URL: http://live.gnome.org/Nautilus +# Paketçi: yasarciv67@gmail.com +# Gerekler: gnome-autoar libnotify gnome-desktop shared-mime-info gobject-introspection exempi libexif gvfs gtk-update-icon-cache desktop-file-utils libselinux desktop-file-utils tracker + +isim=nautilus +surum=3.22.3 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ + --sysconfdir=/etc \ + --disable-packagekit +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/n/nbd/allow b/talimatname/genel/n/nbd/allow new file mode 100644 index 000000000..9af1ff475 --- /dev/null +++ b/talimatname/genel/n/nbd/allow @@ -0,0 +1,7 @@ +# nbd-server access configuration file +# list of hosts allowed to connect to our exportet +# + +#127.0.0.1 +# CIDR notation is allowed also +#192.168.0.0/8 diff --git a/talimatname/genel/n/nbd/nbd-server b/talimatname/genel/n/nbd/nbd-server new file mode 100644 index 000000000..bb85e72f3 --- /dev/null +++ b/talimatname/genel/n/nbd/nbd-server @@ -0,0 +1,28 @@ +#!/bin/sh +# +# /etc/rc.d/init.d/nbd-server: start/stop nbd daemon +# + +case $1 in +start) + /usr/bin/nbd-server -p /var/run/nbd-server.pid -l /etc/nbd-server/allow + ;; +stop) + if [ -f /var/run/nbd-server.pid ]; then + kill `cat /var/run/nbd-server.pid` + rm -f /var/run/nbd-server.pid + else + killall -q /usr/sbin/nbd-server + fi + ;; +restart) + $0 stop + sleep 2 + $0 start + ;; +*) + echo "kullanim: $0 [start|stop|restart]" + ;; +esac + +# End of file diff --git a/talimatname/genel/n/nbd/talimat b/talimatname/genel/n/nbd/talimat new file mode 100644 index 000000000..1664c2a01 --- /dev/null +++ b/talimatname/genel/n/nbd/talimat @@ -0,0 +1,24 @@ +# Tanım: Blok cihazlarının NBD protokolüyle paylaşma ve kullanma +# URL: http://nbd.sourceforge.net/ +# Maintainer: milisarge +# Gerekler: gnutls glib + +isim=nbd +surum=3.15.2 +devir=1 +kaynak=(http://downloads.sourceforge.net/project/nbd/nbd/$surum/$isim-$surum.tar.xz + nbd-server + allow) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --mandir=/usr/man \ + --sysconfdir=/etc + make + make DESTDIR=$PKG install + install -d $PKG/etc/nbd-server + install -D -m 600 $SRC/allow $PKG/etc/nbd-server/allow + install -D -m 755 $SRC/nbd-server $PKG/etc/rc.d/init.d/nbd-server + +} diff --git a/talimatname/genel/n/ncftp/talimat b/talimatname/genel/n/ncftp/talimat new file mode 100644 index 000000000..195bd1a25 --- /dev/null +++ b/talimatname/genel/n/ncftp/talimat @@ -0,0 +1,23 @@ +# Tanım: Internet standartı Dosya Aktarım Protokolüne güçlü ve esnek bir arabirim. +# URL: http://www.ncftp.com/ +# Paketçi: milisarge +# Gerekler: + +isim=ncftp +surum=3.2.5 +devir=1 +kaynak=(ftp://ftp.ncftp.com/ncftp/$isim-$surum-src.tar.bz2) + +derle() { + +cd $isim-$surum + +./configure --prefix=/usr --sysconfdir=/etc +make -C libncftp shared + +make + +make -C libncftp soinstall +make DESTDIR=$PKG install + +} diff --git a/talimatname/genel/n/nemo/nemo.kur-kos b/talimatname/genel/n/nemo/nemo.kur-kos new file mode 100644 index 000000000..1d319936d --- /dev/null +++ b/talimatname/genel/n/nemo/nemo.kur-kos @@ -0,0 +1 @@ +glib-compile-schemas /usr/share/glib-2.0/schemas/ diff --git a/talimatname/genel/n/nemo/org.nemo.root.policy b/talimatname/genel/n/nemo/org.nemo.root.policy new file mode 100644 index 000000000..67d9b1ec1 --- /dev/null +++ b/talimatname/genel/n/nemo/org.nemo.root.policy @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE policyconfig PUBLIC +"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN" +"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd"> +<policyconfig> + + <vendor>Nemo Project</vendor> + <vendor_url>https://github.com/linuxmint/nemo</vendor_url> + + <action id="org.nemo.root"> + <description>Nemo'yu yükseltilmiş ayrıcalıklarla çalıştır</description> + <message>Nemo'yu kök olarak çalıştırmak için lütfen şifrenizi girin</message> + <icon_name>gksu-root-terminal</icon_name> + <defaults> + <allow_any>no</allow_any> + <allow_inactive>no</allow_inactive> + <allow_active>auth_admin_keep</allow_active> + </defaults> + <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/nemo</annotate> + <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate> + </action> + +</policyconfig> diff --git a/talimatname/genel/n/nemo/talimat b/talimatname/genel/n/nemo/talimat new file mode 100644 index 000000000..95cef650b --- /dev/null +++ b/talimatname/genel/n/nemo/talimat @@ -0,0 +1,30 @@ +# Tanım: Cinnamon Dosya Yöneticisi +# URL: https://github.com/linuxmint/nemo +# Paketçi: Cihan_Alkan +# Gerekler: glib gtk-doc intltool xapps python-polib python-gobject gtk3 cinnamon-desktop libnotify cinnamon-translations gobject-introspection gnome-common libexif gvfs dconf desktop-file-utils exempi python libxml2 +# Grup: cinnamon + +isim=nemo +surum=3.8.2 +devir=1 +kaynak=(https://github.com/linuxmint/$isim/archive/$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + sed -i '/^\[Desktop Entry/,/^\[Desktop Action/ s/^Name\(.*\)=.*/Name\1=Nemo/' data/nemo.desktop.in + mkdir -p build + cd build + + meson --prefix=/usr \ + --libdir=/usr/lib \ + --libexecdir=lib/${isim} \ + --buildtype=plain \ + .. + ninja + + DESTDIR="${PKG}" ninja install + + mkdir -p $PKG/usr/lib/nemo/extensions-3.0 + sed -i 's/Run Nemo with elevated privileges/Nemoyu yükseltilmiş ayrıcalıklarla çalıştır/g' $PKG/usr/share/polkit-1/actions/org.nemo.root.policy + sed -i 's/Please enter your password to run Nemo as root/Nemoyu kök olarak çalıştırmak için lütfen şifrenizi girin/g' $PKG/usr/share/polkit-1/actions/org.nemo.root.policy +} diff --git a/talimatname/genel/n/neofetch/linux b/talimatname/genel/n/neofetch/linux new file mode 100644 index 000000000..fc2b1e3e9 --- /dev/null +++ b/talimatname/genel/n/neofetch/linux @@ -0,0 +1,31 @@ + + : + # + # , + ' # + # + , + ' .#. # # + +` ##`'###, # + +######;##### , + .##########` : ; + ########## ` # + :#########'# ` + . + ;########### +# #; # # + ############ ## +#+`# + + ########### ## ########. + ########### ,########## + ########### ########## + :########## +'##########: + ###########`########## + # ###########``###### + ## `######## # '# + ####; ##,`.## ##: + `#####+ +###+ ### + ############+ '###### + ..####;:#####` ######` + :## +##### '# # + '#####:#### #+ + ########## +. + ###### ##. + ##` + # + : , : diff --git a/talimatname/genel/n/neofetch/talimat b/talimatname/genel/n/neofetch/talimat new file mode 100644 index 000000000..5dadd409e --- /dev/null +++ b/talimatname/genel/n/neofetch/talimat @@ -0,0 +1,19 @@ +# Tanım: BASH'da yazılmış görüntüleri destekleyen bir CLI sistem bilgisi aracı. +# URL: https://github.com/dylanaraps/ +# Paketçi: Cihan Alkan +# Gerekler: + +isim=neofetch +surum=3.2.0 +devir=1 + +kaynak=(https://github.com/dylanaraps/neofetch/archive/$surum.tar.gz + linux) + + +derle() { + cd $isim-$surum + cp -f $SRC/linux $SRC/$isim-$surum/ascii/distro/ + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/n/neomutt/talimat b/talimatname/genel/n/neomutt/talimat new file mode 100644 index 000000000..866df9e19 --- /dev/null +++ b/talimatname/genel/n/neomutt/talimat @@ -0,0 +1,32 @@ +# Tanım: Mutt paketi bir posta kullanıcı aracısı içerir. +# URL: http://www.neomutt.org/ +# Paketçi: milisarge +# Gerekler: + +isim=neomutt +surum=20171013 +devir=1 +kaynak=(https://github.com/$isim/$isim/archive/$isim-$surum.tar.gz) + +derle() { + cd $isim-$isim-$surum + + ./prepare \ + --prefix=/usr \ + --with-docdir=/usr/share/doc/$isim \ + --with-mailpath=/var/spool/mail \ + --enable-pop \ + --enable-imap \ + --enable-smtp \ + --enable-hcache \ + --enable-sidebar \ + --enable-compressed \ + --with-ssl \ + --enable-hcache \ + --disable-nls \ + --with-regex \ + --with-gdbm + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/n/neon/talimat b/talimatname/genel/n/neon/talimat new file mode 100644 index 000000000..744f611ca --- /dev/null +++ b/talimatname/genel/n/neon/talimat @@ -0,0 +1,22 @@ +# Tanım: Genel HTTP ve WebDAV için sarmalayıcı +# URL: http://www.webdav.org/neon/ +# Paketçi: milisarge +# Gerekler: kerberos libxml2 + +isim=neon +surum=0.30.1 +devir=1 + +kaynak=( http://www.webdav.org/neon/$isim-$surum.tar.gz) + + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--with-ssl \ +--enable-shared \ +--mandir=/usr/share/man \ +--infodir=/usr/share/info +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/n/net-snmp/talimat b/talimatname/genel/n/net-snmp/talimat new file mode 100644 index 000000000..e9daec276 --- /dev/null +++ b/talimatname/genel/n/net-snmp/talimat @@ -0,0 +1,36 @@ +# Tanım: SNMP v1, SNMP v2c ve SNMP v3'ü hem IPv4 hem de IPv6 kullanarak uygulamak için kullanılan bir uygulama paketi. +# URL: http://www.net-snmp.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: python python-setuptools libnl openssl pciutils perl-term-readkey perl-tk perl + +isim=net-snmp +surum=5.7.3 +devir=1 + +kaynak=(http://downloads.sourceforge.net/$isim/$isim-$surum.tar.gz{,.asc}) + +derle() { +cd $isim-$surum +PYTHONPROG=/usr/bin/python2 ./configure --prefix=/usr \ + --sysconfdir=/etc --sbindir=/usr/bin \ + --mandir=/usr/share/man \ + --enable-ucd-snmp-compatibility \ + --enable-ipv6 \ + --with-python-modules \ + --with-default-snmp-surum="3" \ + --with-sys-contact="root@localhost" \ + --with-sys-location="Unknown" \ + --with-logfile="/var/log/snmpd.log" \ + --with-mib-modules="host misc/ipfwacc ucd-snmp/diskio tunnel ucd-snmp/dlmod" \ + --with-persistent-directory="/var/net-snmp" + +make NETSNMP_DONT_CHECK_VERSION=1 + +sed -i -e "s:install --basedir=\$\$dir:install --basedir=\$\$dir --root=$PKG:" Makefile + +make DESTDIR=$PKG INSTALL_PREFIX=$PKG INSTALLDIRS=vendor install +# Remove perllocal.pod and .packlist if present in the package +for i in perllocal.pod .packlist; do + find $PKG -name "$i" -exec rm -rf {} \; +done +} diff --git a/talimatname/genel/n/net-tools/net-tools-CVS_20101030-remove_dups-1.patch b/talimatname/genel/n/net-tools/net-tools-CVS_20101030-remove_dups-1.patch new file mode 100644 index 000000000..0d027780c --- /dev/null +++ b/talimatname/genel/n/net-tools/net-tools-CVS_20101030-remove_dups-1.patch @@ -0,0 +1,520 @@ +Submitted By: Bruce Dubbs (bdubbs at liinuxfromscratch dot com) +Date: 2014-03-01 +Initial Package Version: CVS_20101030 +Origin: Self +Tanım: Removes ifconfig and hostname from the build + due to duplication in inetutils + +diff -Naur a/Makefile b/Makefile +--- a/Makefile 2009-12-31 14:38:02.000000000 -0600 ++++ b/Makefile 2014-02-28 23:19:11.000000000 -0600 +@@ -228,8 +228,8 @@ + install -m 0755 -d ${BASEDIR}/sbin + install -m 0755 -d ${BASEDIR}/bin + install -m 0755 arp ${BASEDIR}/sbin +- install -m 0755 hostname ${BASEDIR}/bin +- install -m 0755 ifconfig ${BASEDIR}/sbin ++# install -m 0755 hostname ${BASEDIR}/bin ++# install -m 0755 ifconfig ${BASEDIR}/sbin + install -m 0755 nameif ${BASEDIR}/sbin + install -m 0755 netstat ${BASEDIR}/bin + install -m 0755 plipconfig $(BASEDIR)/sbin +@@ -243,14 +243,6 @@ + ifeq ($(HAVE_MII),1) + install -m 0755 mii-tool $(BASEDIR)/sbin + endif +- ln -fs hostname $(BASEDIR)/bin/dnsdomainname +- ln -fs hostname $(BASEDIR)/bin/ypdomainname +- ln -fs hostname $(BASEDIR)/bin/nisdomainname +- ln -fs hostname $(BASEDIR)/bin/domainname +-ifeq ($(HAVE_AFDECnet),1) +- ln -fs hostname $(BASEDIR)/bin/nodename +-endif +- + savebin: + @for i in ${BASEDIR}/sbin/arp ${BASEDIR}/sbin/ifconfig \ + ${BASEDIR}/bin/netstat \ +diff -Naur a/config.in b/config.in +--- a/config.in 2008-10-02 21:09:57.000000000 -0500 ++++ b/config.in 2014-02-28 23:18:31.000000000 -0600 +@@ -68,8 +68,8 @@ + bool 'SLIP (serial line) support' HAVE_HWSLIP y + bool 'PPP (serial line) support' HAVE_HWPPP y + bool 'IPIP Tunnel support' HAVE_HWTUNNEL y +-bool 'STRIP (Metricom radio) support' HAVE_HWSTRIP y +-bool 'Token ring (generic) support' HAVE_HWTR y ++bool 'STRIP (Metricom radio) support' HAVE_HWSTRIP n ++bool 'Token ring (generic) support' HAVE_HWTR n + bool 'AX25 (packet radio) support' HAVE_HWAX25 y + bool 'Rose (packet radio) support' HAVE_HWROSE y + bool 'NET/ROM (packet radio) support' HAVE_HWNETROM y +diff -Naur a/man/en_US/dnsdomainname.1 b/man/en_US/dnsdomainname.1 +--- a/man/en_US/dnsdomainname.1 1998-08-10 15:51:04.000000000 -0500 ++++ b/man/en_US/dnsdomainname.1 1969-12-31 18:00:00.000000000 -0600 +@@ -1 +0,0 @@ +-.so man1/hostname.1 +diff -Naur a/man/en_US/domainname.1 b/man/en_US/domainname.1 +--- a/man/en_US/domainname.1 1998-08-10 15:51:05.000000000 -0500 ++++ b/man/en_US/domainname.1 1969-12-31 18:00:00.000000000 -0600 +@@ -1 +0,0 @@ +-.so man1/hostname.1 +diff -Naur a/man/en_US/hostname.1 b/man/en_US/hostname.1 +--- a/man/en_US/hostname.1 2008-10-02 18:16:59.000000000 -0500 ++++ b/man/en_US/hostname.1 1969-12-31 18:00:00.000000000 -0600 +@@ -1,213 +0,0 @@ +-.TH HOSTNAME 1 "2008\-10\-03" "net\-tools" "Linux System Administrator's Manual" +- +-.SH NAME +-hostname \- show or set the system's host name +-.br +-domainname \- show or set the system's NIS/YP domain name +-.br +-dnsdomainname \- show the system's DNS domain name +-.br +-nisdomainname \- show or set system's NIS/YP domain name +-.br +-ypdomainname \- show or set the system's NIS/YP domain name +-.br +-nodename \- show or set the system's DECnet node name +- +-.SH SYNOPSIS +-.B hostname +-.RB [ \-v ] +-.RB [ \-a ] +-.RB [ \-\-alias ] +-.RB [ \-d ] +-.RB [ \-\-domain ] +-.RB [ \-f ] +-.RB [ \-\-fqdn ] +-.RB [ \-i ] +-.RB [ \-\-ip\-address ] +-.RB [ \-\-long ] +-.RB [ \-s ] +-.RB [ \-\-short ] +-.RB [ \-y ] +-.RB [ \-\-yp ] +-.RB [ \-\-nis ] +-.RB [ \-n ] +-.RB [ \-\-node ] +- +-.PP +-.B hostname +-.RB [ \-v ] +-.RB [ \-F\ filename ] +-.RB [ \-\-file\ filename ] +-.RB [ hostname ] +- +-.PP +-.B domainname +-.RB [ \-v ] +-.RB [ \-F\ filename ] +-.RB [ \-\-file\ filename ] +-.RB [ name ] +- +-.PP +-.B nodename +-.RB [ \-v ] +-.RB [ \-F\ filename ] +-.RB [ \-\-file\ filename ] +-.RB [ name ] +- +-.PP +-.B hostname +-.RB [ \-v ] +-.RB [ \-h ] +-.RB [ \-\-help ] +-.RB [ \-V ] +-.RB [ \-\-version ] +- +-.PP +-.B dnsdomainname +-.RB [ \-v ] +-.br +-.B nisdomainname +-.RB [ \-v ] +-.br +-.B ypdomainname +-.RB [ \-v ] +- +-.SH DESCRIPTION +-.B Hostname +-is the program that is used to either set or display +-the current host, domain or node name of the system. These names are used +-by many of the networking programs to identify the machine. The domain +-name is also used by NIS/YP. +- +-.SS "GET NAME" +-When called without any arguments, the program displays the current +-names: +- +-.LP +-.B hostname +-will print the name of the system as returned by the +-.BR gethostname (2) +-function. +- +-.LP +-.B "domainname, nisdomainname, ypdomainname" +-will print the name of the system as returned by the +-.BR getdomainname (2) +-function. This is also known as the YP/NIS domain name of the system. +- +-.LP +-.B nodename +-will print the DECnet node name of the system as returned by the +-.BR getnodename (2) +-function. +- +-.LP +-.B dnsdomainname +-will print the domain part of the FQDN (Fully Qualified Domain Name). The +-complete FQDN of the system is returned with +-.BR "hostname \-\-fqdn" . +- +-.SS "SET NAME" +-When called with one argument or with the +-.B \-\-file +-option, the commands set the host name, the NIS/YP domain name or +-the node name. +- +-.LP +-Note, that only the super-user can change the names. +- +-.LP +-It is not possible to set the FQDN or the DNS domain name with the +-.B dnsdomainname +-command (see +-.B "THE FQDN" +-below). +- +-.LP +-The host name is usually set once at system startup in +-.I /etc/rc.d/rc.inet1 +-or +-.I /etc/init.d/boot +-(normally by reading the contents of a file which contains +-the host name, e.g. +-.IR /etc/hostname ). +- +-.SS THE FQDN +-You can't change the FQDN (as returned by +-.BR "hostname \-\-fqdn" ) +-or the DNS domain name (as returned by +-.BR "dnsdomainname" ) +-with this command. The FQDN of the system is the name that the +-.BR resolver (3) +-returns for the host name. +- +-.LP +-Technically: The FQDN is the name +-.BR gethostbyname (2) +-returns for the host name returned by +-.BR gethostname (2). +-The DNS domain name is the part after the first dot. +-.LP +-Therefore it depends on the configuration (usually in +-.IR /etc/host.conf ) +-how you can change it. Usually (if the hosts file is parsed before DNS or +-NIS) you can change it in +-.IR /etc/hosts . +- +- +-.SH OPTIONS +-.TP +-.I "\-a, \-\-alias" +-Display the alias name of the host (if used). +-.TP +-.I "\-d, \-\-domain" +-Display the name of the DNS domain. Don't use the command +-.B domainname +-to get the DNS domain name because it will show the NIS domain name and +-not the DNS domain name. Use +-.B dnsdomainname +-instead. +-.TP +-.I "\-F, \-\-file filename" +-Read the host name from the specified file. Comments (lines starting with +-a `#') are ignored. +-.TP +-.I "\-f, \-\-fqdn, \-\-long" +-Display the FQDN (Fully Qualified Domain Name). A FQDN consists of a +-short host name and the DNS domain name. Unless you are using bind or NIS +-for host lookups you can change the FQDN and the DNS domain name (which is +-part of the FQDN) in the \fI/etc/hosts\fR file. +-.TP +-.I "\-h, \-\-help" +-Print a usage message and exit. +-.TP +-.I "\-i, \-\-ip\-address" +-Display the IP address(es) of the host. +-.TP +-.I "\-n, \-\-node" +-Display the DECnet node name. If a parameter is given (or +-.B \-\-file name +-) the root can also set a new node name. +-.TP +-.I "\-s, \-\-short" +-Display the short host name. This is the host name cut at the first dot. +-.TP +-.I "\-V, \-\-version" +-Print version information on standard output and exit successfully. +-.TP +-.I "\-v, \-\-verbose" +-Be verbose and tell what's going on. +-.TP +-.I "\-y, \-\-yp, \-\-nis" +-Display the NIS domain name. If a parameter is given (or +-.B \-\-file name +-) then root can also set a new NIS domain. +-.SH FILES +-.B /etc/hosts +-.SH AUTHOR +-Peter Tobias, <tobias@et\-inf.fho\-emden.de> +-.br +-Bernd Eckenfels, <net\-tools@lina.inka.de> (NIS and manpage). +-.br +-Steve Whitehouse, <SteveW@ACM.org> (DECnet support and manpage). +- +diff -Naur a/man/en_US/ifconfig.8 b/man/en_US/ifconfig.8 +--- a/man/en_US/ifconfig.8 2008-10-02 18:16:59.000000000 -0500 ++++ b/man/en_US/ifconfig.8 1969-12-31 18:00:00.000000000 -0600 +@@ -1,229 +0,0 @@ +-.TH IFCONFIG 8 "2008\-10\-03" "net\-tools" "Linux System Administrator's Manual" +-.SH NAME +-ifconfig \- configure a network interface +-.SH SYNOPSIS +-.B "ifconfig [-v] [-a] [-s] [interface]" +-.br +-.B "ifconfig [-v] interface [aftype] options | address ..." +-.SH DESCRIPTION +-.B Ifconfig +-is used to configure the kernel-resident network interfaces. It is +-used at boot time to set up interfaces as necessary. After that, it +-is usually only needed when debugging or when system tuning is needed. +-.LP +-If no arguments are given, +-.B ifconfig +-displays the status of the currently active interfaces. If +-a single +-.B interface +-argument is given, it displays the status of the given interface +-only; if a single +-.B \-a +-argument is given, it displays the status of all interfaces, even +-those that are down. Otherwise, it configures an interface. +- +-.SH Address Families +-If the first argument after the interface name is recognized as +-the name of a supported address family, that address family is +-used for decoding and displaying all protocol addresses. Currently +-supported address families include +-.B inet +-(TCP/IP, default), +-.B inet6 +-(IPv6), +-.B ax25 +-(AMPR Packet Radio), +-.B ddp +-(Appletalk Phase 2), +-.B ipx +-(Novell IPX) and +-.B netrom +-(AMPR Packet radio). +-.SH OPTIONS +-.TP +-.B -a +-display all interfaces which are currently available, even if down +-.TP +-.B -s +-display a short list (like netstat -i) +-.TP +-.B -v +-be more verbose for some error conditions +-.TP +-.B interface +-The name of the interface. This is usually a driver name followed by +-a unit number, for example +-.B eth0 +-for the first Ethernet interface. If your kernel supports alias interfaces, +-you can specify them with +-.B eth0:0 +-for the first alias of eth0. You can use them to assign a second address. To +-delete an alias interface use +-.BR "ifconfig eth0:0 down" . +-Note: for every scope (i.e. same net with address/netmask combination) all +-aliases are deleted, if you delete the first (primary). +-.TP +-.B up +-This flag causes the interface to be activated. It is implicitly +-specified if an address is assigned to the interface. +-.TP +-.B down +-This flag causes the driver for this interface to be shut down. +-.TP +-.B "[\-]arp" +-Enable or disable the use of the ARP protocol on this interface. +-.TP +-.B "[\-]promisc" +-Enable or disable the +-.B promiscuous +-mode of the interface. If selected, all packets on the network will +-be received by the interface. +-.TP +-.B "[\-]allmulti" +-Enable or disable +-.B all-multicast +-mode. If selected, all multicast packets on the network will be +-received by the interface. +-.TP +-.B "metric N" +-This parameter sets the interface metric. +-.TP +-.B "mtu N" +-This parameter sets the Maximum Transfer Unit (MTU) of an interface. +-.TP +-.B "dstaddr addr" +-Set the remote IP address for a point-to-point link (such as +-PPP). This keyword is now obsolete; use the +-.B pointopoint +-keyword instead. +-.TP +-.B "netmask addr" +-Set the IP network mask for this interface. This value defaults to the +-usual class A, B or C network mask (as derived from the interface IP +-address), but it can be set to any value. +-.TP +-.B "add addr/prefixlen" +-Add an IPv6 address to an interface. +-.TP +-.B "del addr/prefixlen" +-Remove an IPv6 address from an interface. +-.TP +-.B "tunnel aa.bb.cc.dd" +-Create a new SIT (IPv6-in-IPv4) device, tunnelling to the given destination. +-.TP +-.B "irq addr" +-Set the interrupt line used by this device. Not all devices can +-dynamically change their IRQ setting. +-.TP +-.B "io_addr addr" +-Set the start address in I/O space for this device. +-.TP +-.B "mem_start addr" +-Set the start address for shared memory used by this device. Only a +-few devices need this. +-.TP +-.B "media type" +-Set the physical port or medium type to be used by the device. Not +-all devices can change this setting, and those that can vary in what +-values they support. Typical values for +-.B type +-are +-.B 10base2 +-(thin Ethernet), +-.B 10baseT +-(twisted-pair 10Mbps Ethernet), +-.B AUI +-(external transceiver) and so on. The special medium type of +-.B auto +-can be used to tell the driver to auto-sense the media. Again, not +-all drivers can do this. +-.TP +-.B "[\-]broadcast [addr]" +-If the address argument is given, set the protocol broadcast +-address for this interface. Otherwise, set (or clear) the +-.B IFF_BROADCAST +-flag for the interface. +-.TP +-.B "[\-]pointopoint [addr]" +-This keyword enables the +-.B point-to-point +-mode of an interface, meaning that it is a direct link between two +-machines with nobody else listening on it. +-.br +-If the address argument is also given, set the protocol address of +-the other side of the link, just like the obsolete +-.B dstaddr +-keyword does. Otherwise, set or clear the +-.B IFF_POINTOPOINT +-flag for the interface. +-.TP +-.B hw class address +-Set the hardware address of this interface, if the device driver +-supports this operation. The keyword must be followed by the +-name of the hardware class and the printable ASCII equivalent of +-the hardware address. Hardware classes currently supported include +-.B ether +-(Ethernet), +-.B ax25 +-(AMPR AX.25), +-.B ARCnet +-and +-.B netrom +-(AMPR NET/ROM). +-.TP +-.B multicast +-Set the multicast flag on the interface. This should not normally be needed +-as the drivers set the flag correctly themselves. +-.TP +-.B address +-The IP address to be assigned to this interface. +-.TP +-.B txqueuelen length +-Set the length of the transmit queue of the device. It is useful to set this +-to small values for slower devices with a high latency (modem links, ISDN) +-to prevent fast bulk transfers from disturbing interactive traffic like +-telnet too much. +-.SH NOTES +-Since kernel release 2.2 there are no explicit interface statistics for +-alias interfaces anymore. The statistics printed for the original address +-are shared with all alias addresses on the same device. If you want per-address +-statistics you should add explicit accounting +-rules for the address using the +-.BR ipchains (8) +-or +-.BR iptables (8) +-command. +-.LP +-Since net\-tools 1.60\-4 ifconfig is printing byte counters and human readable +-counters with IEC 60027-2 units. So 1 KiB are 2^10 byte. Note, the numbers +-are truncated to one decimal (which can by quite a large error if you +-consider 0.1 PiB is 112.589.990.684.262 bytes :) +-.LP +-Interrupt problems with Ethernet device drivers fail with EAGAIN +-.I (SIOCSIIFLAGS: Resource temporarily unavailable) +-it is most likely a interrupt conflict. See +-.I http://www.scyld.com/expert/irq\-conflict.html +-for more information. +-.SH FILES +-.I /proc/net/socket +-.br +-.I /proc/net/dev +-.br +-.I /proc/net/if_inet6 +-.SH BUGS +-While appletalk DDP and IPX addresses will be displayed they cannot be +-altered by this command. +-.SH SEE ALSO +-route(8), netstat(8), arp(8), rarp(8), ipchains(8), iptables(8), ifup(8), interfaces(5). +-.br +-http://physics.nist.gov/cuu/Units/binary.html - Prefixes for binary multiples +-.SH AUTHORS +-Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org> +-.br +-Alan Cox, <Alan.Cox@linux.org> +-.br +-Phil Blundell, <Philip.Blundell@pobox.com> +-.br +-Andi Kleen +-.br +-Bernd Eckenfels, <net\-tools@lina.inka.de> +diff -Naur a/man/en_US/nisdomainname.1 b/man/en_US/nisdomainname.1 +--- a/man/en_US/nisdomainname.1 1998-08-10 15:51:12.000000000 -0500 ++++ b/man/en_US/nisdomainname.1 1969-12-31 18:00:00.000000000 -0600 +@@ -1 +0,0 @@ +-.so man1/hostname.1 +diff -Naur a/man/en_US/ypdomainname.1 b/man/en_US/ypdomainname.1 +--- a/man/en_US/ypdomainname.1 1998-08-10 15:51:16.000000000 -0500 ++++ b/man/en_US/ypdomainname.1 1969-12-31 18:00:00.000000000 -0600 +@@ -1 +0,0 @@ +-.so man1/hostname.1 diff --git a/talimatname/genel/n/net-tools/talimat b/talimatname/genel/n/net-tools/talimat new file mode 100644 index 000000000..1df149a59 --- /dev/null +++ b/talimatname/genel/n/net-tools/talimat @@ -0,0 +1,19 @@ +# Tanım: ağ araçları +# URL: http://net-tools.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: + +isim=net-tools +surum=20101030 +devir=1 + +kaynak=(http://anduin.linuxfromscratch.org/sources/BLFS/svn/n/$isim-CVS_$surum.tar.gz + net-tools-CVS_20101030-remove_dups-1.patch) + +derle() { + cd net-tools-CVS_20101030 + patch -Np1 -i ../net-tools-CVS_20101030-remove_dups-1.patch + yes "" | make config + make + make update DESTDIR=$PKG install +} diff --git a/talimatname/genel/n/netbeans/netbeans.conf b/talimatname/genel/n/netbeans/netbeans.conf new file mode 100644 index 000000000..a543c09c3 --- /dev/null +++ b/talimatname/genel/n/netbeans/netbeans.conf @@ -0,0 +1,63 @@ +# Default locations of userdir and cachedir: +# (http://wiki.netbeans.org/FaqWhatIsUserdir) +# +# On Windows ${DEFAULT_USERDIR_ROOT} will be replaced by the launcher +# with "<AppData>\NetBeans" where <AppData> is user's +# value of "AppData" key in Windows Registry under +# "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" +# and ${DEFAULT_CACHEDIR_ROOT} will be replaced by the launcher +# with "<Local AppData>\NetBeans\Cache" where <Local AppData> is user's +# value of "Local AppData" key in Windows Registry under +# "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" +# +# On Mac ${DEFAULT_USERDIR_ROOT} will be replaced by the launcher +# with "~/Library/Application Support/NetBeans" and +# ${DEFAULT_CACHEDIR_ROOT} with "~/Library/Caches/NetBeans" +# +# On other systems ${DEFAULT_USERDIR_ROOT} will be replaced by the launcher +# with "~/.netbeans" and ${DEFAULT_CACHEDIR_ROOT} with "~/.cache/netbeans" +# +# You can also use ${HOME} variable which will be replaced with +# user.home JVM system property value. This variable is valid only in +# netbeans_default_userdir and netbeans_default_cachedir properties. +# +# NOTE: If you specify a non-default userdir path on command line +# (--userdir option) and don't specify a cachedir path (--cachedir option), +# cachedir will be in "<userdir>/var/cache". +# +# Cachedir must be different from userdir. The same cachedir and userdir +# would cause problems. +# +netbeans_default_userdir="~/.netbeans/8.2" +netbeans_default_cachedir="~/.cache/netbeans/8.2" + +# Options used by NetBeans launcher by default: +# (can be overridden by explicit command line switches) +# +# Note that default -Xmx is selected for you automatically. +# You can find these values in var/log/messages.log file in your userdir. +# The automatically selected value can be overridden by specifying -J-Xmx +# here or on the command line. +# +# If you specify the heap size explicitly, you may also want to enable +# Concurrent Mark & Sweep garbage collector. +# (see http://wiki.netbeans.org/FaqGCPauses) +# +netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true" + +# Default location of JDK: +# (set by installer or commented out if launcher should decide) +# +# It can be overridden on command line by using --jdkhome <dir> +# Be careful when changing jdkhome. +# There are two NetBeans launchers for Windows (32-bit and 64-bit) and +# installer points to one of those in the NetBeans application shortcut +# based on the Java version selected at installation time. +# +#netbeans_jdkhome="/path/to/jdk" + +# Additional module clusters: +# using ${path.separator} (';' on Windows or ':' on Unix): +# +#netbeans_extraclusters="/absolute/path/to/cluster1:/absolute/path/to/cluster2" + diff --git a/talimatname/genel/n/netbeans/netbeans.desktop b/talimatname/genel/n/netbeans/netbeans.desktop new file mode 100644 index 000000000..e92dfa202 --- /dev/null +++ b/talimatname/genel/n/netbeans/netbeans.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Netbeans +Comment=Netbeans IDE +Exec=netbeans %f +Icon=netbeans +Terminal=false +Type=Application +Categories=Development,IDE; +StartupNotify=false \ No newline at end of file diff --git a/talimatname/genel/n/netbeans/netbeans.sh b/talimatname/genel/n/netbeans/netbeans.sh new file mode 100755 index 000000000..bc4996a82 --- /dev/null +++ b/talimatname/genel/n/netbeans/netbeans.sh @@ -0,0 +1,223 @@ +#!/bin/sh +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. +# +# Copyright 1997-2016 Oracle and/or its affiliates. All rights reserved. +# +# Oracle and Java are registered trademarks of Oracle and/or its affiliates. +# Other names may be trademarks of their respective owners. +# +# The contents of this file are subject to the terms of either the GNU +# General Public License Version 2 only ("GPL") or the Common +# Development and Distribution License("CDDL") (collectively, the +# "License"). You may not use this file except in compliance with the +# License. You can obtain a copy of the License at +# http://www.netbeans.org/cddl-gplv2.html +# or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the +# specific language governing permissions and limitations under the +# License. When distributing the software, include this License Header +# Notice in each file and include the License file at +# nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this +# particular file as subject to the "Classpath" exception as provided +# by Oracle in the GPL Version 2 section of the License file that +# accompanied this code. If applicable, add the following below the +# License Header, with the fields enclosed by brackets [] replaced by +# your own identifying information: +# "Portions Copyrighted [year] [name of copyright owner]" +# +# Contributor(s): +# +# The Original Software is NetBeans. The Initial Developer of the Original +# Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun +# Microsystems, Inc. All Rights Reserved. +# +# If you wish your version of this file to be governed by only the CDDL +# or only the GPL Version 2, indicate your decision by adding +# "[Contributor] elects to include this software in this distribution +# under the [CDDL or GPL Version 2] license." If you do not indicate a +# single choice of license, a recipient has the option to distribute +# your version of this file under either the CDDL, the GPL Version 2 or +# to extend the choice of license to its licensees as provided above. +# However, if you add GPL Version 2 code and therefore, elected the GPL +# Version 2 license, then the option applies only if the new code is +# made subject to such option by the copyright holder. + +# +# resolve symlinks +# + +PRG=$0 + +while [ -h "$PRG" ]; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '^.*-> \(.*\)$' 2>/dev/null` + if expr "$link" : '^/' 2> /dev/null >/dev/null; then + PRG="$link" + else + PRG="`dirname "$PRG"`/$link" + fi +done + +progdir=`dirname "$PRG"` +old=`pwd` +cd "$progdir"/.. +basedir=`pwd` +cd "$old" + +case "`uname`" in + Darwin*) + # set default userdir and cachedir on Mac OS X + DEFAULT_USERDIR_ROOT="${HOME}/Library/Application Support/NetBeans" + DEFAULT_CACHEDIR_ROOT=${HOME}/Library/Caches/NetBeans + ;; + *) + # set default userdir and cachedir on unix systems + DEFAULT_USERDIR_ROOT=${HOME}/.netbeans + DEFAULT_CACHEDIR_ROOT=${HOME}/.cache/netbeans + ;; +esac + + +if [ -f "$basedir"/etc/netbeans.conf ] ; then + . "$basedir"/etc/netbeans.conf +fi + +# following should be done just in RPM or Solaris Launcher +# if [ -f /etc/netbeans.conf ] ; then +# . /etc/netbeans.conf +# fi + +export DEFAULT_USERDIR_ROOT + +# #68373: look for userdir, but do not modify "$@" +userdir="${netbeans_default_userdir}" +cachedir="${netbeans_default_cachedir}" + +founduserdir="" +for opt in "$@"; do + if [ "${founduserdir}" = "yes" ]; then + userdir="$opt" + break + elif [ "$opt" = "--userdir" ]; then + founduserdir="yes" + fi +done +foundcachedir="" +for opt in "$@"; do + if [ "${foundcachedir}" = "yes" ]; then + cachedir="$opt" + break + elif [ "$opt" = "--cachedir" ]; then + foundcachedir="yes" + fi +done + +if [ -f "${userdir}"/etc/netbeans.conf ] ; then + . "${userdir}"/etc/netbeans.conf +fi + + +if [ ! -f "$basedir"/etc/netbeans.clusters ]; then + echo Cannot read cluster file: "$basedir"/etc/netbeans.clusters 1>&2 + exit 1 +fi + +readClusters() { + grep -v "^#" "$basedir"/etc/netbeans.clusters | grep -v "^$" | grep -v platform | while read X; do + if expr "$X" : "/.*" >/dev/null; then + echo "$X" + else + echo "$basedir/$X" + fi + done +} + +absolutize_paths() { + while read path; do + if [ -d "$path" ]; then + (cd "$path" 2>/dev/null && pwd) + else + echo "$path" + fi + done +} + +netbeans_clusters=`readClusters | absolutize_paths | tr '\012' ':'` + +if [ ! -z "$netbeans_extraclusters" ] ; then + netbeans_clusters="$netbeans_clusters:$netbeans_extraclusters" +fi + +heap_size () { + mem=640 + case "`uname`" in + Linux*) + mem=`cat /proc/meminfo | grep MemTotal | tr -d [:space:][:alpha:]:` + mem=`expr $mem / 1024` + ;; + SunOS*) + mem=`/usr/sbin/prtconf | grep Memory | /usr/bin/tr -dc '[0-9]'` + ;; + Darwin*) + mem=`/usr/sbin/sysctl hw.memsize | tr -d [:alpha:][:space:].:` + mem=`expr $mem / 1048576` + ;; + *) + ;; + esac + if [ -z "$mem" ] ; then + mem=640 + fi + mem=`expr $mem / 5` + if [ $mem -gt 1024 ] ; then + mem=1024 + elif [ $mem -lt 96 ] ; then + mem=96 + fi + max_heap_size=$mem + return 0 +} + + +if grep -v -- "-J-Xmx" >/dev/null <<EOF ; then +${netbeans_default_options} +EOF + heap_size + netbeans_default_options="-J-Xmx${max_heap_size}m ${netbeans_default_options}" +fi + +launchNbexec() { + nbexec="/usr/share/netbeans/platform/lib/nbexec" + sh="/bin/bash" + #exec $sh "$nbexec" + source /etc/netbeans.conf + exec $sh "$nbexec" $netbeans_default_options --userdir "${userdir}" --cachedir "${cachedir}" + #"$@" + +} + +# in case of macosx, the apple.laf.useScreenMenuBar property should be ideally in the Info.plist file +# but it doesn't get propagated into the executed java VM. +case "`uname`" in + Darwin*) + eval launchNbexec \ + --jdkhome '"$netbeans_jdkhome"' \ + -J-Xdock:name=NetBeans \ + '"-J-Xdock:icon=$basedir/nb/netbeans.icns"' \ + --branding nb \ + --clusters '"$netbeans_clusters"' \ + -J-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade \ + -J-Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense \ + ${netbeans_default_options} \ + '"$@"' + ;; + *) + eval launchNbexec \ + --jdkhome '"$netbeans_jdkhome"' \ + --branding nb \ + --clusters '"$netbeans_clusters"' \ + -J-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade \ + -J-Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense \ + ${netbeans_default_options} \ + '"$@"' + ;; +esac diff --git a/talimatname/genel/n/netbeans/talimat b/talimatname/genel/n/netbeans/talimat new file mode 100644 index 000000000..6a3448570 --- /dev/null +++ b/talimatname/genel/n/netbeans/talimat @@ -0,0 +1,27 @@ +# Tanım: Java, HTML5, PHP, Groovy, C ve C++ için geliştirme ortamı. +# URL: http://netbeans.org/ +# Paketçi: halityilmaz1982 +# Gerekler: openjdk freefont-ttf xorg-libxtst giflib atk + +isim=netbeans +surum=8.2 +devir=1 +_altsurum=201609300101 + +kaynak=( http://download.netbeans.org/netbeans/$surum/final/zip/$isim-$surum-$_altsurum.zip + https://cdn.rawgit.com/ComFreek/chocolatey-packages/779f5c96f817ed1fa0d76fd90841873dc6c0ba74/icons/netbeans.png + $isim.desktop + netbeans.conf + netbeans.sh) + +derle() { + mkdir -p "$PKG/usr/"{bin,share/applications} + install -Dm755 "$SRC/netbeans.sh" "$PKG/usr/bin/$isim" + mkdir -p $PKG/etc + cp -r "$SRC/$isim" "$PKG/usr/share/" + install -Dm644 "$isim.desktop" "$PKG/usr/share/applications/$isim.desktop" + install -Dm644 "$SRC/netbeans.png" "$PKG/usr/share/pixmaps/$isim.png" + rm -r "$PKG/usr/share/$isim/bin" + cp $PKG/usr/share/netbeans/etc/netbeans.clusters $PKG/etc/ + cp $PKG/usr/share/netbeans/etc/netbeans.import $PKG/etc/ +} diff --git a/talimatname/genel/n/netcat/talimat b/talimatname/genel/n/netcat/talimat new file mode 100644 index 000000000..fbcc308da --- /dev/null +++ b/talimatname/genel/n/netcat/talimat @@ -0,0 +1,20 @@ +# Tanım: Ağ bağlantıları üzerinden veri okuma ve yazma +# URL: http://netcat.sourceforge.net +# Paketçi: milisarge +# Gerekler: + +isim=netcat +surum=0.7.1 +devir=1 + +kaynak=(http://download.sourceforge.net/netcat/netcat-0.7.1.tar.bz2) + +derle() { + cd $isim-$surum + + ./configure --prefix=/usr \ + --mandir=/usr/share/man + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/n/netdata/netdata.kur-kos b/talimatname/genel/n/netdata/netdata.kur-kos new file mode 100644 index 000000000..39da94f1c --- /dev/null +++ b/talimatname/genel/n/netdata/netdata.kur-kos @@ -0,0 +1,14 @@ +getent group netdata > /dev/null || groupadd -g 134 netdata 1>/dev/null +getent passwd netdata > /dev/null || useradd -u 134 -d /var/cache/netdata -g netdata -s /bin/nologin netdata 1>/dev/null +chown -R netdata:netdata /var/lib/netdata +chown -R netdata:netdata /var/log/netdata +chown -R netdata:netdata /var/cache/netdata +chown -R netdata:netdata /usr/share/netdata/web +chown -R netdata:netdata /etc/netdata +echo +echo "uygulama ilk defa başlayınca" +echo "ayar dosyasını aşağıdaki adresten indirip düzenledikten sonra" +echo "http://127.0.0.1:19999/netdata.conf" +echo +echo " /etc/netdata/ buraya kopyalayınız" +echo diff --git a/talimatname/genel/n/netdata/talimat b/talimatname/genel/n/netdata/talimat new file mode 100644 index 000000000..c7994c304 --- /dev/null +++ b/talimatname/genel/n/netdata/talimat @@ -0,0 +1,25 @@ +# Tanım: Web tabanlı gerçek zamanlı sistem performans izleyici uygulaması +# URL: https://github.com/firehol/netdata/wiki +# Paketçi: milisarge +# Gerekler: libmnl libnetfilter_acct + +isim=netdata +surum=1.7.0 +devir=1 + +kaynak=(https://github.com/firehol/netdata/releases/download/v${surum}/netdata-${surum}.tar.xz) + +derle(){ + cd $isim-$surum + ./configure \ + --prefix="/usr" \ + --sbindir="/usr/bin" \ + --sysconfdir="/etc" \ + --libexecdir="/usr/lib" \ + --localstatedir="/var" \ + --with-zlib --with-math --with-user=netdata + make + make DESTDIR=$PKG install + touch "$PKG/etc/netdata/netdata.conf" + install -Dm0644 "system/netdata.logrotate" "$PKG/etc/logrotate.d/netdata" +} diff --git a/talimatname/genel/n/netdiscover/talimat b/talimatname/genel/n/netdiscover/talimat new file mode 100644 index 000000000..0c2f1d7f5 --- /dev/null +++ b/talimatname/genel/n/netdiscover/talimat @@ -0,0 +1,21 @@ +# Tanım: DHCP sunucuları olmayan kablosuz ağlar için de geliştirilen arp protokolüne dayalı ağ adresi bulma aracıdır. +# URL: http://nixgeneration.com/~jaime/netdiscover/ +# Paketçi: Cihan_Alkan +# Gerekler: libpcap libnet +# Grup: ağ güvenlik + +isim=netdiscover +surum=0.3 +devir=1 +kaynak=(https://sourceforge.net/projects/${isim}/files/${isim}/0.3-pre-beta7-LINUXONLY/${isim}-0.3-pre-beta7-LINUXONLY.tar.gz + http://kaynaklar.milislinux.org/oui.tar.xz) + + +derle() { + cd "$SRC"/netdiscover-0.3-pre-beta7 + patch -p1 -i ../oui.patch + ./configure --sbindir=/usr/bin --prefix=/usr --sysconfdir=/etc/ + make || return 1 + make DESTDIR="$PKG" install || return 1 + rm -rf "$PKG"/usr/share/doc +} diff --git a/talimatname/genel/n/nethogs-qt/nethogs-qt.desktop b/talimatname/genel/n/nethogs-qt/nethogs-qt.desktop new file mode 100644 index 000000000..55a238a80 --- /dev/null +++ b/talimatname/genel/n/nethogs-qt/nethogs-qt.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=Nethogs Ağ Gözlemleyici +Exec=nethogs-qt +Comment=Süreç bazlı ağ gözlemleme +Icon=hwinfo +Terminal=false +Categories=Network; diff --git a/talimatname/genel/n/nethogs-qt/talimat b/talimatname/genel/n/nethogs-qt/talimat new file mode 100644 index 000000000..77d453ad2 --- /dev/null +++ b/talimatname/genel/n/nethogs-qt/talimat @@ -0,0 +1,20 @@ +# Tanım: süreç bazlı net kullanım grafik göstericisi qt arayüzü +# URL: https://github.com/mbfoss/gnethogs +# Paketçi: milisarge +# Gerekler: nethogs qt5 + +isim=nethogs-qt +surum=0.0.4 +devir=1 +kaynak=(http://slist.lilotux.net/linux/nethogs-qt/$isim-$surum.tgz + nethogs-qt.desktop) + +derle() { + cd "$SRC/$isim-$surum" + qmake-qt5 + make + install -d "$PKG"/usr/bin/ + install -m 755 nethogs-qt "$PKG"/usr/bin/ + install -d "$PKG"/usr/share/applications + cp $SRC/nethogs-qt.desktop "$PKG"/usr/share/applications/ +} diff --git a/talimatname/genel/n/nethogs/talimat b/talimatname/genel/n/nethogs/talimat new file mode 100644 index 000000000..ce1e27e91 --- /dev/null +++ b/talimatname/genel/n/nethogs/talimat @@ -0,0 +1,23 @@ +# Tanım: süreç bazlı net kullanım grafik göstericisi +# URL: https://github.com/raboof/nethogs +# Paketçi: milisarge +# Gerekler: libpcap + +isim=nethogs +surum=0.8.5 +devir=1 +kaynak=(https://github.com/raboof/nethogs/archive/v$surum.tar.gz) + +derle() { + cd "$SRC/$isim-$surum" + sed -i 's|/sbin|/bin|' src/MakeApp.mk + sed -i 's|/local||' Makefile + unset CFLAGS + unset CXXFLAGS + make prefix="/usr" + make prefix="/usr" libnethogs + make prefix="/usr" DESTDIR="$PKG" install + make prefix="/usr" DESTDIR="$PKG" install_lib + install -Dm755 src/libnethogs.h "$PKG/usr/include/libnethogs.h" + ln -s "/usr/lib/libnethogs.so.$surum" "$PKG/usr/lib/libnethogs.so" +} diff --git a/talimatname/genel/n/netpbm/netpbm-noppmtompeg.patch b/talimatname/genel/n/netpbm/netpbm-noppmtompeg.patch new file mode 100644 index 000000000..8b668da69 --- /dev/null +++ b/talimatname/genel/n/netpbm/netpbm-noppmtompeg.patch @@ -0,0 +1,25 @@ +diff --git a/buildtools/manpage.mk b/buildtools/manpage.mk +index 47d890c..62e613f 100644 +--- a/buildtools/manpage.mk ++++ b/buildtools/manpage.mk +@@ -251,7 +251,6 @@ MAN1 = \ + ppmtolj.1 \ + ppmtomap.1 \ + ppmtomitsu.1 \ +- ppmtompeg.1 \ + ppmtoneo.1 \ + ppmtopcx.1 \ + ppmtopgm.1 \ +diff --git a/converter/ppm/Makefile b/converter/ppm/Makefile +index 003ef8d..09f05cd 100644 +--- a/converter/ppm/Makefile ++++ b/converter/ppm/Makefile +@@ -7,7 +7,7 @@ VPATH=.:$(SRCDIR)/$(SUBDIR) + + include $(BUILDDIR)/config.mk + +-SUBDIRS = hpcdtoppm ppmtompeg ++SUBDIRS = hpcdtoppm + + PORTBINARIES = 411toppm eyuvtoppm gouldtoppm ilbmtoppm imgtoppm \ + leaftoppm mtvtoppm neotoppm \ diff --git a/talimatname/genel/n/netpbm/talimat b/talimatname/genel/n/netpbm/talimat new file mode 100644 index 000000000..92cb0d81e --- /dev/null +++ b/talimatname/genel/n/netpbm/talimat @@ -0,0 +1,126 @@ +# Tanım: Grafik resimlerin manipüle edilmesi için bir araç seti +# URL: http://netpbm.sourceforge.net/ +# Paketçi: Cihan_Alkan +# Gerekler: perl libpng libtiff libxml2 python jbigkit xorg-libx11 jasper +# Grup: kütüphane + +isim=netpbm +surum=10.71.02 +devir=1 + +kaynak=(http://pkgs.fedoraproject.org/repo/pkgs/netpbm/netpbm-10.71.02.tar.xz/24df6a5baf36fa8943f046568726fd57/netpbm-10.71.02.tar.xz + netpbm-noppmtompeg.patch) + +derle() { + cd $isim-$surum + touch converter/ppm/hpcdtoppm/depend.mk + patch -p1 -E --backup --verbose -i ${SRC}/netpbm-noppmtompeg.patch + # use the interactive way + CFLAGS="${CFLAGS} -fPIC" + LDSHLIB="${LDSHLIB} -fPIC" + chmod 755 configure buildtools/stamp-date buildtools/install.sh buildtools/mkinstalldirs + +sed -i -e "s|\$(LDSHLIB)|\$(LDSHLIB) ${LDFLAGS}|g" lib/Makefile || exit 1 + +mv buildtools/pkgconfig_template buildtools/pkgconfig_template.orig + +cat > buildtools/pkgconfig_template <<EOF +prefix=/usr +exec_prefix=\${prefix} +libdir=/usr/lib +includedir=\${prefix}/include +EOF + +sed \ + -e "s|@VERSION@|${VERSION}|g" \ + -e 's|@LINKDIR@|${libdir}|g' \ + -e 's|@INCLUDEDIR@|${includedir}|g' \ + buildtools/pkgconfig_template.orig \ + >> buildtools/pkgconfig_template || exit 1 + +SOVER="$(grep '^MAJ =' lib/Makefile | awk '{print $3}')" + +#sed -i -e '/config_mk/d' buildtools/configure.pl +./configure <<EOF + + + + + + + + + + + + + + + + + + +EOF + +TOP=$(pwd) +make -j1 -e \ + CC=/usr/bin/gcc \ + LDFLAGS="-L${TOP}/pbm -L${TOP}/pgm -L${TOP}/pnm -L${TOP}/ppm ${LDFLAGS}" \ + CFLAGS="${SLKCFLAGS} -fPIC -ffast-math -pedantic -fno-common -Wall -Wno-uninitialized -Wmissing-declarations -Wimplicit -Wwrite-strings -Wmissing-prototypes -Wundef -I/usr/include/jbigkit" \ + LADD="-lm" \ + DEFAULT_TARGET=nonmerge \ + NETPBMLIBTYPE=unixshared \ + NETPBMLIBSUFFIX=so \ + STATICLIB_TOO=n \ + JPEGINC_DIR=/usr/include \ + PNGINC_DIR=/usr/include \ + TIFFINC_DIR=/usr/include \ + JPEGLIB_DIR=/usr/lib \ + PNGLIB_DIR=/usr/lib \ + TIFFLIB_DIR=/usr/lib \ + LINUXSVGALIB="NONE" \ + X11LIB=/usr/lib/libX11.so \ + XML2LIBS="NONE" \ + JASPERLIB="" \ + JASPERDEPLIBS="-ljasper" \ + JBIGLIB='-ljbig' \ + NETPBM_DOCURL="http://netpbm.sourceforge.net/doc/" || exit 1 + + # prepare man files + ( cd userguide + for i in *.html ; do + ../buildtools/makeman ${i} + done + for i in 1 3 5 ; do + mkdir -p man/man${i} + mv *.${i} man/man${i} + done + ) || exit 1 + + mkdir -p ${PKG} || exit 1 + make package pkgdir=${PKG}/usr LINUXSVGALIB="NONE" XML2LIBS="NONE" STATICLIB_TOO=n || exit 1 + + mkdir -p ${PKG}/usr/lib${LIBDIRSUFFIX} + if [ "/usr/lib${LIBDIRSUFFIX}" != "/usr/lib" ]; then + mv ${PKG}/usr/lib/lib* ${PKG}/usr/lib${LIBDIRSUFFIX}/ || exit 1 + rmdir ${PKG}/usr/lib + fi + + ln -sf libnetpbm.so.${SOVER} ${PKG}/usr/lib${LIBDIRSUFFIX}/libnetpbm.so || exit 1 + + find ${PKG} | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + + mkdir -p ${PKG}/usr/lib${LIBDIRSUFFIX}/pkgconfig + mv ${PKG}/usr/pkgconfig_template \ + ${PKG}/usr/lib${LIBDIRSUFFIX}/pkgconfig/netpbm.pc || exit 1 + + rm -rf ${PKG}/usr/man + mkdir -p $PKG/usr/share + mv $PKG/usr/misc $PKG/usr/share/netpbm + rm -f ${PKG}/usr/config_template + rm -f ${PKG}/usr/pkginfo + rm -f ${PKG}/usr/README + rm -f ${PKG}/usr/VERSION + rm -fr ${PKG}/usr/link +} diff --git a/talimatname/genel/n/netsniff-ng/talimat b/talimatname/genel/n/netsniff-ng/talimat new file mode 100644 index 000000000..644670d39 --- /dev/null +++ b/talimatname/genel/n/netsniff-ng/talimat @@ -0,0 +1,17 @@ +# Tanım: Yüksek performanslı ağ paketi dinleme/inceleme uygulaması +# URL: http://netsniff-ng.org/ +# Paketçi: milisarge +# Gerekler: cmake geoip libpcap libnl libnet libsodium libcli liburcu libnetfilter_conntrack +# Grup: güvenlik + +isim=netsniff-ng +surum=0.6.4 +devir=1 +kaynak=(http://pub.netsniff-ng.org/netsniff-ng/netsniff-ng-$surum.tar.gz) + +derle() { + cd "${SRC}"/${isim}-${surum} + NACL_INC_DIR=/usr/include/sodium NACL_LIB=sodium ./configure --prefix=/usr + make DISTRO=1 all + make PREFIX="/usr" DESTDIR="${PKG}" SBINDIR="/usr/bin" install_all +} diff --git a/talimatname/genel/n/nettle/talimat b/talimatname/genel/n/nettle/talimat new file mode 100644 index 000000000..7b4cd78e0 --- /dev/null +++ b/talimatname/genel/n/nettle/talimat @@ -0,0 +1,22 @@ +# Tanım: Düşük düzey kriptografi kütüphanesi +# URL: http://www.lysator.liu.se/~nisse/nettle/ +# Paketçi: milisarge +# Gerekler: + +isim=nettle +surum=3.2 +devir=1 +kaynak=(ftp://ftp.gnu.org/gnu/$isim/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + + ./configure --prefix=/usr \ + --libdir=/usr/lib \ + --disable-documentation + + make + make DESTDIR=$PKG install + + rm -rf $PKG/usr/share +} diff --git a/talimatname/genel/n/nettle/talimat.E b/talimatname/genel/n/nettle/talimat.E new file mode 100644 index 000000000..b3ac6b905 --- /dev/null +++ b/talimatname/genel/n/nettle/talimat.E @@ -0,0 +1,20 @@ +# Tanım: Low-level cryptographic library that is designed to fit easily in many contexts. +# URL: http://www.lysator.liu.se/~nisse/nettle/ +# Paketçi: tnut at nutyx dot org + +isim=nettle +surum=3.2 +devir=1 + +kaynak=(http://ftp.gnu.org/gnu/$isim/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +chmod -v 755 $PKG/usr/lib/libhogweed.so.4.1 $PKG/usr/lib/libnettle.so.6.1 +install -v -m755 -d $PKG/usr/share/doc/nettle-$surum +rm -rf $PKG/usr/share/info/dir +install -v -m644 nettle.html $PKG/usr/share/doc/nettle-$surum +} diff --git a/talimatname/genel/n/network-manager-applet/network-manager-applet.kur-kos b/talimatname/genel/n/network-manager-applet/network-manager-applet.kur-kos new file mode 100644 index 000000000..76636206c --- /dev/null +++ b/talimatname/genel/n/network-manager-applet/network-manager-applet.kur-kos @@ -0,0 +1,2 @@ +gtk-update-icon-cache -f -q -t /usr/share/icons/hicolor +/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas >/dev/null 2>&1 diff --git a/talimatname/genel/n/network-manager-applet/talimat b/talimatname/genel/n/network-manager-applet/talimat new file mode 100644 index 000000000..ce19c0d0f --- /dev/null +++ b/talimatname/genel/n/network-manager-applet/talimat @@ -0,0 +1,27 @@ +# Tanım: Ağın daha doğrudan yönetilebilir olmasını sağlayan basitleştiren ve geliştiren araçlar +# URL: http://projects.gnome.org/NetworkManager/ +# Paketçi: milisarge +# Gerekler: gtk3 gconf iso-codes gobject-introspection libgnome-keyring gnome-keyring libsecret libnotify networkmanager polkit-gnome modemmanager gtk-update-icon-cache +# Grup: ağ + +isim=network-manager-applet +surum=1.8.10 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/1.8/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + sed -i '/#, fuzzy/d' po/tr.po + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --disable-static \ + --without-team \ + --without-selinux \ + --disable-introspection + + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/gir-1.0 + rm -rf $PKG/usr/share/gtk-doc +} diff --git a/talimatname/genel/n/networkmanager/networkmanager.kos-sil b/talimatname/genel/n/networkmanager/networkmanager.kos-sil new file mode 100644 index 000000000..f09f24dc5 --- /dev/null +++ b/talimatname/genel/n/networkmanager/networkmanager.kos-sil @@ -0,0 +1,10 @@ +#!/bin/sh +for _kurtar in \ +'/etc/NetworkManager/system-connections' ; \ +do + +#sed -i '\|'\'$_kurtar\''|d' /var/lib/pkg/DB/cups/kurulan +# -sz ve -g den sonra /tmp/$paket.sil dikkate alınır +sed -i '\|'\'$_kurtar\''|d' /tmp/networkmanager.sil + +done diff --git a/talimatname/genel/n/networkmanager/talimat b/talimatname/genel/n/networkmanager/talimat new file mode 100644 index 000000000..576beda03 --- /dev/null +++ b/talimatname/genel/n/networkmanager/talimat @@ -0,0 +1,63 @@ +# Tanım: Ağın daha doğrudan yönetilebilir olmasını sağlayan basitleştiren ve geliştiren araçlar +# URL: http://projects.gnome.org/NetworkManager/ +# Paketçi: milisarge +# Gerekler: libndp libsoup libgudev modemmanager dbus-glib iptables libnl nss wireless-tools polkit upower vala wpa-supplicant python-gobject gobject-introspection newt jansson ppp +# Grup: ağ + +_isim=NetworkManager + +isim=networkmanager +surum=1.10.8 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$_isim/${surum%.*}/$_isim-$surum.tar.xz) + +derle() { + _pppver=2.4.7 + cd ${_isim}-$surum + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --with-nmtui \ + --with-modem-manager-1 \ + --with-session-tracking=consolekit \ + --with-suspend-resume=upower \ + --with-dbus-sys-dir=/etc/dbus-1/system.d \ + --enable-introspection \ + --with-crypto=nss \ + --enable-wifi \ + --with-iptables=/usr/sbin/iptables \ + --with-kernel-firmware-dir=/lib/firmware \ + --with-dist-version="$surum-$devir, Milis Linux" \ + --with-systemdsystemunitdir=no \ + --with-pppd-plugin-dir=/usr/lib/pppd/$_pppver \ + --with-pppd=/usr/sbin/pppd \ + --with-wext \ + --without-consolekit \ + --without-libaudit \ + --without-more-asserts \ + --without-netconfig \ + --without-ofono \ + --without-selinux + + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' -e 's/ \ + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then/ \ + func_append compile_command " -Wl,-O1,--as-needed"\n \ + func_append finalize_command " -Wl,-O1,--as-needed"\n\0/' libtool + make + make DESTDIR=$PKG install + + rm -rf $PKG/usr/share/gtk-doc + +cat > $PKG/etc/NetworkManager/NetworkManager.conf << EOF +[main] +plugins=keyfile +EOF + +# create a VPN directory +install -d $PKG/etc/$_name/VPN +install -m755 clients/.libs/nm-online -D $PKG/usr/bin/nm-online +# create keyfile plugin system-settings directory +install -d $PKG/etc/$_name/system-connections + +} diff --git a/talimatname/genel/n/neverball/neverball.po b/talimatname/genel/n/neverball/neverball.po new file mode 100644 index 000000000..f6c6e1097 --- /dev/null +++ b/talimatname/genel/n/neverball/neverball.po @@ -0,0 +1,1676 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR Robert Kooima +# This file is distributed under the same license as the PACKAGE package. +# Cihan Alkan <cihanalk@gmail.com>, 2018. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Neverball\n" +"Report-Msgid-Bugs-To: robert.kooima@gmail.com\n" +"POT-Creation-Date: 2014-05-21 13:35+0300\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: Cihan Alkan <<cihanalk@gmail.com>>\n" +"Language-Team: Turkish <tr@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ball/st_play.c:100 +msgid "Ready?" +msgstr "Hazır mısınız?" + +#: ball/st_play.c:184 +msgid "Set?" +msgstr "Hazır" + +#: ball/st_play.c:325 +msgid "GO!" +msgstr "BAŞLA" + +#: ball/st_save.c:100 +msgid "Replay Name" +msgstr "İsim Tekrar" + +#: ball/st_save.c:111 +msgid "Save" +msgstr "Kaydet" + +#: ball/st_save.c:113 ball/st_save.c:222 ball/st_name.c:112 +msgid "Cancel" +msgstr "İptal" + +#: ball/st_save.c:217 +msgid "Overwrite?" +msgstr "Üzerine yazılsın mı?" + +#: ball/st_save.c:223 +msgid "Overwrite" +msgstr "Üzerine Yaz" + +#: ball/game_common.h:10 +msgid "snd/select.ogg" +msgstr "" + +#: ball/game_common.h:11 +msgid "snd/ready.ogg" +msgstr "" + +#: ball/game_common.h:12 +msgid "snd/set.ogg" +msgstr "" + +#: ball/game_common.h:13 +msgid "snd/go.ogg" +msgstr "" + +#: ball/game_common.h:24 +msgid "snd/record.ogg" +msgstr "" + +#: ball/game_common.h:25 +msgid "snd/fall.ogg" +msgstr "" + +#: ball/game_common.h:26 +msgid "snd/time.ogg" +msgstr "" + +#: ball/game_common.h:27 +msgid "snd/over.ogg" +msgstr "" + +#: ball/st_start.c:174 ball/st_demo.c:308 ball/st_help.c:106 +#: ball/st_ball.c:182 share/gui.c:2204 share/st_common.c:97 putt/st_conf.c:106 +#: putt/st_all.c:404 putt/st_all.c:552 +msgid "Back" +msgstr "Geri" + +#: ball/st_start.c:203 ball/progress.c:417 +msgid "Challenge" +msgstr "Meydan Okuma" + +#: ball/st_start.c:223 +msgid "Unlocked" +msgstr "Kilitsiz" + +#: ball/st_start.c:224 +msgid "Locked" +msgstr "Kilitli" + +#: ball/st_start.c:234 +msgid "Goal State in Completed Levels" +msgstr "Tamamlanan Düzeyde Hedef Belirt" + +#: ball/st_conf.c:156 putt/st_conf.c:104 +msgid "Options" +msgstr "Seçenekler" + +#: ball/st_conf.c:158 share/st_common.c:339 putt/st_conf.c:116 +msgid "Graphics" +msgstr "Grafikler" + +#: ball/st_conf.c:158 putt/st_conf.c:114 +msgid "Configure" +msgstr "Ayarlar" + +#: ball/st_conf.c:162 +msgid "Mouse Sensitivity" +msgstr "Fare Hassasiyeti" + +#: ball/st_conf.c:167 putt/st_conf.c:134 +msgid "Sound Volume" +msgstr "Ses Seviyesi" + +#: ball/st_conf.c:169 putt/st_conf.c:150 +msgid "Music Volume" +msgstr "Müzik Sesi" + +#: ball/st_conf.c:174 ball/st_name.c:99 +msgid "Player Name" +msgstr "Oyuncu Adı" + +#: ball/st_conf.c:175 ball/st_ball.c:180 +msgid "Ball Model" +msgstr "Top Çeşidi" + +#: ball/st_conf.c:176 share/st_common.c:655 putt/st_conf.c:160 +msgid "Language" +msgstr "Dil" + +#: ball/st_conf.c:190 share/st_common.c:666 +msgid "Default" +msgstr "Varsayılan" + +#: ball/st_done.c:57 +msgid "New Set Record" +msgstr "Yeni Kayıt Ayarla" + +#: ball/st_done.c:58 +msgid "Set Complete" +msgstr "Ayarlama Tamamlandı" + +#: ball/st_done.c:77 +msgid "Select Level" +msgstr "Seviye Seç" + +#: ball/progress.c:417 ball/st_help.c:260 +msgid "Challenge Mode" +msgstr "Mücadele Modu" + +#: ball/progress.c:418 ball/st_help.c:247 +msgid "Normal Mode" +msgstr "Normal Mod" + +#: ball/progress.c:418 +msgid "Normal" +msgstr "Normal" + +#: ball/progress.c:419 +msgid "Standalone Mode" +msgstr "Bağımsız Mod" + +#: ball/progress.c:419 +msgid "Standalone" +msgstr "Bağımsız" + +#: ball/progress.c:420 +msgid "Unknown Mode" +msgstr "Bilinmeyen Mod" + +#: ball/progress.c:420 ball/game_common.c:32 +msgid "Unknown" +msgstr "Bilinmeyen" + +#: ball/st_fail.c:82 +msgid "Fall-out!" +msgstr "" + +#: ball/st_fail.c:84 +msgid "Time's Up!" +msgstr "Süre Bitti'" + +#: ball/st_fail.c:98 +msgid "Exit" +msgstr "Çıkış" + +#: ball/st_fail.c:101 ball/st_goal.c:220 +msgid "Next Level" +msgstr "Sonraki Seviye" + +#: ball/st_fail.c:104 ball/st_goal.c:223 +msgid "Retry Level" +msgstr "Seviye Yeniden" + +#: ball/st_fail.c:107 ball/st_goal.c:226 +msgid "Save Replay" +msgstr "Yeniden Kaydet" + +#: ball/st_name.c:110 +msgid "OK" +msgstr "Tamam" + +#: ball/st_demo.c:202 +msgid "Time" +msgstr "Süre" + +#: ball/st_demo.c:203 ball/hud.c:68 ball/st_goal.c:166 +msgid "Coins" +msgstr "Para" + +#: ball/st_demo.c:204 +msgid "Status" +msgstr "Durum" + +#: ball/st_demo.c:235 ball/st_demo.c:426 +msgid "Replay" +msgstr "Yeniden" + +#: ball/st_demo.c:236 putt/st_all.c:740 +msgid "Player" +msgstr "Oyuncu" + +#: ball/st_demo.c:237 +msgid "Date" +msgstr "Süre" + +#: ball/st_demo.c:290 +msgid "Select Replay" +msgstr "Yeniden Seç" + +#: ball/st_demo.c:306 +msgid "No Replays" +msgstr "Yeniden Oynama Yok" + +#: ball/st_demo.c:611 +msgid "Replay Paused" +msgstr "Tekrar Duraklatıldı" + +#: ball/st_demo.c:613 +msgid "Replay Ends" +msgstr "Tekrar Sonlandı" + +#: ball/st_demo.c:619 ball/st_pause.c:88 putt/st_all.c:649 +msgid "Quit" +msgstr "Çıkış" + +#: ball/st_demo.c:623 ball/st_demo.c:709 +msgid "Keep" +msgstr "Tut" + +#: ball/st_demo.c:624 ball/st_demo.c:710 +msgid "Delete" +msgstr "Sil" + +#: ball/st_demo.c:628 ball/st_pause.c:93 putt/st_all.c:650 +msgid "Continue" +msgstr "Devam Et" + +#: ball/st_demo.c:630 +msgid "Repeat" +msgstr "Tekrar" + +#: ball/st_demo.c:705 +msgid "Delete Replay?" +msgstr "Yeniden Silinsin mi?" + +#: ball/st_demo.c:759 ball/st_level.c:179 +msgid "Warning!" +msgstr "Uyarı1!" + +#: ball/st_demo.c:761 +msgid "" +"The current replay was recorded with a\\different (or unknown) version of " +"this level.\\Be prepared to encounter visual errors.\\" +msgstr "" +"Geçerli tekrar, bu seviyenin farklı bir (veya bilinmeyen) sürümüyle" +" kaydedildi.\\Görsel hatalarla karşılaşmaya hazır olun.\\" + +#: ball/st_help.c:102 +msgid "Tricks" +msgstr "İpucu" + +#: ball/st_help.c:103 +msgid "Modes" +msgstr "Modlar" + +#: ball/st_help.c:104 +msgid "Controls" +msgstr "Kontroller" + +#: ball/st_help.c:105 +msgid "Rules" +msgstr "Kurallar" + +#: ball/st_help.c:116 +msgid "" +"Move the mouse or joystick\\or use keyboard arrows to\\tilt the floor " +"causing the\\ball to roll.\\" +msgstr "" +"Fareyi veya joystiği hareket ettirin\\veya topun devrilmesine\\ " +"neden olan yere\\eğmek için klavye oklarını kullanın.\\" + +#: ball/st_help.c:121 +msgid "" +"Roll over coins to collect\\them. Collect coins to\\unlock the goal and " +"finish\\the level.\\" +msgstr "" +"Onları toplamak için bozuk\\para atın. Oyunun kilidini açmak \\için paraları" +"toplayın\\ve seviyeyi bitirin.\\" + +#: ball/st_help.c:178 +msgid "" +"Left and right mouse buttons rotate the view.\\Hold Shift for faster view " +"rotation." +msgstr "" +"Sol ve sağ fare düğmeleri görünümü döndürür.\\Daha hızlı görüntü dönüşü " +"için Shift tuşunu basılı tutun." + +#: ball/st_help.c:180 +msgid "Exit / Pause" +msgstr "Çıkış / Bekle" + +#: ball/st_help.c:181 ball/game_common.c:46 +msgid "Chase Camera" +msgstr "Chase Kamera" + +#: ball/st_help.c:182 ball/game_common.c:45 +msgid "Lazy Camera" +msgstr "Tembel Kamera" + +#: ball/st_help.c:183 ball/game_common.c:44 +msgid "Manual Camera" +msgstr "Manuel Kamera" + +#: ball/st_help.c:184 +msgid "Screenshot" +msgstr "Ekran kaydı" + +#: ball/st_help.c:249 +msgid "" +"Finish a level before the time runs out.\\You need to collect coins in order " +"to open the goal." +msgstr "" +"Zaman bitmeden bir seviyeyi bitirin.\\Hedefi açmak için para toplamak gerekir. " + +#: ball/st_help.c:262 +msgid "" +"Start playing from the first level of the set.\\You start with only three " +"balls, do not lose them.\\Earn an extra ball for each 100 coins collected." +msgstr "" +"Setin ilk seviyesinden oynamaya başlayın.\\Sadece üç top ile başladınız, " +" onları kaybetmeyin.\\Toplanan 100 lira ile fazladan bir top atın." + +#: ball/st_help.c:276 +msgid "" +"Corners can be used to jump.\\Get rolling and take aim\\at the angle. You " +"may be able\\to reach new places.\\" +msgstr "" +"Köşeler atlamak için kullanılabilir.\\Yuvarlanın ve hedef \\doğrultusunda ilerleyin." +"yeni yerlere ulaşmak\\mümkün olabilir.\\" + +#: ball/st_help.c:281 +msgid "" +"2 yönde devirme eğimi arttırır.\\En iyi sonuç için el kamerasını kullanın\\ve " +"turn the camera by 45\\degrees for best results.\\" +msgstr "" +"Tilting in 2 directions increases\\the slope. Use the manual camera\\and " +"kamerayı 45 derece çevirin.\\" + +#: ball/st_help.c:301 ball/st_help.c:311 +msgid "Watch demo" +msgstr "Demo izle" + +#: ball/game_common.c:28 +msgid "Aborted" +msgstr "İptal edildi" + +#: ball/game_common.c:29 +msgid "Time-out" +msgstr "Süre Bitti" + +#: ball/game_common.c:30 +msgid "Success" +msgstr "Başardınız" + +#: ball/game_common.c:31 +msgid "Fall-out" +msgstr "" + +#: ball/game_common.c:48 +#, c-format +msgid "Camera %d" +msgstr "Kamera %d" + +#: ball/st_pause.c:82 putt/st_all.c:644 +msgid "Paused" +msgstr "Durduruldu" + +#: ball/st_pause.c:91 +msgid "Restart" +msgstr "Yeniden Başlat" + +#: ball/hud.c:69 +msgid "Goal" +msgstr "Gol" + +#: ball/hud.c:89 ball/st_goal.c:154 +msgid "Balls" +msgstr "Toplar" + +#: ball/hud.c:90 ball/st_goal.c:160 putt/hud.c:45 +msgid "Score" +msgstr "Sonuç" + +#: ball/st_goal.c:101 +msgid "New Record" +msgstr "Yeni Kayıt" + +#: ball/st_goal.c:102 +msgid "GOAL" +msgstr "GOL" + +#: ball/st_goal.c:215 ball/st_goal.c:217 +msgid "Finish" +msgstr "Bitti" + +#: ball/st_set.c:108 +msgid "Level Set" +msgstr "Seviye Ayarla" + +#: ball/st_level.c:56 +#, c-format +msgid "Bonus Level %s" +msgstr "Bonus Seviye %s" + +#: ball/st_level.c:58 +#, c-format +msgid "Level %s" +msgstr "Seviye %s" + +#: ball/st_level.c:64 +#, c-format +msgid "Standalone level" +msgstr "Bağımsız seviye" + +#: ball/st_level.c:181 +msgid "" +"A replay file could not be opened for writing.\\This game will not be " +"recorded.\\" +msgstr "" +"Yazma için bir oynatma dosyası açılamadı.\\Bu oyun." +"kaydedilmeyecek.\\" + +#: ball/util.c:28 +msgid "Hard" +msgstr "Zor" + +#: ball/util.c:29 +msgid "Medium" +msgstr "Orta" + +#: ball/util.c:30 +msgid "Easy" +msgstr "Kolay" + +#: ball/util.c:76 ball/util.c:122 +msgid "Unavailable" +msgstr "Kullanım dışı" + +#: ball/util.c:178 ball/util.c:228 +msgid "Most Coins" +msgstr "En Çok Para" + +#: ball/util.c:185 ball/util.c:232 +msgid "Best Times" +msgstr "En İyi Süre" + +#: ball/util.c:192 ball/util.c:236 +msgid "Fast Unlock" +msgstr "Hızlı Kilit Açma" + +#: ball/util.c:205 +msgid "Change Name" +msgstr "İsim Değiştir" + +#: ball/util.c:332 +msgid "caps" +msgstr "" + +#: ball/st_over.c:35 +msgid "GAME OVER" +msgstr "OYUN BİTTİ" + +#: ball/st_title.c:140 ball/st_title.c:175 +msgid "menu^Cheat" +msgstr "Hile" + +#: ball/st_title.c:146 ball/st_title.c:178 putt/st_all.c:238 +msgid "menu^Play" +msgstr "Oyna" + +#: ball/st_title.c:181 +msgid "menu^Replay" +msgstr "Tekrar" + +#: ball/st_title.c:182 +msgid "menu^Help" +msgstr "Yardım" + +#: ball/st_title.c:183 putt/st_all.c:239 +msgid "menu^Options" +msgstr "Ayarlar" + +#: ball/st_title.c:184 putt/st_all.c:240 +msgid "menu^Exit" +msgstr "Çıkış" + +#: share/st_common.c:318 share/st_common.c:348 share/st_common.c:366 +#: share/st_common.c:372 share/st_common.c:380 share/st_common.c:382 +#: share/st_common.c:384 +msgid "Off" +msgstr "Kapalı" + +#: share/st_common.c:319 +msgid "2x" +msgstr "" + +#: share/st_common.c:320 +msgid "4x" +msgstr "" + +#: share/st_common.c:321 +msgid "8x" +msgstr "" + +#: share/st_common.c:337 +msgid "Unknown Display" +msgstr "Bilinmeyen Ekran" + +#: share/st_common.c:341 share/st_common.c:447 +msgid "Display" +msgstr "Ekran" + +#: share/st_common.c:347 +msgid "Fullscreen" +msgstr "Tam Ekran" + +#: share/st_common.c:348 share/st_common.c:366 share/st_common.c:372 +#: share/st_common.c:380 share/st_common.c:382 share/st_common.c:384 +msgid "On" +msgstr "Açık" + +#: share/st_common.c:350 share/st_common.c:544 +msgid "Resolution" +msgstr "Çözünürlük" + +#: share/st_common.c:365 +msgid "HMD" +msgstr "" + +#: share/st_common.c:371 +msgid "V-Sync" +msgstr "" + +#: share/st_common.c:373 +msgid "Antialiasing" +msgstr "Düzgünleştirme" + +#: share/st_common.c:379 +msgid "Reflection" +msgstr "Yansıma" + +#: share/st_common.c:381 +msgid "Background" +msgstr "Arkaplan" + +#: share/st_common.c:383 +msgid "Shadow" +msgstr "Gölge" + +#: putt/st_conf.c:158 +msgid "Select" +msgstr "Seç" + +#: putt/hole.c:160 putt/st_all.c:107 putt/st_all.c:168 putt/hud.c:52 +msgid "Par" +msgstr "Kur" + +#: putt/hole.c:162 putt/st_all.c:108 putt/st_all.c:169 +msgid "P1" +msgstr "" + +#: putt/hole.c:163 putt/st_all.c:109 putt/st_all.c:170 +msgid "P2" +msgstr "" + +#: putt/hole.c:164 putt/st_all.c:110 putt/st_all.c:171 +msgid "P3" +msgstr "" + +#: putt/hole.c:165 putt/st_all.c:111 putt/st_all.c:172 +msgid "P4" +msgstr "" + +#: putt/st_all.c:75 +msgid "O" +msgstr "" + +#: putt/st_all.c:124 +msgid "Tot" +msgstr "" + +#: putt/st_all.c:136 +msgid "I" +msgstr "" + +#: putt/st_all.c:361 +msgid "Select Course" +msgstr "Kursu Seçin" + +#: putt/st_all.c:529 +msgid "Players?" +msgstr "Oyuncular" + +#: putt/st_all.c:731 +#, c-format +msgid "Hole %02d" +msgstr "Boşluk %02d" + +#: putt/st_all.c:1073 +msgid "It's In!" +msgstr "İçinde!" + +#: putt/st_all.c:1216 +msgid "1 Stroke Penalty" +msgstr "1 Darbe Cezası" + +#: putt/st_all.c:1294 +msgid "Scores" +msgstr "Sonuç" + +#: putt/st_all.c:1347 +msgid "Final Scores" +msgstr "Son Puanlar" + +#: data/set-easy.txt +msgid "Neverball Easy" +msgstr "Neverball Kolay" + +#: data/set-easy.txt +msgid "" +"Difficulty: Beginner through Intermediate\\\\25 levels with a smooth " +"learning curve.\\Read level introductions for gameplay tips.\\ \\" +msgstr "" +"Zorluk derecesi: Başlangıçtan başlayarak \\\\Orta Düzey 25 seviyelerine " +"düzgün bir öğrenme eğrisi.\\Oyun ipuçları için seviye tanıtımlarını okuyun.\\ \\" + +#: data/set-medium.txt +msgid "Neverball Medium" +msgstr "Neverball Orta" + +#: data/set-medium.txt +msgid "" +"Zorluk derecesi: Beginner through Expert\\\\25 levels which provide a balanced" +"\\challenge for players. Try to claim\\some of the records provided.\\" +msgstr "" + +#: data/set-hard.txt +msgid "Neverball Hard" +msgstr "Neverball Zor" + +#: data/set-hard.txt +msgid "" +"Zorluk derecesi: Intermediate through Expert\\\\25 levels with more of a " +"challenge for\\the experienced player. Try to claim\\Best Times, Most Coins, " +"and Fast Unlock records.\\" +msgstr "" + +#: data/set-mym.txt +msgid "Tour de force" +msgstr "Zoru başarma" + +#: data/set-mym.txt +msgid "" +"Zorluk derecesi: Expert through Insane\\\\25 levels with even greater challenge." +"\\Yazar: Mehdi Yousfi-Monod (mym)\\ \\" +msgstr "" + +#: data/set-mym2.txt +msgid "Retour de force" +msgstr "Kuvvete git" + +#: data/set-mym2.txt +msgid "" +"Zorluk derecesi: A little bit harder than my first set.\\\\More challenge, " +"particularly for grabbing coins.\\Author: Mehdi Yousfi-Monod (mym)\\ \\" +msgstr "" + +#: data/set-fwp.txt +msgid "Nevermania" +msgstr "" + +#: data/set-fwp.txt +msgid "" +"Zorluk derecesi: Expert through Impossible\\\\Assorted levels for advanced " +"players.\\Author: Florian Priester\\\\" +msgstr "" + +#: data/set-tones.txt +msgid "Tones Levels" +msgstr "Zil Düzeyleri" + +#: data/set-tones.txt +msgid "Zorluk derecesi: Moderate to Difficult.\\\\Author: Ian Walker\\\\" +msgstr "" + +#: data/set-misc.txt +msgid "Neverball Misc" +msgstr "Neverball Çeşitli" + +#: data/set-misc.txt +msgid "Unsorted levels\\For testing purposes\\\\\\\\" +msgstr "" + +#: data/holes-putt.txt +msgid "" +"The original 18-hole Neverputt course.\\With a gentle learning curve.\\ " +"\\Zorluk derecesi: Kolay Orta\\Yazar: rlk\\" +msgstr "" + +#: data/holes-paxed.txt +msgid "Another 18-hole course\\ \\ \\Zorluk derecesi: Orta\\Yazar: paxed\\" +msgstr "" + +#: data/holes-paxed2.txt +msgid "Yet Another 18-hole course\\ \\ \\Zorluk derecesi: Orta\\Yazar: paxed\\" +msgstr "" + +#: data/holes-paxed3.txt +msgid "Even More Holes\\ \\ \\Zorluk derecesi: Orta\\Yazar: paxed\\" +msgstr "" + +#: data/holes-abc.txt +msgid "" +"A 26-hole course\\following the alphabet\\\\Zorluk derecesi: Zor\\Yazar: paxed\\" +msgstr "" + +#: data/holes-slippi.txt +msgid "Crazy Golf\\ \\\\Zorluk derecesi: Kolay Orta\\Yazar: slippifishi\\" +msgstr "" + +#: data/holes-kk.txt +msgid "" +"Tricky Golf\\\\An 18-hole course with many challenges\\Difficulty: Expert " +"Through Insane\\Author: Byron James Johnson" +msgstr "" + +#: data/holes-vidski.txt +msgid "" +"Golf Jambalaya\\\\Vidski's infamous course.\\Difficulty: Medium to hard." +"\\Author: vidski\\" +msgstr "" + +#: data/holes-easyputt.txt +msgid "" +"Reshaun's Easy-Putt\\\\Difficulty: Easy through Hard\\Author: Reshaun Francis" +msgstr "" + +#: data/map-easy/bumper.map +msgid "" +"Try to avoid being hit by moving objects.\\One bump can throw the ball" +"\\completely out of control.\\" +msgstr "" + +#: data/map-easy/bumps.map +msgid "" +"Learn to control a bouncing ball.\\Look at the shadow to know where the" +"\\ball will land. If you're feeling confident in\\your mastery of bouncing, " +"take a risk\\for a big payoff.\\" +msgstr "" + +#: data/map-easy/coins.map +msgid "" +"This time you must get 50 coins to unlock the goal.\\Red coins are worth 5, " +"blue coins are worth 10.\\Get to the goal before time expires!\\\\Click to " +"begin.\\" +msgstr "" + +#: data/map-easy/corners.map +msgid "" +"Here are some more opportunities for you to\\fall off into the void. Hit the " +"bump hard to\\grab some big coins and score a short time.\\" +msgstr "" + +#: data/map-easy/curved.map +msgid "" +"As before, but without the training wheels.\\Keep the ball on a level floor" +"\\and maintain precise control.\\Build some momentum to reach the corners.\\" +msgstr "" + +#: data/map-easy/easy.map data/map-misc/centrifuge.map +#: data/map-misc/texture-debug.map data/map-misc/timer-test.map +msgid "" +"Move the mouse to tilt the floor.\\Collect 10 coins to unlock the goal." +"\\Guide the ball to the goal to\\finish the level.\\\\Başlamak için tıklayın.\\" +msgstr "" + +#: data/map-easy/easyhalfpipe.map +msgid "" +"Half-pipes can be fun,\\but they make it easy to fall out.\\Don't over " +"accelerate and you will\\be able to stay in control." +msgstr "" + +#: data/map-easy/fence.map +msgid "" +"''Flat'' is relative.\\Learn to hold the floor at an angle\\so that a slope " +"remains level.\\This way, you maintain full control of the ball.\\Use " +"momentum to get up to the big coins.\\" +msgstr "" + +#: data/map-easy/goals.map +msgid "" +"There are 100 coins here.\\This one shouldn't be too difficult,\\if you " +"don't accidentally make a goal first.\\" +msgstr "" + +#: data/map-easy/goslow.map +msgid "" +"Tilt the floor as little as possible.\\Less tilt means lower speed.\\Lower " +"speed means better control.\\Watch the clock and use the time wisely.\\" +msgstr "" + +#: data/map-easy/greed.map +msgid "" +"Each bridge is narrower than the one before.\\But each pays better than the " +"last as well!\\You get to decide how far you go on this one.\\" +msgstr "" + +#: data/map-easy/groundbreak.map +msgid "" +"Getting to the goal\\shouldn't be a problem,\\but getting all of the coins " +"will\\require some planning.\\\\Hint: often it is faster to avoid\\a hole " +"instead of falling into it." +msgstr "" + +#: data/map-easy/hole.map +msgid "" +"Stay away from the edges!\\When approaching a drop, begin slowing down" +"\\early. You need just as much room to slow\\down as you did to speed up.\\" +msgstr "" + +#: data/map-easy/lollipop.map +msgid "" +"Follow the yellow lick road!\\\\The blue coins are especially challenging," +"\\but with some experimentation and practice,\\you'll be able to collect " +"them all." +msgstr "" + +#: data/map-easy/maze.map +msgid "" +"The ball wants to rebound uncontrollably\\in a narrow passage. Keep it slow " +"and\\off the walls. All the coins are collectable\\in the given time.\\" +msgstr "" + +#: data/map-easy/mazebump.map +msgid "" +"Puzzling but profitable.\\\\Take time to observe the motions\\of the bumpers " +"- it will help you\\to reach the goal." +msgstr "" + +#: data/map-easy/mover.map +msgid "" +"A moving platform can be tricky.\\Use precise timing to get aboard,\\and " +"precise balance to stay there.\\Don't let it move out from under you.\\Ride " +"the platforms to grab the big coins.\\" +msgstr "" + +#: data/map-easy/peasy.map +msgid "" +"Mouse buttons rotate the view.\\Press Escape to pause or quit.\\\\\\\\Click " +"to begin.\\" +msgstr "" + +#: data/map-easy/roundcoins.map +msgid "" +"When you are on the elevators,\\make small adjustments to keep the ball " +"steady.\\You can collect many coins by\\keeping the ball in one place.\\Too " +"much movement and you will fall off." +msgstr "" + +#: data/map-easy/roundlaby.map +msgid "" +"There is only one path to reach the goal,\\but lots of paths for collecting " +"coins.\\Make sure you collect enough\\to unlock the goal." +msgstr "" + +#: data/map-easy/slalom.map +msgid "" +"Follow the trail of coins to reach the goal.\\If you hit a post while moving " +"quickly,\\you will bounce far off course." +msgstr "" + +#: data/map-easy/slightcurve.map +msgid "Hills require more speed to get over.\\Be careful not to go too fast!" +msgstr "" + +#: data/map-easy/speedbumps.map +msgid "" +"When the ball is on a moving platform,\\it will be pulled in the direction " +"of movement.\\Use the rails to steady yourself,\\and collect the coins you " +"need\\to open the goal." +msgstr "" + +#: data/map-easy/thwomp2.map +msgid "Grab all the coins...\\but don't get bullied!" +msgstr "" + +#: data/map-easy/wakka.map +msgid "" +"Here's another coin grab.\\Perhaps you already know a good route." +"\\Teleportation might come in handy.\\" +msgstr "" + +#: data/map-fwp/adventure.map +msgid "=Adventure=\\Many things to do, coins to collect, risks to take." +msgstr "=Adventure=\\Yapacak çok şey, toplamak için para, almak için riskler." + +#: data/map-fwp/atrium.map +msgid "=Atrium=\\Remove the coins from their columns." +msgstr "=Atrium=\\Paraları sütunlarından çıkarın.." + +#: data/map-fwp/buoys.map +msgid "=Buoys=\\He who controls the timers, controls the gates." +msgstr "=Buoys=\\Zamanlayıcıları kontrol eden kapıları kontrol eder." + +#: data/map-fwp/cargo.map +msgid "=Cargo=\\Let yourself be carried away." +msgstr "" + +#: data/map-fwp/confetti.map +msgid "=Confetti=\\Help! There has got to be a way through this mess." +msgstr "" + +#: data/map-fwp/discs.map +msgid "=Discs=\\Used correctly, the platforms will take you to the goal." +msgstr "" + +#: data/map-fwp/inferno.map +msgid "=Inferno=\\The fire thwomps will try to foil your mission." +msgstr "" + +#: data/map-fwp/ladybirds.map +msgid "=Ladybirds=\\Don't let them bug you." +msgstr "=Ladybirds=\\Seni rahatsız etmesine izin vermeyin." + +#: data/map-fwp/mountains.map +msgid "=Mountains=\\Ups and downs are a part of life." +msgstr "" + +#: data/map-fwp/museum.map +msgid "=Museum=\\Please do not touch the exhibits." +msgstr "" + +#: data/map-fwp/oddities.map +msgid "=Oddities=\\Something is not quite right here..." +msgstr "" + +#: data/map-fwp/rails.map +msgid "=Rails=\\Do not lose your balance." +msgstr "" + +#: data/map-fwp/ramps.map +msgid "=Ramps=\\Can you make it to the top?" +msgstr "" + +#: data/map-fwp/rings.map +msgid "=Rings=\\Roll your way through this trap." +msgstr "" + +#: data/map-fwp/slope.map +msgid "=Slope=\\Try not to become a modern-day Sisyphus." +msgstr "" + +#: data/map-fwp/spacetime.map +msgid "=Spacetime=\\Not much space, not much time." +msgstr "" + +#: data/map-fwp/swarm.map +msgid "=Swarm=\\Warning: Trespassers will be thwomped." +msgstr "" + +#: data/map-fwp/tennis.map +msgid "=Tennis=\\There is plenty of prize money, and it's up for grabs." +msgstr "" + +#: data/map-fwp/tree.map +msgid "=Tree=\\Follow the spiral staircase to the goal." +msgstr "" + +#: data/map-fwp/ufo.map +msgid "=UFO=\\Ride the spaceship they don't want you to know about." +msgstr "" + +#: data/map-hard/airways.map +msgid "2 switches have to be enabled\\to open the path to the goal." +msgstr "" + +#: data/map-hard/check.map +msgid "There's not enough floor here.\\Hopefully that's not a problem.\\" +msgstr "" + +#: data/map-hard/curbs.map +msgid "" +"To make progress here you'll need to hit the\\edges hard and control your " +"bouncing.\\It's often easiest to hit the curb at a corner.\\" +msgstr "" + +#: data/map-hard/flip.map +msgid "" +"Thus Neverball is a puzzle game?\\Remove the red to unlock the goal.\\Each " +"trigger switches colors in direct contact." +msgstr "" + +#: data/map-hard/frogger.map +msgid "Ribbit!\\" +msgstr "" + +#: data/map-hard/gaps.map +msgid "" +"Time the switches carefully to synchronize\\the motion of the platforms." +"\\Move quickly across the gaps.\\" +msgstr "" + +#: data/map-hard/grid.map +msgid "Yes, the ball does fit quite nicely through\\those little holes.\\" +msgstr "" + +#: data/map-hard/hallways.map +msgid "" +"Control your speed and your bounces.\\Teleporters will always bring you" +"\\back somewhere in the level." +msgstr "" + +#: data/map-hard/hump.map +msgid "Momentum may work against you.\\" +msgstr "" + +#: data/map-hard/invis.map +msgid "" +"Allow your greed to guide you.\\For an added challenge,\\try to get to all " +"of the coins.\\It can be done without guesswork.\\" +msgstr "" + +#: data/map-hard/movers.map +msgid "Go for a ride.\\" +msgstr "" + +#: data/map-hard/nostairs.map +msgid "" +"There are two goals here.\\You can complete this level\\the easy way or the " +"hard way.\\Of course, by going the easy way\\you can forget about all\\those " +"red and blue coins." +msgstr "" + +#: data/map-hard/paths.map +msgid "So many different paths to take...\\have you tried all of them?" +msgstr "" + +#: data/map-hard/pipe.map +msgid "Ceci n'est pas une pipe.\\" +msgstr "" + +#: data/map-hard/poker.map +msgid "Slow and steady.\\" +msgstr "" + +#: data/map-hard/pyramid.map +msgid "" +"You'll only get about 15 seconds at each step,\\so don't delay. Get the " +"coins and\\get to the next switch.\\" +msgstr "" + +#: data/map-hard/quads.map +msgid "Don't get bullied.\\" +msgstr "" + +#: data/map-hard/rampup.map +msgid "I think I can.\\I think I can.\\" +msgstr "" + +#: data/map-hard/ring.map +msgid "So close, yet so very far.\\" +msgstr "Çok yakın, henüz çok çok uzak..\\" + +#: data/map-hard/risers.map data/map-misc/edge-test.map +msgid "" +"Ride the elevators to the top.\\They move quickly,\\so don't dally too long." +"\\" +msgstr "" + +#: data/map-hard/spiralin.map +msgid "Have fun picking up those\\red and blue coins.\\" +msgstr "" + +#: data/map-hard/spread.map +msgid "Don't worry.\\The green part isn't going anywhere.\\" +msgstr "" + +#: data/map-hard/sync.map +msgid "" +"Use the switches to set the platforms\\in motion. Time it so they come" +"\\together in the middle.\\" +msgstr "" + +#: data/map-hard/teleport.map +msgid "" +"The ball must be entirely within a teleporter\\in order to trigger it." +"\\Remember that the ball carries its momentum\\through a teleporter, so plan " +"ahead.\\" +msgstr "" + +#: data/map-hard/tilt.map +msgid "The floor is as flat as you make it.\\" +msgstr "" + +#: data/map-medium/accordian.map +msgid "Stairway to heaven" +msgstr "" + +#: data/map-medium/angle.map +msgid "" +"Those bridges are angled.\\Each is narrower and steeper than the last.\\Take " +"the easy cash or\\go all the way for a big payoff.\\" +msgstr "" + +#: data/map-medium/coneskeleton.map +msgid "Plenty of coins for the taking.\\Can you take them all?" +msgstr "" + +#: data/map-medium/cross.map +msgid "" +"Use momentum to reach\\the upper platforms,\\but keep the ball in control" +"\\for safe landing.\\\\The manual view may help here.\\" +msgstr "" + +#: data/map-medium/drops.map +msgid "" +"Remember to keep an eye on the shadow to\\help control a bouncing ball. And " +"don't\\forget to use the mouse buttons to keep the\\ball in view.\\" +msgstr "" + +#: data/map-medium/easytele.map +msgid "Use teleporters to go\\where you otherwise couldn't.\\" +msgstr "" + +#: data/map-medium/four.map +msgid "Balance risk versus reward.\\" +msgstr "" + +#: data/map-medium/hardrise.map +msgid "Ascend the slope to reach your goal.\\(Easier said than done.)" +msgstr "" + +#: data/map-medium/islands.map +msgid "Catch the train before it leaves the station.\\" +msgstr "" + +#: data/map-medium/learngrow.map +msgid "" +"The ball will fit in those small holes,\\if you can just find something to " +"make it smaller.\\Other places may require a bigger ball.\\One thing is " +"certain - you'll want a plan!" +msgstr "" + +#: data/map-medium/locks.map +msgid "Hit the switches to move the barriers.\\" +msgstr "Engelleri kaldırmak için düğmelere bas.\\" + +#: data/map-medium/multicurves.map +msgid "" +"The temptation to move quickly\\could prove your undoing.\\\\Then again, " +"maybe not..." +msgstr "" + +#: data/map-medium/plinko.map +msgid "Take it slowly.\\" +msgstr "" + +#: data/map-medium/qbert.map +msgid "You can never go home again..." +msgstr "Bir daha asla eve gidemezsin ..." + +#: data/map-medium/rampdn.map +msgid "" +"You'll need to exert some control over your\\view here. Press 3 to stop the " +"auto-rotation.\\Use the mouse buttons to rotate it manually.\\Press 1 to " +"return to the auto-rotating view.\\" +msgstr "" + +#: data/map-medium/roundfloors.map +msgid "" +"This wedding cake is plenty rich,\\but be careful as you go\\to each lower " +"layer." +msgstr "" + +#: data/map-medium/sparselines.map +msgid "" +"Bump the logs at speed to change lanes.\\Try to reach the top for an extra " +"challenge!" +msgstr "" + +#: data/map-medium/spiraldn.map +msgid "" +"Take it slow to keep it away from the edge.\\Or, don't.\\Either way might " +"work.\\" +msgstr "" + +#: data/map-medium/spiralup.map +msgid "" +"Just as before, but moving up instead of down.\\No cheating this time.\\" +msgstr "" + +#: data/map-medium/stairs.map +msgid "" +"Here's yet another test of your ability\\to control bouncing. Moving down " +"the\\stairs too quickly can be hazardous.\\" +msgstr "" + +#: data/map-medium/telemaze.map +msgid "" +"This maze has no walls.\\But that doesn't make the solution\\any easier to " +"find.\\" +msgstr "" + +#: data/map-medium/timer.map +msgid "" +"That one switch controls all five barriers.\\Be quick, because the switch is " +"on a timer.\\When it expires, the barriers will rise.\\" +msgstr "" + +#: data/map-medium/title.map +msgid "Neverball\\\\http://neverball.org\\\\Created by Robert Kooima\\" +msgstr "" + +#: data/map-medium/woodmaze.map +msgid "Follow the trail of coins\\to make it through the labyrinth." +msgstr "" + +#: data/map-medium/zigzag.map +msgid "" +"There are plenty of coins here if you're\\willing to take the time to grab " +"them.\\" +msgstr "" + +#: data/map-misc/bigball-old.map +msgid "" +"Prisonnier de la boule.\\Living in a sphere.\\Catching all blue coins is a " +"challenge." +msgstr "" + +#: data/map-misc/billiard.map +msgid "Try to grab all of the blue coins...\\it won't be easy!" +msgstr "" + +#: data/map-misc/blockers.map +msgid "Block around the clock." +msgstr "Günün her saatinde bloke edin." + +#: data/map-misc/bounce.map +msgid "" +"Follow the blue coins...\\and learn to control your bounce!\\Hint: Use the " +"'chase' camera mode." +msgstr "" + +#: data/map-misc/bounce2.map +msgid "Follow the arrows." +msgstr "Okları takip et." + +#: data/map-misc/checkers.map +msgid "" +"It's a real game of checkers, but no one wins...\\You have to bounce to " +"reach the blue coins." +msgstr "" + +#: data/map-misc/elevator.map +msgid "Calm and meditation may bring you to the Nirvana." +msgstr "Sakin ve meditasyon sizi Nirvana'ya getirebilir." + +#: data/map-misc/freefall-old.map +msgid "Savoir chuter.\\Follow the blue markers." +msgstr "" + +#: data/map-misc/grow_demo.map +msgid "Use the new coins to change ball size!\\I hope you like it!\\-Dave" +msgstr "" + +#: data/map-misc/groweasy.map +msgid "There are special coins which can make your\\ball larger or smaller." +msgstr "" + +#: data/map-misc/ocean.map +msgid "Let's go for a swim...\\all the coins are fully submerged.\\" +msgstr "" + +#: data/map-misc/stairs.map +msgid "Fall down stairs.\\Ough!\\It hurts." +msgstr "" + +#: data/map-misc/thwomp1.map +msgid "Just let it happen...\\then start to worry!" +msgstr "" + +#: data/map-misc/timer-test_2.map +msgid "Another test for timer accuracy." +msgstr "Zamanlayıcı doğruluğu için bir başka test." + +#: data/map-mym/assault.map +msgid "Le parcours du combattant.\\Ready for the assault course?" +msgstr "" + +#: data/map-mym/circuit1.map +msgid "La course effrénée.\\Let's run some laps." +msgstr "" + +#: data/map-mym/circuit2.map +msgid "Les rampes abruptes.\\Control your speed." +msgstr "" + +#: data/map-mym/climb.map +msgid "L'escalade ardue.\\Do you suffer from vertigo?" +msgstr "" + +#: data/map-mym/comeback.map +msgid "Le cycle éternel.\\Avoid teleporters..." +msgstr "" + +#: data/map-mym/dance1.map +msgid "La ballade tranquille.\\What a quiet walk." +msgstr "" + +#: data/map-mym/dance2.map +msgid "" +"La ballade dansante.\\Let's dance on the moving platform!\\Tip: After " +"activating the last moving platform,\\ turn around the Thwomp until the goal " +"is reachable." +msgstr "" + +#: data/map-mym/descent.map +msgid "La descente infernale.\\Easy enough to start?" +msgstr "" + +#: data/map-mym/drive1.map +msgid "" +"La conduite stressante.\\Attention:\\The platform under the ball moves " +"forward." +msgstr "" + +#: data/map-mym/drive2.map +msgid "" +"La conduite dangereuse.\\The platform under the ball moves quickly forward." +"\\You would do well to advance." +msgstr "" + +#: data/map-mym/earthquake.map +msgid "Le passage incertain.\\Isn't too easy?" +msgstr "" + +#: data/map-mym/ghosts.map +msgid "Ghost Valley.\\Make 3 laps to open the goal." +msgstr "" + +#: data/map-mym/glasstower.map +msgid "La tour de verre.\\Find the way to the exit." +msgstr "" + +#: data/map-mym/hard.map +msgid "La maîtrise de Neverball.\\You still think Neverball is too easy?" +msgstr "" + +#: data/map-mym/loop1.map +msgid "Les boucles renversantes.\\Upside down!" +msgstr "" + +#: data/map-mym/loop2.map +msgid "" +"Le contrôle des courbes.\\Find the right angle to turn,\\to jump and to " +"land..." +msgstr "" + +#: data/map-mym/maze1.map +msgid "Le chemin dissimulé.\\Test your memory." +msgstr "" + +#: data/map-mym/maze2.map +msgid "" +"Le labyrinthe fou.\\You know the way, you see it,\\so why are you taking " +"another one?" +msgstr "" + +#: data/map-mym/narrow.map +msgid "" +"Le sentier étroit.\\Patience and timing.\\Tip: maximise speed at the first " +"slope." +msgstr "" + +#: data/map-mym/running.map +msgid "Les épreuves minutées.\\Run baby, run!" +msgstr "" + +#: data/map-mym/scrambling.map +msgid "" +"Le petit cross.\\Let's go scrambling!\\Stick to the track to optimize speed." +msgstr "" + +#: data/map-mym/snow.map +msgid "La descente rafraîchissante.\\Not so fast, not so fast." +msgstr "" + +#: data/map-mym/trust.map +msgid "Le chemin de la foi.\\Self-confidence." +msgstr "" + +#: data/map-mym/turn.map +msgid "Le sens trigonométrique.\\Turn, wait and jump." +msgstr "" + +#: data/map-mym/up.map +msgid "L'ascension pressée.\\Only one piece of advice: don't stop!" +msgstr "" + +#: data/map-mym2/backforth.map +msgid "Un va-et-vient frustrant.\\Remember the activation order." +msgstr "" + +#: data/map-mym2/basket.map +msgid "Street Neverball\\Choose your party and score 3 points." +msgstr "" + +#: data/map-mym2/bigball.map +msgid "La machine à circonvolutions.\\Easy, the goal is just above you." +msgstr "" + +#: data/map-mym2/bigcone.map +msgid "Le grand cône.\\Living in a cone." +msgstr "" + +#: data/map-mym2/bombman.map +msgid "Les flammes ardentes.\\Does this remind you of something?" +msgstr "" + +#: data/map-mym2/bounces.map +msgid "Les sauts du célèbre plombier.\\Follow the coins." +msgstr "" + +#: data/map-mym2/fall.map +msgid "" +"Savoir rebondir pour aller plus haut.\\The Neverball Arena.\\Use the 2 " +"teleports to unlock and reach the goal." +msgstr "" + +#: data/map-mym2/freefall.map +msgid "" +"This level is full of challenges:\\understand the level's functioning," +"\\learn to fly and to survive,\\grab half of all coins to open the goal," +"\\find and reach the goal,\\and more..." +msgstr "" + +#: data/map-mym2/grinder.map +msgid "Le petit moulin.\\The good timing to go in the cabin." +msgstr "" + +#: data/map-mym2/littlecones.map +msgid "Ne pas se laisser emporter dans le néant.\\Don't go too low." +msgstr "" + +#: data/map-mym2/longpipe.map +msgid "" +"Si si, ce tuyau a une fin.\\Living in a pipe.\\Tip: slow down for the last " +"jump!" +msgstr "" + +#: data/map-mym2/morenarrow.map +msgid "Plus dur que la difficulté.\\Good luck." +msgstr "" + +#: data/map-mym2/movinglumps.map +msgid "Être patient.\\Not too hard." +msgstr "" + +#: data/map-mym2/movingpath.map +msgid "Le passage éphémère.\\Trust the coins." +msgstr "" + +#: data/map-mym2/push.map +msgid "Hé, on pousse pas !\\Not too fast, not too slow." +msgstr "" + +#: data/map-mym2/rainbow.map +msgid "Rainbow Road.\\Do 3 laps to open the goal." +msgstr "" + +#: data/map-mym2/rodeo.map +msgid "Le rodéo de Neverball.\\You'll fall quickly." +msgstr "" + +#: data/map-mym2/runstop.map +msgid "J'y vais, ou j'y vais pas ?\\Do not dither." +msgstr "" + +#: data/map-mym2/shaker.map +msgid "Préparez un petit sac.\\The stomach-tester." +msgstr "" + +#: data/map-mym2/sonic.map +msgid "Un petit échauffement.\\Welcome to Mehdi's new set!" +msgstr "" + +#: data/map-mym2/speed.map +msgid "Plus vite que la vitesse.\\The definition of speed." +msgstr "" + +#: data/map-mym2/speeddance.map +msgid "La danse asiatique\\Trust the arrows." +msgstr "" + +#: data/map-mym2/translation.map +msgid "Suis le mouvement.\\Warning, the road is moving." +msgstr "" + +#: data/map-mym2/updown.map +msgid "Tranquille, mais pas trop.\\Sync yourself to the elevators." +msgstr "" + +#: data/map-mym2/webs.map +msgid "Les toiles attirantes.\\Get out of the webs." +msgstr "" + +#: data/map-tones/bigtube.map +msgid "Speed is the name of the game." +msgstr "" + +#: data/map-tones/blue.map +msgid "Tread carefully...\\and keep moving!\\" +msgstr "" + +#: data/map-tones/bumperoo.map +msgid "Who's the boss around here anyway?" +msgstr "Buradaki patron kim?" + +#: data/map-tones/canals.map +msgid "You might have to get wet\\if you want all the coins." +msgstr "" + +#: data/map-tones/check.map +msgid "Keep your eye on the sky!\\but don't run out of time...\\" +msgstr "" + +#: data/map-tones/city.map +msgid "Stepping stones." +msgstr "Basamak taşları." + +#: data/map-tones/discs.map +msgid "Work your way to the top." +msgstr "Üstünüze doğru yol alın." + +#: data/map-tones/easyian.map +msgid "" +"Collect 45 coins to unlock the goal.\\You can use the teleporter to gain " +"enough speed\\for the jump." +msgstr "" + +#: data/map-tones/easyone.map +msgid "Control your speed\\to avoid a bumpy ride." +msgstr "" + +#: data/map-tones/hotwheels.map +msgid "Learn the course and stick to the rails!" +msgstr "Kursu öğrenin ve raylara yapışın!" + +#: data/map-tones/hurdles.map +msgid "Let's start with an easy warm-up.\\Build speed and leap to the goal." +msgstr "" + +#: data/map-tones/leaps.map +msgid "Look before you leap..." +msgstr "Zıplamadan önce bak..." + +#: data/map-tones/marble.map +msgid "Mind your footing!" +msgstr "Dikkatinizi çekin!" + +#: data/map-tones/marble.map +msgid "Watch your footing..." +msgstr "Dikkat et..." + +#: data/map-tones/runner.map +msgid "Walk the plank.\\After the teleport, go for speed!" +msgstr "" + +#: data/map-tones/skiball.map +msgid "" +"Ski Ball!\\\\Work your way from 10 to 100\\in sequence or you'll fall out." +msgstr "" + +#: data/map-tones/swish.map +msgid "Timing is everything." +msgstr "" + +#: data/map-tones/swoop.map +msgid "What goes down must come up!\\" +msgstr "" + +#: data/map-tones/tonesmaze.map +msgid "" +"Make sure you are\\safely on a purple platform\\before 20 seconds have " +"elapsed!" +msgstr "" + +#: data/map-tones/twisted.map +msgid "Afraid of heights?\\Try not to get dizzy." +msgstr "" + +#: data/map-tones/waves.map +msgid "Surf's Up !!" +msgstr "" + +#. Desktop entry comment +#: dist/neverball.desktop.in +msgid "A 3D arcade game with a ball" +msgstr "Top ile 3D arcade oyunu" + +#. Desktop entry comment +#: dist/neverputt.desktop.in +msgid "A 3D mini golf game" +msgstr "3D mini golf oyunu" + +#. Translators, +#. +#. Listed here are the Neverball materials (relative to the data directory) +#. that can be localised. Each material <mtrl> has a corresponding JPG or PNG +#. texture. To localise a material, create a localised texture for it (copy +#. the original texture <mtrl>.<ext> to <mtrl>-<lang-code>.<ext> and modify it) +#. and translate the material name to match (from <mtrl> to +#. <mtrl>-<lang-code>). +#. +#. Author's comments on the original mtrl/words texture: +#. +#. "Courier New, 40pt, bold. The words are centered in cells of 256x64 pixels. +#. For the vertical centering, the x-height is used as the reference. Some +#. manual corrections were made; for example, the hyphen in 'Fall-out' was +#. shortened in order to increase the margin on each side of the word." +#. +#. Those on GNU+Linux having the ImageMagick program suite installed may find +#. the provided scripts/gen-words.sh shell script useful. +msgid "mtrl/words" +msgstr "" + +msgid "item/coin/coin" +msgstr "item/coin/coin1" + +msgid "item/coin/coin5" +msgstr "" + +msgid "item/coin/coin10" +msgstr "" diff --git a/talimatname/genel/n/neverball/talimat b/talimatname/genel/n/neverball/talimat new file mode 100644 index 000000000..dcaea82b4 --- /dev/null +++ b/talimatname/genel/n/neverball/talimat @@ -0,0 +1,39 @@ +# Tanım: Süper Monkey Ball veya Marble Madness benzeri 3D oyun +# URL: http://neverball.org/ +# Paketçi: Cihan_Alkan +# Gerekler: sdl2-ttf libpng libjpeg-turbo libvorbis physfs hicolor-icon-theme xdg-utils xorg-mesa +# Grup: oyun + +isim=neverball +surum=1.6.0 +devir=1 +kaynak=(http://neverball.org/${isim}-${surum}.tar.gz + neverball.po) + +derle() { + msgfmt neverball.po -o neverball.mo + cd ${isim}-${surum} + make DATADIR=/usr/share/neverball LOCALEDIR=/usr/share/locale \ + CPPFLAGS="$CPPFLAGS -DNDEBUG" CFLAGS="$CFLAGS" + + install -d "${PKG}/usr/bin" + install -d "${PKG}"/usr/share/{neverball,locale,applications,doc/neverball} + install -d "${PKG}"/usr/share/man/man{1,6} + + install -m755 neverball neverputt mapc "${PKG}/usr/bin" + cp -r locale/* "${PKG}/usr/share/locale/" + cp -r data/* "${PKG}/usr/share/neverball/" + cp -r doc/* "${PKG}/usr/share/doc/neverball/" + install -m644 dist/*.desktop "${PKG}/usr/share/applications/" + install -m644 dist/mapc.1 "${PKG}/usr/share/man/man1" + install -m644 dist/{neverball.6,neverputt.6} "${PKG}/usr/share/man/man6" + + for i in 16 24 32 48 64 128 256 512; do + install -D -m644 dist/neverball_$i.png "${PKG}/usr/share/icons/hicolor/${i}x$i/apps/neverball.png" + install -D -m644 dist/neverputt_$i.png "${PKG}/usr/share/icons/hicolor/${i}x$i/apps/neverputt.png" + done + + chmod -R u=rwX,go=rX "${PKG}/usr/share/neverball" + mkdir -p $PKG/usr/share/locale/tr/LC_MESSAGES + cp $SRC/neverball.mo $PKG/usr/share/locale/tr/LC_MESSAGES/ +} diff --git a/talimatname/genel/n/newt/talimat b/talimatname/genel/n/newt/talimat new file mode 100644 index 000000000..285eb349a --- /dev/null +++ b/talimatname/genel/n/newt/talimat @@ -0,0 +1,21 @@ +# Tanım: Newt, renkli metin modu, widget tabanlı kullanıcı arabirimleri için bir programlama kütüphanesi. +# URL: https://admin.fedoraproject.org/pkgdb/package/rpms/newt/ +# Paketçi: milisarge +# Gerekler: popt slang + +isim=newt +surum=0.52.18 +devir=1 + +kaynak=( http://fedorahosted.org/releases/n/e/$isim/$isim-$surum.tar.gz ) +derle() { +cd $isim-$surum +sed -e 's/^LIBNEWT =/#&/' \ + -e '/install -m 644 $(LIBNEWT)/ s/^/#/' \ + -e 's/$(LIBNEWT)/$(LIBNEWTSONAME)/g' \ + -i Makefile.in + +./configure --prefix=/usr --with-gpm-support && +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/n/nfs-utils/nfs-utils.kos-kur b/talimatname/genel/n/nfs-utils/nfs-utils.kos-kur new file mode 100644 index 000000000..aed9abc12 --- /dev/null +++ b/talimatname/genel/n/nfs-utils/nfs-utils.kos-kur @@ -0,0 +1,6 @@ +newuser=nobody +newgroup=nogroup +newid=99 +getent group $newgroup || /usr/bin/groupadd -g $newid $newgroup +getent passwd $newuser || /usr/bin/useradd -c "Unprivileged Nobody" \ +-g $newgroup -u $newid -d /dev/null -s /bin/false $newuser diff --git a/talimatname/genel/n/nfs-utils/nfs-utils.kur-kos b/talimatname/genel/n/nfs-utils/nfs-utils.kur-kos new file mode 100644 index 000000000..213a6f72d --- /dev/null +++ b/talimatname/genel/n/nfs-utils/nfs-utils.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/genel/n/nfs-utils/talimat b/talimatname/genel/n/nfs-utils/talimat new file mode 100644 index 000000000..9a1ce8221 --- /dev/null +++ b/talimatname/genel/n/nfs-utils/talimat @@ -0,0 +1,35 @@ +# Tanım: Userspace server and client tools necessary to use the kernel's NFS abilities. +# URL: http://nfs.sourceforge.net +# Paketçi: milisarge +# Gerekler: libtirpc rpcbind + +isim=nfs-utils +surum=1.3.3 +devir=1 + +kaynak=(http://downloads.sourceforge.net/nfs/$isim-$surum.tar.bz2) +run=(rpcbind) + +derle() { +source /etc/blfs-bootscripts +wget \ +http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2 +tar xvf $scripts-$scriptsversion.tar.bz2 + +# build package + +cd $isim-$surum +./configure --prefix=/usr \ +--sysconfdir=/etc \ +--disable-nfsv4 \ +--disable-nfsv41 \ +--disable-gss \ +--without-tcp-wrappers + +make +mkdir $PKG/sbin +make DESTDIR=$PKG install +# Services +cd ../$scripts-$scriptsversion +make DESTDIR=$PKG install-nfs-server +} diff --git a/talimatname/genel/n/nftables/talimat b/talimatname/genel/n/nftables/talimat new file mode 100644 index 000000000..fa4f8e77e --- /dev/null +++ b/talimatname/genel/n/nftables/talimat @@ -0,0 +1,19 @@ +# Tanım: Netfilter kullanıcı alanı araçları +# URL: http://netfilter.org/projects/nftables/ +# Paketçi: milisarge +# Gerekler: docbook2x libmnl libnftnl + +isim=nftables +surum=0.8 +devir=1 + +kaynak=(http://netfilter.org/projects/nftables/files/nftables-$surum.tar.bz2) + +derle(){ + cd $isim-$surum + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + CONFIG_MAN=y DB2MAN=docbook2man + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/n/nginx-mod-nchan/talimat b/talimatname/genel/n/nginx-mod-nchan/talimat new file mode 100644 index 000000000..e05942e01 --- /dev/null +++ b/talimatname/genel/n/nginx-mod-nchan/talimat @@ -0,0 +1,26 @@ +# Tanım: nchan nginx module +# URL: https://nchan.io/ +# Paketçi: milisarge +# Gerekler: nginx +# Grup: + +isim=nginx-mod-nchan +surum=1.1.13 +devir=1 +ngsurum=1.13.7 +kaynak=(http://nginx.org/download/nginx-$ngsurum.tar.gz + https://github.com/slact/nchan/archive/v${surum}.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd "$SRC"/nginx-$ngsurum + _module_dir="$SRC"/nchan-$surum + ./configure --with-compat \ + --with-cc-opt="$CFLAGS $CPPFLAGS" \ + --with-ld-opt="$LDFLAGS" \ + --add-dynamic-module=${_module_dir} + make modules + cd "$SRC"/nginx-$ngsurum/objs + for _mod in ngx_nchan_module.so; do + install -Dm755 $_mod "$PKG"/usr/lib/nginx/modules/$_mod + done +} diff --git a/talimatname/genel/n/nginx/nginx.kos-kur b/talimatname/genel/n/nginx/nginx.kos-kur new file mode 100644 index 000000000..6f04d678a --- /dev/null +++ b/talimatname/genel/n/nginx/nginx.kos-kur @@ -0,0 +1,18 @@ +#!/bin/sh + +id www 2>/dev/null +if [ $? -eq 0 ]; then + echo "www kullanicisi zaten tanimli" +else + echo "www kullanicisi olusturuldu" + useradd -M -s /bin/false -c "www user" www +fi + +if [ -z "`getent group nginx`" ]; then + /sbin/groupadd --system nginx +fi + +if [ -z "`getent passwd nginx`" ]; then + /sbin/useradd -r -g nginx -d /etc/nginx -s /bin/false -c "nginx server" nginx + /bin/passwd -l nginx +fi diff --git a/talimatname/genel/n/nginx/nginx.logrotate b/talimatname/genel/n/nginx/nginx.logrotate new file mode 100644 index 000000000..5d0422a24 --- /dev/null +++ b/talimatname/genel/n/nginx/nginx.logrotate @@ -0,0 +1,14 @@ +/var/log/nginx/*.log { + su @USER@ @GROUP@ + daily + missingok + rotate 52 + compress + delaycompress + notifempty + create 640 nginx adm + sharedscripts + postrotate + [ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid` + endscript +} diff --git a/talimatname/genel/n/nginx/nginx.servis b/talimatname/genel/n/nginx/nginx.servis new file mode 100644 index 000000000..fd01416be --- /dev/null +++ b/talimatname/genel/n/nginx/nginx.servis @@ -0,0 +1,93 @@ +#!/bin/sh +# +# Nginx daemon control script. +# Written for Slackware Linux by Cherife Li <cherife-#-dotimes.com>. + +BIN=/usr/sbin/nginx +CONF=/etc/nginx/nginx.conf +PID=/var/run/nginx.pid + +nginx_start() { + # Sanity checks. + if [ ! -r $CONF ]; then # no config file, exit: + echo "$CONF dosyasi yok.iptal edildi." + exit 1 + fi + + if [ -s $PID ]; then + echo "Nginx zaten calisiyor?" + exit 1 + fi + + echo "Nginx baslatiliyor..." + if [ -x $BIN ]; then + $BIN -c $CONF + fi +} + +nginx_test_conf() { + echo "Nginx ayarlari kontrol ediliyor..." + $BIN -t -c $CONF +} + +nginx_term() { + echo "Nginx hizlica kapatiliyor..." + kill -TERM $(cat $PID) +} + +nginx_stop() { + echo "Nginx kapatiliyor..." + kill -QUIT $(cat $PID) +} + +nginx_reload() { + echo "Nginx ayarları yeniden yukleniyor..." + kill -HUP $(cat $PID) +} + +nginx_upgrade() { + echo "Nginx ikili dosyası üst sürüme geciriliyor." + kill -USR2 $(cat $PID) + sleep 3 + kill -QUIT $(cat $PID.oldbin) +} + +nginx_rotate() { + echo "Nginx kayitlari ayarlaniyor..." + kill -USR1 $(cat $PID) +} + +nginx_restart() { + nginx_stop + sleep 3 + nginx_start +} + +case "$1" in + check) + nginx_test_conf + ;; + start) + nginx_start + ;; + term) + nginx_term + ;; + stop) + nginx_stop + ;; + reload) + nginx_reload + ;; + restart) + nginx_restart + ;; + upgrade) + nginx_upgrade + ;; + rotate) + nginx_rotate + ;; + *) + echo "usage: `basename $0` {check|start|term|stop|reload|restart|upgrade|rotate}" +esac diff --git a/talimatname/genel/n/nginx/talimat b/talimatname/genel/n/nginx/talimat new file mode 100644 index 000000000..761d92747 --- /dev/null +++ b/talimatname/genel/n/nginx/talimat @@ -0,0 +1,138 @@ +# Tanım: NGINX, ücretsiz, açık kaynaklı, yüksek performanslı bir HTTP sunucusu ve ters proxy yanı sıra bir IMAP / POP3 proxy sunucusudur. +# URL: http://nginx.net/ +# Paketçi: milisarge +# Gerekler: libxml2 libxslt pcre + +isim=nginx +surum=1.13.7 +devir=1 + +kaynak=(http://nginx.org//download/$isim-$surum.tar.gz + nginx.servis + nginx.logrotate) + +# change those if you prefer another setup +NGINXUSER=www +NGINXGROUP=www +HTMLDIR=/srv/http + +# change those if you need those experimental modules +# (idea from slackbuilds.org) +if [ "${USE_SPDY:-no}" == "yes" ]; then + SPDY_MOD="--with-http_spdy_module" +else + SPDY_MOD="" +fi + +if [ "${USE_GEOIP:-no}" == "yes" ]; then + GEOIP_MOD="--with-http_geoip_module" +else + GEOIP_MOD="" +fi + +# +# +derle() { + cd $isim-$surum + ./configure \ + --prefix=/etc/nginx \ + --conf-path=/etc/nginx/nginx.conf \ + --sbin-path=/usr/bin/nginx \ + --pid-path=/run/nginx.pid \ + --lock-path=/run/lock/nginx.lock \ + --user=http \ + --group=http \ + --http-log-path=/var/log/nginx/access.log \ + --error-log-path=stderr \ + --http-client-body-temp-path=/var/lib/nginx/client-body \ + --http-proxy-temp-path=/var/lib/nginx/proxy \ + --http-fastcgi-temp-path=/var/lib/nginx/fastcgi \ + --http-scgi-temp-path=/var/lib/nginx/scgi \ + --http-uwsgi-temp-path=/var/lib/nginx/uwsgi \ + --with-cc-opt="$CFLAGS $CPPFLAGS" \ + --with-ld-opt="$LDFLAGS" \ + + + ./configure --prefix=/usr \ + --sbin-path=/usr/sbin/nginx \ + --conf-path=/etc/nginx/nginx.conf \ + --pid-path=/var/run/nginx.pid \ + --lock-path=/var/lock/subsys \ + --user=${NGINXUSER} \ + --group=${NGINXGROUP} \ + --error-log-path=/var/log/nginx/error.log \ + --http-log-path=/var/log/nginx/access.log \ + --http-client-body-temp-path=/var/lib/nginx/client_body \ + --http-proxy-temp-path=/var/lib/nginx/proxy \ + --http-fastcgi-temp-path=/var/lib/nginx/fastcgi \ + --http-uwsgi-temp-path=/var/lib/nginx/uwsgi \ + --http-scgi-temp-path=/var/lib/nginx/scgi \ + --with-compat \ + --with-debug \ + --with-file-aio \ + --with-ipv6 \ + --with-pcre-jit \ + --with-stream \ + --with-stream_ssl_module \ + --with-stream_ssl_preread_module \ + --with-threads \ + --with-select_module \ + --with-poll_module \ + --with-http_ssl_module \ + --with-http_realip_module \ + --with-http_addition_module \ + --with-http_xslt_module \ + --with-http_sub_module \ + --with-http_dav_module \ + --with-http_flv_module \ + --with-http_mp4_module \ + --with-http_gunzip_module \ + --with-http_gzip_static_module \ + --with-http_random_index_module \ + --with-http_secure_link_module \ + --with-http_degradation_module \ + --with-http_stub_status_module \ + --with-http_sub_module \ + --with-http_v2_module \ + --with-http_perl_module \ + --with-http_auth_request_module \ + --with-mail \ + --with-mail_ssl_module \ + --with-cc-opt="$CFLAGS $CPPFLAGS" \ + --with-ld-opt="$LDFLAGS" \ + $SPDY_MOD \ + $GEOIP_MOD + + make + make DESTDIR=$PKG install + + # Make the temp path. + install -dm700 $PKG/var/lib/$isim + # Move html directory and do not use /srv/www as it is used by apache + mkdir -p $PKG/$HTMLDIR + mv $PKG/usr/html $PKG/$HTMLDIR + chown -v -R $NGINXUSER:$NGINXGROUP $PKG/$HTMLDIR + # Fix the nginx.conf file for html and virtual server directory. + sed -i \ + -e '/root[ ]*html/s|html;|/srv/http/&|' \ + -e '$s|.*| include /etc/nginx/conf.d/\*.conf;\n&|' \ + $PKG/etc/nginx/$isim.conf + # install the nginx init script + install -Dm755 $SRC/nginx.servis $PKG/etc/rc.d/init.d/nginx + # install the logrotate file + install -Dm644 $SRC/nginx.logrotate $PKG/etc/logrotate.d/nginx + # fill the right user & group in the logrotate file + sed -e "s,@USER@,$NGINXUSER," -e "s,@GROUP@,$NGINXGROUP," \ + $PKG/etc/logrotate.d/nginx + # Set the permissions for the log directory. + chown $NGINXUSER $PKG/var/log/$isim + chmod 750 $PKG/var/log/$isim + # Create sub-directory for virtual servers. + mkdir -p $PKG/etc/$isim/conf.d + # Remove perllocal.pod and .packlist if present in the package + for i in perllocal.pod .packlist; do + find $PKG -name "$i" -exec rm -rf {} \; + done + +} + diff --git a/talimatname/genel/n/nicotine-plus/talimat b/talimatname/genel/n/nicotine-plus/talimat new file mode 100644 index 000000000..c1fa26576 --- /dev/null +++ b/talimatname/genel/n/nicotine-plus/talimat @@ -0,0 +1,14 @@ +# Tanım: Soulseek istemci, pythonda yazılmış +# URL: https://github.com/Nicotine-Plus/nicotine-plus +# Paketçi: milisarge +# Gerekler: mutagen python-gtk + +isim=nicotine-plus +surum=1.4.1 +devir=1 +kaynak=(https://github.com/Nicotine-Plus/nicotine-plus/archive/$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd nicotine-plus-$surum + python2 setup.py install --root="$PKG" +} diff --git a/talimatname/genel/n/nikto/talimat b/talimatname/genel/n/nikto/talimat new file mode 100644 index 000000000..8224e1988 --- /dev/null +++ b/talimatname/genel/n/nikto/talimat @@ -0,0 +1,31 @@ +# Tanım: Web sunucu zafiyet tarayıcı aracı +# URL: https://cirt.net/Nikto2 +# Paketçi: yakar (aydin@komutan.org) +# Gerekler: + +isim=nikto +surum=2.1.5 +devir=1 +kaynak=(https://cirt.net/$isim/$isim-$surum.tar.bz2) + +derle() { + cd $SRC/$isim-$surum + + install -d "$PKG/usr/share/nikto" + cp -a * "$PKG/usr/share/nikto" + + #install -Dm 755 "$SRC/nikto.sh" "$PKG/usr/bin/nikto" + #install -Dm 644 program/nikto.conf "$PKG/etc/nikto.conf" + #install -Dm 644 documentation/nikto.1 "$PKG/usr/share/man/man1/nikto.1" + #install -Dm 644 program/docs/nikto_manual.html "$PKG/usr/share/doc/$isim/manual.html" + #install -Dm 644 README.md "$PKG/usr/share/doc/$isim/README" + + mkdir -p $PKG/usr/bin + cat > $PKG/usr/bin/nikto << EOF +#!/bin/sh +cd /usr/share/nikto +exec /usr/bin/perl nikto.pl "$@" +EOF + + chmod +x $PKG/usr/bin/nikto +} diff --git a/talimatname/genel/n/nim/talimat b/talimatname/genel/n/nim/talimat new file mode 100644 index 000000000..a2b12bb77 --- /dev/null +++ b/talimatname/genel/n/nim/talimat @@ -0,0 +1,49 @@ +# Tanım: Imperative, multi-paradigm, compiled programming language +# URL: https://nim-lang.org/ +# Paketçi: milisarge +# Gerekler: python3 + +isim=nim +_isim=Nim +surum=0.17.2 +devir=1 +kaynak=(https://github.com/nim-lang/Nim/archive/v$surum.tar.gz::${_name}-$surum.tar.gz + https://github.com/nim-lang/csources/archive/v$surum.tar.gz::csources-$surum.tar.gz) + +derle() { + cd ${_name}-${surum} + mv ../csources-${surum} csources + rm bin/empty.txt + + export PATH="${SRC}/${_name}-${surum}/bin:${PATH}" + cd csources + sh build.sh + cd .. + nim c -d:release koch + ./koch boot -d:release -d:nativeStacktrace -d:useGnuReadline + cd lib + nim c --app:lib -d:createNimRtl -d:release nimrtl.nim + cd .. + cd tools + nim c -d:release nimgrep.nim + cd .. + export PATH="${SRC}/${_name}-${surum}/bin:${PATH}" + ./koch install "${PKG}" + install -d "${PKG}/usr/lib" + cp -a lib "${PKG}/usr/lib/nim" + cp -a compiler "${PKG}/usr/lib/nim" + install -Dm 644 compiler.nimble "${PKG}/usr/lib/nim/compiler" + install -m 755 lib/libnimrtl.so "${PKG}/usr/lib/libnimrtl.so" + # Fix FS#48118, related to the doc2 command + ln -s /usr/share/nim/doc "${PKG}/usr/lib/nim/doc" + install -Dm 644 config/* -t "${PKG}/etc" + install -Dm 755 bin/* tools/nimgrep -t "${PKG}/usr/bin" + # Fix FS#50252, unusual placement of header files + install -d "${PKG}/usr/include" + cp -a "${PKG}/usr/lib/nim/"*.h "${PKG}/usr/include" + install -d "${PKG}/usr/share/nim/doc" + cp -a examples web doc/* "${PKG}/usr/share/nim/doc" + install -Dm 644 copying.txt "${PKG}/usr/share/licenses/${isim}/LICENSE" + rm -r "${PKG}/nim" "${PKG}/usr/lib/nim/lib/nimcache" + rm -r "${PKG}/usr/share/nim/doc/web/" +} diff --git a/talimatname/genel/n/nimble/talimat b/talimatname/genel/n/nimble/talimat new file mode 100644 index 000000000..8b5a9095e --- /dev/null +++ b/talimatname/genel/n/nimble/talimat @@ -0,0 +1,19 @@ +# Tanım: Nim programlama dili paket yöneticisi +# URL: https://github.com/nim-lang/nimble +# Paketçi: milisarge +# Gerekler: nim + +isim=nimble +surum=0.8.6 +devir=1 +kaynak=(https://github.com/nim-lang/nimble/archive/v$surum.tar.gz::nimble-$surum.tar.gz) + +derle() { + cd ${isim}-${surum} + nim c -d:release src/nimble + install -Dm 755 src/nimble -t "${PKG}/usr/bin" + install -Dm 644 license.txt "${PKG}/usr/share/licenses/${isim}/LICENSE" + cp -r src/nimblepkg "${PKG}/usr/share/${isim}" + ln -s /usr/share/${isim} "${PKG}/usr/bin/nimblepkg" + +} diff --git a/talimatname/genel/n/ninja/talimat b/talimatname/genel/n/ninja/talimat new file mode 100644 index 000000000..e879c4dc5 --- /dev/null +++ b/talimatname/genel/n/ninja/talimat @@ -0,0 +1,16 @@ +# Tanım: Hıza odaklı küçük yapı sistemi +# URL: http://martine.github.io/ninja/ +# Paketçi: milisarge +# Gerekler: python + +isim=ninja +surum=1.8.2 +devir=1 +kaynak=(https://github.com/martine/$isim/archive/v$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure.py --bootstrap + install -D -m 0755 $isim $PKG/usr/bin/$isim +} + diff --git a/talimatname/genel/n/ninvaders/talimat b/talimatname/genel/n/ninvaders/talimat new file mode 100644 index 000000000..33a1c7e93 --- /dev/null +++ b/talimatname/genel/n/ninvaders/talimat @@ -0,0 +1,16 @@ +# Tanım: NInvaders ASCII çıkışı için ncurses tabanlı bir Space Invaders klonudur. +# URL: http://ninvaders.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: + +isim=ninvaders +surum=0.1.1 +devir=1 + +kaynak=( http://downloads.sourceforge.net/sourceforge/ninvaders/$isim-$surum.tar.gz) + +derle(){ + cd $isim-$surum + make CFLAGS="${CFLAGS}" && + install -Dm755 nInvaders $PKG/usr/bin/$isim +} diff --git a/talimatname/genel/n/nitroshare/talimat b/talimatname/genel/n/nitroshare/talimat new file mode 100644 index 000000000..b8cfb554d --- /dev/null +++ b/talimatname/genel/n/nitroshare/talimat @@ -0,0 +1,29 @@ +# Tanım: Ağ üzerinden dosya paylaşma uygulaması +# URL: https://nitroshare.net +# Paketçi: Cihan Alkan +# Gerekler:qt5 libnotify + +isim=nitroshare +surum=0.3.3 +devir=1 + +kaynak=(https://github.com/nitroshare/nitroshare-desktop/archive/$surum.tar.gz::$isim-$surum.tar.gz + https://raw.githubusercontent.com/oltulu/milis/master/nitroshare/aboutdialog.cpp + https://raw.githubusercontent.com/oltulu/milis/master/nitroshare/tr.ts::$isim-tr.ts) + +derle() { + mv $isim-tr.ts $isim-desktop-$surum/src/data/ts/tr.ts + mv aboutdialog.cpp $isim-desktop-$surum/src/application/ + cd $isim-desktop-$surum + + cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr . + make + + make DESTDIR="$PKG" install + # lisans + install -Dm644 \ + "LICENSE.txt" \ + "$PKG/usr/share/licenses/$isim/LICENSE.txt" + rm /sources/$surum.tar.gz + +} diff --git a/talimatname/genel/n/nlohmann-json/talimat b/talimatname/genel/n/nlohmann-json/talimat new file mode 100644 index 000000000..8be07c62a --- /dev/null +++ b/talimatname/genel/n/nlohmann-json/talimat @@ -0,0 +1,25 @@ +# Tanım: JSON for Modern C++ +# URL: https://nlohmann.github.io/json/ +# Paketçi: milisarge +# Gerekler: cmake + +isim=nlohmann-json +surum=2.1.1 +devir=1 +kaynak=(https://github.com/nlohmann/json/archive/v$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd "json-$surum" + mkdir -p build + + cd build + cmake ../ \ + -DBuildTests=OFF \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr + make + make DESTDIR=${PKG} install + install -d ${PKG}/usr/lib/ + mv ${PKG}/usr/cmake ${PKG}/usr/lib/ + install -Dm644 ../LICENSE.MIT ${PKG}/usr/share/licenses/nlohmann_json-git/LICENSE +} diff --git a/talimatname/genel/n/nmap/talimat b/talimatname/genel/n/nmap/talimat new file mode 100644 index 000000000..49feed058 --- /dev/null +++ b/talimatname/genel/n/nmap/talimat @@ -0,0 +1,27 @@ +# Tanım: Ağ tarama ve güvenlik denetimi programı +# URL: http://insecure.org/nmap/ +# Paketçi: milisarge@gmail.com +# Gerekler: pcre libpcap lua liblinear python + +isim=nmap +surum=7.60 +devir=1 + +kaynak=(http://nmap.org/dist/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum +export PYTHON=python2 +./configure --prefix=/usr \ +--mandir=/usr/share/man \ +--localedir=/usr/share/locale \ +--docdir=/usr/share/doc/$isim-$surum \ +--with-liblua=included \ +--infodir=/usr/share/info +make || make -j1 +make DESTDIR=$PKG install +#zenmap için +python2 -m compileall "${PKG}"/usr/lib/python2.7/site-packages/zenmapCore +rm "${PKG}"/usr/bin/uninstall_* +rm -rf $PKG/usr/share/info/dir +} diff --git a/talimatname/genel/n/nnn/talimat b/talimatname/genel/n/nnn/talimat new file mode 100644 index 000000000..5df00f7bb --- /dev/null +++ b/talimatname/genel/n/nnn/talimat @@ -0,0 +1,15 @@ +# Tanım: X için eksik terminal dosya tarayıcısı. +# URL: https://github.com/jarun/nnn +# Paketçi: Cihan_Alkan +# Gerekler: +# Grup: sistem + +isim=nnn +surum=1.6 +devir=1 +kaynak=(https://github.com/jarun/nnn/archive/v${surum//_/-}.tar.gz::$isim-$surum.tar.gz) + +derle() { + make -C "${isim}-$surum" DESTDIR="${PKG}" PREFIX="/usr" install + rm -rf $PKG/usr/share/man +} diff --git a/talimatname/genel/n/node/node.npm.sh b/talimatname/genel/n/node/node.npm.sh new file mode 100644 index 000000000..1c8494485 --- /dev/null +++ b/talimatname/genel/n/node/node.npm.sh @@ -0,0 +1,13 @@ +# bash completion for npm + +_npm_completion () { + local si="$IFS" + IFS=$'\n' COMPREPLY=($(COMP_CWORD="$COMP_CWORD" \ + COMP_LINE="$COMP_LINE" \ + COMP_POINT="$COMP_POINT" \ + npm completion -- "${COMP_WORDS[@]}" \ + 2>/dev/null)) || return $? + IFS="$si" +} +complete -F _npm_completion npm + diff --git a/talimatname/genel/n/node/talimat b/talimatname/genel/n/node/talimat new file mode 100644 index 000000000..91c1b0711 --- /dev/null +++ b/talimatname/genel/n/node/talimat @@ -0,0 +1,23 @@ +# Tanım: Node.js®, Chrome'un V8 JavaScript motorunda inşa edilmiş bir JavaScript çalışma zamanıdır. +# URL: http://nodejs.org/ +# Paketçi: milisarge +# Gerekler: python + +isim=node +surum=7.10.0 +devir=1 + +kaynak=(http://nodejs.org/dist/v$surum/node-v$surum.tar.xz +node.npm.sh) +derle() { + cd node-v$surum + ./configure \ + --prefix=/usr \ + --shared-openssl \ + --shared-zlib + + make + make DESTDIR=$PKG install + ln -s ../lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js $PKG/usr/bin/node-gyp + install -D -m 644 $SRC/node.npm.sh $PKG/usr/share/bash-completion/completions/npm +} diff --git a/talimatname/genel/n/nodm/nodm.conf b/talimatname/genel/n/nodm/nodm.conf new file mode 100644 index 000000000..3b50785d0 --- /dev/null +++ b/talimatname/genel/n/nodm/nodm.conf @@ -0,0 +1,23 @@ +# nodm configuration file + +# Controls the user that is used to automatically log in +NODM_USER='{user}' + +# Options to pass to the X server (for example: "vt7 -nolisten +# tcp") +NODM_X_OPTIONS='vt7 -nolisten tcp' + +# Minimum time (in seconds) that a session should last in order +# for nodm to decide that it has not quit too soon. If an X +# session will run for less than this time, nodm will wait an +# increasing bit of time before restarting it. +NODM_MIN_SESSION_TIME=60 + +# X session command (default: /etc/X11/Xsession). It is run using +# the shell, so it can be any shell command. +NODM_XSESSION='/root/.xinitrc' + +# Timeout (in seconds) to wait for X to be ready to accept +# connections. If X is not ready before this timeout, it is killed +# and restarted. +NODM_X_TIMEOUT=20 diff --git a/talimatname/genel/n/nodm/talimat b/talimatname/genel/n/nodm/talimat new file mode 100644 index 000000000..c167422b2 --- /dev/null +++ b/talimatname/genel/n/nodm/talimat @@ -0,0 +1,20 @@ +# Tanım: X giriş yöneticisi +# URL: http://enricozini.org/sw/nodm/ +# Paketçi: milisarge +# Gerekler: help2man xorg-xinit + +isim=nodm +surum=0.13 +devir=1 +kaynak=(https://github.com/spanezz/nodm/archive/0.13.tar.gz::$isim-$surum.tar.gz + nodm.conf) + +derle() { + cd "$SRC/$isim-$surum" + ./autogen.sh + ./configure --prefix=/usr/ + make + install -Dm755 nodm $PKG/usr/bin/nodm + install -Dm644 ../nodm.conf $PKG/etc/nodm.conf + +} diff --git a/talimatname/genel/n/nomacs/talimat b/talimatname/genel/n/nomacs/talimat new file mode 100644 index 000000000..e00a38a51 --- /dev/null +++ b/talimatname/genel/n/nomacs/talimat @@ -0,0 +1,49 @@ +# Tanım: QT Resim Gösterici +# URL: https://nomacs.org/ +# Paketçi: Cihan_Alkan +# Gerekler: cmake qt5 exiv2 libraw opencv +# Grup: grafik_tasarım + +isim=nomacs +surum=3.8.0 +devir=1 + +kaynak=(https://github.com/${isim}/${isim}/archive/${surum}.tar.gz::${isim}-${surum}.tar.gz + https://github.com/${isim}/${isim}-plugins/archive/${surum}.tar.gz::${isim}-plugins-${surum}.tar.gz) + +derle() { + +# Yama Dosyası +cat > $SRC/${isim}-no-coverage.patch << "EOF" && +--- nomacs-3.8.0/ImageLounge/CMakeLists.txt.orig 2017-11-14 08:43:20.157769041 +0000 ++++ nomacs-3.8.0/ImageLounge/CMakeLists.txt 2017-11-14 08:43:49.094497479 +0000 +@@ -22,12 +22,6 @@ + set(NOMACS_VERSION ${NOMACS_VERSION_MAJOR}.${NOMACS_VERSION_MINOR}) + set(NOMACS_FULL_VERSION ${NOMACS_VERSION}.${NOMACS_VERSION_PATCH}) + +-# Codecov +-if(CMAKE_COMPILER_IS_GNUCXX) +- include("cmake/CodeCoverage.cmake") +- setup_target_for_coverage(${PROJECT_NAME}_coverage tests coverage) +-endif() +- + if(CMAKE_CL_64) + SET(NMC_ARCHITECTURE "x64") + else() +EOF + + cd "${isim}-${surum}" + + # move plugins + mv "${SRC}/${isim}-plugins-${surum}" "ImageLounge/plugins" + + # disable code coverage: + # https://github.com/nomacs/nomacs/issues/170 + patch -p1 -i "../${isim}-no-coverage.patch" + + cmake ./ImageLounge -DCMAKE_INSTALL_PREFIX=/usr + make + + make DESTDIR="${PKG}" install + +} diff --git a/talimatname/genel/n/notepadqq/talimat b/talimatname/genel/n/notepadqq/talimat new file mode 100644 index 000000000..eb95c83d6 --- /dev/null +++ b/talimatname/genel/n/notepadqq/talimat @@ -0,0 +1,18 @@ +# Tanım: Notepad++ linux sürümü +# URL: http://notepadqq.altervista.org/wp/ +# Paketçi: milisarge +# Gerekler: qt5 hicolor-icon-theme desktop-file-utils qt5-webkit + +isim=notepadqq +surum=1.2.0 +devir=1 +kaynak=(https://github.com/notepadqq/notepadqq/archive/v$surum.tar.gz::$isim-$surum.tar.gz + https://github.com/notepadqq/CodeMirror/archive/5.18.2-nqq.tar.gz) + +derle() { + cd $isim-$surum + cp -rf $SRC/CodeMirror-5.18.2-nqq/* $SRC/$isim-$surum/src/editor/libs/codemirror/ + qmake-qt5 PREFIX=/usr LRELEASE=/usr/bin/lrelease-qt5 notepadqq.pro + make + make INSTALL_ROOT=$PKG install +} diff --git a/talimatname/genel/n/notification-daemon/talimat b/talimatname/genel/n/notification-daemon/talimat new file mode 100644 index 000000000..6d9abb9ad --- /dev/null +++ b/talimatname/genel/n/notification-daemon/talimat @@ -0,0 +1,20 @@ +# Tanım: Pasif pop-up bildirimlerini görüntülemek için arka plan programı +# URL: http://www.gnome.org/ +# Paketçi: milisarge +# Gerekler: intltool gtk3 libcanberra + +isim=notification-daemon +surum=3.20.0 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib/notification-daemon + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/n/noto-fonts/talimat b/talimatname/genel/n/noto-fonts/talimat new file mode 100644 index 000000000..e87f6c73c --- /dev/null +++ b/talimatname/genel/n/noto-fonts/talimat @@ -0,0 +1,21 @@ +# Tanım: Google Noto TTF yazı tipi +# URL : https://www.google.com/get/noto/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: xorg-fontconfig + +isim=noto-fonts +surum=20151224 +_commit=3f1dc1 +devir=1 + +kaynak=(https://github.com/googlei18n/noto-fonts/archive/$_commit.zip) + +derle() { + mkdir -p $PKG/usr/share/fonts/noto + install -m644 $isim-*/hinted/Noto*.ttf $PKG/usr/share/fonts/noto + + mkdir -p $PKG/usr/share/fonts/TTF + for font in Arimo Cousine Tinos; do + install -m644 $isim-*/hinted/$font*.ttf $PKG/usr/share/fonts/TTF + done +} diff --git a/talimatname/genel/n/npapi-sdk/talimat b/talimatname/genel/n/npapi-sdk/talimat new file mode 100644 index 000000000..47f2def36 --- /dev/null +++ b/talimatname/genel/n/npapi-sdk/talimat @@ -0,0 +1,17 @@ +# Tanım: NPAPI-SDK, Mozilla'nın NPAPI üstbilgilerinin bir paketidir. +# URL: https://bitbucket.org/mgorny/npapi-sdk/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: + +isim=npapi-sdk +surum=0.27.2 +devir=1 + +kaynak=(https://bitbucket.org/mgorny/npapi-sdk/downloads/npapi-sdk-$surum.tar.bz2) + +derle() { +cd npapi-sdk-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/n/npth/talimat b/talimatname/genel/n/npth/talimat new file mode 100644 index 000000000..7e887c289 --- /dev/null +++ b/talimatname/genel/n/npth/talimat @@ -0,0 +1,19 @@ +# Tanım: Unix platformları için tam taşınabilir bir POSIX / ANSI-C tabanlı kitaplık içerir +# URL: http://www.gnu.org/software/pth/ +# Paketçi: milisarge +# Gerekler: + +isim=npth +surum=1.2 +devir=1 + +kaynak=(ftp://ftp.gnupg.org/gcrypt/$isim/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--mandir=/usr/share/man \ +--disable-static +make +make -j1 DESTDIR=$PKG install +} diff --git a/talimatname/genel/n/nspr/talimat b/talimatname/genel/n/nspr/talimat new file mode 100644 index 000000000..e3489d62d --- /dev/null +++ b/talimatname/genel/n/nspr/talimat @@ -0,0 +1,23 @@ +# Tanım: Netscape Taşınabilir Çalışma Zamanı Kitaplığı (NSPR) +# URL: http://www.mozilla.org/projects/nspr/ +# Paketçi: milisarge +# Gerekler: + +isim=nspr +surum=4.16 +devir=1 + +kaynak=(http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v$surum/src/$isim-$surum.tar.gz ) +derle() { + +cd $isim-$surum/$isim +sed -ri 's#^(RELEASE_BINS =).*#\1#' pr/src/misc/Makefile.in && +sed -i 's#$(LIBRARY) ##' config/rules.mk && +./configure --prefix=/usr \ + --with-mozilla \ + --with-pthreads \ + $([ $(uname -m) = x86_64 ] && echo --enable-64bit) && +make + +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/n/nss-mdns/talimat b/talimatname/genel/n/nss-mdns/talimat new file mode 100644 index 000000000..a58906c36 --- /dev/null +++ b/talimatname/genel/n/nss-mdns/talimat @@ -0,0 +1,21 @@ +# Tanım: mDNS için nss modülü +# URL: http://0pointer.de/lennart/projects/nss-mdns/ +# Paketçi: milisarge +# Gerekler: + +isim=nss-mdns +surum=0.10 +devir=1 +kaynak=(http://0pointer.de/lennart/projects/$isim/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-lynx + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/n/nss/nss-config.in b/talimatname/genel/n/nss/nss-config.in new file mode 100644 index 000000000..55e51123c --- /dev/null +++ b/talimatname/genel/n/nss/nss-config.in @@ -0,0 +1,142 @@ +#!/bin/sh + +prefix=/usr +surum=@VERSION@ + +usage() +{ + cat <<EOF +Usage: nss-config [OPTIONS] [LIBRARIES] +Options: + [--prefix[=DIR]] + [--exec-prefix[=DIR]] + [--includedir[=DIR]] + [--libdir[=DIR]] + [--version] + [--libs] + [--cflags] +Dynamic Libraries: + nss + nssutil + ssl + smime +EOF + exit $1 +} + +if test $# -eq 0; then + usage 1 1>&2 +fi + +lib_ssl=yes +lib_smime=yes +lib_nss=yes +lib_nssutil=yes + +while test $# -gt 0; do + case "$1" in + -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; + *) optarg= ;; + esac + + case $1 in + --prefix=*) + prefix=$optarg + ;; + --prefix) + echo_prefix=yes + ;; + --exec-prefix=*) + exec_prefix=$optarg + ;; + --exec-prefix) + echo_exec_prefix=yes + ;; + --includedir=*) + includedir=$optarg + ;; + --includedir) + echo_includedir=yes + ;; + --libdir=*) + libdir=$optarg + ;; + --libdir) + echo_libdir=yes + ;; + --version) + echo $surum + ;; + --cflags) + echo_cflags=yes + ;; + --libs) + echo_libs=yes + ;; + ssl) + lib_ssl=yes + ;; + smime) + lib_smime=yes + ;; + nss) + lib_nss=yes + ;; + nssutil) + lib_nssutil=yes + ;; + *) + usage 1 1>&2 + ;; + esac + shift +done + +# Set variables that may be dependent upon other variables +if test -z "$exec_prefix"; then + exec_prefix=${prefix} +fi +if test -z "$includedir"; then + includedir=${prefix}/include/nss +fi +if test -z "$libdir"; then + libdir=${exec_prefix}/lib +fi + +if test "$echo_prefix" = "yes"; then + echo $prefix +fi + +if test "$echo_exec_prefix" = "yes"; then + echo $exec_prefix +fi + +if test "$echo_includedir" = "yes"; then + echo $includedir +fi + +if test "$echo_libdir" = "yes"; then + echo $libdir +fi + +if test "$echo_cflags" = "yes"; then + echo -I$includedir +fi + +if test "$echo_libs" = "yes"; then + libdirs="-L$libdir" + if test -n "$lib_ssl"; then + libdirs="$libdirs -lssl3" + fi + if test -n "$lib_smime"; then + libdirs="$libdirs -lsmime3" + fi + if test -n "$lib_nss"; then + libdirs="$libdirs -lnss3" + fi + if test -n "$lib_nssutil"; then + libdirs="$libdirs -lnssutil3" + fi + echo $libdirs +fi + diff --git a/talimatname/genel/n/nss/nss-softokn.pc.in b/talimatname/genel/n/nss/nss-softokn.pc.in new file mode 100644 index 000000000..7bf8b98c0 --- /dev/null +++ b/talimatname/genel/n/nss/nss-softokn.pc.in @@ -0,0 +1,11 @@ +prefix=%prefix% +exec_prefix=%exec_prefix% +libdir=%libdir% +includedir=%includedir% + +Name: NSS-SOFTOKN +Tanım: Network Security Services Softoken PKCS #11 Module +Version: %NSS_VERSION% +Requires: nspr >= %NSPR_VERSION%, nss-util >= %NSSUTIL_VERSION% +Libs: -lfreebl3 -lnssdbm3 -lsoftokn3 +Cflags: -I${includedir}/private diff --git a/talimatname/genel/n/nss/nss-util.pc.in b/talimatname/genel/n/nss/nss-util.pc.in new file mode 100644 index 000000000..bd5873e59 --- /dev/null +++ b/talimatname/genel/n/nss/nss-util.pc.in @@ -0,0 +1,11 @@ +prefix=%prefix% +exec_prefix=%exec_prefix% +libdir=%libdir% +includedir=%includedir% + +Name: NSS-UTIL +Tanım: Network Security Services Utility Library +Version: %NSS_VERSION% +Requires: nspr >= %NSPR_VERSION% +Libs: -L${libdir} -lnssutil3 +Cflags: -I${includedir} diff --git a/talimatname/genel/n/nss/nss.pc.in b/talimatname/genel/n/nss/nss.pc.in new file mode 100644 index 000000000..e438178b6 --- /dev/null +++ b/talimatname/genel/n/nss/nss.pc.in @@ -0,0 +1,11 @@ +prefix=%prefix% +exec_prefix=%exec_prefix% +libdir=%libdir% +includedir=%includedir% + +Name: NSS +Tanım: Network Security Services +Version: %NSS_VERSION% +Requires: nspr >= %NSPR_VERSION% +Libs: %FULL_NSS_LIBS% +Cflags: %FULL_NSS_CFLAGS% diff --git a/talimatname/genel/n/nss/talimat b/talimatname/genel/n/nss/talimat new file mode 100644 index 000000000..d8dc573b7 --- /dev/null +++ b/talimatname/genel/n/nss/talimat @@ -0,0 +1,63 @@ +# Tanım: Güvenlik özellikli istemci ve sunucu uygulamalarının çapraz platform geliştirmesi desteği +# URL: http://www.mozilla.org +# Paketçi: milisarge +# Gerekler: nspr sqlite + +isim=nss +surum=3.31 +devir=1 +kaynak=(http://ftp.mozilla.org/pub/security/nss/releases/NSS_${version//./_}_RTM/src/$isim-$surum.tar.gz \ + nss-config.in nss.pc.in nss-util.pc.in nss-softokn.pc.in) + +derle() { + cd $isim-$surum/ + + sed -i nss/coreconf/Linux.mk \ + -e 's|^CC.*=.*gcc$|#&|' \ + -e 's|^CCC.*=.*g++$|#&|' + + export NSPR_INCLUDE_DIR=/usr/include/nspr + export NSPR_LIB_DIR=/usr/lib + export NSS_USE_SYSTEM_SQLITE=1 + export NSS_ENABLE_ECC=1 + export NSS_ENABLE_TLS_1_3=1 + export BUILD_OPT=1 + export XCFLAGS="-Wno-error ${CFLAGS}" + export NSS_DISABLE_GTESTS=1 + export USE_64=1 + + make -j1 -C nss + + install -d $PKG/usr/{bin,lib/pkgconfig,include/nss/private} + + cd dist/*.OBJ/bin + install -t "$PKG/usr/bin" *util shlibsign signtool signver ssltap + cd ../lib + install -t "$PKG/usr/lib" *.so + install -t "$PKG/usr/lib" -m644 libcrmf.a libfreebl.a *.chk + cd ../../public/nss + install -t "$PKG/usr/include/nss" -m644 *.h + cd ../../private/nss + install -t "$PKG/usr/include/nss/private" -m644 blapi.h alghmac.h + install -m 0755 $SRC/nss-config.in $PKG/usr/bin/nss-config + + _surum=$(printf "%i.%i.%i" ${version//./ }) + sed -i "s/@VERSION@/$_version/" $PKG/usr/bin/nss-config + + NSS_LIBS=`$PKG/usr/bin/nss-config --libs` + NSS_CFLAGS=`$PKG/usr/bin/nss-config --cflags` + NSPR_VERSION=`pkg-config --modversion nspr` + for module in nss nss-util nss-softokn; do + sed $SRC/$module.pc.in \ + -e "s,%libdir%,/usr/lib," \ + -e "s,%prefix%,/usr," \ + -e "s,%exec_prefix%,/usr/bin," \ + -e "s,%includedir%,/usr/include/nss," \ + -e "s,%NSS_VERSION%,$surum," \ + -e "s,%NSPR_VERSION%,$NSPR_VERSION," \ + -e "s,%FULL_NSS_LIBS%,$NSS_LIBS," \ + -e "s,%FULL_NSS_CFLAGS%,$NSS_CFLAGS," > \ + $PKG/usr/lib/pkgconfig/$module.pc + done + +} diff --git a/talimatname/genel/n/ntfs-3g/ntfs-3g.okubeni b/talimatname/genel/n/ntfs-3g/ntfs-3g.okubeni new file mode 100644 index 000000000..d8513b458 --- /dev/null +++ b/talimatname/genel/n/ntfs-3g/ntfs-3g.okubeni @@ -0,0 +1,3 @@ +Check the following options in the kernel configuration: +File systems ---> + [*] FUSE (Filesystem in Userspace) support diff --git a/talimatname/genel/n/ntfs-3g/talimat b/talimatname/genel/n/ntfs-3g/talimat new file mode 100644 index 000000000..168f25b0a --- /dev/null +++ b/talimatname/genel/n/ntfs-3g/talimat @@ -0,0 +1,21 @@ +# Tanım: NTFS-3G, Linux sistemleri için istikrarlı, tam özellikli, okuma-yazma NTFS sürücüsüdür. +# URL: http://www.tuxera.com/community/open-source-ntfs-3g/ +# Paketçi: milisarge +# Gerekler: + +isim=ntfs-3g +surum=2015.3.14 +devir=1 + +kaynak=(http://tuxera.com/opensource/${isim}_ntfsprogs-$surum.tgz) +derle() { +cd ${isim}_ntfsprogs-$surum +./configure --prefix=/usr \ +--disable-static +make +mkdir $PKG/lib +make DESTDIR=$PKG install +ln -s ../bin/ntfs-3g $PKG/sbin/mount.ntfs +ln -s ntfs-3g.8 $PKG/usr/share/man/man8/mount.ntfs.8 +chmod -v 4755 $PKG/bin/ntfs-3g +} diff --git a/talimatname/genel/n/ntp/talimat b/talimatname/genel/n/ntp/talimat new file mode 100644 index 000000000..65e6fc8bf --- /dev/null +++ b/talimatname/genel/n/ntp/talimat @@ -0,0 +1,68 @@ +# Tanım: NTP, bilgisayar saatlerini bir ağ üzerinden senkronize etmek için tasarlanmış bir protokoldür. +# URL: http://www.ntp.org/ +# Paketçi: milisarge +# Gerekler: + +isim=ntp +surum=4.2.8p5 +devir=1 + +kaynak=( http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/$isim-4.2/$isim-$surum.tar.gz) + +derle() { + +cd $isim-$surum +./configure --prefix=/usr \ +--bindir=/usr/sbin \ +--sysconfdir=/etc \ +--mandir=/usr/share/man \ +--infodir=/usr/share/info \ +--enable-linuxcaps \ +--with-lineeditlibs=readline \ +--docdir=/usr/share/doc/$isim-$surum + +make +make DESTDIR=$PKG install +mkdir -p $PKG/var/lib/ntp +install -v -o ntp -g ntp -d $PKG/var/lib/ntp +mkdir -p $PKG/etc + +cat > $PKG/etc/ntp.conf << "EOF" + +# Europe +server 0.tr.pool.ntp.org +server 1.tr.pool.ntp.org +server 2.tr.pool.ntp.org +server 3.tr.pool.ntp.org +server 0.europe.pool.ntp.org + + +# Africa +server tock.nml.csir.co.za + +# Asia +server 0.asia.pool.ntp.org + +# Australia +server 0.oceania.pool.ntp.org + +# North America +server 0.north-america.pool.ntp.org + +# South America +server 2.south-america.pool.ntp.org + +driftfile /var/lib/ntp/ntp.drift +pidfile /var/run/ntpd.pid + +# Security session +restrict default limited kod nomodify notrap nopeer noquery +restrict -6 default limited kod nomodify notrap nopeer noquery + +restrict 127.0.0.1 +restrict ::1 +EOF +# service + +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/n/numix-gtk-theme/numix-gtk-theme.kur-kos b/talimatname/genel/n/numix-gtk-theme/numix-gtk-theme.kur-kos new file mode 100644 index 000000000..54f6b8678 --- /dev/null +++ b/talimatname/genel/n/numix-gtk-theme/numix-gtk-theme.kur-kos @@ -0,0 +1,5 @@ +update-desktop-database -q +gtk-update-icon-cache -q -t -f /usr/share/icons/Numix/ +gtk-update-icon-cache -q -t -f /usr/share/icons/Numix-Light/ +gtk-update-icon-cache -q -t -f /usr/share/icons/Numix-Circle/ +gtk-update-icon-cache -q -t -f /usr/share/icons/Numix-Circle-Light/ diff --git a/talimatname/genel/n/numix-gtk-theme/talimat b/talimatname/genel/n/numix-gtk-theme/talimat new file mode 100644 index 000000000..8c3d4fd9c --- /dev/null +++ b/talimatname/genel/n/numix-gtk-theme/talimat @@ -0,0 +1,42 @@ +# Tanım: Modern bir görünüme sahip düz ve hafif bir tema (GNOME, Openbox, Birlik, Xfce) +# URL: http://numixproject.org/ +# Paketçi: milisarge +# Gerekler: gdk-pixbuf glib libxml2 gtk-update-icon-cache + +isim=numix-gtk-theme +surum=2.2.3 +devir=1 +kaynak=(https://github.com/numixproject/numix-gtk-theme/archive/v$surum.tar.gz) + +derle() { + mv $DERLEME_KAYNAKDIZIN/v$surum.tar.gz $DERLEME_KAYNAKDIZIN/$isim-$surum.tar.gz + cd $isim-$surum + + if [ ! -d $DERLEME_KAYNAKDIZIN/numix-icon-theme-circle ];then + git clone https://github.com/numixproject/numix-icon-theme-circle $DERLEME_KAYNAKDIZIN/numix-icon-theme-circle + else + cd $DERLEME_KAYNAKDIZIN/numix-icon-theme-circle + git pull + cd - + fi + + if [ ! -d $DERLEME_KAYNAKDIZIN/numix-icon-theme ];then + git clone https://github.com/numixproject/numix-icon-theme $DERLEME_KAYNAKDIZIN/numix-icon-theme + else + cd $DERLEME_KAYNAKDIZIN/numix-icon-theme + git pull + cd - + fi + + #simgelerin eklenmesi + mkdir -p $PKG/usr/share/icons/ + cp -r $DERLEME_KAYNAKDIZIN/numix-icon-theme-circle/Numix-Circle-Light $PKG/usr/share/icons/ + cp -r $DERLEME_KAYNAKDIZIN/numix-icon-theme/Numix-Light $PKG/usr/share/icons/ + cp -r $DERLEME_KAYNAKDIZIN/numix-icon-theme-circle/Numix-Circle $PKG/usr/share/icons/ + cp -r $DERLEME_KAYNAKDIZIN/numix-icon-theme/Numix $PKG/usr/share/icons/ + #temanın paketlenmesi + cd .. + rm numix*/.gitignore + mkdir -p $PKG/usr/share/themes + mv numix* $PKG/usr/share/themes/Numix +} diff --git a/talimatname/genel/n/numlockx/talimat b/talimatname/genel/n/numlockx/talimat new file mode 100644 index 000000000..cf8bcb48a --- /dev/null +++ b/talimatname/genel/n/numlockx/talimat @@ -0,0 +1,21 @@ +# Tanım: X11'de numlock tuşunu açar +# URL: https://admin.fedoraproject.org/pkgdb/package/rpms/numlockx/ +# Paketçi: milisarge +# Gerekler: xorg-libxtst + +isim=numlockx +surum=1.2 +devir=1 +kaynak=(http://pkgs.fedoraproject.org/repo/pkgs/numlockx/numlockx-1.2.tar.gz/be9109370447eae23f6f3f8527bb1a67/numlockx-1.2.tar.gz) + +derle() { + + cd $isim-$surum + + ./configure --prefix=/usr \ + x_includes=/usr/include/X11 \ + x_libraries=/usr/lib + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/n/nvidia/90-nvidia-uvm.rules b/talimatname/genel/n/nvidia/90-nvidia-uvm.rules new file mode 100644 index 000000000..3df8a3ab0 --- /dev/null +++ b/talimatname/genel/n/nvidia/90-nvidia-uvm.rules @@ -0,0 +1 @@ +KERNEL=="nvidia_uvm", RUN+="/bin/bash -c '/bin/mknod -m 660 /dev/nvidia-uvm c $(grep nvidia-uvm /proc/devices | cut -d \ -f 1) 0; /bin/chgrp video /dev/nvidia-uvm'" diff --git a/talimatname/genel/n/nvidia/nvidia.kur-kos b/talimatname/genel/n/nvidia/nvidia.kur-kos new file mode 100644 index 000000000..d3e350540 --- /dev/null +++ b/talimatname/genel/n/nvidia/nvidia.kur-kos @@ -0,0 +1 @@ +depmod diff --git a/talimatname/genel/n/nvidia/talimat b/talimatname/genel/n/nvidia/talimat new file mode 100644 index 000000000..79ed0a00c --- /dev/null +++ b/talimatname/genel/n/nvidia/talimat @@ -0,0 +1,105 @@ +# Tanım: nVIDIA Linux Display Driver +# URL: http://www.nvidia.com/ +# Paketçi: milisarge +# Gerekler: gtk2 gl-select kernel +# Grup: sürücü + +isim=nvidia +surum=390.42 +devir=1 +kaynak=(http://us.download.nvidia.com/XFree86/Linux-x86_64/$surum/NVIDIA-Linux-x86_64-$surum-no-compat32.run \ + 90-nvidia-uvm.rules) + +derle() { + sh NVIDIA-Linux-x86_64-$surum-no-compat32.run --extract-only + cd NVIDIA-Linux-x86_64-$surum-no-compat32 + + # libraries + install -d $PKG/usr/lib/{tls,vdpau} + install -m 0755 libGL.so.$surum $PKG/usr/lib + install -m 0755 libOpenCL.so.1.0.0 $PKG/usr/lib + install -m 0755 libcuda.so.$surum $PKG/usr/lib + install -m 0755 libnvidia-cfg.so.$surum $PKG/usr/lib + install -m 0755 libnvidia-compiler.so.$surum $PKG/usr/lib + install -m 0755 libnvidia-encode.so.$surum $PKG/usr/lib + install -m 0755 libnvidia-fbc.so.$surum $PKG/usr/lib + install -m 0755 libnvidia-glcore.so.$surum $PKG/usr/lib + install -m 0755 libnvidia-gtk2.so.$surum $PKG/usr/lib + install -m 0755 libnvidia-gtk3.so.$surum $PKG/usr/lib + install -m 0755 libnvidia-ifr.so.$surum $PKG/usr/lib + install -m 0755 libnvidia-ml.so.$surum $PKG/usr/lib + install -m 0755 libnvidia-opencl.so.$surum $PKG/usr/lib + install -m 0755 libnvidia-tls.so.$surum $PKG/usr/lib + install -m 0755 libnvcuvid.so.$surum $PKG/usr/lib + install -m 0755 tls/libnvidia-tls.so.$surum $PKG/usr/lib/tls + install -m 0755 libvdpau_nvidia.so.$surum $PKG/usr/lib/vdpau + install -m 0755 libnvidia-fatbinaryloader.so.$surum $PKG/usr/lib + + ln -s libvdpau_nvidia.so.$surum $PKG/usr/lib/vdpau/libvdpau_nvidia.so.1 + ln -s libvdpau_nvidia.so.$surum $PKG/usr/lib/vdpau/libvdpau_nvidia.so + + ln -s libnvcuvid.so.$surum $PKG/usr/lib/libnvcuvid.so.1 + ln -s libnvcuvid.so.$surum $PKG/usr/lib/libnvcuvid.so + + ln -s libnvidia-ml.so.$surum $PKG/usr/lib/libnvidia-ml.so.1 + ln -s libnvidia-ml.so.$surum $PKG/usr/lib/libnvidia-ml.so + + ln -s libOpenCL.so.1.0.0 $PKG/usr/lib/libOpenCL.so + + # xorg driver/extensions + install -d $PKG/usr/lib/xorg/modules/{drivers,extensions} + install -m 0755 nvidia_drv.so $PKG/usr/lib/xorg/modules/drivers + install -m 0755 libglx.so.$surum $PKG/usr/lib/xorg/modules/extensions + install -m 0755 libnvidia-wfb.so.$surum $PKG/usr/lib/xorg/modules + + # nvidia programs amd man-pages + install -d $PKG/usr/{bin,share/man/man1} + install -m 0755 nvidia-{debugdump,persistenced,settings,smi,xconfig} \ + $PKG/usr/bin + install -m 0644 nvidia-{persistenced,settings,smi,xconfig}.1.gz \ + $PKG/usr/share/man/man1 + + # desktop file and icon + install -d $PKG/usr/share/{applications,pixmaps} + sed -i 's:__UTILS_PATH__:/usr/bin: ; s:__PIXMAP_PATH__:/usr/share/pixmaps:' nvidia-settings.desktop + install -m 0644 nvidia-settings.desktop $PKG/usr/share/applications + install -m 0644 nvidia-settings.png $PKG/usr/share/pixmaps + + # additional symlinks required by gl-select + ln -s libGL.so.$surum $PKG/usr/lib/libGL_so_1_2_nvidia + ln -s libglx.so.$surum $PKG/usr/lib/xorg/modules/extensions/libglx_so_nvidia + + # opencl icd file + install -m 0644 -D nvidia.icd $PKG/etc/OpenCL/vendors/nvidia.icd + + # nvidia-uvm module udev rule + install -d $PKG/lib/udev/rules.d + install -m 0644 $SRC/90-nvidia-uvm.rules $PKG/lib/udev/rules.d/90-nvidia-uvm.rules + + # nvidia-settings registry key file + install -D -m 0644 nvidia-application-profiles-$surum-key-documentation \ + $PKG/usr/share/nvidia/nvidia-application-profiles-$surum-key-documentation + + # kernel modules + #cd /lib/modules/`uname -r`/build + #gunzip < /proc/config.gz > .config + #make oldconfig + #make prepare + #make scripts + #cp /lib/modules/`uname -r`/build/include/generated/autoconf.h /lib/modules/`uname -r`/build/include/linux/autoconf.h + #cd - + cd kernel + + #make SYSSRC=/lib/modules/"`uname -r`/build" module + rm -rf /lib/modules/`uname -r`/build/vmlinux + IGNORE_CC_MISMATCH=1 make module + install -D -m 0644 nvidia.ko $PKG/lib/modules/`uname -r`/extra/nvidia.ko + install -D -m 0644 nvidia-uvm.ko $PKG/lib/modules/`uname -r`/extra/nvidia-uvm.ko + install -D -m 0644 nvidia-modeset.ko $PKG/lib/modules/`uname -r`/extra/nvidia-modeset.ko + install -D -m 0644 nvidia-drm.ko $PKG/lib/modules/`uname -r`/extra/nvidia-drm.ko + + gzip "${PKG}/lib/modules/`uname -r`/extra/"*.ko + install -d -m755 "${PKG}/etc/modprobe.d" + echo "blacklist nouveau" >> "${PKG}/etc/modprobe.d/nouveau_blacklist.conf" + +} diff --git a/talimatname/genel/o/obconf-qt/talimat b/talimatname/genel/o/obconf-qt/talimat new file mode 100644 index 000000000..67203cebd --- /dev/null +++ b/talimatname/genel/o/obconf-qt/talimat @@ -0,0 +1,23 @@ +# Tanım: OpenBox için bir GUI Qt tabanlı yapılandırma aracıdır. +# URL: http://lxqt.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: gtk2 hicolor-icon-theme liblxqt openbox +# Grup: lxqt + +isim=obconf-qt +surum=0.13.0 +devir=1 +kaynak=(https://github.com/lxde/$isim/releases/download/$surum/$isim-$surum.tar.xz) + + +derle() { + mkdir -v build + cd build + cmake $SRC/$isim-$surum \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr + + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/o/obconf/talimat b/talimatname/genel/o/obconf/talimat new file mode 100644 index 000000000..ec65140b1 --- /dev/null +++ b/talimatname/genel/o/obconf/talimat @@ -0,0 +1,17 @@ +# Tanım: Openbox yapılandırması için araçlar +# URL: http://openbox.org/wiki/ObConf:About +# Paketçi: milisarge +# Gerekler: openbox startup-notification gtk2 cairo xorg-pixman xorg-libxext gdk-pixbuf atk libglade avahi dbus-python dbus-glib libdaemon xorg-mesa + +isim=obconf +surum=2.0.4 +devir=2 + +kaynak=(http://icculus.org/openbox/obconf/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/o/obex-data-server/talimat b/talimatname/genel/o/obex-data-server/talimat new file mode 100644 index 000000000..7f684973a --- /dev/null +++ b/talimatname/genel/o/obex-data-server/talimat @@ -0,0 +1,18 @@ +# Tanım: OBEX Veri Sunucusu paketi, üst düzey OBEX istemci ve sunucu tarafında işlevsellik sağlayan D-Bus servisini içerir. +# URL: http://tadas.dailyda.com +# Paketçi: milisarge +# Gerekler: bluez dbus-glib imagemagick gdk-pixbuf libusb-compat openobex + +isim=obex-data-server +surum=0.4.6 +devir=1 +kaynak=(http://tadas.dailyda.com/software/$isim-$surum.tar.gz + http://www.linuxfromscratch.org/patches/downloads/$isim/$isim-$surum-build-fixes-1.patch) + +derle() { + cd $isim-$surum + patch -Np1 -i $SRC/obex-data-server-0.4.6-build-fixes-1.patch + ./configure --prefix=/usr --sysconfdir=/etc + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/o/obexd/talimat b/talimatname/genel/o/obexd/talimat new file mode 100644 index 000000000..11e29e52d --- /dev/null +++ b/talimatname/genel/o/obexd/talimat @@ -0,0 +1,19 @@ +# Tanım: Obexd paketi OBEX istemci ve sunucu işlevselliğini sağlayan D-Bus hizmetlerini içerir. +# URL: http://www.bluez.org/ +# Paketçi: milisarge +# Gerekler: bluez libical + +isim=obexd +surum=0.48 +devir=2 + +kaynak=(http://www.kernel.org/pub/linux/bluetooth/$isim-$surum.tar.xz) +derle() { +cd $isim-$surum +sed -i 's/#include <string.h>/&\n#include <stdio.h>/' plugins/mas.c +./configure --prefix=/usr \ +--sysconfdir=/etc \ +--libexecdir=/usr/lib/obexd +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/o/obmenu-generator/talimat b/talimatname/genel/o/obmenu-generator/talimat new file mode 100644 index 000000000..d32598a10 --- /dev/null +++ b/talimatname/genel/o/obmenu-generator/talimat @@ -0,0 +1,16 @@ +# Tanım: openbox menu yapıcı +# URL: https://github.com/trizen/obmenu-generator +# Paketçi: milisarge +# Gerekler: perl-module-build perl-data-dump perl-linux-desktopfiles +# Grup: sistem + +isim=obmenu-generator +surum=0.84 +devir=1 +kaynak=(https://github.com/trizen/${isim}/archive/${surum}.tar.gz::${isim}-${surum}.tar.gz) + +derle() { + cd "$isim-$surum" + install -Dm755 "$isim" "$PKG/usr/bin/$isim" + install -Dm644 "schema.pl" "$PKG/etc/xdg/$isim/schema.pl" +} diff --git a/talimatname/genel/o/obmenu/talimat b/talimatname/genel/o/obmenu/talimat new file mode 100644 index 000000000..d1d455db9 --- /dev/null +++ b/talimatname/genel/o/obmenu/talimat @@ -0,0 +1,18 @@ +# Tanım: Openbox için yapılandırma aracı +# URL: http://obmenu.sourceforge.net +# Paketçi: milisarge +# Gerekler: python-gtk + + +isim=obmenu +surum=1.0 +devir=1 + +kaynak=(http://freefr.dl.sourceforge.net/sourceforge/obmenu/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum +python2 setup.py install --root=$PKG + +} + diff --git a/talimatname/genel/o/obs-studio/obs.desktop b/talimatname/genel/o/obs-studio/obs.desktop new file mode 100644 index 000000000..ad0aa02a0 --- /dev/null +++ b/talimatname/genel/o/obs-studio/obs.desktop @@ -0,0 +1,14 @@ +[Desktop Entry] +Version=1.0 +Name=OBS +GenericName=Streaming/Recording Software +GenericName[tr]=Akış ve Kayıt Yazılımı +Comment=Free and Open Source Streaming/Recording Software +Comment[ru]=Бесплатная программа с открытым кодом для записи/трансляции видео +Comment[tr]=Canlı akış ve kayıt için ücretsiz, açık kaynaklı yazılım +Exec=obs +Icon=obs +Terminal=false +Type=Application +Categories=AudioVideo;Recorder; +StartupNotify=true diff --git a/talimatname/genel/o/obs-studio/talimat b/talimatname/genel/o/obs-studio/talimat new file mode 100644 index 000000000..6dc5c3114 --- /dev/null +++ b/talimatname/genel/o/obs-studio/talimat @@ -0,0 +1,25 @@ +# Tanım: Canlı akış ve kayıt için ücretsiz, açık kaynaklı yazılım +# URL: https://obsproject.com +# Paketçi: Cihan_Alkan +# Gerekler: ffmpeg jansson xorg-libxinerama libxkbcommon qt5 curl jack gtk-update-icon-cache cmake fdk-aac xorg-libxcomposite x264 vlc +# Grup: medya + + +isim=obs-studio +surum=20.1.3 +devir=1 +kaynak=(https://github.com/jp9000/obs-studio/archive/$surum.tar.gz::$isim-$surum.tar.gz + obs.desktop) + +derle() { +cd $isim-$surum + mkdir -p build; cd build + + cmake -DCMAKE_INSTALL_PREFIX="/usr" \ + -DOBS_VERSION_OVERRIDE="$surum-$devir" .. + + make + make install DESTDIR="$PKG" + mkdir -p $PKG/usr/share/applications + mv $SRC/obs.desktop $PKG/usr/share/applications/ +} diff --git a/talimatname/genel/o/ocaml-batteries/talimat b/talimatname/genel/o/ocaml-batteries/talimat new file mode 100644 index 000000000..f1b66a526 --- /dev/null +++ b/talimatname/genel/o/ocaml-batteries/talimat @@ -0,0 +1,24 @@ +# Tanım: OCaml için kapsamlı bir standart kütüphane +# URL: https://forge.ocamlcore.org/projects/batteries/ +# Paketçi: Cihan_Alkan +# Gerekler: ocaml-findlib ocamlbuild ocaml +# Grup: kütüphane + +isim=ocaml-batteries +surum=2.8.0 +devir=1 +kaynak=(https://github.com/ocaml-batteries-team/batteries-included/archive/v${surum}.tar.gz) + +derle() { + + cd $SRC/${isim/ocaml-/}-included-$surum + make all || return 1 + rm -f *.cma *.cmi *.cmo + make doc || return 1 + + mkdir -p $PKG/$(ocamlfind printconf destdir)/batteries $PKG/$(ocamlfind printconf destdir)/stublibs || return 1 + make DESTDIR=$PKG/$(ocamlfind printconf destdir)/ OCAMLFIND_DESTDIR=$PKG/$(ocamlfind printconf destdir)/ install || return 1 + make DOCROOT=$PKG/usr/share/doc/ocaml-batteries/ install-doc || return 1 + install -Dm 644 ocamlinit $PKG/usr/share/doc/ocaml-batteries/ocamlinit || return 1 + +} diff --git a/talimatname/genel/o/ocaml-biniou/talimat b/talimatname/genel/o/ocaml-biniou/talimat new file mode 100644 index 000000000..ae4d44abe --- /dev/null +++ b/talimatname/genel/o/ocaml-biniou/talimat @@ -0,0 +1,27 @@ +# Tanım: JSON için optimize edilmiş bir ayrıştırma ve baskı kitaplığı +# URL: https://github.com/mjambon/biniou +# Paketçi: Cihan_Alkan +# Gerekler: ocaml-findlib dune opam ocaml-easy-format +# Grup: kütüphane + +_pkgname=biniou +isim=ocaml-biniou +surum=1.2.0 +devir=1 +kaynak=(https://github.com/mjambon/biniou/archive/v$surum.tar.gz::${isim}-${surum}.tar.gz) + +derle() { + + cd biniou-${surum} + make all + + # Initialize OPAM + export OPAMROOT="${SRC}"/opam + opam init -n + + # Work around missing install command + OCAMLFIND_DESTDIR="${PKG}$(ocamlfind printconf destdir)" jbuilder install + + # Install LICENSE + install -Dm644 "${SRC}"/opam/system/doc/${_pkgname}/LICENSE -t "${PKG}"/usr/share/licenses/${isim}/ +} diff --git a/talimatname/genel/o/ocaml-easy-format/talimat b/talimatname/genel/o/ocaml-easy-format/talimat new file mode 100644 index 000000000..7c9118c21 --- /dev/null +++ b/talimatname/genel/o/ocaml-easy-format/talimat @@ -0,0 +1,26 @@ +# Tanım: JSON için optimize edilmiş bir ayrıştırma ve baskı kitaplığı +# URL: https://github.com/mjambon/easy-format +# Paketçi: Cihan_Alkan +# Gerekler: glibc dune ocaml-findlib opam +# Grup: kütüphane + +isim=ocaml-easy-format +surum=1.3.1 +devir=1 +kaynak=(https://github.com/mjambon/easy-format/archive/v$surum.tar.gz::${isim}-${surum}.tar.gz) + +derle() { + + cd easy-format-${surum} + make all + + # Initialize OPAM + export OPAMROOT="${SRC}"/opam + opam init -n + + # Work around missing install command + OCAMLFIND_DESTDIR="${PKG}$(ocamlfind printconf destdir)" jbuilder install + + # Install LICENSE + install -Dm644 "${SRC}"/opam/system/doc/easy-format/LICENSE -t "${PKG}"/usr/share/licenses/${isim}/ +} diff --git a/talimatname/genel/o/ocaml-findlib/talimat b/talimatname/genel/o/ocaml-findlib/talimat new file mode 100644 index 000000000..22612361c --- /dev/null +++ b/talimatname/genel/o/ocaml-findlib/talimat @@ -0,0 +1,23 @@ +# Tanım: O'Caml kütüphane yöneticisi +# URL: http://projects.camlcity.org/projects/findlib.html +# Paketçi: milisarge +# Gerekler: ocaml + +isim=ocaml-findlib +_isim=findlib +surum=1.7.1 +devir=1 +kaynak=(http://download.camlcity.org/download/${_name}-$surum.tar.gz) + +derle() { + + cd ${_name}-$surum + + ./configure -bindir /usr/bin \ + -config /etc/findlib.conf + + make -j1 all opt + make prefix="$PKG" install + install -m755 src/findlib/ocamlfind_opt "$pkgdir/usr/bin/" + +} diff --git a/talimatname/genel/o/ocaml-lablgl/talimat b/talimatname/genel/o/ocaml-lablgl/talimat new file mode 100644 index 000000000..fa33b9b3f --- /dev/null +++ b/talimatname/genel/o/ocaml-lablgl/talimat @@ -0,0 +1,31 @@ +# Tanım: O'Caml kütüphane yöneticisi +# URL: http://projects.camlcity.org/projects/findlib.html +# Paketçi: milisarge +# Gerekler: ocaml camlp4 xorg-glu xorg-libxi xorg-libxmu + +isim=ocaml-lablgl +_isim=lablgl +surum=1.05 +devir=1 +kaynak=(https://forge.ocamlcore.org/frs/download.php/1254/lablgl-$surum.tar.gz) + +derle() { + cd ${_name}-$surum + + sed 17d Makefile.config.linux.mdk > Makefile.config + make lib + make libopt + + make install BINDIR="$PKG/usr/bin/" \ + LIBDIR="$PKG/usr/lib/ocaml/" \ + DDLDIR="$PKG/usr/lib/ocaml/stublibs/" \ + INSTALLDIR="$PKG/usr/lib/ocaml/lablGL/" + + install -Dm644 src/lablgl.cmxa "$PKG"/usr/lib/ocaml/lablgl.cmxa + + # stublibs kütüphanelerini doğru konumlamak için + mv "$PKG/usr/lib/ocaml/stublibs" /tmp/temp.so + mkdir -p "$PKG/usr/lib/ocaml/stublibs" + mv /tmp/temp.so "$PKG/usr/lib/ocaml/stublibs/dlllablgl.so" + +} diff --git a/talimatname/genel/o/ocaml-lablgtk/talimat b/talimatname/genel/o/ocaml-lablgtk/talimat new file mode 100644 index 000000000..5f6025935 --- /dev/null +++ b/talimatname/genel/o/ocaml-lablgtk/talimat @@ -0,0 +1,40 @@ +# Tanım: O'Caml kütüphane yöneticisi +# URL: http://projects.camlcity.org/projects/findlib.html +# Paketçi: milisarge +# Gerekler: ocaml ocaml-findlib ocaml-lablgl gtk2 librsvg libglade gtksourceview2 xorg-mesa + +isim=ocaml-lablgtk +_isim=lablgtk +surum=2.18.5 +devir=1 +kaynak=(https://forge.ocamlcore.org/frs/download.php/1627/$isim-$surum.tar.gz) + +derle() { + cd ${_name}-$surum + export LD_LIBRARY_PATH=/usr/lib/ocaml/stublibs/:/usr/lib/ocaml/:${LD_LIBRARY_PATH} + + ./configure \ + --prefix=/usr \ + --libdir=/usr/lib \ + --build=$ARCH-milis-linux \ + --with-glade \ + --with-rsvg \ + --with-gtksourceview2 + + sed -i -e "s/\\(CFLAGS = .*\\)/\\1 ${SLKCFLAGS}/" src/Makefile + sed -i -e "s/\\(CFLAGS += -O\\)/CFLAGS +=/" src/Makefile + + make -j1 world + #make DESTDIR=$PKG install + make install BINDIR="$PKG/usr/bin/" + mkdir -p "$PKG/usr/lib/ocaml/stublibs" + mv /usr/lib/ocaml/site-lib/lablgtk2 "$PKG/usr/lib/ocaml/" + cp src/dlllablglade2.so "$PKG/usr/lib/ocaml/stublibs/" + cp src/dlllablgtk2.so "$PKG/usr/lib/ocaml/stublibs/" + cp src/dlllablgtksourceview2.so "$PKG/usr/lib/ocaml/stublibs/" + cp src/dlllablrsvg.so "$PKG/usr/lib/ocaml/stublibs/" + # remove file conflicting with ocaml's ones + rm -f $PKG/usr/lib/ocaml/ld.conf + + +} diff --git a/talimatname/genel/o/ocaml-menhir/talimat b/talimatname/genel/o/ocaml-menhir/talimat new file mode 100644 index 000000000..dae08a6c1 --- /dev/null +++ b/talimatname/genel/o/ocaml-menhir/talimat @@ -0,0 +1,18 @@ +# Tanım: Menhir, OCaml için bir LR (1) ayrıştırıcı üreticisidir. +# URL: http://cristal.inria.fr/~fpottier/menhir/ +# Paketçi: Cihan_Alkan +# Gerekler: ocaml ocaml-findlib ocamlbuild +# Grup: programlama + +isim=ocaml-menhir +surum=20171222 +devir=1 +kaynak=(http://cristal.inria.fr/~fpottier/menhir/menhir-$surum.tar.gz) + +derle() { + cd "$SRC/${isim/ocaml-/}-$surum" + make PREFIX="/usr" all + export OCAMLFIND_DESTDIR="$PKG$(ocamlfind printconf destdir)" + install -dm 755 "$OCAMLFIND_DESTDIR" + make PREFIX="$PKG/usr" install +} diff --git a/talimatname/genel/o/ocaml-ocamlsdl/talimat b/talimatname/genel/o/ocaml-ocamlsdl/talimat new file mode 100644 index 000000000..e60cb9ba8 --- /dev/null +++ b/talimatname/genel/o/ocaml-ocamlsdl/talimat @@ -0,0 +1,25 @@ +# Tanım: O'Caml sdl kütüphanesi +# URL: https://sourceforge.net/projects/ocamlsdl/ +# Paketçi: milisarge +# Gerekler: ocaml ocaml-findlib ocaml-lablgl sdl sdl-ttf sdl-image sdl-mixer + +isim=ocaml-ocamlsdl +surum=0.9.1 +devir=1 +kaynak=(http://downloads.sourceforge.net/project/ocamlsdl/OCamlSDL/${name#ocaml-}-${surum}/${name#ocaml-}-${surum}.tar.gz) + +derle() { + cd "${SRC}/${name#ocaml-}-${surum}" + ./configure + make + export OCAMLFIND_DESTDIR="${PKG}$(ocamlfind printconf destdir)" + mkdir -p "$PKG/usr/lib/ocaml/stublibs" + mkdir -p "$PKG/usr/lib/ocaml/site-lib/sdl" + make install + mv "$PKG/usr/lib/ocaml/site-lib/sdl" "$PKG/usr/lib/ocaml/" + + cp src/dllsdlloaderstub.so "$PKG/usr/lib/ocaml/stublibs/" + cp src/dllsdlmixerstub.so "$PKG/usr/lib/ocaml/stublibs/" + cp src/dllsdlstub.so "$PKG/usr/lib/ocaml/stublibs/" + cp src/dllsdlttfstub.so "$PKG/usr/lib/ocaml/stublibs/" +} diff --git a/talimatname/genel/o/ocaml-pprint/talimat b/talimatname/genel/o/ocaml-pprint/talimat new file mode 100644 index 000000000..4fa5ef7aa --- /dev/null +++ b/talimatname/genel/o/ocaml-pprint/talimat @@ -0,0 +1,19 @@ +# Tanım: Wadler'in ve Leijen'in daha güzel yazıcısının bir OCaml uyarlaması. +# URL: http://gallium.inria.fr/~fpottier/pprint/doc/PPrint.OCaml.html +# Paketçi: Cihan_Alkan +# Gerekler: ocaml-findlib ocamlbuild +# Grup: kütüphane + +isim=ocaml-pprint +surum=20171003 +devir=1 +_oname=pprint +kaynak=(http://gallium.inria.fr/~fpottier/${_oname}/${_oname}-${surum}.tar.gz) + +derle() { + cd "$SRC/$_oname-$surum" + make -C src + export OCAMLFIND_DESTDIR="$PKG$(ocamlfind printconf destdir)" + install -dm 755 "$OCAMLFIND_DESTDIR" + make -C src install +} diff --git a/talimatname/genel/o/ocaml-stdint/talimat b/talimatname/genel/o/ocaml-stdint/talimat new file mode 100644 index 000000000..1d0f07389 --- /dev/null +++ b/talimatname/genel/o/ocaml-stdint/talimat @@ -0,0 +1,21 @@ +# Tanım: ocaml tamsayı kütüphanesi +# URL: https://github.com/andrenth/ocaml-stdint +# Paketçi: milisarge +# Gerekler: ocamlbuild ocaml-findlib +# Grup: kütüphane + +isim=ocaml-stdint +surum=0.5.0 +devir=1 +kaynak=(https://github.com/andrenth/ocaml-stdint/archive/$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd "$isim-$surum" + export OCAMLFIND_DESTDIR="${PKG}$(ocamlfind printconf destdir)" + ocaml setup.ml -configure --destdir "${PKG}" + make all + mkdir -p "${OCAMLFIND_DESTDIR}" + export OCAMLFIND_LDCONF=FOOBAR + ocaml setup.ml -install --destdir "$PKG" + rm -r "$PKG/usr/local" +} diff --git a/talimatname/genel/o/ocaml-yojson/talimat b/talimatname/genel/o/ocaml-yojson/talimat new file mode 100644 index 000000000..29076ab43 --- /dev/null +++ b/talimatname/genel/o/ocaml-yojson/talimat @@ -0,0 +1,26 @@ +# Tanım: JSON için optimize edilmiş bir ayrıştırma ve baskı kitaplığı +# URL: https://github.com/mjambon/yojson +# Paketçi: Cihan_Alkan +# Gerekler: ocaml-findlib ocamlbuild dune ocaml-easy-format cppo ocaml-biniou +# Grup: kütüphane + +_isim=yojson +isim=ocaml-yojson +surum=1.4.1 +devir=1 +kaynak=(https://github.com/mjambon/yojson/archive/v${surum}.tar.gz::${isim}-${surum}.tar.gz) + +derle() { + cd ${_isim}-${surum} + make all + + # Initialize OPAM, this should be removed once opam is “removed” from dune + export OPAMROOT="${SRC}"/opam + opam init -n + + # Work around the install command + make OCAMLFIND_DESTDIR="${PKG}$(ocamlfind printconf destdir)" install + + # Install LICENSE + install -Dm644 "${SRC}"/opam/system/doc/${_isim}/LICENSE -t "${PKG}"/usr/share/licenses/${isim}/ +} diff --git a/talimatname/genel/o/ocaml/talimat b/talimatname/genel/o/ocaml/talimat new file mode 100644 index 000000000..322c996e0 --- /dev/null +++ b/talimatname/genel/o/ocaml/talimat @@ -0,0 +1,18 @@ +# Tanım: Caml, program güvenliği ve güvenilirliği göz önünde bulundurularak tasarlanmış genel amaçlı bir programlama dilidir. +# URL: http://caml.inria.fr/ +# Paketçi: milisarge +# Gerekler: + +isim=ocaml +surum=4.05.0 +devir=1 +kaynak=(http://caml.inria.fr/pub/distrib/$isim-${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure -prefix /usr -x11include /usr/include -no-graph + make -j1 world.opt + make PREFIX=$PKG/usr install +} + + diff --git a/talimatname/genel/o/ocamlbuild/talimat b/talimatname/genel/o/ocamlbuild/talimat new file mode 100644 index 000000000..67d4ecad9 --- /dev/null +++ b/talimatname/genel/o/ocamlbuild/talimat @@ -0,0 +1,17 @@ +# Tanım: ocaml derleme kurallarına göre derleme uygulaması +# URL: https://github.com/ocaml/ocamlbuild/ +# Paketçi: milisarge +# Gerekler: ocaml +# Grup: programlama + +isim=ocamlbuild +surum=0.12.0 +devir=1 +kaynak=(https://github.com/ocaml/${isim}/archive/$surum.tar.gz) + +derle() { + cd $isim-$surum + make configure + make + make install DESTDIR=$PKG +} diff --git a/talimatname/genel/o/ocrfeeder/talimat b/talimatname/genel/o/ocrfeeder/talimat new file mode 100644 index 000000000..17767e41c --- /dev/null +++ b/talimatname/genel/o/ocrfeeder/talimat @@ -0,0 +1,26 @@ +# Tanım: GTK + belge yerleşimi analizi ve optik karakter tanıma uygulaması +# URL: https://wiki.gnome.org/Apps/OCRFeeder +# Paketçi: Cihan_Alkan +# Gerekler: pyenchant python-gobject python-lxml python-pillow pyreportlab gtk3 goocanvas gtkspell ghostscript unpaper sane iso-codes intltool gnome-doc-utils python-gobject2 +# Grup: ofis_düzenleyici + +isim=ocrfeeder +surum=0.8.1 +devir=1 +kaynak=(https://download.gnome.org/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + + cd $isim-$surum + + # Python2 fix + sed -i 's@^#!.*python$@#!/usr/bin/python@' bin/ocrfeeder*.in src/ocrfeeder/odf/*.py + + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + PYTHON=python + make + + make DESTDIR="$PKG" install + mkdir -p "$PKG/usr/share/pixmaps" + ln -s ../ocrfeeder/icons/ocrfeeder.svg "$PKG/usr/share/pixmaps/ocrfeeder.svg" +} diff --git a/talimatname/genel/o/ode/talimat b/talimatname/genel/o/ode/talimat new file mode 100644 index 000000000..07e6c2b4e --- /dev/null +++ b/talimatname/genel/o/ode/talimat @@ -0,0 +1,18 @@ +# Tanım: ODE, katı cisim dinamikleri simüle etmek için açık kaynak kodlu, yüksek performanslı bir kütüphanedir. +# URL: http://www.ode.org/ +# Paketçi: milisarge +# Gerekler: xorg-mesa + +isim=ode +surum=0.11.1 +devir=1 +kaynak=(http://download.sourceforge.net/opende/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --disable-static \ + --disable-debug + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/o/ogre/talimat b/talimatname/genel/o/ogre/talimat new file mode 100644 index 000000000..e92bbe52e --- /dev/null +++ b/talimatname/genel/o/ogre/talimat @@ -0,0 +1,48 @@ +# Tanım: Sahne tabanlı, esnek 3D motor C ++ ile yazılmıştır +# URL: http://www.ogre3d.org +# Paketçi: Cihan_Alkan +# Gerekler: boost cmake doxygen graphviz dejavu-ttf xorg-mesa mercurial python swig tinyxml sdl2 +# Grup: geliştirme + + +isim=ogre +surum=1.10.11 +devir=1 +kaynak=(https://github.com/OGRECave/ogre/archive/v${surum}.tar.gz) + +derle() { + + cd ogre-${surum} + + [[ -d build ]] && rm -rf build + mkdir build && cd build + + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DOGRE_INSTALL_SAMPLES=TRUE \ + -DOGRE_INSTALL_DOCS=TRUE \ + -DOGRE_INSTALL_SAMPLES_SOURCE=TRUE \ + -DOGRE_BUILD_DEPENDENCIES=FALSE \ + -DOGRE_BUILD_COMPONENT_PYTHON=TRUE \ + -DCMAKE_BUILD_TYPE=Release + + make + make OgreDoc + + make DESTDIR=${PKG} install + + mv ${PKG}/usr/bin/SampleBrowser ${PKG}/usr/bin/OgreSampleBrowser + install -Dm644 ../LICENSE ${PKG}/usr/share/licenses/${isim}/LICENSE + + # move docs out of this package + mv ${PKG}/usr/share/OGRE/docs ${SRC}/docs + + # move docs into this package + install -dm755 ${PKG}/usr/share/doc + mv ${SRC}/docs ${PKG}/usr/share/doc/OGRE/ + + # symlink for docs + install -dm755 ${PKG}/usr/share/OGRE/ + cd ${PKG}/usr/share + ln -s /usr/share/doc/OGRE/ OGRE/docs +} diff --git a/talimatname/genel/o/ois/gcc47.patch b/talimatname/genel/o/ois/gcc47.patch new file mode 100644 index 000000000..2727d9173 --- /dev/null +++ b/talimatname/genel/o/ois/gcc47.patch @@ -0,0 +1,56 @@ +diff -rup ois-v1-3/configure.ac patched/configure.ac +--- ois-v1-3/configure.ac 2010-04-04 13:51:08.000000000 -0400 ++++ patched/configure.ac 2013-01-30 20:33:38.461394645 -0500 +@@ -5,7 +5,7 @@ AC_INIT( [OIS], 1.3.0 ) + + AC_CANONICAL_TARGET + AM_INIT_AUTOMAKE( [OIS], 1.3.0 ) +-AM_CONFIG_HEADER([includes/config.h]) ++AC_CONFIG_HEADERS([includes/config.h]) + + dnl Check for programs + AC_PROG_CC +diff -rup ois-v1-3/demos/FFConsoleDemo.cpp patched/demos/FFConsoleDemo.cpp +--- ois-v1-3/demos/FFConsoleDemo.cpp 2010-03-31 23:38:04.000000000 -0400 ++++ patched/demos/FFConsoleDemo.cpp 2013-01-30 20:33:18.281393097 -0500 +@@ -7,6 +7,7 @@ + #include <ios> + #include <sstream> + #include <vector> ++#include <unistd.h> + + using namespace std; + +diff -rup ois-v1-3/demos/OISConsole.cpp patched/demos/OISConsole.cpp +--- ois-v1-3/demos/OISConsole.cpp 2010-08-15 18:51:34.000000000 -0400 ++++ patched/demos/OISConsole.cpp 2013-01-30 20:33:18.281393097 -0500 +@@ -12,6 +12,7 @@ + #include <iostream> + #include <vector> + #include <sstream> ++#include <unistd.h> + + ////////////////////////////////////Needed Windows Headers//////////// + #if defined OIS_WIN32_PLATFORM +diff -rup ois-v1-3/src/linux/LinuxForceFeedback.cpp patched/src/linux/LinuxForceFeedback.cpp +--- ois-v1-3/src/linux/LinuxForceFeedback.cpp 2010-03-31 23:06:55.000000000 -0400 ++++ patched/src/linux/LinuxForceFeedback.cpp 2013-01-30 20:33:18.284726761 -0500 +@@ -26,6 +26,7 @@ restrictions: + #include <cstdlib> + #include <errno.h> + #include <memory.h> ++#include <unistd.h> + + using namespace OIS; + +diff -rup ois-v1-3/src/linux/LinuxJoyStickEvents.cpp patched/src/linux/LinuxJoyStickEvents.cpp +--- ois-v1-3/src/linux/LinuxJoyStickEvents.cpp 2010-07-25 21:28:41.000000000 -0400 ++++ patched/src/linux/LinuxJoyStickEvents.cpp 2013-01-30 20:33:18.284726761 -0500 +@@ -33,6 +33,7 @@ restrictions: + #include <fcntl.h> //Needed to Open a file descriptor + #include <cassert> + #include <linux/input.h> ++#include <unistd.h> + + + #include <sstream> diff --git a/talimatname/genel/o/ois/talimat b/talimatname/genel/o/ois/talimat new file mode 100644 index 000000000..6ef5511c2 --- /dev/null +++ b/talimatname/genel/o/ois/talimat @@ -0,0 +1,25 @@ +# Tanım: Nesneye Yönelik Giriş Sistemi +# URL: http://sourceforge.net/projects/wgois +# Paketçi: Cihan_Alkan +# Gerekler: xorg-libxaw +# Grup: + +isim=ois +surum=1.3 +devir=1 +_oisver=${surum/./-} +kaynak=(https://downloads.sourceforge.net/project/wgois/Source%20Release/${surum}/ois_v${_oisver}.tar.gz + gcc47.patch) + +derle() { + + cd ${SRC}/${isim}-v${_oisver} + + patch -Np1 < ${SRC}/gcc47.patch + + chmod +x bootstrap + ./bootstrap + ./configure --prefix=/usr + make + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/o/okular/talimat b/talimatname/genel/o/okular/talimat new file mode 100644 index 000000000..2f558bba8 --- /dev/null +++ b/talimatname/genel/o/okular/talimat @@ -0,0 +1,24 @@ +# Tanım: PDF Belge görüntüleyici +# URL: http://www.kde.org +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: git kf5-extra-cmake-modules kf5-khtml kf5-threadweaver kf5-kactivities kf5-kdelibs4support kf5-kpty plasma-libkscreen freetype poppler-qt5 libspectre djvulibre qca-qt5 libkexiv2 chmlib zlib ebook-tools kf5-kdoctools phonon-qt5 +# Grup: kde + +isim=okular +surum=17.12.0 +devir=1 + +kaynak=(https://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DSYSCONF_INSTALL_DIR=/etc \ + -DPLUGIN_INSTALL_DIR=/usr/lib/qt5/plugins \ + -DLIB_INSTALL_DIR=lib \ + -Wno-dev + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/o/olsrd/talimat b/talimatname/genel/o/olsrd/talimat new file mode 100644 index 000000000..6cc6ac2ed --- /dev/null +++ b/talimatname/genel/o/olsrd/talimat @@ -0,0 +1,15 @@ +# Tanım: Optimized Link State Routing Protocol gerçeklemesi +# URL: http://www.olsr.org/mediawiki/index.php/Olsrd +# Paketçi: milisarge +# Gerekler: + +isim=olsrd +surum=0.9.6 +devir=1 +kaynak=(http://www.olsr.org/releases/0.9/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + make prefix=/usr + make libdir=/usr/lib/olsrd sbindir=/usr/bin DESTDIR=${PKG} install +} diff --git a/talimatname/genel/o/omnikey_ifdokccid/talimat b/talimatname/genel/o/omnikey_ifdokccid/talimat new file mode 100644 index 000000000..3da14a415 --- /dev/null +++ b/talimatname/genel/o/omnikey_ifdokccid/talimat @@ -0,0 +1,22 @@ +# Tanım: HID Global OMNIKEY CardMan Akıllı Kart okuyucu serisi için CCID sürücüsü +# URL: http://www.hidglobal.com/ +# Paketçi: Cihan Alkan +# Gerekler: pcsc-lite libusb + +isim=omnikey_ifdokccid +surum=4.2.8 +devir=1 + +kaynak=(http://www.hidglobal.com/sites/hidglobal.com/files/drivers/ifdokccid_linux_x86_64-v$surum.tar.gz) + +derle() { +cd $SRC/ifdokccid_linux_x86_64-v$surum + mkdir -p $PKG/usr/lib/pcsc/drivers + cp -r ifdokccid_linux_x86_64-v$surum.bundle $PKG/usr/lib/pcsc/drivers + mkdir -p $PKG/etc + install -m0600 omnikey.ini $PKG/etc/omnikey.ini + mkdir -p $PKG/etc/udev/rules.d + install -m0644 z98_omnikey.rules $PKG/etc/udev/rules.d/z98_omnikey.rules + mkdir -p $PKG/usr/lib/udev + install -m0744 ok_pcscd_hotplug.sh $PKG/usr/lib/udev/ok_pcscd_hotplug.sh +} diff --git a/talimatname/genel/o/opal/talimat b/talimatname/genel/o/opal/talimat new file mode 100644 index 000000000..1c3a1d288 --- /dev/null +++ b/talimatname/genel/o/opal/talimat @@ -0,0 +1,19 @@ +# Tanım: Çok sayıda telefon protokolünü normalleştirmek için C ++ sınıf kütüphanesi +# URL: http://ftp.gnu.org/opal +# Paketçi: milisarge +# Gerekler: ptlib + +isim=opal +surum=3.10.10 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${surum%.*}/$isim-$surum.tar.xz + http://www.linuxfromscratch.org/patches/blfs/svn/$isim-$surum-ffmpeg2-1.patch) + +derle() { +cd $isim-$surum +patch -Np1 -i ../$isim-$surum-ffmpeg2-1.patch +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/o/opam/talimat b/talimatname/genel/o/opam/talimat new file mode 100644 index 000000000..e917d1a3f --- /dev/null +++ b/talimatname/genel/o/opam/talimat @@ -0,0 +1,18 @@ +# Tanım: Ocaml paket yöneticisi. +# URL: http://opam.ocaml.org +# Paketçi: milisarge +# Gerekler: aspcud ocaml unzip + +isim=opam +surum=1.2.2 +devir=1 +kaynak=(https://github.com/ocaml/opam/releases/download/$surum/opam-full-$surum.tar.gz::$isim-$surum.tar.xz) + +derle() { + cd "opam-full-$surum" + ./configure --prefix=/usr + make -j1 lib-ext all + make -C "$SRC/opam-full-$surum" DESTDIR="$PKG" install +} + + diff --git a/talimatname/genel/o/open-vm-tools-kernel/0001-Fix-vmxnet-module-on-kernels-3.16.patch b/talimatname/genel/o/open-vm-tools-kernel/0001-Fix-vmxnet-module-on-kernels-3.16.patch new file mode 100644 index 000000000..b7145d11b --- /dev/null +++ b/talimatname/genel/o/open-vm-tools-kernel/0001-Fix-vmxnet-module-on-kernels-3.16.patch @@ -0,0 +1,74 @@ +From 08836a47c56b47b658025e41a20027c5d915f836 Mon Sep 17 00:00:00 2001 +From: "Scott M. Kroll" <skroll@gmail.com> +Date: Fri, 15 Aug 2014 10:40:38 -0400 +Subject: [PATCH 1/3] Fix vmxnet module on kernels >= 3.16 + +* Add compat check for ethtool_ops in net_device struct. +* SET_ETHTOOL_OPS is no longer defined, but can be manually. +--- + open-vm-tools/modules/linux/shared/compat_netdevice.h | 4 ++++ + open-vm-tools/modules/linux/vmxnet/vmxnet.c | 13 ++++++++----- + 2 files changed, 12 insertions(+), 5 deletions(-) + +diff --git a/open-vm-tools/modules/linux/shared/compat_netdevice.h b/open-vm-tools/modules/linux/shared/compat_netdevice.h +index 3aec25b..a65d59b 100644 +--- a/open-vm-tools/modules/linux/shared/compat_netdevice.h ++++ b/open-vm-tools/modules/linux/shared/compat_netdevice.h +@@ -337,4 +337,8 @@ typedef netdev_features_t compat_netdev_features_t; + typedef u32 compat_netdev_features_t; + #endif + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0) || defined(SET_ETHTOOL_OPS) ++#define VMW_HAVE_ETHTOOL_OPS 1 ++#endif ++ + #endif /* __COMPAT_NETDEVICE_H__ */ +diff --git a/open-vm-tools/modules/linux/vmxnet/vmxnet.c b/open-vm-tools/modules/linux/vmxnet/vmxnet.c +index 33afb9b..40abde5 100644 +--- a/open-vm-tools/modules/linux/vmxnet/vmxnet.c ++++ b/open-vm-tools/modules/linux/vmxnet/vmxnet.c +@@ -279,8 +279,7 @@ vmxnet_change_mtu(struct net_device *dev, int new_mtu) + + #endif + +- +-#ifdef SET_ETHTOOL_OPS ++#ifdef VMW_HAVE_ETHTOOL_OPS + /* + *---------------------------------------------------------------------------- + * +@@ -526,7 +525,7 @@ vmxnet_ethtool_ops = { + }; + + +-#else /* !defined(SET_ETHTOOL_OPS) */ ++#else /* !defined(VMW_HAVE_ETHTOOL_OPS) */ + + + /* +@@ -739,7 +738,7 @@ vmxnet_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) + } + return -EOPNOTSUPP; + } +-#endif /* SET_ETHTOOL_OPS */ ++#endif /* !defined(VMW_HAVE_ETHTOOL_OPS) */ + + + /* +@@ -1142,8 +1141,12 @@ vmxnet_probe_device(struct pci_dev *pdev, // IN: vmxnet PCI device + dev->watchdog_timeo = VMXNET_WATCHDOG_TIMEOUT; + #endif + +-#ifdef SET_ETHTOOL_OPS ++#ifdef VMW_HAVE_ETHTOOL_OPS ++# ifdef SET_ETHTOOL_OPS + SET_ETHTOOL_OPS(dev, &vmxnet_ethtool_ops); ++# else ++ dev->ethtool_ops = &vmxnet_ethtool_ops; ++# endif + #else + dev->do_ioctl = vmxnet_ioctl; + #endif +-- +2.3.4 + diff --git a/talimatname/genel/o/open-vm-tools-kernel/0004-Support-backing-dev-info-kernel-4.0.patch b/talimatname/genel/o/open-vm-tools-kernel/0004-Support-backing-dev-info-kernel-4.0.patch new file mode 100644 index 000000000..bc74d1a9c --- /dev/null +++ b/talimatname/genel/o/open-vm-tools-kernel/0004-Support-backing-dev-info-kernel-4.0.patch @@ -0,0 +1,86 @@ +From 122f184d946a007a7ba3ae68386a20f33ed62e1e Mon Sep 17 00:00:00 2001 +From: lotan <lotan@gmx.de> +Date: Mon, 8 Jun 2015 14:20:06 +0200 +Subject: [PATCH] Support backing dev info kernel 4.0. + +--- + open-vm-tools/modules/linux/vmhgfs/filesystem.c | 16 ++++++++++++++++ + open-vm-tools/modules/linux/vmhgfs/module.h | 4 ++++ + open-vm-tools/modules/linux/vmhgfs/super.c | 3 +++ + 3 files changed, 23 insertions(+) + +diff --git a/open-vm-tools/modules/linux/vmhgfs/filesystem.c b/open-vm-tools/modules/linux/vmhgfs/filesystem.c +index 10dd8ab..3148091 100644 +--- a/open-vm-tools/modules/linux/vmhgfs/filesystem.c ++++ b/open-vm-tools/modules/linux/vmhgfs/filesystem.c +@@ -398,8 +398,21 @@ HgfsReadSuper(struct super_block *sb, // OUT: Superblock object + return PTR_ERR(si); + } + HGFS_SET_SB_TO_COMMON(sb, si); ++ ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 0, 0) ++ memset(&si->bdi, 0, sizeof(si->bdi)); ++ result = bdi_setup_and_register(&si->bdi, "vmhgfs"); ++ if (result) { ++ kfree(si->shareName); ++ kfree(si); ++ } ++#endif ++ + sb->s_magic = HGFS_SUPER_MAGIC; + sb->s_op = &HgfsSuperOperations; ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 0, 0) ++ sb->s_bdi = &si->bdi; ++#endif + + #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 38) + sb->s_d_op = &HgfsDentryOperations; +@@ -439,6 +452,9 @@ HgfsReadSuper(struct super_block *sb, // OUT: Superblock object + exit: + if (result) { + dput(rootDentry); ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 0, 0) ++ bdi_destroy(&si->bdi); ++#endif + kfree(si->shareName); + kfree(si); + } +diff --git a/open-vm-tools/modules/linux/vmhgfs/module.h b/open-vm-tools/modules/linux/vmhgfs/module.h +index b673dc1..f3eeffc 100644 +--- a/open-vm-tools/modules/linux/vmhgfs/module.h ++++ b/open-vm-tools/modules/linux/vmhgfs/module.h +@@ -29,6 +29,7 @@ + #include "driver-config.h" + + #include <asm/atomic.h> ++#include <linux/backing-dev.h> + #include "compat_fs.h" + #include "compat_semaphore.h" + #include "compat_slab.h" +@@ -144,6 +145,9 @@ typedef struct HgfsSuperInfo { + char *shareName; /* Mounted share name. */ + size_t shareNameLen; /* To avoid repeated strlen() calls. */ + uint32 mntFlags; /* HGFS mount flags */ ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 0, 0) ++ struct backing_dev_info bdi; ++#endif + } HgfsSuperInfo; + + /* +diff --git a/open-vm-tools/modules/linux/vmhgfs/super.c b/open-vm-tools/modules/linux/vmhgfs/super.c +index 04a2192..41f8713 100644 +--- a/open-vm-tools/modules/linux/vmhgfs/super.c ++++ b/open-vm-tools/modules/linux/vmhgfs/super.c +@@ -152,6 +152,9 @@ HgfsPutSuper(struct super_block *sb) // IN: The superblock + + si = HGFS_SB_TO_COMMON(sb); + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 0, 0) ++ bdi_destroy(&si->bdi); ++#endif + kfree(si->shareName); + kfree(si); + } +-- +2.3.6 + diff --git a/talimatname/genel/o/open-vm-tools-kernel/0005-Remove-new_sync-for-Linux-4.1.patch b/talimatname/genel/o/open-vm-tools-kernel/0005-Remove-new_sync-for-Linux-4.1.patch new file mode 100644 index 000000000..f51278be5 --- /dev/null +++ b/talimatname/genel/o/open-vm-tools-kernel/0005-Remove-new_sync-for-Linux-4.1.patch @@ -0,0 +1,27 @@ +From fbb6fe5ec57a2a0a9464ec5c433fc18793ebb05f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?D=C4=81vis?= <davispuh@gmail.com> +Date: Thu, 17 Sep 2015 18:05:29 +0300 +Subject: [PATCH] Remove new_sync for Linux >= 4.1 + +--- + open-vm-tools/modules/linux/vmhgfs/file.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/open-vm-tools/modules/linux/vmhgfs/file.c b/open-vm-tools/modules/linux/vmhgfs/file.c +index 0bc5ee3..ada3eee 100644 +--- a/open-vm-tools/modules/linux/vmhgfs/file.c ++++ b/open-vm-tools/modules/linux/vmhgfs/file.c +@@ -169,8 +169,10 @@ struct file_operations HgfsFileFileOperations = { + .flush = HgfsFlush, + #if defined VMW_USE_AIO + #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0) ++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 1, 0) + .read = new_sync_read, + .write = new_sync_write, ++#endif // LINUX_VERSION_CODE < KERNEL_VERSION(4, 1, 0) + .read_iter = HgfsFileRead, + .write_iter = HgfsFileWrite, + #else // LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0) +--- +2.5.2 + diff --git a/talimatname/genel/o/open-vm-tools-kernel/0006-vmhgfs-support-linux-4.2.x-kernel.patch b/talimatname/genel/o/open-vm-tools-kernel/0006-vmhgfs-support-linux-4.2.x-kernel.patch new file mode 100644 index 000000000..4fa315cb5 --- /dev/null +++ b/talimatname/genel/o/open-vm-tools-kernel/0006-vmhgfs-support-linux-4.2.x-kernel.patch @@ -0,0 +1,93 @@ +From b3a634a491da35d47a5e6e6120a21cba514fc3ec Mon Sep 17 00:00:00 2001 +From: JackM +Date: Wed, 30 Sep 2015 23:16:40 +0300 +Subject: [PATCH] vmhgfs support linux 4.2.x kernel + +--- + modules/linux/vmhgfs/link.c | 30 +++++++++++++++++++++++++----- + 1 file changed, 25 insertions(+), 5 deletions(-) + +diff --git a/open-vm-tools/modules/linux/vmhgfs/link.c b/open-vm-tools/modules/linux/vmhgfs/link.c +index 06f693b..72e97ff 100644 +--- a/open-vm-tools/modules/linux/vmhgfs/link.c ++++ b/open-vm-tools/modules/linux/vmhgfs/link.c +@@ -35,7 +35,9 @@ + #include "vm_assert.h" + + /* HGFS symlink operations. */ +-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) ++static void *HgfsFollowlink(struct dentry *dentry, void **cookie, struct nameidata *nd); ++#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) + static void *HgfsFollowlink(struct dentry *dentry, + struct nameidata *nd); + #else +@@ -45,7 +47,10 @@ static int HgfsFollowlink(struct dentry *dentry, + static int HgfsReadlink(struct dentry *dentry, + char __user *buffer, + int buflen); +-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) ++static void HgfsPutlink(struct dentry *dentry, ++ void *cookie); ++#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) + static void HgfsPutlink(struct dentry *dentry, + struct nameidata *nd, + void *cookie); +@@ -85,7 +90,9 @@ struct inode_operations HgfsLinkInodeOperations = { + *---------------------------------------------------------------------- + */ + +-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) ++static void *HgfsFollowlink(struct dentry *dentry, void **cookie, struct nameidata *nd) ++#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) + static void * + HgfsFollowlink(struct dentry *dentry, // IN: Dentry containing link + struct nameidata *nd) // OUT: Contains target dentry +@@ -124,7 +131,11 @@ HgfsFollowlink(struct dentry *dentry, // IN: Dentry containing link + } else { + LOG(6, (KERN_DEBUG "VMware hgfs: %s: calling nd_set_link %s\n", + __func__, fileName)); ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) ++ *cookie = fileName; ++#else + nd_set_link(nd, fileName); ++#endif + } + } + out: +@@ -219,7 +230,10 @@ HgfsReadlink(struct dentry *dentry, // IN: Dentry containing link + *---------------------------------------------------------------------- + */ + +-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) ++static void HgfsPutlink(struct dentry *dentry, ++ void *cookie) ++#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) + static void + HgfsPutlink(struct dentry *dentry, // dentry + struct nameidata *nd, // lookup name information +@@ -235,11 +249,17 @@ HgfsPutlink(struct dentry *dentry, // dentry + LOG(6, (KERN_DEBUG "VMware hgfs: %s: put for %s\n", + __func__, dentry->d_name.name)); + +- fileName = nd_get_link(nd); ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) ++ fileName = cookie; ++#else ++ fileName = nd_get_link(nd); ++#endif + if (!IS_ERR(fileName)) { + LOG(6, (KERN_DEBUG "VMware hgfs: %s: putting %s\n", + __func__, fileName)); + kfree(fileName); ++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 2, 0) + nd_set_link(nd, NULL); ++#endif + } + } +-- +2.5.0.windows.1 + diff --git a/talimatname/genel/o/open-vm-tools-kernel/talimat b/talimatname/genel/o/open-vm-tools-kernel/talimat new file mode 100644 index 000000000..92fe65bc6 --- /dev/null +++ b/talimatname/genel/o/open-vm-tools-kernel/talimat @@ -0,0 +1,33 @@ +# Tanım: Open Virtual Machine Tools kernel modules +# URL: http://open-vm-tools.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: kernel +# Grup: + +isim=open-vm-tools-kernel +_isim=open-vm-tools +surum=10.0.0 +_altsurum=3000743 +_surum="${surum}-${_altsurum}" +_tamisim="${_isim}-${_surum}" +_dkms_surum='2015.01.29' +devir=1 +kaynak=(http://downloads.sourceforge.net/open-vm-tools/open-vm-tools-10.0.0-3000743.tar.gz + 0001-Fix-vmxnet-module-on-kernels-3.16.patch + 0004-Support-backing-dev-info-kernel-4.0.patch + 0005-Remove-new_sync-for-Linux-4.1.patch + 0006-vmhgfs-support-linux-4.2.x-kernel.patch) + +derle() { + patch -d "$SRC/${_tamisim}" -Np2 -i "$SRC/0001-Fix-vmxnet-module-on-kernels-3.16.patch" + patch -d "$SRC/${_tamisim}" -Np2 -i "$SRC/0004-Support-backing-dev-info-kernel-4.0.patch" + patch -d "$SRC/${_tamisim}" -Np2 -i "$SRC/0005-Remove-new_sync-for-Linux-4.1.patch" + patch -d "$SRC/${_tamisim}" -Np2 -i "$SRC/0006-vmhgfs-support-linux-4.2.x-kernel.patch" + cd "$SRC/${_tamisim}" + [ -f /usr/src/linux-$(uname -r)/vmlinux ] && rm /usr/src/linux-$(uname -r)/vmlinux + sed -i "s/${_dkms_surum}/${surum}/g" ./modules/linux/dkms.sh + sh ./modules/linux/dkms.sh ./ "${PKG}/usr/src" + for _module in {"vmblock","vmci","vmsync","vsock"}; do + rm -rf "${PKG}/usr/src/${_isim}-${surum}/${_module}" + done +} diff --git a/talimatname/genel/o/open-vm-tools/0001-Set-X11-as-the-backend-for-gtk3-of-open-vm-tools.patch b/talimatname/genel/o/open-vm-tools/0001-Set-X11-as-the-backend-for-gtk3-of-open-vm-tools.patch new file mode 100644 index 000000000..61811419d --- /dev/null +++ b/talimatname/genel/o/open-vm-tools/0001-Set-X11-as-the-backend-for-gtk3-of-open-vm-tools.patch @@ -0,0 +1,83 @@ +From c5bc784da611ee929e0da7c20a410e03e6540613 Mon Sep 17 00:00:00 2001 +From: Oliver Kurth <okurth@vmware.com> +Date: Fri, 26 Jan 2018 15:04:36 -0800 +Subject: [PATCH] Set X11 as the backend for gtk3 of open-vm-tools + +Open-vm-tools defaults to gtk3. For distros like Fedora 27, Wayland is +the default display server. With no restriction on the backend, plugins +will try to use Wayland as the backend of Gtk+3. As a result, +gdk_display_get_default() returns a Wayland display; +gdk_display_get_default_group() also returns a Wayland window. Applying +GDK_WINDOW_XID() on the Wayland window will result in the crash reported +on recent Linux releases that default to a Wayland display server. + +As X11-specific code is widely used in tools plugins, a migratation to +Wayland in the short term is not possible. So, as a compromised solution, +plugins can be forced to run on XWayland, which is the compatible mode +of Wayland for legacy X11 clients. + +gdk_set_allowed_backends() only applies when flag GTK3 is defined, and Gtk +version cwgreater than 3.10. +--- + open-vm-tools/services/plugins/desktopEvents/x11Lock.c | 12 +++++++++++- + open-vm-tools/services/plugins/dndcp/copyPasteDnDX11.cpp | 14 +++++++++++++- + 2 files changed, 24 insertions(+), 2 deletions(-) + +diff --git a/open-vm-tools/services/plugins/desktopEvents/x11Lock.c b/open-vm-tools/services/plugins/desktopEvents/x11Lock.c +index 572234ac..613b6946 100644 +--- a/open-vm-tools/services/plugins/desktopEvents/x11Lock.c ++++ b/open-vm-tools/services/plugins/desktopEvents/x11Lock.c +@@ -1,5 +1,5 @@ + /********************************************************* +- * Copyright (C) 2010-2016 VMware, Inc. All rights reserved. ++ * Copyright (C) 2010-2018 VMware, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as published +@@ -364,6 +364,16 @@ X11Lock_Init(ToolsAppCtx *ctx, + g_set_prgname(VMUSER_TITLE); + argv[0] = VMUSER_TITLE; + ++#if GTK_MAJOR_VERSION > 3 || (GTK_MAJOR_VERSION == 3 && GTK_MINOR_VERSION >= 10) ++ /* ++ * On recent distros, Wayland is the default display server. If the obtained ++ * display or window is a wayland one, applying X11 specific functions on them ++ * will result in crashes. Before migrating the X11 specific code to Wayland, ++ * force using X11 as the backend of Gtk+3. gdk_set_allowed_backends() is ++ * introduced since Gtk+3.10 and Wayland is supported from Gtk+3.10. ++ */ ++ gdk_set_allowed_backends("x11"); ++#endif + /* XXX: is calling gtk_init() multiple times safe? */ + gtk_init(&argc, (char ***) &argv); + +diff --git a/open-vm-tools/services/plugins/dndcp/copyPasteDnDX11.cpp b/open-vm-tools/services/plugins/dndcp/copyPasteDnDX11.cpp +index fffdc402..4c2f3d8d 100644 +--- a/open-vm-tools/services/plugins/dndcp/copyPasteDnDX11.cpp ++++ b/open-vm-tools/services/plugins/dndcp/copyPasteDnDX11.cpp +@@ -1,5 +1,5 @@ + /********************************************************* +- * Copyright (C) 2010-2016 VMware, Inc. All rights reserved. ++ * Copyright (C) 2010-2018 VMware, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as published +@@ -211,6 +211,18 @@ gboolean + CopyPasteDnDX11::Init(ToolsAppCtx *ctx) + { + TRACE_CALL(); ++ ++#if GTK_MAJOR_VERSION > 3 || (GTK_MAJOR_VERSION == 3 && GTK_MINOR_VERSION >= 10) ++ /* ++ * On recent distros, Wayland is the default display server. If the obtained ++ * display or window is a wayland one, applying X11 specific functions on them ++ * will result in crashes. Before migrating the X11 specific code to Wayland, ++ * force using X11 as the backend of Gtk+3. gdk_set_allowed_backends() is ++ * introduced since Gtk+3.10 and Wayland is supported from Gtk+3.10. ++ */ ++ gdk_set_allowed_backends("x11"); ++#endif ++ + CopyPasteDnDWrapper *wrapper = CopyPasteDnDWrapper::GetInstance(); + + ASSERT(ctx); diff --git a/talimatname/genel/o/open-vm-tools/README b/talimatname/genel/o/open-vm-tools/README new file mode 100644 index 000000000..3de139860 --- /dev/null +++ b/talimatname/genel/o/open-vm-tools/README @@ -0,0 +1,45 @@ +README for open-vm-tools + +INTRODUCTION + +This port contains VMware Tools. You should install it if you are running CRUX +as a virtual machine under the VMware hypervisor. +This has only been tested on single core 32-bit virtual machines. +The VMware filesystem (vmhgfs) has not been tested. +Feedback is appreciated. + +POST-INSTALL + +1. Run the post-install script. +2. Add vmtools to the list of services to start at boot time. + +FAQ + +Q: What is the difference between this and the official commercial VMware Tools + distribution? + +A: This code comes from the GPL release of VMware's tools, so in theory + it should work just as the commercial version. + That said, since this port is intended to be used on a server environment, + all the desktop utilities have been removed (eg: no GUI applications). + +Q: Where is the driver for the VMware network adapter and disk controller? + +A: Some device drivers are already included in the Linux kernel and disabled + in this port. + Please enable these kernel options: + * CONFIG_VMWARE_BALLOON + * CONFIG_VMWARE_PVSCSI + * CONFIG_VMXNET3 + If your boot filesystem is connected to a paravirtual SCSI interface make + sure CONFIG_VMWARE_PVSCSI is set as builtin instead of module. + + +Q: Why do I have to shutdown/reboot twice my VM from VMware before it reacts? + +A: Did you run the post-install script? + + +-- +If you have any feedback/problems please email me: +Alan Mizrahi, alan at mizrahi dot com dot ve diff --git a/talimatname/genel/o/open-vm-tools/talimat b/talimatname/genel/o/open-vm-tools/talimat new file mode 100644 index 000000000..07433c0d2 --- /dev/null +++ b/talimatname/genel/o/open-vm-tools/talimat @@ -0,0 +1,32 @@ +# Tanım: VMWare Araçları +# URL: http://open-vm-tools.sf.net/ +# Paketçi: milisarge +# Gerekler: chrpath libdnet glib libmspack cunit xorg-libx11 xorg-libxext xorg-libxinerama xorg-libxi xorg-libxrender xorg-libxrandr xorg-libxtst gdk-pixbuf gtk3 gtkmm3 + +isim=open-vm-tools +surum=10.2.0 +devir=1 +kaynak=(https://github.com/vmware/open-vm-tools/archive/stable-${surum/_/-}.tar.gz::open-vm-tools-$surum.tar.gz + 0001-Set-X11-as-the-backend-for-gtk3-of-open-vm-tools.patch) + +derle(){ + cd "$SRC/$isim-"*"/open-vm-tools" + patch -Np2 < "${SRC}"/0001-Set-X11-as-the-backend-for-gtk3-of-open-vm-tools.patch + cd "$SRC/$isim-"*"/open-vm-tools" + autoreconf -vi + sh ./configure --prefix=/usr \ + --sbindir=/usr/bin \ + --sysconfdir=/etc \ + --with-udev-rules-dir=/usr/lib/udev/rules.d \ + --without-xmlsecurity \ + --without-kernel-modules + make + cd "$SRC/$isim-"*"/open-vm-tools" + make install DESTDIR="$PKG" + chmod 7755 "$PKG"/usr/bin/vmware-user-suid-wrapper + # install vmware-xdg-detect-de + install -D -m 0755 scripts/common/vmware-xdg-detect-de "$PKG"/usr/bin/vmware-xdg-detect-de + # We don't want a symlink in /sbin + rm "$PKG"/sbin/mount.vmhgfs + rmdir "$PKG"/sbin +} diff --git a/talimatname/genel/o/open-vm-tools/tools.conf b/talimatname/genel/o/open-vm-tools/tools.conf new file mode 100644 index 000000000..7fe284131 --- /dev/null +++ b/talimatname/genel/o/open-vm-tools/tools.conf @@ -0,0 +1,11 @@ +[logging] +log=syslog +level=warning +vmsvc.level=warning +vmsvc.data=/var/log/vmware-vmsvc.log +vmusr.handler=syslog +vmusr.level=warning +vmusr.data=/var/log/vmware-vmsvc.log.user + +[vmsvc] +disable-tools-surum=true diff --git a/talimatname/genel/o/open-vm-tools/vmtools.rc b/talimatname/genel/o/open-vm-tools/vmtools.rc new file mode 100755 index 000000000..71db6e4f4 --- /dev/null +++ b/talimatname/genel/o/open-vm-tools/vmtools.rc @@ -0,0 +1,77 @@ +#!/bin/bash + +NAME=vmtools +USER=root +CONFIG="/etc/vmware-tools/tools.conf" +RUNDIR="/var/run" +PIDFILE="$RUNDIR/vmtoolsd.pid" +STARTCMD="/usr/bin/vmtoolsd --config=$CONFIG --background=$PIDFILE" +STOPCMD="" +STOPTIMEOUT=300 + +function getpid() { + if [ -z "$PIDFILE" ]; then + pid="$(pgrep -xfn "$STARTCMD")" + else + if [ -f "$PIDFILE" ]; then + pid=$(< $PIDFILE) + if [ ! -d /proc/"$pid" ]; then + echo "$NAME: removing stale pidfile $PIDFILE" >&2 + rm -f "$PIDFILE" + unset pid + fi + fi + fi + echo "$pid" +} + +case $1 in +start) + pid=$(getpid) + install -d -m 755 -o $USER $RUNDIR || exit 1 + if [ -n "$pid" ]; then + echo "$NAME already running with pid $pid" >&2 + exit 1 + fi + eval "$STARTCMD" + ;; +stop) + pid=$(getpid) + if [ -n "$pid" ]; then + if [ -n "$STOPCMD" ]; then + eval "$STOPCMD" + else + kill "$pid" + fi + t=$(printf '%(%s)T' -1) + tend=$((t+STOPTIMEOUT)) + while [ -d /proc/$pid -a $t -lt $tend ]; do + sleep 0.5 + t=$(printf '%(%s)T' -1) + done + if [ -d /proc/"$pid" ]; then + echo "$NAME still running with pid $pid" >&2 + else + [ -n "$PIDFILE" ] && rm -f "$PIDFILE" + fi + else + echo "$NAME is not running" >&2 + fi + ;; +restart) + $0 stop + $0 start + ;; +status) + pid=$(getpid) + if [ -n "$pid" ]; then + echo "$NAME is running with pid $pid" + else + echo "$NAME is not running" + fi + ;; +*) + echo "usage: $0 [start|stop|restart|status]" + ;; +esac + diff --git a/talimatname/genel/o/openal/talimat b/talimatname/genel/o/openal/talimat new file mode 100644 index 000000000..1d07dd336 --- /dev/null +++ b/talimatname/genel/o/openal/talimat @@ -0,0 +1,24 @@ +# Tanım: OpenAL Soft, OpenAL 3D ses API'sinin LGPL lisanslı, çapraz platformlu bir yazılım uygulamasıdır. +# URL: http://kcat.strangesoft.net/openal.html +# Paketçi: milisarge +# Gerekler: alsa-lib cmake + +isim=openal +surum=1.16.0 +devir=1 +kaynak=(http://kcat.strangesoft.net/openal-releases/openal-soft-$surum.tar.bz2 ) + +derle() { +cd openal-soft-$surum/build + +cmake ../ \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DOSS=OFF \ + -DEXAMPLES=OFF \ + -DCMAKE_BUILD_TYPE=Release #-DCMAKE_VERBOSE_MAKEFILE=true + +make +make DESTDIR=$PKG install +} + + diff --git a/talimatname/genel/o/openboard/openboard.desktop b/talimatname/genel/o/openboard/openboard.desktop new file mode 100644 index 000000000..c119668bf --- /dev/null +++ b/talimatname/genel/o/openboard/openboard.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Name=OpenBoard +Comment=Okullar ve üniversiteler için interaktif beyaz tahta yazılımı +Exec=openboard %f +Icon=/opt/openboard/OpenBoard.png +StartupNotify=true +Terminal=false +MimeType=application/ubz +Categories=Education; diff --git a/talimatname/genel/o/openboard/qchar.patch b/talimatname/genel/o/openboard/qchar.patch new file mode 100644 index 000000000..c9f6bff1b --- /dev/null +++ b/talimatname/genel/o/openboard/qchar.patch @@ -0,0 +1,12 @@ +diff -u -ubr a/src/core/UBTextTools.cpp b/src/core/UBTextTools.cpp +--- a/src/core/UBTextTools.cpp 2017-05-09 15:59:42.177965830 +0200 ++++ b/src/core/UBTextTools.cpp 2017-05-09 16:00:08.547747097 +0200 +@@ -34,7 +34,7 @@ + + + for(int i = 0; i < _html.length(); i+=1){ +- if(_html.at(i) != '\0') ++ if(_html.at(i) != QChar('\0')) + clean.append(_html.at(i)); + } + return clean; diff --git a/talimatname/genel/o/openboard/qtmultimediadefs.patch b/talimatname/genel/o/openboard/qtmultimediadefs.patch new file mode 100644 index 000000000..76469af18 --- /dev/null +++ b/talimatname/genel/o/openboard/qtmultimediadefs.patch @@ -0,0 +1,13 @@ +diff -u -ubr a/src/domain/UBGraphicsMediaItemDelegate.h b/src/domain/UBGraphicsMediaItemDelegate.h +--- a/src/domain/UBGraphicsMediaItemDelegate.h 2017-05-09 16:15:51.919921697 +0200 ++++ b/src/domain/UBGraphicsMediaItemDelegate.h 2017-05-09 16:08:00.763830080 +0200 +@@ -32,7 +32,8 @@ + + #include <QtGui> + #include <QTimer> +-#include <QtMultimedia> ++//#include <QtMultimedia> ++#include <QMediaPlayer> + + #include "core/UB.h" + #include "UBGraphicsItemDelegate.h" diff --git a/talimatname/genel/o/openboard/ssl10.patch b/talimatname/genel/o/openboard/ssl10.patch new file mode 100644 index 000000000..e5acf0286 --- /dev/null +++ b/talimatname/genel/o/openboard/ssl10.patch @@ -0,0 +1,19 @@ +--- a/OpenBoard.pro 2017-02-26 00:44:23.000000000 +0100 ++++ b/OpenBoard.pro 2017-05-09 15:58:37.448502744 +0200 +@@ -44,6 +44,7 @@ + QT += core + + INCLUDEPATH += src ++INCLUDEPATH = "/usr/include/openssl-1.0" + $${INCLUDEPATH} + + include($$THIRD_PARTY_PATH/libs.pri) + include(src/adaptors/adaptors.pri) +@@ -400,7 +401,7 @@ + + linux-g++* { + CONFIG += link_prl +- LIBS += -lcrypto ++ LIBS += -l:libcrypto.so.1.0.0 + #LIBS += -lprofiler + LIBS += -lX11 + QMAKE_CFLAGS += -fopenmp diff --git a/talimatname/genel/o/openboard/talimat b/talimatname/genel/o/openboard/talimat new file mode 100644 index 000000000..97e0f93bc --- /dev/null +++ b/talimatname/genel/o/openboard/talimat @@ -0,0 +1,67 @@ +# Tanım: Okullar ve üniversiteler için interaktif beyaz tahta yazılımı +# URL: http://openboard.ch/index.en.html +# Paketçi: Cihan_Alkan +# Gerekler: qt5 libpaper qt5-webkit +# Grup: eğitim + +isim=openboard +surum=1.3.6 +devir=1 + +kaynak=(https://github.com/OpenBoard-org/OpenBoard/archive/v$surum.tar.gz::$isim-$surum.tar.gz + https://github.com/OpenBoard-org/OpenBoard-ThirdParty/archive/master.tar.gz::OpenBoard-ThirdParty-master.tar.gz + ssl10.patch + qchar.patch + qtmultimediadefs.patch + openboard.desktop) + + +derle() { + + rm -rf $SRC/OpenBoard-ThirdParty + mv $SRC/OpenBoard-ThirdParty-master $SRC/OpenBoard-ThirdParty + + cd $SRC/OpenBoard-$surum + patch -p1 < $SRC/ssl10.patch + patch -p1 < $SRC/qchar.patch + patch -p1 < $SRC/qtmultimediadefs.patch + cd $SRC/OpenBoard-ThirdParty + + cd freetype + qmake-qt5 freetype.pro -spec linux-g++ + make + cd .. + + cd quazip + qmake-qt5 quazip.pro -spec linux-g++ + make + cd .. + + cd xpdf/xpdf-3.04 + ./configure --with-freetype2-library="../../freetype/lib/linux" --with-freetype2-includes="../../freetype/freetype-2.6.1/include" + cd .. + qmake-qt5 xpdf.pro -spec linux-g++ + make + cd .. + + cd "$SRC/OpenBoard-$surum" + qmake-qt5 OpenBoard.pro -spec linux-g++ + make + + mkdir -p $PKG/opt/openboard + + for i in customizations etc i18n library; do + cp -rp $SRC/OpenBoard-$surum/resources/$i $PKG/opt/openboard; + done + + cp -rp $SRC/OpenBoard-$surum/resources/images/OpenBoard.png $PKG/opt/openboard/ + cp -rp build/linux/release/product/OpenBoard $PKG/opt/openboard/ + + mkdir -p $PKG/usr/share/applications + cp -rp $SRC/openboard.desktop $PKG/usr/share/applications + + mkdir -p $PKG/usr/bin + ln -s /opt/openboard/OpenBoard $PKG/usr/bin/openboard + /usr/lib/qt5/bin/lrelease $PKG/opt/openboard/i18n/OpenBoard_tr.ts -qm $PKG/opt/openboard/i18n/OpenBoard_tr.qm +} + diff --git a/talimatname/genel/o/openbox/openbox.kur-kos b/talimatname/genel/o/openbox/openbox.kur-kos new file mode 100755 index 000000000..f6a382286 --- /dev/null +++ b/talimatname/genel/o/openbox/openbox.kur-kos @@ -0,0 +1 @@ +echo "export TERM='xterm' " >> /root/.bashrc diff --git a/talimatname/genel/o/openbox/openbox.xinitrc b/talimatname/genel/o/openbox/openbox.xinitrc new file mode 100644 index 000000000..485218d82 --- /dev/null +++ b/talimatname/genel/o/openbox/openbox.xinitrc @@ -0,0 +1,2 @@ +dbus-launch --exit-with-session & +openbox-session \ No newline at end of file diff --git a/talimatname/genel/o/openbox/talimat b/talimatname/genel/o/openbox/talimat new file mode 100644 index 000000000..156726ba9 --- /dev/null +++ b/talimatname/genel/o/openbox/talimat @@ -0,0 +1,24 @@ +# Tanım: Openbox oldukça yapılandırılabilir bir pencere yöneticisi. +# URL: http://openbox.org/wiki/Main_Page +# Paketçi: milisarge +# Gerekler: xorg pcre pango freetype libpng xorg-fontconfig harfbuzz dbus imlib2 librsvg startup-notification xcb-util libxcb libxml2 dbus + +isim=openbox +surum=3.6.1 +devir=1 + +kaynak=(http://openbox.org/dist/openbox/$isim-$surum.tar.gz \ + openbox.xinitrc) + +derle() +{ + cd $isim-$surum + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --docdir=/usr/share/doc/$isim-$surum + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/doc + install -D -m644 ../openbox.xinitrc $PKG/etc/X11/dm/openbox.xinitrc + +} diff --git a/talimatname/genel/o/opencolorio/talimat b/talimatname/genel/o/opencolorio/talimat new file mode 100644 index 000000000..0af01d68c --- /dev/null +++ b/talimatname/genel/o/opencolorio/talimat @@ -0,0 +1,21 @@ +# Tanım: Görsel efektler ve animasyon için bir renk yönetimi çerçevesi +# URL: http://opencolorio.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: python cmake + + +isim=opencolorio +surum=1.0.9 +devir=1 + +kaynak=(https://github.com/imageworks/OpenColorIO/archive/v$surum.tar.gz) + +derle() { +cd OpenColorIO-$surum +mkdir build +cd build + +cmake -DCMAKE_INSTALL_PREFIX=/usr .. +make +make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/o/openconnect/talimat b/talimatname/genel/o/openconnect/talimat new file mode 100644 index 000000000..638f85b67 --- /dev/null +++ b/talimatname/genel/o/openconnect/talimat @@ -0,0 +1,21 @@ +# Tanım: SSL VPN istemcisi. +# URL: http://infradead.org/openconnect +# Paketçi: milisarge +# Gerekler: libxml2 openssl pkg-config vpnc zlib + +isim=openconnect +surum=7.06 +devir=1 +kaynak=(ftp://ftp.infradead.org/pub/$isim/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + + ./configure --prefix=/usr \ + --bindir=/usr/bin \ + --mandir=/usr/share/man \ + --disable-static + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/o/opencore-amr/talimat b/talimatname/genel/o/opencore-amr/talimat new file mode 100644 index 000000000..53f4b276c --- /dev/null +++ b/talimatname/genel/o/opencore-amr/talimat @@ -0,0 +1,17 @@ +# Tanım: Adaptive Multi Rate (AMR) konuşma codec'inin açık kaynak uygulaması +# URL: http://opencore-amr.sourceforge.net/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: + +isim=opencore-amr +surum=0.1.3 +devir=1 + +kaynak=(http://downloads.sourceforge.net/sourceforge/$isim/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --disable-static + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/o/openct/talimat b/talimatname/genel/o/openct/talimat new file mode 100644 index 000000000..66e9c1e6f --- /dev/null +++ b/talimatname/genel/o/openct/talimat @@ -0,0 +1,29 @@ +# Tanım: Implements drivers for several smart card readers +# URL: https://github.com/OpenSC/openct/ +# Paketçi: milisarge +# Gerekler: doxygen pcsc-lite libusb-compat + +isim=openct +surum=0.6.20 +devir=1 +kaynak=(https://github.com/OpenSC/openct/archive/openct-$surum.tar.gz + udev-sleep.patch) + +derle() { + cd $isim-$isim-$surum + patch -p1 -i "${SRC}/udev-sleep.patch" + ./bootstrap + ./configure --prefix=/usr \ + --sbindir=/usr/bin \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --with-udev=/usr/lib/udev \ + --enable-usb \ + --enable-pcsc \ + --disable-static + + make + install -d "$PKG"/etc + make DESTDIR="$PKG" install + install -D etc/openct.udev "$PKG"/usr/lib/udev/rules.d/95-openct.rules +} diff --git a/talimatname/genel/o/openct/udev-sleep.patch b/talimatname/genel/o/openct/udev-sleep.patch new file mode 100644 index 000000000..0e604be1f --- /dev/null +++ b/talimatname/genel/o/openct/udev-sleep.patch @@ -0,0 +1,11 @@ +--- openct-0.6.20/etc/openct.udev.in.orig 2012-06-01 10:50:32.419033188 +0300 ++++ openct-0.6.20/etc/openct.udev.in 2012-06-01 10:50:51.225616679 +0300 +@@ -22,7 +22,7 @@ + # 2010-01-06 removed, as latest udev doesn't know WAIT_FOR_ATTR any more. + + # sleep for 100ms - the wait_for_sysfs might not be enough +-PROGRAM="/bin/sleep 0.1" ++PROGRAM="/usr/bin/sleep 0.1" + + # ccid + ATTR{bInterfaceClass}=="0b", ATTR{bInterfaceSubClass}=="00", ATTR{bInterfaceProtocol}=="00", ATTRS{idVendor}=="?*" RUN+="@udevdir@/openct_usb /dev/$parent" diff --git a/talimatname/genel/o/opencv/talimat b/talimatname/genel/o/opencv/talimat new file mode 100644 index 000000000..04b81fcdb --- /dev/null +++ b/talimatname/genel/o/opencv/talimat @@ -0,0 +1,59 @@ +# Tanım: OpenCV (Açık Kaynaklı Bilgisayar Vizyon Kütüphanesi) açık kaynaklı bir bilgisayar görme ve makine öğrenme yazılımı kütüphanesi. +# URL: http://opencv.org/ +# Paketçi: milisarge +# Gerekler: libjpeg-turbo libtiff jasper libpng ffmpeg28 gstreamer xine-lib v4l-utils xorg-mesa python3-numpy python-numpy gtkglext libgphoto2 + +_pybin=python2 +_pydir=python2.7 + +isim=opencv +surum=3.3.0 +devir=2 + +kaynak=(http://downloads.sourceforge.net/opencvlibrary/$isim-$surum.zip + https://raw.githubusercontent.com/opencv/opencv_3rdparty/a62e20676a60ee0ad6581e217fe7e4bada3b95db/ippicv/ippicv_2017u2_lnx_intel64_20170418.tgz + https://github.com/opencv/opencv_contrib/archive/$surum.tar.gz::opencv_contrib-$surum.tar.gz) + +derle() { + cd $isim-$surum + + ipp_surum=ippicv_2017u2_lnx_intel64_20170418.tgz + ipp_file=$DERLEME_KAYNAKDIZIN/$ipp_surum && + ipp_hash=$(md5sum $ipp_file | cut -d" " -f1) && + ipp_dir=.cache/ippicv && + + mkdir -p $ipp_dir && + cp $ipp_file $ipp_dir/$ipp_hash-$ipp_surum + + + mkdir build + cd build + cmake -D WITH_OPENCL=ON \ + -DWITH_OPENGL=ON \ + -DWITH_TBB=ON \ + -DWITH_XINE=ON \ + -DWITH_GSTREAMER=OFF \ + -DBUILD_WITH_DEBUG_INFO=OFF \ + -DBUILD_TESTS=OFF \ + -DBUILD_PERF_TESTS=OFF \ + -DBUILD_EXAMPLES=ON \ + -DINSTALL_C_EXAMPLES=ON \ + -DINSTALL_PYTHON_EXAMPLES=ON \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_SKIP_RPATH=ON \ + -DOPENCV_EXTRA_MODULES_PATH="$SRC/opencv_contrib-$surum/modules" \ + .. + make + make DESTDIR=$PKG install + cd "$PKG/usr/share" + if [[ -d OpenCV/samples ]]; then + mv OpenCV/samples "$SRC/$isim-samples" + mv OpenCV $isim #dizini ismi tutarlı olması için + elif [[ ! -d OpenCV ]]; then + echo "Dizin adlandırma hatası!" + fi + +} + + diff --git a/talimatname/genel/o/opendht/talimat b/talimatname/genel/o/opendht/talimat new file mode 100644 index 000000000..207abf803 --- /dev/null +++ b/talimatname/genel/o/opendht/talimat @@ -0,0 +1,22 @@ +# Tanım: Kademlia DHT'nin (Distributed Hash Table) bir C ++ 11 uygulaması, +# URL: https://github.com/savoirfairelinux/opendht +# Paketçi: milisarge +# Gerekler: cmake gnutls nettle msgpack-c python3-setuptools cython argon2 + +isim=opendht +surum=1.6.1 +devir=1 +kaynak=(https://github.com/savoirfairelinux/opendht/archive/$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + mkdir -p build + cd build + cmake .. \ + -DCMAKE_BUILD_TYPE=Release \ + -DOPENDHT_PYTHON=ON \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/o/openexr/talimat b/talimatname/genel/o/openexr/talimat new file mode 100644 index 000000000..acb7b7875 --- /dev/null +++ b/talimatname/genel/o/openexr/talimat @@ -0,0 +1,20 @@ +# Tanım: Yüksek dinamik aralıklı bir resim dosya formatı kütüphanesi +# URL: http://www.openexr.org +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: ilmbase + +isim=openexr +surum=2.2.0 +devir=1 + +kaynak=( http://savannah.nongnu.org/download/$isim/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--localstatedir=/var \ +--sysconfdir=/etc + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/o/openh264/talimat b/talimatname/genel/o/openh264/talimat new file mode 100644 index 000000000..e4afab9d5 --- /dev/null +++ b/talimatname/genel/o/openh264/talimat @@ -0,0 +1,16 @@ +# Tanım: açık kaynak h264 kodek uyg. +# URL: http://www.openh264.org/ +# Paketçi: milisarge +# Gerekler: nasm + +isim=openh264 +surum=1.1-2103-g69a8b3c +devir=1 +kaynak=(https://github.com/cisco/$isim/archive/v$surum.zip) + +derle() { + cd ${isim}-${version##*-g}* + + make + make PREFIX=$PKG/usr install +} diff --git a/talimatname/genel/o/openimageio/talimat b/talimatname/genel/o/openimageio/talimat new file mode 100644 index 000000000..cb122c88b --- /dev/null +++ b/talimatname/genel/o/openimageio/talimat @@ -0,0 +1,26 @@ +# Tanım: Sınıflar, yardımcı programlar ve uygulamalar da dahil olmak üzere resim okumak ve yazmak için +# URL: http://www.openimageio.org/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: cmake qt4 python boost xorg-mesa openexr jasper glew libtiff opencolorio + + +isim=openimageio +surum=1.7.14 +devir=1 + +kaynak=(https://github.com/OpenImageIO/oiio/archive/release.zip) + +derle() { + +cd oiio-release +mkdir build +cd build +cmake .. \ +-DUSE_OPENSSL=ON \ +-DCMAKE_INSTALL_PREFIX=/usr \ +-DPYLIB_INSTALL_DIR=lib/python2.7/site-packages \ +-DOIIO_BUILD_TESTS=ON \ +-DOIIO_BUILD_TOOLS=ON + +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/o/openjade/iostream.patch b/talimatname/genel/o/openjade/iostream.patch new file mode 100644 index 000000000..884d4c738 --- /dev/null +++ b/talimatname/genel/o/openjade/iostream.patch @@ -0,0 +1,11 @@ +diff -ru openjade-1.3.3-pre1.orig/style/MultiLineInlineNote.cxx openjade-1.3.3-pre1/style/MultiLineInlineNote.cxx +--- openjade-1.3.3-pre1.orig/style/MultiLineInlineNote.cxx 2009-03-15 18:10:52.000000000 +0200 ++++ openjade-1.3.3-pre1/style/MultiLineInlineNote.cxx 2009-03-15 18:11:06.000000000 +0200 +@@ -1,6 +1,6 @@ + + #include "MultiLineInlineNote.h" +-#include <iostream.h> ++#include <iostream> + + #ifdef DSSSL_NAMESPACE + namespace DSSSL_NAMESPACE { diff --git a/talimatname/genel/o/openjade/msggen.pl.patch b/talimatname/genel/o/openjade/msggen.pl.patch new file mode 100644 index 000000000..2f8745642 --- /dev/null +++ b/talimatname/genel/o/openjade/msggen.pl.patch @@ -0,0 +1,32 @@ +Use Getopt::Std in place of getopts.pl. +https://bugs.gentoo.org/show_bug.cgi?id=420083 + +--- a/msggen.pl ++++ b/msggen.pl +@@ -4,6 +4,7 @@ + # See the file COPYING for copying permission. + + use POSIX; ++use Getopt::Std; + + # Package and version. + $package = 'openjade'; +@@ -18,8 +19,7 @@ + undef $opt_l; + undef $opt_p; + undef $opt_t; +-do 'getopts.pl'; +-&Getopts('l:p:t:'); ++getopts('l:p:t:'); + $module = $opt_l; + $pot_file = $opt_p; + +@@ -72,7 +72,7 @@ + else { + $field[0] =~ /^[IWQXE][0-9]$/ || &error("invalid first field");; + $type[$num] = substr($field[0], 0, 1); +- $argc = int(substr($field[0], 1, 1)); ++ $argc = substr($field[0], 1, 1); + } + $nargs[$num] = $argc; + $field[1] =~ /^[a-zA-Z_][a-zA-Z0-9_]+$/ || &error("invalid tag"); \ No newline at end of file diff --git a/talimatname/genel/o/openjade/openjade.kur-kos b/talimatname/genel/o/openjade/openjade.kur-kos new file mode 100644 index 000000000..acc4c1d35 --- /dev/null +++ b/talimatname/genel/o/openjade/openjade.kur-kos @@ -0,0 +1,2 @@ +install-catalog --add /etc/sgml/openjade-1.3.3.cat /usr/share/sgml/openjade-1.3.3/catalog +install-catalog --add /etc/sgml/sgml-docbook.cat /etc/sgml/openjade-1.3.3.cat diff --git a/talimatname/genel/o/openjade/talimat b/talimatname/genel/o/openjade/talimat new file mode 100644 index 000000000..e9a17c1ee --- /dev/null +++ b/talimatname/genel/o/openjade/talimat @@ -0,0 +1,26 @@ +# Tanım: James Clark'ın Belge Stili Semantiği ve Şartname Dilinin uygulanması +# URL: http://openjade.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: opensp + + +isim=openjade +surum=1.3.3-pre1 +devir=2 +kaynak=(http://downloads.sourceforge.net/project/$isim/$isim/1.3.3/$isim-$surum.tar.gz + iostream.patch msggen.pl.patch) + +derle() { + cd $isim-$surum + + patch -p 1 -i $SRC/iostream.patch + patch -p 1 -i $SRC/msggen.pl.patch + + ./configure \ + --prefix=/usr + + + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/o/openjdk/openjdk.kur-kos b/talimatname/genel/o/openjdk/openjdk.kur-kos new file mode 100644 index 000000000..025157387 --- /dev/null +++ b/talimatname/genel/o/openjdk/openjdk.kur-kos @@ -0,0 +1,14 @@ +. /lib/lsb/init-functions +if (grep jdk /etc/man_db.conf > /dev/null); then + cat >> /etc/man_db.conf << "EOF" +# Begin Java addition +MANDATORY_MANPATH /opt/jdk/man +MANPATH_MAP /opt/jdk/bin /opt/jdk/man +MANDB_MAP /opt/jdk/man /var/cache/man/jdk +# End Java addition +EOF +log_warning_msg "${WARNING}Check the /etc/man_db.conf file ${NORMAL}" +fi +mkdir -p /var/cache/man +mandb -c /opt/jdk/man +export JAVA_HOME=/opt/jdk diff --git a/talimatname/genel/o/openjdk/talimat b/talimatname/genel/o/openjdk/talimat new file mode 100644 index 000000000..6092afc8a --- /dev/null +++ b/talimatname/genel/o/openjdk/talimat @@ -0,0 +1,52 @@ +# Tanım: Java Development Kit (JDK) adı verilen bir dizi program. +# URL: http://openjdk.java.net/ +# Paketçi: milisarge@gmail.com +# Gerekler: + +isim=openjdk +surum=8u60 +devir=1 +_surum=1.8.0.60 +kaynak=(http://anduin.linuxfromscratch.org/files/BLFS/OpenJDK-${_version}/OpenJDK-${_version}-`uname -m`-bin.tar.xz ) + +derle() { +cd OpenJDK* +install -vdm755 $PKG/opt/OpenJDK-$surum-bin +mv -v * $PKG/opt/OpenJDK-$surum-bin +chown -R root:root $PKG/opt/OpenJDK-$surum-bin +mkdir -p $PKG/etc/profile.d +cat > $PKG/etc/profile.d/openjdk.sh << "EOF" +# Begin /etc/profile.d/openjdk.sh + +# Set JAVA_HOME directory +JAVA_HOME=/opt/jdk + +# Adjust PATH +pathappend $JAVA_HOME/bin + +# Add to MANPATH +pathappend $JAVA_HOME/man MANPATH + +# Auto Java CLASSPATH +# Copy jar files to, or create symlinks in this directory + +AUTO_CLASSPATH_DIR=/usr/share/java + +pathprepend . CLASSPATH + +for dir in `find ${AUTO_CLASSPATH_DIR} -type d 2>/dev/null`; do + pathappend $dir CLASSPATH +done + +for jar in `find ${AUTO_CLASSPATH_DIR} -name "*.jar" 2>/dev/null`; do + pathappend $jar CLASSPATH +done + +export JAVA_HOME +unset AUTO_CLASSPATH_DIR dir jar + +# End /etc/profile.d/openjdk.sh +EOF + +ln -sv OpenJDK-$surum-bin $PKG/opt/jdk +} diff --git a/talimatname/genel/o/openjdk8/talimat b/talimatname/genel/o/openjdk8/talimat new file mode 100644 index 000000000..48a1ab134 --- /dev/null +++ b/talimatname/genel/o/openjdk8/talimat @@ -0,0 +1,150 @@ +# Tanım: Java Development Kit (JDK) adı verilen bir dizi program. +# URL: http://openjdk.java.net/ +# Paketçi: milisarge@gmail.com +# Gerekler: openjdk alsa-lib cups xorg-fontconfig freetype giflib gtk2 krb5 lcms2 libjpeg-turbo libpng libxslt nss unzip xorg-libxt xorg-libxtst xorg-libxinerama zip + +isim=openjdk8 +openjdk_devir=8 +openjdk_update=u144 +openjdk_build=b01 +openjdk_surum=$openjdk_release$openjdk_update$openjdk_build +surum=8u144-b01 +icedtea_surum=3.5.1 +certdata_rev=e5e2984f44c5 +devir=1 +kaynak=(http://icedtea.wildebeest.org/download/source/icedtea-$icedtea_version.tar.xz + http://stygian.me/crux/distfiles/$isim/corba-$openjdk_version.tar.xz + http://stygian.me/crux/distfiles/$isim/hotspot-$openjdk_version.tar.xz + http://stygian.me/crux/distfiles/$isim/jaxp-$openjdk_version.tar.xz + http://stygian.me/crux/distfiles/$isim/jaxws-$openjdk_version.tar.xz + http://stygian.me/crux/distfiles/$isim/jdk-$openjdk_version.tar.xz + http://stygian.me/crux/distfiles/$isim/langtools-$openjdk_version.tar.xz + http://stygian.me/crux/distfiles/$isim/nashorn-$openjdk_version.tar.xz + http://stygian.me/crux/distfiles/$isim/openjdk-$openjdk_version.tar.xz + http://stygian.me/crux/distfiles/$isim-boot.pkg.tar.xz + http://ftp.netbsd.org/pub/pkgsrc/pkgsrc-2017Q2/pkgsrc/security/mozilla-rootcerts/files/mozilla-rootcerts.sh + http://hg.mozilla.org/releases/mozilla-release/raw-file/$certdata_rev/security/nss/lib/ckfw/builtins/certdata.txt) + +unpack_source() { + for file in ${source[@]}; do + case ${file##*/} in + icedtea-$icedtea_version.tar.xz|\ + $isim-boot.pkg.tar.xz) + bsdtar -p -o -C $SRC -xf $(get_filename $file) ;; + *) + cp $(get_filename $file) $SRC ;; + esac + done +} + +derle() { + JAVA_DIR=/opt/OpenJDK-8u60-bin + + mkdir $SRC/build + cd $SRC/build + + LC_ALL=C \ + CFLAGS="$CFLAGS -fno-delete-null-pointer-checks -fno-omit-frame-pointer -fno-lifetime-dse" \ + CXXFLAGS="$CXXFLAGS -fno-delete-null-pointer-checks -fno-omit-frame-pointer -fno-lifetime-dse" \ + JAVA_HOME=$JAVA_DIR \ + PATH=$JAVA_DIR/bin:$PATH \ + CONFIG_SHELL=/bin/bash \ + ../icedtea-$icedtea_version/configure \ + --prefix=/usr/lib/java/$isim \ + --disable-docs \ + --disable-downloading \ + --disable-precompiled-headers \ + --disable-tests \ + --disable-system-pcsc \ + --disable-system-sctp \ + --enable-system-cups \ + --enable-system-fontconfig \ + --enable-system-gconf \ + --enable-system-gio \ + --enable-system-gtk \ + --enable-system-jpeg \ + --enable-system-kerberos \ + --enable-system-lcms \ + --enable-system-png \ + --enable-system-zlib \ + --enable-nss \ + --enable-sunec \ + --enable-non-nss-curves \ + --enable-improved-font-rendering \ + --with-openjdk-src-zip=$SRC/openjdk-$openjdk_version.tar.xz \ + --with-hotspot-src-zip=$SRC/hotspot-$openjdk_version.tar.xz \ + --with-corba-src-zip=$SRC/corba-$openjdk_version.tar.xz \ + --with-jaxp-src-zip=$SRC/jaxp-$openjdk_version.tar.xz \ + --with-jaxws-src-zip=$SRC/jaxws-$openjdk_version.tar.xz \ + --with-jdk-src-zip=$SRC/jdk-$openjdk_version.tar.xz \ + --with-langtools-src-zip=$SRC/langtools-$openjdk_version.tar.xz \ + --with-nashorn-src-zip=$SRC/nashorn-$openjdk_version.tar.xz \ + --with-pkgsurum=MILIS \ + --with-jdk-home=$JAVA_DIR + + LC_ALL=C \ + CFLAGS="$CFLAGS -fno-delete-null-pointer-checks -fno-omit-frame-pointer -fno-lifetime-dse" \ + CXXFLAGS="$CXXFLAGS -fno-delete-null-pointer-checks -fno-omit-frame-pointer -fno-lifetime-dse" \ + JAVA_HOME=$JAVA_DIR \ + PATH=$JAVA_DIR/bin:$PATH \ + make + + mkdir -p $PKG/usr/lib/java/$isim + cp -r openjdk.build/images/j2sdk-image/* $PKG/usr/lib/java/$isim + + # remove unneeded files + rm -f $PKG/usr/lib/java/$isim/src.zip + rm -rf $PKG/usr/lib/java/$isim/{demo,sample} + rm -f $PKG/usr/lib/java/$isim/man/ja + rm -rf $PKG/usr/lib/java/$isim/man/ja_JP.UTF-8 + find $PKG/usr/lib/java/$isim -name '*.ja' -delete + + # deduplicate + rm $PKG/usr/lib/java/$isim/jre/lib/amd64/libjawt.so + ln -s ../../../../lib/amd64/libjawt.so \ + $PKG/usr/lib/java/$isim/jre/lib/amd64/libjawt.so + rm $PKG/usr/lib/java/$isim/jre/lib/amd64/jli/libjli.so + ln -s ../../../../lib/amd64/jli/libjli.so \ + $PKG/usr/lib/java/$isim/jre/lib/amd64/jli/libjli.so + for f in $PKG/usr/lib/java/$isim/jre/bin/* ; do + if [ -f $PKG/usr/lib/java/$isim/bin/${f##*/} ]; then + rm $f + ln -s ../../bin/${f##*/} $f + fi + done + + sed -e "/# cd \/etc\/openssl\/certs/s//# cd \/usr\/share\/$isim\/certs/" \ + -e '/@AWK@/s//\/usr\/bin\/awk/' \ + -e '/@ECHO@/s//\/bin\/echo/' \ + -e '/@EXPR@/s//\/usr\/bin\/expr/' \ + -e '/@LN@/s//\/bin\/ln/' \ + -e '/@LS@/s//\/bin\/ls/' \ + -e '/@MKDIR@/s//\/bin\/mkdir/' \ + -e '/@OPENSSL@/s//\/bin\/openssl/' \ + -e "/@SSLDIR@/s//\/usr\/share\/$isim/" \ + -e '/@PREFIX@/s//\/usr/' \ + -e '/@RM@/s//\/bin\/rm/' \ + -e '/@LOCALBASE@/s//\/usr/' \ + -e "/@DATADIR@/s//\/usr\/share\/$isim/" \ + -e 's/self extract/self -f $certfile extract/' \ + -e 's/self rehash/self -f $certfile rehash/' \ + $SRC/mozilla-rootcerts.sh > $SRC/mozilla-rootcerts + + # generate java's cacerts + # big thanks to pkgsrc's mozilla-rootcerts and openjdk pkg's for this part + rm -f $PKG/usr/lib/java/$isim/jre/lib/security/cacerts + mkdir $SRC/cacerts + cd $SRC/cacerts + sh $SRC/mozilla-rootcerts -f $SRC/certdata.txt extract + for cert in *.pem; do + JAVA_HOME=$PKG/usr/lib/java/$isim \ + PATH=$JAVA_HOME/bin:$PATH \ + keytool \ + -noprompt \ + -importcert \ + -keystore $PKG/usr/lib/java/$isim/jre/lib/security/cacerts \ + -alias $(echo $cert | sed 's,.*/\([^/]*\)\.pem,\1,') \ + -file $cert \ + -storepass changeit + done +} diff --git a/talimatname/genel/o/openjpeg/talimat b/talimatname/genel/o/openjpeg/talimat new file mode 100644 index 000000000..957541955 --- /dev/null +++ b/talimatname/genel/o/openjpeg/talimat @@ -0,0 +1,20 @@ +# Tanım: OpenJPEG, JPEG-2000 standardının açık kaynaklı bir uygulamasıdır. +# URL: http://www.ijg.org/ +# Paketçi: milisarge +# Gerekler: lcms2 libpng libtiff +# Grup: + +isim=openjpeg +surum=1.5.2 +devir=1 + +kaynak=(http://downloads.sourceforge.net/openjpeg.mirror/$isim-$surum.tar.gz ) + +derle() { + cd openjpeg-$surum + autoreconf -f -i + ./configure --prefix=/usr --disable-static + make + make DESTDIR=$PKG install + ln -s openjpeg-1.5/openjpeg.h $PKG/usr/include +} diff --git a/talimatname/genel/o/openjpeg2/talimat b/talimatname/genel/o/openjpeg2/talimat new file mode 100644 index 000000000..bf76f60b5 --- /dev/null +++ b/talimatname/genel/o/openjpeg2/talimat @@ -0,0 +1,32 @@ +# Tanım: Açık kaynaklı bir JPEG 2000 codec bileşeni +# URL: https://github.com/uclouvain/openjpeg +# Paketçi: Cihan_Alkan +# Gerekler: zlib libpng libtiff lcms2 cmake doxygen +# Grup: + +isim=openjpeg2 +surum=2.3.0 +devir=1 + +kaynak=(https://github.com/uclouvain/openjpeg/archive/v2.3.0.tar.gz::openjpeg-${surum}.tar.gz) + +derle() { + + mkdir build + # remove thirdparty libs + sed -i '/add_subdirectory(thirdparty)/d' openjpeg-${surum}/CMakeLists.txt + # Install doxygen docs to the right directory + sed -i -e "s:DESTINATION\ share/doc:DESTINATION\ share/doc/${isim}:" openjpeg-${surum}/doc/CMakeLists.txt + cd build + + cmake "../openjpeg-${surum}" \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_DOC=on + + make + make DESTDIR="${PKG}" install + install -m755 -d "${PKG}/usr/share/licenses/openjpeg2" + mv ${PKG}/usr/share/doc/openjpeg-*/LICENSE ${PKG}/usr/share/licenses/openjpeg2 + rm -rf ${PKG}/usr/share/doc +} diff --git a/talimatname/genel/o/openldap/bdb.yama b/talimatname/genel/o/openldap/bdb.yama new file mode 100644 index 000000000..8d83aea5d --- /dev/null +++ b/talimatname/genel/o/openldap/bdb.yama @@ -0,0 +1,29 @@ +--- configure.o 2016-02-06 01:57:45.000000000 +0200 ++++ configure 2017-03-06 00:55:55.306825000 +0200 +@@ -20385,10 +20385,10 @@ + #define DB_VERSION_FULL ((DB_VERSION_MAJOR<<16)|(DB_VERSION_MINOR<<8)|DB_VERSION_PATCH) + + /* require 4.4 or later, but less than 6.0.20 */ +-#if DB_VERSION_FULL >= 0x040400 && DB_VERSION_FULL < 0x060014 ++#if DB_VERSION_FULL >= 0x010400 && DB_VERSION_FULL < 0x010014 + __db_version_compat + #endif +-#if DB_VERSION_FULL >= 0x060014 ++#if DB_VERSION_FULL >= 0x010014 + #error "BerkeleyDB 6.0.20+ license is incompatible with LDAP" + #endif + +@@ -20402,13 +20402,6 @@ + rm -f conftest* + + fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_bdb_compat" >&5 +-$as_echo "$ol_cv_bdb_compat" >&6; } +- +- +- if test $ol_cv_bdb_compat != yes ; then +- as_fn_error "BerkeleyDB version incompatible with BDB/HDB backends" "$LINENO" 5 +- fi + + ol_cv_lib_db=no + diff --git a/talimatname/genel/o/openldap/openldap-config.patch b/talimatname/genel/o/openldap/openldap-config.patch new file mode 100644 index 000000000..ba18435f6 --- /dev/null +++ b/talimatname/genel/o/openldap/openldap-config.patch @@ -0,0 +1,25 @@ +Index: servers/slapd/slapd.conf +--- servers/slapd/slapd.conf.orig 2003-05-25 01:19:14.000000000 +0200 ++++ servers/slapd/slapd.conf 2003-12-05 10:43:58.000000000 +0100 +@@ -64,4 +64,21 @@ + # Mode 700 recommended. + directory %LOCALSTATEDIR%/openldap-data + # Indices to maintain ++ + index objectClass eq ++ ++####################################################################### ++# replication via slurpd(8) ++####################################################################### ++ ++# master server configuration ++#replogfile %LOCALSTATEDIR%/openldap-slurp ++#replica-pidfile %LOCALSTATEDIR%/slurpd.pid ++#replica host=slave.example.com:389 ++# binddn="cn=admin,dc=example,dc=org" ++# bindmethod=simple credentials=secret ++ ++# slave server(s) configuration ++#updatedn "cn=admin,dc=example,dc=org" ++#updateref ldap://master.example.org ++ diff --git a/talimatname/genel/o/openldap/slapd b/talimatname/genel/o/openldap/slapd new file mode 100644 index 000000000..910bf4b33 --- /dev/null +++ b/talimatname/genel/o/openldap/slapd @@ -0,0 +1,29 @@ +#!/bin/sh +# +# /etc/rc.d/slapd: start/stop Stand-alone LDAP Daemon +# + +SLAPD_PID=/var/openldap/run/slapd.pid + +case $1 in +start) + /usr/sbin/slapd + ;; +stop) + if [ -f $SLAPD_PID ]; then + kill -INT `head -1 $SLAPD_PID` + else + killall -q /usr/sbin/slapd + fi + ;; +restart) + $0 stop + sleep 2 + $0 start + ;; +*) + echo "usage: $0 [start|stop|restart]" + ;; +esac + +# End of file diff --git a/talimatname/genel/o/openldap/talimat b/talimatname/genel/o/openldap/talimat new file mode 100644 index 000000000..51d80ebf7 --- /dev/null +++ b/talimatname/genel/o/openldap/talimat @@ -0,0 +1,51 @@ +# Tanım: Basit Dizin Erişim Protokolü (LDAP) Araç Seti +# URL: https://www.openldap.org/ +# Paketçi: milisarge +# Gerekler: cyrus-sasl + +isim=openldap +surum=2.4.44 +devir=1 +kaynak=(https://www.openldap.org/software/download/OpenLDAP/openldap-release/$isim-$surum.tgz + $isim-config.patch slapd bdb.yama) + +derle() { + cd $isim-$surum + patch -p0 -i $SRC/$isim-config.patch + patch -p0 -i $SRC/bdb.yama + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/sbin \ + --localstatedir=/var/openldap \ + --enable-syslog \ + --with-threads \ + --with-tls \ + --with-cyrus-sasl \ + --enable-spasswd \ + --enable-dynamic \ + --enable-ipv6 \ + --enable-modules \ + --enable-crypt \ + --enable-rewrite \ + --enable-bdb \ + --enable-hdb \ + --enable-ldap \ + --enable-meta \ + --enable-monitor \ + --enable-dnssrv \ + --enable-null \ + --enable-perl \ + --enable-aci \ + --enable-shared + + make depend + make + make DESTDIR=$PKG install + + ln -sf liblber.so $PKG/usr/lib/liblber.so.2 + ln -sf libldap.so $PKG/usr/lib/libldap.so.2 + ln -sf libldap_r.so $PKG/usr/lib/libldap_r.so.2 + + install -D -m 0755 $SRC/slapd $PKG/etc/rc.d/init.d/slapd +} diff --git a/talimatname/genel/o/openmpi/talimat b/talimatname/genel/o/openmpi/talimat new file mode 100644 index 000000000..14ce23b63 --- /dev/null +++ b/talimatname/genel/o/openmpi/talimat @@ -0,0 +1,16 @@ +# Tanım: Yüksek performans mesaj iletim arayüzü +# URL: https://www.open-mpi.org +# Paketçi: milisarge +# Gerekler: + +isim=openmpi +surum=2.1.1 +devir=1 +kaynak=(https://www.open-mpi.org/software/ompi/v2.1/downloads/$isim-$surum.tar.bz2) + +derle() { + cd "$isim-$surum" + ./configure --prefix="$PKG/usr" + make "$MAKEFLAGS" + make install +} diff --git a/talimatname/genel/o/openmw/talimat b/talimatname/genel/o/openmw/talimat new file mode 100644 index 000000000..176ca12c6 --- /dev/null +++ b/talimatname/genel/o/openmw/talimat @@ -0,0 +1,19 @@ +# Tanım: Morrowind rol yapma oyunu için açık kaynak motoru +# URL: http://www.openmw.org +# Paketçi: Cihan_Alkan +# Gerekler: openal openscenegraph mygui bullet qt5 ffmpeg sdl2 unshield libxkbcommon cmake boost +# Grup: oyun + +isim=openmw +surum=0.43.0 +devir=1 +kaynak=(https://github.com/OpenMW/openmw/archive/openmw-$surum.tar.gz::openmw-$surum.tar.gz) + +derle() { + cd ${SRC}/openmw-openmw-0.43.0 + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DDESIRED_QT_VERSION=5 + make + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/o/openobex/talimat b/talimatname/genel/o/openobex/talimat new file mode 100644 index 000000000..958def136 --- /dev/null +++ b/talimatname/genel/o/openobex/talimat @@ -0,0 +1,21 @@ +# Tanım: Aygıtlar arasında ikili dosya aktarımları için kullanılan Nesne Değişimi Protokolünü uygular. +# URL: http://dev.zuckschwerdt.org/openobex/ +# Paketçi: milisarge +# Gerekler: bluez libusb + +isim=openobex +surum=1.7.2 +devir=1 + +kaynak=( http://downloads.sourceforge.net/$isim/$isim-$surum-Source.tar.gz) +derle() { + cd $isim-$surum-Source + mkdir build + cd build + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_BUILD_TYPE=Release \ + .. + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/o/openra/talimat b/talimatname/genel/o/openra/talimat new file mode 100644 index 000000000..071ae746c --- /dev/null +++ b/talimatname/genel/o/openra/talimat @@ -0,0 +1,23 @@ +# Tanım: RedAlert oyunun mono tabanlı açık kaynak uygulaması +# Url: http://www.openra.net +# Paketçi: milisarge +# Gerekler: mono dejavu-ttf openal freetype sdl2 lua51 hicolor-icon-theme gtk-update-icon-cache desktop-file-utils xdg-utils zenity unzip + +isim=openra +isim=OpenRA +surum=20170421 +devir=1 + +kaynak=(https://github.com/$isim/$isim/archive/release-$surum.tar.gz) + +derle() { + cd $isim-release-$surum + make dependencies + make core + make tools + make prefix=/usr DESTDIR="$PKG" install-all + make prefix=/usr DESTDIR="$PKG" install-linux-shortcuts + make prefix=/usr DESTDIR="$PKG" install-linux-mime + make prefix=/usr DESTDIR="$PKG" install-linux-appdata + make prefix=/usr DESTDIR="$PKG" install-man-page +} diff --git a/talimatname/genel/o/opensc-openct/talimat b/talimatname/genel/o/opensc-openct/talimat new file mode 100644 index 000000000..f6dd0a7bc --- /dev/null +++ b/talimatname/genel/o/opensc-openct/talimat @@ -0,0 +1,26 @@ +# Tanım: OpenSC compiled with OpenCT instead of PCSC, working with e.g. SafeNet/Aladdin eToken Pro 64k +# URL: https://github.com/OpenSC/OpenSC/wiki +# Paketçi: milisarge +# Gerekler: openct + +isim=opensc-openct +_isim=OpenSC +surum=0.16.0 +devir=1 +kaynak=(https://github.com/OpenSC/OpenSC/archive/$surum.tar.gz) + +derle() { + _prefix=/opt/$isim + + cd $_name-$surum + ./bootstrap + ./configure \ + --prefix=$_prefix \ + --disable-pcsc \ + --enable-openct + + make + mkdir -p ./$_prefix + make DESTDIR="$PKG" install + +} diff --git a/talimatname/genel/o/opensc/talimat b/talimatname/genel/o/opensc/talimat new file mode 100644 index 000000000..db4324898 --- /dev/null +++ b/talimatname/genel/o/opensc/talimat @@ -0,0 +1,31 @@ +# Tanım: smart kartlar için araç seti ve kütüphane +# URL: https://github.com/OpenSC/OpenSC/wiki +# Paketçi: milisarge +# Gerekler: pcsc-lite libxslt docbook-xsl + +isim=opensc +surum=0.16.0 +devir=1 +kaynak=(http://downloads.sourceforge.net/$isim/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + export LIBS=-lltdl + _sheetdir=(/usr/share/xml/docbook/xsl-stylesheets-*) + ./bootstrap + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --enable-man \ + --disable-doc \ + --enable-readline \ + --enable-openssl \ + --enable-pcsc \ + --enable-zlib \ + --enable-sm \ + --with-xsl-stylesheetsdir="$_sheetdir" + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + make + make DESTDIR="$PKG" install + install -D -m644 etc/opensc.conf "$PKG/etc/opensc.conf" +} diff --git a/talimatname/genel/o/openscenegraph/talimat b/talimatname/genel/o/openscenegraph/talimat new file mode 100644 index 000000000..00f6c6b77 --- /dev/null +++ b/talimatname/genel/o/openscenegraph/talimat @@ -0,0 +1,24 @@ +# Tanım: Açık Kaynaklı, yüksek performanslı gerçek zamanlı grafik araç seti +# URL: http://www.openscenegraph.org +# Paketçi: Cihan_Alkan +# Gerekler: giflib jasper librsvg xine-lib pth cmake libvncserver qt5 ffmpeg xorg-mesa +# Grup: kütüphane + + +isim=openscenegraph +surum=3.4.1 +devir=1 +kaynak=(https://github.com/openscenegraph/OpenSceneGraph/archive/OpenSceneGraph-$surum.tar.gz) + +derle() { + + cd OpenSceneGraph-OpenSceneGraph-$surum + + [ $NOEXTRACT -eq 1 ] || cmake . \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release + make + make DESTDIR="$PKG" install + install -D -m644 LICENSE.txt "$PKG/usr/share/licenses/$isim/LICENSE" + [ -d "$PKG/usr/lib64" ] && mv "$PKG/usr/lib64" "$PKG/usr/lib" || true +} diff --git a/talimatname/genel/o/opensp/opensp.kur-kos b/talimatname/genel/o/opensp/opensp.kur-kos new file mode 100644 index 000000000..fd0448d88 --- /dev/null +++ b/talimatname/genel/o/opensp/opensp.kur-kos @@ -0,0 +1 @@ +ln -s /usr/lib/libosp.la /usr/lib64/libosp.la diff --git a/talimatname/genel/o/opensp/talimat b/talimatname/genel/o/opensp/talimat new file mode 100644 index 000000000..fb756abcf --- /dev/null +++ b/talimatname/genel/o/opensp/talimat @@ -0,0 +1,37 @@ +# Tanım: SGML / XML dosyalarını kullanmak için C ++ kütüphanesi. +# URL: http://openjade.sourceforge.net/doc/ +# Paketçi: milisarge +# Gerekler: sgml-common + +isim=opensp +surum=1.5.2 +devir=1 + +kaynak=(http://downloads.sourceforge.net/openjade/OpenSP-$surum.tar.gz) + +derle(){ + cd OpenSP-$surum + sed -i 's/32,/253,/' lib/Syntax.cxx && + sed -i 's/LITLEN 240 /LITLEN 8092/' \ + unicode/{gensyntax.pl,unicode.syn} && + + ./configure --prefix=/usr \ + --disable-static \ + --disable-doc-build \ + --enable-default-catalog=/etc/sgml/catalog \ + --enable-http \ + --enable-default-search-path=/usr/share/sgml + make DESTDIR=$PKG install + + # create the SP equivalents of OpenSP executables and libraries + cd $PKG/usr/bin + ln -v -sf onsgmls nsgmls + ln -v -sf osgmlnorm sgmlnorm + ln -v -sf ospam spam + ln -v -sf ospcat spcat + ln -v -sf ospent spent + ln -v -sf osx sx + ln -v -sf osx sgml2xml + cd $PKG/usr/lib + ln -v -sf libosp.so libsp.so +} diff --git a/talimatname/genel/o/opensubdiv/talimat b/talimatname/genel/o/opensubdiv/talimat new file mode 100644 index 000000000..f9bbd6e5f --- /dev/null +++ b/talimatname/genel/o/opensubdiv/talimat @@ -0,0 +1,23 @@ +# Tanım: Açık Kaynaklı bir alt bölüm yüzey kütüphanesi +# URL: http://graphics.pixar.com/opensubdiv +# Paketçi: yasarciv67@gmail.com +# Gerekler: python python-docutils pygments cmake glew xorg-libxcursor xorg-app xorg-libxinerama +# Grup: kütüphane + +isim=opensubdiv +surum=3.0.2 +devir=1 + +kaynak=(https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v${version//./_}.tar.gz) + +derle() { + cd OpenSubdiv-${version//./_} + rm -rf build + mkdir build + cd build + cmake .. \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr + make DESTDIR=$PKG/ install + rm -rf $PKG/usr/bin +} diff --git a/talimatname/genel/o/openttd-opengfx/talimat b/talimatname/genel/o/openttd-opengfx/talimat new file mode 100644 index 000000000..319f6a3b4 --- /dev/null +++ b/talimatname/genel/o/openttd-opengfx/talimat @@ -0,0 +1,19 @@ +# Tanım: Openttd için ücretsiz grafik seti +# URL: http://dev.openttdcoop.org/projects/opengfx +# Paketçi: milisarge +# Gerekler: + + +isim=openttd-opengfx +surum=0.5.3 +devir=1 +kaynak=(http://bundles.openttdcoop.org/opengfx/releases/${surum}/opengfx-${surum}.zip) + +derle() { + cd ${SRC} + tar xvf opengfx-${surum}.tar + cd opengfx-${surum} + install -d ${PKG}/usr/share/openttd/data + install -m644 *.grf ${PKG}/usr/share/openttd/data + install -m644 *.obg ${PKG}/usr/share/openttd/data +} diff --git a/talimatname/genel/o/openttd-opensfx/talimat b/talimatname/genel/o/openttd-opensfx/talimat new file mode 100644 index 000000000..a7cd5f1d0 --- /dev/null +++ b/talimatname/genel/o/openttd-opensfx/talimat @@ -0,0 +1,21 @@ +# Tanım: Openttd için ücretsiz ses seti +# URL: http://www.openttd.org +# Paketçi: milisarge +# Gerekler: + + +isim=openttd-opensfx +surum=0.2.3 +devir=1 +kaynak=(http://bundles.openttdcoop.org/opensfx/releases/opensfx-${surum}.zip) + +derle() { + cd ${SRC}/opensfx-${surum} + + chmod 0644 * + + mkdir -pm0755 ${PKG}/usr/share/openttd/data + cp opensfx.* ${PKG}/usr/share/openttd/data/ + install -Dm644 license.txt ${PKG}/usr/share/licenses/${isim}/license + install -Dm644 readme.txt ${PKG}/usr/share/licenses/${isim}/readme +} diff --git a/talimatname/genel/o/openttd/openttd.kur-kos b/talimatname/genel/o/openttd/openttd.kur-kos new file mode 100644 index 000000000..f9c0fc156 --- /dev/null +++ b/talimatname/genel/o/openttd/openttd.kur-kos @@ -0,0 +1,2 @@ + gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor > /dev/null 2>&1 + update-desktop-database > /dev/null 2>&1 diff --git a/talimatname/genel/o/openttd/talimat b/talimatname/genel/o/openttd/talimat new file mode 100644 index 000000000..f35fb9251 --- /dev/null +++ b/talimatname/genel/o/openttd/talimat @@ -0,0 +1,27 @@ +# Tanım:Transport Tycoon Deluxe çalıştırmak için bir motor. +# URL: http://www.openttd.org +# Paketçi: milisarge +# Gerekler: libpng sdl icu xorg-fontconfig lzo hicolor-icon-theme desktop-file-utils xz openttd-opengfx openttd-opensfx + + +isim=openttd +surum=1.5.2 +devir=1 +kaynak=(http://binaries.openttd.org/releases/${surum}/${isim}-${surum}-source.tar.xz) + +derle() { + cd ${isim}-${surum} + + ./configure \ + --prefix-dir=/usr \ + --binary-isim=${isim} \ + --binary-dir=bin \ + --data-dir=share/${isim} \ + --install-dir=${PKG} \ + --doc-dir=share/doc/${isim} \ + --menu-isim="OpenTTD" \ + --personal-dir=.${isim} + + make + make install +} diff --git a/talimatname/genel/o/openvpn/openvpnd b/talimatname/genel/o/openvpn/openvpnd new file mode 100644 index 000000000..62ce72f0f --- /dev/null +++ b/talimatname/genel/o/openvpn/openvpnd @@ -0,0 +1,65 @@ +#!/bin/sh +# +# /etc/rc.d/openvpn: start/stop openvpn daemon +# + +CONFDIR=/etc/openvpn +RUNDIR=/var/run + +# optional arguments to openvpn +OPTARGS="--fast-io" + +usage() { + echo "Usage: $0 [start|stop|restart] <config-name>" + exit 0 +} + +# require a config name to be specified +if [ -z "$2" ] +then + usage +fi + +CONF=${CONFDIR}/${2}.conf +PID=${RUNDIR}/openvpn.${2}.pid + +# check for the existence of the specified config +if [ ! -f ${CONF} ] +then + echo "Can't find config file ${CONF}! Exiting." + exit 1 +fi + +case $1 in + start) + # check for an existing PID; this tunnel may already be running + if [ -f ${PID} ] + then + echo "VPN '${2}' appears to be running already. If not, remove the stale PID file '${PID}'. Exiting." + exit 2 + fi + # start the specified VPN config + echo "Starting VPN '${2}'..." + /usr/sbin/openvpn --config ${CONF} --writepid ${PID} --daemon ovpn-${2} ${OPTARGS} + ;; + stop) + # check for an existing PID; this tunnel should already be running + if [ ! -f ${PID} ] + then + echo "VPN '${2}' doesn't appear to be running. Exiting." + exit 3 + fi + # stop the specified VPN config + echo "Stopping VPN '${2}'..." + kill `cat ${PID}` + rm -f ${PID} + ;; + restart) + ${0} stop ${2}; sleep 3; ${0} start ${2} + ;; + *) + usage + ;; +esac + +# End of file diff --git a/talimatname/genel/o/openvpn/talimat b/talimatname/genel/o/openvpn/talimat new file mode 100644 index 000000000..1d8435581 --- /dev/null +++ b/talimatname/genel/o/openvpn/talimat @@ -0,0 +1,26 @@ +# Tanım: VPN istemcisi +# URL: http://www.openvpn.net +# Paketçi: milisarge +# Gerekler: + +isim=openvpn +surum=2.4.0 +devir=1 +kaynak=(http://swupdate.openvpn.net/community/releases/$isim-$surum.tar.gz \ + openvpnd) + +derle() { + install -D -m 755 openvpnd $PKG/etc/rc.d/init.d/openvpn + cd $isim-$surum + + ./configure --prefix=/usr \ + --mandir=/usr/man \ + --enable-iproute2 \ + --disable-plugin-auth-pam + make + make DESTDIR=$PKG install + if [ -d $PKG/usr/share/doc ];then + rm -r $PKG/usr/share/doc + fi + +} diff --git a/talimatname/genel/o/openvswitch/openvswitch.tmpfiles b/talimatname/genel/o/openvswitch/openvswitch.tmpfiles new file mode 100644 index 000000000..f99f19f89 --- /dev/null +++ b/talimatname/genel/o/openvswitch/openvswitch.tmpfiles @@ -0,0 +1 @@ +d /run/openvswitch 0770 root root - diff --git a/talimatname/genel/o/openvswitch/talimat b/talimatname/genel/o/openvswitch/talimat new file mode 100644 index 000000000..e8de2f954 --- /dev/null +++ b/talimatname/genel/o/openvswitch/talimat @@ -0,0 +1,32 @@ +# Tanım: Üretim Kalitesi, Çok Katmanlı Açık Sanal Anahtar +# URL: http://openvswitch.org +# Paketçi: Cihan_Alkan +# Gerekler: libcap-ng python-six +# Grup: ağ + +isim=openvswitch +surum=2.8.1 +devir=1 +kaynak=(http://openvswitch.org/releases/openvswitch-$surum.tar.gz + openvswitch.tmpfiles) + +derle() { + cd "$SRC/$isim-$surum" + sed -i \ + -e 's|$(sysconfdir)/bash_completion.d|/usr/share/bash-completion/completions|g' \ + Makefile.am + ./boot.sh + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --with-rundir=/run/openvswitch \ + --sbindir=/usr/bin \ + PYTHON=/usr/bin/python + make + + make DESTDIR="$PKG" install + install -Dm0644 "$SRC"/openvswitch.tmpfiles "$PKG/usr/lib/tmpfiles.d/openvswitch.conf" + install -dm0755 "$PKG/etc/openvswitch" + rm -rf "$PKG"/run +} diff --git a/talimatname/genel/o/opera/default b/talimatname/genel/o/opera/default new file mode 100644 index 000000000..380d9ccee --- /dev/null +++ b/talimatname/genel/o/opera/default @@ -0,0 +1,4 @@ +# Default settings for chromium. This file is sourced by /usr/bin/chromium + +# Options to pass to chromium +OPERA_FLAGS="" diff --git a/talimatname/genel/o/opera/opera b/talimatname/genel/o/opera/opera new file mode 100644 index 000000000..f1eb7f6d2 --- /dev/null +++ b/talimatname/genel/o/opera/opera @@ -0,0 +1,13 @@ +#!/bin/bash + +# Allow users to override command-line options +# Based on Gentoo's chromium package (and by extension, Debian's) +if [[ -f /etc/%name%/default ]]; then + . /etc/%name%/default +fi + +# Prefer user defined CHROMIUM_USER_FLAGS (from env) over system +# default CHROMIUM_FLAGS (from /etc/chromium/default) +OPERA_FLAGS=${OPERA_USER_FLAGS:-$OPERA_FLAGS} + +exec /usr/lib/%operabin% $OPERA_FLAGS "$@" diff --git a/talimatname/genel/o/opera/opera.kur-kos b/talimatname/genel/o/opera/opera.kur-kos new file mode 100644 index 000000000..1ec548500 --- /dev/null +++ b/talimatname/genel/o/opera/opera.kur-kos @@ -0,0 +1,5 @@ +#!/bin/sh +update-desktop-database -q /usr/share/applications +update-mime-database /usr/share/mime >/dev/null +gtk-update-icon-cache -tq /usr/share/icons/hicolor + diff --git a/talimatname/genel/o/opera/talimat b/talimatname/genel/o/opera/talimat new file mode 100644 index 000000000..dd57dba17 --- /dev/null +++ b/talimatname/genel/o/opera/talimat @@ -0,0 +1,47 @@ +# Tanım: Hızlı ve güvenli bir web tarayıcısı +# URL: http://www.opera.com/ +# Paketçi: yasarciv67 Cihan_Alkan +# Gerekler: gtk2 desktop-file-utils shared-mime-info xorg-libxtst gconf xorg-libxscrnsaver alsa-lib nss freefont-ttf libnotify hicolor-icon-theme + +isim=opera +surum=53.0.2907.68 +devir=1 +kaynak=(http://get.geo.opera.com/pub/${isim}/desktop/$surum/linux/${isim}-stable_${surum}_amd64.deb + opera + default) + +derle() { + sed -e "s/%{isim}%/${isim}/g" -i "$SRC/opera" + sed -e "s/%operabin%/${isim}\/${isim}/g" \ + -i "$SRC/opera" + bsdtar -xf ${isim}-stable_${surum}_amd64.deb + bsdtar -xf data.tar.xz --exclude=usr/share/{lintian,menu} -C "$PKG/" + # get rid of the extra subfolder {i386,x86_64}-linux-gnu + ( + cd "$PKG/usr/lib/"*-linux-gnu/ + mv "${isim}" ../ + ) + rm -rf "$PKG/usr/lib/"*-linux-gnu + + # suid opera_sandbox + chmod 4755 "$PKG/usr/lib/${isim}/opera_sandbox" + + # Varsayılan seçenekleri yükle + install -Dm644 "$SRC/default" "$PKG/etc/${isim}/default" + + # Opera sarmalayıcı yükle + rm "$PKG/usr/bin/${isim}" + install -Dm755 "$SRC/opera" "$PKG/usr/bin/${isim}" + + # lisans + + install -Dm644 \ + "$PKG/usr/share/doc/${isim}-stable/copyright" \ + "$PKG/usr/share/licenses/${isim}/copyright" + + # Başlatıcı + sed -i 's/^Exec=/Name[tr]=Opera \ + GenericName[tr]=Web Tarayıcı \ + Comment[tr]=Hızlı ve güvenli bir web tarayıcısı \ + &/' $PKG/usr/share/applications/${isim}.desktop +} diff --git a/talimatname/genel/o/opmsg/talimat b/talimatname/genel/o/opmsg/talimat new file mode 100644 index 000000000..2697030cd --- /dev/null +++ b/talimatname/genel/o/opmsg/talimat @@ -0,0 +1,23 @@ +# Tanım: opmsg mesaj şifreleme +# URL: https://github.com/stealth/opmsg +# Paketçi: milisarge +# Gerekler: +# Grup: ağ + +isim=opmsg +surum=git +devir=2 +kaynak=(https://github.com/stealth/opmsg/archive/master.tar.gz::$isim-$surum-$devir.tar.gz) + +derle() { + cd "$isim-master/src" + make + make contrib + cd "${SRC}/$isim-master" + mkdir -p "$PKG/usr/share/opmsg" + install -D -m644 sample.config "$PKG/usr/share/opmsg" + cd "${SRC}/$isim-master/src" + install -D -m755 opmsg "$PKG/usr/bin/opmsg" + install -D -m755 opmux "$PKG/usr/bin/opmux" + install -D -m755 opcoin "$PKG/usr/bin/opcoin" +} diff --git a/talimatname/genel/o/optipng/talimat b/talimatname/genel/o/optipng/talimat new file mode 100644 index 000000000..29170013e --- /dev/null +++ b/talimatname/genel/o/optipng/talimat @@ -0,0 +1,23 @@ +# Tanım: PNG dosyalarını herhangi bir bilgi kaybı olmadan daha küçük bir boyuta sıkıştırır. +# URL: http://optipng.sourceforge.net/ +# Paketçi: Cihan Alkan +# Gerekler: libpng + +isim=optipng +surum=0.7.6 +devir=1 + +kaynak=(http://downloads.sourceforge.net/sourceforge/$isim/$isim-$surum.tar.gz) + +derle() { + + cd $isim-$surum + + ./configure --prefix=/usr --mandir=/usr/share/man --with-system-libs + make + + make prefix="$PKG/usr" mandir="$PKG/usr/share/man" install + + # install license + install -Dm0644 LICENSE.txt "$PKG/usr/share/licenses/$isim/LICENSE" +} diff --git a/talimatname/genel/o/opus/talimat b/talimatname/genel/o/opus/talimat new file mode 100644 index 000000000..235e6c4f4 --- /dev/null +++ b/talimatname/genel/o/opus/talimat @@ -0,0 +1,18 @@ +# Tanım: Internet üzerinden etkileşimli konuşma ve ses iletimi için tasarlanmış Codec +# URL: http://www.opus-codec.org/ +# Paketçi: milisarge +# Gerekler: + +isim=opus +surum=1.1.2 +devir=1 + +kaynak=(http://downloads.xiph.org/releases/$isim/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr --enable-custom-modes --disable-static \ +--docdir=/usr/share/doc/$isim-$surum +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/o/opusfile/talimat b/talimatname/genel/o/opusfile/talimat new file mode 100644 index 000000000..44380c8ec --- /dev/null +++ b/talimatname/genel/o/opusfile/talimat @@ -0,0 +1,17 @@ +# Tanım: .opus dosyalarını açma, arama ve çözme için kitaplık +# URL: http://www.opus-codec.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: libogg opus + +isim=opusfile +surum=0.7 +devir=1 + +kaynak=(http://downloads.xiph.org/releases/opus/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/o/orage/orage.kur-kos b/talimatname/genel/o/orage/orage.kur-kos new file mode 100644 index 000000000..1dd81428d --- /dev/null +++ b/talimatname/genel/o/orage/orage.kur-kos @@ -0,0 +1,2 @@ +update-desktop-database -q +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor diff --git a/talimatname/genel/o/orage/talimat b/talimatname/genel/o/orage/talimat new file mode 100644 index 000000000..824827fab --- /dev/null +++ b/talimatname/genel/o/orage/talimat @@ -0,0 +1,24 @@ +# Tanım: Xfce için, hatırlatıcılar ile basit bir takvim uygulaması. +# URL: https://www.xfce.org/projects +# Paketçi: milisarge +# Gerekler: exo intltool xfce4-panel libnotify + +isim=orage +surum=4.12.1 +devir=1 + +kaynak=(http://archive.xfce.org/src/apps/${isim}/${surum%.*}-$surum.tar.bz2) + +derle() { +cd ${isim}-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --enable-libical \ + --disable-debug + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/o/os-installer/talimat b/talimatname/genel/o/os-installer/talimat new file mode 100644 index 000000000..ffd1ce953 --- /dev/null +++ b/talimatname/genel/o/os-installer/talimat @@ -0,0 +1,24 @@ +# Tanım: İşletim sistemini diske yükleme uygulaması +# URL: https://www.solus-project.com +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: python-setuptools gsettings-desktop-schemas gnome-desktop libtimezonemap gparted python-cairo python-geoip python-gobject python-parted xorg-app + +isim=os-installer +surum=12.5 +devir=1 +_surum=v12.5 + +kaynak=( https://github.com/solus-project/$isim/archive/${_version}.tar.gz + 10-livecd.rules) + +derle() { +cd $isim-$surum +python setup.py build +python setup.py install --optimize=1 --root=$PKG + +install -D -m 00644 dist/org.freedesktop.policykit.pkexec.policy $PKG/usr/share/polkit-1/actions/org.freedesktop.policykit.pkexec.policy +install -D -m 00755 dist/os-installer-wrapper $PKG/usr/bin/os-installer-wrapper +install -D -m 00644 $SRC/10-livecd.rules $PKG/usr/share/polkit-1/rules.d/10-livecd.rules +install -D -m 00644 dist/install-symbolic.svg $PKG/usr/share/icons/gnome/scalable/actions/install-symbolic.svg +install -D -m 00644 dist/com.solus_project.Installer.desktop $PKG/usr/share/applications/os-installer-gtk.desktop +} diff --git a/talimatname/genel/o/os-prober/talimat b/talimatname/genel/o/os-prober/talimat new file mode 100644 index 000000000..8bcf63e16 --- /dev/null +++ b/talimatname/genel/o/os-prober/talimat @@ -0,0 +1,52 @@ +# Tanım: Bir sürücü grubundaki diğer işletim sistemlerini bulmak için yardımcı program. +# URL: https://packages.debian.org/source/sid/os-prober +# Paketçi: milisarge +# Gerekler: + +isim=os-prober +surum=1.71 +devir=1 +kaynak=(http://ftp.de.debian.org/debian/pool/main/o/os-prober/os-prober_1.71.tar.xz) + +derle() { + cd $isim-$surum + + # Compile newns + make + +# Create a hierharchy for os-prober package, and copy files into it. +mkdir -p $PKG/var/lib/$isim + +mkdir -p $PKG/usr/bin +cp linux-boot-prober $PKG/usr/bin +cp os-prober $PKG/usr/bin + +mkdir -p $PKG/usr/lib/$isim +cp newns $PKG/usr/lib/$isim + +mkdir -p $PKG/usr/lib/os-probes +cp os-probes/common/* $PKG/usr/lib/os-probes +mkdir -p $PKG/usr/lib/os-probes/mounted +mkdir -p $PKG/usr/lib/os-probes/mounted/efi +cp os-probes/mounted/common/* $PKG/usr/lib/os-probes/mounted +cp os-probes/mounted/x86/efi/* $PKG/usr/lib/os-probes/mounted/efi +rm -r os-probes/mounted/x86/efi +cp os-probes/mounted/x86/* $PKG/usr/lib/os-probes/mounted + +mkdir -p $PKG/usr/lib/os-probes/init +cp os-probes/init/common/* $PKG/usr/lib/os-probes/init + +mkdir -p $PKG/usr/lib/linux-boot-probes +cp linux-boot-probes/common/* $PKG/usr/lib/linux-boot-probes/ +mkdir $PKG/usr/lib/linux-boot-probes/mounted +cp linux-boot-probes/mounted/common/* $PKG/usr/lib/linux-boot-probes/mounted +cp linux-boot-probes/mounted/x86/* $PKG/usr/lib/linux-boot-probes/mounted + +mkdir -p $PKG/usr/share/$isim +cp common.sh $PKG/usr/share/$isim +chmod +x $PKG/usr/share/$isim/common.sh +# End of making os-prober directory hierarchy. + +tar -cvjf os-prober#1.70.pkg.tar.bz2 $PKG/* + +} diff --git a/talimatname/genel/o/ostree/talimat b/talimatname/genel/o/ostree/talimat new file mode 100644 index 000000000..b04456fb3 --- /dev/null +++ b/talimatname/genel/o/ostree/talimat @@ -0,0 +1,45 @@ +# Tanım: İşletim sistemi ve konteyner ikili dağıtımı ve yükseltmeleri +# URL: https://github.com/ostreedev/ostree +# Paketçi: Cihan_Alkan +# Gerekler: glib libsoup gpgme fuse gobject-introspection libxslt python syslinux gjs elfutils +# Grup: sistem + +isim=ostree +surum=2018.1 +devir=1 +kaynak=() + +derle() { + adres="https://github.com/ostreedev/ostree" + git_indir ${adres} ${isim} + adres1="https://github.com/mendsley/bsdiff" + git_indir ${adres1} $SRC/bsdiff + adres2="https://git.gnome.org/browse/libglnx" + git_indir ${adres2} $SRC/libglnx + + cd ${isim} + git submodule init + git config --local submodule.bsdiff.url "$SRC/bsdiff" + git config --local submodule.libglnx.url "$SRC/libglnx" + git submodule update + + find . -name '*.py' -exec sed -i '1s/python$/&2/' {} + + + NOCONFIGURE=1 ./autogen.sh + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --sbindir=/usr/bin \ + --libexecdir=/usr/lib \ + --without-mkinitcpio \ + --with-openssl \ + --with-builtin-grub2-mkconfig \ + --enable-experimental-api \ + --disable-static \ + --disable-gtk-doc + + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + make + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/o/owncloud-cli/talimat b/talimatname/genel/o/owncloud-cli/talimat new file mode 100644 index 000000000..f129cd071 --- /dev/null +++ b/talimatname/genel/o/owncloud-cli/talimat @@ -0,0 +1,27 @@ +# Tanım: OwnCloud Masaüstü İstemcisi, ownCloud Sunucusu'ndan bilgisayarınızla dosyaları senkronize etmek için kullanılan bir araçtır. +# URL: http://owncloud.org/ +# Paketçi: milisarge +# Gerekler: cmake qt5 qtkeychain-qt5 + +isim=owncloud-cli +devir=2 +surum=2.0.2 +_isim=owncloudclient + +kaynak=(https://download.owncloud.com/desktop/stable/${_name}-$surum.tar.xz) + +derle() { + +mkdir build +cd build + +cmake ../$_name-$surum \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_SYSCONFDIR=/etc/$isim \ + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/o/oxygen-fonts/talimat b/talimatname/genel/o/oxygen-fonts/talimat new file mode 100644 index 000000000..ab208bf83 --- /dev/null +++ b/talimatname/genel/o/oxygen-fonts/talimat @@ -0,0 +1,19 @@ +# Tanım: Oksijen fontları paketi, KDE tarafından kullanılan bir yazı tipidir. +# URL: http://www.kde.org +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: cmake fontforge + +isim=oxygen-fonts +surum=5.4.3 +devir=1 + +kaynak=( http://download.kde.org/stable/plasma/$surum/$isim-$surum.tar.xz ) + +derle() { + cd $isim-$surum + cmake -DCMAKE_INSTALL_PREFIX=/usr + + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/o/oxygen-gtk2/talimat b/talimatname/genel/o/oxygen-gtk2/talimat new file mode 100644 index 000000000..48c55d903 --- /dev/null +++ b/talimatname/genel/o/oxygen-gtk2/talimat @@ -0,0 +1,21 @@ +# Tanım: Oxygen-gtk2, gtk2 uygulamaları için Oksijen teması. +# URL: https://projects.kde.org/projects/playground/artwork/oxygen-gtk/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: cmake gtk2 dbus-glib cairo + + +isim=oxygen-gtk2 +surum=1.4.6 +devir=1 + +kaynak=(http://download.kde.org/stable/oxygen-gtk2/$surum/src/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + mkdir build + cd build + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + .. + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/o/oxygen-gtk3/oxygen-gtk3.kur-kos b/talimatname/genel/o/oxygen-gtk3/oxygen-gtk3.kur-kos new file mode 100644 index 000000000..684d0599e --- /dev/null +++ b/talimatname/genel/o/oxygen-gtk3/oxygen-gtk3.kur-kos @@ -0,0 +1,14 @@ +if grep "\[Settings\]" /etc/gtk-3.0/settings.ini>/dev/null; then + if grep "gtk-theme-name" /etc/gtk-3.0/settings.ini>/dev/null; then + exit 0 + else + echo "gtk-theme-name = oxygen-gtk" >> /etc/gtk-3.0/settings.ini + fi +else + + cat > /etc/gtk-3.0/settings.ini << "EOF" +[Settings] +gtk-theme-name = oxygen-gtk +EOF + +fi diff --git a/talimatname/genel/o/oxygen-gtk3/oxygen-gtk3.okubeni b/talimatname/genel/o/oxygen-gtk3/oxygen-gtk3.okubeni new file mode 100644 index 000000000..4bd83db6d --- /dev/null +++ b/talimatname/genel/o/oxygen-gtk3/oxygen-gtk3.okubeni @@ -0,0 +1,3 @@ +A la fin de l'install ET en user : + +ln -s /usr/share/themes/oxygen-gtk/gtk-3.0 ~/.config/gtk-3.0 diff --git a/talimatname/genel/o/oxygen-gtk3/talimat b/talimatname/genel/o/oxygen-gtk3/talimat new file mode 100644 index 000000000..7325db351 --- /dev/null +++ b/talimatname/genel/o/oxygen-gtk3/talimat @@ -0,0 +1,22 @@ +# Tanım: Oxygen-gtk3, gtk3 uygulamaları için Oksijen teması. +# URL: https://projects.kde.org/projects/playground/artwork/oxygen-gtk/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: cmake gtk3 dbus-glib cairo + + +isim=oxygen-gtk3 +surum=1.4.1 +devir=1 + +kaynak=(http://download.kde.org/stable/$isim/$surum/src/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + mkdir build + cd build + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + .. + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/p/p0f/talimat b/talimatname/genel/p/p0f/talimat new file mode 100644 index 000000000..e3bbf4dbf --- /dev/null +++ b/talimatname/genel/p/p0f/talimat @@ -0,0 +1,24 @@ +# Tanım: p0f, tcp-ip trafik akışını takip ve dinleme uygulaması +# URL: http://lcamtuf.coredump.cx/p0f3/ +# Paketçi: milisarge +# Gerekler: libpcap + +isim=p0f +surum=3.09b +devir=1 + +kaynak=(http://lcamtuf.coredump.cx/p0f3/releases/p0f-3.09b.tgz) + +derle() { + cd $isim-$surum + install -d $PKG/usr/bin + install -d $PKG/usr/share/$isim + install -d $PKG/etc + make + cd tools + make + cd .. + cp p0f tools/p0f-client tools/p0f-sendsyn tools/p0f-sendsyn6 $PKG/usr/bin/ + cp docs/* $PKG/usr/share/$isim/ + cp p0f.fp $PKG/etc/p0f +} diff --git a/talimatname/genel/p/p11-kit/libnssckbi-compat.patch b/talimatname/genel/p/p11-kit/libnssckbi-compat.patch new file mode 100644 index 000000000..d1b70a3bb --- /dev/null +++ b/talimatname/genel/p/p11-kit/libnssckbi-compat.patch @@ -0,0 +1,57 @@ +diff -upr p11-kit-0.23.1.orig/trust/Makefile.am p11-kit-0.23.1/trust/Makefile.am +--- p11-kit-0.23.1.orig/trust/Makefile.am 2014-11-12 12:58:50.000000000 +0200 ++++ p11-kit-0.23.1/trust/Makefile.am 2015-03-30 16:43:35.275993032 +0300 +@@ -61,6 +61,20 @@ p11_kit_trust_la_LDFLAGS = \ + + p11_kit_trust_la_SOURCES = $(TRUST_SRCS) + ++libnssckbi_compatdir = $(libdir) ++libnssckbi_compat_LTLIBRARIES = \ ++ libnssckbi-p11-kit.la ++ ++libnssckbi_p11_kit_la_CFLAGS = \ ++ -DLIBNSSCKBI_COMPAT \ ++ $(p11_kit_trust_la_CFLAGS) ++ ++libnssckbi_p11_kit_la_LIBADD = $(p11_kit_trust_la_LIBADD) ++ ++libnssckbi_p11_kit_la_LDFLAGS = $(p11_kit_trust_la_LDFLAGS) ++ ++libnssckbi_p11_kit_la_SOURCES = $(p11_kit_trust_la_SOURCES) ++ + libtrust_testable_la_LDFLAGS = \ + -no-undefined + +diff -upr p11-kit-0.23.1.orig/trust/module.c p11-kit-0.23.1/trust/module.c +--- p11-kit-0.23.1.orig/trust/module.c 2014-12-16 12:24:01.000000000 +0200 ++++ p11-kit-0.23.1/trust/module.c 2015-03-30 16:48:41.370360130 +0300 +@@ -196,7 +196,11 @@ create_tokens_inlock (p11_array *tokens, + const char *label; + } labels[] = { + { "~/", "User Trust" }, ++#ifdef LIBNSSCKBI_COMPAT ++ { DATA_DIR, "Builtin Object Token" }, ++#else + { DATA_DIR, "Default Trust" }, ++#endif + { SYSCONFDIR, "System Trust" }, + { NULL }, + }; +@@ -521,9 +525,15 @@ sys_C_GetSlotInfo (CK_SLOT_ID id, + info->flags = CKF_TOKEN_PRESENT; + strncpy ((char*)info->manufacturerID, MANUFACTURER_ID, 32); + +- /* If too long, copy the first 64 characters into buffer */ +- path = p11_token_get_path (token); ++#ifdef LIBNSSCKBI_COMPAT ++ /* Change description to match libnssckbi so HPKP works in Chromium */ ++ if (strcmp (p11_token_get_label (token), "Builtin Object Token" ) == 0) ++ path = "NSS Builtin Objects"; ++ else ++#endif ++ path = p11_token_get_path (token); + length = strlen (path); ++ /* If too long, copy the first 64 characters into buffer */ + if (length > sizeof (info->slotDescription)) + length = sizeof (info->slotDescription); + memset (info->slotDescription, ' ', sizeof (info->slotDescription)); diff --git a/talimatname/genel/p/p11-kit/talimat b/talimatname/genel/p/p11-kit/talimat new file mode 100644 index 000000000..8dd4a2168 --- /dev/null +++ b/talimatname/genel/p/p11-kit/talimat @@ -0,0 +1,26 @@ +# Tanım: PKCS 11 modüllerini yüklemek ve numaralandırmak için bir yol sağlar. +# URL: http://p11-glue.freedesktop.org/p11-kit.html +# Paketçi: milisarge +# Gerekler: libffi libtasn1 + +isim=p11-kit +surum=0.23.7 +devir=1 + +kaynak=(https://github.com/p11-glue/p11-kit/archive/$surum.tar.gz + libnssckbi-compat.patch) + +derle() { + cd $isim-$surum + patch -Np1 -i ../libnssckbi-compat.patch + NOCONFIGURE=1 ./autogen.sh + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --libexecdir=/usr/lib \ + --with-module-path=/usr/lib/pkcs11 \ + --with-trust-paths=/etc/ca-certificates/trust-source:/usr/share/ca-certificates/trust-source:/etc/ssl + make + make DESTDIR="$PKG" install + ln -srf "$PKG/usr/bin/update-ca-trust" "$PKG/usr/lib/p11-kit/trust-extract-compat" +} diff --git a/talimatname/genel/p/p7zip/CVE-2016-9296.patch b/talimatname/genel/p/p7zip/CVE-2016-9296.patch new file mode 100644 index 000000000..fa98afb4f --- /dev/null +++ b/talimatname/genel/p/p7zip/CVE-2016-9296.patch @@ -0,0 +1,11 @@ +--- ./CPP/7zip/Archive/7z/7zIn.cpp.orig 2016-11-21 01:42:29.460901230 +0000 ++++ ./CPP/7zip/Archive/7z/7zIn.cpp 2016-11-21 01:42:57.481197725 +0000 +@@ -1097,7 +1097,8 @@ HRESULT CInArchive::ReadAndDecodePackedS + if (CrcCalc(data, unpackSize) != folders.FolderCRCs.Vals[i]) + ThrowIncorrect(); + } +- HeadersSize += folders.PackPositions[folders.NumPackStreams]; ++ if (folders.PackPositions) ++ HeadersSize += folders.PackPositions[folders.NumPackStreams]; + return S_OK; + } diff --git a/talimatname/genel/p/p7zip/talimat b/talimatname/genel/p/p7zip/talimat new file mode 100644 index 000000000..f17ebb6ff --- /dev/null +++ b/talimatname/genel/p/p7zip/talimat @@ -0,0 +1,31 @@ +# Tanım: 7zip sıkıştırılmış dosya arşivinin konsol uygulaması +# URL: http://p7zip.sourceforge.net +# Paketçi: milisarge +# Gerekler: yasm +# Grup: ağ + +isim=p7zip +surum=16.02 +devir=1 + +kaynak=(https://downloads.sourceforge.net/project/$isim/$isim/$surum/${isim}_${surum}_src_all.tar.bz2 + CVE-2016-9296.patch) + +derle() { + cd ${isim}_$surum + # https://sourceforge.net/p/p7zip/bugs/185/ + patch -Np1 -i $SRC/CVE-2016-9296.patch + + cp makefile.linux_amd64_asm makefile.machine + + make all3 + + make install \ + DEST_DIR="$PKG" \ + DEST_HOME=/usr + + # Remove documentation for the GUI file manager + rm -r "$PKG/usr/share/doc/" + + install -d "${PKG}"/usr/share/licenses/p7zip +} diff --git a/talimatname/genel/p/pa-applet/pa-applet.desktop b/talimatname/genel/p/pa-applet/pa-applet.desktop new file mode 100644 index 000000000..83d773766 --- /dev/null +++ b/talimatname/genel/p/pa-applet/pa-applet.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Encoding=UTF-8 +Version=0.9.4 +Type=Application +Name=pa-applet +Comment=Ses simgesini sistem çekmecesine ekler +Exec=pa-applet +OnlyShowIn=XFCE; +StartupNotify=false +Terminal=false +Hidden=false + diff --git a/talimatname/genel/p/pa-applet/talimat b/talimatname/genel/p/pa-applet/talimat new file mode 100644 index 000000000..5d6ae2706 --- /dev/null +++ b/talimatname/genel/p/pa-applet/talimat @@ -0,0 +1,26 @@ +# Tanım: PulseAudio kontrol uygulaması +# URL: https://github.com/fernandotcl/pa-applet +# Paketçi: yasarciv67@gmail.com +# Gerekler: glib gtk3 libnotify pulseaudio + +isim=pa-applet +surum=2017.09 +devir=1 +kaynak=(pa-applet.desktop) + +derle() { +git clone https://github.com/fernandotcl/pa-applet.git + cd "$isim" + + echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) + + CFLAGS+=" -Wno-error" + ./autogen.sh + ./configure --prefix=/usr + make + make DESTDIR="$PKG/" install + + install -D -m644 LICENSE "${PKG}/usr/share/licenses/${isim}/LICENSE" + cd .. + install -D pa-applet.desktop "$PKG/etc/xdg/autostart/pa-applet.desktop" +} diff --git a/talimatname/genel/p/packit/talimat b/talimatname/genel/p/packit/talimat new file mode 100644 index 000000000..27a4c43c8 --- /dev/null +++ b/talimatname/genel/p/packit/talimat @@ -0,0 +1,18 @@ +# Tanım: Ağ sızma ve paket takip uygulaması +# url: https://github.com/eribertomota/packit/ +# Paketçi:milisarge +# Gerekler: libnet libpcap + +isim=packit +surum=1.5 +devir=1 +kaynak=(https://github.com/eribertomota/packit/archive/$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./autogen.sh + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/p/pamsshagentauth/talimat b/talimatname/genel/p/pamsshagentauth/talimat new file mode 100644 index 000000000..c8960fa86 --- /dev/null +++ b/talimatname/genel/p/pamsshagentauth/talimat @@ -0,0 +1,16 @@ +# Tanım: ssh-agent ile pam modülünün yetkilendirilmesi +# URL: http://pamsshagentauth.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: + +isim=pamsshagentauth +surum=0.10.3 +devir=1 +kaynak=(http://downloads.sourceforge.net/project/pamsshagentauth/pam_ssh_agent_auth/v$surum/pam_ssh_agent_auth-$surum.tar.bz2) + +derle() { + cd "$SRC/pam_ssh_agent_auth-$surum" + ./configure --prefix=/usr --with-mantype=man --libexecdir=/usr/lib/security + make + make DESTDIR="$PKG/" install +} diff --git a/talimatname/genel/p/pango-perl/talimat b/talimatname/genel/p/pango-perl/talimat new file mode 100644 index 000000000..2fd251f9b --- /dev/null +++ b/talimatname/genel/p/pango-perl/talimat @@ -0,0 +1,18 @@ +# Tanım: Pango için Perl bağları +# URL: http://gtk2-perl.sourceforge.net/ +# Paketçi: Cihan_Alkan +# Gerekler: perl-extutils-pkgconfig perl-extutils-depends pango cairo-perl perl-glib +# Grup: kütüphane + +isim=pango-perl +surum=1.227 +devir=1 +kaynak=(https://downloads.sourceforge.net/sourceforge/gtk2-perl/Pango-$surum.tar.gz) + +derle() { + cd Pango-$surum + export PERL_USE_UNSAFE_INC=1 + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make + make install DESTDIR="${PKG}" +} diff --git a/talimatname/genel/p/pango/talimat b/talimatname/genel/p/pango/talimat new file mode 100644 index 000000000..a79388fb0 --- /dev/null +++ b/talimatname/genel/p/pango/talimat @@ -0,0 +1,21 @@ +# Tanım: Metin düzeni ve sunumu için bir kütüphane +# URL: http://gnome.org +# Paketçi: milisarge +# Gerekler: python cairo freetype libthai xorg-libxft gobject-introspection harfbuzz xorg-libxxf86vm + +isim=pango +surum=1.38.1 +devir=2 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--mandir=/usr/share/man \ +--infodir=/usr/share/info \ +--sysconfdir=/etc +make +make DESTDIR=$PKG install +install -m755 -d $PKG/etc/pango +} diff --git a/talimatname/genel/p/pangomm/talimat b/talimatname/genel/p/pangomm/talimat new file mode 100644 index 000000000..bf29517a8 --- /dev/null +++ b/talimatname/genel/p/pangomm/talimat @@ -0,0 +1,16 @@ +# Tanım: Pango için C ++ bağları +# URL: http://cairographics.org/cairomm/ +# Paketçi: milisarge +# Gerekler: pango glibmm cairomm + +isim=pangomm +surum=2.38.1 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) +derle() { +cd $isim-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/pangox-compat/talimat b/talimatname/genel/p/pangox-compat/talimat new file mode 100644 index 000000000..039d9b81b --- /dev/null +++ b/talimatname/genel/p/pangox-compat/talimat @@ -0,0 +1,21 @@ +# Tanım: Pango için X Pencere Sistemi yazı tipi desteği +# URL: http://gnome.org +# Paketçi: milisarge +# Gerekler: pango + +isim=pangox-compat +surum=0.0.2 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--mandir=/usr/share/man \ +--infodir=/usr/share/info \ +--sysconfdir=/etc +make +make DESTDIR=$PKG install +rm -rf $PKG/usr/share/gtk-doc +} diff --git a/talimatname/genel/p/parole/talimat b/talimatname/genel/p/parole/talimat new file mode 100644 index 000000000..84a2ab617 --- /dev/null +++ b/talimatname/genel/p/parole/talimat @@ -0,0 +1,16 @@ +# Tanım: GStreamer çerçevesine dayanan modern bir medya oynatıcı +# URL: http://docs.xfce.org/apps/parole/start +# Paketçi: milisarge +# Gerekler: libnotify dbus-glib xfce4-libui gstreamer1-plugins-base gstreamer1-plugins-good libdvdcss libdvdnav libdvdread startup-notification + +isim=parole +surum=1.0.1 +devir=1 + +kaynak=(http://archive.xfce.org/src/apps/parole/${surum%.*}/parole-$surum.tar.bz2) +derle() { + cd parole-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/partclone/talimat b/talimatname/genel/p/partclone/talimat new file mode 100644 index 000000000..005942800 --- /dev/null +++ b/talimatname/genel/p/partclone/talimat @@ -0,0 +1,21 @@ +# Tanım: Bir bölümde kullanılan blokları kaydetmek ve geri yüklemek için kullanılan yardımcı programlar +# URL: http://partclone.org +# Paketçi: Cihan_Alkan +# Gerekler: reiserfsprogs ntfs-3g +# Grup: + +isim=partclone +surum=0.2.89 +devir=1 +kaynak=(http://partclone.nchc.org.tw/download/stable/$surum/${isim}_$surum.orig.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --enable-extfs --enable-fat \ + --enable-hfsp --enable-btrfs --enable-ncursesw --enable-ntfs \ + --enable-exfat --enable-f2fs --enable-minix --enable-xfs \ + --sbindir=/usr/bin + make + make PREFIX=/usr DESTDIR="$PKG" install + rm -rf $PKG/usr/share/man +} diff --git a/talimatname/genel/p/parted/talimat b/talimatname/genel/p/parted/talimat new file mode 100644 index 000000000..145ae2c68 --- /dev/null +++ b/talimatname/genel/p/parted/talimat @@ -0,0 +1,30 @@ +# Tanım: Bölüm oluşturma, yok etme, yeniden boyutlandırma, kontrol etme ve kopyalama için bir program +# URL: http://www.gnu.org/software/parted/index.shtml +# Paketçi: milisarge +# Gerekler: lvm2 + +isim=parted +surum=3.2 +devir=1 + +kaynak=(http://ftp.gnu.org/gnu/$isim/$isim-$surum.tar.xz + http://www.linuxfromscratch.org/patches/blfs/svn/$isim-$surum-devmapper-1.patch) + +derle() { +cd $isim-$surum +patch -Np1 -i ../parted-3.2-devmapper-1.patch +./configure --prefix=/usr \ +--disable-static +make +make DESTDIR=$PKG install +rm $PKG/usr/share/info/dir +make -C doc html +makeinfo --html -o doc/html doc/parted.texi +makeinfo --plaintext -o doc/parted.txt doc/parted.texi + +install -v -m755 -d $PKG/usr/share/doc/parted-$surum/html +install -v -m644 doc/html/* \ +$PKG/usr/share/doc/parted-$surum/html +install -v -m644 doc/{FAT,API,parted.{txt,html}} \ +$PKG/usr/share/doc/parted-$surum +} diff --git a/talimatname/genel/p/partitionmanager/talimat b/talimatname/genel/p/partitionmanager/talimat new file mode 100644 index 000000000..06a05fcfc --- /dev/null +++ b/talimatname/genel/p/partitionmanager/talimat @@ -0,0 +1,23 @@ +# Tanım: Diskleri, bölümleri ve dosya sistemlerini yönetmenizi sağlayan bir KDE yardımcı programı +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules qt5 kpmcore kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-kcrash kf5-kdbusaddons kf5-kdoctools kf5-ki18n kf5-kiconthemes kf5-kjobwidgets kf5-kio kf5-kservice kf5-kxmlgui kf5-kwidgetsaddons + +isim=partitionmanager +surum=2.2.1 +devir=1 + +kaynak=( http://download.kde.org/stable/$isim/$surum/src/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/p/patchutils/talimat b/talimatname/genel/p/patchutils/talimat new file mode 100644 index 000000000..19b491e3f --- /dev/null +++ b/talimatname/genel/p/patchutils/talimat @@ -0,0 +1,20 @@ +# Tanım: Düzeltme eki dosyaları üzerinde çalışan bir program koleksiyonu. +# URL: http://cyberelk.net/tim/software/patchutils/ +# Paketçi: milisarge +# Gerekler: + +isim=patchutils +surum=0.3.2 +devir=1 +kaynak=(http://cyberelk.net/tim/data/patchutils/stable/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + + ./configure \ + --prefix=/usr \ + --mandir=/usr/man + + make CFLAGS="$CFLAGS" + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/pavucontrol-qt/talimat b/talimatname/genel/p/pavucontrol-qt/talimat new file mode 100644 index 000000000..7c33bce71 --- /dev/null +++ b/talimatname/genel/p/pavucontrol-qt/talimat @@ -0,0 +1,21 @@ +# Tanım: Pulseaudio ayarları için bir Qt tabanlı GUI yapılandırma aracıdır. +# URL: http://lxqt.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: liblxqt pulseaudio glib + +isim=pavucontrol-qt +surum=0.2.0 +devir=1 +kaynak=(https://github.com/lxde/$isim/releases/download/$surum/$isim-$surum.tar.xz) + + +derle() { + mkdir -v build + cd build + cmake $SRC/$isim-$surum \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/pavucontrol/pavucontrol-gtk2.patch b/talimatname/genel/p/pavucontrol/pavucontrol-gtk2.patch new file mode 100644 index 000000000..ae29c674e --- /dev/null +++ b/talimatname/genel/p/pavucontrol/pavucontrol-gtk2.patch @@ -0,0 +1,32 @@ +diff -u -r pavucontrol-2.0.orig/src/devicewidget.cc pavucontrol-2.0/src/devicewidget.cc +--- pavucontrol-2.0.orig/src/devicewidget.cc 2014-11-10 10:30:36.273878918 +0900 ++++ pavucontrol-2.0/src/devicewidget.cc 2014-11-10 10:39:18.554891364 +0900 +@@ -63,8 +63,13 @@ + for (unsigned i = 0; i < PA_CHANNELS_MAX; i++) + channelWidgets[i] = NULL; + ++#ifdef HAVE_GTK3 + offsetAdjustment = Gtk::Adjustment::create(0.0, -2000.0, 2000.0, 10.0, 50.0, 0.0); + offsetButton->configure(offsetAdjustment, 0, 2); ++#else ++ offsetAdjustment = new Gtk::Adjustment(0.0, -2000.0, 2000.0, 10.0, 50.0, 0.0); ++ offsetButton->configure(*offsetAdjustment, 0, 2); ++#endif + } + + void DeviceWidget::init(MainWindow* mainWindow, Glib::ustring deviceType) { +diff -u -r pavucontrol-2.0.orig/src/devicewidget.h pavucontrol-2.0/src/devicewidget.h +--- pavucontrol-2.0.orig/src/devicewidget.h 2014-11-10 10:30:36.273878918 +0900 ++++ pavucontrol-2.0/src/devicewidget.h 2014-11-10 10:39:12.869891228 +0900 +@@ -98,7 +98,11 @@ + Gtk::HBox *portSelect, *offsetSelect; + Gtk::ComboBox *portList; + Glib::RefPtr<Gtk::ListStore> treeModel; ++#ifdef HAVE_GTK3 + Glib::RefPtr<Gtk::Adjustment> offsetAdjustment; ++#else ++ Gtk::Adjustment *offsetAdjustment; ++#endif + + private: + Glib::ustring mDeviceType; diff --git a/talimatname/genel/p/pavucontrol/talimat b/talimatname/genel/p/pavucontrol/talimat new file mode 100644 index 000000000..e5a70fdcc --- /dev/null +++ b/talimatname/genel/p/pavucontrol/talimat @@ -0,0 +1,27 @@ +# Tanım: PulseAudio Ses Kontrolü (pavucontrol), PulseAudio ses sunucusu için basit bir GTK tabanlı ses kontrol aracıdır ("karıştırıcı"). +# URL: http://www.freedesktop.org/software/pulseaudio/pavucontrol/ +# Paketçi: milisarge +# Gerekler: pulseaudio gtk2 libcanberra gtkmm libsigc++ + +isim=pavucontrol +surum=2.0 +devir=1 +kaynak=(http://freedesktop.org/software/pulseaudio/pavucontrol/$isim-$surum.tar.xz pavucontrol-gtk2.patch) + +derle() { + cd $isim-$surum + + # Fix gtk2 compilation + patch -p1 -i $SRC/pavucontrol-gtk2.patch + + export CXXFLAGS="$CXXFLAGS -std=c++11" + ./configure \ + --prefix=/usr \ + --disable-gtk3 \ + --disable-lynx \ + --disable-dependency-tracking + make + make DESTDIR=$PKG install + + rm -rf $PKG/usr/share/doc +} diff --git a/talimatname/genel/p/pax-utils/libcap.pc b/talimatname/genel/p/pax-utils/libcap.pc new file mode 100644 index 000000000..5f8d6b7ba --- /dev/null +++ b/talimatname/genel/p/pax-utils/libcap.pc @@ -0,0 +1,10 @@ +prefix=/usr +exec_prefix=/usr +libdir=/usr/lib +includedir=/usr/include/pcap + +Name: libcap +Description: Library to deal with kernel modules +Version: 22 +Libs: -L${libdir} -lcap +Cflags: -I${includedir} diff --git a/talimatname/genel/p/pax-utils/talimat b/talimatname/genel/p/pax-utils/talimat new file mode 100644 index 000000000..5c2a20fdb --- /dev/null +++ b/talimatname/genel/p/pax-utils/talimat @@ -0,0 +1,19 @@ +# Tanım: ELF 32/64 ikililer için araçlar +# URL: https://wiki.gentoo.org/wiki/Hardened/PaX_Utilities +# Paketçi: milisarge +# Gerekler: +# Grup: araçlar + +isim=pax-utils +surum=1.2.2 +devir=1 +kaynak=(http://distfiles.gentoo.org/distfiles/$isim-$surum.tar.xz + libcap.pc) + +derle(){ + cd "$isim-$surum" + [ ! -f /usr/lib/pkgconfig/libcap.pc ] && cp $SRC/libcap.pc /usr/lib/pkgconfig/ + make USE_CAP=yes + make DESTDIR="$PKG/" install; + rm -f "$PKG"/usr/bin/lddtree +} diff --git a/talimatname/genel/p/pax/talimat b/talimatname/genel/p/pax/talimat new file mode 100644 index 000000000..34224d552 --- /dev/null +++ b/talimatname/genel/p/pax/talimat @@ -0,0 +1,32 @@ +# Tanım: Dosyaları çeşitli biçimlerde arşivlere ve arşivlerden kopyalar. +# URL: http://downloads.sourceforge.net/heirloom +# Paketçi: milisarge +# Gerekler: + +isim=pax +surum=070715 +devir=1 +kaynak=(http://downloads.sourceforge.net/heirloom/heirloom-070715.tar.bz2) + +derle() { + +cd heirloom-$surum + +sed -i build/mk.config \ + -e '/LIBZ/s@ -Wl[^ ]*@@g' \ + -e '/LIBBZ2/{s@^#@@;s@ -Wl[^ ]*@@g}' \ + -e '/BZLIB/s@0@1@' + +make makefiles +make -C libcommon +make -C libuxre +make -C cpio + +install -v -dm 755 $PKG/usr/bin +install -v -dm 755 $PKG/usr/share/man/man1 + +install -v -m755 cpio/pax_su3 $PKG/usr/bin/pax +install -v -m644 cpio/pax.1 $PKG/usr/share/man/man1 + + +} diff --git a/talimatname/genel/p/paxtest/talimat b/talimatname/genel/p/paxtest/talimat new file mode 100644 index 000000000..8c599f81c --- /dev/null +++ b/talimatname/genel/p/paxtest/talimat @@ -0,0 +1,17 @@ +# Tanım: Linux kernel pax güvenlik testi +# Url: http://codemonkey.org.uk/projects/trinity/ +# Paketçi: milisarge +# Gerekler: +# Grup: güvenlik + +isim=paxtest +surum=0.9.15 +devir=1 +kaynak=(https://grsecurity.net/~spender/${isim}-${surum}.tar.gz) + +derle() { + cd $isim-$surum + _make="make -f Makefile.psm BINDIR=/usr/bin RUNDIR=/usr/lib/$isim" + $_make + $_make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/p/pcmanfm-qt/talimat b/talimatname/genel/p/pcmanfm-qt/talimat new file mode 100644 index 000000000..100f621ea --- /dev/null +++ b/talimatname/genel/p/pcmanfm-qt/talimat @@ -0,0 +1,21 @@ +# Tanım: LXQt dosya yöneticisi, PCManFM'in Qt portu +# URL: http://lxqt.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: libfm-qt lxde-menu-data + +isim=pcmanfm-qt +surum=0.13.0 +devir=1 +kaynak=(https://github.com/lxde/$isim/releases/download/$surum/$isim-$surum.tar.xz) + + +derle() { + mkdir -v build + cd build + cmake $SRC/$isim-$surum \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/pcmanfm/talimat b/talimatname/genel/p/pcmanfm/talimat new file mode 100755 index 000000000..7c7780d39 --- /dev/null +++ b/talimatname/genel/p/pcmanfm/talimat @@ -0,0 +1,18 @@ +# Tanım: Son derece hızlı, hafif, sekmeli tarama özellikli zengin dosya yöneticisi +# URL: http://pcmanfm.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: libfm lxde-menu-data libexif +# Grup: + +isim=pcmanfm +surum=1.3.0 +devir=1 + +kaynak=(http://downloads.sourceforge.net/${isim}/${isim}-$surum.tar.xz) +derle() { +cd $isim-$surum +./configure --prefix=/usr --sysconfdir=/etc +make +make DESTDIR=$PKG install +sed -i 's/System;//' $PKG/usr/share/applications/pcmanfm.desktop +} diff --git a/talimatname/genel/p/pcre/talimat b/talimatname/genel/p/pcre/talimat new file mode 100644 index 000000000..b4be64e2a --- /dev/null +++ b/talimatname/genel/p/pcre/talimat @@ -0,0 +1,30 @@ +# Tanım: Perl ile Uyumlu Normal İfade kütüphaneleri. +# URL: http://www.pcre.org/ +# Paketçi: milisarge +# Gerekler: + +isim=pcre +surum=8.38 +devir=1 + +kaynak=( ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/$isim-$surum.tar.bz2 ) +derle() { +cd $isim-$surum + +[ "${CARCH}" = "x86_64" ] && export CFLAGS="${CFLAGS} -fPIC" + +./configure --prefix=/usr \ +--docdir=/usr/share/doc/pcre-$surum \ +--enable-unicode-properties \ +--enable-pcre16 \ +--enable-pcre32 \ +--enable-pcregrep-libz \ +--enable-pcregrep-libbz2 \ +--enable-pcretest-libreadline \ +--disable-static +make +make DESTDIR=$PKG install +mkdir $PKG/lib +mv -v $PKG/usr/lib/libpcre.so.* $PKG/lib +ln -sfv ../../lib/$(readlink $PKG/usr/lib/libpcre.so) $PKG/usr/lib/libpcre.so +} diff --git a/talimatname/genel/p/pcre2/talimat b/talimatname/genel/p/pcre2/talimat new file mode 100644 index 000000000..fdabfda4f --- /dev/null +++ b/talimatname/genel/p/pcre2/talimat @@ -0,0 +1,28 @@ +# Tanım: Perl ile Uyumlu Normal İfade kütüphaneleri (2nci vers.) +# URL: http://www.pcre.org/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: + +isim=pcre2 +surum=10.22 +devir=1 + +kaynak=( ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/$isim-$surum.tar.bz2 ) +PKGMK_GROUPS=(devel man doc) +derle() { +cd $isim-$surum + +[ "${CARCH}" = "x86_64" ] && export CFLAGS="${CFLAGS} -fPIC" + +./configure --prefix=/usr \ +--docdir=/usr/share/doc/pcre-$surum \ +--enable-unicode-properties \ +--enable-pcre2-16 \ +--enable-pcre2-32 \ +--enable-pcre2grep-libz \ +--enable-pcre2grep-libbz2 \ +--enable-pcre2test-libreadline \ +--disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/pcsc-lite/talimat b/talimatname/genel/p/pcsc-lite/talimat new file mode 100644 index 000000000..9d44cded4 --- /dev/null +++ b/talimatname/genel/p/pcsc-lite/talimat @@ -0,0 +1,24 @@ +# Tanım: SCard API (PC/SC) kullanan smartkartlara erişim kütüphanesi +# URL: https://pcsclite.alioth.debian.org/pcsclite.html +# Paketçi: milisarge +# Gerekler: python + +isim=pcsc-lite +surum=1.8.23 +devir=1 +kaynak=(https://pcsclite.apdu.fr/files/pcsc-lite-${surum}.tar.bz2) + +derle() { + cd $isim-$surum + sed -i -e "s:python:python2:g" src/spy/pcsc-spy + ./configure --prefix=/usr \ + --sbindir=/usr/bin \ + --enable-libudev \ + --sysconfdir=/etc \ + --disable-libsystemd \ + --enable-ipcdir=/run/pcscd \ + --enable-usbdropdir=/usr/lib/pcsc/drivers + make + make DESTDIR=$PKG install + install -d ${PKG}/usr/lib/pcsc/drivers +} diff --git a/talimatname/genel/p/pcsc-perl/talimat b/talimatname/genel/p/pcsc-perl/talimat new file mode 100644 index 000000000..a9de73f0a --- /dev/null +++ b/talimatname/genel/p/pcsc-perl/talimat @@ -0,0 +1,24 @@ +# Tanım: Perl pcsc modülü +# URL: https://github.com/gitpan/pcsc-perl +# Paketçi: milisarge +# Gerekler: pcsc-lite + +isim=pcsc-perl +surum=1.4.14 +devir=1 +kaynak=(http://ludovic.rousseau.free.fr/softwares/$isim/$isim-$surum.tar.bz2) + +derle() { + export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$PKG'" \ + PERL_MB_OPT="--installdirs vendor --destdir '$PKG'" \ + MODULEBUILDRC=/dev/null + + cd "$isim-$surum" + /usr/bin/perl Makefile.PL + make + export PERL_MM_USE_DEFAULT=1 PERL5LIB="" + make DESTDIR=${PKG} install + find "$PKG" -name .packlist -o -name perllocal.pod -delete +} diff --git a/talimatname/genel/p/pcsc-tools/talimat b/talimatname/genel/p/pcsc-tools/talimat new file mode 100644 index 000000000..a9509144c --- /dev/null +++ b/talimatname/genel/p/pcsc-tools/talimat @@ -0,0 +1,19 @@ +# Tanım: PC / SC Mimarisi akıllı kart araçları +# URL: http://ludovic.rousseau.free.fr/softwares/pcsc-tools/ +# Paketçi: Cihan Alkan +# Gerekler: pcsc-lite + +isim=pcsc-tools +surum=1.5.2 +devir=1 + +kaynak=(http://ludovic.rousseau.free.fr/softwares/pcsc-tools/$isim-$surum.tar.bz2) + +derle() { + cd $SRC/$isim-$surum + ./configure + sed -i -e 's:-Wall -O2:${CFLAGS}:g' Makefile + make + make DESTDIR=$PKG install + mv $PKG/usr/local/* $PKG/usr/ +} diff --git a/talimatname/genel/p/pdfshuffler/pdfshuffler-tr.po b/talimatname/genel/p/pdfshuffler/pdfshuffler-tr.po new file mode 100644 index 000000000..12a9bd3a4 --- /dev/null +++ b/talimatname/genel/p/pdfshuffler/pdfshuffler-tr.po @@ -0,0 +1,202 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PDF-Shuffler 0.6\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-04-28 23:13+0200\n" +"PO-Revision-Date: 2018-01-05 07:49+0100\n" +"Last-Translator: Cihan Alkan <cihanalk@gmail.com>\n" +"Language-Team: Turkish <LL@li.org>\n" +"Language: tr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: pdfshuffler/pdfshuffler.py:110 +msgid "Can't load icon. Application is not installed correctly." +msgstr "Simge yüklenemiyor. Uygulama doğru yüklenmedi." + +#: pdfshuffler/pdfshuffler.py:233 +msgid "_Rotate Right" +msgstr "" + +#: pdfshuffler/pdfshuffler.py:234 +msgid "Rotate _Left" +msgstr "Sağa Döndür" + +#: pdfshuffler/pdfshuffler.py:235 +msgid "C_rop..." +msgstr "Kırp..." + +#: pdfshuffler/pdfshuffler.py:237 +msgid "_Export selection..." +msgstr "Dışa aktarma seçimi" + +#: pdfshuffler/pdfshuffler.py:299 +msgid "No document" +msgstr "Belge yok" + +#: pdfshuffler/pdfshuffler.py:301 +msgid "Several documents" +msgstr "Çeşitli belgeler" + +#: pdfshuffler/pdfshuffler.py:317 +#, python-format +msgid "Rendering thumbnails... [%(i1)s/%(i2)s]" +msgstr "Küçük resimleri oluşturuluyor ..[%(i1)s/%(i2)s]" + +#: pdfshuffler/pdfshuffler.py:435 +msgid "page" +msgstr "sayfa" + +#: pdfshuffler/pdfshuffler.py:461 +msgid "Export ..." +msgstr "Dışa aktar ..." + +#: pdfshuffler/pdfshuffler.py:470 pdfshuffler/pdfshuffler.py:586 +msgid "PDF files" +msgstr "PDF Dosyaları" + +#: pdfshuffler/pdfshuffler.py:475 pdfshuffler/pdfshuffler.py:581 +msgid "All files" +msgstr "Tüm Dosyalar" + +#: pdfshuffler/pdfshuffler.py:518 +#, python-format +msgid "" +"File %s is encrypted.\n" +"Support for encrypted files has not been implemented yet.\n" +"File export failed." +msgstr "" + +#: pdfshuffler/pdfshuffler.py:571 +msgid "Import..." +msgstr "İçe aktar" + +#: pdfshuffler/pdfshuffler.py:604 +msgid "OpenDocument not supported yet!" +msgstr "OpenDocument henüz desteklenmiyor!" + +#: pdfshuffler/pdfshuffler.py:606 +msgid "Image file not supported yet!" +msgstr "Resim dosyası henüz desteklenmiyor!" + +#: pdfshuffler/pdfshuffler.py:608 +msgid "File type not supported!" +msgstr "Dosya türü desteklenmiyor!" + +#: pdfshuffler/pdfshuffler.py:610 +#, python-format +msgid "File %s does not exist" +msgstr "Dosya %s mevcut değil" + +#: pdfshuffler/pdfshuffler.py:612 +msgid "Closed, no files selected" +msgstr "Kapatıldı, dosya seçilmedi" + +#: pdfshuffler/pdfshuffler.py:921 +msgid "Left" +msgstr "Sol" + +#: pdfshuffler/pdfshuffler.py:921 +msgid "Right" +msgstr "Sağ" + +#: pdfshuffler/pdfshuffler.py:922 +msgid "Top" +msgstr "Üst" + +#: pdfshuffler/pdfshuffler.py:922 +msgid "Bottom" +msgstr "Alt" + +#: pdfshuffler/pdfshuffler.py:940 +msgid "Crop Selected Pages" +msgstr "Seçilen Sayfaları Kırp" + +#: pdfshuffler/pdfshuffler.py:948 +msgid "Crop Margins" +msgstr "Kenar boşluklarını kırp" + +#: pdfshuffler/pdfshuffler.py:955 +#, python-format +msgid "% of width" +msgstr "% genişlik" + +#: pdfshuffler/pdfshuffler.py:955 +#, python-format +msgid "% of height" +msgstr "% yükseklik" + +#: pdfshuffler/pdfshuffler.py:993 +msgid "Dialog closed" +msgstr "Diyalog kapalı" + +#: pdfshuffler/pdfshuffler.py:1007 +#, python-format +msgid "" +"%s is a tool for rearranging and modifying PDF files. Developed using GTK+ " +"and Python" +msgstr "%s, PDF dosyalarını yeniden düzenlemek ve değiştirmek için kullanılan bir araçtır." +"GTK ve Python kullanılarak geliştirildi" + +#: data/pdfshuffler.ui.h:1 +msgid "Crop" +msgstr "Kırp" + +#: data/pdfshuffler.ui.h:2 +msgid "Delete" +msgstr "Sil" + +#: data/pdfshuffler.ui.h:3 +msgid "Import" +msgstr "İçe Aktar" + +#: data/pdfshuffler.ui.h:4 +msgid "Open a file and append it to the current document" +msgstr "Bir dosyayı açın ve geçerli belgeye ekleyin" + +#: data/pdfshuffler.ui.h:5 +msgid "Rotate left" +msgstr "Sola Döndür" + +#: data/pdfshuffler.ui.h:6 +msgid "Rotate right" +msgstr "Sağa Döndür" + +#: data/pdfshuffler.ui.h:7 +msgid "Save" +msgstr "Kaydet" + +#: data/pdfshuffler.ui.h:8 +msgid "Save as" +msgstr "Farklı Kaydet" + +#: data/pdfshuffler.ui.h:9 +msgid "Zoom in" +msgstr "Yakınlaştır" + +#: data/pdfshuffler.ui.h:10 +msgid "Zoom out" +msgstr "Uzaklaştır" + +#: data/pdfshuffler.ui.h:11 +msgid "_Edit" +msgstr "Düzenle" + +#: data/pdfshuffler.ui.h:12 +msgid "_File" +msgstr "Dosya" + +#: data/pdfshuffler.ui.h:13 +msgid "_Help" +msgstr "Yardım" + +#: data/pdfshuffler.ui.h:14 +msgid "_View" +msgstr "Görünüm" diff --git a/talimatname/genel/p/pdfshuffler/talimat b/talimatname/genel/p/pdfshuffler/talimat new file mode 100644 index 000000000..fba530b32 --- /dev/null +++ b/talimatname/genel/p/pdfshuffler/talimat @@ -0,0 +1,24 @@ +# Tanım: Pdf belgelerini birleştirme veya bölme ve döndürme, kırpma ve sayfalarını yeniden düzenleme +# URL: http://sourceforge.net/projects/pdfshuffler/ +# Paketçi: Cihan_Alkan +# Gerekler: python-poppler pypdf +# Grup: ofis_duzenleyici + +isim=pdfshuffler +surum=0.6.0 +devir=1 +kaynak=(http://downloads.sourceforge.net/$isim/$isim-$surum.tar.gz + pdfshuffler-tr.po) + +derle() { + + +# python2 fix + find $isim-$surum -name "*.py" -exec \ + sed -i "s/python/&2/" {} \; + + cd $isim-$surum + mv ../pdfshuffler-tr.po $SRC/$isim-$surum/po/tr.po + python setup.py build + python setup.py install --root="$PKG" +} diff --git a/talimatname/genel/p/peek/talimat b/talimatname/genel/p/peek/talimat new file mode 100644 index 000000000..103e9b123 --- /dev/null +++ b/talimatname/genel/p/peek/talimat @@ -0,0 +1,25 @@ +# Tanım: Kullanımı kolay bir arayüze sahip basit ekran kaydedici +# URL: https://github.com/phw/peek +# Paketçi: Cihan_Alkan +# Gerekler: cmake vala gettext gtk3 libkeybinder3 ffmpeg +# Grup: medya + + +isim=peek +surum=1.2.1 +devir=1 +kaynak=(https://github.com/phw/${isim}/archive/${surum}.tar.gz::$isim-$surum.tar.gz) + +derle() { + + mkdir -p build + cd "build" + cmake "${SRC}/$isim-$surum" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_TESTS=ON \ + -DCMAKE_BUILD_TYPE=Release \ + -DGSETTINGS_COMPILE=OFF \ + -DENABLE_FILECHOOSERNATIVE=ON + make + make DESTDIR=${PKG} install +} diff --git a/talimatname/genel/p/pencilsheep/pencilsheep.sh b/talimatname/genel/p/pencilsheep/pencilsheep.sh new file mode 100644 index 000000000..c3d35f071 --- /dev/null +++ b/talimatname/genel/p/pencilsheep/pencilsheep.sh @@ -0,0 +1 @@ +/usr/share/pencilsheep/bin/pencilsheep "$@" diff --git a/talimatname/genel/p/pencilsheep/talimat b/talimatname/genel/p/pencilsheep/talimat new file mode 100644 index 000000000..d68e6d36a --- /dev/null +++ b/talimatname/genel/p/pencilsheep/talimat @@ -0,0 +1,18 @@ +# Tanım: Resim düzenleme uygulaması +# URL: http://pencilsheep.com +# Paketçi: Cihan_Alkan +# Gerekler: sdl2-ttf +# Grup: grafik + +isim=pencilsheep +surum=0.100.04 +devir=1 +kaynak=(http://pencilsheep.com/dl/pencilsheep.deb + pencilsheep.sh) + +derle() { + ar x pencilsheep.deb + tar -xf data.tar.?z -C "$PKG" ./usr + mkdir $PKG/usr/bin + cp -r $SRC/pencilsheep.sh $PKG/usr/bin/pencilsheep +} diff --git a/talimatname/genel/p/peony/peony.kur-kos b/talimatname/genel/p/peony/peony.kur-kos new file mode 100644 index 000000000..faa1e7656 --- /dev/null +++ b/talimatname/genel/p/peony/peony.kur-kos @@ -0,0 +1,7 @@ +update-mime-database /usr/share/mime +gtk-update-icon-cache +gio-querymodules /usr/lib/gio/modules +glib-compile-schemas /usr/share/glib-2.0/schemas/ +xdg-icon-resource forceupdate --theme hicolor +gdk-pixbuf-query-loaders --update-cache +update-desktop-database -q diff --git a/talimatname/genel/p/peony/talimat b/talimatname/genel/p/peony/talimat new file mode 100644 index 000000000..1ea54158d --- /dev/null +++ b/talimatname/genel/p/peony/talimat @@ -0,0 +1,21 @@ +# Tanım: Peony dosya yöneticisi +# URL: https://github.com/ukui/peony +# Paketçi: Cihan_Alkan +# Gerekler: mate-desktop pango mate-common libnotify shared-mime-info +# Grup: ukui + +isim=peony +surum=1.0.4 +devir=1 + +kaynak=(https://github.com/ukui/peony/archive/v1.0.4.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./autogen.sh + ./configure \ + --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + --libexecdir=/usr/lib/$isim + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/perl-anyevent/talimat b/talimatname/genel/p/perl-anyevent/talimat new file mode 100644 index 000000000..3a20154ce --- /dev/null +++ b/talimatname/genel/p/perl-anyevent/talimat @@ -0,0 +1,18 @@ +# Tanım: Olay döngü programlamanın DBI +# URL: https://metacpan.org/release/AnyEvent +# Paketçi: Cihan_Alkan +# Gerekler: perl-glib perl-json +# Grup: kütüphane + +isim=perl-anyevent +surum=7.14 +devir=1 +kaynak=(http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/AnyEvent-$surum.tar.gz) + +derle() { + cd AnyEvent-$surum + perl Makefile.PL INSTALLDIRS=vendor + make + PERL_ANYEVENT_LOOP_TESTS=true make test + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/p/perl-archive-zip/talimat b/talimatname/genel/p/perl-archive-zip/talimat new file mode 100644 index 000000000..9019a6690 --- /dev/null +++ b/talimatname/genel/p/perl-archive-zip/talimat @@ -0,0 +1,18 @@ +# Tanım: Zip modülü, bir Perl programının Zip arşiv dosyalarını oluşturmasına, işlenmesine, okumasına ve yazmasına olanak tanır. +# URL: http://search.cpan.org/~adamk/Archive-Zip-1.23/lib/Archive/Zip.pm +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: + +isim=perl-archive-zip +surum=1.57 +devir=1 + +kaynak=(http://cpan.metacpan.org/authors/id/P/PH/PHRED/Archive-Zip-$surum.tar.gz) + +derle() { + cd Archive-* + perl Makefile.PL + make OPTIMIZE="${CFLAGS}" + make DESTDIR=${PKG} install + find ${PKG} -name perllocal.pod -exec rm {} \; +} diff --git a/talimatname/genel/p/perl-carp-always/talimat b/talimatname/genel/p/perl-carp-always/talimat new file mode 100644 index 000000000..9df1428d1 --- /dev/null +++ b/talimatname/genel/p/perl-carp-always/talimat @@ -0,0 +1,26 @@ +# Tanım: Perl Carp modülü +# URL: http://search.cpan.org/dist/Carp-Always +# Paketçi: milisarge +# Gerekler: + +isim=perl-carp-always +surum=0.13 +devir=1 +kaynak=(http://search.cpan.org/CPAN/authors/id/F/FE/FERREIRA/Carp-Always-0.13.tar.gz) + +derle() { + _distdir="Carp-Always-0.13" + + export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$PKG'" \ + PERL_MB_OPT="--installdirs vendor --destdir '$PKG'" \ + MODULEBUILDRC=/dev/null + + cd "$SRC/$_distdir" + /usr/bin/perl Makefile.PL + make + export PERL_MM_USE_DEFAULT=1 PERL5LIB="" + make DESTDIR=${PKG} install + find "$PKG" -name .packlist -o -name perllocal.pod -delete +} diff --git a/talimatname/genel/p/perl-carp/talimat b/talimatname/genel/p/perl-carp/talimat new file mode 100644 index 000000000..dd4e24a8e --- /dev/null +++ b/talimatname/genel/p/perl-carp/talimat @@ -0,0 +1,26 @@ +# Tanım: Perl Carp modülü +# URL: http://search.cpan.org/dist/Carp +# Paketçi: milisarge +# Gerekler: + +isim=perl-carp +surum=1.38 +devir=1 +kaynak=(http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Carp-1.38.tar.gz) + +derle() { + _distdir="Carp-1.38" + + export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$PKG'" \ + PERL_MB_OPT="--installdirs vendor --destdir '$PKG'" \ + MODULEBUILDRC=/dev/null + + cd "$SRC/$_distdir" + /usr/bin/perl Makefile.PL + make + export PERL_MM_USE_DEFAULT=1 PERL5LIB="" + make DESTDIR=${PKG} install + find "$PKG" -name .packlist -o -name perllocal.pod -delete +} diff --git a/talimatname/genel/p/perl-cgi-carp/talimat b/talimatname/genel/p/perl-cgi-carp/talimat new file mode 100644 index 000000000..280f89953 --- /dev/null +++ b/talimatname/genel/p/perl-cgi-carp/talimat @@ -0,0 +1,26 @@ +# Tanım: Perl CGI Carp modülü +# URL: http://search.cpan.org/~leejo/CGI-4.35/lib/CGI/Carp.pm +# Paketçi: milisarge +# Gerekler: + +isim=perl-cgi-carp +surum=4.35 +devir=1 +kaynak=(http://search.cpan.org/CPAN/authors/id/L/LE/LEEJO/CGI-4.35.tar.gz) + +derle() { + _distdir="CGI-4.35" + + export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$PKG'" \ + PERL_MB_OPT="--installdirs vendor --destdir '$PKG'" \ + MODULEBUILDRC=/dev/null + + cd "$SRC/$_distdir" + /usr/bin/perl Makefile.PL + make + export PERL_MM_USE_DEFAULT=1 PERL5LIB="" + make DESTDIR=${PKG} install + find "$PKG" -name .packlist -o -name perllocal.pod -delete +} diff --git a/talimatname/genel/p/perl-class-accessor/talimat b/talimatname/genel/p/perl-class-accessor/talimat new file mode 100644 index 000000000..fd36c277f --- /dev/null +++ b/talimatname/genel/p/perl-class-accessor/talimat @@ -0,0 +1,19 @@ +# Tanım: Otomatik erişimci üretimi +# URL: http://search.cpan.org/dist/Class-Accessor/ +# Paketçi: Cihan_Alkan +# Gerekler: +# Grup: kütüphane + +isim=perl-class-accessor +surum=0.51 +devir=1 +kaynak=(https://www.cpan.org/authors/id/K/KA/KASEI/Class-Accessor-$surum.tar.gz) + +derle() { + cd Class-Accessor-$surum + eval `perl -V:archname` + perl Makefile.PL INSTALLDIRS=vendor + make + make DESTDIR="$PKG" install + find "$PKG" \( -name '.packlist' -o -name '*.pod' \) -delete +} diff --git a/talimatname/genel/p/perl-class-inspector/talimat b/talimatname/genel/p/perl-class-inspector/talimat new file mode 100644 index 000000000..1a9b4450b --- /dev/null +++ b/talimatname/genel/p/perl-class-inspector/talimat @@ -0,0 +1,17 @@ +# Tanım: Bir sınıf ve yapısı hakkında bilgi edinin +# URL: http://search.cpan.org/dist/Class-Inspector +# Paketçi: Cihan_Alkan +# Gerekler: +# Grup: + +isim=perl-class-inspector +surum=1.32 +devir=1 +kaynak=(http://search.cpan.org/CPAN/authors/id/P/PL/PLICEASE/Class-Inspector-$surum.tar.gz) + +derle() { + cd Class-Inspector-${surum} + perl Makefile.PL INSTALLDIRS=vendor + make + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/p/perl-convert-asn1/talimat b/talimatname/genel/p/perl-convert-asn1/talimat new file mode 100644 index 000000000..73bde0765 --- /dev/null +++ b/talimatname/genel/p/perl-convert-asn1/talimat @@ -0,0 +1,20 @@ +# Tanım: Perl/CPAN Module Convert::ASN1 : Standard endecode of ASN1 structures +# URL: http://search.cpan.org/dist/Convert-ASN1 +# Paketçi: milisarge +# Gerekler: +# Grup: kütüphane + +isim=perl-convert-asn1 +surum=0.27 +devir=1 +kaynak=(http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/Convert-ASN1-$surum.tar.gz) + +derle() { + cd "$SRC"/Convert-ASN1-$surum + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make + cd "$SRC"/Convert-ASN1-$surum + make pure_install doc_install DESTDIR="$PKG" + find "$PKG" -name '.packlist' -delete + find "$PKG" -name '*.pod' -delete +} diff --git a/talimatname/genel/p/perl-crypt-le/talimat b/talimatname/genel/p/perl-crypt-le/talimat new file mode 100644 index 000000000..f37144902 --- /dev/null +++ b/talimatname/genel/p/perl-crypt-le/talimat @@ -0,0 +1,17 @@ +# Tanım: Let's Encrypt API interfacing module +# URL: http://search.cpan.org/dist/Crypt-LE/ +# Paketçi: milisarge +# Gerekler: perl-convert-asn1 perl-crypt-openssl-rsa perl-io-socket-ssl perl-json-maybexs perl-log-log4perl perl-mozilla-ca +# Grup: kütüphane + +isim=perl-crypt-le +surum=0.29 +devir=1 +kaynak=(https://github.com/do-know/Crypt-LE/archive/$surum.tar.gz::Crypt-LE-$surum.tar.gz) + +derle() { + cd Crypt-LE-$surum + perl Makefile.PL INSTALLDIRS=vendor + make + make install DESTDIR="$PKG" +} diff --git a/talimatname/genel/p/perl-crypt-openssl-bignum/talimat b/talimatname/genel/p/perl-crypt-openssl-bignum/talimat new file mode 100644 index 000000000..5438e606b --- /dev/null +++ b/talimatname/genel/p/perl-crypt-openssl-bignum/talimat @@ -0,0 +1,23 @@ +# Tanım: OpenSSL's multiprecision integer arithmetic +# URL: https://metacpan.org/release/Crypt-OpenSSL-Bignum +# Paketçi: milisarge +# Gerekler: +# Grup: kütüphane + +isim=perl-crypt-openssl-bignum +surum=0.08 +devir=1 +kaynak=(http://search.cpan.org/CPAN/authors/id/K/KM/KMX/Crypt-OpenSSL-Bignum-$surum.tar.gz) + +derle() { + _ddir="Crypt-OpenSSL-Bignum-$surum" + cd "$SRC/$_ddir" + export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps + unset PERL5LIB PERL_MM_OPT + /usr/bin/perl Makefile.PL + make + export PERL_MM_USE_DEFAULT=1 + unset PERL5LIB + make test + make install INSTALLDIRS=vendor DESTDIR="$PKG" +} diff --git a/talimatname/genel/p/perl-crypt-openssl-random/talimat b/talimatname/genel/p/perl-crypt-openssl-random/talimat new file mode 100644 index 000000000..52dca121c --- /dev/null +++ b/talimatname/genel/p/perl-crypt-openssl-random/talimat @@ -0,0 +1,25 @@ +# Tanım: Routines for accessing the OpenSSL pseudo-random number generator +# URL: https://metacpan.org/release/Crypt-OpenSSL-Random +# Paketçi: milisarge +# Gerekler: +# Grup: kütüphane + +isim=perl-crypt-openssl-random +surum=0.11 +devir=1 +kaynak=(http://search.cpan.org/CPAN/authors/id/R/RU/RURBAN/Crypt-OpenSSL-Random-$surum.tar.gz) + +derle() { + _ddir="Crypt-OpenSSL-Random-$surum" + cd "$SRC/$_ddir" + export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps + unset PERL5LIB PERL_MM_OPT + /usr/bin/perl Makefile.PL + make + cd "$SRC/$_ddir" + export PERL_MM_USE_DEFAULT=1 + unset PERL5LIB + make test + cd "$SRC/$_ddir" + make install INSTALLDIRS=vendor DESTDIR="$PKG" +} diff --git a/talimatname/genel/p/perl-crypt-openssl-rsa/0001-Adapt-to-OpenSSL-1.1.0.patch b/talimatname/genel/p/perl-crypt-openssl-rsa/0001-Adapt-to-OpenSSL-1.1.0.patch new file mode 100644 index 000000000..748271d4b --- /dev/null +++ b/talimatname/genel/p/perl-crypt-openssl-rsa/0001-Adapt-to-OpenSSL-1.1.0.patch @@ -0,0 +1,185 @@ +From b3747e625780be90dcff11c2d9e91048016bb4d0 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com> +Date: Thu, 13 Oct 2016 18:14:17 +0200 +Subject: [PATCH] Adapt to OpenSSL 1.1.0 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +OpenSSL 1.1.0 hid structure internals and provided methods for getting +and settting the internal values. This patch modifes the code so that +it can be built with OpenSSL 1.1.0 as well as with the older one. + +CPAN RT#117481 + +Signed-off-by: Petr Písař <ppisar@redhat.com> +--- + RSA.xs | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++++++------------ + 1 file changed, 73 insertions(+), 16 deletions(-) + +diff --git a/RSA.xs b/RSA.xs +index de512e7..9bf6f01 100644 +--- a/RSA.xs ++++ b/RSA.xs +@@ -49,7 +49,13 @@ void croakSsl(char* p_file, int p_line) + + char _is_private(rsaData* p_rsa) + { +- return(p_rsa->rsa->d != NULL); ++ const BIGNUM *d; ++#if OPENSSL_VERSION_NUMBER < 0x10100000L ++ d = p_rsa->rsa->d; ++#else ++ RSA_get0_key(p_rsa->rsa, NULL, NULL, &d); ++#endif ++ return(d != NULL); + } + + SV* make_rsa_obj(SV* p_proto, RSA* p_rsa) +@@ -136,7 +142,7 @@ unsigned char* get_message_digest(SV* text_SV, int hash_method) + } + } + +-SV* bn2sv(BIGNUM* p_bn) ++SV* bn2sv(const BIGNUM* p_bn) + { + return p_bn != NULL + ? sv_2mortal(newSViv((IV) BN_dup(p_bn))) +@@ -317,6 +323,9 @@ _new_key_from_parameters(proto, n, e, d, p, q) + BN_CTX* ctx; + BIGNUM* p_minus_1 = NULL; + BIGNUM* q_minus_1 = NULL; ++ BIGNUM* dmp1 = NULL; ++ BIGNUM* dmq1 = NULL; ++ BIGNUM* iqmp = NULL; + int error; + CODE: + { +@@ -325,8 +334,10 @@ _new_key_from_parameters(proto, n, e, d, p, q) + croak("At least a modulous and public key must be provided"); + } + CHECK_OPEN_SSL(rsa = RSA_new()); ++#if OPENSSL_VERSION_NUMBER < 0x10100000L + rsa->n = n; + rsa->e = e; ++#endif + if (p || q) + { + error = 0; +@@ -341,8 +352,12 @@ _new_key_from_parameters(proto, n, e, d, p, q) + q = BN_new(); + THROW(BN_div(q, NULL, n, p, ctx)); + } ++#if OPENSSL_VERSION_NUMBER < 0x10100000L + rsa->p = p; + rsa->q = q; ++#else ++ THROW(RSA_set0_factors(rsa, p, q)); ++#endif + THROW(p_minus_1 = BN_new()); + THROW(BN_sub(p_minus_1, p, BN_value_one())); + THROW(q_minus_1 = BN_new()); +@@ -353,17 +368,32 @@ _new_key_from_parameters(proto, n, e, d, p, q) + THROW(BN_mul(d, p_minus_1, q_minus_1, ctx)); + THROW(BN_mod_inverse(d, e, d, ctx)); + } ++#if OPENSSL_VERSION_NUMBER < 0x10100000L + rsa->d = d; +- THROW(rsa->dmp1 = BN_new()); +- THROW(BN_mod(rsa->dmp1, d, p_minus_1, ctx)); +- THROW(rsa->dmq1 = BN_new()); +- THROW(BN_mod(rsa->dmq1, d, q_minus_1, ctx)); +- THROW(rsa->iqmp = BN_new()); +- THROW(BN_mod_inverse(rsa->iqmp, q, p, ctx)); ++#else ++ THROW(RSA_set0_key(rsa, n, e, d)); ++#endif ++ THROW(dmp1 = BN_new()); ++ THROW(BN_mod(dmp1, d, p_minus_1, ctx)); ++ THROW(dmq1 = BN_new()); ++ THROW(BN_mod(dmq1, d, q_minus_1, ctx)); ++ THROW(iqmp = BN_new()); ++ THROW(BN_mod_inverse(iqmp, q, p, ctx)); ++#if OPENSSL_VERSION_NUMBER < 0x10100000L ++ rsa->dmp1 = dmp1; ++ rsa->dmq1 = dmq1; ++ rsa->iqmp = iqmp; ++#else ++ THROW(RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp)); ++#endif ++ dmp1 = dmq1 = iqmp = NULL; + THROW(RSA_check_key(rsa) == 1); + err: + if (p_minus_1) BN_clear_free(p_minus_1); + if (q_minus_1) BN_clear_free(q_minus_1); ++ if (dmp1) BN_clear_free(dmp1); ++ if (dmq1) BN_clear_free(dmq1); ++ if (iqmp) BN_clear_free(iqmp); + if (ctx) BN_CTX_free(ctx); + if (error) + { +@@ -373,7 +403,11 @@ _new_key_from_parameters(proto, n, e, d, p, q) + } + else + { ++#if OPENSSL_VERSION_NUMBER < 0x10100000L + rsa->d = d; ++#else ++ CHECK_OPEN_SSL(RSA_set0_key(rsa, n, e, d)); ++#endif + } + RETVAL = make_rsa_obj(proto, rsa); + } +@@ -383,18 +417,41 @@ _new_key_from_parameters(proto, n, e, d, p, q) + void + _get_key_parameters(p_rsa) + rsaData* p_rsa; ++PREINIT: ++ const BIGNUM* n; ++ const BIGNUM* e; ++ const BIGNUM* d; ++ const BIGNUM* p; ++ const BIGNUM* q; ++ const BIGNUM* dmp1; ++ const BIGNUM* dmq1; ++ const BIGNUM* iqmp; + PPCODE: + { + RSA* rsa; + rsa = p_rsa->rsa; +- XPUSHs(bn2sv(rsa->n)); +- XPUSHs(bn2sv(rsa->e)); +- XPUSHs(bn2sv(rsa->d)); +- XPUSHs(bn2sv(rsa->p)); +- XPUSHs(bn2sv(rsa->q)); +- XPUSHs(bn2sv(rsa->dmp1)); +- XPUSHs(bn2sv(rsa->dmq1)); +- XPUSHs(bn2sv(rsa->iqmp)); ++#if OPENSSL_VERSION_NUMBER < 0x10100000L ++ n = rsa->n; ++ e = rsa->e; ++ d = rsa->d; ++ p = rsa->p; ++ q = rsa->q; ++ dmp1 = rsa->dmp1; ++ dmq1 = rsa->dmq1; ++ iqmp = rsa->iqmp; ++#else ++ RSA_get0_key(rsa, &n, &e, &d); ++ RSA_get0_factors(rsa, &p, &q); ++ RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp); ++#endif ++ XPUSHs(bn2sv(n)); ++ XPUSHs(bn2sv(e)); ++ XPUSHs(bn2sv(d)); ++ XPUSHs(bn2sv(p)); ++ XPUSHs(bn2sv(q)); ++ XPUSHs(bn2sv(dmp1)); ++ XPUSHs(bn2sv(dmq1)); ++ XPUSHs(bn2sv(iqmp)); + } + + SV* +-- +2.7.4 + diff --git a/talimatname/genel/p/perl-crypt-openssl-rsa/talimat b/talimatname/genel/p/perl-crypt-openssl-rsa/talimat new file mode 100644 index 000000000..4a23643a7 --- /dev/null +++ b/talimatname/genel/p/perl-crypt-openssl-rsa/talimat @@ -0,0 +1,23 @@ +# Tanım: Interface to OpenSSL RSA methods +# URL: http://search.cpan.org/dist/Crypt-OpenSSL-RSA +# Paketçi: milisarge +# Gerekler: perl-crypt-openssl-random perl-crypt-openssl-bignum +# Grup: kütüphane + +isim=perl-crypt-openssl-rsa +surum=0.28 +devir=1 +kaynak=(http://search.cpan.org/CPAN/authors/id/P/PE/PERLER/Crypt-OpenSSL-RSA-$surum.tar.gz + 0001-Adapt-to-OpenSSL-1.1.0.patch) + +derle() { + cd "$SRC/Crypt-OpenSSL-RSA-$surum" + patch -p1 -i "$SRC/0001-Adapt-to-OpenSSL-1.1.0.patch" + cd "$SRC/Crypt-OpenSSL-RSA-$surum" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make + cd "$SRC/Crypt-OpenSSL-RSA-$surum" + make test + cd "$SRC/Crypt-OpenSSL-RSA-$surum" + make pure_install doc_install DESTDIR="$PKG" +} diff --git a/talimatname/genel/p/perl-crypt-ssleay/talimat b/talimatname/genel/p/perl-crypt-ssleay/talimat new file mode 100644 index 000000000..35ea24545 --- /dev/null +++ b/talimatname/genel/p/perl-crypt-ssleay/talimat @@ -0,0 +1,20 @@ +# Tanım: Bu Perl modülü, LWP::UserAgent nesnesinin şifreli soket bağlantıları üzerinden GET, HEAD ve POST isteklerini gerçekleştirmesine izin vermek için LWP altında HTTPS protokolünü desteklemektedir. +# URL: http://search.cpan.org/dist/Crypt-SSLeay/SSLeay.pm +# Paketçi: milisarge +# Gerekler: perl-lwp-protocol-https perl-try-tiny perl-path-class + +isim=perl-crypt-ssleay +surum=0.72 +devir=1 + +kaynak=(http://www.cpan.org/CPAN/authors/id/N/NA/NANIS/Crypt-SSLeay-$surum.tar.gz) + +derle() { +cd Crypt-SSLeay-$surum +perl Makefile.PL INSTALLDIRS=vendor +make +make DESTDIR=$PKG install + +find $PKG -name '.packlist' -delete +find $PKG -name '*.pod' -delete +} diff --git a/talimatname/genel/p/perl-curses-ui/talimat b/talimatname/genel/p/perl-curses-ui/talimat new file mode 100644 index 000000000..6a36ef453 --- /dev/null +++ b/talimatname/genel/p/perl-curses-ui/talimat @@ -0,0 +1,26 @@ +# Tanım: Curses :: UI, Perl için nesne yönelimli bir kullanıcı arabirimi çerçevesidir. +# URL: https://metacpan.org/pod/Curses::UI +# Paketçi: milisarge +# Gerekler: + +isim=perl-curses-ui +surum=0.9609 +devir=1 +kaynak=(http://search.cpan.org/CPAN/authors/id/M/MD/MDXI/Curses-UI-$surum.tar.gz) + +derle() { + cd Curses-UI-$surum + + perl Makefile.PL + make CC="${CC:-gcc}" LD="${CC:-gcc}" OPTIMIZE="$CFLAGS" + make DESTDIR=$PKG install + + find $PKG -type f \( \ + -name ".packlist" -o \ + -name "*.bs" -o \ + -name "autosplit.ix" -o \ + -name "perllocal.pod" \) -delete + + find $PKG -depth -empty -delete + +} diff --git a/talimatname/genel/p/perl-curses/talimat b/talimatname/genel/p/perl-curses/talimat new file mode 100644 index 000000000..81d5444d3 --- /dev/null +++ b/talimatname/genel/p/perl-curses/talimat @@ -0,0 +1,26 @@ +# Tanım: Curses, Perl ile sisteminizin curses (3) kütüphanesi arasındaki arabirimdir. +# URL: http://search.cpan.org/~giraffed/Curses-1.34/Curses.pm +# Paketçi: milisarge +# Gerekler: + +isim=perl-curses +surum=1.34 +devir=1 +kaynak=(http://search.cpan.org/CPAN/authors/id/G/GI/GIRAFFED/Curses-$surum.tar.gz) + +derle() { + cd Curses-$surum + + perl Makefile.PL + make CC="${CC:-gcc}" LD="${CC:-gcc}" OPTIMIZE="$CFLAGS" + make DESTDIR=$PKG install + + find $PKG -type f \( \ + -name ".packlist" -o \ + -name "*.bs" -o \ + -name "autosplit.ix" -o \ + -name "perllocal.pod" \) -delete + + find $PKG -depth -empty -delete + +} diff --git a/talimatname/genel/p/perl-data-dump/talimat b/talimatname/genel/p/perl-data-dump/talimat new file mode 100644 index 000000000..f3c8039cc --- /dev/null +++ b/talimatname/genel/p/perl-data-dump/talimat @@ -0,0 +1,19 @@ +# Tanım: Bu modül, argümanlarından geçip sonuç olarak bir dizge üreten birkaç işlev sunar. +# URL: http://search.cpan.org/~gaas/Data-Dump-1.23/lib/Data/Dump.pm +# Paketçi: milisarge +# Gerekler: + +_isim=Data-Dump +isim=perl-data-dump +surum=1.23 +devir=1 + +kaynak=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/$_name-$surum.tar.gz) + +derle() { +cd $_name-$surum +perl Makefile.PL +make OPTIMIZE="$CFLAGS" +make DESTDIR=$PKG install +find $PKG -name .packlist -o -name perllocal.pod -exec rm '{}' \; +} diff --git a/talimatname/genel/p/perl-dbi/talimat b/talimatname/genel/p/perl-dbi/talimat new file mode 100644 index 000000000..a2d4f983d --- /dev/null +++ b/talimatname/genel/p/perl-dbi/talimat @@ -0,0 +1,21 @@ +# Tanım: Perl için veritabanı bağımsız arabirimi +# URL: http://search.cpan.org/ +# Paketçi: milisarge +# Gerekler: + +isim=perl-dbi +surum=1.631 +devir=1 + +kaynak=(http://www.cpan.org/authors/id/T/TI/TIMB/DBI-$surum.tar.gz) + +derle() { +cd DBI-$surum +perl Makefile.PL INSTALLDIRS=vendor +make +make DESTDIR=$PKG install +find $PKG \ + -name '*.bs' -or \ + -name .packlist -or \ + -name perllocal.pod | xargs rm +} diff --git a/talimatname/genel/p/perl-devel-leak/talimat b/talimatname/genel/p/perl-devel-leak/talimat new file mode 100644 index 000000000..2c9999057 --- /dev/null +++ b/talimatname/genel/p/perl-devel-leak/talimat @@ -0,0 +1,27 @@ +# Tanım: Geri kazanılmayan perl nesneleri aramak için yardımcı program. +# URL: https://metacpan.org/pod/Devel::Leak +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: + +isim=perl-devel-leak +surum=0.03 +devir=1 + +kaynak=( https://cpan.metacpan.org/authors/id/N/NI/NI-S/Devel-Leak-$surum.tar.gz) + +derle() { + export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \ + PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \ + MODULEBUILDRC=/dev/null + cd Devel-Leak-$surum + perl Makefile.PL + make OPTIMIZE="$CFLAGS" || exit 1 + make install INSTALLDIRS=vendor DESTDIR=$PKG || exit 1 + + # Remove perllocal.pod and .packlist if present in the package + for i in perllocal.pod .packlist; do + find $PKG -name "$i" -exec rm -rf {} \; + done +} diff --git a/talimatname/genel/p/perl-devel-symdump/talimat b/talimatname/genel/p/perl-devel-symdump/talimat new file mode 100644 index 000000000..2c6c4e766 --- /dev/null +++ b/talimatname/genel/p/perl-devel-symdump/talimat @@ -0,0 +1,22 @@ +# Tanım: Perl sembol tablosuna erişim ve boşaltma +# URL: http://search.cpan.org/dist/Devel-Symdump +# Paketçi: milisarge +# Gerekler: + +isim=perl-devel-symdump +surum=2.11 +devir=1 + +kaynak=(http://www.cpan.org/authors/id/A/AN/ANDK/Devel-Symdump-$surum.tar.gz) + +derle() { + cd Devel-Symdump-$surum + perl Makefile.PL + make OPTIMIZE="$CFLAGS" || exit 1 + make install INSTALLDIRS=vendor DESTDIR=$PKG || exit 1 + + # Remove perllocal.pod and .packlist if present in the package + for i in perllocal.pod .packlist; do + find $PKG -name "$i" -exec rm -rf {} \; + done +} diff --git a/talimatname/genel/p/perl-digest-hmac/talimat b/talimatname/genel/p/perl-digest-hmac/talimat new file mode 100644 index 000000000..bd1224022 --- /dev/null +++ b/talimatname/genel/p/perl-digest-hmac/talimat @@ -0,0 +1,21 @@ +# Tanım: İleti Kimlik Doğrulaması için Anahtarlı-Hashing +# URL: http://search.cpan.org/ +# Paketçi: milisarge +# Gerekler: perl-digest-sha1 + +isim=perl-digest-hmac +surum=1.03 +devir=1 + +kaynak=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Digest-HMAC-$surum.tar.gz) + +derle() { +cd Digest-HMAC-$surum +PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +make +make DESTDIR=$PKG install +find $PKG \ + -name '*.bs' -or \ + -name .packlist -or \ + -name perllocal.pod | xargs rm +} diff --git a/talimatname/genel/p/perl-digest-nilsimsa/talimat b/talimatname/genel/p/perl-digest-nilsimsa/talimat new file mode 100644 index 000000000..618a6e642 --- /dev/null +++ b/talimatname/genel/p/perl-digest-nilsimsa/talimat @@ -0,0 +1,21 @@ +# Tanım: Nilsimsa kodunun Perl sürümü +# URL: http://search.cpan.org/ +# Paketçi: milisarge +# Gerekler: + +isim=perl-digest-nilsimsa +surum=0.06 +devir=1 + +kaynak=(http://www.cpan.org/authors/id/V/VI/VIPUL/Digest-Nilsimsa-$surum.tar.gz) + +derle() { +cd Digest-Nilsimsa-$surum +PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +make +make DESTDIR=$PKG install +find $PKG \ + -name '*.bs' -or \ + -name .packlist -or \ + -name perllocal.pod | xargs rm +} diff --git a/talimatname/genel/p/perl-digest-sha1/talimat b/talimatname/genel/p/perl-digest-sha1/talimat new file mode 100644 index 000000000..6dc3f6cb4 --- /dev/null +++ b/talimatname/genel/p/perl-digest-sha1/talimat @@ -0,0 +1,20 @@ +# Tanım: SHA-1 Algoritmasına Perl Arayüzü +# URL: http://search.cpan.org/ +# Paketçi: milisarge +# Gerekler: + +isim=perl-digest-sha1 +surum=2.13 +devir=1 + +kaynak=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Digest-SHA1-$surum.tar.gz) + +derle() { +cd Digest-SHA1-$surum +perl Makefile.PL INSTALLDIRS=vendor +make +make DESTDIR=$PKG install +find $PKG -iname '*.pod' -or \ +-name '.packlist' -or \ +-name 'perllocal.pod' | xargs rm +} diff --git a/talimatname/genel/p/perl-encode-locale/talimat b/talimatname/genel/p/perl-encode-locale/talimat new file mode 100644 index 000000000..53a05fc49 --- /dev/null +++ b/talimatname/genel/p/perl-encode-locale/talimat @@ -0,0 +1,21 @@ +# Tanım: Yerel kodlamayı belirleyin +# URL: http://search.cpan.org/ +# Paketçi: milisarge +# Gerekler: + +isim=perl-encode-locale +surum=1.03 +devir=1 + +kaynak=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Encode-Locale-$surum.tar.gz) + +derle() { +cd Encode-Locale-$surum +perl Makefile.PL INSTALLDIRS=vendor +make +make DESTDIR=$PKG install +find $PKG \ + -name '*.bs' -or \ + -name '.packlist' -or \ + -name 'perllocal.pod' | xargs rm +} diff --git a/talimatname/genel/p/perl-error/talimat b/talimatname/genel/p/perl-error/talimat new file mode 100644 index 000000000..987e69fa3 --- /dev/null +++ b/talimatname/genel/p/perl-error/talimat @@ -0,0 +1,21 @@ +# Tanım: Perl / CPAN Hata modülü - OO-ish yolunda hata / istisna işleme +# URL: http://search.cpan.org/ +# Paketçi: milisarge +# Gerekler: + +isim=perl-error +surum=0.17022 +devir=1 + +kaynak=(http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/Error-$surum.tar.gz) + +derle() { +cd Error-$surum +perl Makefile.PL INSTALLDIRS=vendor +make +make DESTDIR=$PKG install +find $PKG \ + -name '*.bs' -or \ + -name '.packlist' -or \ + -name 'perllocal.pod' | xargs rm +} diff --git a/talimatname/genel/p/perl-extutils-depends/talimat b/talimatname/genel/p/perl-extutils-depends/talimat new file mode 100644 index 000000000..4533a6f9b --- /dev/null +++ b/talimatname/genel/p/perl-extutils-depends/talimat @@ -0,0 +1,22 @@ +# Tanım: XS uzantılarına bağlı XS uzantılarını kolayca oluşturun +# URL: http://search.cpan.org/~flora/ExtUtils-Depends-0.304/lib/ExtUtils/Depends.pm +# Paketçi: milisarge +# Gerekler: + +isim=perl-extutils-depends +surum=0.304 +devir=1 + +kaynak=(http://www.cpan.org/authors/id/F/FL/FLORA/ExtUtils-Depends-$surum.tar.gz) + +derle() { + cd ExtUtils-Depends-$surum + perl Makefile.PL + make + make DESTDIR=$PKG install + find $PKG \ + -name perllocal.pod \ + -o -name .packlist | xargs rm + find $PKG -empty | xargs rmdir -p ||: + +} diff --git a/talimatname/genel/p/perl-extutils-makemaker/talimat b/talimatname/genel/p/perl-extutils-makemaker/talimat new file mode 100644 index 000000000..68b590173 --- /dev/null +++ b/talimatname/genel/p/perl-extutils-makemaker/talimat @@ -0,0 +1,31 @@ +# Tanım: Bu yardımcı program, bir Makefile'den bir uzantı modülü için bir Makefile yazmak üzere tasarlanmıştır. +# URL: http://search.cpan.org/~bingos/ExtUtils-MakeMaker-6.98/lib/ExtUtils/MakeMaker.pm +# Paketçi: milisarge +# Gerekler: + +isim=perl-extutils-makemaker +surum=6.98 +devir=1 + +kaynak=(http://search.cpan.org/CPAN/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-$surum.tar.gz) + +derle() { + cd ExtUtils-MakeMaker-$surum + perl Makefile.PL + make OPTIMIZE="$CFLAGS" || exit 1 + make test + make install INSTALLDIRS=vendor DESTDIR=$PKG || exit 1 + + # Remove duplicated man pages + rm -r $PKG/usr/share/man + + # Remove perllocal.pod and .packlist if present in the package + for i in perllocal.pod .packlist; do + find $PKG -name "$i" -exec rm -rf {} \; + done + rm $PKG/usr/bin/instmodsh +} + + + +# NuTyX Pkgfile (http://nutyx.org) diff --git a/talimatname/genel/p/perl-extutils-pkgconfig/talimat b/talimatname/genel/p/perl-extutils-pkgconfig/talimat new file mode 100644 index 000000000..0dc787cc7 --- /dev/null +++ b/talimatname/genel/p/perl-extutils-pkgconfig/talimat @@ -0,0 +1,22 @@ +# Tanım: Pkgconfig için Perl bağlayıcısı +# URL: http://search.cpan.org/~xaoc/ExtUtils-PkgConfig-1.15/lib/ExtUtils/PkgConfig.pm +# Paketçi: milisarge +# Gerekler: perl-extutils-depends + +isim=perl-extutils-pkgconfig +surum=1.15 +devir=1 + +kaynak=(http://www.cpan.org/modules/by-module/ExtUtils/ExtUtils-PkgConfig-$surum.tar.gz) + +derle() { + cd ExtUtils-PkgConfig-$surum + perl Makefile.PL + make + make DESTDIR=$PKG install + find $PKG \ + -name perllocal.pod \ + -o -name .packlist | xargs rm + find $PKG -empty | xargs rmdir -p ||: +} + diff --git a/talimatname/genel/p/perl-file-listing/talimat b/talimatname/genel/p/perl-file-listing/talimat new file mode 100644 index 000000000..8a9669928 --- /dev/null +++ b/talimatname/genel/p/perl-file-listing/talimat @@ -0,0 +1,21 @@ +# Tanım: Ayrıştırma dizini listesi +# URL: http://search.cpan.org/ +# Paketçi: milisarge +# Gerekler: perl-http-date + +isim=perl-file-listing +surum=6.04 +devir=1 + +kaynak=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/File-Listing-$surum.tar.gz) + +derle() { +cd File-Listing-$surum +perl Makefile.PL INSTALLDIRS=vendor +make +make DESTDIR=$PKG install +find $PKG \ + -name '*.bs' -or \ + -name .packlist -or \ + -name perllocal.pod | xargs rm +} diff --git a/talimatname/genel/p/perl-file-sharedir/talimat b/talimatname/genel/p/perl-file-sharedir/talimat new file mode 100644 index 000000000..6a20ca6ee --- /dev/null +++ b/talimatname/genel/p/perl-file-sharedir/talimat @@ -0,0 +1,20 @@ +# Tanım: Dist başına ve modül başına paylaşılan dosyaları bulun +# URL: http://search.cpan.org/dist/File-ShareDir +# Paketçi: Cihan_Alkan +# Gerekler: perl-class-inspector +# Grup: + +isim=perl-file-sharedir +_isim=File-ShareDir +_yazar=REHSACK +surum=1.102 +devir=1 +kaynak=(http://search.cpan.org/CPAN/authors/id/${_yazar::1}/${_yazar::2}/${_yazar}/$_isim-$surum.tar.gz) + +derle() { + + cd "$SRC/$_isim-$surum" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/p/perl-glib/talimat b/talimatname/genel/p/perl-glib/talimat new file mode 100644 index 000000000..00b5028e0 --- /dev/null +++ b/talimatname/genel/p/perl-glib/talimat @@ -0,0 +1,21 @@ +# Tanım: Glib için perl bağlayıcısı +# URL: http://www.gtkperl.org +# Paketçi: milisarge +# Gerekler: perl-extutils-depends gobject-introspection perl-extutils-pkgconfig + +isim=perl-glib +surum=1.304 +devir=1 + +kaynak=(https://github.com/gitpan/Glib/archive/cpan_path/XAOC/Glib-$surum.tar.gz.tar.gz) + +derle() { + cd Glib-cpan_path-XAOC-Glib-$surum.tar.gz + perl Makefile.PL + make + make DESTDIR=$PKG install + find $PKG \ + -name perllocal.pod \ + -o -name .packlist | xargs rm + rm $PKG -empty | xargs rmdir -p ||: +} diff --git a/talimatname/genel/p/perl-html-parser/talimat b/talimatname/genel/p/perl-html-parser/talimat new file mode 100644 index 000000000..702e26fb5 --- /dev/null +++ b/talimatname/genel/p/perl-html-parser/talimat @@ -0,0 +1,22 @@ +# Tanım: Perl HTML ayrıştırıcı modülü +# URL: http://search.cpan.org/ +# Paketçi: milisarge +# Gerekler: perl-html-tagset + +isim=perl-html-parser +surum=3.71 +devir=1 + +kaynak=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/HTML-Parser-$surum.tar.gz) + +derle() { +cd HTML-Parser-$surum +perl Makefile.PL INSTALLDIRS=vendor +make +make DESTDIR=$PKG install + +find $PKG \ + -name '*.bs' -or \ + -name .packlist -or \ + -name perllocal.pod | xargs rm +} diff --git a/talimatname/genel/p/perl-html-tagset/talimat b/talimatname/genel/p/perl-html-tagset/talimat new file mode 100644 index 000000000..907651b3d --- /dev/null +++ b/talimatname/genel/p/perl-html-tagset/talimat @@ -0,0 +1,21 @@ +# Tanım: HTML ayrıştırması için faydalı veri tabloları +# URL: http://search.cpan.org/ +# Paketçi: milisarge +# Gerekler: + +isim=perl-html-tagset +surum=3.20 +devir=1 + +kaynak=(http://www.cpan.org/authors/id/P/PE/PETDANCE/HTML-Tagset-$surum.tar.gz) + +derle() { +cd HTML-Tagset-$surum +perl Makefile.PL INSTALLDIRS=vendor +make +make DESTDIR=$PKG install +find $PKG \ + -name '*.bs' -or \ + -name '.packlist' -or \ + -name 'perllocal.pod' | xargs rm +} diff --git a/talimatname/genel/p/perl-http-cookies/talimat b/talimatname/genel/p/perl-http-cookies/talimat new file mode 100644 index 000000000..ff6982448 --- /dev/null +++ b/talimatname/genel/p/perl-http-cookies/talimat @@ -0,0 +1,21 @@ +# Tanım: HTTP çerez kavanozları +# URL: http://search.cpan.org/ +# Paketçi: milisarge +# Gerekler: perl-http-date perl-http-message + +isim=perl-http-cookies +surum=6.01 +devir=1 + +kaynak=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/HTTP-Cookies-$surum.tar.gz) + +derle() { +cd HTTP-Cookies-$surum +perl Makefile.PL INSTALLDIRS=vendor +make +make DESTDIR=$PKG install +find $PKG \ + -name '*.bs' -or \ + -name '.packlist' -or \ + -name 'perllocal.pod' | xargs rm +} diff --git a/talimatname/genel/p/perl-http-daemon/talimat b/talimatname/genel/p/perl-http-daemon/talimat new file mode 100644 index 000000000..d0d026510 --- /dev/null +++ b/talimatname/genel/p/perl-http-daemon/talimat @@ -0,0 +1,21 @@ +# Tanım: Basit bir http sunucusu sınıfı +# URL: https://metacpan.org/pod/HTTP::Daemon +# Paketçi: milisarge +# Gerekler: perl-http-date perl-http-message perl-lwp-mediatypes + +isim=perl-http-daemon +surum=6.01 +devir=1 + +kaynak=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/HTTP-Daemon-$surum.tar.gz) + +derle() { +cd HTTP-Daemon-$surum +perl Makefile.PL INSTALLDIRS=vendor +make +make DESTDIR=$PKG install +find $PKG \ + -name '*.bs' -or \ + -name '.packlist' -or \ + -name 'perllocal.pod' | xargs rm +} diff --git a/talimatname/genel/p/perl-http-date/talimat b/talimatname/genel/p/perl-http-date/talimat new file mode 100644 index 000000000..f90db39d1 --- /dev/null +++ b/talimatname/genel/p/perl-http-date/talimat @@ -0,0 +1,21 @@ +# Tanım: Tarih dönüştürme rutinleri +# URL: http://search.cpan.org/ +# Paketçi: milisarge +# Gerekler: + +isim=perl-http-date +surum=6.02 +devir=1 + +kaynak=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/HTTP-Date-$surum.tar.gz) + +derle() { +cd HTTP-Date-$surum +perl Makefile.PL INSTALLDIRS=vendor +make +make DESTDIR=$PKG install +find $PKG \ + -name '*.bs' -or \ + -name '.packlist' -or \ + -name 'perllocal.pod' | xargs rm +} diff --git a/talimatname/genel/p/perl-http-message/talimat b/talimatname/genel/p/perl-http-message/talimat new file mode 100644 index 000000000..2b9919a14 --- /dev/null +++ b/talimatname/genel/p/perl-http-message/talimat @@ -0,0 +1,27 @@ +# Tanım: HTTP stili mesajlar. +# URL: http://search.cpan.org/ +# Paketçi: milisarge +# Gerekler: perl-encode-locale perl-html-parser perl-http-date perl-lwp-mediatypes perl-uri + +isim=perl-http-message +surum=6.06 +devir=1 + +kaynak=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/HTTP-Message-$surum.tar.gz) + +derle() { +( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor" \ + PERL_MB_OPT="--installdirs vendor" \ + MODULEBUILDRC=/dev/null) + +cd HTTP-Message-$surum +perl Makefile.PL +make +make DESTDIR=$PKG install +find $PKG \ + -name '*.bs' -or \ + -name '.packlist' -or \ + -name 'perllocal.pod' | xargs rm +} diff --git a/talimatname/genel/p/perl-http-negotiate/talimat b/talimatname/genel/p/perl-http-negotiate/talimat new file mode 100644 index 000000000..5f3fb0f26 --- /dev/null +++ b/talimatname/genel/p/perl-http-negotiate/talimat @@ -0,0 +1,22 @@ +# Tanım: Sunulacak bir varyant seçin +# URL: http://search.cpan.org/ +# Paketçi: milisarge +# Gerekler: perl-http-message + +isim=perl-http-negotiate +surum=6.01 +devir=1 + +kaynak=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/HTTP-Negotiate-$surum.tar.gz) + +derle() { +cd HTTP-Negotiate-$surum +perl Makefile.PL INSTALLDIRS=vendor +make +make DESTDIR=$PKG install + +find $PKG \ + -name '*.bs' -or \ + -name '.packlist' -or \ + -name 'perllocal.pod' | xargs rm +} diff --git a/talimatname/genel/p/perl-image-exiftool/talimat b/talimatname/genel/p/perl-image-exiftool/talimat new file mode 100644 index 000000000..0cd8b0402 --- /dev/null +++ b/talimatname/genel/p/perl-image-exiftool/talimat @@ -0,0 +1,21 @@ +# Tanım: Ham dosyalardaki exif bilgilerini oluşturur ve yeniden yazar +# URL: http://search.cpan.org/~exiftool/Image-ExifTool/ +# Paketçi: milisarge +# Gerekler: + +isim=perl-image-exiftool +surum=9.90 +devir=1 + +kaynak=(http://www.cpan.org/authors/id/E/EX/EXIFTOOL/Image-ExifTool-$surum.tar.gz) + +derle() { +cd Image-ExifTool-$surum +perl Makefile.PL +make +make DESTDIR=$PKG install +find $PKG \ +-name '*.pod' \ +-o -name '.packlist' | xargs rm +find $PKG -empty | xargs rmdir -p ||: +} diff --git a/talimatname/genel/p/perl-io-socket-inet6/talimat b/talimatname/genel/p/perl-io-socket-inet6/talimat new file mode 100644 index 000000000..2b9ae5528 --- /dev/null +++ b/talimatname/genel/p/perl-io-socket-inet6/talimat @@ -0,0 +1,25 @@ +# Tanım: IO::Socket::INET6, AF_INET veya AF_INET6 etki alanlarında yuvalar oluşturmak ve kullanmak için bir nesne arabirimi sağlar. +# URL: http://search.cpan.org/ +# Paketçi: milisarge +# Gerekler: perl-socket6 + +isim=perl-io-socket-inet6 +surum=2.72 +devir=1 + +kaynak=(http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/IO-Socket-INET6-$surum.tar.gz) + +derle() { + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor" \ + PERL_MB_OPT="--installdirs vendor" \ + MODULEBUILDRC=/dev/null) + +cd IO-Socket-INET6-$surum +perl Makefile.PL +make +make DESTDIR=$PKG install + +find $PKG -name .packlist -o -name perllocal.pod -delete +} diff --git a/talimatname/genel/p/perl-io-socket-ssl/talimat b/talimatname/genel/p/perl-io-socket-ssl/talimat new file mode 100644 index 000000000..311a607f8 --- /dev/null +++ b/talimatname/genel/p/perl-io-socket-ssl/talimat @@ -0,0 +1,18 @@ +# Tanım: Nearly transparent SSL encapsulation for IO::Socket::INET +# URL: http://search.cpan.org/dist/IO-Socket-SSL/ +# Paketçi: milisarge +# Gerekler: perl-net-ssleay perl-uri +# Grup: + +isim=perl-io-socket-ssl +surum=2.055 +devir=1 +kaynak=(http://www.cpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-$surum.tar.gz) + +derle() { + cd IO-Socket-SSL-${surum} + yes | perl Makefile.PL INSTALLDIRS=vendor + make + make test + make DESTDIR="${PKG}" install +} diff --git a/talimatname/genel/p/perl-io-tty/talimat b/talimatname/genel/p/perl-io-tty/talimat new file mode 100644 index 000000000..675e250c3 --- /dev/null +++ b/talimatname/genel/p/perl-io-tty/talimat @@ -0,0 +1,26 @@ +# Tanım: TTY'lere ve PTY'lere bir arayüz sağlama +# URL: http://search.cpan.org/dist/IO-Tty/ +# Paketçi: milisarge +# Gerekler: + +isim=perl-io-tty +surum=1.11 +devir=1 + +kaynak=(http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/IO-Tty-$surum.tar.gz) + +derle() { + cd IO-Tty-$surum + perl Makefile.PL + make OPTIMIZE="$CFLAGS" || exit 1 + make install INSTALLDIRS=vendor DESTDIR=$PKG || exit 1 + + # Remove perllocal.pod and .packlist if present in the package + for i in perllocal.pod .packlist; do + find $PKG -name "$i" -exec rm -rf {} \; + done +} + + + +# NuTyX Pkgfile (http://nutyx.org) diff --git a/talimatname/genel/p/perl-ipc-run/talimat b/talimatname/genel/p/perl-ipc-run/talimat new file mode 100644 index 000000000..848126065 --- /dev/null +++ b/talimatname/genel/p/perl-ipc-run/talimat @@ -0,0 +1,26 @@ +# Tanım: IPC::Run, dosyaları, boruları ve sözde tty'leri kullanarak alt süreçleri çalıştırmanıza ve etkileşime girmenizi sağlar. +# URL: http://search.cpan.org/dist/IPC-Run +# Paketçi: milisarge +# Gerekler: perl-io-tty + +isim=perl-ipc-run +surum=0.92 +devir=1 + +kaynak=(http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/IPC-Run-$surum.tar.gz) + +derle() { + cd IPC-Run-$surum + perl Makefile.PL + make OPTIMIZE="$CFLAGS" || exit 1 + make install INSTALLDIRS=vendor DESTDIR=$PKG || exit 1 + + # Remove perllocal.pod and .packlist if present in the package + for i in perllocal.pod .packlist; do + find $PKG -name "$i" -exec rm -rf {} \; + done +} + + + +# NuTyX Pkgfile (http://nutyx.org) diff --git a/talimatname/genel/p/perl-json-maybexs/talimat b/talimatname/genel/p/perl-json-maybexs/talimat new file mode 100644 index 000000000..3d337e3a0 --- /dev/null +++ b/talimatname/genel/p/perl-json-maybexs/talimat @@ -0,0 +1,29 @@ +# Tanım: Use Cpanel::JSON::XS with a fallback to JSON::XS and JSON::PP +# URL: https://metacpan.org/release/JSON-MaybeXS +# Paketçi: milisarge +# Gerekler: +# Grup: + +isim=perl-json-maybexs +surum=1.003008 +devir=1 +kaynak=(http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/JSON-MaybeXS-$surum.tar.gz) + +derle() { + _distdir="JSON-MaybeXS-$surum" + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$PKG'" \ + PERL_MB_OPT="--installdirs vendor --destdir $PKG" \ + MODULEBUILDRC=/dev/null + cd "$SRC/$_distdir" + /usr/bin/perl Makefile.PL + make + ) + cd "$SRC/$_distdir" + export PERL_MM_USE_DEFAULT=1 PERL5LIB="" + make test + cd "$SRC/$_distdir" + make install + find "$PKG" -name .packlist -o -name perllocal.pod -delete +} diff --git a/talimatname/genel/p/perl-json/talimat b/talimatname/genel/p/perl-json/talimat new file mode 100644 index 000000000..de4b14073 --- /dev/null +++ b/talimatname/genel/p/perl-json/talimat @@ -0,0 +1,20 @@ +# Tanım: JSON (JavaScript Object Notation) kodlayıcı/kod çözücü +# URL: http://search.cpan.org/dist/JSON +# Paketçi: Cihan_Alkan +# Gerekler: perl +# Grup: kütüphane + +isim=perl-json +surum=2.97000 +devir=1 +kaynak=(http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/JSON-$surum.tar.gz) + +derle() { + + cd JSON-$surum + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make + make install DESTDIR="$PKG" + find "$PKG" -name '.packlist' -delete + find "$PKG" -name '*.pod' -delete +} diff --git a/talimatname/genel/p/perl-libwww/talimat b/talimatname/genel/p/perl-libwww/talimat new file mode 100644 index 000000000..7e3803f5c --- /dev/null +++ b/talimatname/genel/p/perl-libwww/talimat @@ -0,0 +1,21 @@ +# Tanım: Perl için World Wide Web kütüphanesi +# URL: http://search.cpan.org/ +# Paketçi: milisarge +# Gerekler: perl-encode-locale perl-file-listing perl-html-parser perl-http-cookies perl-http-daemon perl-http-date perl-http-negotiate perl-lwp-mediatypes perl-net-http perl-uri perl-www-robotrules perl-http-message + +isim=perl-libwww +surum=6.06 +devir=1 + +kaynak=(http://search.cpan.org/CPAN/authors/id/M/MS/MSCHILLI/libwww-perl-$surum.tar.gz) + +derle() { +cd libwww-perl-$surum +perl Makefile.PL --aliases IINSTALLDIRS=vendor +make +make DESTDIR=$PKG install +find $PKG \ + -name '*.bs' -or \ + -name '.packlist' -or \ + -name 'perllocal.pod' | xargs rm +} diff --git a/talimatname/genel/p/perl-linux-desktopfiles/talimat b/talimatname/genel/p/perl-linux-desktopfiles/talimat new file mode 100644 index 000000000..ee919d12e --- /dev/null +++ b/talimatname/genel/p/perl-linux-desktopfiles/talimat @@ -0,0 +1,28 @@ +# Tanım: linux masa dosyalarını parçalamak için perl modulu +# URL:http://search.cpan.org/~trizen/Linux-DesktopFiles-0.07/lib/Linux/DesktopFiles.pm +# Paketçi: milisarge +# Gerekler: + +_isim=Linux-DesktopFiles +isim=perl-linux-desktopfiles +surum=0.25 +devir=1 + +kaynak=(https://cpan.metacpan.org/authors/id/T/TR/TRIZEN/Linux-DesktopFiles-$surum.tar.gz) + +derle() { + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$PKG'" \ + PERL_MB_OPT="--installdirs vendor --destdir '$PKG'" \ + MODULEBUILDRC=/dev/null + + cd "$SRC/$_isim-$surum" + /usr/bin/perl Makefile.PL + make + make install + + find "$PKG" -name .packlist -o -name perllocal.pod -delete + ) + +} diff --git a/talimatname/genel/p/perl-locale-gettext/talimat b/talimatname/genel/p/perl-locale-gettext/talimat new file mode 100644 index 000000000..d0bdd7cea --- /dev/null +++ b/talimatname/genel/p/perl-locale-gettext/talimat @@ -0,0 +1,22 @@ +# Tanım: Perl'den gettext () fonksiyon ailesine erişime izin verir. +# URL: http://search.cpan.org/dist/gettext/ +# Paketçi: alihan-ozturk28@hotmail.com milisarge +# Gerekler: + +isim=perl-locale-gettext +surum=1.07 +devir=1 + +kaynak=(http://search.cpan.org/CPAN/authors/id/P/PV/PVANDRY/gettext-$surum.tar.gz) + +derle() { + cd Locale-gettext-$surum + perl Makefile.PL + make OPTIMIZE="$CFLAGS" || exit 1 + make install INSTALLDIRS=vendor DESTDIR=$PKG || exit 1 + + # Remove perllocal.pod and .packlist if present in the package + for i in perllocal.pod .packlist; do + find $PKG -name "$i" -exec rm -rf {} \; + done +} diff --git a/talimatname/genel/p/perl-log-log4perl/talimat b/talimatname/genel/p/perl-log-log4perl/talimat new file mode 100644 index 000000000..213aa3b11 --- /dev/null +++ b/talimatname/genel/p/perl-log-log4perl/talimat @@ -0,0 +1,18 @@ +# Tanım: Log4j implementation for Perl +# URL: https://metacpan.org/release/Log-Log4perl +# Paketçi: milisarge +# Gerekler: +# Grup: kütüphane + +isim=perl-log-log4perl +surum=1.49 +devir=1 +kaynak=(http://search.cpan.org/CPAN/authors/id/M/MS/MSCHILLI/Log-Log4perl-$surum.tar.gz) + +derle() { + cd Log-Log4perl-$surum + perl Makefile.PL INSTALLDIRS=vendor + make + make test + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/p/perl-lwp-mediatypes/talimat b/talimatname/genel/p/perl-lwp-mediatypes/talimat new file mode 100644 index 000000000..b92679890 --- /dev/null +++ b/talimatname/genel/p/perl-lwp-mediatypes/talimat @@ -0,0 +1,21 @@ +# Tanım: Bir dosyanın medya türünü veya bir URL'yi tahmin edin +# URL: http://search.cpan.org/ +# Paketçi: milisarge +# Gerekler: + +isim=perl-lwp-mediatypes +surum=6.02 +devir=1 + +kaynak=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/LWP-MediaTypes-$surum.tar.gz) + +derle() { +cd LWP-MediaTypes-$surum +perl Makefile.PL INSTALLDIRS=vendor +make +make DESTDIR=$PKG install +find $PKG \ + -name '*.bs' -or \ + -name '.packlist' -or \ + -name 'perllocal.pod' | xargs rm +} diff --git a/talimatname/genel/p/perl-lwp-protocol-https/talimat b/talimatname/genel/p/perl-lwp-protocol-https/talimat new file mode 100644 index 000000000..0efec9d6a --- /dev/null +++ b/talimatname/genel/p/perl-lwp-protocol-https/talimat @@ -0,0 +1,22 @@ +# Tanım: LWP :: UserAgent için https desteği sağlar +# URL: http://search.cpan.org/~gaas/LWP-Protocol-https-6.04/lib/LWP/Protocol/https.pm +# Paketçi: milisarge +# Gerekler: perl-io-socket-ssl perl-mozilla-ca perl-net-http perl-libwww + +isim=perl-lwp-protocol-https +surum=6.04 +devir=1 + +kaynak=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/LWP-Protocol-https-$surum.tar.gz) + +derle() { +cd LWP-Protocol-https-$surum +perl Makefile.PL INSTALLDIRS=vendor +make +make DESTDIR=$PKG install + +find $PKG \ + -name '*.bs' -or \ + -name '.packlist' -or \ + -name 'perllocal.pod' | xargs rm +} diff --git a/talimatname/genel/p/perl-mail-dkim/talimat b/talimatname/genel/p/perl-mail-dkim/talimat new file mode 100644 index 000000000..e5a9245f3 --- /dev/null +++ b/talimatname/genel/p/perl-mail-dkim/talimat @@ -0,0 +1,21 @@ +# Tanım: İnternet postasını DKIM/DomainKey imzaları ile imzalar/doğrular +# URL: http://search.cpan.org/ +# Paketçi: milisarge +# Gerekler: perl-crypt-openssl-rsa perl-digest-sha1 perl-mailtools perl-net-dns + +isim=perl-mail-dkim +surum=0.40 +devir=1 + +kaynak=(http://www.cpan.org/authors/id/J/JA/JASLONG/Mail-DKIM-$surum.tar.gz) + +derle() { +cd Mail-DKIM-$surum +PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +make +make DESTDIR=$PKG install +find $PKG \ + -name '*.bs' -or \ + -name '.packlist' -or \ + -name 'perllocal.pod' | xargs rm +} diff --git a/talimatname/genel/p/perl-mail-spf/talimat b/talimatname/genel/p/perl-mail-spf/talimat new file mode 100644 index 000000000..36284e62c --- /dev/null +++ b/talimatname/genel/p/perl-mail-spf/talimat @@ -0,0 +1,17 @@ +# Tanım: SPF desteği sağlayan Perl modülü +# URL: http://search.cpan.org/ +# Paketçi: milisarge +# Gerekler: perl-error perl-netaddr-ip perl-uri perl-net-dns perl-net-dns-resolver-programmable + +isim=perl-mail-spf +surum=2.9.0 +devir=1 + +kaynak=(http://search.cpan.org/CPAN/authors/id/J/JM/JMEHNLE/mail-spf/Mail-SPF-v$surum.tar.gz) + +derle() { +cd Mail-SPF-v$surum +perl Makefile.PL INSTALLDIRS=vendor +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/perl-mailtools/talimat b/talimatname/genel/p/perl-mailtools/talimat new file mode 100644 index 000000000..1956cf412 --- /dev/null +++ b/talimatname/genel/p/perl-mailtools/talimat @@ -0,0 +1,21 @@ +# Tanım: Çeşitli e-posta ile ilgili modüller +# URL: http://search.cpan.org/ +# Paketçi: milisarge +# Gerekler: perl-timedate + +isim=perl-mailtools +surum=2.13 +devir=1 + +kaynak=(http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/MailTools-$surum.tar.gz) + +derle() { +cd MailTools-$surum +perl Makefile.PL INSTALLDIRS=vendor +make +make DESTDIR=$PKG install +find $PKG \ + -name '*.bs' -or \ + -name '.packlist' -or \ + -name 'perllocal.pod' | xargs rm +} diff --git a/talimatname/genel/p/perl-module-build/talimat b/talimatname/genel/p/perl-module-build/talimat new file mode 100644 index 000000000..11cb55c2b --- /dev/null +++ b/talimatname/genel/p/perl-module-build/talimat @@ -0,0 +1,19 @@ +# Tanım: Perl modülü binası +# URL:http://search.cpan.org/~leont/Module-Build-0.4216 +# Paketçi: milisarge +# Gerekler: + +_isim=Module-Build +isim=perl-module-build +surum=0.4216 +devir=1 + +kaynak=(http://search.cpan.org/CPAN/authors/id/L/LE/LEONT/$_name-$surum.tar.gz) + +derle() { +cd $_name-$surum +perl Makefile.PL +make OPTIMIZE="$CFLAGS" +make DESTDIR=$PKG install +find $PKG -name .packlist -o -name perllocal.pod -exec rm '{}' \; +} diff --git a/talimatname/genel/p/perl-mozilla-ca/talimat b/talimatname/genel/p/perl-mozilla-ca/talimat new file mode 100644 index 000000000..7cd28a890 --- /dev/null +++ b/talimatname/genel/p/perl-mozilla-ca/talimat @@ -0,0 +1,17 @@ +# Tanım: Mozilla's CA cert bundle in PEM format +# URL: https://metacpan.org/release/Mozilla-CA +# Paketçi: milisarge +# Gerekler: +# Grup: kütüphane + +isim=perl-mozilla-ca +surum=20160104 +devir=1 +kaynak=(http://search.cpan.org/CPAN/authors/id/A/AB/ABH/Mozilla-CA-$surum.tar.gz) + +derle() { + cd Mozilla-CA-$surum + perl Makefile.PL INSTALLDIRS=vendor + make + make install DESTDIR="$PKG" +} diff --git a/talimatname/genel/p/perl-net-dns-resolver-programmable/talimat b/talimatname/genel/p/perl-net-dns-resolver-programmable/talimat new file mode 100644 index 000000000..23a633b4c --- /dev/null +++ b/talimatname/genel/p/perl-net-dns-resolver-programmable/talimat @@ -0,0 +1,21 @@ +# Tanım: DNS'nin çevrimdışı öykünmesi için bir Net::DNS::Resolver alt sınıfı +# URL: http://search.cpan.org/ +# Paketçi: milisarge +# Gerekler: perl-net-dns + +isim=perl-net-dns-resolver-programmable +surum=0.003 +devir=1 + +kaynak=(http://www.cpan.org/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/Net-DNS-Resolver-Programmable-v$surum.tar.gz) + +derle() { +cd Net-DNS-Resolver-Programmable-v$surum +PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +make +make DESTDIR=$PKG install +find $PKG \ + -name '*.bs' -or \ + -name '.packlist' -or \ + -name 'perllocal.pod' | xargs rm +} diff --git a/talimatname/genel/p/perl-net-dns/talimat b/talimatname/genel/p/perl-net-dns/talimat new file mode 100644 index 000000000..871d2864c --- /dev/null +++ b/talimatname/genel/p/perl-net-dns/talimat @@ -0,0 +1,20 @@ +# Tanım: Perl Modülü: DNS çözümleyicisine arayüz +# URL: http://search.cpan.org/ +# Paketçi: milisarge +# Gerekler: perl-digest-hmac perl-net-ip perl-io-socket-inet6 perl-socket6 + +isim=perl-net-dns +surum=0.81 +devir=1 + +kaynak=(http://www.cpan.org/authors/id/N/NL/NLNETLABS/Net-DNS-$surum.tar.gz) + +derle() { +cd Net-DNS-$surum +perl Makefile.PL INSTALLDIRS=vendor +make +make DESTDIR=$PKG install +find $PKG -iname '*.pod' -or \ +-name '.packlist' -or \ +-name 'perllocal.pod' | xargs rm +} diff --git a/talimatname/genel/p/perl-net-http/talimat b/talimatname/genel/p/perl-net-http/talimat new file mode 100644 index 000000000..18b6459e8 --- /dev/null +++ b/talimatname/genel/p/perl-net-http/talimat @@ -0,0 +1,21 @@ +# Tanım: Düşük düzey HTTP bağlantısı (istemci) +# URL: http://search.cpan.org/ +# Paketçi: milisarge +# Gerekler: + +isim=perl-net-http +surum=6.06 +devir=1 + +kaynak=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Net-HTTP-$surum.tar.gz) + +derle() { +cd Net-HTTP-$surum +perl Makefile.PL INSTALLDIRS=vendor +make +make DESTDIR=$PKG install +find $PKG \ + -name '*.bs' -or \ + -name '.packlist' -or \ + -name 'perllocal.pod' | xargs rm +} diff --git a/talimatname/genel/p/perl-net-ip/talimat b/talimatname/genel/p/perl-net-ip/talimat new file mode 100644 index 000000000..d514d451f --- /dev/null +++ b/talimatname/genel/p/perl-net-ip/talimat @@ -0,0 +1,20 @@ +# Tanım: Perl Modülü: IPv4 ve IPv6 adreslerinin kolay manipüle edilmesi +# URL: http://search.cpan.org/ +# Paketçi: milisarge +# Gerekler: + +isim=perl-net-ip +surum=1.26 +devir=1 + +kaynak=(http://www.cpan.org/authors/id/M/MA/MANU/Net-IP-$surum.tar.gz) + +derle() { +cd Net-IP-$surum +PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +make +make DESTDIR=$PKG install +find $PKG -iname '*.pod' -or \ +-name '.packlist' -or \ +-name 'perllocal.pod' | xargs rm +} diff --git a/talimatname/genel/p/perl-net-ssleay/talimat b/talimatname/genel/p/perl-net-ssleay/talimat new file mode 100644 index 000000000..08bd4335a --- /dev/null +++ b/talimatname/genel/p/perl-net-ssleay/talimat @@ -0,0 +1,31 @@ +# Tanım: OpenSSL'yi kullanmak için Perl uzantısı +# URL: http://search.cpan.org/dist/Net-SSLeay +# Paketçi: milisarge +# Gerekler: + +_cpanisim=Net-SSLeay +isim=perl-net-ssleay +surum=1.63 +devir=1 + +kaynak=(http://www.cpan.org/authors/id/M/MI/MIKEM/${_cpanname}-$surum.tar.gz) + +derle() { +cd ${_cpanname}-$surum +sed -i \ + -e "/\$opts->{optimize} = '-O2 -g';/d" \ + inc/Module/Install/PRIVATE/Net/SSLeay.pm + +export OPTIMIZE="$CFLAGS" +export OPENSSL_PREFIX=/usr + +PERL_MM_USE_DEFAULT=1 perl Makefile.PL -- INSTALLDIRS=vendor +make +make install DESTDIR=$PKG + +install -D -m644 README $PKG/usr/share/licenses/$isim/LICENSE +find $PKG \ + -name '*.bs' -or \ + -name '.packlist' -or \ + -name 'perllocal.pod' | xargs rm +} diff --git a/talimatname/genel/p/perl-netaddr-ip/talimat b/talimatname/genel/p/perl-netaddr-ip/talimat new file mode 100644 index 000000000..8ad8040c5 --- /dev/null +++ b/talimatname/genel/p/perl-netaddr-ip/talimat @@ -0,0 +1,21 @@ +# Tanım: IP adreslerini ve alt ağları yönetmek için Perl modülü +# URL: http://search.cpan.org/ +# Paketçi: milisarge +# Gerekler: + +isim=perl-netaddr-ip +surum=4.075 +devir=1 + +kaynak=(http://search.cpan.org/CPAN/authors/id/M/MI/MIKER/NetAddr-IP-$surum.tar.gz) + +derle() { +cd NetAddr-IP-$surum +perl Makefile.PL INSTALLDIRS=vendor +make +make DESTDIR=$PKG install +find $PKG \ + -name '*.bs' -or \ + -name .packlist -or \ + -name perllocal.pod | xargs rm +} diff --git a/talimatname/genel/p/perl-path-class/talimat b/talimatname/genel/p/perl-path-class/talimat new file mode 100644 index 000000000..627c39815 --- /dev/null +++ b/talimatname/genel/p/perl-path-class/talimat @@ -0,0 +1,27 @@ +# Tanım: Çapraz platform yol belirtimi manipülasyonu +# URL: http://search.cpan.org/ +# Paketçi: milisarge +# Gerekler: + +isim=perl-path-class +surum=0.33 +devir=1 + +kaynak=(http://search.cpan.org/CPAN/authors/id/K/KW/KWILLIAMS/Path-Class-$surum.tar.gz) + +derle() { +export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor" \ + PERL_MB_OPT="--installdirs vendor" \ + MODULEBUILDRC=/dev/null + +cd Path-Class-$surum +perl Makefile.PL +make +make DESTDIR=$PKG install +find $PKG \ + -name '*.bs' -or \ + -name .packlist -or \ + -name perllocal.pod | xargs rm +} diff --git a/talimatname/genel/p/perl-pod-coverage/talimat b/talimatname/genel/p/perl-pod-coverage/talimat new file mode 100644 index 000000000..e2a2c2371 --- /dev/null +++ b/talimatname/genel/p/perl-pod-coverage/talimat @@ -0,0 +1,23 @@ +# Tanım: Bir modülün belgelerinin kapsamlı olup olmadığını kontrol eder +# URL: http://search.cpan.org/dist/Pod-Coverage +# Paketçi: milisarge +# Gerekler: + +isim=perl-pod-coverage +surum=0.23 +devir=1 + +kaynak=( +http://www.cpan.org/authors/id/R/RC/RCLAMP/Pod-Coverage-$surum.tar.gz) + +derle() { + cd Pod-Coverage-$surum + perl Makefile.PL + make OPTIMIZE="$CFLAGS" || exit 1 + make install INSTALLDIRS=vendor DESTDIR=$PKG || exit 1 + + # Remove perllocal.pod and .packlist if present in the package + for i in perllocal.pod .packlist; do + find $PKG -name "$i" -exec rm -rf {} \; + done +} diff --git a/talimatname/genel/p/perl-socket6/talimat b/talimatname/genel/p/perl-socket6/talimat new file mode 100644 index 000000000..1cf4c1c8d --- /dev/null +++ b/talimatname/genel/p/perl-socket6/talimat @@ -0,0 +1,21 @@ +# Tanım: Bir getaddrinfo/getnameinfo destek modülü +# URL: http://search.cpan.org/ +# Paketçi: milisarge +# Gerekler: + +isim=perl-socket6 +surum=0.25 +devir=2 + +kaynak=(http://search.cpan.org/CPAN/authors/id/U/UM/UMEMOTO/Socket6-$surum.tar.gz) + +derle() { +cd Socket6-$surum +perl Makefile.PL INSTALLDIRS=vendor +make +make DESTDIR=$PKG install +find $PKG \ + -name '*.bs' -or \ + -name '.packlist' -or \ + -name 'perllocal.pod' | xargs rm +} diff --git a/talimatname/genel/p/perl-term-readkey/talimat b/talimatname/genel/p/perl-term-readkey/talimat new file mode 100644 index 000000000..128494d3a --- /dev/null +++ b/talimatname/genel/p/perl-term-readkey/talimat @@ -0,0 +1,19 @@ +# Tanım: Basit uç kontrolü için bir perl modülü +# URL: http://search.cpan.org/~jstowe/TermReadKey-2.33/ +# Paketçi: milisarge +# Gerekler: + +_isim=TermReadKey +isim=perl-term-readkey +surum=2.33 +devir=1 + +kaynak=(http://search.cpan.org/CPAN/authors/id/J/JS/JSTOWE/$_name-$surum.tar.gz) + +derle() { +cd $_name-$surum +perl Makefile.PL +make OPTIMIZE="$CFLAGS" +make DESTDIR=$PKG install +find $PKG -name .packlist -o -name perllocal.pod -exec rm '{}' \; +} diff --git a/talimatname/genel/p/perl-test-pod-coverage/talimat b/talimatname/genel/p/perl-test-pod-coverage/talimat new file mode 100644 index 000000000..24ea6aeb6 --- /dev/null +++ b/talimatname/genel/p/perl-test-pod-coverage/talimat @@ -0,0 +1,26 @@ +# Tanım: CPAN Test::Pod::Kapsama modülü +# URL: URL: http://search.cpan.org/dist/Test-Pod-Coverage/ +# Paketçi: milisarge +# Gerekler: perl-pod-coverage + +isim=perl-test-pod-coverage +surum=1.08 +devir=1 + +kaynak=(http://search.cpan.org/CPAN/authors/id/P/PE/PETDANCE/Test-Pod-Coverage-$surum.tar.gz) + +derle() { + cd Test-Pod-Coverage-$surum + perl Makefile.PL + make OPTIMIZE="$CFLAGS" || exit 1 + make install INSTALLDIRS=vendor DESTDIR=$PKG || exit 1 + + # Remove perllocal.pod and .packlist if present in the package + for i in perllocal.pod .packlist; do + find $PKG -name "$i" -exec rm -rf {} \; + done +} + + + +# NuTyX Pkgfile (http://nutyx.org) diff --git a/talimatname/genel/p/perl-test-pod/talimat b/talimatname/genel/p/perl-test-pod/talimat new file mode 100644 index 000000000..3023e1e31 --- /dev/null +++ b/talimatname/genel/p/perl-test-pod/talimat @@ -0,0 +1,22 @@ +# Tanım: Dosyalardaki POD hatalarını kontrol etme +# URL: http://search.cpan.org/dist/Test-Pod/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: + +isim=perl-test-pod +surum=1.51 +devir=1 + +kaynak=(http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/Test-Pod-$surum.tar.gz) + +derle() { + cd Test-Pod-$surum + perl Makefile.PL + make OPTIMIZE="$CFLAGS" || exit 1 + make install INSTALLDIRS=vendor DESTDIR=$PKG || exit 1 + + # Remove perllocal.pod and .packlist if present in the package + for i in perllocal.pod .packlist; do + find $PKG -name "$i" -exec rm -rf {} \; + done +} diff --git a/talimatname/genel/p/perl-time-duration/talimat b/talimatname/genel/p/perl-time-duration/talimat new file mode 100644 index 000000000..79baeb3d7 --- /dev/null +++ b/talimatname/genel/p/perl-time-duration/talimat @@ -0,0 +1,23 @@ +# Tanım: Yuvarlak veya kesin İngilizce sürelerin ifadesi +# URL: http://search.cpan.org/dist/Time-Duration +# Paketçi: milisarge +# Gerekler: perl-test-pod perl-test-pod-coverage + +isim=perl-time-duration +surum=1.1 +devir=1 + +kaynak=( +http://www.cpan.org/authors/id/A/AV/AVIF/Time-Duration-$surum.tar.gz) + +derle() { + cd Time-Duration-$surum + perl Makefile.PL + make OPTIMIZE="$CFLAGS" || exit 1 + make install INSTALLDIRS=vendor DESTDIR=$PKG || exit 1 + + # Remove perllocal.pod and .packlist if present in the package + for i in perllocal.pod .packlist; do + find $PKG -name "$i" -exec rm -rf {} \; + done +} diff --git a/talimatname/genel/p/perl-timedate/talimat b/talimatname/genel/p/perl-timedate/talimat new file mode 100644 index 000000000..5fbf3a99e --- /dev/null +++ b/talimatname/genel/p/perl-timedate/talimat @@ -0,0 +1,23 @@ +# Tanım: Tarih biçimlendirme altprogramları +# URL: http://search.cpan.org/dist/TimeDate/ +# Paketçi: milisarge +# Gerekler: + +isim=perl-timedate +surum=2.30 +devir=1 + +kaynak=( +http://www.cpan.org/authors/id/G/GB/GBARR/TimeDate-$surum.tar.gz) + +derle() { + cd TimeDate-$surum + perl Makefile.PL + make OPTIMIZE="$CFLAGS" || exit 1 + make install INSTALLDIRS=vendor DESTDIR=$PKG || exit 1 + + # Remove perllocal.pod and .packlist if present in the package + for i in perllocal.pod .packlist; do + find $PKG -name "$i" -exec rm -rf {} \; + done +} diff --git a/talimatname/genel/p/perl-tk/talimat b/talimatname/genel/p/perl-tk/talimat new file mode 100644 index 000000000..0d536f77e --- /dev/null +++ b/talimatname/genel/p/perl-tk/talimat @@ -0,0 +1,17 @@ +# Tanım: Perl için bir grafik kullanıcı arabirimi araç takımı. +# URL: http://search.cpan.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: perl-devel-leak perl-test-pod xorg-server libpng libjpeg-turbo tk + +isim=perl-tk +surum=804.033 +devir=1 + +kaynak=( http://search.cpan.org/CPAN/authors/id/S/SR/SREZIC/Tk-$surum.tar.gz) + +derle() { +cd Tk-$surum +perl Makefile.PL INSTALLDIRS=vendor +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/perl-try-tiny/talimat b/talimatname/genel/p/perl-try-tiny/talimat new file mode 100644 index 000000000..496acaa77 --- /dev/null +++ b/talimatname/genel/p/perl-try-tiny/talimat @@ -0,0 +1,19 @@ +# Tanım: \$@ Öğesinin uygun yerelleştirilmesiyle minimum deneme/yakalama +# URL: http://search.cpan.org/dist/Try-Tiny +# Paketçi: Cihan_Alkan +# Gerekler: +# Grup: + +isim=perl-try-tiny +surum=0.30 +devir=1 +kaynak=(http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/Try-Tiny-$surum.tar.gz) + +derle() { + cd Try-Tiny-${surum} + perl Makefile.PL INSTALLDIRS=vendor + make + make DESTDIR="$PKG" install + # upstream typo :/ + install -D -m644 LICENCE "${PKG}/usr/share/licenses/${isim}/LICENSE" +} diff --git a/talimatname/genel/p/perl-uri/talimat b/talimatname/genel/p/perl-uri/talimat new file mode 100644 index 000000000..c0e6b4456 --- /dev/null +++ b/talimatname/genel/p/perl-uri/talimat @@ -0,0 +1,21 @@ +# Tanım: Tekdüzen Kaynak Tanımlayıcıları (mutlak ve göreceli) +# URL: http://search.cpan.org/~gaas/URI-1.60/ +# Paketçi: milisarge +# Gerekler: + +isim=perl-uri +surum=1.67 +devir=1 + +kaynak=(http://www.cpan.org/authors/id/E/ET/ETHER/URI-$surum.tar.gz) + +derle() { +cd URI-$surum + perl Makefile.PL + make + make DESTDIR=$PKG install +find $PKG \ + -name '*.bs' -or \ + -name '.packlist' -or \ + -name 'perllocal.pod' | xargs rm +} diff --git a/talimatname/genel/p/perl-www-robotrules/talimat b/talimatname/genel/p/perl-www-robotrules/talimat new file mode 100644 index 000000000..2c76396e2 --- /dev/null +++ b/talimatname/genel/p/perl-www-robotrules/talimat @@ -0,0 +1,20 @@ +# Tanım: Robots.txt türevli izinlerin veritabanı +# URL: http://search.cpan.org/ +# Paketçi: milisarge +# Gerekler: perl-uri + +isim=perl-www-robotrules +surum=6.02 +devir=2 + +kaynak=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/WWW-RobotRules-$surum.tar.gz) + +derle() { +cd WWW-RobotRules-$surum +perl Makefile.PL +make +make DESTDIR=$PKG install +find $PKG \ +-name perllocal.pod \ +-o -name .packlist | xargs rm +} diff --git a/talimatname/genel/p/perl-xml-namespacesupport/talimat b/talimatname/genel/p/perl-xml-namespacesupport/talimat new file mode 100644 index 000000000..b22274f28 --- /dev/null +++ b/talimatname/genel/p/perl-xml-namespacesupport/talimat @@ -0,0 +1,22 @@ +# Tanım: Genel ad alanı yardımcıları (SAX2'den aktarılan) +# URL: http://search.cpan.org/dist/XML-NamespaceSupport +# Paketçi: milisarge +# Gerekler: + +isim=perl-xml-namespacesupport +surum=1.11 +devir=1 + +kaynak=( http://www.cpan.org/authors/id/P/PE/PERIGRIN/XML-NamespaceSupport-$surum.tar.gz) + +derle() { + cd XML-NamespaceSupport-$surum + perl Makefile.PL + make OPTIMIZE="$CFLAGS" || exit 1 + make install INSTALLDIRS=vendor DESTDIR=$PKG || exit 1 + + # Remove perllocal.pod and .packlist if present in the package + for i in perllocal.pod .packlist; do + find $PKG -name "$i" -exec rm -rf {} \; + done +} diff --git a/talimatname/genel/p/perl-xml-parser/talimat b/talimatname/genel/p/perl-xml-parser/talimat new file mode 100644 index 000000000..e80d0f657 --- /dev/null +++ b/talimatname/genel/p/perl-xml-parser/talimat @@ -0,0 +1,19 @@ +# Tanım: Xml belgesini işlemek için Perl modülü +# URL: http://search.cpan.org/dist/XML-Parser/ +# Paketçi: milisarge +# Gerekler: + +isim=perl-xml-parser +surum=2.43 +devir=2 + +kaynak=(http://cpan.metacpan.org/authors/id/T/TO/TODDR/XML-Parser-$surum.tar.gz) +run=(perl) + +derle() { +cd XML-Parser-$surum +perl Makefile.PL +make OPTIMIZE="$CFLAGS" +make DESTDIR=$PKG install +find $PKG -name .packlist -o -name perllocal.pod -exec rm '{}' \; +} diff --git a/talimatname/genel/p/perl-xml-sax-base/talimat b/talimatname/genel/p/perl-xml-sax-base/talimat new file mode 100644 index 000000000..c6c98c28b --- /dev/null +++ b/talimatname/genel/p/perl-xml-sax-base/talimat @@ -0,0 +1,24 @@ +# Tanım: Temel sınıf SAX Sürücüleri ve Filtreleri +# URL: http://search.cpan.org/dist/XML-SAX-Base +# Paketçi: milisarge +# Gerekler: + +isim=perl-xml-sax-base +surum=1.08 +devir=1 + +kaynak=( +http://www.cpan.org/authors/id/G/GR/GRANTM/XML-SAX-Base-$surum.tar.gz) + +derle() { + cd XML-SAX-Base-$surum + perl Makefile.PL + make OPTIMIZE="$CFLAGS" || exit 1 + make test + make install INSTALLDIRS=vendor DESTDIR=$PKG || exit 1 + + # Remove perllocal.pod and .packlist if present in the package + for i in perllocal.pod .packlist; do + find $PKG -name "$i" -exec rm -rf {} \; + done +} diff --git a/talimatname/genel/p/perl-xml-sax/perl-xml-sax.patch b/talimatname/genel/p/perl-xml-sax/perl-xml-sax.patch new file mode 100644 index 000000000..880468b8d --- /dev/null +++ b/talimatname/genel/p/perl-xml-sax/perl-xml-sax.patch @@ -0,0 +1,46 @@ +--- a/Makefile.PL 2011-09-04 23:37:48.000000000 +0200 ++++ b/Makefile.PL 2011-10-07 18:12:50.000000000 +0200 +@@ -12,43 +12,3 @@ + 'XML::NamespaceSupport' => 0.03, + }, + ); +- +-sub MY::install { +- package MY; +- my $script = shift->SUPER::install(@_); +- +- # Only modify existing ParserDetails.ini if user agrees +- +- my $write_ini_ok = 0; +- +- eval { require XML::SAX }; +- if ($@) { +- $write_ini_ok = 1; +- } +- else { +- my $dir = File::Basename::dirname($INC{'XML/SAX.pm'}); +- if (-e File::Spec->catfile($dir, 'SAX', 'ParserDetails.ini')) { +- $write_ini_ok = +- ExtUtils::MakeMaker::prompt( +- "Do you want XML::SAX to alter ParserDetails.ini?", "Y" +- ) =~ /^y/i; +- } +- else { +- $write_ini_ok = 1; +- } +- } +- +- if ($write_ini_ok) { +- $script =~ s/install :: (.*)$/install :: $1 install_sax_pureperl/m; +- $script .= <<"INSTALL"; +- +-install_sax_pureperl : +-\t\@\$(PERL) -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()" +- +-INSTALL +- +- } +- +- return $script; +-} +- diff --git a/talimatname/genel/p/perl-xml-sax/talimat b/talimatname/genel/p/perl-xml-sax/talimat new file mode 100644 index 000000000..d6a35427b --- /dev/null +++ b/talimatname/genel/p/perl-xml-sax/talimat @@ -0,0 +1,26 @@ +# Tanım: XML için basit API +# URL: http://search.cpan.org/dist/XML-SAX +# Paketçi: milisarge +# Gerekler: perl-xml-namespacesupport perl-xml-sax-base + +isim=perl-xml-sax +surum=0.99 +devir=1 + +kaynak=( +http://www.cpan.org/authors/id/G/GR/GRANTM/XML-SAX-$surum.tar.gz +perl-xml-sax.patch) + +derle() { + cd XML-SAX-$surum + patch -Np1 -i ../perl-xml-sax.patch || exit 1 + perl Makefile.PL + make OPTIMIZE="$CFLAGS" || exit 1 + make test + make install INSTALLDIRS=vendor DESTDIR=$PKG || exit 1 + + # Remove perllocal.pod and .packlist if present in the package + for i in perllocal.pod .packlist; do + find $PKG -name "$i" -exec rm -rf {} \; + done +} diff --git a/talimatname/genel/p/perl-xml-simple/talimat b/talimatname/genel/p/perl-xml-simple/talimat new file mode 100644 index 000000000..3d40b6934 --- /dev/null +++ b/talimatname/genel/p/perl-xml-simple/talimat @@ -0,0 +1,21 @@ +# Tanım: XML'i korumak için kolay API +# URL: http://search.cpan.org/~grantm/ +# Paketçi: milisarge +# Gerekler: + +isim=perl-xml-simple +surum=2.20 +devir=1 + +kaynak=(http://search.cpan.org/CPAN/authors/id/G/GR/GRANTM/XML-Simple-$surum.tar.gz) + +derle() { +cd XML-Simple-$surum +perl Makefile.PL +make +make DESTDIR=$PKG install +find $PKG \ + -name '*.bs' -or \ + -name .packlist -or \ + -name perllocal.pod | xargs rm +} diff --git a/talimatname/genel/p/perldoc/perldoc.desktop b/talimatname/genel/p/perldoc/perldoc.desktop new file mode 100644 index 000000000..382f9c70a --- /dev/null +++ b/talimatname/genel/p/perldoc/perldoc.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Categories=Development;Documentation +Exec=xdg-open file:///usr/share/doc/perldoc-5.20.0/index.html +Icon=perldoc +StartupNotify=false +Terminal=false +Type=Application +Name=Perl Documentation +Name[fr]=Documentation Perl diff --git a/talimatname/genel/p/perldoc/perldoc.png b/talimatname/genel/p/perldoc/perldoc.png new file mode 100644 index 000000000..adae31957 Binary files /dev/null and b/talimatname/genel/p/perldoc/perldoc.png differ diff --git a/talimatname/genel/p/perldoc/talimat b/talimatname/genel/p/perldoc/talimat new file mode 100644 index 000000000..04bc6d036 --- /dev/null +++ b/talimatname/genel/p/perldoc/talimat @@ -0,0 +1,24 @@ +# Tanım: Perldoc (Resmi Perl belgeleri) +# URL: http://perldoc.perl.org +# Paketçi: milisarge +# Gerekler: + +isim=perldoc +surum=5.20.1 +devir=1 + +kaynak=( +http://perldoc.perl.org/perldoc-html.tar.gz +perldoc.desktop +perldoc.png +) + +derle(){ +mkdir -p $PKG/usr/share/doc/$isim-$surum +cp -rf $SRC/perldoc-html/* \ +$PKG/usr/share/doc/$isim-$surum/ +install -Dm 644 $SRC/$isim.desktop \ +$PKG/usr/share/applications/$isim.desktop +install -Dm 644 $SRC/$isim.png \ +$PKG/usr/share/icons/hicolor/48x48/apps/$isim.png +} diff --git a/talimatname/genel/p/pgadmin3/pgadmin3-fix-segfault.patch b/talimatname/genel/p/pgadmin3/pgadmin3-fix-segfault.patch new file mode 100644 index 000000000..1396f8de8 --- /dev/null +++ b/talimatname/genel/p/pgadmin3/pgadmin3-fix-segfault.patch @@ -0,0 +1,11 @@ +--- a/pgadmin/frm/plugins.cpp ++++ b/pgadmin/frm/plugins.cpp +@@ -380,7 +380,7 @@ bool pluginUtilityFactory::CheckEnable(p + { + // If we need a specific server type, we can't enable unless + // we have a connection. +- if (!obj || !(obj->GetConnection()->GetStatus() == PGCONN_OK)) ++ if (!obj || !obj->GetConnection() || !(obj->GetConnection()->GetStatus() == PGCONN_OK)) + return false; + + // Get the server type. diff --git a/talimatname/genel/p/pgadmin3/talimat b/talimatname/genel/p/pgadmin3/talimat new file mode 100644 index 000000000..e40ae0b62 --- /dev/null +++ b/talimatname/genel/p/pgadmin3/talimat @@ -0,0 +1,26 @@ +# Tanım: PostgreSQL administration gui frontend +# URL: http://www.pgadmin.org/ +# Paketçi: milisarge +# Gerekler: wxgtk postgresql libgcrypt libxslt libxml2 libnotify + +isim=pgadmin3 +surum=1.22.2 +devir=1 +kaynak=(https://github.com/postgres/pgadmin3/archive/REL-1_22_2.tar.gz + pgadmin3-fix-segfault.patch) + +derle() { + cd $isim-REL-1_22_2 + bash bootstrap + patch -p1 -i $SRC/pgadmin3-fix-segfault.patch + ./configure --prefix=/usr --with-wx-surum=3.0 --with-libgcrypt + make all + make DESTDIR=$PKG install + find $PKG/usr/share/pgadmin3/docs/* ! -wholename "*tr_TR*" | xargs rm -rf + rm -r "$PKG/usr/share/pgadmin3/i18n/" + install -d "$PKG/usr/share/pgadmin3/i18n/" + install -Dm644 i18n/$isim.lng "$PKG/usr/share/pgadmin3/i18n" + cp -r i18n/tr_TR "$PKG/usr/share/pgadmin3/i18n/" + install -Dm644 "pgadmin/include/images/pgAdmin3.png" "$PKG/usr/share/pgadmin3/pgadmin3.png" + install -Dm644 "pkg/pgadmin3.desktop" "$PKG/usr/share/applications/pgadmin3.desktop" +} diff --git a/talimatname/genel/p/phonon-backend-gstreamer-qt5/talimat b/talimatname/genel/p/phonon-backend-gstreamer-qt5/talimat new file mode 100644 index 000000000..228157287 --- /dev/null +++ b/talimatname/genel/p/phonon-backend-gstreamer-qt5/talimat @@ -0,0 +1,24 @@ +# Tanım: Bu pakette, GStreamer medya çerçevesini kullanan bir Phonon arka planı bulunur. +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: phonon-qt5 gstreamer1 gstreamer1-plugins-base gstreamer1-plugins-good gstreamer1-plugins-bad gstreamer1-plugins-ugly libxml2 pulseaudio + +isim=phonon-backend-gstreamer-qt5 +devir=1 +surum=4.9.0 +_isim=phonon-backend-gstreamer + +kaynak=( http://download.kde.org/stable/phonon/${_name}/$surum/${_name}-$surum.tar.xz) + +derle() { +cd phonon-gstreamer-$surum +cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_SKIP_RPATH=ON \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DPHONON_BUILD_PHONON4QT5=ON \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/phonon-backend-vlc-qt5/talimat b/talimatname/genel/p/phonon-backend-vlc-qt5/talimat new file mode 100644 index 000000000..d0a248be6 --- /dev/null +++ b/talimatname/genel/p/phonon-backend-vlc-qt5/talimat @@ -0,0 +1,24 @@ +# Tanım: Bu pakette VLC medya çerçevesini kullanan bir Phonon arka planı bulunur. +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules phonon-qt5 libvlc pulseaudio + +isim=phonon-backend-vlc-qt5 +devir=1 +surum=0.9.0 +_isim=phonon-backend-vlc + +kaynak=( http://download.kde.org/stable/phonon/${_name}/$surum/${_name}-$surum.tar.xz) + +derle() { +cd phonon-vlc-$surum +cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_SKIP_RPATH=ON \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DPHONON_BUILD_PHONON4QT5=ON \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/phonon-qt4/talimat b/talimatname/genel/p/phonon-qt4/talimat new file mode 100644 index 000000000..509aab07c --- /dev/null +++ b/talimatname/genel/p/phonon-qt4/talimat @@ -0,0 +1,30 @@ +# Tanım: KDE'nin API multimedya programı. KDE tarafından daha fazla desteklenen eski aRts'in yerini alıyor. +# URL: https://www.kde.org/ +# Paketçi: milisarge +# Gerekler: cmake kf5-extra-cmake-modules glib qt4 pulseaudio + +isim=phonon-qt4 +devir=1 +surum=4.9.0 +_isim=phonon +kaynak=(http://download.kde.org/stable/${_name}/$surum/${_name}-$surum.tar.xz) + +derle() { + cd phonon-$surum + cmake ../phonon-$surum \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_SKIP_RPATH=ON \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=ON \ + -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4 \ + -D__KDE_HAVE_GCC_VISIBILITY=NO \ + -DCMAKE_INSTALL_LIBDIR=lib + + make + make DESTDIR=$PKG install + + # Install headers into the Qt4 dir + install -d "${PKG}"/usr/include/qt4 + mv "${PKG}"/usr/include/{phonon,KDE} "${PKG}"/usr/include/qt4/ + sed -i 's#includedir=/usr/include#includedir=/usr/include/qt4#' "${PKG}/usr/lib/pkgconfig/phonon.pc" +} diff --git a/talimatname/genel/p/phonon-qt5/talimat b/talimatname/genel/p/phonon-qt5/talimat new file mode 100644 index 000000000..cb47b1f7e --- /dev/null +++ b/talimatname/genel/p/phonon-qt5/talimat @@ -0,0 +1,25 @@ +# Tanım: KDE'nin API multimedya programı. KDE tarafından daha fazla desteklenen eski aRts'in yerini alıyor. +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: cmake kf5-extra-cmake-modules glib qt5 pulseaudio + +isim=phonon-qt5 +devir=1 +surum=4.9.0 +_isim=phonon +kaynak=(http://download.kde.org/stable/${_name}/$surum/${_name}-$surum.tar.xz) + +derle() { +cd phonon-$surum +cmake ../phonon-$surum \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_SKIP_RPATH=ON \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=ON \ + -DPHONON_BUILD_PHONON4QT5=ON \ + -D__KDE_HAVE_GCC_VISIBILITY=NO \ + -DCMAKE_INSTALL_LIBDIR=lib + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/php-gd/talimat b/talimatname/genel/p/php-gd/talimat new file mode 100644 index 000000000..3b07844c4 --- /dev/null +++ b/talimatname/genel/p/php-gd/talimat @@ -0,0 +1,22 @@ +# Tanım: php-gd kütüphanesi +# URL: http://www.php.net +# Paketçi: milisarge +# Gerekler: libgd + +isim=php-gd +surum=5.6.31 +devir=1 +kaynak=(http://www.php.net/distributions/php-$surum.tar.xz) + +derle() { + cd php-$surum + + ./configure --disable-all \ + --enable-gd-native-ttf \ + --with-gd=shared,/usr + make build-modules + + install -d $PKG/{etc/php/conf.d,usr/lib/php/extensions} + install -m 755 modules/gd.so $PKG/usr/lib/php/extensions + echo "extension=gd.so" > $PKG/etc/php/conf.d/gd.ini +} diff --git a/talimatname/genel/p/php-gettext/talimat b/talimatname/genel/p/php-gettext/talimat new file mode 100644 index 000000000..e0fca5a99 --- /dev/null +++ b/talimatname/genel/p/php-gettext/talimat @@ -0,0 +1,25 @@ +# Tanım: Php için Gettext modülü +# URL: http://www.php.net +# Paketçi: milisarge +# Gerekler: + +isim=php-gettext +surum=5.6.31 +devir=1 +kaynak=(http://www.php.net/distributions/php-$surum.tar.xz) + +derle() { + cd php-$surum + + ./configure \ + --disable-all \ + --with-${name#*-}=shared,/usr + make build-modules + + install -d $PKG/etc/php/conf.d + for i in modules/*.so; do + install -D -m755 $i $PKG/usr/lib/php/extensions/${i##*/} + echo extension=/usr/lib/php/extensions/${i##*/} >> $PKG/etc/php/conf.d/${name#php-}.ini + done + +} diff --git a/talimatname/genel/p/php-mysql/talimat b/talimatname/genel/p/php-mysql/talimat new file mode 100644 index 000000000..76c832e07 --- /dev/null +++ b/talimatname/genel/p/php-mysql/talimat @@ -0,0 +1,28 @@ +# Tanım: PHP için MySQL modulü +# URL: http://www.php.net +# Paketçi: milisarge +# Gerekler: mariadb php + +isim=php-mysql +surum=5.6.31 +devir=1 +kaynak=(http://php.net/distributions/php-$surum.tar.xz) + +derle() { + cd php-$surum + + ./configure --disable-all \ + --enable-pdo=shared \ + --enable-mysqlnd=shared \ + --with-mysql=shared,mysqlnd \ + --with-mysqli=shared,mysqlnd \ + --with-pdo-mysql=shared,mysqlnd + + make build-modules + + install -d $PKG/{etc/php/conf.d,usr/lib/php/extensions} + install -m 755 modules/*mysql*.so $PKG/usr/lib/php/extensions + + printf 'extension=%s\n' {mysqlnd,mysql,mysqli,pdo_mysql}.so \ + > $PKG/etc/php/conf.d/mysql.ini +} diff --git a/talimatname/genel/p/php-xsl/talimat b/talimatname/genel/p/php-xsl/talimat new file mode 100644 index 000000000..7cbe602b0 --- /dev/null +++ b/talimatname/genel/p/php-xsl/talimat @@ -0,0 +1,23 @@ +# Tanım: libxslt kütüphanesi kullanılarak xslt php uyarlaması +# URL: http://www.php.net +# Paketçi: milisarge +# Gerekler: libxslt + +isim=php-xsl +surum=5.6.31 +devir=1 +kaynak=(http://www.php.net/distributions/php-$surum.tar.xz) + +derle() { + cd php-$surum + + ./configure --disable-all \ + --enable-libxml \ + --enable-dom \ + --with-xsl=shared,/usr + make build-modules + + install -d $PKG/{etc/php/conf.d,usr/lib/php/extensions} + install -m 755 modules/xsl.so $PKG/usr/lib/php/extensions + echo "extension=xsl.so" > $PKG/etc/php/conf.d/xsl.ini +} diff --git a/talimatname/genel/p/php/php.kos-kur b/talimatname/genel/p/php/php.kos-kur new file mode 100644 index 000000000..4f00f265d --- /dev/null +++ b/talimatname/genel/p/php/php.kos-kur @@ -0,0 +1,12 @@ +cakisan=php7 +if [ -d /var/lib/pkg/DB/$cakisan ]; then + echo "php7 sürümü siliniyor." + nokta=`date +%m-%d-%y.%H%M%S` + mkdir -p /var/lib/pkg/koruma + [ -f /etc/php.ini ] && cp /etc/php.ini /var/lib/pkg/koruma/php7.ini.$nokta + [ -f /etc/php-fpm.conf ] && cp /etc/php-fpm.conf /var/lib/pkg/koruma/php7-fpm.conf.$nokta + [ -f /etc/pear.conf ] && cp /etc/pear.conf /var/lib/pkg/koruma/pear7.conf.$nokta + mps -sz $cakisan +else + echo "çakışan $cakisan paketi mevcut degil." +fi diff --git a/talimatname/genel/p/php/talimat b/talimatname/genel/p/php/talimat new file mode 100644 index 000000000..ee3d245dc --- /dev/null +++ b/talimatname/genel/p/php/talimat @@ -0,0 +1,44 @@ +# Tanım: Dinamik web sitelerinde kullanılan programlama kodunun HTML biçimlendirmesine doğrudan gömülmesini sağlar. +# URL: http://www.php.net +# Paketçi: milisarge +# Gerekler: apache libxml2 aspell aspell-tr libxslt enchant pcre pth freetype libexif libjpeg-turbo libpng libtiff xorg curl db mariadb openldap postgresql sqlite unixodbc openssl cyrus-sasl kerberos + +isim=php +surum=5.6.31 +devir=1 + +kaynak=(http://php.net/distributions/$isim-$surum.tar.xz) +derle() { + + cd $isim-$surum + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --datadir=/usr/share/php \ + --mandir=/usr/share/man \ + --enable-fpm \ + --with-fpm-user=apache \ + --with-fpm-group=apache \ + --with-config-file-path=/etc \ + --with-zlib \ + --enable-bcmath \ + --with-bz2 \ + --enable-calendar \ + --enable-dba=shared \ + --enable-mysqlnd \ + --with-gdbm \ + --with-gmp \ + --enable-ftp \ + --with-gettext \ + --enable-mbstring \ + --with-readline + make + make -j1 INSTALL_ROOT=$PKG install + + install -v -m644 php.ini-production $PKG/etc/php.ini + mv -v $PKG/etc/php-fpm.conf{.default,} + + sed -i 's@php/includes"@&\ninclude_path = ".:/usr/lib/php"@' $PKG/etc/php.ini + +} diff --git a/talimatname/genel/p/php7-apache/apache.conf b/talimatname/genel/p/php7-apache/apache.conf new file mode 100644 index 000000000..4a0f571f8 --- /dev/null +++ b/talimatname/genel/p/php7-apache/apache.conf @@ -0,0 +1,11 @@ +<IfModule dir_module> + <IfModule php7_module> + DirectoryIndex index.php index.html + <FilesMatch "\.php$"> + SetHandler application/x-httpd-php + </FilesMatch> + <FilesMatch "\.phps$"> + SetHandler application/x-httpd-php-source + </FilesMatch> + </IfModule> +</IfModule> \ No newline at end of file diff --git a/talimatname/genel/p/php7-apache/talimat b/talimatname/genel/p/php7-apache/talimat new file mode 100644 index 000000000..4ed675655 --- /dev/null +++ b/talimatname/genel/p/php7-apache/talimat @@ -0,0 +1,23 @@ +# Tanım: php-apache kütüphanesi +# URL: http://www.php.net +# Paketçi: halityilmaz1982 +# Gerekler: php7 apache + +isim=php7-apache +surum=7.1.11 +devir=1 +kaynak=(http://www.php.net/distributions/php-$surum.tar.xz + apache.conf) + +derle() { + cd php-$surum + + ./configure --disable-all \ + --with-apxs2 + make DESTDIR=$PKG install + + install -D -m755 ${SRC}/php-${surum}/libs/libphp7.so ${PKG}/usr/lib/httpd/modules/libphp7.so + install -D -m644 ${SRC}/apache.conf ${PKG}/etc/httpd/conf/extra/php7_module.conf + mkdir -p $PKG/etc/php/conf.d/ + echo "extension=apache.so" > $PKG/etc/php/conf.d/apache.ini +} diff --git a/talimatname/genel/p/php7/php7.kos-kur b/talimatname/genel/p/php7/php7.kos-kur new file mode 100644 index 000000000..251685395 --- /dev/null +++ b/talimatname/genel/p/php7/php7.kos-kur @@ -0,0 +1,12 @@ +cakisan=php +if [ -d /var/lib/pkg/DB/$cakisan ]; then + echo "php7 sürümü siliniyor." + nokta=`date +%m-%d-%y.%H%M%S` + mkdir -p /var/lib/pkg/koruma + [ -f /etc/php.ini ] && cp /etc/php.ini /var/lib/pkg/koruma/php.ini.$nokta + [ -f /etc/php-fpm.conf ] && cp /etc/php-fpm.conf /var/lib/pkg/koruma/php-fpm.conf.$nokta + [ -f /etc/pear.conf ] && cp /etc/pear.conf /var/lib/pkg/koruma/pear.conf.$nokta + mps -sz $cakisan +else + echo "çakışan $cakisan paketi mevcut degil." +fi diff --git a/talimatname/genel/p/php7/php7.kur-kos b/talimatname/genel/p/php7/php7.kur-kos new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/talimatname/genel/p/php7/php7.kur-kos @@ -0,0 +1 @@ + diff --git a/talimatname/genel/p/php7/talimat b/talimatname/genel/p/php7/talimat new file mode 100644 index 000000000..ecb040618 --- /dev/null +++ b/talimatname/genel/p/php7/talimat @@ -0,0 +1,50 @@ +# Tanım: Dinamik web sitelerinde kullanılan programlama kodunun doğrudan HTML içine gömülmesini sağlar. +# URL: http://www.php.net +# Paketçi: milisarge +# Gerekler: apache libxml2 aspell aspell-tr libxslt enchant pcre pth freetype libexif libjpeg-turbo libpng libtiff db mariadb openldap postgresql sqlite unixodbc cyrus-sasl kerberos + +isim=php7 +_isim=php +surum=7.1.11 +devir=1 + +kaynak=(http://php.net/distributions/${_isim}-$surum.tar.xz) + +derle() { + + cd ${_isim}-$surum + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --datadir=/usr/share/php \ + --mandir=/usr/share/man \ + --enable-fpm \ + --with-fpm-user=www-data \ + --with-fpm-group=www-data \ + --with-config-file-path=/etc \ + --with-zlib \ + --enable-bcmath \ + --with-bz2 \ + --enable-calendar \ + --enable-dba=shared \ + --with-gdbm \ + --with-gmp \ + --enable-ftp \ + --with-gettext \ + --enable-mbstring \ + --with-mysqli=shared \ + --with-mysql-sock=/run/mysqld/mysqld.sock \ + --with-pdo-mysql=shared \ + --with-readline + make + make -j1 INSTALL_ROOT=$PKG install + + install -v -m644 php.ini-production $PKG/etc/php.ini + if [ -f /etc/php-fpm.conf.default ]; then + mv -v /etc/php-fpm.conf{.default,} && + mv -v /etc/php-fpm.d/www.conf{.default,} + fi + sed -i 's@php/includes"@&\ninclude_path = ".:/usr/lib/php"@' $PKG/etc/php.ini + +} diff --git a/talimatname/genel/p/physfs/talimat b/talimatname/genel/p/physfs/talimat new file mode 100644 index 000000000..d918d150b --- /dev/null +++ b/talimatname/genel/p/physfs/talimat @@ -0,0 +1,22 @@ +# Tanım: Çeşitli arşivlere soyut erişim sağlayan kütüphane +# URL: http://icculus.org/physfs/ +# Paketçi: milisarge +# Gerekler: cmake + +isim=physfs +surum=2.0.3 +devir=1 +kaynak=(http://icculus.org/$isim/downloads/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + + sed -i -e 's|-Werror||' CMakeLists.txt + + cmake \ + -DPHYSFS_BUILD_STATIC=FALSE \ + -DCMAKE_INSTALL_PREFIX=/usr . + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/picolisp/talimat b/talimatname/genel/p/picolisp/talimat new file mode 100644 index 000000000..db55d287a --- /dev/null +++ b/talimatname/genel/p/picolisp/talimat @@ -0,0 +1,43 @@ +# Tanım: Hızlı ve hafif bir 64-bit Lisp yorumlayıcısı +# URL: http://www.picolisp.com +# Paketçi: milisarge +# Gerekler: +# Grup: geliştirme + +isim=picolisp +surum=18.1.18 +devir=1 +kaynak=(https://github.com/taij33n/picolisp/archive/v$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd "${SRC}/${isim}-$surum/src" + make all + make clean + # 64bit sürüm derlemesi + cd "${SRC}/${isim}-$surum/src64" + # real 64-bit env + make + make clean + + install -d -m755 "${PKG}/usr/lib/picolisp" + cp -a ${SRC}/${isim}/* ${PKG}/usr/lib/picolisp/ + + # kısayolar + install -d -m755 "$PKG/usr/bin/" + ln -s "/usr/lib/picolisp/bin/picolisp" "$PKG/usr/bin/" + ln -s "/usr/lib/picolisp/bin/pil" "$PKG/usr/bin/" + + ln -s "/usr/lib/picolisp/bin/ssl" "$PKG/usr/bin/" + ln -s "/usr/lib/picolisp/bin/httpGate" "$PKG/usr/bin/" + ln -s "/usr/lib/picolisp/bin/psh" "$PKG/usr/bin/" + + # belge + install -d -m755 "$PKG/usr/share/man/man1/" + ln -s "/usr/lib/picolisp/man/man1/picolisp.1" "$PKG/usr/share/man/man1/" + ln -s "/usr/lib/picolisp/man/man1/pil.1" "$PKG/usr/share/man/man1/" + + ln -s "/usr/lib/picolisp" "$PKG/usr/share/" + + # lisans + install -Dm755 $PKG/usr/lib/picolisp/COPYING $PKG/usr/share/licenses/picolisp/LICENSE +} diff --git a/talimatname/genel/p/pidgin/pidgin.kur-kos b/talimatname/genel/p/pidgin/pidgin.kur-kos new file mode 100644 index 000000000..aec6ce5d7 --- /dev/null +++ b/talimatname/genel/p/pidgin/pidgin.kur-kos @@ -0,0 +1,2 @@ +gtk-update-icon-cache +update-desktop-database diff --git a/talimatname/genel/p/pidgin/talimat b/talimatname/genel/p/pidgin/talimat new file mode 100644 index 000000000..263d0ce9c --- /dev/null +++ b/talimatname/genel/p/pidgin/talimat @@ -0,0 +1,33 @@ +# Tanım: Pidgin, AIM, ICQ, GroupWise, MSN, Jabber, IRC, Napster, Gadu-Gadu, SILC, Zephyr ve Yahoo gibi geniş bir ağ yelpazesiyle bağlanabilen bir Gtk+ 2 anında mesajlaşma istemcisidir. +# URL: http://www.pidgin.im +# Paketçi: milisarge +# Gerekler: desktop-file-utils gtk2 gstreamer1 libxml2 perl-xml-parser gnutls nss nspr xorg-libxscrnsaver xorg-libxrandr xorg-libxinerama xorg-libsm xscreensaver startup-notification hicolor-icon-theme libidn dbus networkmanager + +isim=pidgin +surum=2.10.12 +devir=1 + +kaynak=(http://downloads.sourceforge.net/$isim/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--sysconfdir=/etc \ +--with-gstreamer=1.0 \ +--disable-gevolution \ +--disable-meanwhile \ +--disable-avahi \ +--disable-mono \ +--disable-tk \ +--disable-cap \ +--disable-gtkspell \ +--disable-vv \ +--disable-nm \ +--disable-tcl \ +--disable-schemas-install \ +--enable-gnutls=yes + +make +make DESTDIR=$PKG install +rm -rf $PKG/{etc,usr/lib/perl5} +} diff --git a/talimatname/genel/p/pimcommon/talimat b/talimatname/genel/p/pimcommon/talimat new file mode 100644 index 000000000..3660e6e83 --- /dev/null +++ b/talimatname/genel/p/pimcommon/talimat @@ -0,0 +1,22 @@ +# Tanım: KDE PIM için ortak kütüphaneler +# URL : https://community.kde.org/KDE_PIM +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: qt5 akonadi kcontacts kf5-extra-cmake-modules kf5-kdoctools boost libkdepim kpimtextedit kf5-knewstuff kimap +# Grup: kde + +isim=pimcommon +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/pinentry/talimat b/talimatname/genel/p/pinentry/talimat new file mode 100644 index 000000000..26604b913 --- /dev/null +++ b/talimatname/genel/p/pinentry/talimat @@ -0,0 +1,22 @@ +# Tanım: Assuan protokolünü kullanan basit bir PIN veya parolalı giriş diyaloglarının bir koleksiyonu +# URL: http://www.gnupg.org/ +# Paketçi: milisarge +# Gerekler: libcap libsecret libassuan + +isim=pinentry +surum=0.9.7 +devir=1 + +kaynak=(ftp://ftp.gnupg.org/gcrypt/$isim/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ + --libexecdir=/usr/lib \ + --disable-pinentry-qt \ + --disable-pinentry-qt5 \ + --disable-pinentry-gtk +make +make DESTDIR=$PKG install +rm $PKG/usr/share/info/dir +} diff --git a/talimatname/genel/p/pingus/missing-header.patch b/talimatname/genel/p/pingus/missing-header.patch new file mode 100644 index 000000000..cc1dcdbb8 --- /dev/null +++ b/talimatname/genel/p/pingus/missing-header.patch @@ -0,0 +1,22 @@ +From df6e2f445d3e2925a94d22faeb17be9444513e92 Mon Sep 17 00:00:00 2001 +From: Jonathan Wakely <jwakely@redhat.com> +Date: Mon, 30 Jan 2017 15:41:53 +0000 +Subject: [PATCH] Add missing header for std::function and std::bind + +--- + src/pingus/screens/demo_session.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/pingus/screens/demo_session.cpp b/src/pingus/screens/demo_session.cpp +index e3ec49a2c..f887e50f0 100644 +--- a/src/pingus/screens/demo_session.cpp ++++ b/src/pingus/screens/demo_session.cpp +@@ -18,6 +18,7 @@ + + #include <algorithm> + #include <iostream> ++#include <functional> + + #include "engine/gui/gui_manager.hpp" + #include "engine/gui/surface_button.hpp" + diff --git a/talimatname/genel/p/pingus/pingus-0.7.6-gcc470-udl.patch b/talimatname/genel/p/pingus/pingus-0.7.6-gcc470-udl.patch new file mode 100644 index 000000000..843439321 --- /dev/null +++ b/talimatname/genel/p/pingus/pingus-0.7.6-gcc470-udl.patch @@ -0,0 +1,22 @@ +--- src/pingus/pingus_main.cpp~ 2011-12-24 15:46:47.000000000 -0600 ++++ src/pingus/pingus_main.cpp 2012-01-03 13:13:03.034195720 -0600 +@@ -465,7 +465,7 @@ + void + PingusMain::print_greeting_message() + { +- std::string greeting = "Welcome to Pingus "VERSION; ++ std::string greeting = "Welcome to Pingus " VERSION; + greeting += "!"; + std::cout << greeting << std::endl; + for (unsigned int i = 0; i < greeting.length(); ++i) +--- src/pingus/screens/pingus_menu.cpp~ 2011-12-24 15:46:47.000000000 -0600 ++++ src/pingus/screens/pingus_menu.cpp 2012-01-03 13:30:28.967700554 -0600 +@@ -153,7 +153,7 @@ + gc.get_height()/2 - 280)); + + gc.print_left(Fonts::pingus_small, Vector2i(gc.get_width()/2 - 400 + 25, gc.get_height()-140), +- "Pingus "VERSION" - Copyright (C) 1998-2011 Ingo Ruhnke <grumbel@gmail.com>\n" ++ "Pingus " VERSION " - Copyright (C) 1998-2011 Ingo Ruhnke <grumbel@gmail.com>\n" + "See the file AUTHORS for a complete list of contributors.\n" + "Pingus comes with ABSOLUTELY NO WARRANTY. This is free software, and you are\n" + "welcome to redistribute it under certain conditions; see the file COPYING for details.\n"); diff --git a/talimatname/genel/p/pingus/pingus.desktop b/talimatname/genel/p/pingus/pingus.desktop new file mode 100644 index 000000000..7492f41ad --- /dev/null +++ b/talimatname/genel/p/pingus/pingus.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Pingus +Comment=Lemmings'den esinlenen bir eylem-bulmaca oyunu +Exec=pingus +Terminal=false +Type=Application +Categories=Application;Game;LogicGame +Icon=/usr/share/pingus/images/core/editor/actions.png diff --git a/talimatname/genel/p/pingus/talimat b/talimatname/genel/p/pingus/talimat new file mode 100644 index 000000000..473c02f41 --- /dev/null +++ b/talimatname/genel/p/pingus/talimat @@ -0,0 +1,24 @@ +# Tanım: Lemmings'den esinlenen bir eylem-bulmaca oyunu +# URL: http://pingus.seul.org +# Paketçi: Cihan_Alkan +# Gerekler: sdl-image sdl-mixer xorg-mesa boost scons xorg-glu +# Grup: oyun + +isim=pingus +surum=0.7.6 +devir=1 +kaynak=(https://github.com/Pingus/pingus/archive/v$surum.tar.gz::$isim-$surum.tar.gz + ${isim}.desktop + pingus-0.7.6-gcc470-udl.patch + missing-header.patch) + +derle() { + cd $isim-$surum + patch -Np0 -i ${SRC}/pingus-0.7.6-gcc470-udl.patch + sed -i "s#/man1/#/man6/#g" Makefile + # missing header + patch -Np1 -i ../missing-header.patch + scons prefix=/usr + make install DESTDIR="${PKG}" PREFIX="/usr" + install -D -m644 "${SRC}/pingus.desktop" "${PKG}/usr/share/applications/pingus.desktop" +} diff --git a/talimatname/genel/p/pinta/talimat b/talimatname/genel/p/pinta/talimat new file mode 100644 index 000000000..1b1a7df18 --- /dev/null +++ b/talimatname/genel/p/pinta/talimat @@ -0,0 +1,25 @@ +# Tanım: Paint benzeri resim düzenleme programı +# URL: http://pinta-project.com/ +# Paketçi: Cihan_Alkan +# Gerekler: gtk-sharp2 mono-addins +# Grup: + +isim=pinta +surum=1.6 +devir=1 +kaynak=(https://github.com/PintaProject/Pinta/releases/download/$surum/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + # update the project and solution files for mono4 (taken from Fedora) + find . -name "*.sln" -print -exec sed -i 's/Format Version 10.00/Format Version 11.00/g' {} \; + find . \( -name "*.csproj" -o -name "*.proj" \) -print -exec sed -i 's#ToolsVersion="3.5"#ToolsVersion="4.0"#g; s#<TargetFrameworkVersion>.*</TargetFrameworkVersion>##g; s#<PropertyGroup>#<PropertyGroup><TargetFrameworkVersion>v4.5</TargetFrameworkVersion>#g; s#Mono.Posix, Version.*"#Mono.Posix"#g' {} \; + + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var + make + + make DESTDIR=$PKG install + install -dm755 "$PKG"/usr/share/licenses/$isim + install -m644 license-*.txt readme.md "$PKG"/usr/share/licenses/$isim/ + +} diff --git a/talimatname/genel/p/pix/talimat b/talimatname/genel/p/pix/talimat new file mode 100644 index 000000000..3ffe46291 --- /dev/null +++ b/talimatname/genel/p/pix/talimat @@ -0,0 +1,30 @@ +# Tanım: Gthumb temelli resim görüntüleyici ve tarayıcı. +# URL: https://github.com/linuxmint/pix +# Paketçi: Cihan_Alkan +# Gerekler: gnome-common yelp-tools desktop-file-utils gconf librsvg clutter-gtk gsettings-desktop-schemas libwebp webkitgtk2 +# Grup: medya + +isim=pix +surum=1.6.2 +devir=1 +kaynak=(https://github.com/linuxmint/$isim/archive/$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + gnome-autogen.sh --prefix="/usr" \ + --localstatedir="/var" \ + --libexecdir="/usr/lib/$isim" \ + -disable-static + + if [ -d 'tests/$(top_srcdir)/' ] + then + cp 'tests/$(top_srcdir)/pix/.deps/dom_test-dom.Po' "pix/.deps/" + cp 'tests/$(top_srcdir)/pix/.deps/glib_utils_test-glib-utils.Po' "pix/.deps/" + cp 'tests/$(top_srcdir)/pix/.deps/gsignature_test-gsignature.Po' "pix/.deps/" + cp 'tests/$(top_srcdir)/pix/.deps/oauth_test-gsignature.Po' "pix/.deps/" + fi + + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/help +} diff --git a/talimatname/genel/p/pjproject-ring/add_dtls_transport.patch b/talimatname/genel/p/pjproject-ring/add_dtls_transport.patch new file mode 100644 index 000000000..b7f9f296e --- /dev/null +++ b/talimatname/genel/p/pjproject-ring/add_dtls_transport.patch @@ -0,0 +1,63 @@ +--- a/pjsip/src/pjsip/sip_transport.c ++++ b/pjsip/src/pjsip/sip_transport.c +@@ -183,6 +183,13 @@ + PJSIP_TRANSPORT_RELIABLE | PJSIP_TRANSPORT_SECURE + }, + { ++ PJSIP_TRANSPORT_DTLS, ++ 5061, ++ {"DTLS", 4}, ++ "DTLS transport", ++ PJSIP_TRANSPORT_SECURE ++ }, ++ { + PJSIP_TRANSPORT_SCTP, + 5060, + {"SCTP", 4}, +@@ -224,6 +231,13 @@ + "TLS IPv6 transport", + PJSIP_TRANSPORT_RELIABLE | PJSIP_TRANSPORT_SECURE + }, ++ { ++ PJSIP_TRANSPORT_DTLS6, ++ 5061, ++ {"DTLS", 4}, ++ "DTLS IPv6 transport", ++ PJSIP_TRANSPORT_SECURE ++ }, + }; + + static void tp_state_callback(pjsip_transport *tp, +@@ -249,7 +263,7 @@ + */ + PJ_DEF(pj_status_t) pjsip_transport_register_type( unsigned tp_flag, + const char *tp_name, +- int def_port, ++ int def_port, + int *p_tp_type) + { + unsigned i; +--- a/pjsip/include/pjsip/sip_types.h ++++ b/pjsip/include/pjsip/sip_types.h +@@ -73,6 +73,9 @@ + /** TLS. */ + PJSIP_TRANSPORT_TLS, + ++ /** DTLS. */ ++ PJSIP_TRANSPORT_DTLS, ++ + /** SCTP. */ + PJSIP_TRANSPORT_SCTP, + +@@ -95,7 +98,10 @@ + PJSIP_TRANSPORT_TCP6 = PJSIP_TRANSPORT_TCP + PJSIP_TRANSPORT_IPV6, + + /** TLS over IPv6 */ +- PJSIP_TRANSPORT_TLS6 = PJSIP_TRANSPORT_TLS + PJSIP_TRANSPORT_IPV6 ++ PJSIP_TRANSPORT_TLS6 = PJSIP_TRANSPORT_TLS + PJSIP_TRANSPORT_IPV6, ++ ++ /** DTLS over IPv6 */ ++ PJSIP_TRANSPORT_DTLS6 = PJSIP_TRANSPORT_DTLS + PJSIP_TRANSPORT_IPV6 + + } pjsip_transport_type_e; + diff --git a/talimatname/genel/p/pjproject-ring/endianness.patch b/talimatname/genel/p/pjproject-ring/endianness.patch new file mode 100644 index 000000000..84b949944 --- /dev/null +++ b/talimatname/genel/p/pjproject-ring/endianness.patch @@ -0,0 +1,19 @@ +diff --git a/pjlib/include/pj/config.h b/pjlib/include/pj/config.h +index 10f86fd..4ace1bc 100644 +--- a/pjlib/include/pj/config.h ++++ b/pjlib/include/pj/config.h +@@ -245,7 +245,13 @@ + # define PJ_M_NAME "armv4" + # define PJ_HAS_PENTIUM 0 + # if !PJ_IS_LITTLE_ENDIAN && !PJ_IS_BIG_ENDIAN +-# error Endianness must be declared for this processor ++# if defined(__GNUC__) ++# include <endian.h> ++# define PJ_IS_LITTLE_ENDIAN __BYTE_ORDER__ == __LITTLE_ENDIAN__ ++# define PJ_IS_BIG_ENDIAN __BYTE_ORDER__ == __BIG_ENDIAN__ ++# else ++# error Endianness must be declared for this processor ++# endif + # endif + + #elif defined (PJ_M_POWERPC) || defined(__powerpc) || defined(__powerpc__) || \ diff --git a/talimatname/genel/p/pjproject-ring/fix_base64.patch b/talimatname/genel/p/pjproject-ring/fix_base64.patch new file mode 100644 index 000000000..70bdd5054 --- /dev/null +++ b/talimatname/genel/p/pjproject-ring/fix_base64.patch @@ -0,0 +1,20 @@ +--- a/pjlib-util/src/pjlib-util/base64.c 2017-05-03 10:29:07.200417026 -0400 ++++ b/pjlib-util/src/pjlib-util/base64.c 2017-05-03 10:28:30.344335390 -0400 +@@ -131,7 +131,7 @@ + + PJ_ASSERT_RETURN(input && out && out_len, PJ_EINVAL); + +- while (buf[len-1] == '=' && len) ++ while (len && buf[len-1] == '=') + --len; + + PJ_ASSERT_RETURN(*out_len >= PJ_BASE64_TO_BASE256_LEN(len), +@@ -161,7 +161,7 @@ + out[j++] = (pj_uint8_t)(((c[2] & 0x03)<<6) | (c[3] & 0x3F)); + } + +- pj_assert(j < *out_len); ++ pj_assert(j <= *out_len); + *out_len = j; + + return PJ_SUCCESS; diff --git a/talimatname/genel/p/pjproject-ring/fix_ioqueue_ipv6_sendto.patch b/talimatname/genel/p/pjproject-ring/fix_ioqueue_ipv6_sendto.patch new file mode 100644 index 000000000..bc53fd2cb --- /dev/null +++ b/talimatname/genel/p/pjproject-ring/fix_ioqueue_ipv6_sendto.patch @@ -0,0 +1,19 @@ +--- a/pjlib/src/pj/ioqueue_common_abs.c 2015-11-05 23:18:46.000000000 -0500 ++++ b/pjlib/src/pj/ioqueue_common_abs.c 2016-10-21 13:49:09.183662433 -0400 +@@ -1048,5 +1048,6 @@ + * Check that address storage can hold the address parameter. + */ +- PJ_ASSERT_RETURN(addrlen <= (int)sizeof(pj_sockaddr_in), PJ_EBUG); ++ PJ_ASSERT_RETURN((((pj_sockaddr*)addr)->addr.sa_family == pj_AF_INET() && addrlen <= (int)sizeof(pj_sockaddr_in)) || ++ (((pj_sockaddr*)addr)->addr.sa_family == pj_AF_INET6() && addrlen <= (int)sizeof(pj_sockaddr_in6)), PJ_EBUG); + + /* +--- a/pjlib/src/pj/ioqueue_common_abs.h 2013-02-21 06:18:36.000000000 -0500 ++++ b/pjlib/src/pj/ioqueue_common_abs.h 2016-10-21 14:04:04.148928591 -0400 +@@ -64,5 +64,5 @@ + pj_ssize_t written; + unsigned flags; +- pj_sockaddr_in rmt_addr; ++ pj_sockaddr rmt_addr; + int rmt_addrlen; + }; diff --git a/talimatname/genel/p/pjproject-ring/fix_turn_fallback.patch b/talimatname/genel/p/pjproject-ring/fix_turn_fallback.patch new file mode 100644 index 000000000..50229dd01 --- /dev/null +++ b/talimatname/genel/p/pjproject-ring/fix_turn_fallback.patch @@ -0,0 +1,53 @@ +--- a/pjnath/src/pjnath/turn_session.c 2016-09-19 18:21:09.073614574 -0400 ++++ b/pjnath/src/pjnath/turn_session.c 2016-09-19 18:21:30.648631620 -0400 +@@ -653,3 +653,3 @@ + +- cnt = PJ_TURN_MAX_DNS_SRV_CNT; ++ cnt = 1; + ai = (pj_addrinfo*) +--- a/pjnath/src/pjnath/ice_strans.c 2016-09-19 18:36:04.180104330 -0400 ++++ b/pjnath/src/pjnath/ice_strans.c 2016-09-19 18:37:10.614136809 -0400 +@@ -1304,2 +1304,5 @@ + ++ if (!comp->turn[n].sock) ++ continue; ++ + /* Gather remote addresses for this component */ +@@ -1995,4 +1998,37 @@ + sess_init_update(comp->ice_st); + ++ } else if ((old_state == PJ_TURN_STATE_RESOLVING || old_state == PJ_TURN_STATE_ALLOCATING) && ++ new_state >= PJ_TURN_STATE_DEALLOCATING) ++ { ++ pj_ice_sess_cand *cand = NULL; ++ unsigned i; ++ ++ /* DNS resolution has failed! */ ++ ++comp->turn[tp_idx].err_cnt; ++ ++ /* Unregister ourself from the TURN relay */ ++ pj_turn_sock_set_user_data(turn_sock, NULL); ++ comp->turn[tp_idx].sock = NULL; ++ ++ /* Wait until initialization completes */ ++ pj_grp_lock_acquire(comp->ice_st->grp_lock); ++ ++ /* Find relayed candidate in the component */ ++ for (i=0; i<comp->cand_cnt; ++i) { ++ if (comp->cand_list[i].type == PJ_ICE_CAND_TYPE_RELAYED && ++ comp->cand_list[i].transport_id == data->transport_id) ++ { ++ cand = &comp->cand_list[i]; ++ break; ++ } ++ } ++ pj_assert(cand != NULL); ++ ++ pj_grp_lock_release(comp->ice_st->grp_lock); ++ ++ cand->status = old_state == PJ_TURN_STATE_RESOLVING ? PJ_ERESOLVE : PJ_EINVALIDOP; ++ ++ sess_init_update(comp->ice_st); ++ + } else if (new_state >= PJ_TURN_STATE_DEALLOCATING) { + pj_turn_session_info info; diff --git a/talimatname/genel/p/pjproject-ring/gnutls.patch b/talimatname/genel/p/pjproject-ring/gnutls.patch new file mode 100644 index 000000000..e8b26657e --- /dev/null +++ b/talimatname/genel/p/pjproject-ring/gnutls.patch @@ -0,0 +1,3295 @@ +Copyright (c) 2014-2017 Savoir-faire Linux Inc. + +ssl_sock: add gnutls backend + +This backend is mutually exclusive with the OpenSSL one, but completely +compatible, and conformant to the PJSIP API. Also avoids any license issues +when linking statically. + +The configure script is updated to select either OpenSSL or GnuTLS +with --enable-ssl[='...'] and a new symbol (PJ_HAS_TLS_SOCK) is introduced +to identify which backend is in use. + +Written by +Vittorio Giovara <vittorio.giovara@savoirfairelinux.com> +Philippe Proulx <philippe.proulx@savoirfairelinux.com> and +Adrien Béraud <adrien.beraud@savoirfairelinux.com> +on behalf of Savoir-faire Linux. + +--- +diff -ru a/aconfigure b/aconfigure +--- a/aconfigure 2017-01-25 06:23:08.000000000 -0500 ++++ b/aconfigure 2017-06-08 13:51:11.146810527 -0400 +@@ -644,6 +644,8 @@ + libcrypto_present + libssl_present + openssl_h_present ++libgnutls_present ++gnutls_h_present + ac_ssl_has_aes_gcm + ac_no_ssl + ac_openh264_ldflags +@@ -1482,8 +1484,8 @@ + package and samples location using IPPROOT and + IPPSAMPLES env var or with --with-ipp and + --with-ipp-samples options +- --disable-ssl Exclude SSL support the build (default: autodetect) +- ++ --enable-ssl=backend Select 'gnutls' or 'openssl' (default) to provide ++ SSL support (autodetect) + --disable-opencore-amr Exclude OpenCORE AMR support from the build + (default: autodetect) + +@@ -7787,17 +7789,149 @@ + + # Check whether --enable-ssl was given. + if test "${enable_ssl+set}" = set; then : +- enableval=$enable_ssl; +- if test "$enable_ssl" = "no"; then +- ac_no_ssl=1 +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SSL support is disabled... yes" >&5 ++ enableval=$enable_ssl; if test "x$enableval" = "xgnutls"; then ++ ssl_backend="gnutls" ++ else ++ ssl_backend="openssl" ++ fi ++fi ++ ++ ++if test "x$enable_ssl" = "xno"; then ++ ac_no_ssl=1 ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SSL support is disabled... yes" >&5 + $as_echo "Checking if SSL support is disabled... yes" >&6; } +- fi ++else ++ if test "x$with_ssl" != "xno" -a "x$with_ssl" != "x"; then ++ CFLAGS="$CFLAGS -I$with_ssl/include" ++ LDFLAGS="$LDFLAGS -L$with_ssl/lib" ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSL prefix... $with_ssl" >&5 ++$as_echo "Using SSL prefix... $with_ssl" >&6; } ++ fi ++ if test "x$ssl_backend" = "xgnutls"; then ++ for ac_prog in $host-pkg-config pkg-config "python pkgconfig.py" ++do ++ # Extract the first word of "$ac_prog", so it can be a program name with args. ++set dummy $ac_prog; ac_word=$2 ++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 ++$as_echo_n "checking for $ac_word... " >&6; } ++if ${ac_cv_prog_PKG_CONFIG+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ if test -n "$PKG_CONFIG"; then ++ ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ++ ac_cv_prog_PKG_CONFIG="$ac_prog" ++ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++ done ++IFS=$as_save_IFS ++ ++fi ++fi ++PKG_CONFIG=$ac_cv_prog_PKG_CONFIG ++if test -n "$PKG_CONFIG"; then ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 ++$as_echo "$PKG_CONFIG" >&6; } ++else ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 ++$as_echo "no" >&6; } ++fi ++ ++ ++ test -n "$PKG_CONFIG" && break ++done ++test -n "$PKG_CONFIG" || PKG_CONFIG="none" ++ ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for GnuTLS installations.." >&5 ++$as_echo "checking for GnuTLS installations.." >&6; } ++ ++ ++ ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default" ++if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then : ++ gnutls_h_present=1 ++fi ++ + ++ ++ if test "$PKG_CONFIG" != "none"; then ++ if $PKG_CONFIG --exists gnutls; then ++ LIBS="$LIBS `$PKG_CONFIG --libs gnutls`" ++ libgnutls_present=1 ++ else ++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_certificate_set_x509_system_trust in -lgnutls" >&5 ++$as_echo_n "checking for gnutls_certificate_set_x509_system_trust in -lgnutls... " >&6; } ++if ${ac_cv_lib_gnutls_gnutls_certificate_set_x509_system_trust+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ac_check_lib_save_LIBS=$LIBS ++LIBS="-lgnutls $LIBS" ++cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char gnutls_certificate_set_x509_system_trust (); ++int ++main () ++{ ++return gnutls_certificate_set_x509_system_trust (); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_c_try_link "$LINENO"; then : ++ ac_cv_lib_gnutls_gnutls_certificate_set_x509_system_trust=yes + else ++ ac_cv_lib_gnutls_gnutls_certificate_set_x509_system_trust=no ++fi ++rm -f core conftest.err conftest.$ac_objext \ ++ conftest$ac_exeext conftest.$ac_ext ++LIBS=$ac_check_lib_save_LIBS ++fi ++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_certificate_set_x509_system_trust" >&5 ++$as_echo "$ac_cv_lib_gnutls_gnutls_certificate_set_x509_system_trust" >&6; } ++if test "x$ac_cv_lib_gnutls_gnutls_certificate_set_x509_system_trust" = xyes; then : ++ libgnutls_present=1 && ++ LIBS="$LIBS -lgnutls" ++fi + ++ fi ++ else ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Warning: neither pkg-config nor python is available, disabling gnutls. ***" >&5 ++$as_echo "*** Warning: neither pkg-config nor python is available, disabling gnutls. ***" >&6; } ++ fi ++ ++ if test "x$gnutls_h_present" = "x1" -a "x$libgnutls_present" = "x1"; then ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: GnuTLS library found, SSL support enabled" >&5 ++$as_echo "GnuTLS library found, SSL support enabled" >&6; } ++ # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK ++ #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1) ++ $as_echo "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h ++ ++ $as_echo "#define PJ_HAS_TLS_SOCK 1" >>confdefs.h ++ ++ else ++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** No GnuTLS libraries found, disabling SSL support **" >&5 ++$as_echo "** No GnuTLS libraries found, disabling SSL support **" >&6; } ++ fi ++ else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenSSL installations.." >&5 + $as_echo "checking for OpenSSL installations.." >&6; } ++ + if test "x$with_ssl" != "xno" -a "x$with_ssl" != "x"; then + CFLAGS="$CFLAGS -I$with_ssl/include" + LDFLAGS="$LDFLAGS -L$with_ssl/lib" +@@ -7971,11 +8105,10 @@ + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** OpenSSL libraries not found, disabling SSL support **" >&5 + $as_echo "** OpenSSL libraries not found, disabling SSL support **" >&6; } + fi +- ++ fi + fi + + +- + # Check whether --with-opencore-amrnb was given. + if test "${with_opencore_amrnb+set}" = set; then : + withval=$with_opencore_amrnb; as_fn_error $? "This option is obsolete and replaced by --with-opencore-amr=DIR" "$LINENO" 5 +diff -ru a/aconfigure.ac b/aconfigure.ac +--- a/aconfigure.ac 2017-01-25 06:23:08.000000000 -0500 ++++ b/aconfigure.ac 2017-06-08 13:28:17.138135490 -0400 +@@ -1533,18 +1533,59 @@ + dnl # Include SSL support + AC_SUBST(ac_no_ssl) + AC_SUBST(ac_ssl_has_aes_gcm,0) +-AC_ARG_ENABLE(ssl, +- AS_HELP_STRING([--disable-ssl], +- [Exclude SSL support the build (default: autodetect)]) +- , +- [ +- if test "$enable_ssl" = "no"; then +- [ac_no_ssl=1] +- AC_MSG_RESULT([Checking if SSL support is disabled... yes]) +- fi +- ], +- [ ++AC_ARG_ENABLE([ssl], ++ AS_HELP_STRING([--enable-ssl[=backend]], ++ [Select 'gnutls' or 'openssl' (default) to provide SSL support (autodetect)]), ++ [ if test "x$enableval" = "xgnutls"; then ++ [ssl_backend="gnutls"] ++ else ++ [ssl_backend="openssl"] ++ fi ]) ++ ++if test "x$enable_ssl" = "xno"; then ++ [ac_no_ssl=1] ++ AC_MSG_RESULT([Checking if SSL support is disabled... yes]) ++else ++ if test "x$with_ssl" != "xno" -a "x$with_ssl" != "x"; then ++ CFLAGS="$CFLAGS -I$with_ssl/include" ++ LDFLAGS="$LDFLAGS -L$with_ssl/lib" ++ AC_MSG_RESULT([Using SSL prefix... $with_ssl]) ++ fi ++ if test "x$ssl_backend" = "xgnutls"; then ++ AC_CHECK_PROGS(PKG_CONFIG, ++ $host-pkg-config pkg-config "python pkgconfig.py", ++ none) ++ AC_MSG_RESULT([checking for GnuTLS installations..]) ++ AC_SUBST(gnutls_h_present) ++ AC_SUBST(libgnutls_present) ++ AC_CHECK_HEADER(gnutls/gnutls.h, [gnutls_h_present=1]) ++ ++ if test "$PKG_CONFIG" != "none"; then ++ if $PKG_CONFIG --exists gnutls; then ++ LIBS="$LIBS `$PKG_CONFIG --libs gnutls`" ++ libgnutls_present=1 ++ else ++ AC_CHECK_LIB(gnutls, ++ gnutls_certificate_set_x509_system_trust, ++ [libgnutls_present=1 && ++ LIBS="$LIBS -lgnutls"]) ++ fi ++ else ++ AC_MSG_RESULT([*** Warning: neither pkg-config nor python is available, disabling gnutls. ***]) ++ fi ++ ++ if test "x$gnutls_h_present" = "x1" -a "x$libgnutls_present" = "x1"; then ++ AC_MSG_RESULT([GnuTLS library found, SSL support enabled]) ++ # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK ++ #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1) ++ AC_DEFINE(PJ_HAS_SSL_SOCK, 1) ++ AC_DEFINE(PJ_HAS_TLS_SOCK, 1) ++ else ++ AC_MSG_RESULT([** No GnuTLS libraries found, disabling SSL support **]) ++ fi ++ else + AC_MSG_RESULT([checking for OpenSSL installations..]) ++ + if test "x$with_ssl" != "xno" -a "x$with_ssl" != "x"; then + CFLAGS="$CFLAGS -I$with_ssl/include" + LDFLAGS="$LDFLAGS -L$with_ssl/lib" +@@ -1578,7 +1619,8 @@ + else + AC_MSG_RESULT([** OpenSSL libraries not found, disabling SSL support **]) + fi +- ]) ++ fi ++fi + + dnl # Obsolete option --with-opencore-amrnb + AC_ARG_WITH(opencore-amrnb, +diff -ru a/pjlib/build/Makefile b/pjlib/build/Makefile +--- a/pjlib/build/Makefile 2016-10-05 05:52:39.000000000 -0400 ++++ b/pjlib/build/Makefile 2017-06-08 13:30:20.702138591 -0400 +@@ -35,7 +35,7 @@ + guid.o hash.o ip_helper_generic.o list.o lock.o log.o os_time_common.o \ + os_info.o pool.o pool_buf.o pool_caching.o pool_dbg.o rand.o \ + rbtree.o sock_common.o sock_qos_common.o \ +- ssl_sock_common.o ssl_sock_ossl.o ssl_sock_dump.o \ ++ ssl_sock_common.o ssl_sock_ossl.o ssl_sock_gtls.o ssl_sock_dump.o \ + string.o timer.o types.o + export PJLIB_CFLAGS += $(_CFLAGS) + export PJLIB_CXXFLAGS += $(_CXXFLAGS) +diff -ru a/pjlib/include/pj/compat/os_auto.h.in b/pjlib/include/pj/compat/os_auto.h.in +--- a/pjlib/include/pj/compat/os_auto.h.in 2017-01-24 00:36:50.000000000 -0500 ++++ b/pjlib/include/pj/compat/os_auto.h.in 2017-06-08 13:31:04.976064779 -0400 +@@ -219,6 +219,9 @@ + #ifndef PJ_HAS_SSL_SOCK + #undef PJ_HAS_SSL_SOCK + #endif ++#ifndef PJ_HAS_TLS_SOCK ++#undef PJ_HAS_TLS_SOCK ++#endif + + + #endif /* __PJ_COMPAT_OS_AUTO_H__ */ +diff -ru a/pjlib/include/pj/config.h b/pjlib/include/pj/config.h +--- a/pjlib/include/pj/config.h 2017-01-25 21:29:59.000000000 -0500 ++++ b/pjlib/include/pj/config.h 2017-06-08 13:34:27.642149351 -0400 +@@ -888,7 +888,7 @@ + + /** + * Enable secure socket. For most platforms, this is implemented using +- * OpenSSL, so this will require OpenSSL to be installed. For Symbian ++ * OpenSSL or GnuTLS, so this will require OpenSSL or GnuTLS to be installed. For Symbian + * platform, this is implemented natively using CSecureSocket. + * + * Default: 0 (for now) +@@ -896,6 +896,10 @@ + #ifndef PJ_HAS_SSL_SOCK + # define PJ_HAS_SSL_SOCK 0 + #endif ++// When set to 1 secure sockets will use the GnuTLS backend than OpenSSL ++#ifndef PJ_HAS_TLS_SOCK ++# define PJ_HAS_TLS_SOCK 0 ++#endif + + + /** +diff -ru a/pjlib/include/pj/ssl_sock.h b/pjlib/include/pj/ssl_sock.h +--- a/pjlib/include/pj/ssl_sock.h 2016-10-27 03:58:01.000000000 -0400 ++++ b/pjlib/include/pj/ssl_sock.h 2017-06-08 13:36:16.448510381 -0400 +@@ -184,6 +184,10 @@ + pj_str_t raw; /**< Raw certificate in PEM format, only + available for remote certificate. */ + ++ struct { ++ unsigned cnt; /**< # of entry */ ++ pj_str_t* cert_raw; ++ } raw_chain; + } pj_ssl_cert_info; + + +diff -ru a/pjlib/src/pj/ssl_sock_common.c b/pjlib/src/pj/ssl_sock_common.c +--- a/pjlib/src/pj/ssl_sock_common.c 2016-10-27 03:58:01.000000000 -0400 ++++ b/pjlib/src/pj/ssl_sock_common.c 2017-06-08 13:37:17.171037628 -0400 +@@ -35,7 +35,12 @@ + param->async_cnt = 1; + param->concurrency = -1; + param->whole_data = PJ_TRUE; ++#if defined(PJ_HAS_TLS_SOCK) && PJ_HAS_TLS_SOCK == 1 ++ // GnuTLS is allowed to send bigger chunks ++ param->send_buffer_size = 65536; ++#else + param->send_buffer_size = 8192; ++#endif + #if !defined(PJ_SYMBIAN) || PJ_SYMBIAN==0 + param->read_buffer_size = 1500; + #endif +diff --git a/pjlib/src/pj/ssl_sock_gtls.c b/pjlib/src/pj/ssl_sock_gtls.c +new file mode 100644 +index 0000000..37bcaba +--- /dev/null ++++ b/pjlib/src/pj/ssl_sock_gtls.c +@@ -0,0 +1,2877 @@ ++/* $Id$ */ ++/* ++ * Copyright (C) 2014-2016 Savoir-faire Linux. (https://www.savoirfairelinux.com) ++ * ++ * This program is free software; you can redistribute it and/or modify ++ * it under the terms of the GNU General Public License as published by ++ * the Free Software Foundation; either version 2 of the License, or ++ * (at your option) any later version. ++ * ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * You should have received a copy of the GNU General Public License ++ * along with this program; if not, write to the Free Software ++ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ++ */ ++ ++#include <pj/ssl_sock.h> ++#include <pj/activesock.h> ++#include <pj/compat/socket.h> ++#include <pj/assert.h> ++#include <pj/errno.h> ++#include <pj/list.h> ++#include <pj/lock.h> ++#include <pj/log.h> ++#include <pj/math.h> ++#include <pj/os.h> ++#include <pj/pool.h> ++#include <pj/string.h> ++#include <pj/timer.h> ++#include <pj/file_io.h> ++ ++#if GNUTLS_VERSION_NUMBER < 0x030306 && !defined(_MSC_VER) ++#include <dirent.h> ++#endif ++ ++#include <errno.h> ++ ++/* Only build when PJ_HAS_SSL_SOCK and PJ_HAS_TLS_SOCK are enabled */ ++#if defined(PJ_HAS_SSL_SOCK) && PJ_HAS_SSL_SOCK != 0 && \ ++ defined(PJ_HAS_TLS_SOCK) && PJ_HAS_TLS_SOCK != 0 ++ ++#define THIS_FILE "ssl_sock_gtls.c" ++ ++/* Workaround for ticket #985 */ ++#define DELAYED_CLOSE_TIMEOUT 200 ++ ++/* Maximum ciphers */ ++#define MAX_CIPHERS 100 ++ ++/* Standard trust locations */ ++#define TRUST_STORE_FILE1 "/etc/ssl/certs/ca-certificates.crt" ++#define TRUST_STORE_FILE2 "/etc/ssl/certs/ca-bundle.crt" ++ ++/* Debugging output level for GnuTLS only */ ++#define GNUTLS_LOG_LEVEL 0 ++ ++/* GnuTLS includes */ ++#include <gnutls/gnutls.h> ++#include <gnutls/x509.h> ++#include <gnutls/abstract.h> ++ ++#ifdef _MSC_VER ++# pragma comment( lib, "libgnutls") ++#endif ++ ++ ++/* TLS state enumeration. */ ++enum tls_connection_state { ++ TLS_STATE_NULL, ++ TLS_STATE_HANDSHAKING, ++ TLS_STATE_ESTABLISHED ++}; ++ ++/* Internal timer types. */ ++enum timer_id { ++ TIMER_NONE, ++ TIMER_HANDSHAKE_TIMEOUT, ++ TIMER_CLOSE ++}; ++ ++/* Structure of SSL socket read buffer. */ ++typedef struct read_data_t { ++ void *data; ++ pj_size_t len; ++} read_data_t; ++ ++/* ++ * Get the offset of pointer to read-buffer of SSL socket from read-buffer ++ * of active socket. Note that both SSL socket and active socket employ ++ * different but correlated read-buffers (as much as async_cnt for each), ++ * and to make it easier/faster to find corresponding SSL socket's read-buffer ++ * from known active socket's read-buffer, the pointer of corresponding ++ * SSL socket's read-buffer is stored right after the end of active socket's ++ * read-buffer. ++ */ ++#define OFFSET_OF_READ_DATA_PTR(ssock, asock_rbuf) \ ++ (read_data_t**) \ ++ ((pj_int8_t *)(asock_rbuf) + \ ++ ssock->param.read_buffer_size) ++ ++/* Structure of SSL socket write data. */ ++typedef struct write_data_t { ++ PJ_DECL_LIST_MEMBER(struct write_data_t); ++ pj_ioqueue_op_key_t key; ++ pj_size_t record_len; ++ pj_ioqueue_op_key_t *app_key; ++ pj_size_t plain_data_len; ++ pj_size_t data_len; ++ unsigned flags; ++ union { ++ char content[1]; ++ const char *ptr; ++ } data; ++} write_data_t; ++ ++ ++/* Structure of SSL socket write buffer (circular buffer). */ ++typedef struct send_buf_t { ++ char *buf; ++ pj_size_t max_len; ++ char *start; ++ pj_size_t len; ++} send_buf_t; ++ ++ ++/* Circular buffer object */ ++typedef struct circ_buf_t { ++ pj_size_t cap; /* maximum number of elements (must be power of 2) */ ++ pj_size_t readp; /* index of oldest element */ ++ pj_size_t writep; /* index at which to write new element */ ++ pj_size_t size; /* number of elements */ ++ pj_uint8_t *buf; /* data buffer */ ++ pj_pool_t *pool; /* where new allocations will take place */ ++} circ_buf_t; ++ ++ ++/* Secure socket structure definition. */ ++struct pj_ssl_sock_t { ++ pj_pool_t *pool; ++ pj_ssl_sock_t *parent; ++ pj_ssl_sock_param param; ++ pj_ssl_sock_param newsock_param; ++ pj_ssl_cert_t *cert; ++ ++ pj_ssl_cert_info local_cert_info; ++ pj_ssl_cert_info remote_cert_info; ++ ++ pj_bool_t is_server; ++ enum tls_connection_state connection_state; ++ pj_ioqueue_op_key_t handshake_op_key; ++ pj_timer_entry timer; ++ pj_status_t verify_status; ++ ++ int last_err; ++ ++ pj_sock_t sock; ++ pj_activesock_t *asock; ++ ++ pj_sockaddr local_addr; ++ pj_sockaddr rem_addr; ++ int addr_len; ++ ++ pj_bool_t read_started; ++ pj_size_t read_size; ++ pj_uint32_t read_flags; ++ void **asock_rbuf; ++ read_data_t *ssock_rbuf; ++ ++ write_data_t write_pending; /* list of pending writes */ ++ write_data_t write_pending_empty; /* cache for write_pending */ ++ pj_bool_t flushing_write_pend; /* flag of flushing is ongoing */ ++ send_buf_t send_buf; ++ write_data_t send_pending; /* list of pending write to network */ ++ ++ gnutls_session_t session; ++ gnutls_certificate_credentials_t xcred; ++ ++ circ_buf_t circ_buf_input; ++ pj_lock_t *circ_buf_input_mutex; ++ ++ circ_buf_t circ_buf_output; ++ pj_lock_t *circ_buf_output_mutex; ++ ++ int tls_init_count; /* library initialization counter */ ++}; ++ ++ ++/* Certificate/credential structure definition. */ ++struct pj_ssl_cert_t { ++ pj_str_t CA_file; ++ pj_str_t CA_path; ++ pj_str_t cert_file; ++ pj_str_t privkey_file; ++ pj_str_t privkey_pass; ++}; ++ ++/* GnuTLS available ciphers */ ++static unsigned tls_available_ciphers; ++ ++/* Array of id/names for available ciphers */ ++static struct tls_ciphers_t { ++ pj_ssl_cipher id; ++ const char *name; ++} tls_ciphers[MAX_CIPHERS]; ++ ++/* Last error reported somehow */ ++static int tls_last_error; ++ ++ ++/* ++ ******************************************************************* ++ * Circular buffer functions. ++ ******************************************************************* ++ */ ++ ++static pj_status_t circ_init(pj_pool_factory *factory, ++ circ_buf_t *cb, pj_size_t cap) ++{ ++ cb->cap = cap; ++ cb->readp = 0; ++ cb->writep = 0; ++ cb->size = 0; ++ ++ /* Initial pool holding the buffer elements */ ++ cb->pool = pj_pool_create(factory, "tls-circ%p", cap, cap, NULL); ++ if (!cb->pool) ++ return PJ_ENOMEM; ++ ++ /* Allocate circular buffer */ ++ cb->buf = pj_pool_alloc(cb->pool, cap); ++ if (!cb->buf) { ++ pj_pool_release(cb->pool); ++ return PJ_ENOMEM; ++ } ++ ++ return PJ_SUCCESS; ++} ++ ++static void circ_deinit(circ_buf_t *cb) ++{ ++ if (cb->pool) { ++ pj_pool_release(cb->pool); ++ cb->pool = NULL; ++ } ++} ++ ++static pj_bool_t circ_empty(const circ_buf_t *cb) ++{ ++ return cb->size == 0; ++} ++ ++static pj_size_t circ_size(const circ_buf_t *cb) ++{ ++ return cb->size; ++} ++ ++static pj_size_t circ_avail(const circ_buf_t *cb) ++{ ++ return cb->cap - cb->size; ++} ++ ++static void circ_read(circ_buf_t *cb, pj_uint8_t *dst, pj_size_t len) ++{ ++ pj_size_t size_after = cb->cap - cb->readp; ++ pj_size_t tbc = PJ_MIN(size_after, len); ++ pj_size_t rem = len - tbc; ++ ++ pj_memcpy(dst, cb->buf + cb->readp, tbc); ++ pj_memcpy(dst + tbc, cb->buf, rem); ++ ++ cb->readp += len; ++ cb->readp &= (cb->cap - 1); ++ ++ cb->size -= len; ++} ++ ++static pj_status_t circ_write(circ_buf_t *cb, ++ const pj_uint8_t *src, pj_size_t len) ++{ ++ /* Overflow condition: resize */ ++ if (len > circ_avail(cb)) { ++ /* Minimum required capacity */ ++ pj_size_t min_cap = len + cb->size; ++ ++ /* Next 32-bit power of two */ ++ min_cap--; ++ min_cap |= min_cap >> 1; ++ min_cap |= min_cap >> 2; ++ min_cap |= min_cap >> 4; ++ min_cap |= min_cap >> 8; ++ min_cap |= min_cap >> 16; ++ min_cap++; ++ ++ /* Create a new pool to hold a bigger buffer, using the same factory */ ++ pj_pool_t *pool = pj_pool_create(cb->pool->factory, "tls-circ%p", ++ min_cap, min_cap, NULL); ++ if (!pool) ++ return PJ_ENOMEM; ++ ++ /* Allocate our new buffer */ ++ pj_uint8_t *buf = pj_pool_alloc(pool, min_cap); ++ if (!buf) { ++ pj_pool_release(pool); ++ return PJ_ENOMEM; ++ } ++ ++ /* Save old size, which we shall restore after the next read */ ++ pj_size_t old_size = cb->size; ++ ++ /* Copy old data into beginning of new buffer */ ++ circ_read(cb, buf, cb->size); ++ ++ /* Restore old size now */ ++ cb->size = old_size; ++ ++ /* Release the previous pool */ ++ pj_pool_release(cb->pool); ++ ++ /* Update circular buffer members */ ++ cb->pool = pool; ++ cb->buf = buf; ++ cb->readp = 0; ++ cb->writep = cb->size; ++ cb->cap = min_cap; ++ } ++ ++ pj_size_t size_after = cb->cap - cb->writep; ++ pj_size_t tbc = PJ_MIN(size_after, len); ++ pj_size_t rem = len - tbc; ++ ++ pj_memcpy(cb->buf + cb->writep, src, tbc); ++ pj_memcpy(cb->buf, src + tbc, rem); ++ ++ cb->writep += len; ++ cb->writep &= (cb->cap - 1); ++ ++ cb->size += len; ++ ++ return PJ_SUCCESS; ++} ++ ++ ++/* ++ ******************************************************************* ++ * Static/internal functions. ++ ******************************************************************* ++ */ ++ ++/* Convert from GnuTLS error to pj_status_t. */ ++static pj_status_t tls_status_from_err(pj_ssl_sock_t *ssock, int err) ++{ ++ pj_status_t status; ++ ++ switch (err) { ++ case GNUTLS_E_SUCCESS: ++ status = PJ_SUCCESS; ++ break; ++ case GNUTLS_E_MEMORY_ERROR: ++ status = PJ_ENOMEM; ++ break; ++ case GNUTLS_E_LARGE_PACKET: ++ status = PJ_ETOOBIG; ++ break; ++ case GNUTLS_E_NO_CERTIFICATE_FOUND: ++ status = PJ_ENOTFOUND; ++ break; ++ case GNUTLS_E_SESSION_EOF: ++ status = PJ_EEOF; ++ break; ++ case GNUTLS_E_HANDSHAKE_TOO_LARGE: ++ status = PJ_ETOOBIG; ++ break; ++ case GNUTLS_E_EXPIRED: ++ status = PJ_EGONE; ++ break; ++ case GNUTLS_E_TIMEDOUT: ++ status = PJ_ETIMEDOUT; ++ break; ++ case GNUTLS_E_PREMATURE_TERMINATION: ++ status = PJ_ECANCELLED; ++ break; ++ case GNUTLS_E_INTERNAL_ERROR: ++ case GNUTLS_E_UNIMPLEMENTED_FEATURE: ++ status = PJ_EBUG; ++ break; ++ case GNUTLS_E_AGAIN: ++ case GNUTLS_E_INTERRUPTED: ++ case GNUTLS_E_REHANDSHAKE: ++ status = PJ_EPENDING; ++ break; ++ case GNUTLS_E_TOO_MANY_EMPTY_PACKETS: ++ case GNUTLS_E_TOO_MANY_HANDSHAKE_PACKETS: ++ case GNUTLS_E_RECORD_LIMIT_REACHED: ++ status = PJ_ETOOMANY; ++ break; ++ case GNUTLS_E_UNSUPPORTED_VERSION_PACKET: ++ case GNUTLS_E_UNSUPPORTED_SIGNATURE_ALGORITHM: ++ case GNUTLS_E_UNSUPPORTED_CERTIFICATE_TYPE: ++ case GNUTLS_E_X509_UNSUPPORTED_ATTRIBUTE: ++ case GNUTLS_E_X509_UNSUPPORTED_EXTENSION: ++ case GNUTLS_E_X509_UNSUPPORTED_CRITICAL_EXTENSION: ++ status = PJ_ENOTSUP; ++ break; ++ case GNUTLS_E_INVALID_SESSION: ++ case GNUTLS_E_INVALID_REQUEST: ++ case GNUTLS_E_INVALID_PASSWORD: ++ case GNUTLS_E_ILLEGAL_PARAMETER: ++ case GNUTLS_E_RECEIVED_ILLEGAL_EXTENSION: ++ case GNUTLS_E_UNEXPECTED_PACKET: ++ case GNUTLS_E_UNEXPECTED_PACKET_LENGTH: ++ case GNUTLS_E_UNEXPECTED_HANDSHAKE_PACKET: ++ case GNUTLS_E_UNWANTED_ALGORITHM: ++ case GNUTLS_E_USER_ERROR: ++ status = PJ_EINVAL; ++ break; ++ default: ++ status = PJ_EUNKNOWN; ++ break; ++ } ++ ++ /* Not thread safe */ ++ tls_last_error = err; ++ if (ssock) ++ ssock->last_err = err; ++ return status; ++} ++ ++ ++/* Get error string from GnuTLS using tls_last_error */ ++static pj_str_t tls_strerror(pj_status_t status, ++ char *buf, pj_size_t bufsize) ++{ ++ pj_str_t errstr; ++ const char *tmp = gnutls_strerror(tls_last_error); ++ ++#if defined(PJ_HAS_ERROR_STRING) && (PJ_HAS_ERROR_STRING != 0) ++ if (tmp) { ++ pj_ansi_strncpy(buf, tmp, bufsize); ++ errstr = pj_str(buf); ++ return errstr; ++ } ++#endif /* PJ_HAS_ERROR_STRING */ ++ ++ errstr.ptr = buf; ++ errstr.slen = pj_ansi_snprintf(buf, bufsize, "GnuTLS error %d: %s", ++ tls_last_error, tmp); ++ if (errstr.slen < 1 || errstr.slen >= (int) bufsize) ++ errstr.slen = bufsize - 1; ++ ++ return errstr; ++} ++ ++ ++/* Initialize GnuTLS. */ ++static pj_status_t tls_init(void) ++{ ++ /* Register error subsystem */ ++ pj_status_t status = pj_register_strerror(PJ_ERRNO_START_USER + ++ PJ_ERRNO_SPACE_SIZE * 6, ++ PJ_ERRNO_SPACE_SIZE, ++ &tls_strerror); ++ pj_assert(status == PJ_SUCCESS); ++ ++ /* Init GnuTLS library */ ++ int ret = gnutls_global_init(); ++ if (ret < 0) ++ return tls_status_from_err(NULL, ret); ++ ++ /* Init available ciphers */ ++ if (!tls_available_ciphers) { ++ unsigned int i; ++ ++ for (i = 0; ; i++) { ++ unsigned char id[2]; ++ const char *suite = gnutls_cipher_suite_info(i, (unsigned char *)id, ++ NULL, NULL, NULL, NULL); ++ tls_ciphers[i].id = 0; ++ /* usually the array size is bigger than the number of available ++ * ciphers anyway, so by checking here we can exit the loop as soon ++ * as either all ciphers have been added or the array is full */ ++ if (suite && i < PJ_ARRAY_SIZE(tls_ciphers)) { ++ tls_ciphers[i].id = (pj_ssl_cipher) ++ (pj_uint32_t) ((id[0] << 8) | id[1]); ++ tls_ciphers[i].name = suite; ++ } else ++ break; ++ } ++ ++ tls_available_ciphers = i; ++ } ++ ++ return PJ_SUCCESS; ++} ++ ++ ++/* Shutdown GnuTLS */ ++static void tls_deinit(void) ++{ ++ gnutls_global_deinit(); ++} ++ ++ ++/* Callback invoked every time a certificate has to be validated. */ ++static int tls_cert_verify_cb(gnutls_session_t session) ++{ ++ pj_ssl_sock_t *ssock; ++ unsigned int status; ++ int ret; ++ ++ /* Get SSL socket instance */ ++ ssock = (pj_ssl_sock_t *)gnutls_session_get_ptr(session); ++ pj_assert(ssock); ++ ++ /* Support only x509 format */ ++ ret = gnutls_certificate_type_get(session) != GNUTLS_CRT_X509; ++ if (ret < 0) { ++ ssock->verify_status |= PJ_SSL_CERT_EINVALID_FORMAT; ++ return GNUTLS_E_CERTIFICATE_ERROR; ++ } ++ ++ /* Store verification status */ ++ ret = gnutls_certificate_verify_peers2(session, &status); ++ if (ret < 0) { ++ ssock->verify_status |= PJ_SSL_CERT_EUNKNOWN; ++ return GNUTLS_E_CERTIFICATE_ERROR; ++ } ++ if (ssock->param.verify_peer) { ++ if (status & GNUTLS_CERT_INVALID) { ++ if (status & GNUTLS_CERT_SIGNER_NOT_FOUND) ++ ssock->verify_status |= PJ_SSL_CERT_EISSUER_NOT_FOUND; ++ else if (status & GNUTLS_CERT_EXPIRED || ++ status & GNUTLS_CERT_NOT_ACTIVATED) ++ ssock->verify_status |= PJ_SSL_CERT_EVALIDITY_PERIOD; ++ else if (status & GNUTLS_CERT_SIGNER_NOT_CA || ++ status & GNUTLS_CERT_INSECURE_ALGORITHM) ++ ssock->verify_status |= PJ_SSL_CERT_EUNTRUSTED; ++ else if (status & GNUTLS_CERT_UNEXPECTED_OWNER || ++ status & GNUTLS_CERT_MISMATCH) ++ ssock->verify_status |= PJ_SSL_CERT_EISSUER_MISMATCH; ++ else if (status & GNUTLS_CERT_REVOKED) ++ ssock->verify_status |= PJ_SSL_CERT_EREVOKED; ++ else ++ ssock->verify_status |= PJ_SSL_CERT_EUNKNOWN; ++ ++ return GNUTLS_E_CERTIFICATE_ERROR; ++ } ++ ++ /* When verification is not requested just return ok here, however ++ * applications can still get the verification status. */ ++ gnutls_x509_crt_t cert; ++ unsigned int cert_list_size; ++ const gnutls_datum_t *cert_list; ++ int ret; ++ ++ ret = gnutls_x509_crt_init(&cert); ++ if (ret < 0) ++ goto out; ++ ++ cert_list = gnutls_certificate_get_peers(session, &cert_list_size); ++ if (cert_list == NULL) { ++ ret = GNUTLS_E_NO_CERTIFICATE_FOUND; ++ goto out; ++ } ++ ++ /* TODO: verify whole chain perhaps? */ ++ ret = gnutls_x509_crt_import(cert, &cert_list[0], GNUTLS_X509_FMT_DER); ++ if (ret < 0) ++ ret = gnutls_x509_crt_import(cert, &cert_list[0], ++ GNUTLS_X509_FMT_PEM); ++ if (ret < 0) { ++ ssock->verify_status |= PJ_SSL_CERT_EINVALID_FORMAT; ++ goto out; ++ } ++ ret = gnutls_x509_crt_check_hostname(cert, ssock->param.server_name.ptr); ++ if (ret < 0) ++ goto out; ++ ++ gnutls_x509_crt_deinit(cert); ++ ++ /* notify GnuTLS to continue handshake normally */ ++ return GNUTLS_E_SUCCESS; ++ ++out: ++ tls_last_error = ret; ++ ssock->verify_status |= PJ_SSL_CERT_EUNKNOWN; ++ return GNUTLS_E_CERTIFICATE_ERROR; ++ } ++ ++ return GNUTLS_E_SUCCESS; ++} ++ ++ ++/* gnutls_handshake() and gnutls_record_send() will call this function to ++ * send/write (encrypted) data */ ++static ssize_t tls_data_push(gnutls_transport_ptr_t ptr, ++ const void *data, size_t len) ++{ ++ pj_ssl_sock_t *ssock = (pj_ssl_sock_t *)ptr; ++ ++ pj_lock_acquire(ssock->circ_buf_output_mutex); ++ if (circ_write(&ssock->circ_buf_output, data, len) != PJ_SUCCESS) { ++ pj_lock_release(ssock->circ_buf_output_mutex); ++ ++ gnutls_transport_set_errno(ssock->session, ENOMEM); ++ return -1; ++ } ++ ++ pj_lock_release(ssock->circ_buf_output_mutex); ++ ++ return len; ++} ++ ++ ++/* gnutls_handshake() and gnutls_record_recv() will call this function to ++ * receive/read (encrypted) data */ ++static ssize_t tls_data_pull(gnutls_transport_ptr_t ptr, ++ void *data, pj_size_t len) ++{ ++ pj_ssl_sock_t *ssock = (pj_ssl_sock_t *)ptr; ++ ++ pj_lock_acquire(ssock->circ_buf_input_mutex); ++ ++ if (circ_empty(&ssock->circ_buf_input)) { ++ pj_lock_release(ssock->circ_buf_input_mutex); ++ ++ /* Data buffers not yet filled */ ++ gnutls_transport_set_errno(ssock->session, EAGAIN); ++ return -1; ++ } ++ ++ pj_size_t circ_buf_size = circ_size(&ssock->circ_buf_input); ++ pj_size_t read_size = PJ_MIN(circ_buf_size, len); ++ ++ circ_read(&ssock->circ_buf_input, data, read_size); ++ ++ pj_lock_release(ssock->circ_buf_input_mutex); ++ ++ return read_size; ++} ++ ++ ++/* Append a string to the priority string, only once. */ ++static pj_status_t tls_str_append_once(pj_str_t *dst, pj_str_t *src) ++{ ++ if (pj_strstr(dst, src) == NULL) { ++ /* Check buffer size */ ++ if (dst->slen + src->slen + 3 > 1024) ++ return PJ_ETOOMANY; ++ ++ pj_strcat2(dst, ":+"); ++ pj_strcat(dst, src); ++ } ++ return PJ_SUCCESS; ++} ++ ++ ++/* Generate priority string with user preference order. */ ++static pj_status_t tls_priorities_set(pj_ssl_sock_t *ssock) ++{ ++ char buf[1024]; ++ char priority_buf[256]; ++ pj_str_t cipher_list; ++ pj_str_t compression = pj_str("COMP-NULL"); ++ pj_str_t server = pj_str(":%SERVER_PRECEDENCE"); ++ int i, j, ret; ++ pj_str_t priority; ++ const char *err; ++ ++ pj_strset(&cipher_list, buf, 0); ++ pj_strset(&priority, priority_buf, 0); ++ ++ /* For each level, enable only the requested protocol */ ++ pj_strcat2(&priority, "NORMAL:"); ++ if (ssock->param.proto & PJ_SSL_SOCK_PROTO_TLS1_2) { ++ pj_strcat2(&priority, "+VERS-TLS1.2:"); ++ } ++ if (ssock->param.proto & PJ_SSL_SOCK_PROTO_TLS1_1) { ++ pj_strcat2(&priority, "+VERS-TLS1.1:"); ++ } ++ if (ssock->param.proto & PJ_SSL_SOCK_PROTO_TLS1) { ++ pj_strcat2(&priority, "+VERS-TLS1.0:"); ++ } ++ pj_strcat2(&priority, "-VERS-SSL3.0:"); ++ pj_strcat2(&priority, "%LATEST_RECORD_VERSION"); ++ ++ pj_strcat(&cipher_list, &priority); ++ for (i = 0; i < ssock->param.ciphers_num; i++) { ++ for (j = 0; ; j++) { ++ pj_ssl_cipher c; ++ const char *suite; ++ unsigned char id[2]; ++ gnutls_protocol_t proto; ++ gnutls_kx_algorithm_t kx; ++ gnutls_mac_algorithm_t mac; ++ gnutls_cipher_algorithm_t algo; ++ ++ suite = gnutls_cipher_suite_info(j, (unsigned char *)id, ++ &kx, &algo, &mac, &proto); ++ if (!suite) ++ break; ++ ++ c = (pj_ssl_cipher) (pj_uint32_t) ((id[0] << 8) | id[1]); ++ if (ssock->param.ciphers[i] == c) { ++ char temp[256]; ++ pj_str_t cipher_entry; ++ ++ /* Protocol version */ ++ pj_strset(&cipher_entry, temp, 0); ++ pj_strcat2(&cipher_entry, "VERS-"); ++ pj_strcat2(&cipher_entry, gnutls_protocol_get_name(proto)); ++ ret = tls_str_append_once(&cipher_list, &cipher_entry); ++ if (ret != PJ_SUCCESS) ++ return ret; ++ ++ /* Cipher */ ++ pj_strset(&cipher_entry, temp, 0); ++ pj_strcat2(&cipher_entry, gnutls_cipher_get_name(algo)); ++ ret = tls_str_append_once(&cipher_list, &cipher_entry); ++ if (ret != PJ_SUCCESS) ++ return ret; ++ ++ /* Mac */ ++ pj_strset(&cipher_entry, temp, 0); ++ pj_strcat2(&cipher_entry, gnutls_mac_get_name(mac)); ++ ret = tls_str_append_once(&cipher_list, &cipher_entry); ++ if (ret != PJ_SUCCESS) ++ return ret; ++ ++ /* Key exchange */ ++ pj_strset(&cipher_entry, temp, 0); ++ pj_strcat2(&cipher_entry, gnutls_kx_get_name(kx)); ++ ret = tls_str_append_once(&cipher_list, &cipher_entry); ++ if (ret != PJ_SUCCESS) ++ return ret; ++ ++ /* Compression is always disabled */ ++ /* Signature is level-default */ ++ break; ++ } ++ } ++ } ++ ++ /* Disable compression, it's a TLS-only extension after all */ ++ tls_str_append_once(&cipher_list, &compression); ++ ++ /* Server will be the one deciding which crypto to use */ ++ if (ssock->is_server) { ++ if (cipher_list.slen + server.slen + 1 > sizeof(buf)) ++ return PJ_ETOOMANY; ++ else ++ pj_strcat(&cipher_list, &server); ++ } ++ ++ /* End the string and print it */ ++ cipher_list.ptr[cipher_list.slen] = '\0'; ++ PJ_LOG(5, (ssock->pool->obj_name, "Priority string: %s", cipher_list.ptr)); ++ ++ /* Set our priority string */ ++ ret = gnutls_priority_set_direct(ssock->session, ++ cipher_list.ptr, &err); ++ if (ret < 0) { ++ tls_last_error = GNUTLS_E_INVALID_REQUEST; ++ return PJ_EINVAL; ++ } ++ ++ return PJ_SUCCESS; ++} ++ ++ ++/* Load root CA file or load the installed ones. */ ++static pj_status_t tls_trust_set(pj_ssl_sock_t *ssock) ++{ ++ int ntrusts = 0; ++ int err; ++ ++ err = gnutls_certificate_set_x509_system_trust(ssock->xcred); ++ if (err > 0) ++ ntrusts += err; ++ err = gnutls_certificate_set_x509_trust_file(ssock->xcred, ++ TRUST_STORE_FILE1, ++ GNUTLS_X509_FMT_PEM); ++ if (err > 0) ++ ntrusts += err; ++ ++ err = gnutls_certificate_set_x509_trust_file(ssock->xcred, ++ TRUST_STORE_FILE2, ++ GNUTLS_X509_FMT_PEM); ++ if (err > 0) ++ ntrusts += err; ++ ++ if (ntrusts > 0) ++ return PJ_SUCCESS; ++ else if (!ntrusts) ++ return PJ_ENOTFOUND; ++ else ++ return PJ_EINVAL; ++} ++ ++#if GNUTLS_VERSION_NUMBER < 0x030306 ++ ++#ifdef _POSIX_PATH_MAX ++# define GNUTLS_PATH_MAX _POSIX_PATH_MAX ++#else ++# define GNUTLS_PATH_MAX 256 ++#endif ++ ++static ++int gnutls_certificate_set_x509_trust_dir(gnutls_certificate_credentials_t cred, const char *dirname, unsigned type) ++{ ++ DIR *dirp; ++ struct dirent *d; ++ int ret; ++ int r = 0; ++ char path[GNUTLS_PATH_MAX]; ++#ifndef _WIN32 ++ struct dirent e; ++#endif ++ ++ dirp = opendir(dirname); ++ if (dirp != NULL) { ++ do { ++#ifdef _WIN32 ++ d = readdir(dirp); ++ if (d != NULL) { ++#else ++ ret = readdir_r(dirp, &e, &d); ++ if (ret == 0 && d != NULL ++#ifdef _DIRENT_HAVE_D_TYPE ++ && (d->d_type == DT_REG || d->d_type == DT_LNK || d->d_type == DT_UNKNOWN) ++#endif ++ ) { ++#endif ++ snprintf(path, sizeof(path), "%s/%s", ++ dirname, d->d_name); ++ ++ ret = gnutls_certificate_set_x509_trust_file(cred, path, type); ++ if (ret >= 0) ++ r += ret; ++ } ++ } ++ while (d != NULL); ++ closedir(dirp); ++ } ++ ++ return r; ++} ++ ++#endif ++ ++/* Create and initialize new GnuTLS context and instance */ ++static pj_status_t tls_open(pj_ssl_sock_t *ssock) ++{ ++ pj_ssl_cert_t *cert; ++ pj_status_t status; ++ int ret; ++ ++ pj_assert(ssock); ++ ++ cert = ssock->cert; ++ ++ /* Even if reopening is harmless, having one instance only simplifies ++ * deallocating it later on */ ++ if (!ssock->tls_init_count) { ++ ssock->tls_init_count++; ++ ret = tls_init(); ++ if (ret < 0) ++ return ret; ++ } else ++ return PJ_SUCCESS; ++ ++ /* Start this socket session */ ++ ret = gnutls_init(&ssock->session, ssock->is_server ? GNUTLS_SERVER ++ : GNUTLS_CLIENT); ++ if (ret < 0) ++ goto out; ++ ++ /* Set the ssock object to be retrieved by transport (send/recv) and by ++ * user data from this session */ ++ gnutls_transport_set_ptr(ssock->session, ++ (gnutls_transport_ptr_t) (uintptr_t) ssock); ++ gnutls_session_set_ptr(ssock->session, ++ (gnutls_transport_ptr_t) (uintptr_t) ssock); ++ ++ /* Initialize input circular buffer */ ++ status = circ_init(ssock->pool->factory, &ssock->circ_buf_input, 512); ++ if (status != PJ_SUCCESS) ++ return status; ++ ++ /* Initialize output circular buffer */ ++ status = circ_init(ssock->pool->factory, &ssock->circ_buf_output, 512); ++ if (status != PJ_SUCCESS) ++ return status; ++ ++ /* Set the callback that allows GnuTLS to PUSH and PULL data ++ * TO and FROM the transport layer */ ++ gnutls_transport_set_push_function(ssock->session, tls_data_push); ++ gnutls_transport_set_pull_function(ssock->session, tls_data_pull); ++ ++ /* Determine which cipher suite to support */ ++ status = tls_priorities_set(ssock); ++ if (status != PJ_SUCCESS) ++ return status; ++ ++ /* Allocate credentials for handshaking and transmission */ ++ ret = gnutls_certificate_allocate_credentials(&ssock->xcred); ++ if (ret < 0) ++ goto out; ++ gnutls_certificate_set_verify_function(ssock->xcred, tls_cert_verify_cb); ++ ++ /* Load system trust file(s) */ ++ status = tls_trust_set(ssock); ++ if (status != PJ_SUCCESS) ++ return status; ++ ++ /* Load user-provided CA, certificate and key if available */ ++ if (cert) { ++ /* Load CA if one is specified. */ ++ if (cert->CA_file.slen) { ++ ret = gnutls_certificate_set_x509_trust_file(ssock->xcred, ++ cert->CA_file.ptr, ++ GNUTLS_X509_FMT_PEM); ++ if (ret < 0) ++ ret = gnutls_certificate_set_x509_trust_file(ssock->xcred, ++ cert->CA_file.ptr, ++ GNUTLS_X509_FMT_DER); ++ if (ret < 0) ++ goto out; ++ } ++ if (cert->CA_path.slen) { ++ ret = gnutls_certificate_set_x509_trust_dir(ssock->xcred, ++ cert->CA_path.ptr, ++ GNUTLS_X509_FMT_PEM); ++ if (ret < 0) ++ ret = gnutls_certificate_set_x509_trust_dir(ssock->xcred, ++ cert->CA_path.ptr, ++ GNUTLS_X509_FMT_DER); ++ if (ret < 0) ++ goto out; ++ } ++ ++ /* Load certificate, key and pass if one is specified */ ++ if (cert->cert_file.slen && cert->privkey_file.slen) { ++ const char *prikey_file = cert->privkey_file.ptr; ++ const char *prikey_pass = cert->privkey_pass.slen ++ ? cert->privkey_pass.ptr ++ : NULL; ++ ret = gnutls_certificate_set_x509_key_file2(ssock->xcred, ++ cert->cert_file.ptr, ++ prikey_file, ++ GNUTLS_X509_FMT_PEM, ++ prikey_pass, ++ 0); ++ if (ret != GNUTLS_E_SUCCESS) ++ ret = gnutls_certificate_set_x509_key_file2(ssock->xcred, ++ cert->cert_file.ptr, ++ prikey_file, ++ GNUTLS_X509_FMT_DER, ++ prikey_pass, ++ 0); ++ if (ret < 0) ++ goto out; ++ } ++ } ++ ++ /* Require client certificate if asked */ ++ if (ssock->is_server && ssock->param.require_client_cert) ++ gnutls_certificate_server_set_request(ssock->session, ++ GNUTLS_CERT_REQUIRE); ++ ++ /* Finally set credentials for this session */ ++ ret = gnutls_credentials_set(ssock->session, ++ GNUTLS_CRD_CERTIFICATE, ssock->xcred); ++ if (ret < 0) ++ goto out; ++ ++ ret = GNUTLS_E_SUCCESS; ++out: ++ return tls_status_from_err(ssock, ret); ++} ++ ++ ++/* Destroy GnuTLS credentials and session. */ ++static void tls_close(pj_ssl_sock_t *ssock) ++{ ++ if (ssock->session) { ++ gnutls_bye(ssock->session, GNUTLS_SHUT_RDWR); ++ gnutls_deinit(ssock->session); ++ ssock->session = NULL; ++ } ++ ++ if (ssock->xcred) { ++ gnutls_certificate_free_credentials(ssock->xcred); ++ ssock->xcred = NULL; ++ } ++ ++ /* Free GnuTLS library */ ++ if (ssock->tls_init_count) { ++ ssock->tls_init_count--; ++ tls_deinit(); ++ } ++ ++ /* Destroy circular buffers */ ++ circ_deinit(&ssock->circ_buf_input); ++ circ_deinit(&ssock->circ_buf_output); ++} ++ ++ ++/* Reset socket state. */ ++static void tls_sock_reset(pj_ssl_sock_t *ssock) ++{ ++ ssock->connection_state = TLS_STATE_NULL; ++ ++ tls_close(ssock); ++ ++ if (ssock->asock) { ++ pj_activesock_close(ssock->asock); ++ ssock->asock = NULL; ++ ssock->sock = PJ_INVALID_SOCKET; ++ } ++ if (ssock->sock != PJ_INVALID_SOCKET) { ++ pj_sock_close(ssock->sock); ++ ssock->sock = PJ_INVALID_SOCKET; ++ } ++ ++ ssock->last_err = tls_last_error = GNUTLS_E_SUCCESS; ++} ++ ++ ++/* Get Common Name field string from a general name string */ ++static void tls_cert_get_cn(const pj_str_t *gen_name, pj_str_t *cn) ++{ ++ pj_str_t CN_sign = {"CN=", 3}; ++ char *p, *q; ++ ++ pj_bzero(cn, sizeof(cn)); ++ ++ p = pj_strstr(gen_name, &CN_sign); ++ if (!p) ++ return; ++ ++ p += 3; /* shift pointer to value part */ ++ pj_strset(cn, p, gen_name->slen - (p - gen_name->ptr)); ++ q = pj_strchr(cn, ','); ++ if (q) ++ cn->slen = q - p; ++} ++ ++ ++/* Get certificate info; in case the certificate info is already populated, ++ * this function will check if the contents need updating by inspecting the ++ * issuer and the serial number. */ ++static void tls_cert_get_info(pj_pool_t *pool, pj_ssl_cert_info *ci, gnutls_x509_crt_t cert) ++{ ++ pj_bool_t update_needed; ++ char buf[512] = { 0 }; ++ size_t bufsize = sizeof(buf); ++ pj_uint8_t serial_no[64] = { 0 }; /* should be >= sizeof(ci->serial_no) */ ++ size_t serialsize = sizeof(serial_no); ++ size_t len = sizeof(buf); ++ int i, ret, seq = 0; ++ pj_ssl_cert_name_type type; ++ ++ pj_assert(pool && ci && cert); ++ ++ /* Get issuer */ ++ gnutls_x509_crt_get_issuer_dn(cert, buf, &bufsize); ++ ++ /* Get serial no */ ++ gnutls_x509_crt_get_serial(cert, serial_no, &serialsize); ++ ++ /* Check if the contents need to be updated */ ++ update_needed = pj_strcmp2(&ci->issuer.info, buf) || ++ pj_memcmp(ci->serial_no, serial_no, serialsize); ++ if (!update_needed) ++ return; ++ ++ /* Update cert info */ ++ ++ pj_bzero(ci, sizeof(pj_ssl_cert_info)); ++ ++ /* Version */ ++ ci->version = gnutls_x509_crt_get_version(cert); ++ ++ /* Issuer */ ++ pj_strdup2(pool, &ci->issuer.info, buf); ++ tls_cert_get_cn(&ci->issuer.info, &ci->issuer.cn); ++ ++ /* Serial number */ ++ pj_memcpy(ci->serial_no, serial_no, sizeof(ci->serial_no)); ++ ++ /* Subject */ ++ bufsize = sizeof(buf); ++ gnutls_x509_crt_get_dn(cert, buf, &bufsize); ++ pj_strdup2(pool, &ci->subject.info, buf); ++ tls_cert_get_cn(&ci->subject.info, &ci->subject.cn); ++ ++ /* Validity */ ++ ci->validity.end.sec = gnutls_x509_crt_get_expiration_time(cert); ++ ci->validity.start.sec = gnutls_x509_crt_get_activation_time(cert); ++ ci->validity.gmt = 0; ++ ++ /* Subject Alternative Name extension */ ++ if (ci->version >= 3) { ++ char out[256] = { 0 }; ++ /* Get the number of all alternate names so that we can allocate ++ * the correct number of bytes in subj_alt_name */ ++ while (gnutls_x509_crt_get_subject_alt_name(cert, seq, out, &len, ++ NULL) != GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE) ++ seq++; ++ ++ ci->subj_alt_name.entry = pj_pool_calloc(pool, seq, ++ sizeof(*ci->subj_alt_name.entry)); ++ if (!ci->subj_alt_name.entry) { ++ tls_last_error = GNUTLS_E_MEMORY_ERROR; ++ return; ++ } ++ ++ /* Now populate the alternative names */ ++ for (i = 0; i < seq; i++) { ++ len = sizeof(out) - 1; ++ ret = gnutls_x509_crt_get_subject_alt_name(cert, i, out, &len, NULL); ++ switch (ret) { ++ case GNUTLS_SAN_IPADDRESS: ++ type = PJ_SSL_CERT_NAME_IP; ++ pj_inet_ntop2(len == sizeof(pj_in6_addr) ? pj_AF_INET6() ++ : pj_AF_INET(), ++ out, buf, sizeof(buf)); ++ break; ++ case GNUTLS_SAN_URI: ++ type = PJ_SSL_CERT_NAME_URI; ++ break; ++ case GNUTLS_SAN_RFC822NAME: ++ type = PJ_SSL_CERT_NAME_RFC822; ++ break; ++ case GNUTLS_SAN_DNSNAME: ++ type = PJ_SSL_CERT_NAME_DNS; ++ break; ++ default: ++ type = PJ_SSL_CERT_NAME_UNKNOWN; ++ break; ++ } ++ ++ if (len && type != PJ_SSL_CERT_NAME_UNKNOWN) { ++ ci->subj_alt_name.entry[ci->subj_alt_name.cnt].type = type; ++ pj_strdup2(pool, ++ &ci->subj_alt_name.entry[ci->subj_alt_name.cnt].name, ++ type == PJ_SSL_CERT_NAME_IP ? buf : out); ++ ci->subj_alt_name.cnt++; ++ } ++ } ++ /* TODO: if no DNS alt. names were found, we could check against ++ * the commonName as per RFC3280. */ ++ } ++} ++ ++static void tls_cert_get_chain_raw(pj_pool_t *pool, pj_ssl_cert_info *ci, const gnutls_datum_t *certs, size_t certs_num) ++{ ++ size_t i=0; ++ ci->raw_chain.cert_raw = pj_pool_calloc(pool, certs_num, sizeof(*ci->raw_chain.cert_raw)); ++ ci->raw_chain.cnt = certs_num; ++ for (i=0; i < certs_num; ++i) { ++ const pj_str_t crt_raw = {(const char*)certs[i].data, (pj_ssize_t)certs[i].size}; ++ pj_strdup(pool, ci->raw_chain.cert_raw+i, &crt_raw); ++ } ++} ++ ++/* Update local & remote certificates info. This function should be ++ * called after handshake or renegotiation successfully completed. */ ++static void tls_cert_update(pj_ssl_sock_t *ssock) ++{ ++ gnutls_x509_crt_t cert = NULL; ++ const gnutls_datum_t *us; ++ const gnutls_datum_t *certs; ++ unsigned int certslen = 0; ++ int ret = GNUTLS_CERT_INVALID; ++ ++ pj_assert(ssock->connection_state == TLS_STATE_ESTABLISHED); ++ ++ /* Get active local certificate */ ++ us = gnutls_certificate_get_ours(ssock->session); ++ if (!us) ++ goto us_out; ++ ++ ret = gnutls_x509_crt_init(&cert); ++ if (ret < 0) ++ goto us_out; ++ ret = gnutls_x509_crt_import(cert, us, GNUTLS_X509_FMT_DER); ++ if (ret < 0) ++ ret = gnutls_x509_crt_import(cert, us, GNUTLS_X509_FMT_PEM); ++ if (ret < 0) ++ goto us_out; ++ ++ tls_cert_get_info(ssock->pool, &ssock->local_cert_info, cert); ++ tls_cert_get_chain_raw(ssock->pool, &ssock->local_cert_info, us, 1); ++ ++us_out: ++ tls_last_error = ret; ++ if (cert) ++ gnutls_x509_crt_deinit(cert); ++ else ++ pj_bzero(&ssock->local_cert_info, sizeof(pj_ssl_cert_info)); ++ ++ cert = NULL; ++ ++ /* Get active remote certificate */ ++ certs = gnutls_certificate_get_peers(ssock->session, &certslen); ++ if (certs == NULL || certslen == 0) ++ goto peer_out; ++ ++ ret = gnutls_x509_crt_init(&cert); ++ if (ret < 0) ++ goto peer_out; ++ ++ ret = gnutls_x509_crt_import(cert, certs, GNUTLS_X509_FMT_PEM); ++ if (ret < 0) ++ ret = gnutls_x509_crt_import(cert, certs, GNUTLS_X509_FMT_DER); ++ if (ret < 0) ++ goto peer_out; ++ ++ tls_cert_get_info(ssock->pool, &ssock->remote_cert_info, cert); ++ tls_cert_get_chain_raw(ssock->pool, &ssock->remote_cert_info, certs, certslen); ++ ++peer_out: ++ tls_last_error = ret; ++ if (cert) ++ gnutls_x509_crt_deinit(cert); ++ else ++ pj_bzero(&ssock->remote_cert_info, sizeof(pj_ssl_cert_info)); ++} ++ ++ ++/* When handshake completed: ++ * - notify application ++ * - if handshake failed, reset SSL state ++ * - return PJ_FALSE when SSL socket instance is destroyed by application. */ ++static pj_bool_t on_handshake_complete(pj_ssl_sock_t *ssock, ++ pj_status_t status) ++{ ++ pj_bool_t ret = PJ_TRUE; ++ ++ /* Cancel handshake timer */ ++ if (ssock->timer.id == TIMER_HANDSHAKE_TIMEOUT) { ++ pj_timer_heap_cancel(ssock->param.timer_heap, &ssock->timer); ++ ssock->timer.id = TIMER_NONE; ++ } ++ ++ /* Update certificates info on successful handshake */ ++ if (status == PJ_SUCCESS) ++ tls_cert_update(ssock); ++ ++ /* Accepting */ ++ if (ssock->is_server) { ++ if (status != PJ_SUCCESS) { ++ /* Handshake failed in accepting, destroy our self silently. */ ++ ++ char errmsg[PJ_ERR_MSG_SIZE]; ++ char buf[PJ_INET6_ADDRSTRLEN + 10]; ++ ++ pj_strerror(status, errmsg, sizeof(errmsg)); ++ PJ_LOG(3, (ssock->pool->obj_name, ++ "Handshake failed in accepting %s: %s", ++ pj_sockaddr_print(&ssock->rem_addr, buf, sizeof(buf), 3), ++ errmsg)); ++ ++ /* Workaround for ticket #985 */ ++#if (defined(PJ_WIN32) && PJ_WIN32 != 0) || (defined(PJ_WIN64) && PJ_WIN64 != 0) ++ if (ssock->param.timer_heap) { ++ pj_time_val interval = {0, DELAYED_CLOSE_TIMEOUT}; ++ ++ tls_sock_reset(ssock); ++ ++ ssock->timer.id = TIMER_CLOSE; ++ pj_time_val_normalize(&interval); ++ if (pj_timer_heap_schedule(ssock->param.timer_heap, ++ &ssock->timer, &interval) != 0) ++ { ++ ssock->timer.id = TIMER_NONE; ++ pj_ssl_sock_close(ssock); ++ } ++ } else ++#endif /* PJ_WIN32 */ ++ { ++ pj_ssl_sock_close(ssock); ++ } ++ ++ return PJ_FALSE; ++ } ++ /* Notify application the newly accepted SSL socket */ ++ if (ssock->param.cb.on_accept_complete) ++ ret = (*ssock->param.cb.on_accept_complete) ++ (ssock->parent, ssock, (pj_sockaddr_t*)&ssock->rem_addr, ++ pj_sockaddr_get_len((pj_sockaddr_t*)&ssock->rem_addr)); ++ ++ } else { /* Connecting */ ++ /* On failure, reset SSL socket state first, as app may try to ++ * reconnect in the callback. */ ++ if (status != PJ_SUCCESS) { ++ /* Server disconnected us, possibly due to negotiation failure */ ++ tls_sock_reset(ssock); ++ } ++ if (ssock->param.cb.on_connect_complete) { ++ ++ ret = (*ssock->param.cb.on_connect_complete)(ssock, status); ++ } ++ } ++ ++ return ret; ++} ++ ++static write_data_t *alloc_send_data(pj_ssl_sock_t *ssock, pj_size_t len) ++{ ++ send_buf_t *send_buf = &ssock->send_buf; ++ pj_size_t avail_len, skipped_len = 0; ++ char *reg1, *reg2; ++ pj_size_t reg1_len, reg2_len; ++ write_data_t *p; ++ ++ /* Check buffer availability */ ++ avail_len = send_buf->max_len - send_buf->len; ++ if (avail_len < len) ++ return NULL; ++ ++ /* If buffer empty, reset start pointer and return it */ ++ if (send_buf->len == 0) { ++ send_buf->start = send_buf->buf; ++ send_buf->len = len; ++ p = (write_data_t*)send_buf->start; ++ goto init_send_data; ++ } ++ ++ /* Free space may be wrapped/splitted into two regions, so let's ++ * analyze them if any region can hold the write data. */ ++ reg1 = send_buf->start + send_buf->len; ++ if (reg1 >= send_buf->buf + send_buf->max_len) ++ reg1 -= send_buf->max_len; ++ reg1_len = send_buf->max_len - send_buf->len; ++ if (reg1 + reg1_len > send_buf->buf + send_buf->max_len) { ++ reg1_len = send_buf->buf + send_buf->max_len - reg1; ++ reg2 = send_buf->buf; ++ reg2_len = send_buf->start - send_buf->buf; ++ } else { ++ reg2 = NULL; ++ reg2_len = 0; ++ } ++ ++ /* More buffer availability check, note that the write data must be in ++ * a contigue buffer. */ ++ avail_len = PJ_MAX(reg1_len, reg2_len); ++ if (avail_len < len) ++ return NULL; ++ ++ /* Get the data slot */ ++ if (reg1_len >= len) { ++ p = (write_data_t*)reg1; ++ } else { ++ p = (write_data_t*)reg2; ++ skipped_len = reg1_len; ++ } ++ ++ /* Update buffer length */ ++ send_buf->len += len + skipped_len; ++ ++init_send_data: ++ /* Init the new send data */ ++ pj_bzero(p, sizeof(*p)); ++ pj_list_init(p); ++ pj_list_push_back(&ssock->send_pending, p); ++ ++ return p; ++} ++ ++static void free_send_data(pj_ssl_sock_t *ssock, write_data_t *wdata) ++{ ++ send_buf_t *buf = &ssock->send_buf; ++ write_data_t *spl = &ssock->send_pending; ++ ++ pj_assert(!pj_list_empty(&ssock->send_pending)); ++ ++ /* Free slot from the buffer */ ++ if (spl->next == wdata && spl->prev == wdata) { ++ /* This is the only data, reset the buffer */ ++ buf->start = buf->buf; ++ buf->len = 0; ++ } else if (spl->next == wdata) { ++ /* This is the first data, shift start pointer of the buffer and ++ * adjust the buffer length. ++ */ ++ buf->start = (char*)wdata->next; ++ if (wdata->next > wdata) { ++ buf->len -= ((char*)wdata->next - buf->start); ++ } else { ++ /* Overlapped */ ++ pj_size_t right_len, left_len; ++ right_len = buf->buf + buf->max_len - (char*)wdata; ++ left_len = (char*)wdata->next - buf->buf; ++ buf->len -= (right_len + left_len); ++ } ++ } else if (spl->prev == wdata) { ++ /* This is the last data, just adjust the buffer length */ ++ if (wdata->prev < wdata) { ++ pj_size_t jump_len; ++ jump_len = (char*)wdata - ++ ((char*)wdata->prev + wdata->prev->record_len); ++ buf->len -= (wdata->record_len + jump_len); ++ } else { ++ /* Overlapped */ ++ pj_size_t right_len, left_len; ++ right_len = buf->buf + buf->max_len - ++ ((char*)wdata->prev + wdata->prev->record_len); ++ left_len = (char*)wdata + wdata->record_len - buf->buf; ++ buf->len -= (right_len + left_len); ++ } ++ } ++ /* For data in the middle buffer, just do nothing on the buffer. The slot ++ * will be freed later when freeing the first/last data. */ ++ ++ /* Remove the data from send pending list */ ++ pj_list_erase(wdata); ++} ++ ++#if 0 ++/* Just for testing send buffer alloc/free */ ++#include <pj/rand.h> ++pj_status_t pj_ssl_sock_ossl_test_send_buf(pj_pool_t *pool) ++{ ++ enum { MAX_CHUNK_NUM = 20 }; ++ unsigned chunk_size, chunk_cnt, i; ++ write_data_t *wdata[MAX_CHUNK_NUM] = {0}; ++ pj_time_val now; ++ pj_ssl_sock_t *ssock = NULL; ++ pj_ssl_sock_param param; ++ pj_status_t status; ++ ++ pj_gettimeofday(&now); ++ pj_srand((unsigned)now.sec); ++ ++ pj_ssl_sock_param_default(¶m); ++ status = pj_ssl_sock_create(pool, ¶m, &ssock); ++ if (status != PJ_SUCCESS) { ++ return status; ++ } ++ ++ if (ssock->send_buf.max_len == 0) { ++ ssock->send_buf.buf = (char *) ++ pj_pool_alloc(ssock->pool, ++ ssock->param.send_buffer_size); ++ ssock->send_buf.max_len = ssock->param.send_buffer_size; ++ ssock->send_buf.start = ssock->send_buf.buf; ++ ssock->send_buf.len = 0; ++ } ++ ++ chunk_size = ssock->param.send_buffer_size / MAX_CHUNK_NUM / 2; ++ chunk_cnt = 0; ++ for (i = 0; i < MAX_CHUNK_NUM; i++) { ++ wdata[i] = alloc_send_data(ssock, pj_rand() % chunk_size + 321); ++ if (wdata[i]) ++ chunk_cnt++; ++ else ++ break; ++ } ++ ++ while (chunk_cnt) { ++ i = pj_rand() % MAX_CHUNK_NUM; ++ if (wdata[i]) { ++ free_send_data(ssock, wdata[i]); ++ wdata[i] = NULL; ++ chunk_cnt--; ++ } ++ } ++ ++ if (ssock->send_buf.len != 0) ++ status = PJ_EBUG; ++ ++ pj_ssl_sock_close(ssock); ++ return status; ++} ++#endif ++ ++/* Flush write circular buffer to network socket. */ ++static pj_status_t flush_circ_buf_output(pj_ssl_sock_t *ssock, ++ pj_ioqueue_op_key_t *send_key, ++ pj_size_t orig_len, unsigned flags) ++{ ++ pj_ssize_t len; ++ write_data_t *wdata; ++ pj_size_t needed_len; ++ pj_status_t status; ++ ++ pj_lock_acquire(ssock->circ_buf_output_mutex); ++ ++ /* Check if there is data in the circular buffer, flush it if any */ ++ if (circ_empty(&ssock->circ_buf_output)) { ++ pj_lock_release(ssock->circ_buf_output_mutex); ++ ++ return PJ_SUCCESS; ++ } ++ ++ len = circ_size(&ssock->circ_buf_output); ++ ++ /* Calculate buffer size needed, and align it to 8 */ ++ needed_len = len + sizeof(write_data_t); ++ needed_len = ((needed_len + 7) >> 3) << 3; ++ ++ /* Allocate buffer for send data */ ++ wdata = alloc_send_data(ssock, needed_len); ++ if (wdata == NULL) { ++ pj_lock_release(ssock->circ_buf_output_mutex); ++ return PJ_ENOMEM; ++ } ++ ++ /* Copy the data and set its properties into the send data */ ++ pj_ioqueue_op_key_init(&wdata->key, sizeof(pj_ioqueue_op_key_t)); ++ wdata->key.user_data = wdata; ++ wdata->app_key = send_key; ++ wdata->record_len = needed_len; ++ wdata->data_len = len; ++ wdata->plain_data_len = orig_len; ++ wdata->flags = flags; ++ circ_read(&ssock->circ_buf_output, (pj_uint8_t *)&wdata->data, len); ++ ++ /* Ticket #1573: Don't hold mutex while calling PJLIB socket send(). */ ++ pj_lock_release(ssock->circ_buf_output_mutex); ++ ++ /* Send it */ ++ if (ssock->param.sock_type == pj_SOCK_STREAM()) { ++ status = pj_activesock_send(ssock->asock, &wdata->key, ++ wdata->data.content, &len, ++ flags); ++ } else { ++ status = pj_activesock_sendto(ssock->asock, &wdata->key, ++ wdata->data.content, &len, ++ flags, ++ (pj_sockaddr_t*)&ssock->rem_addr, ++ ssock->addr_len); ++ } ++ ++ if (status != PJ_EPENDING) { ++ /* When the sending is not pending, remove the wdata from send ++ * pending list. */ ++ pj_lock_acquire(ssock->circ_buf_output_mutex); ++ free_send_data(ssock, wdata); ++ pj_lock_release(ssock->circ_buf_output_mutex); ++ } ++ ++ return status; ++} ++ ++static void on_timer(pj_timer_heap_t *th, struct pj_timer_entry *te) ++{ ++ pj_ssl_sock_t *ssock = (pj_ssl_sock_t*)te->user_data; ++ int timer_id = te->id; ++ ++ te->id = TIMER_NONE; ++ ++ PJ_UNUSED_ARG(th); ++ ++ switch (timer_id) { ++ case TIMER_HANDSHAKE_TIMEOUT: ++ PJ_LOG(1, (ssock->pool->obj_name, "TLS timeout after %d.%ds", ++ ssock->param.timeout.sec, ssock->param.timeout.msec)); ++ ++ on_handshake_complete(ssock, PJ_ETIMEDOUT); ++ break; ++ case TIMER_CLOSE: ++ pj_ssl_sock_close(ssock); ++ break; ++ default: ++ pj_assert(!"Unknown timer"); ++ break; ++ } ++} ++ ++ ++/* Try to perform an asynchronous handshake */ ++static pj_status_t tls_try_handshake(pj_ssl_sock_t *ssock) ++{ ++ int ret; ++ pj_status_t status; ++ ++ /* Perform SSL handshake */ ++ ret = gnutls_handshake(ssock->session); ++ ++ status = flush_circ_buf_output(ssock, &ssock->handshake_op_key, 0, 0); ++ if (status != PJ_SUCCESS) ++ return status; ++ ++ if (ret == GNUTLS_E_SUCCESS) { ++ /* System are GO */ ++ ssock->connection_state = TLS_STATE_ESTABLISHED; ++ status = PJ_SUCCESS; ++ } else if (!gnutls_error_is_fatal(ret)) { ++ /* Non fatal error, retry later (busy or again) */ ++ status = PJ_EPENDING; ++ } else { ++ /* Fatal error invalidates session, no fallback */ ++ status = PJ_EINVAL; ++ } ++ ++ tls_last_error = ret; ++ ++ return status; ++} ++ ++ ++/* ++ ******************************************************************* ++ * Active socket callbacks. ++ ******************************************************************* ++ */ ++ ++/* PJ_TRUE asks the socket to read more data, PJ_FALSE takes it off the queue */ ++static pj_bool_t asock_on_data_read(pj_activesock_t *asock, void *data, ++ pj_size_t size, pj_status_t status, ++ pj_size_t *remainder) ++{ ++ pj_ssl_sock_t *ssock = (pj_ssl_sock_t *) ++ pj_activesock_get_user_data(asock); ++ ++ pj_size_t app_remainder = 0; ++ ++ if (data && size > 0) { ++ /* Push data into input circular buffer (for GnuTLS) */ ++ pj_lock_acquire(ssock->circ_buf_input_mutex); ++ circ_write(&ssock->circ_buf_input, data, size); ++ pj_lock_release(ssock->circ_buf_input_mutex); ++ } ++ ++ /* Check if SSL handshake hasn't finished yet */ ++ if (ssock->connection_state == TLS_STATE_HANDSHAKING) { ++ pj_bool_t ret = PJ_TRUE; ++ ++ if (status == PJ_SUCCESS) ++ status = tls_try_handshake(ssock); ++ ++ /* Not pending is either success or failed */ ++ if (status != PJ_EPENDING) ++ ret = on_handshake_complete(ssock, status); ++ ++ return ret; ++ } ++ ++ /* See if there is any decrypted data for the application */ ++ if (ssock->read_started) { ++ do { ++ /* Get read data structure at the end of the data */ ++ read_data_t *app_read_data = *(OFFSET_OF_READ_DATA_PTR(ssock, data)); ++ int app_data_size = (int)(ssock->read_size - app_read_data->len); ++ ++ /* Decrypt received data using GnuTLS (will read our input ++ * circular buffer) */ ++ int decrypted_size = gnutls_record_recv(ssock->session, ++ ((read_data_t *)app_read_data->data) + ++ app_read_data->len, ++ app_data_size); ++ ++ if (decrypted_size > 0 || status != PJ_SUCCESS) { ++ if (ssock->param.cb.on_data_read) { ++ pj_bool_t ret; ++ app_remainder = 0; ++ ++ if (decrypted_size > 0) ++ app_read_data->len += decrypted_size; ++ ++ ret = (*ssock->param.cb.on_data_read)(ssock, ++ app_read_data->data, ++ app_read_data->len, ++ status, ++ &app_remainder); ++ ++ if (!ret) { ++ /* We've been destroyed */ ++ return PJ_FALSE; ++ } ++ ++ /* Application may have left some data to be consumed ++ * later as remainder */ ++ app_read_data->len = app_remainder; ++ } ++ ++ /* Active socket signalled connection closed/error, this has ++ * been signalled to the application along with any remaining ++ * buffer. So, let's just reset SSL socket now. */ ++ if (status != PJ_SUCCESS) { ++ tls_sock_reset(ssock); ++ return PJ_FALSE; ++ } ++ } else if (decrypted_size == 0) { ++ /* Nothing more to read */ ++ ++ return PJ_TRUE; ++ } else if (decrypted_size == GNUTLS_E_AGAIN || ++ decrypted_size == GNUTLS_E_INTERRUPTED) { ++ return PJ_TRUE; ++ } else if (decrypted_size == GNUTLS_E_REHANDSHAKE) { ++ /* Seems like we are renegotiating */ ++ pj_status_t try_handshake_status = tls_try_handshake(ssock); ++ ++ /* Not pending is either success or failed */ ++ if (try_handshake_status != PJ_EPENDING) { ++ if (!on_handshake_complete(ssock, try_handshake_status)) { ++ return PJ_FALSE; ++ } ++ } ++ ++ if (try_handshake_status != PJ_SUCCESS && ++ try_handshake_status != PJ_EPENDING) { ++ return PJ_FALSE; ++ } ++ } else if (!gnutls_error_is_fatal(decrypted_size)) { ++ /* non-fatal error, let's just continue */ ++ } else { ++ return PJ_FALSE; ++ } ++ } while (PJ_TRUE); ++ } ++ ++ return PJ_TRUE; ++} ++ ++ ++/* Callback every time new data is available from the active socket */ ++static pj_bool_t asock_on_data_sent(pj_activesock_t *asock, ++ pj_ioqueue_op_key_t *send_key, ++ pj_ssize_t sent) ++{ ++ pj_ssl_sock_t *ssock = (pj_ssl_sock_t *)pj_activesock_get_user_data(asock); ++ ++ PJ_UNUSED_ARG(send_key); ++ PJ_UNUSED_ARG(sent); ++ ++ if (ssock->connection_state == TLS_STATE_HANDSHAKING) { ++ /* Initial handshaking */ ++ pj_status_t status = tls_try_handshake(ssock); ++ ++ /* Not pending is either success or failed */ ++ if (status != PJ_EPENDING) ++ return on_handshake_complete(ssock, status); ++ ++ } else if (send_key != &ssock->handshake_op_key) { ++ /* Some data has been sent, notify application */ ++ write_data_t *wdata = (write_data_t*)send_key->user_data; ++ if (ssock->param.cb.on_data_sent) { ++ pj_bool_t ret; ++ pj_ssize_t sent_len; ++ ++ sent_len = sent > 0 ? wdata->plain_data_len : sent; ++ ++ ret = (*ssock->param.cb.on_data_sent)(ssock, wdata->app_key, ++ sent_len); ++ if (!ret) { ++ /* We've been destroyed */ ++ return PJ_FALSE; ++ } ++ } ++ ++ /* Update write buffer state */ ++ pj_lock_acquire(ssock->circ_buf_output_mutex); ++ free_send_data(ssock, wdata); ++ pj_lock_release(ssock->circ_buf_output_mutex); ++ } else { ++ /* SSL re-negotiation is on-progress, just do nothing */ ++ /* FIXME: check if this is valid for GnuTLS too */ ++ } ++ ++ return PJ_TRUE; ++} ++ ++ ++/* Callback every time a new connection has been accepted (server) */ ++static pj_bool_t asock_on_accept_complete(pj_activesock_t *asock, ++ pj_sock_t newsock, ++ const pj_sockaddr_t *src_addr, ++ int src_addr_len) ++{ ++ pj_ssl_sock_t *ssock_parent = (pj_ssl_sock_t *) ++ pj_activesock_get_user_data(asock); ++ ++ pj_ssl_sock_t *ssock; ++ pj_activesock_cb asock_cb; ++ pj_activesock_cfg asock_cfg; ++ unsigned int i; ++ pj_status_t status; ++ ++ PJ_UNUSED_ARG(src_addr_len); ++ ++ /* Create new SSL socket instance */ ++ status = pj_ssl_sock_create(ssock_parent->pool, &ssock_parent->newsock_param, ++ &ssock); ++ if (status != PJ_SUCCESS) ++ goto on_return; ++ ++ /* Update new SSL socket attributes */ ++ ssock->sock = newsock; ++ ssock->parent = ssock_parent; ++ ssock->is_server = PJ_TRUE; ++ if (ssock_parent->cert) { ++ status = pj_ssl_sock_set_certificate(ssock, ssock->pool, ++ ssock_parent->cert); ++ if (status != PJ_SUCCESS) ++ goto on_return; ++ } ++ ++ /* Apply QoS, if specified */ ++ status = pj_sock_apply_qos2(ssock->sock, ssock->param.qos_type, ++ &ssock->param.qos_params, 1, ++ ssock->pool->obj_name, NULL); ++ if (status != PJ_SUCCESS && !ssock->param.qos_ignore_error) ++ goto on_return; ++ ++ /* Update local address */ ++ ssock->addr_len = src_addr_len; ++ status = pj_sock_getsockname(ssock->sock, &ssock->local_addr, ++ &ssock->addr_len); ++ if (status != PJ_SUCCESS) { ++ /* This fails on few envs, e.g: win IOCP, just tolerate this and ++ * use parent local address instead. ++ */ ++ pj_sockaddr_cp(&ssock->local_addr, &ssock_parent->local_addr); ++ } ++ ++ /* Set remote address */ ++ pj_sockaddr_cp(&ssock->rem_addr, src_addr); ++ ++ /* Create SSL context */ ++ status = tls_open(ssock); ++ if (status != PJ_SUCCESS) ++ goto on_return; ++ ++ /* Prepare read buffer */ ++ ssock->asock_rbuf = (void **)pj_pool_calloc(ssock->pool, ++ ssock->param.async_cnt, ++ sizeof(void*)); ++ if (!ssock->asock_rbuf) ++ return PJ_ENOMEM; ++ ++ for (i = 0; i < ssock->param.async_cnt; ++i) { ++ ssock->asock_rbuf[i] = (void *)pj_pool_alloc( ++ ssock->pool, ++ ssock->param.read_buffer_size + ++ sizeof(read_data_t*)); ++ if (!ssock->asock_rbuf[i]) ++ return PJ_ENOMEM; ++ } ++ ++ /* Create active socket */ ++ pj_activesock_cfg_default(&asock_cfg); ++ asock_cfg.async_cnt = ssock->param.async_cnt; ++ asock_cfg.concurrency = ssock->param.concurrency; ++ asock_cfg.whole_data = PJ_TRUE; ++ ++ pj_bzero(&asock_cb, sizeof(asock_cb)); ++ asock_cb.on_data_read = asock_on_data_read; ++ asock_cb.on_data_sent = asock_on_data_sent; ++ ++ status = pj_activesock_create(ssock->pool, ++ ssock->sock, ++ ssock->param.sock_type, ++ &asock_cfg, ++ ssock->param.ioqueue, ++ &asock_cb, ++ ssock, ++ &ssock->asock); ++ ++ if (status != PJ_SUCCESS) ++ goto on_return; ++ ++ /* Start reading */ ++ status = pj_activesock_start_read2(ssock->asock, ssock->pool, ++ (unsigned)ssock->param.read_buffer_size, ++ ssock->asock_rbuf, ++ PJ_IOQUEUE_ALWAYS_ASYNC); ++ if (status != PJ_SUCCESS) ++ goto on_return; ++ ++ /* Prepare write/send state */ ++ pj_assert(ssock->send_buf.max_len == 0); ++ ssock->send_buf.buf = (char *)pj_pool_alloc(ssock->pool, ++ ssock->param.send_buffer_size); ++ if (!ssock->send_buf.buf) ++ return PJ_ENOMEM; ++ ++ ssock->send_buf.max_len = ssock->param.send_buffer_size; ++ ssock->send_buf.start = ssock->send_buf.buf; ++ ssock->send_buf.len = 0; ++ ++ /* Start handshake timer */ ++ if (ssock->param.timer_heap && ++ (ssock->param.timeout.sec != 0 || ssock->param.timeout.msec != 0)) { ++ pj_assert(ssock->timer.id == TIMER_NONE); ++ ssock->timer.id = TIMER_HANDSHAKE_TIMEOUT; ++ status = pj_timer_heap_schedule(ssock->param.timer_heap, ++ &ssock->timer, ++ &ssock->param.timeout); ++ if (status != PJ_SUCCESS) ++ ssock->timer.id = TIMER_NONE; ++ } ++ ++ /* Start SSL handshake */ ++ ssock->connection_state = TLS_STATE_HANDSHAKING; ++ ++ status = tls_try_handshake(ssock); ++ ++on_return: ++ if (ssock && status != PJ_EPENDING) ++ on_handshake_complete(ssock, status); ++ ++ /* Must return PJ_TRUE whatever happened, as active socket must ++ * continue listening. ++ */ ++ return PJ_TRUE; ++} ++ ++ ++/* Callback every time a new connection has been completed (client) */ ++static pj_bool_t asock_on_connect_complete (pj_activesock_t *asock, ++ pj_status_t status) ++{ ++ pj_ssl_sock_t *ssock = (pj_ssl_sock_t*) ++ pj_activesock_get_user_data(asock); ++ ++ unsigned int i; ++ int ret; ++ ++ if (status != PJ_SUCCESS) ++ goto on_return; ++ ++ /* Update local address */ ++ ssock->addr_len = sizeof(pj_sockaddr); ++ status = pj_sock_getsockname(ssock->sock, &ssock->local_addr, ++ &ssock->addr_len); ++ if (status != PJ_SUCCESS) ++ goto on_return; ++ ++ /* Create SSL context */ ++ status = tls_open(ssock); ++ if (status != PJ_SUCCESS) ++ goto on_return; ++ ++ /* Prepare read buffer */ ++ ssock->asock_rbuf = (void **)pj_pool_calloc(ssock->pool, ++ ssock->param.async_cnt, ++ sizeof(void *)); ++ if (!ssock->asock_rbuf) ++ return PJ_ENOMEM; ++ ++ for (i = 0; i < ssock->param.async_cnt; ++i) { ++ ssock->asock_rbuf[i] = (void *)pj_pool_alloc( ++ ssock->pool, ++ ssock->param.read_buffer_size + ++ sizeof(read_data_t *)); ++ if (!ssock->asock_rbuf[i]) ++ return PJ_ENOMEM; ++ } ++ ++ /* Start read */ ++ status = pj_activesock_start_read2(ssock->asock, ssock->pool, ++ (unsigned) ssock->param.read_buffer_size, ++ ssock->asock_rbuf, ++ PJ_IOQUEUE_ALWAYS_ASYNC); ++ if (status != PJ_SUCCESS) ++ goto on_return; ++ ++ /* Prepare write/send state */ ++ pj_assert(ssock->send_buf.max_len == 0); ++ ssock->send_buf.buf = (char *)pj_pool_alloc(ssock->pool, ++ ssock->param.send_buffer_size); ++ if (!ssock->send_buf.buf) ++ return PJ_ENOMEM; ++ ++ ssock->send_buf.max_len = ssock->param.send_buffer_size; ++ ssock->send_buf.start = ssock->send_buf.buf; ++ ssock->send_buf.len = 0; ++ ++ /* Set server name to connect */ ++ if (ssock->param.server_name.slen) { ++ /* Server name is null terminated already */ ++ ret = gnutls_server_name_set(ssock->session, GNUTLS_NAME_DNS, ++ ssock->param.server_name.ptr, ++ ssock->param.server_name.slen); ++ if (ret < 0) { ++ PJ_LOG(3, (ssock->pool->obj_name, ++ "gnutls_server_name_set() failed: %s", ++ gnutls_strerror(ret))); ++ } ++ } ++ ++ /* Start handshake */ ++ ssock->connection_state = TLS_STATE_HANDSHAKING; ++ ++ status = tls_try_handshake(ssock); ++ if (status != PJ_EPENDING) ++ goto on_return; ++ ++ return PJ_TRUE; ++ ++on_return: ++ return on_handshake_complete(ssock, status); ++} ++ ++static void tls_ciphers_fill(void) ++{ ++ if (!tls_available_ciphers) { ++ tls_init(); ++ tls_deinit(); ++ } ++} ++ ++/* ++ ******************************************************************* ++ * API ++ ******************************************************************* ++ */ ++ ++/* Load credentials from files. */ ++PJ_DEF(pj_status_t) pj_ssl_cert_load_from_files(pj_pool_t *pool, ++ const pj_str_t *CA_file, ++ const pj_str_t *cert_file, ++ const pj_str_t *privkey_file, ++ const pj_str_t *privkey_pass, ++ pj_ssl_cert_t **p_cert) ++{ ++ return pj_ssl_cert_load_from_files2(pool, CA_file, NULL, cert_file, ++ privkey_file, privkey_pass, p_cert); ++} ++ ++/* Load credentials from files. */ ++PJ_DECL(pj_status_t) pj_ssl_cert_load_from_files2( ++ pj_pool_t *pool, ++ const pj_str_t *CA_file, ++ const pj_str_t *CA_path, ++ const pj_str_t *cert_file, ++ const pj_str_t *privkey_file, ++ const pj_str_t *privkey_pass, ++ pj_ssl_cert_t **p_cert) ++{ ++ pj_ssl_cert_t *cert; ++ ++ PJ_ASSERT_RETURN(pool && (CA_file || CA_path) && cert_file && ++ privkey_file, ++ PJ_EINVAL); ++ ++ cert = PJ_POOL_ZALLOC_T(pool, pj_ssl_cert_t); ++ if (CA_file) { ++ pj_strdup_with_null(pool, &cert->CA_file, CA_file); ++ } ++ if (CA_path) { ++ pj_strdup_with_null(pool, &cert->CA_path, CA_path); ++ } ++ pj_strdup_with_null(pool, &cert->cert_file, cert_file); ++ pj_strdup_with_null(pool, &cert->privkey_file, privkey_file); ++ pj_strdup_with_null(pool, &cert->privkey_pass, privkey_pass); ++ ++ *p_cert = cert; ++ ++ return PJ_SUCCESS; ++} ++ ++/* Store credentials. */ ++PJ_DECL(pj_status_t) pj_ssl_sock_set_certificate(pj_ssl_sock_t *ssock, ++ pj_pool_t *pool, ++ const pj_ssl_cert_t *cert) ++{ ++ pj_ssl_cert_t *cert_; ++ ++ PJ_ASSERT_RETURN(ssock && pool && cert, PJ_EINVAL); ++ ++ cert_ = PJ_POOL_ZALLOC_T(pool, pj_ssl_cert_t); ++ pj_memcpy(cert_, cert, sizeof(cert)); ++ pj_strdup_with_null(pool, &cert_->CA_file, &cert->CA_file); ++ pj_strdup_with_null(pool, &cert_->CA_path, &cert->CA_path); ++ pj_strdup_with_null(pool, &cert_->cert_file, &cert->cert_file); ++ pj_strdup_with_null(pool, &cert_->privkey_file, &cert->privkey_file); ++ pj_strdup_with_null(pool, &cert_->privkey_pass, &cert->privkey_pass); ++ ++ ssock->cert = cert_; ++ ++ return PJ_SUCCESS; ++} ++ ++ ++/* Get available ciphers. */ ++PJ_DEF(pj_status_t) pj_ssl_cipher_get_availables(pj_ssl_cipher ciphers[], ++ unsigned *cipher_num) ++{ ++ unsigned int i; ++ ++ PJ_ASSERT_RETURN(ciphers && cipher_num, PJ_EINVAL); ++ ++ tls_ciphers_fill(); ++ ++ if (!tls_available_ciphers) { ++ *cipher_num = 0; ++ return PJ_ENOTFOUND; ++ } ++ ++ *cipher_num = PJ_MIN(*cipher_num, tls_available_ciphers); ++ ++ for (i = 0; i < *cipher_num; ++i) ++ ciphers[i] = tls_ciphers[i].id; ++ ++ return PJ_SUCCESS; ++} ++ ++ ++/* Get cipher name string. */ ++PJ_DEF(const char *)pj_ssl_cipher_name(pj_ssl_cipher cipher) ++{ ++ unsigned int i; ++ ++ tls_ciphers_fill(); ++ ++ for (i = 0; i < tls_available_ciphers; ++i) { ++ if (cipher == tls_ciphers[i].id) ++ return tls_ciphers[i].name; ++ } ++ ++ return NULL; ++} ++ ++ ++/* Get cipher identifier. */ ++PJ_DEF(pj_ssl_cipher) pj_ssl_cipher_id(const char *cipher_name) ++{ ++ unsigned int i; ++ ++ tls_ciphers_fill(); ++ ++ for (i = 0; i < tls_available_ciphers; ++i) { ++ if (!pj_ansi_stricmp(tls_ciphers[i].name, cipher_name)) ++ return tls_ciphers[i].id; ++ } ++ ++ return PJ_TLS_UNKNOWN_CIPHER; ++} ++ ++ ++/* Check if the specified cipher is supported by the TLS backend. */ ++PJ_DEF(pj_bool_t) pj_ssl_cipher_is_supported(pj_ssl_cipher cipher) ++{ ++ unsigned int i; ++ ++ tls_ciphers_fill(); ++ ++ for (i = 0; i < tls_available_ciphers; ++i) { ++ if (cipher == tls_ciphers[i].id) ++ return PJ_TRUE; ++ } ++ ++ return PJ_FALSE; ++} ++ ++/* Create SSL socket instance. */ ++PJ_DEF(pj_status_t) pj_ssl_sock_create(pj_pool_t *pool, ++ const pj_ssl_sock_param *param, ++ pj_ssl_sock_t **p_ssock) ++{ ++ pj_ssl_sock_t *ssock; ++ pj_status_t status; ++ ++ PJ_ASSERT_RETURN(pool && param && p_ssock, PJ_EINVAL); ++ PJ_ASSERT_RETURN(param->sock_type == pj_SOCK_STREAM(), PJ_ENOTSUP); ++ ++ pool = pj_pool_create(pool->factory, "tls%p", 512, 512, NULL); ++ ++ /* Create secure socket */ ++ ssock = PJ_POOL_ZALLOC_T(pool, pj_ssl_sock_t); ++ ssock->pool = pool; ++ ssock->sock = PJ_INVALID_SOCKET; ++ ssock->connection_state = TLS_STATE_NULL; ++ pj_list_init(&ssock->write_pending); ++ pj_list_init(&ssock->write_pending_empty); ++ pj_list_init(&ssock->send_pending); ++ pj_timer_entry_init(&ssock->timer, 0, ssock, &on_timer); ++ pj_ioqueue_op_key_init(&ssock->handshake_op_key, ++ sizeof(pj_ioqueue_op_key_t)); ++ ++ /* Create secure socket mutex */ ++ status = pj_lock_create_recursive_mutex(pool, pool->obj_name, ++ &ssock->circ_buf_output_mutex); ++ if (status != PJ_SUCCESS) ++ return status; ++ ++ /* Create input circular buffer mutex */ ++ status = pj_lock_create_simple_mutex(pool, pool->obj_name, ++ &ssock->circ_buf_input_mutex); ++ if (status != PJ_SUCCESS) ++ return status; ++ ++ /* Create output circular buffer mutex */ ++ status = pj_lock_create_simple_mutex(pool, pool->obj_name, ++ &ssock->circ_buf_output_mutex); ++ if (status != PJ_SUCCESS) ++ return status; ++ ++ /* Init secure socket param */ ++ ssock->param = *param; ++ ssock->param.read_buffer_size = ((ssock->param.read_buffer_size + 7) >> 3) << 3; ++ ++ if (param->ciphers_num > 0) { ++ unsigned int i; ++ ssock->param.ciphers = (pj_ssl_cipher *) ++ pj_pool_calloc(pool, param->ciphers_num, ++ sizeof(pj_ssl_cipher)); ++ if (!ssock->param.ciphers) ++ return PJ_ENOMEM; ++ ++ for (i = 0; i < param->ciphers_num; ++i) ++ ssock->param.ciphers[i] = param->ciphers[i]; ++ } ++ ++ /* Server name must be null-terminated */ ++ pj_strdup_with_null(pool, &ssock->param.server_name, ¶m->server_name); ++ ++ /* Finally */ ++ *p_ssock = ssock; ++ ++ return PJ_SUCCESS; ++} ++ ++ ++/* ++ * Close the secure socket. This will unregister the socket from the ++ * ioqueue and ultimately close the socket. ++ */ ++PJ_DEF(pj_status_t) pj_ssl_sock_close(pj_ssl_sock_t *ssock) ++{ ++ pj_pool_t *pool; ++ ++ PJ_ASSERT_RETURN(ssock, PJ_EINVAL); ++ ++ if (!ssock->pool) ++ return PJ_SUCCESS; ++ ++ if (ssock->timer.id != TIMER_NONE) { ++ pj_timer_heap_cancel(ssock->param.timer_heap, &ssock->timer); ++ ssock->timer.id = TIMER_NONE; ++ } ++ ++ tls_sock_reset(ssock); ++ ++ pj_lock_destroy(ssock->circ_buf_output_mutex); ++ pj_lock_destroy(ssock->circ_buf_input_mutex); ++ ++ pool = ssock->pool; ++ ssock->pool = NULL; ++ if (pool) ++ pj_pool_release(pool); ++ ++ return PJ_SUCCESS; ++} ++ ++ ++/* Associate arbitrary data with the secure socket. */ ++PJ_DEF(pj_status_t) pj_ssl_sock_set_user_data(pj_ssl_sock_t *ssock, ++ void *user_data) ++{ ++ PJ_ASSERT_RETURN(ssock, PJ_EINVAL); ++ ++ ssock->param.user_data = user_data; ++ return PJ_SUCCESS; ++} ++ ++ ++/* Retrieve the user data previously associated with this secure socket. */ ++PJ_DEF(void *)pj_ssl_sock_get_user_data(pj_ssl_sock_t *ssock) ++{ ++ PJ_ASSERT_RETURN(ssock, NULL); ++ ++ return ssock->param.user_data; ++} ++ ++ ++/* Retrieve the local address and port used by specified SSL socket. */ ++PJ_DEF(pj_status_t) pj_ssl_sock_get_info (pj_ssl_sock_t *ssock, ++ pj_ssl_sock_info *info) ++{ ++ pj_bzero(info, sizeof(*info)); ++ ++ /* Established flag */ ++ info->established = (ssock->connection_state == TLS_STATE_ESTABLISHED); ++ ++ /* Protocol */ ++ info->proto = ssock->param.proto; ++ ++ /* Local address */ ++ pj_sockaddr_cp(&info->local_addr, &ssock->local_addr); ++ ++ if (info->established) { ++ int i; ++ gnutls_cipher_algorithm_t lookup; ++ gnutls_cipher_algorithm_t cipher; ++ ++ /* Current cipher */ ++ cipher = gnutls_cipher_get(ssock->session); ++ for (i = 0; ; i++) { ++ unsigned char id[2]; ++ const char *suite = gnutls_cipher_suite_info(i, (unsigned char *)id, ++ NULL, &lookup, NULL, ++ NULL); ++ if (suite) { ++ if (lookup == cipher) { ++ info->cipher = (pj_uint32_t) ((id[0] << 8) | id[1]); ++ break; ++ } ++ } else ++ break; ++ } ++ ++ /* Remote address */ ++ pj_sockaddr_cp(&info->remote_addr, &ssock->rem_addr); ++ ++ /* Certificates info */ ++ info->local_cert_info = &ssock->local_cert_info; ++ info->remote_cert_info = &ssock->remote_cert_info; ++ ++ /* Verification status */ ++ info->verify_status = ssock->verify_status; ++ } ++ ++ /* Last known GnuTLS error code */ ++ info->last_native_err = ssock->last_err; ++ ++ return PJ_SUCCESS; ++} ++ ++ ++/* Starts read operation on this secure socket. */ ++PJ_DEF(pj_status_t) pj_ssl_sock_start_read(pj_ssl_sock_t *ssock, ++ pj_pool_t *pool, ++ unsigned buff_size, ++ pj_uint32_t flags) ++{ ++ void **readbuf; ++ unsigned int i; ++ ++ PJ_ASSERT_RETURN(ssock && pool && buff_size, PJ_EINVAL); ++ PJ_ASSERT_RETURN(ssock->connection_state == TLS_STATE_ESTABLISHED, ++ PJ_EINVALIDOP); ++ ++ readbuf = (void**) pj_pool_calloc(pool, ssock->param.async_cnt, ++ sizeof(void *)); ++ if (!readbuf) ++ return PJ_ENOMEM; ++ ++ for (i = 0; i < ssock->param.async_cnt; ++i) { ++ readbuf[i] = pj_pool_alloc(pool, buff_size); ++ if (!readbuf[i]) ++ return PJ_ENOMEM; ++ } ++ ++ return pj_ssl_sock_start_read2(ssock, pool, buff_size, readbuf, flags); ++} ++ ++ ++/* ++ * Same as #pj_ssl_sock_start_read(), except that the application ++ * supplies the buffers for the read operation so that the acive socket ++ * does not have to allocate the buffers. ++ */ ++PJ_DEF(pj_status_t) pj_ssl_sock_start_read2 (pj_ssl_sock_t *ssock, ++ pj_pool_t *pool, ++ unsigned buff_size, ++ void *readbuf[], ++ pj_uint32_t flags) ++{ ++ unsigned int i; ++ ++ PJ_ASSERT_RETURN(ssock && pool && buff_size && readbuf, PJ_EINVAL); ++ PJ_ASSERT_RETURN(ssock->connection_state == TLS_STATE_ESTABLISHED, ++ PJ_EINVALIDOP); ++ ++ /* Create SSL socket read buffer */ ++ ssock->ssock_rbuf = (read_data_t*)pj_pool_calloc(pool, ++ ssock->param.async_cnt, ++ sizeof(read_data_t)); ++ if (!ssock->ssock_rbuf) ++ return PJ_ENOMEM; ++ ++ /* Store SSL socket read buffer pointer in the activesock read buffer */ ++ for (i = 0; i < ssock->param.async_cnt; ++i) { ++ read_data_t **p_ssock_rbuf = ++ OFFSET_OF_READ_DATA_PTR(ssock, ssock->asock_rbuf[i]); ++ ++ ssock->ssock_rbuf[i].data = readbuf[i]; ++ ssock->ssock_rbuf[i].len = 0; ++ ++ *p_ssock_rbuf = &ssock->ssock_rbuf[i]; ++ } ++ ++ ssock->read_size = buff_size; ++ ssock->read_started = PJ_TRUE; ++ ssock->read_flags = flags; ++ ++ return PJ_SUCCESS; ++} ++ ++ ++/* ++ * Same as pj_ssl_sock_start_read(), except that this function is used ++ * only for datagram sockets, and it will trigger \a on_data_recvfrom() ++ * callback instead. ++ */ ++PJ_DEF(pj_status_t) pj_ssl_sock_start_recvfrom (pj_ssl_sock_t *ssock, ++ pj_pool_t *pool, ++ unsigned buff_size, ++ pj_uint32_t flags) ++{ ++ PJ_UNUSED_ARG(ssock); ++ PJ_UNUSED_ARG(pool); ++ PJ_UNUSED_ARG(buff_size); ++ PJ_UNUSED_ARG(flags); ++ ++ return PJ_ENOTSUP; ++} ++ ++ ++/* ++ * Same as #pj_ssl_sock_start_recvfrom() except that the recvfrom() ++ * operation takes the buffer from the argument rather than creating ++ * new ones. ++ */ ++PJ_DEF(pj_status_t) pj_ssl_sock_start_recvfrom2 (pj_ssl_sock_t *ssock, ++ pj_pool_t *pool, ++ unsigned buff_size, ++ void *readbuf[], ++ pj_uint32_t flags) ++{ ++ PJ_UNUSED_ARG(ssock); ++ PJ_UNUSED_ARG(pool); ++ PJ_UNUSED_ARG(buff_size); ++ PJ_UNUSED_ARG(readbuf); ++ PJ_UNUSED_ARG(flags); ++ ++ return PJ_ENOTSUP; ++} ++ ++ ++/* ++ * Write the plain data to GnuTLS, it will be encrypted by gnutls_record_send() ++ * and sent via tls_data_push. Note that re-negotitation may be on progress, so ++ * sending data should be delayed until re-negotiation is completed. ++ */ ++static pj_status_t tls_write(pj_ssl_sock_t *ssock, ++ pj_ioqueue_op_key_t *send_key, ++ const void *data, pj_ssize_t size, unsigned flags) ++{ ++ pj_status_t status; ++ int nwritten; ++ pj_ssize_t total_written = 0; ++ ++ /* Ask GnuTLS to encrypt our plaintext now. GnuTLS will use the push ++ * callback to actually write the encrypted bytes into our output circular ++ * buffer. GnuTLS may refuse to "send" everything at once, but since we are ++ * not really sending now, we will just call it again now until it succeeds ++ * (or fails in a fatal way). */ ++ while (total_written < size) { ++ /* Try encrypting using GnuTLS */ ++ nwritten = gnutls_record_send(ssock->session, ((read_data_t *)data) + total_written, ++ size); ++ ++ if (nwritten > 0) { ++ /* Good, some data was encrypted and written */ ++ total_written += nwritten; ++ } else { ++ /* Normally we would have to retry record_send but our internal ++ * state has not changed, so we have to ask for more data first. ++ * We will just try again later, although this should never happen. ++ */ ++ return tls_status_from_err(ssock, nwritten); ++ } ++ } ++ ++ /* All encrypted data is written to the output circular buffer; ++ * now send it on the socket (or notify problem). */ ++ if (total_written == size) ++ status = flush_circ_buf_output(ssock, send_key, size, flags); ++ else ++ status = PJ_ENOMEM; ++ ++ return status; ++} ++ ++ ++/* Flush delayed data sending in the write pending list. */ ++static pj_status_t flush_delayed_send(pj_ssl_sock_t *ssock) ++{ ++ /* Check for another ongoing flush */ ++ if (ssock->flushing_write_pend) { ++ return PJ_EBUSY; ++ } ++ ++ pj_lock_acquire(ssock->circ_buf_output_mutex); ++ ++ /* Again, check for another ongoing flush */ ++ if (ssock->flushing_write_pend) { ++ pj_lock_release(ssock->circ_buf_output_mutex); ++ return PJ_EBUSY; ++ } ++ ++ /* Set ongoing flush flag */ ++ ssock->flushing_write_pend = PJ_TRUE; ++ ++ while (!pj_list_empty(&ssock->write_pending)) { ++ write_data_t *wp; ++ pj_status_t status; ++ ++ wp = ssock->write_pending.next; ++ ++ /* Ticket #1573: Don't hold mutex while calling socket send. */ ++ pj_lock_release(ssock->circ_buf_output_mutex); ++ ++ status = tls_write(ssock, &wp->key, wp->data.ptr, ++ wp->plain_data_len, wp->flags); ++ if (status != PJ_SUCCESS) { ++ /* Reset ongoing flush flag first. */ ++ ssock->flushing_write_pend = PJ_FALSE; ++ return status; ++ } ++ ++ pj_lock_acquire(ssock->circ_buf_output_mutex); ++ pj_list_erase(wp); ++ pj_list_push_back(&ssock->write_pending_empty, wp); ++ } ++ ++ /* Reset ongoing flush flag */ ++ ssock->flushing_write_pend = PJ_FALSE; ++ ++ pj_lock_release(ssock->circ_buf_output_mutex); ++ ++ return PJ_SUCCESS; ++} ++ ++ ++/* Sending is delayed, push back the sending data into pending list. */ ++static pj_status_t delay_send(pj_ssl_sock_t *ssock, ++ pj_ioqueue_op_key_t *send_key, ++ const void *data, pj_ssize_t size, ++ unsigned flags) ++{ ++ write_data_t *wp; ++ ++ pj_lock_acquire(ssock->circ_buf_output_mutex); ++ ++ /* Init write pending instance */ ++ if (!pj_list_empty(&ssock->write_pending_empty)) { ++ wp = ssock->write_pending_empty.next; ++ pj_list_erase(wp); ++ } else { ++ wp = PJ_POOL_ZALLOC_T(ssock->pool, write_data_t); ++ } ++ ++ wp->app_key = send_key; ++ wp->plain_data_len = size; ++ wp->data.ptr = data; ++ wp->flags = flags; ++ ++ pj_list_push_back(&ssock->write_pending, wp); ++ ++ pj_lock_release(ssock->circ_buf_output_mutex); ++ ++ /* Must return PJ_EPENDING */ ++ return PJ_EPENDING; ++} ++ ++ ++/** ++ * Send data using the socket. ++ */ ++PJ_DEF(pj_status_t) pj_ssl_sock_send(pj_ssl_sock_t *ssock, ++ pj_ioqueue_op_key_t *send_key, ++ const void *data, pj_ssize_t *size, ++ unsigned flags) ++{ ++ pj_status_t status; ++ ++ PJ_ASSERT_RETURN(ssock && data && size && (*size > 0), PJ_EINVAL); ++ PJ_ASSERT_RETURN(ssock->connection_state==TLS_STATE_ESTABLISHED, ++ PJ_EINVALIDOP); ++ ++ /* Flush delayed send first. Sending data might be delayed when ++ * re-negotiation is on-progress. */ ++ status = flush_delayed_send(ssock); ++ if (status == PJ_EBUSY) { ++ /* Re-negotiation or flushing is on progress, delay sending */ ++ status = delay_send(ssock, send_key, data, *size, flags); ++ goto on_return; ++ } else if (status != PJ_SUCCESS) { ++ goto on_return; ++ } ++ ++ /* Write data to SSL */ ++ status = tls_write(ssock, send_key, data, *size, flags); ++ if (status == PJ_EBUSY) { ++ /* Re-negotiation is on progress, delay sending */ ++ status = delay_send(ssock, send_key, data, *size, flags); ++ } ++ ++on_return: ++ return status; ++} ++ ++ ++/** ++ * Send datagram using the socket. ++ */ ++PJ_DEF(pj_status_t) pj_ssl_sock_sendto (pj_ssl_sock_t *ssock, ++ pj_ioqueue_op_key_t *send_key, ++ const void *data, pj_ssize_t *size, ++ unsigned flags, ++ const pj_sockaddr_t *addr, int addr_len) ++{ ++ PJ_UNUSED_ARG(ssock); ++ PJ_UNUSED_ARG(send_key); ++ PJ_UNUSED_ARG(data); ++ PJ_UNUSED_ARG(size); ++ PJ_UNUSED_ARG(flags); ++ PJ_UNUSED_ARG(addr); ++ PJ_UNUSED_ARG(addr_len); ++ ++ return PJ_ENOTSUP; ++} ++ ++/** ++ * Starts asynchronous socket accept() operations on this secure socket. ++ */ ++PJ_DEF(pj_status_t) pj_ssl_sock_start_accept (pj_ssl_sock_t *ssock, ++ pj_pool_t *pool, ++ const pj_sockaddr_t *localaddr, ++ int addr_len) ++{ ++ return pj_ssl_sock_start_accept2(ssock, pool, localaddr, addr_len, ++ &ssock->param); ++} ++ ++/** ++ * Starts asynchronous socket accept() operations on this secure socket. ++ */ ++PJ_DEF(pj_status_t) pj_ssl_sock_start_accept2 (pj_ssl_sock_t *ssock, ++ pj_pool_t *pool, ++ const pj_sockaddr_t *localaddr, ++ int addr_len, ++ const pj_ssl_sock_param *newsock_param) ++{ ++ pj_activesock_cb asock_cb; ++ pj_activesock_cfg asock_cfg; ++ pj_status_t status; ++ ++ PJ_ASSERT_RETURN(ssock && pool && localaddr && addr_len, PJ_EINVAL); ++ ++ /* Verify new socket parameters */ ++ if (newsock_param->grp_lock != ssock->param.grp_lock || ++ newsock_param->sock_af != ssock->param.sock_af || ++ newsock_param->sock_type != ssock->param.sock_type) ++ { ++ return PJ_EINVAL; ++ } ++ ++ /* Create socket */ ++ status = pj_sock_socket(ssock->param.sock_af, ssock->param.sock_type, 0, ++ &ssock->sock); ++ if (status != PJ_SUCCESS) ++ goto on_error; ++ ++ /* Apply SO_REUSEADDR */ ++ if (ssock->param.reuse_addr) { ++ int enabled = 1; ++ status = pj_sock_setsockopt(ssock->sock, pj_SOL_SOCKET(), ++ pj_SO_REUSEADDR(), ++ &enabled, sizeof(enabled)); ++ if (status != PJ_SUCCESS) { ++ PJ_PERROR(4,(ssock->pool->obj_name, status, ++ "Warning: error applying SO_REUSEADDR")); ++ } ++ } ++ ++ /* Apply QoS, if specified */ ++ status = pj_sock_apply_qos2(ssock->sock, ssock->param.qos_type, ++ &ssock->param.qos_params, 2, ++ ssock->pool->obj_name, NULL); ++ if (status != PJ_SUCCESS && !ssock->param.qos_ignore_error) ++ goto on_error; ++ ++ /* Bind socket */ ++ status = pj_sock_bind(ssock->sock, localaddr, addr_len); ++ if (status != PJ_SUCCESS) ++ goto on_error; ++ ++ /* Start listening to the address */ ++ status = pj_sock_listen(ssock->sock, PJ_SOMAXCONN); ++ if (status != PJ_SUCCESS) ++ goto on_error; ++ ++ /* Create active socket */ ++ pj_activesock_cfg_default(&asock_cfg); ++ asock_cfg.async_cnt = ssock->param.async_cnt; ++ asock_cfg.concurrency = ssock->param.concurrency; ++ asock_cfg.whole_data = PJ_TRUE; ++ ++ pj_bzero(&asock_cb, sizeof(asock_cb)); ++ asock_cb.on_accept_complete = asock_on_accept_complete; ++ ++ status = pj_activesock_create(pool, ++ ssock->sock, ++ ssock->param.sock_type, ++ &asock_cfg, ++ ssock->param.ioqueue, ++ &asock_cb, ++ ssock, ++ &ssock->asock); ++ ++ if (status != PJ_SUCCESS) ++ goto on_error; ++ ++ /* Start accepting */ ++ pj_ssl_sock_param_copy(pool, &ssock->newsock_param, newsock_param); ++ status = pj_activesock_start_accept(ssock->asock, pool); ++ if (status != PJ_SUCCESS) ++ goto on_error; ++ ++ /* Update local address */ ++ ssock->addr_len = addr_len; ++ status = pj_sock_getsockname(ssock->sock, &ssock->local_addr, ++ &ssock->addr_len); ++ if (status != PJ_SUCCESS) ++ pj_sockaddr_cp(&ssock->local_addr, localaddr); ++ ++ ssock->is_server = PJ_TRUE; ++ ++ return PJ_SUCCESS; ++ ++on_error: ++ tls_sock_reset(ssock); ++ return status; ++} ++ ++ ++/** ++ * Starts asynchronous socket connect() operation. ++ */ ++PJ_DECL(pj_status_t) pj_ssl_sock_start_connect(pj_ssl_sock_t *ssock, ++ pj_pool_t *pool, ++ const pj_sockaddr_t *localaddr, ++ const pj_sockaddr_t *remaddr, ++ int addr_len) ++{ ++ pj_activesock_cb asock_cb; ++ pj_activesock_cfg asock_cfg; ++ pj_status_t status; ++ ++ PJ_ASSERT_RETURN(ssock && pool && localaddr && remaddr && addr_len, ++ PJ_EINVAL); ++ ++ /* Create socket */ ++ status = pj_sock_socket(ssock->param.sock_af, ssock->param.sock_type, 0, ++ &ssock->sock); ++ if (status != PJ_SUCCESS) ++ goto on_error; ++ ++ /* Apply QoS, if specified */ ++ status = pj_sock_apply_qos2(ssock->sock, ssock->param.qos_type, ++ &ssock->param.qos_params, 2, ++ ssock->pool->obj_name, NULL); ++ if (status != PJ_SUCCESS && !ssock->param.qos_ignore_error) ++ goto on_error; ++ ++ /* Bind socket */ ++ status = pj_sock_bind(ssock->sock, localaddr, addr_len); ++ if (status != PJ_SUCCESS) ++ goto on_error; ++ ++ /* Create active socket */ ++ pj_activesock_cfg_default(&asock_cfg); ++ asock_cfg.async_cnt = ssock->param.async_cnt; ++ asock_cfg.concurrency = ssock->param.concurrency; ++ asock_cfg.whole_data = PJ_TRUE; ++ ++ pj_bzero(&asock_cb, sizeof(asock_cb)); ++ asock_cb.on_connect_complete = asock_on_connect_complete; ++ asock_cb.on_data_read = asock_on_data_read; ++ asock_cb.on_data_sent = asock_on_data_sent; ++ ++ status = pj_activesock_create(pool, ++ ssock->sock, ++ ssock->param.sock_type, ++ &asock_cfg, ++ ssock->param.ioqueue, ++ &asock_cb, ++ ssock, ++ &ssock->asock); ++ ++ if (status != PJ_SUCCESS) ++ goto on_error; ++ ++ /* Save remote address */ ++ pj_sockaddr_cp(&ssock->rem_addr, remaddr); ++ ++ /* Start timer */ ++ if (ssock->param.timer_heap && ++ (ssock->param.timeout.sec != 0 || ssock->param.timeout.msec != 0)) ++ { ++ pj_assert(ssock->timer.id == TIMER_NONE); ++ ssock->timer.id = TIMER_HANDSHAKE_TIMEOUT; ++ status = pj_timer_heap_schedule(ssock->param.timer_heap, ++ &ssock->timer, ++ &ssock->param.timeout); ++ if (status != PJ_SUCCESS) ++ ssock->timer.id = TIMER_NONE; ++ } ++ ++ status = pj_activesock_start_connect(ssock->asock, pool, remaddr, ++ addr_len); ++ ++ if (status == PJ_SUCCESS) ++ asock_on_connect_complete(ssock->asock, PJ_SUCCESS); ++ else if (status != PJ_EPENDING) ++ goto on_error; ++ ++ /* Update local address */ ++ ssock->addr_len = addr_len; ++ status = pj_sock_getsockname(ssock->sock, &ssock->local_addr, ++ &ssock->addr_len); ++ /* Note that we may not get an IP address here. This can ++ * happen for example on Windows, where getsockname() ++ * would return 0.0.0.0 if socket has just started the ++ * async connect. In this case, just leave the local ++ * address with 0.0.0.0 for now; it will be updated ++ * once the socket is established. ++ */ ++ ++ /* Update socket state */ ++ ssock->is_server = PJ_FALSE; ++ ++ return PJ_EPENDING; ++ ++on_error: ++ tls_sock_reset(ssock); ++ return status; ++} ++ ++ ++PJ_DEF(pj_status_t) pj_ssl_sock_renegotiate(pj_ssl_sock_t *ssock) ++{ ++ int status; ++ ++ /* Nothing established yet */ ++ PJ_ASSERT_RETURN(ssock->connection_state == TLS_STATE_ESTABLISHED, ++ PJ_EINVALIDOP); ++ ++ /* Cannot renegotiate; we're a client */ ++ /* FIXME: in fact maybe that's not true */ ++ PJ_ASSERT_RETURN(!ssock->is_server, PJ_EINVALIDOP); ++ ++ /* First call gnutls_rehandshake() to see if this is even possible */ ++ status = gnutls_rehandshake(ssock->session); ++ ++ if (status == GNUTLS_E_SUCCESS) { ++ /* Rehandshake is possible, so try a GnuTLS handshake now. The eventual ++ * gnutls_record_recv() calls could return a few specific values during ++ * this state: ++ * ++ * - GNUTLS_E_REHANDSHAKE: rehandshake message processing ++ * - GNUTLS_E_WARNING_ALERT_RECEIVED: client does not wish to ++ * renegotiate ++ */ ++ ssock->connection_state = TLS_STATE_HANDSHAKING; ++ status = tls_try_handshake(ssock); ++ ++ return status; ++ } else { ++ return tls_status_from_err(ssock, status); ++ } ++} ++ ++#endif /* PJ_HAS_SSL_SOCK */ +diff -ru a/pjlib/src/pj/ssl_sock_ossl.c b/pjlib/src/pj/ssl_sock_ossl.c +--- a/pjlib/src/pj/ssl_sock_ossl.c 2017-01-24 00:41:05.000000000 -0500 ++++ b/pjlib/src/pj/ssl_sock_ossl.c 2017-06-08 13:42:15.188809557 -0400 +@@ -32,8 +32,10 @@ + #include <pj/timer.h> + + +-/* Only build when PJ_HAS_SSL_SOCK is enabled */ +-#if defined(PJ_HAS_SSL_SOCK) && PJ_HAS_SSL_SOCK!=0 ++/* Only build when PJ_HAS_SSL_SOCK is enabled and when PJ_HAS_TLS_SOCK is ++ * disabled (meaning GnuTLS is off) */ ++#if defined(PJ_HAS_SSL_SOCK) && PJ_HAS_SSL_SOCK != 0 && \ ++ defined(PJ_HAS_TLS_SOCK) && PJ_HAS_TLS_SOCK == 0 + + #define THIS_FILE "ssl_sock_ossl.c" + +diff -ru a/pjmedia/src/pjmedia/transport_srtp.c b/pjmedia/src/pjmedia/transport_srtp.c +--- a/pjmedia/src/pjmedia/transport_srtp.c 2017-01-10 23:38:29.000000000 -0500 ++++ b/pjmedia/src/pjmedia/transport_srtp.c 2017-06-08 13:43:29.727001721 -0400 +@@ -30,7 +30,8 @@ + + #if defined(PJMEDIA_HAS_SRTP) && (PJMEDIA_HAS_SRTP != 0) + +-#if defined(PJ_HAS_SSL_SOCK) && (PJ_HAS_SSL_SOCK != 0) ++#if defined(PJ_HAS_SSL_SOCK) && PJ_HAS_SSL_SOCK != 0 && \ ++ defined(PJ_HAS_TLS_SOCK) && PJ_HAS_TLS_SOCK == 0 + # include <openssl/rand.h> + + /* Suppress compile warning of OpenSSL deprecation (OpenSSL is deprecated +@@ -1147,7 +1148,8 @@ + key_ok = PJ_TRUE; + + +-#if defined(PJ_HAS_SSL_SOCK) && (PJ_HAS_SSL_SOCK != 0) ++#if defined(PJ_HAS_SSL_SOCK) && PJ_HAS_SSL_SOCK != 0 && \ ++ defined(PJ_HAS_TLS_SOCK) && PJ_HAS_TLS_SOCK == 0 + + /* Include OpenSSL libraries for MSVC */ + # ifdef _MSC_VER + diff --git a/talimatname/genel/p/pjproject-ring/ice_config.patch b/talimatname/genel/p/pjproject-ring/ice_config.patch new file mode 100644 index 000000000..0bc2e4329 --- /dev/null +++ b/talimatname/genel/p/pjproject-ring/ice_config.patch @@ -0,0 +1,27 @@ +--- a/pjnath/include/pjnath/config.h ++++ b/pjnath/include/pjnath/config.h +@@ -233,3 +233,3 @@ + #ifndef PJ_ICE_MAX_CAND +-# define PJ_ICE_MAX_CAND 16 ++# define PJ_ICE_MAX_CAND 256 + #endif +@@ -243,3 +243,3 @@ + #ifndef PJ_ICE_ST_MAX_CAND +-# define PJ_ICE_ST_MAX_CAND 8 ++# define PJ_ICE_ST_MAX_CAND 32 + #endif +@@ -254,3 +254,3 @@ + #ifndef PJ_ICE_MAX_STUN +-# define PJ_ICE_MAX_STUN 2 ++# define PJ_ICE_MAX_STUN 3 + #endif +@@ -274,3 +274,3 @@ + #ifndef PJ_ICE_COMP_BITS +-# define PJ_ICE_COMP_BITS 1 ++# define PJ_ICE_COMP_BITS 2 + #endif +@@ -325,3 +325,3 @@ + #ifndef PJ_ICE_MAX_CHECKS +-# define PJ_ICE_MAX_CHECKS 32 ++# define PJ_ICE_MAX_CHECKS 150 + #endif diff --git a/talimatname/genel/p/pjproject-ring/ipv6.patch b/talimatname/genel/p/pjproject-ring/ipv6.patch new file mode 100644 index 000000000..8b42fbbda --- /dev/null +++ b/talimatname/genel/p/pjproject-ring/ipv6.patch @@ -0,0 +1,11 @@ +--- a/pjlib/include/pj/config.h ++++ b/pjlib/include/pj/config.h +@@ -549,7 +549,7 @@ + * Default: 0 (disabled, for now) + */ + #ifndef PJ_HAS_IPV6 +-# define PJ_HAS_IPV6 0 ++# define PJ_HAS_IPV6 1 + #endif + + /** diff --git a/talimatname/genel/p/pjproject-ring/multiple_listeners.patch b/talimatname/genel/p/pjproject-ring/multiple_listeners.patch new file mode 100644 index 000000000..89590107c --- /dev/null +++ b/talimatname/genel/p/pjproject-ring/multiple_listeners.patch @@ -0,0 +1,66 @@ +diff --git a/pjproject/pjsip/src/pjsip/sip_transport.c b/pjproject_new/pjsip/src/pjsip/sip_transport.c +index 4b2cc1a..22e3603 100644 +--- a/pjsip/src/pjsip/sip_transport.c ++++ b/pjsip/src/pjsip/sip_transport.c +@@ -1248,22 +1248,22 @@ PJ_DEF(pj_status_t) pjsip_tpmgr_register_tpfactory( pjsip_tpmgr *mgr, + + pj_lock_acquire(mgr->lock); + +- /* Check that no factory with the same type has been registered. */ ++ /* Check that no factory with the same type and bound address has been registered. */ + status = PJ_SUCCESS; + for (p=mgr->factory_list.next; p!=&mgr->factory_list; p=p->next) { +- if (p->type == tpf->type) { +- status = PJSIP_ETYPEEXISTS; +- break; +- } +- if (p == tpf) { +- status = PJ_EEXISTS; +- break; +- } ++ if (p->type == tpf->type && !pj_sockaddr_cmp(&tpf->local_addr, &p->local_addr)) { ++ status = PJSIP_ETYPEEXISTS; ++ break; ++ } ++ if (p == tpf) { ++ status = PJ_EEXISTS; ++ break; ++ } + } + + if (status != PJ_SUCCESS) { +- pj_lock_release(mgr->lock); +- return status; ++ pj_lock_release(mgr->lock); ++ return status; + } + + pj_list_insert_before(&mgr->factory_list, tpf); +@@ -2047,13 +2047,11 @@ PJ_DEF(pj_status_t) pjsip_tpmgr_acquire_transport2(pjsip_tpmgr *mgr, + pj_memcpy(&key.rem_addr, remote, addr_len); + + transport = (pjsip_transport*) +- pj_hash_get(mgr->table, &key, key_len, NULL); +- ++ pj_hash_get(mgr->table, &key, key_len, NULL); ++ unsigned flag = pjsip_transport_get_flag_from_type(type); + if (transport == NULL) { +- unsigned flag = pjsip_transport_get_flag_from_type(type); + const pj_sockaddr *remote_addr = (const pj_sockaddr*)remote; + +- + /* Ignore address for loop transports. */ + if (type == PJSIP_TRANSPORT_LOOP || + type == PJSIP_TRANSPORT_LOOP_DGRAM) +@@ -2135,6 +2135,11 @@ PJ_DEF(pj_status_t) pjsip_tpmgr_acquire_transport2(pjsip_tpmgr *mgr, + } + + } else { ++ /* Make sure we don't use another factory than the one given if secure flag is set */ ++ if (flag & PJSIP_TRANSPORT_SECURE) { ++ TRACE_((THIS_FILE, "Can't create new TLS transport with no provided suitable TLS listener.")); ++ return PJSIP_ETPNOTSUITABLE; ++ } + + /* Find factory with type matches the destination type */ + factory = mgr->factory_list.next; diff --git a/talimatname/genel/p/pjproject-ring/notestsapps.patch b/talimatname/genel/p/pjproject-ring/notestsapps.patch new file mode 100644 index 000000000..662f1dbf1 --- /dev/null +++ b/talimatname/genel/p/pjproject-ring/notestsapps.patch @@ -0,0 +1,97 @@ +diff --git a/Makefile b/Makefile +index 33a4e6b..a486eb7 100644 +--- a/Makefile ++++ b/Makefile +@@ -4,7 +4,7 @@ include build/host-$(HOST_NAME).mak + include version.mak + + LIB_DIRS = pjlib/build pjlib-util/build pjnath/build third_party/build pjmedia/build pjsip/build +-DIRS = $(LIB_DIRS) pjsip-apps/build $(EXTRA_DIRS) ++DIRS = $(LIB_DIRS) $(EXTRA_DIRS) + + ifdef MINSIZE + MAKE_FLAGS := MINSIZE=1 +diff --git a/pjlib-util/build/Makefile b/pjlib-util/build/Makefile +index cb601cb..862a78a 100644 +--- a/pjlib-util/build/Makefile ++++ b/pjlib-util/build/Makefile +@@ -54,7 +54,6 @@ export UTIL_TEST_OBJS += xml.o encryption.o stun.o resolver_test.o test.o \ + export UTIL_TEST_CFLAGS += $(_CFLAGS) + export UTIL_TEST_CXXFLAGS += $(_CXXFLAGS) + export UTIL_TEST_LDFLAGS += $(PJLIB_UTIL_LDLIB) $(PJLIB_LDLIB) $(_LDFLAGS) +-export UTIL_TEST_EXE:=pjlib-util-test-$(TARGET_NAME)$(HOST_EXE) + + + export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT +diff --git a/pjlib/build/Makefile b/pjlib/build/Makefile +index 1e64950..a75fa65 100644 +--- a/pjlib/build/Makefile ++++ b/pjlib/build/Makefile +@@ -56,7 +56,6 @@ export TEST_OBJS += activesock.o atomic.o echo_clt.o errno.o exception.o \ + export TEST_CFLAGS += $(_CFLAGS) + export TEST_CXXFLAGS += $(_CXXFLAGS) + export TEST_LDFLAGS += $(PJLIB_LDLIB) $(_LDFLAGS) +-export TEST_EXE := pjlib-test-$(TARGET_NAME)$(HOST_EXE) + + + export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT +diff --git a/pjmedia/build/Makefile b/pjmedia/build/Makefile +index 8012cb7..2ca283a 100644 +--- a/pjmedia/build/Makefile ++++ b/pjmedia/build/Makefile +@@ -165,7 +165,6 @@ export PJMEDIA_TEST_LDFLAGS += $(PJMEDIA_CODEC_LDLIB) \ + $(PJLIB_UTIL_LDLIB) \ + $(PJNATH_LDLIB) \ + $(_LDFLAGS) +-export PJMEDIA_TEST_EXE:=pjmedia-test-$(TARGET_NAME)$(HOST_EXE) + + + export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT +diff --git a/pjnath/build/Makefile b/pjnath/build/Makefile +index 1bc08b5..109f79b 100644 +--- a/pjnath/build/Makefile ++++ b/pjnath/build/Makefile +@@ -54,7 +54,6 @@ export PJNATH_TEST_OBJS += ice_test.o stun.o sess_auth.o server.o concur_test.o + export PJNATH_TEST_CFLAGS += $(_CFLAGS) + export PJNATH_TEST_CXXFLAGS += $(_CXXFLAGS) + export PJNATH_TEST_LDFLAGS += $(PJNATH_LDLIB) $(PJLIB_UTIL_LDLIB) $(PJLIB_LDLIB) $(_LDFLAGS) +-export PJNATH_TEST_EXE:=pjnath-test-$(TARGET_NAME)$(HOST_EXE) + + + ############################################################################### +@@ -65,7 +64,6 @@ export PJTURN_CLIENT_OBJS += client_main.o + export PJTURN_CLIENT_CFLAGS += $(_CFLAGS) + export PJTURN_CLIENT_CXXFLAGS += $(_CXXFLAGS) + export PJTURN_CLIENT_LDFLAGS += $(PJNATH_LDLIB) $(PJLIB_UTIL_LDLIB) $(PJLIB_LDLIB) $(_LDFLAGS) +-export PJTURN_CLIENT_EXE:=pjturn-client-$(TARGET_NAME)$(HOST_EXE) + + ############################################################################### + # Defines for building TURN server application +@@ -76,7 +74,6 @@ export PJTURN_SRV_OBJS += allocation.o auth.o listener_udp.o \ + export PJTURN_SRV_CFLAGS += $(_CFLAGS) + export PJTURN_SRV_CXXFLAGS += $(_CXXFLAGS) + export PJTURN_SRV_LDFLAGS += $(PJNATH_LDLIB) $(PJLIB_UTIL_LDLIB) $(PJLIB_LDLIB) $(_LDFLAGS) +-export PJTURN_SRV_EXE:=pjturn-srv-$(TARGET_NAME)$(HOST_EXE) + + + +diff --git a/pjsip/build/Makefile b/pjsip/build/Makefile +index d2a5c2a..7e2ec60 100644 +--- a/pjsip/build/Makefile ++++ b/pjsip/build/Makefile +@@ -165,7 +165,6 @@ export PJSUA2_TEST_OBJS += $(OS_OBJS) $(M_OBJS) $(CC_OBJS) $(HOST_OBJS) \ + export PJSUA2_TEST_CFLAGS += $(_CFLAGS) $(PJ_VIDEO_CFLAGS) + export PJSUA2_TEST_CXXFLAGS = $(PJSUA2_LIB_CFLAGS) + export PJSUA2_TEST_LDFLAGS += $(PJ_LDXXFLAGS) $(PJ_LDXXLIBS) $(LDFLAGS) +-export PJSUA2_TEST_EXE := pjsua2-test-$(TARGET_NAME)$(HOST_EXE) + + export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT + +@@ -195,7 +194,6 @@ export TEST_LDFLAGS += $(PJSIP_LDLIB) \ + $(PJLIB_UTIL_LDLIB) \ + $(PJNATH_LDLIB) \ + $(_LDFLAGS) +-export TEST_EXE := pjsip-test-$(TARGET_NAME)$(HOST_EXE) + + + export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT diff --git a/talimatname/genel/p/pjproject-ring/pj_ice_sess.patch b/talimatname/genel/p/pjproject-ring/pj_ice_sess.patch new file mode 100644 index 000000000..bd040ffe3 --- /dev/null +++ b/talimatname/genel/p/pjproject-ring/pj_ice_sess.patch @@ -0,0 +1,22 @@ +--- a/pjnath/include/pjnath/ice_strans.h ++++ b/pjnath/include/pjnath/ice_strans.h +@@ -845,6 +845,8 @@ PJ_DECL(pj_status_t) pj_ice_strans_sendt + int dst_addr_len); + + ++PJ_DECL(pj_ice_sess *) pj_ice_strans_get_ice_sess(pj_ice_strans *ice_st); ++ + /** + * @} + */ +--- a/pjnath/src/pjnath/ice_strans.c ++++ b/pjnath/src/pjnath/ice_strans.c +@@ -1243,6 +1243,11 @@ PJ_DEF(pj_status_t) pj_ice_strans_sendto + return PJ_EINVALIDOP; + } + ++PJ_DECL(pj_ice_sess *) pj_ice_strans_get_ice_sess( pj_ice_strans *ice_st ) ++{ ++ return ice_st->ice; ++} ++ diff --git a/talimatname/genel/p/pjproject-ring/talimat b/talimatname/genel/p/pjproject-ring/talimat new file mode 100644 index 000000000..c84129c97 --- /dev/null +++ b/talimatname/genel/p/pjproject-ring/talimat @@ -0,0 +1,57 @@ +# Tanım: Open source SIP stack and media stack, built with patches from SavoirFaire Linux (mostly GnuTLS support) +# URL: http://www.pjsip.org/ +# Paketçi: milisarge +# Gerekler: gnutls portaudio speex alsa-lib libsamplerate ffmpeg libsrtp opus gsm libsrtp + +isim=pjproject-ring +_isim=pjproject +surum=2.6 +devir=1 +kaynak=(http://www.pjsip.org/release/2.6/$_name-$surum.tar.bz2 + endianness.patch + gnutls.patch + notestsapps.patch + fix_base64.patch + ipv6.patch + ice_config.patch + multiple_listeners.patch + pj_ice_sess.patch + fix_turn_fallback.patch + fix_ioqueue_ipv6_sendto.patch + add_dtls_transport.patch) + +derle() { + cd "${SRC}/${_name}-${surum}" + + for patch in endianness.patch gnutls.patch notestsapps.patch fix_base64.patch \ + ipv6.patch ice_config.patch multiple_listeners.patch \ + pj_ice_sess.patch fix_turn_fallback.patch \ + fix_ioqueue_ipv6_sendto.patch add_dtls_transport.patch + + do + patch -p1 < ../"$patch" + done + cd "${SRC}/${_name}-${surum}" + export CXXFLAGS="${CXXFLAGS} -DNDEBUG -fPIC -DPJSIP_MAX_PKT_LEN=8000" + export CFLAGS="${CXXFLAGS}" + + ./configure \ + --prefix=/usr \ + --enable-shared \ + --enable-ssl=gnutls \ + --with-external-speex \ + --with-external-srtp \ + --with-external-pa \ + --with-external-gsm \ + --enable-ext-sound \ + --disable-oss \ + --disable-opencore-amr \ + --disable-v4l2 \ + --disable-video \ + --disable-sound + + make dep + make + make DESTDIR="${PKG}" install + +} diff --git a/talimatname/genel/p/plank/talimat b/talimatname/genel/p/plank/talimat new file mode 100644 index 000000000..0ade9f9c2 --- /dev/null +++ b/talimatname/genel/p/plank/talimat @@ -0,0 +1,20 @@ +# Tanım: Basit ve sade dock uygulaması +# URL: https://launchpad.net/plank +# Paketçi: Cihan Alkan +# Gerekler: intltool cairo gnome-common vala gtk3 glibc atk libwnck3 libgee bamf + +isim=plank +surum=0.11.4 +devir=1 +kaynak=(https://launchpad.net/plank/1.0/$surum/+download/plank-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure \ + --prefix='/usr' \ + --sysconfdir='/etc' \ + --disable-apport + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plasma-bluedevil/talimat b/talimatname/genel/p/plasma-bluedevil/talimat new file mode 100644 index 000000000..1702b5437 --- /dev/null +++ b/talimatname/genel/p/plasma-bluedevil/talimat @@ -0,0 +1,23 @@ +# Tanım: Bluetooth teknolojisini KDE çalışma alanı ve uygulamaları içine entegre edin +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-bluez-qt kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-kded kf5-kdbusaddons kf5-ki18n kf5-kiconthemes kf5-kio kf5-knotifications kf5-kwidgetsaddons kf5-kwindowsystem kf5-plasma-framework shared-mime-info plasma-kde-cli-tools + +isim=plasma-bluedevil +surum=5.8.1 +devir=1 +_isim=bluedevil + +kaynak=( http://download.kde.org/stable/plasma/$surum/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plasma-breeze-gtk/talimat b/talimatname/genel/p/plasma-breeze-gtk/talimat new file mode 100644 index 000000000..f99cc37d7 --- /dev/null +++ b/talimatname/genel/p/plasma-breeze-gtk/talimat @@ -0,0 +1,23 @@ +# Tanım: GTK 2 ve 3 için Breeze (esinti) widget teması +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-frameworkintegration kf5-kcmutils kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-kguiaddons kf5-ki18n kf5-kwidgetsaddons kf5-kwindowsystem plasma-kdecoration libxcb plasma-kde-cli-tools + + +isim=plasma-breeze-gtk +surum=5.8.1 +devir=1 +_isim=breeze-gtk + +kaynak=( http://download.kde.org/stable/plasma/$surum/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plasma-breeze/talimat b/talimatname/genel/p/plasma-breeze/talimat new file mode 100644 index 000000000..bfb958dcb --- /dev/null +++ b/talimatname/genel/p/plasma-breeze/talimat @@ -0,0 +1,23 @@ +# Tanım: Breeze, Plazma Masaüstü için görsel stil için resim, stil ve kıymetler +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-plasma-framework kf5-frameworkintegration kf5-kcmutils kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-kguiaddons kf5-ki18n kf5-kwidgetsaddons kf5-kwindowsystem plasma-kdecoration libxcb plasma-kde-cli-tools kf5-kwayland + +isim=plasma-breeze +surum=5.8.1 +devir=1 +_isim=breeze + +kaynak=( http://download.kde.org/stable/plasma/$surum/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plasma-desktop/plasma-desktop.kur-kos b/talimatname/genel/p/plasma-desktop/plasma-desktop.kur-kos new file mode 100644 index 000000000..c9dd4942d --- /dev/null +++ b/talimatname/genel/p/plasma-desktop/plasma-desktop.kur-kos @@ -0,0 +1,2 @@ +xdg-icon-resource forceupdate --theme breeze &> /dev/null +update-desktop-database -q diff --git a/talimatname/genel/p/plasma-desktop/talimat b/talimatname/genel/p/plasma-desktop/talimat new file mode 100644 index 000000000..f309c255c --- /dev/null +++ b/talimatname/genel/p/plasma-desktop/talimat @@ -0,0 +1,22 @@ +# Tanım: KDE Plasma Masaüstü +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: xorg plasma-kwin plasma-workspace kf5-attica kf5-baloo kf5-karchive kf5-kauth kf5-kbookmarks kf5-kcmutils kf5-kcodecs kf5-kcompletion kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-kdbusaddons kf5-kdeclarative kf5-kded kf5-kdelibs4support kf5-kemoticons kf5-kglobalaccel kf5-kguiaddons kf5-ki18n kf5-kiconthemes kf5-kio kio-extras kf5-kitemviews kf5-kjobwidgets kf5-knewstuff kf5-knotifications kf5-knotifyconfig kf5-kparts kf5-kpeople kf5-krunner kf5-kservice kf5-kwallet kf5-kwidgetsaddons kf5-kwindowsystem kf5-kxmlgui kf5-solid kf5-sonnet phonon-qt5 libxcb xcb-util-image libcanberra pulseaudio plasma-breeze plasma-kde-cli-tools plasma-oxygen desktop-file-utils xdg-utils kf5-kactivities-stats kf5-kpackage + +isim=plasma-desktop +surum=5.8.1 +devir=1 + +kaynak=( http://download.kde.org/stable/plasma/$surum/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plasma-integration/talimat b/talimatname/genel/p/plasma-integration/talimat new file mode 100644 index 000000000..3162ef170 --- /dev/null +++ b/talimatname/genel/p/plasma-integration/talimat @@ -0,0 +1,22 @@ +# Tanım: Plazma çalışma alanları için Qt Platform Tema entegrasyonu eklentileri. +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules kf5-kconfig kf5-kconfigwidgets kf5-ki18n kf5-kiconthemes kf5-kio kf5-knotifications kf5-kwidgetsaddons kf5-kwayland plasma-breeze + +isim=plasma-integration +surum=5.8.1 +devir=1 + +kaynak=( http://download.kde.org/stable/plasma/$surum/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plasma-kactivitymanagerd/talimat b/talimatname/genel/p/plasma-kactivitymanagerd/talimat new file mode 100644 index 000000000..22a06bfc0 --- /dev/null +++ b/talimatname/genel/p/plasma-kactivitymanagerd/talimat @@ -0,0 +1,24 @@ +# Tanım: KDE Etkinlik kavramı için çekirdek bileşenler +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: qt5 kf5-extra-cmake-modules kf5-kconfig kf5-kdbusaddons kf5-ki18n kf5-kcoreaddons kf5-kwindowsystem kf5-kglobalaccel kf5-kxmlgui kf5-kio + +isim=plasma-kactivitymanagerd +surum=5.8.1 +devir=1 +_isim=kactivitymanagerd + +kaynak=( http://download.kde.org/stable/plasma/$surum/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +mkdir build +cd build +cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DKDE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF .. + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plasma-kde-cli-tools/talimat b/talimatname/genel/p/plasma-kde-cli-tools/talimat new file mode 100644 index 000000000..137b0603c --- /dev/null +++ b/talimatname/genel/p/plasma-kde-cli-tools/talimat @@ -0,0 +1,24 @@ +# Tanım: Sistemle daha iyi etkileşim kurmak için KDE Framework'leri temel alan araçlar +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kcmutils kf5-kcompletion kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-kdelibs4support kf5-kdesu kf5-ki18n kf5-kiconthemes kf5-kio kf5-kservice kf5-kwidgetsaddons kf5-kwindowsystem + +isim=plasma-kde-cli-tools +surum=5.8.1 +devir=1 +_isim=kde-cli-tools + +kaynak=( http://download.kde.org/stable/plasma/$surum/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +ln -sfv ../lib/libexec/kf5/kdesu $PKG/usr/bin/kdesu5 +} diff --git a/talimatname/genel/p/plasma-kde-gtk-config/talimat b/talimatname/genel/p/plasma-kde-gtk-config/talimat new file mode 100644 index 000000000..d4902fdca --- /dev/null +++ b/talimatname/genel/p/plasma-kde-gtk-config/talimat @@ -0,0 +1,26 @@ +# Tanım: KDE 5 için GTK2 ve GTK3 Yapılandırıcı +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-karchive kf5-kcmutils kf5-kconfigwidgets kf5-kcoreaddons kf5-ki18n kf5-kiconthemes kf5-kio kf5-knewstuff kf5-kwidgetsaddons plasma-kde-cli-tools + +isim=plasma-kde-gtk-config +surum=5.8.1 +devir=1 +_isim=kde-gtk-config + +kaynak=( http://download.kde.org/stable/plasma/$surum/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_INSTALL_DIR=lib \ + -DLIBEXEC_INSTALL_DIR=lib \ + -DSYSCONF_INSTALL_DIR=/etc \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/p/plasma-kdecoration/talimat b/talimatname/genel/p/plasma-kdecoration/talimat new file mode 100644 index 000000000..4333391b7 --- /dev/null +++ b/talimatname/genel/p/plasma-kdecoration/talimat @@ -0,0 +1,23 @@ +# Tanım: Plugin tabanlı kitaplık pencere süslemeleri oluşturmak için +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: cmake kf5-extra-cmake-modules qt5 + +isim=plasma-kdecoration +surum=5.8.1 +devir=1 +_isim=kdecoration + +kaynak=( http://download.kde.org/stable/plasma/$surum/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/p/plasma-kdeplasma-addons/plasma-kdeplasma-addons.kur-kos b/talimatname/genel/p/plasma-kdeplasma-addons/plasma-kdeplasma-addons.kur-kos new file mode 100644 index 000000000..297ac603c --- /dev/null +++ b/talimatname/genel/p/plasma-kdeplasma-addons/plasma-kdeplasma-addons.kur-kos @@ -0,0 +1,2 @@ +[[ -x xdg-icon-resource ]] && xdg-icon-resource forceupdate --theme hicolor &> /dev/null || true + diff --git a/talimatname/genel/p/plasma-kdeplasma-addons/talimat b/talimatname/genel/p/plasma-kdeplasma-addons/talimat new file mode 100644 index 000000000..b788c5a08 --- /dev/null +++ b/talimatname/genel/p/plasma-kdeplasma-addons/talimat @@ -0,0 +1,24 @@ +# Tanım: Plazma deneyiminizi geliştirmek için her türlü eklenti +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-karchive kf5-kconfig kf5-kconfigwidgets kf5-kcmutils kf5-kcompletion kf5-kcoreaddons kf5-kdelibs4support kf5-ki18n kf5-kio kf5-knewstuff kf5-knotifications kf5-kpackage kf5-kross kf5-krunner kf5-kservice kf5-kunitconversion kf5-kwidgetsaddons kf5-kwindowsystem kf5-kxmlgui kf5-plasma-framework kf5-sonnet libxcb xcb-util-keysyms xdg-utils plasma-kactivitymanagerd plasma-workspace + +isim=plasma-kdeplasma-addons +surum=5.8.1 +devir=1 +_isim=kdeplasma-addons + +kaynak=( http://download.kde.org/stable/plasma/$surum/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +mkdir build +cd build +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev .. +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plasma-kgamma5/talimat b/talimatname/genel/p/plasma-kgamma5/talimat new file mode 100644 index 000000000..9db5b2230 --- /dev/null +++ b/talimatname/genel/p/plasma-kgamma5/talimat @@ -0,0 +1,23 @@ +# Tanım: Monitörünüzün gama ayarlarını yapma +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-kdelibs4support kf5-ki18n + +isim=plasma-kgamma5 +surum=5.8.1 +devir=1 +_isim=kgamma5 + +kaynak=( http://download.kde.org/stable/plasma/$surum/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plasma-khotkeys/talimat b/talimatname/genel/p/plasma-khotkeys/talimat new file mode 100644 index 000000000..53895d0b2 --- /dev/null +++ b/talimatname/genel/p/plasma-khotkeys/talimat @@ -0,0 +1,23 @@ +# Tanım: KDE Plazma çalışma alanı kısayol tuşu modülü +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kcompletion kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-kdbusaddons kf5-kdelibs4support kf5-kglobalaccel kf5-ki18n kf5-kio kf5-kservice kf5-ktextwidgets kf5-kwidgetsaddons kf5-kwindowsystem kf5-kxmlgui plasma-workspace + +isim=plasma-khotkeys +surum=5.8.1 +devir=1 +_isim=khotkeys + +kaynak=( http://download.kde.org/stable/plasma/$surum/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plasma-kinfocenter/talimat b/talimatname/genel/p/plasma-kinfocenter/talimat new file mode 100644 index 000000000..97eb0b04d --- /dev/null +++ b/talimatname/genel/p/plasma-kinfocenter/talimat @@ -0,0 +1,23 @@ +# Tanım: Bir bilgisayar sistemi hakkında bilgi sağlayan bir yardımcı program +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kcmutils kf5-kcompletion kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-kdbusaddons kf5-kdeclarative kf5-kdelibs4support kf5-ki18n kf5-kiconthemes kf5-kio kf5-kpackage kf5-kservice kf5-kwidgetsaddons kf5-kxmlgui kf5-solid plasma-kwayland-integration kf5-kwayland + +isim=plasma-kinfocenter +surum=5.8.1 +devir=1 +_isim=kinfocenter + +kaynak=( http://download.kde.org/stable/plasma/$surum/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plasma-kmenuedit/plasma-kmenuedit.kur-kos b/talimatname/genel/p/plasma-kmenuedit/plasma-kmenuedit.kur-kos new file mode 100644 index 000000000..b74f6d479 --- /dev/null +++ b/talimatname/genel/p/plasma-kmenuedit/plasma-kmenuedit.kur-kos @@ -0,0 +1 @@ +xdg-icon-resource forceupdate --theme hicolor &> /dev/null diff --git a/talimatname/genel/p/plasma-kmenuedit/talimat b/talimatname/genel/p/plasma-kmenuedit/talimat new file mode 100644 index 000000000..8a70b76fa --- /dev/null +++ b/talimatname/genel/p/plasma-kmenuedit/talimat @@ -0,0 +1,23 @@ +# Tanım: KDE menü düzenleyici +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kcompletion kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-kdbusaddons kf5-kdelibs4support kf5-ki18n kf5-kiconthemes kf5-kio kf5-kservice kf5-kwidgetsaddons kf5-kxmlgui kf5-sonnet plasma-khotkeys xdg-utils + +isim=plasma-kmenuedit +surum=5.8.1 +devir=1 +_isim=kmenuedit + +kaynak=( http://download.kde.org/stable/plasma/$surum/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plasma-kscreen/plasma-kscreen.kur-kos b/talimatname/genel/p/plasma-kscreen/plasma-kscreen.kur-kos new file mode 100644 index 000000000..297ac603c --- /dev/null +++ b/talimatname/genel/p/plasma-kscreen/plasma-kscreen.kur-kos @@ -0,0 +1,2 @@ +[[ -x xdg-icon-resource ]] && xdg-icon-resource forceupdate --theme hicolor &> /dev/null || true + diff --git a/talimatname/genel/p/plasma-kscreen/talimat b/talimatname/genel/p/plasma-kscreen/talimat new file mode 100644 index 000000000..7ce6c5767 --- /dev/null +++ b/talimatname/genel/p/plasma-kscreen/talimat @@ -0,0 +1,23 @@ +# Tanım: KDE'nin ekran yönetimi yazılımı +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: plasma-libkscreen kf5-kconfigwidgets kf5-kcoreaddons kf5-kdbusaddons kf5-kglobalaccel kf5-ki18n kf5-kwidgetsaddons kf5-kxmlgui plasma-kde-cli-tools xdg-utils + +isim=plasma-kscreen +surum=5.8.1 +devir=1 +_isim=kscreen + +kaynak=( http://download.kde.org/stable/plasma/$surum/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plasma-kscreenlocker/talimat b/talimatname/genel/p/plasma-kscreenlocker/talimat new file mode 100644 index 000000000..aa95f8c2a --- /dev/null +++ b/talimatname/genel/p/plasma-kscreenlocker/talimat @@ -0,0 +1,25 @@ +# Tanım: Güvenli kilit ekran mimarisi için kütüphane ve bileşenler +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules kf5-kconfig kf5-ki18n kf5-plasma-framework kf5-kcmutils kf5-kdeclarative kf5-kidletime kf5-kdelibs4support kf5-kcrash kf5-kglobalaccel kf5-kwayland + +isim=plasma-kscreenlocker +surum=5.8.1 +devir=1 +_isim=kscreenlocker + +kaynak=( http://download.kde.org/stable/plasma/$surum/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -DLIBEXEC_INSTALL_DIR=/usr/lib \ + -DSYSCONF_INSTALL_DIR=/etc \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plasma-ksshaskpass/talimat b/talimatname/genel/p/plasma-ksshaskpass/talimat new file mode 100644 index 000000000..33909b508 --- /dev/null +++ b/talimatname/genel/p/plasma-ksshaskpass/talimat @@ -0,0 +1,22 @@ +# Tanım: Kshaskpass, OpenSSH ile kullanılmak üzere KDE tabanlı bir parola deyimi iletişim kutusu. +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kcoreaddons kf5-ki18n kf5-kwallet kf5-kwidgetsaddons + +isim=plasma-ksshaskpass +surum=5.8.1 +devir=1 +_isim=ksshaskpass + +kaynak=( http://download.kde.org/stable/plasma/$surum/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plasma-ksysguard/plasma-ksysguard.kur-kos b/talimatname/genel/p/plasma-ksysguard/plasma-ksysguard.kur-kos new file mode 100644 index 000000000..bb8f8fdb7 --- /dev/null +++ b/talimatname/genel/p/plasma-ksysguard/plasma-ksysguard.kur-kos @@ -0,0 +1,2 @@ +xdg-icon-resource forceupdate --theme hicolor &> /dev/null +update-desktop-database -q diff --git a/talimatname/genel/p/plasma-ksysguard/talimat b/talimatname/genel/p/plasma-ksysguard/talimat new file mode 100644 index 000000000..624dcba29 --- /dev/null +++ b/talimatname/genel/p/plasma-ksysguard/talimat @@ -0,0 +1,23 @@ +# Tanım: Sisteminizde çalışan süreçleri takip edin ve kontrol edin +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: plasma-libksysguard kf5-kcompletion kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-kdbusaddons kf5-kdelibs4support kf5-ki18n kf5-kiconthemes kf5-kio kf5-kitemviews kf5-knewstuff kf5-knotifications kf5-kwidgetsaddons kf5-kwindowsystem kf5-kxmlgui lm-sensors desktop-file-utils xdg-utils + +isim=plasma-ksysguard +surum=5.8.1 +devir=1 +_isim=ksysguard + +kaynak=( http://download.kde.org/stable/plasma/$surum/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plasma-kwallet-pam/talimat b/talimatname/genel/p/plasma-kwallet-pam/talimat new file mode 100644 index 000000000..7b6621c7b --- /dev/null +++ b/talimatname/genel/p/plasma-kwallet-pam/talimat @@ -0,0 +1,23 @@ +# Tanım: KWallet PAM entegrasyonu +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kwallet pam + +isim=plasma-kwallet-pam +surum=5.8.1 +devir=1 +_isim=kwallet-pam + +kaynak=( http://download.kde.org/stable/plasma/$surum/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_INSTALL_DIR=lib \ + -DSYSCONF_INSTALL_DIR=/etc \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plasma-kwayland-integration/talimat b/talimatname/genel/p/plasma-kwayland-integration/talimat new file mode 100644 index 000000000..281a46862 --- /dev/null +++ b/talimatname/genel/p/plasma-kwayland-integration/talimat @@ -0,0 +1,24 @@ +# Tanım: Wayland pencere sistemine çeşitli KDE çerçeveleri için entegrasyon eklentileri sağlar. +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: cmake kf5-extra-cmake-modules wayland kf5-kwayland kf5-kwindowsystem kf5-kidletime + +isim=plasma-kwayland-integration +surum=5.8.1 +devir=1 +_isim=kwayland-integration + +kaynak=( http://download.kde.org/stable/plasma/$surum/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_INSTALL_DIR=lib \ + -DSYSCONF_INSTALL_DIR=/etc \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plasma-kwin/plasma-kwin.kur-kos b/talimatname/genel/p/plasma-kwin/plasma-kwin.kur-kos new file mode 100644 index 000000000..b74f6d479 --- /dev/null +++ b/talimatname/genel/p/plasma-kwin/plasma-kwin.kur-kos @@ -0,0 +1 @@ +xdg-icon-resource forceupdate --theme hicolor &> /dev/null diff --git a/talimatname/genel/p/plasma-kwin/talimat b/talimatname/genel/p/plasma-kwin/talimat new file mode 100644 index 000000000..c16332147 --- /dev/null +++ b/talimatname/genel/p/plasma-kwin/talimat @@ -0,0 +1,23 @@ +# Tanım: KDE pencere yöneticisi +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kauth kf5-kcmutils kf5-kcompletion kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-kcrash kf5-kdeclarative kf5-kglobalaccel kf5-ki18n kf5-kiconthemes kf5-kinit kf5-kio kf5-knewstuff kf5-knotifications kf5-kpackage kf5-kservice kf5-kwidgetsaddons kf5-kwindowsystem kf5-kxmlgui kf5-plasma-framework plasma-kdecoration libepoxy libxcb xcb-util-cursor xcb-util-image xcb-util-keysyms kf5-kwayland libinput eudev plasma-kde-cli-tools xorg-mesa xdg-utils kf5-kidletime plasma-kscreenlocker plasma-breeze + +isim=plasma-kwin +surum=5.8.1 +devir=1 +_isim=kwin + +kaynak=( http://download.kde.org/stable/plasma/$surum/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plasma-kwrited/talimat b/talimatname/genel/p/plasma-kwrited/talimat new file mode 100644 index 000000000..cf9219595 --- /dev/null +++ b/talimatname/genel/p/plasma-kwrited/talimat @@ -0,0 +1,23 @@ +# Tanım: Duvar ve yazı mesajları dinleyen KDE servisi. Konsol çıktısını (örn. Yayın iletileri) yakalar ve bir X penceresinde basar. +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kcoreaddons kf5-kdbusaddons kf5-ki18n kf5-knotifications kf5-kpty + +isim=plasma-kwrited +surum=5.8.1 +devir=1 +_isim=kwrited + +kaynak=( http://download.kde.org/stable/plasma/$surum/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plasma-libkscreen/talimat b/talimatname/genel/p/plasma-libkscreen/talimat new file mode 100644 index 000000000..07ded9632 --- /dev/null +++ b/talimatname/genel/p/plasma-libkscreen/talimat @@ -0,0 +1,23 @@ +# Tanım: KDE ekran yönetimi yazılımı +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: cmake kf5-extra-cmake-modules qt5 kf5-kwayland + +isim=plasma-libkscreen +surum=5.8.1 +devir=1 +_isim=libkscreen + +kaynak=( http://download.kde.org/stable/plasma/$surum/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plasma-libksysguard/libksysguard-5.5.5-glibc2.23-1.patch b/talimatname/genel/p/plasma-libksysguard/libksysguard-5.5.5-glibc2.23-1.patch new file mode 100644 index 000000000..44f2c8b0a --- /dev/null +++ b/talimatname/genel/p/plasma-libksysguard/libksysguard-5.5.5-glibc2.23-1.patch @@ -0,0 +1,12 @@ +diff -Naur libksysguard-5.5.5-orig/signalplotter/ksignalplotter.cpp libksysguard-5.5.5/signalplotter/ksignalplotter.cpp +--- libksysguard-5.5.5-orig/signalplotter/ksignalplotter.cpp 2016-03-01 14:37:26.000000000 +0100 ++++ libksysguard-5.5.5/signalplotter/ksignalplotter.cpp 2016-03-17 20:26:35.069995580 +0100 +@@ -18,7 +18,7 @@ + along with this program. If not, see <http://www.gnu.org/licenses/>. + + */ +- ++using namespace std; + #ifdef GRAPHICS_SIGNAL_PLOTTER + #define KSignalPlotter KGraphicsSignalPlotter + #define KSignalPlotterPrivate KGraphicsSignalPlotterPrivate diff --git a/talimatname/genel/p/plasma-libksysguard/talimat b/talimatname/genel/p/plasma-libksysguard/talimat new file mode 100644 index 000000000..28f97e404 --- /dev/null +++ b/talimatname/genel/p/plasma-libksysguard/talimat @@ -0,0 +1,25 @@ +# Tanım: Görev yönetimi ve sistem izleme kitaplığı +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kauth kf5-kcompletion kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-ki18n kf5-kwidgetsaddons kf5-kwindowsystem kf5-kiconthemes kf5-plasma-framework + +isim=plasma-libksysguard +surum=5.8.1 +devir=1 +_isim=libksysguard + +kaynak=( http://download.kde.org/stable/plasma/$surum/${_name}-$surum.tar.xz + libksysguard-5.5.5-glibc2.23-1.patch ) + +derle() { +cd ${_name}-$surum +patch -Np1 -i ../libksysguard-5.5.5-glibc2.23-1.patch +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plasma-milou/talimat b/talimatname/genel/p/plasma-milou/talimat new file mode 100644 index 000000000..a97169ff0 --- /dev/null +++ b/talimatname/genel/p/plasma-milou/talimat @@ -0,0 +1,23 @@ +# Tanım: Baloo'nun üzerine kurulmuş özel bir arama uygulaması +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kconfig kf5-kcoreaddons kf5-kdeclarative kf5-ki18n kf5-krunner kf5-kservice kf5-plasma-framework + +isim=plasma-milou +surum=5.8.1 +devir=1 +_isim=milou + +kaynak=( http://download.kde.org/stable/plasma/$surum/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plasma-nm/talimat b/talimatname/genel/p/plasma-nm/talimat new file mode 100644 index 000000000..3b6dfb024 --- /dev/null +++ b/talimatname/genel/p/plasma-nm/talimat @@ -0,0 +1,22 @@ +# Tanım: Ağ bağlantılarını yönetmek için QML'de yazılmış bir plazma uygulaması +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-kcompletion kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-kdbusaddons kf5-kdeclarative kf5-kdelibs4support kf5-ki18n kf5-kiconthemes kf5-kio kf5-kitemviews kf5-knotifications kf5-kservice kf5-kwallet kf5-kwidgetsaddons kf5-kwindowsystem kf5-kxmlgui kf5-networkmanager-qt kf5-plasma-framework kf5-solid qca-qt5 kf5-modemmanager-qt mobile-broadband-provider-info + +isim=plasma-nm +surum=5.8.1 +devir=1 + +kaynak=( http://download.kde.org/stable/plasma/$surum/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plasma-oxygen/talimat b/talimatname/genel/p/plasma-oxygen/talimat new file mode 100644 index 000000000..3d3db821f --- /dev/null +++ b/talimatname/genel/p/plasma-oxygen/talimat @@ -0,0 +1,22 @@ +# Tanım: KDE Oxygen stili +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk@hotmail.com +# Gerekler: kf5-frameworkintegration kf5-kcmutils kf5-kcompletion kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-kguiaddons kf5-ki18n kf5-kwidgetsaddons kf5-kwindowsystem plasma-kdecoration libxcb + +isim=plasma-oxygen +surum=5.8.1 +devir=1 +_isim=oxygen + +kaynak=( http://download.kde.org/stable/plasma/$surum/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plasma-pa/talimat b/talimatname/genel/p/plasma-pa/talimat new file mode 100644 index 000000000..cdc627da5 --- /dev/null +++ b/talimatname/genel/p/plasma-pa/talimat @@ -0,0 +1,22 @@ +# Tanım: PulseAudio'yu kullanarak ses hacmi yönetimi için plazma uygulaması +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk@hotmail.com +# Gerekler: kf5-plasma-framework kf5-kcoreaddons kf5-kdeclarative kf5-kglobalaccel kf5-ki18n libcanberra pulseaudio qt5 + +isim=plasma-pa +surum=5.8.1 +devir=1 + +kaynak=( http://download.kde.org/stable/plasma/$surum/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plasma-polkit-kde-agent/talimat b/talimatname/genel/p/plasma-polkit-kde-agent/talimat new file mode 100644 index 000000000..1ef2ffba9 --- /dev/null +++ b/talimatname/genel/p/plasma-polkit-kde-agent/talimat @@ -0,0 +1,25 @@ +# Tanım: Program, KDE için bir polkit kimlik doğrulama arayüzü sağlar. +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk@hotmail.com +# Gerekler: kf5-kcoreaddons kf5-kcrash kf5-kdbusaddons kf5-ki18n kf5-knotifications kf5-kwidgetsaddons kf5-kwindowsystem kf5-kiconthemes polkit-qt5 + +isim=plasma-polkit-kde-agent +surum=5.8.1 +devir=1 +_isim=polkit-kde-agent + +kaynak=( http://download.kde.org/stable/plasma/$surum/${_name}-1-$surum.tar.xz) + +derle() { +cd ${_name}-1-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -DLIBEXEC_INSTALL_DIR=lib/polkit-kde \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/p/plasma-powerdevil/talimat b/talimatname/genel/p/plasma-powerdevil/talimat new file mode 100644 index 000000000..3a2c0c7fe --- /dev/null +++ b/talimatname/genel/p/plasma-powerdevil/talimat @@ -0,0 +1,23 @@ +# Tanım: Bir Plazma Kabuğunun güç tüketimi ayarlarını yönetir +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk@hotmail.com +# Gerekler: plasma-workspace kf5-kauth polkit-qt5 kf5-kcompletion kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-kdbusaddons kf5-kdelibs4support kf5-kglobalaccel kf5-ki18n kf5-kidletime kf5-kio kf5-knotifications kf5-knotifyconfig kf5-kservice kf5-kwidgetsaddons kf5-kxmlgui kf5-solid plasma-libkscreen plasma-workspace kf5-bluez-qt + +isim=plasma-powerdevil +surum=5.8.1 +devir=1 +_isim=powerdevil + +kaynak=( http://download.kde.org/stable/plasma/$surum/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plasma-sddm-kcm/talimat b/talimatname/genel/p/plasma-sddm-kcm/talimat new file mode 100644 index 000000000..d153112cf --- /dev/null +++ b/talimatname/genel/p/plasma-sddm-kcm/talimat @@ -0,0 +1,24 @@ +# Tanım: SDDM için KDE Yapılandırma Modülü +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk@hotmail.com +# Gerekler: kf5-extra-cmake-modules sddm qt5 kf5-kio kf5-kauth kf5-kconfigwidgets kf5-kcoreaddons kf5-ki18n kf5-kxmlgui xorg-libx11 xcb-util-image libxcb xorg-libxcursor + +isim=plasma-sddm-kcm +surum=5.8.1 +devir=1 +_isim=sddm-kcm + +kaynak=( http://download.kde.org/stable/plasma/$surum/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DKDE_INSTALL_LIBDIR=lib \ + -DKDE_INSTALL_SYSCONFDIR=/etc \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plasma-sdk/talimat b/talimatname/genel/p/plasma-sdk/talimat new file mode 100644 index 000000000..ddb36e779 --- /dev/null +++ b/talimatname/genel/p/plasma-sdk/talimat @@ -0,0 +1,23 @@ +# Tanım: Plazma gelişimi için yararlı uygulamalar +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk@hotmail.com +# Gerekler: qt5-webkit kf5-karchive kf5-kcompletion kf5-kconfigwidgets kf5-kcoreaddons kf5-kdbusaddons kf5-kdeclarative kf5-ki18n kf5-kiconthemes kf5-kio kf5-knewstuff kf5-kpackage kf5-kservice kf5-ktexteditor kf5-kwidgetsaddons kf5-plasma-framework kf5-kitemmodels + +isim=plasma-sdk +surum=5.8.1 +devir=1 + +kaynak=( http://download.kde.org/stable/plasma/$surum/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +mkdir build +cd build +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev .. +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plasma-systemsettings/talimat b/talimatname/genel/p/plasma-systemsettings/talimat new file mode 100644 index 000000000..29490a650 --- /dev/null +++ b/talimatname/genel/p/plasma-systemsettings/talimat @@ -0,0 +1,23 @@ +# Tanım: KDE sistem ayarları +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk@hotmail.com +# Gerekler: kf5-kauth kf5-kcmutils kf5-kcompletion kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-kdbusaddons kf5-khtml kf5-ki18n kf5-kiconthemes kf5-kio kf5-kitemviews kf5-kservice kf5-kwidgetsaddons kf5-kwindowsystem kf5-kxmlgui + +isim=plasma-systemsettings +surum=5.8.1 +devir=1 +_isim=systemsettings + +kaynak=( http://download.kde.org/stable/plasma/$surum/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plasma-user-manager/talimat b/talimatname/genel/p/plasma-user-manager/talimat new file mode 100644 index 000000000..958a0cdfc --- /dev/null +++ b/talimatname/genel/p/plasma-user-manager/talimat @@ -0,0 +1,23 @@ +# Tanım: Sistem kullanıcılarınızı yönetmek için basit bir sistem ayarları modülü +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk@hotmail.com +# Gerekler: accountsservice libpwquality kf5-kconfigwidgets kf5-kcoreaddons kf5-kdelibs4support kf5-ki18n kf5-kiconthemes kf5-kio kf5-kwidgetsaddons qt5 + +isim=plasma-user-manager +surum=5.8.1 +devir=1 +_isim=user-manager + +kaynak=( http://download.kde.org/stable/plasma/$surum/${_name}-$surum.tar.xz) + +derle() { +cd ${_name}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plasma-workspace-wallpapers/talimat b/talimatname/genel/p/plasma-workspace-wallpapers/talimat new file mode 100644 index 000000000..fde7dabbe --- /dev/null +++ b/talimatname/genel/p/plasma-workspace-wallpapers/talimat @@ -0,0 +1,25 @@ +# Tanım: Plazma Çalışma Alanı için ilave duvar kağıtları +# URL: https://www.kde.org/ +# Paketçi: alihan-oztruk@hotmail.com +# Gerekler: qt5 kf5-extra-cmake-modules + +isim=plasma-workspace-wallpapers +surum=5.8.1 +devir=1 + +kaynak=( http://download.kde.org/stable/plasma/$surum/$isim-$surum.tar.xz) + +_isim=plasma-workspace-wallpapers +devir=1 + +derle() { +cd $isim-$surum +cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/p/plasma-workspace/kscreensaver.pam b/talimatname/genel/p/plasma-workspace/kscreensaver.pam new file mode 100644 index 000000000..18791e0b6 --- /dev/null +++ b/talimatname/genel/p/plasma-workspace/kscreensaver.pam @@ -0,0 +1 @@ +auth required pam_unix_auth.so diff --git a/talimatname/genel/p/plasma-workspace/talimat b/talimatname/genel/p/plasma-workspace/talimat new file mode 100644 index 000000000..18aa91964 --- /dev/null +++ b/talimatname/genel/p/plasma-workspace/talimat @@ -0,0 +1,44 @@ +# Tanım: KDE Plasma çalışma alanı +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk@hotmail.com +# Gerekler: consolekit2 kf5-baloo kf5-kdesu kf5-kdewebkit kf5-kjsembed kf5-knotifyconfig kf5-krunner plasma-kwin kf5-kxmlrpcclient plasma-libkscreen plasma-libksysguard kf5-networkmanager-qt kf5-ktexteditor kf5-kwayland libdbusmenu-qt5 pm-utils gvfs plasma-kscreenlocker plasma-breeze plasma-kactivitymanagerd kholidays + +isim=plasma-workspace +surum=5.8.1 +devir=1 + +kaynak=( http://download.kde.org/stable/plasma/$surum/$isim-$surum.tar.xz + kscreensaver.pam) + +derle() { +cd $isim-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install + +sed 's|qtpaths|qtpaths-qt5|' -i $PKG/usr/bin/startkde +sed 's|qtpaths|qtpaths-qt5|' -i $PKG/usr/bin/startplasmacompositor + +mkdir -p $PKG/etc/pam.d + +cat > $PKG/etc/pam.d/kde << "EOF" +# Begin /etc/pam.d/kde + +auth include system-auth +account include system-account +password include system-password +session include system-session + +# End /etc/pam.d/kde +EOF + +install -v -dm755 $PKG/usr/share/xsessions +ln -sfv /usr/share/xsessions/plasma.desktop $PKG/usr/share/xsessions/kf5-plasma.desktop + +install -D -m644 $SRC/kscreensaver.pam $PKG/etc/pam.d/kscreensaver +} diff --git a/talimatname/genel/p/plasma/talimat b/talimatname/genel/p/plasma/talimat new file mode 100644 index 000000000..4e03c8b65 --- /dev/null +++ b/talimatname/genel/p/plasma/talimat @@ -0,0 +1,15 @@ +# Tanım: This package installs KDE Plasma 5 +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: plasma-bluedevil plasma-breeze plasma-breeze-gtk plasma-desktop plasma-integration plasma-kactivitymanagerd plasma-kde-cli-tools plasma-kdecoration plasma-kde-gtk-config plasma-kdeplasma-addons plasma-kgamma5 plasma-khotkeys plasma-kinfocenter plasma-kmenuedit plasma-kscreen plasma-kscreenlocker plasma-ksshaskpass plasma-ksysguard plasma-kwallet-pam plasma-kwayland-integration plasma-kwin plasma-kwrited plasma-libkscreen plasma-libksysguard plasma-milou plasma-nm plasma-oxygen plasma-pa plasma-polkit-kde-agent plasma-powerdevil plasma-sddm-kcm plasma-sdk plasma-systemsettings plasma-user-manager plasma-workspace plasma-workspace-wallpapers + +isim=plasma +surum=5.8.1 +devir=1 + +kaynak=(talimat) + +derle() { +echo "KDE Plasma 5" +} + diff --git a/talimatname/genel/p/plib/talimat b/talimatname/genel/p/plib/talimat new file mode 100644 index 000000000..a398ebb53 --- /dev/null +++ b/talimatname/genel/p/plib/talimat @@ -0,0 +1,17 @@ +# Tanım: Taşınabilir oyun kütüphaneler takımı +# URL: http://plib.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: freeglut xorg-libxmu + +isim=plib +surum=1.8.5 +devir=1 +kaynak=(http://plib.sourceforge.net/dist/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --with-x + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/pluma/pluma.kur-kos b/talimatname/genel/p/pluma/pluma.kur-kos new file mode 100755 index 000000000..3b2f1e8c0 --- /dev/null +++ b/talimatname/genel/p/pluma/pluma.kur-kos @@ -0,0 +1,3 @@ +/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas + +/usr/bin/update-desktop-database diff --git a/talimatname/genel/p/pluma/talimat b/talimatname/genel/p/pluma/talimat new file mode 100644 index 000000000..78dbadae0 --- /dev/null +++ b/talimatname/genel/p/pluma/talimat @@ -0,0 +1,26 @@ +# Tanım: MATE için güçlü bir metin editörü +# URL: http://www.mate-desktop.org/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: intltool itstool gobject-introspection iso-codes gtksourceview3 libpeas +# Grup: mate + +isim=pluma +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + sed -i 's/python/python2/' plugins/externaltools/data/switch-c.tool.in + PYTHON=/usr/bin/python2 ./configure \ + --prefix=/usr \ + --libexecdir=/usr/lib/$isim \ + --enable-gtk-doc=no \ + --enable-python + + #https://bugzilla.gnome.org/show_bug.cgi?id=656231 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/plymouth/plymouthd.conf b/talimatname/genel/p/plymouth/plymouthd.conf new file mode 100644 index 000000000..b744c958d --- /dev/null +++ b/talimatname/genel/p/plymouth/plymouthd.conf @@ -0,0 +1,3 @@ +# Administrator customizations go in this file +#[Daemon] +Theme=tribar diff --git a/talimatname/genel/p/plymouth/talimat b/talimatname/genel/p/plymouth/talimat new file mode 100644 index 000000000..b16130237 --- /dev/null +++ b/talimatname/genel/p/plymouth/talimat @@ -0,0 +1,46 @@ +# Tanım: Kernel modulleri desteğine sahip bir grafik önyükleme başlatma ekranı +# URL: http://www.freedesktop.org/wiki/Software/Plymouth +# Paketçi: milisarge +# Gerekler: xorg-libdrm pango docbook-xsl gtk2 + +isim=plymouth +surum=0.8.8 +devir=1 + +#kaynak=(https://www.freedesktop.org/software/plymouth/releases/$isim-$surum.tar.xz +kaynak=(http://www.freedesktop.org/software/$isim/releases/$isim-$surum.tar.bz2 + https://raw.githubusercontent.com/yakar/milis-linux-wallpapers/master/milis-linux-tree.png + plymouthd.conf) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --exec-prefix=/usr \ + --libdir=/usr/lib \ + --libexecdir=/usr/lib \ + --infodir=/usr/info \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --enable-tracing \ + --without-rhgb-compat-link \ + --with-gdm-autostart-file=yes \ + --without-system-root-install \ + --program-prefix="" \ + --program-suffix="" \ + --with-logo=/usr/share/plymouth/milis.png \ + --enable-gtk --enable-gdm-transition --enable-pango \ + --enable-systemd-integration=no \ + --disable-documentation + make || return 1 + + make install DESTDIR=$PKG || exit 1 + + rm -f "$PKG"/usr/lib/plymouth/*.la + #rm -rf $PKG/*.wants + + install -Dm644 "$SRC/milis-linux-tree.png" "$PKG/usr/share/plymouth/milis.png" + install -Dm644 "$SRC/plymouthd.conf" "$PKG/etc/plymouth/plymouthd.conf" + cd /sources/milis.git/ayarlar/servisler + make DESTDIR=$PKG kur-plymouth +} diff --git a/talimatname/genel/p/pm-quirks/talimat b/talimatname/genel/p/pm-quirks/talimat new file mode 100644 index 000000000..5c631d8cf --- /dev/null +++ b/talimatname/genel/p/pm-quirks/talimat @@ -0,0 +1,15 @@ +# Tanım: Pm-utils, askıya alma ve HAL adına devam etmeyi içeren küçük bir komut koleksiyonudur. +# URL: http://pm-utils.freedesktop.org/wiki/ +# Paketçi: milisarge +# Gerekler: + +isim=pm-quirks +surum=20100619 +devir=1 + +kaynak=(http://pm-utils.freedesktop.org/releases/pm-quirks-${surum}.tar.gz) + +derle() { + install -m755 -d "${PKG}/usr/lib/pm-utils/video-quirks" + install -m644 video-quirks/*.quirkdb "${PKG}/usr/lib/pm-utils/video-quirks/" +} diff --git a/talimatname/genel/p/pm-utils/talimat b/talimatname/genel/p/pm-utils/talimat new file mode 100644 index 000000000..d2651c197 --- /dev/null +++ b/talimatname/genel/p/pm-utils/talimat @@ -0,0 +1,35 @@ +# Tanım: Askıya alma ve hazırda bekletme güç yönetimi için yardımcı programlar ve komut dosyaları +# URL: http://pm-utils.freedesktop.org +# Paketçi: milisarge +# Gerekler: pm-quirks + +isim=pm-utils +surum=1.4.1 +devir=1 + +kaynak=(http://pm-utils.freedesktop.org/releases/pm-utils-${surum}.tar.gz + http://downloads.nutyx.org/files/patchs/$isim/02-logging-append.patch + http://downloads.nutyx.org/files/patchs/$isim/12-fix-intel-audio-powersave-hook.patch + http://downloads.nutyx.org/files/patchs/$isim/13-49bluetooth-sync.patch + http://downloads.nutyx.org/files/patchs/$isim/14-disable-sata-alpm.patch) + +derle() { + cd $isim-$surum + patch -Np1 -i "${SRC}/02-logging-append.patch" + patch -Np1 -i "${SRC}/12-fix-intel-audio-powersave-hook.patch" + patch -Np1 -i "${SRC}/13-49bluetooth-sync.patch" + patch -Np1 -i "${SRC}/14-disable-sata-alpm.patch" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var + make + make DESTDIR="$PKG" install + + rm -f "${PKG}/usr/lib/pm-utils/sleep.d/55NetworkManager" + + rm -f "${PKG}/usr/lib/pm-utils/power.d/"{harddrive,disable_wol} + + rm -fr "${PKG}/usr/share/doc" +} + + diff --git a/talimatname/genel/p/podofo/talimat b/talimatname/genel/p/podofo/talimat new file mode 100644 index 000000000..8d268d634 --- /dev/null +++ b/talimatname/genel/p/podofo/talimat @@ -0,0 +1,25 @@ +# Tanım: C ++ kütüphanesinin PDF dosya formatıyla çalışması için. +# URL: http://podofo.sourceforge.net +# Paketçi: milisarge +# Gerekler: cmake xorg-fontconfig freetype libidn libpng libtiff lua51 + +isim=podofo +surum=0.9.5 +devir=1 + +kaynak=(http://downloads.sourceforge.net/$isim/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + mkdir build + cd build + cmake -DCMAKE_INSTALL_PREFIX=/usr .. \ + -DFREETYPE_INCLUDE_DIR=/usr/include/freetype2 ..\ + -DLUA_INCLUDE_DIR=/usr/include/lua5.1 .. \ + -DPODOFO_BUILD_SHARED=1 \ + -DPODOFO_HAVE_JPEG_LIB=1 \ + -DPODOFO_HAVE_PNG_LIB=1 \ + -DPODOFO_HAVE_TIFF_LIB=1 + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/poedit/talimat b/talimatname/genel/p/poedit/talimat new file mode 100644 index 000000000..568896375 --- /dev/null +++ b/talimatname/genel/p/poedit/talimat @@ -0,0 +1,19 @@ +# Tanım: Çapraz platform gettext katalogları (.po dosyaları) editörü +# URL: http://www.poedit.net/ +# Paketçi: Cihan_Alkan +# Gerekler: boost gtkspell wxgtk lucenepp +# Grup: geliştirme + +isim=poedit +surum=2.0.5 +devir=1 +kaynak=(https://github.com/vslavik/poedit/releases/download/v$surum-oss/poedit-${surum}.tar.gz) + +derle() { + cd "${SRC}"/${isim}-${surum} + ./configure --with-gtk=gtk3 \ + --prefix=/usr --libexecdir=/usr/lib/poedit --with-wx-config=/usr/bin/wx-config + make CPPFLAGS+=' -DUCHAR_TYPE=uint16_t' + make DESTDIR="${PKG}" install + install -Dm644 COPYING "${PKG}"/usr/share/licenses/${isim}/LICENSE +} diff --git a/talimatname/genel/p/polkit-gnome/talimat b/talimatname/genel/p/polkit-gnome/talimat new file mode 100644 index 000000000..8fdf09997 --- /dev/null +++ b/talimatname/genel/p/polkit-gnome/talimat @@ -0,0 +1,30 @@ +# Tanım: GNOME için eski polkit kimlik doğrulama aracı +# URL: http://hal.freedesktop.org/docs/polkit-gnome +# Paketçi: milisarge +# Gerekler: polkit gtk3 + +isim=polkit-gnome +surum=0.105 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/0.105/$isim-$surum.tar.xz) +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--libexecdir=/usr/lib/polkit-gnome +make +make DESTDIR=$PKG install +mkdir -p $PKG/etc/xdg/autostart +cat > $PKG/etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop << "EOF" +[Desktop Entry] +Name=PolicyKit Authentication Agent +Comment=PolicyKit Authentication Agent +Exec=/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 +Terminal=false +Type=Application +Categories= +NoDisplay=true +OnlyShowIn=GNOME;XFCE;Unity; +AutostartCondition=GNOME3 unless-session gnome +EOF +} diff --git a/talimatname/genel/p/polkit-qt5/talimat b/talimatname/genel/p/polkit-qt5/talimat new file mode 100644 index 000000000..7dd911a1a --- /dev/null +++ b/talimatname/genel/p/polkit-qt5/talimat @@ -0,0 +1,21 @@ +# Tanım: Geliştiricilerin güzel bir Qt tarzı API ile PolicyKit API'sine erişmelerini sağlayan bir kütüphane +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: polkit qt5 + +isim=polkit-qt5 +devir=1 +surum=0.112.0 +_isim=polkit-qt-1 + +kaynak=(http://download.kde.org/stable/apps/KDE4.x/admin/${_name}-$surum.tar.bz2) + +derle() { +cd ${_name}-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_LIBDIR=lib \ + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/polkit/polkit.okubeni b/talimatname/genel/p/polkit/polkit.okubeni new file mode 100644 index 000000000..d65f3e4f7 --- /dev/null +++ b/talimatname/genel/p/polkit/polkit.okubeni @@ -0,0 +1,4 @@ +Si necessaire faites en root: +groupadd -fg 27 polkitd +useradd -c "PolicyKit Daemon Owner" -d /etc/polkit-1 -u 27 \ +-g polkitd -s /bin/false polkitd diff --git a/talimatname/genel/p/polkit/talimat b/talimatname/genel/p/polkit/talimat new file mode 100644 index 000000000..fe1bad696 --- /dev/null +++ b/talimatname/genel/p/polkit/talimat @@ -0,0 +1,34 @@ +# Tanım: Sistem genelinde ayrıcalıkları kontrol etmek için uygulama geliştirme araç seti +# URL: http://hal.freedesktop.org/docs/polkit +# Paketçi: milisarge +# Gerekler: glib js1 gobject-introspection intltool libxslt docbook-xsl + +isim=polkit +surum=0.113 +devir=1 + +kaynak=(http://www.freedesktop.org/software/$isim/releases/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum + +./configure --prefix=/usr \ +--sysconfdir=/etc \ +--mandir=/usr/share/man \ +--localstatedir=/var \ +--enable-libsystemd-login=no \ +--disable-static +make||make -j1 +make DESTDIR=$PKG install + +cat > $PKG/etc/pam.d/polkit-1 << "EOF" +# Begin /etc/pam.d/polkit-1 + +auth include system-auth +account include system-account +password include system-password +session include system-session + +# End /etc/pam.d/polkit-1 +EOF +} diff --git a/talimatname/genel/p/polyml/talimat b/talimatname/genel/p/polyml/talimat new file mode 100644 index 000000000..d3163f2ff --- /dev/null +++ b/talimatname/genel/p/polyml/talimat @@ -0,0 +1,17 @@ +# Tanım: standart ML derleyicisinin güncel gerçeklemesi +# URL: http://www.polyml.org +# Paketçi: milisarge +# Gerekler: libffi + +isim=polyml +surum=5.7 +devir=1 +kaynak=(https://github.com/${isim}/${isim}/archive/v${surum}.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd "$SRC/$isim-$surum" + ./configure --prefix=/usr --without-x --with-system-libffi --with-gmp --enable-shared + make + make -k check + make DESTDIR="$PKG/" install +} diff --git a/talimatname/genel/p/ponyc/talimat b/talimatname/genel/p/ponyc/talimat new file mode 100644 index 000000000..6a86a3268 --- /dev/null +++ b/talimatname/genel/p/ponyc/talimat @@ -0,0 +1,34 @@ +# Tanım: Aktör modellemeye dayanan yüksek performanslı dil. +# URL: http://ponylang.org/ +# Paketçi: milisarge +# Gerekler: llvm pcre2 binutils-gold +# Grup: geliştirme + +isim=ponyc +surum=0.21.2 +devir=1 +kaynak=(https://github.com/ponylang/ponyc/archive/$surum.tar.gz::$isim-$surum.tar.gz + https://github.com/winksaville/ponyc/commit/64b64a21b1be70caf4202eb1b1fa22dac1bd6575.patch) + +derle() { + cd ponyc-$surum + sed -i 's/-Werror //' Makefile + patch -p1 -i ../64b64a21b1be70caf4202eb1b1fa22dac1bd6575.patch + make config=release prefix=/usr arch=x86-64 verbose= default_pic=true + mkdir docs + build/release/ponyc packages/stdlib -rexpr -g -o docs + make config=release prefix=/usr arch=x86-64 verbose= default_pic=true test + install -Dm755 build/release/ponyc "$PKG"/usr/lib/pony/"$surum"/bin/ponyc + install -Dm644 build/release/libponyrt-pic.a "$PKG"/usr/lib/libponyrt-pic.a + install -Dm644 build/release/libponyc.a "$PKG"/usr/lib/libponyc.a + install -Dm644 src/libponyrt/pony.h "$PKG"/usr/include/pony.h + # Ponyc is designed to read its standard packages from the same directory. + install -dm755 "$PKG"/usr/bin + ln -sf /usr/lib/pony/"$surum"/bin/ponyc "$PKG"/usr/bin + cp -dr --no-preserve=ownership packages "$PKG"/usr/lib/pony/"$surum" + # Let's include the examples as documentation is scarce. + install -dm755 "$PKG"/usr/share/doc/pony + cp -dr --no-preserve=ownership examples "$PKG"/usr/share/doc/pony + cp -dr docs/* "$PKG"/usr/share/doc/pony + install -Dm644 LICENSE "$PKG"/usr/share/licenses/"$isim"/LICENSE +} diff --git a/talimatname/genel/p/poppler-glib/talimat b/talimatname/genel/p/poppler-glib/talimat new file mode 100644 index 000000000..47fb4a364 --- /dev/null +++ b/talimatname/genel/p/poppler-glib/talimat @@ -0,0 +1,34 @@ +# Tanım:Xpdf 3.0'a dayalı PDF işleme kütüphanesi +# URL: http://poppler.freedesktop.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: poppler xorg-libxxf86vm libpng xorg-fontconfig libjpeg-turbo cairo libxml2 openjpeg lcms lcms2 glib + +isim=poppler-glib +surum=0.46.0 +devir=1 + +kaynak=(http://poppler.freedesktop.org/poppler-$surum.tar.xz) + +derle() { +cd poppler-$surum + +CXXFLAGS="-std=c++11" + +./configure --prefix=/usr \ + --sysconfdir=/etc \ + --disable-static \ + --disable-poppler-qt4 \ + --disable-poppler-qt5 \ + --enable-poppler-glib \ + --disable-xpdf-headers + +make +make -C poppler DESTDIR=$PKG install-libLTLIBRARIES +make -C glib DESTDIR=$PKG install +install -m755 -d $PKG/usr/lib/pkgconfig +install -m644 poppler-glib.pc $PKG/usr/lib/pkgconfig/ + + +rm -f $PKG/usr/lib/libpoppler.* +rm -rf $PKG/usr/share/gtk-doc/html/poppler/ +} diff --git a/talimatname/genel/p/poppler-qt4/talimat b/talimatname/genel/p/poppler-qt4/talimat new file mode 100644 index 000000000..bb786b14b --- /dev/null +++ b/talimatname/genel/p/poppler-qt4/talimat @@ -0,0 +1,31 @@ +# Tanım: Xpdf 3.0'a dayalı PDF işleme kütüphanesi +# URL: http://poppler.freedesktop.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: poppler xorg-libxxf86vm libpng xorg-fontconfig libjpeg-turbo cairo libxml2 openjpeg lcms lcms2 qt4 + +isim=poppler-qt4 +surum=0.46.0 +devir=1 + +kaynak=(http://poppler.freedesktop.org/poppler-$surum.tar.xz) + +derle() { + cd poppler-$surum + + CXXFLAGS="-std=c++11" + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --disable-static \ + --enable-qt4 \ + --disable-qt5 \ + --disable-glib \ + --enable-xpdf-headers + make + make -C poppler DESTDIR=$PKG install-libLTLIBRARIES + make -C qt4 DESTDIR=$PKG install + + mkdir -p $PKG/usr/lib/pkgconfig + install -m644 poppler-qt4.pc $PKG/usr/lib/pkgconfig/ + rm -f $PKG/usr/lib/libpoppler.* +} diff --git a/talimatname/genel/p/poppler-qt5/talimat b/talimatname/genel/p/poppler-qt5/talimat new file mode 100644 index 000000000..da45d50d7 --- /dev/null +++ b/talimatname/genel/p/poppler-qt5/talimat @@ -0,0 +1,26 @@ +# Tanım: Xpdf 3.0'a dayalı PDF işleme kütüphanesi +# URL: http://poppler.freedesktop.org/ +# Paketçi: Cihan_Alkan +# Gerekler: poppler xorg-libxxf86vm libpng xorg-fontconfig libjpeg-turbo cairo libxml2 openjpeg lcms lcms2 qt5 +# Grup: kütüphane + +isim=poppler-qt5 +surum=0.61.1 +devir=1 + +kaynak=(http://poppler.freedesktop.org/poppler-$surum.tar.xz) + +derle() { + mkdir build + cd build + cmake ../poppler-$surum \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib \ + -DENABLE_XPDF_HEADERS=ON \ + -DENABLE_GTK_DOC=ON + make + make -C qt5 DESTDIR="${PKG}" install + install -m755 -d "${PKG}/usr/lib/pkgconfig" + install -m644 poppler-qt5.pc "${PKG}/usr/lib/pkgconfig/" +} diff --git a/talimatname/genel/p/poppler/talimat b/talimatname/genel/p/poppler/talimat new file mode 100644 index 000000000..43067d9a3 --- /dev/null +++ b/talimatname/genel/p/poppler/talimat @@ -0,0 +1,46 @@ +# Tanım: Xpdf 3.0'a dayalı PDF işleme kütüphanesi +# URL: http://poppler.freedesktop.org/ +# Paketçi: milisarge +# Gerekler: xorg-libxxf86vm libpng xorg-fontconfig libjpeg-turbo cairo libxml2 openjpeg lcms2 + +datasurum=0.4.7 +isim=poppler +surum=0.46.0 +devir=1 + +kaynak=( +http://poppler.freedesktop.org/$isim-$surum.tar.xz +http://poppler.freedesktop.org/poppler-data-$dataversion.tar.gz) + +derle() { +cd poppler-$surum + +CXXFLAGS="-std=c++11" + +./configure --prefix=/usr \ + --sysconfdir=/etc \ + --disable-static \ + --enable-build-type=release \ + --enable-cmyk \ + --enable-xpdf-headers + +make +make DESTDIR=$PKG install + +cd ../poppler-data-$dataversion +make prefix=/usr DESTDIR=$PKG install + +rm -f $PKG/usr/lib/pkgconfig/poppler-{glib,qt4,qt5}.pc +rm -f $PKG/usr/lib/poppler-{glib*,qt4*,qt5*} +rm -f $PKG/usr/lib/libpoppler-{glib*,qt4*,qt5*} + +rm -f $PKG/usr/bin/poppler-glib-demo +rm -rf $PKG/usr/include/poppler/glib/ + +rm -f $PKG/usr/bin/poppler-qt4-demo +rm -rf $PKG/usr/include/poppler/qt4/ + +rm -f $PKG/usr/bin/poppler-qt5-demo +rm -rf $PKG/usr/include/poppler/qt5/ + +} diff --git a/talimatname/genel/p/popt/talimat b/talimatname/genel/p/popt/talimat new file mode 100644 index 000000000..5a072831c --- /dev/null +++ b/talimatname/genel/p/popt/talimat @@ -0,0 +1,17 @@ +# Tanım: Bazı programlar tarafından komut satırı seçeneklerini ayrıştırmak için kullanılan popt kitaplıkları. +# URL: http://freshmeat.net/projects/popt/ +# Paketçi: milisarge +# Gerekler: + +isim=popt +surum=1.16 +devir=1 + +kaynak=(http://rpm5.org/files/popt/popt-1.16.tar.gz) + +derle() { +cd popt-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/portaudio/talimat b/talimatname/genel/p/portaudio/talimat new file mode 100644 index 000000000..cfa78bf10 --- /dev/null +++ b/talimatname/genel/p/portaudio/talimat @@ -0,0 +1,19 @@ +# Tanım: Ücretsiz, çapraz platform, açık kaynak, ses G/Ç kitaplığı +# URL: http://www.portaudio.com +# Paketçi: milisarge +# Gerekler: jack + +isim=portaudio +surum=19_20140130 +devir=1 + +kaynak=(http://www.portaudio.com/archives/pa_stable_v${surum}.tgz) + +derle() { +cd portaudio +./configure --prefix=/usr --enable-cxx +make||make -j1 +make DESTDIR=$PKG install + +install -Dm0644 LICENSE.txt $SRC/usr/share/licenses/portaudio/LICENSE.txt +} diff --git a/talimatname/genel/p/portmidi/portmidi-217-build-fix.patch b/talimatname/genel/p/portmidi/portmidi-217-build-fix.patch new file mode 100644 index 000000000..69ca37891 --- /dev/null +++ b/talimatname/genel/p/portmidi/portmidi-217-build-fix.patch @@ -0,0 +1,30 @@ +diff -rup portmidi.orig/pm_java/CMakeLists.txt portmidi/pm_java/CMakeLists.txt +--- portmidi.orig/pm_java/CMakeLists.txt 2009-11-04 16:20:44.000000000 +0100 ++++ portmidi/pm_java/CMakeLists.txt 2012-01-24 21:13:08.513182169 +0100 +@@ -15,13 +15,11 @@ if(UNIX) + add_custom_command(OUTPUT pmdefaults/PmDefaultsFrame.class + COMMAND javac -classpath . pmdefaults/PmDefaultsFrame.java + MAIN_DEPENDENCY pmdefaults/PmDefaultsFrame.java +- DEPENDS pmdefaults/PmDefaults.java +- WORKING_DIRECTORY pm_java) ++ DEPENDS pmdefaults/PmDefaults.java) + add_custom_command(OUTPUT pmdefaults/PmDefaults.class + COMMAND javac -classpath . pmdefaults/PmDefaults.java + MAIN_DEPENDENCY pmdefaults/PmDefaults.java +- DEPENDS pmdefaults/PmDefaultsFrame.java +- WORKING_DIRECTORY pm_java) ++ DEPENDS pmdefaults/PmDefaultsFrame.java) + add_custom_command(OUTPUT ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/pmdefaults.jar + COMMAND cp pmdefaults/portmusic_logo.png . + COMMAND jar cmf pmdefaults/manifest.txt pmdefaults.jar +@@ -31,8 +29,7 @@ if(UNIX) + COMMAND mv pmdefaults.jar ${CMAKE_LIBRARY_OUTPUT_DIRECTORY} + COMMAND rm portmusic_logo.png + MAIN_DEPENDENCY pmdefaults/PmDefaults.class +- DEPENDS ${PMDEFAULTS_ALL_CLASSES} +- WORKING_DIRECTORY pm_java) ++ DEPENDS ${PMDEFAULTS_ALL_CLASSES}) + add_custom_target(pmdefaults_target ALL + DEPENDS ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/pmdefaults.jar) + # message(STATUS "add_custom_target: pmdefaults.jar") + diff --git a/talimatname/genel/p/portmidi/talimat b/talimatname/genel/p/portmidi/talimat new file mode 100644 index 000000000..01e247a20 --- /dev/null +++ b/talimatname/genel/p/portmidi/talimat @@ -0,0 +1,39 @@ +# Tanım: Gerçek zamanlı MIDI giriş/çıkış için platform bağımsız kütüphane +# URL: http://portmedia.sourceforge.net +# Paketçi: milisarge +# Gerekler: cmake glib alsa-lib openjdk + +isim=portmidi +surum=217 +devir=1 + +kaynak=(http://downloads.sourceforge.net/project/portmedia/$isim/$surum/$isim-src-$surum.zip + portmidi-217-build-fix.patch) + +derle() { + + cd $isim + sed -i "s#/usr/local#/usr#" */CMakeLists.txt pm_python/setup.py + mkdir -p pm_java/Release + JAVA_HOME="/opt/jdk" + export PATH=$PATH:$JAVA_HOME/bin + patch -p1 -i $SRC/portmidi-217-build-fix.patch + + cmake . \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_CXX_FLAGS="-O2 -fPIC" \ + -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=$PKG/usr/bin \ + -DJAVA_AWT_INCLUDE_PATH="$JAVA_HOME/include" \ + -DJAVA_INCLUDE_PATH="$JAVA_HOME/include" \ + -DJAVA_INCLUDE_PATH2="$JAVA_HOME/include/linux" \ + -DJAVA_JVM_LIBRARY="$JAVA_HOME/jre/lib/amd64/server/libjvm.so" \ + -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=Release \ + -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=Release \ + -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=Release + make -j1 + make DESTDIR=$PKG install + + # Fix missing symlink for libporttime.so (FS#21528) + ln -s libportmidi.so $PKG/usr/lib/libporttime.so +} + diff --git a/talimatname/genel/p/postfix/postfix.kos-kur b/talimatname/genel/p/postfix/postfix.kos-kur new file mode 100644 index 000000000..0f601fd02 --- /dev/null +++ b/talimatname/genel/p/postfix/postfix.kos-kur @@ -0,0 +1,5 @@ +groupadd -g 32 postfix +groupadd -g 33 postdrop +useradd -c "Postfix Daemon User" -d /var/spool/postfix -g postfix \ + -s /bin/false -u 32 postfix +chown -v postfix:postfix /var/mail diff --git a/talimatname/genel/p/postfix/talimat b/talimatname/genel/p/postfix/talimat new file mode 100644 index 000000000..dad65d7a9 --- /dev/null +++ b/talimatname/genel/p/postfix/talimat @@ -0,0 +1,38 @@ +# Tanım: Ana makinenizin diğer kullanıcılarına e-posta göndermek için Posta Aktarma Aracısı (MTA) +# URL: http://www.postfix.org +# Paketçi: milisarge +# Gerekler: db cyrus-sasl openssl icu mariadb openldap pcre postgresql sqlite + +isim=postfix +surum=3.0.3 +devir=1 + +kaynak=(ftp://ftp.porcupine.org/mirrors/postfix-release/official/$isim-$surum.tar.gz) + +derle() { + + cd $isim-$surum + + source /etc/blfs-bootscripts + wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2 + tar xvf $scripts-$scriptsversion.tar.bz2 + + + + make CCARGS="-DUSE_TLS -I/usr/include/openssl/ \ + -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl" \ + AUXLIBS="-lssl -lcrypto -lsasl2" \ + makefiles + + make + + sh postfix-install -non-interactive \ + daemon_directory=$PKG/usr/lib/postfix \ + manpage_directory=$PKG/usr/share/man \ + html_directory=$PKG/usr/share/doc/postfix-3.0.3/html \ + readme_directory=$PKG/usr/share/doc/postfix-3.0.3/readme + + cd $scripts-$scriptsversion + make DESTDIR=$PKG install-postfix + +} diff --git a/talimatname/genel/p/postgresql/postgresql.kurulum b/talimatname/genel/p/postgresql/postgresql.kurulum new file mode 100644 index 000000000..2bcc7f3fd --- /dev/null +++ b/talimatname/genel/p/postgresql/postgresql.kurulum @@ -0,0 +1,24 @@ +install -v -dm700 /srv/pgsql/data && +install -v -dm755 /run/postgresql && + +groupadd -g 41 postgres && +useradd -c "PostgreSQL Server" -g postgres -d /srv/pgsql/data \ + -u 41 postgres && + +chown -Rv postgres:postgres /srv/pgsql /run/postgresql + +su - postgres -c '/usr/bin/initdb -D /srv/pgsql/data' + +su - postgres -c '/usr/bin/postgres -D /srv/pgsql/data > \ + /srv/pgsql/data/logfile 2>&1 &' + +su - postgres -c '/usr/bin/createdb test' && +echo "create table t1 ( name varchar(20), state_province varchar(20) );" \ + | (su - postgres -c '/usr/bin/psql test ') && +echo "insert into t1 values ('Billy', 'NewYork');" \ + | (su - postgres -c '/usr/bin/psql test ') && +echo "insert into t1 values ('Evanidus', 'Quebec');" \ + | (su - postgres -c '/usr/bin/psql test ') && +echo "insert into t1 values ('Jesse', 'Ontario');" \ + | (su - postgres -c '/usr/bin/psql test ') && +echo "select * from t1;" | (su - postgres -c '/usr/bin/psql test') diff --git a/talimatname/genel/p/postgresql/talimat b/talimatname/genel/p/postgresql/talimat new file mode 100644 index 000000000..a6bbd7292 --- /dev/null +++ b/talimatname/genel/p/postgresql/talimat @@ -0,0 +1,25 @@ +# Tanım: Gelişmiş nesne-ilişkisel veritabanı yönetim sistemi (ORDBMS). +# URL: http://www.postgresql.org/docs +# Paketçi: milisarge +# Gerekler: + +isim=postgresql +surum=9.6.3 +devir=1 +kaynak=(https://ftp.postgresql.org/pub/source/v$surum/postgresql-$surum.tar.bz2) + +derle() { + cd $isim-$surum + sed -i '/DEFAULT_PGSOCKET_DIR/s@/tmp@/run/postgresql@' src/include/pg_config_manual.h && + ./configure --prefix=/usr \ + --enable-thread-safety \ + --with-openssl + + make + make DESTDIR=$PKG install + cd doc/src/sgml + make DESTDIR=$PKG install-man + rm -rf $PKG/usr/share/doc + cd /sources/milis.git/ayarlar/servisler + make DESTDIR=$PKG kur-$isim +} diff --git a/talimatname/genel/p/ppp/ppp.kos-kur b/talimatname/genel/p/ppp/ppp.kos-kur new file mode 100644 index 000000000..d82853035 --- /dev/null +++ b/talimatname/genel/p/ppp/ppp.kos-kur @@ -0,0 +1,4 @@ +if [ -z "`grep '^pppusers:' /etc/group`" ] +then + /sbin/groupadd -g 52 pppusers +fi diff --git a/talimatname/genel/p/ppp/pppd.servis b/talimatname/genel/p/ppp/pppd.servis new file mode 100644 index 000000000..833f04897 --- /dev/null +++ b/talimatname/genel/p/ppp/pppd.servis @@ -0,0 +1,50 @@ +#!/bin/sh +# Begin $rc_base/init.d/sshd + +# Based on sysklogd script from LFS-3.1 and earlier. +# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org +# Add create user and Groups - thierryn1@hispeed.ch + +# $Id: pppd,v 1.2 2008/02/03 10:08:07 root Exp $ + +. /etc/rc.d/init.d/functions + +newgroup=pppusers +newid=52 +getent group $newgroup > /dev/null || /sbin/groupadd -g $newid $newgroup + +case "$1" in + start) + mknod /dev/ppp c 108 0 + boot_mesg "Starting PPP Daemon..." + loadproc /usr/sbin/pppd > /dev/null + ;; + + stop) + boot_mesg "Stopping PPP Daemon..." + killproc /usr/sbin/pppd + ;; + + reload) + boot_mesg "Reloading PPP Daemon..." + reloadproc /usr/sbin/pppd > /dev/null + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc /usr/sbin/pppd + ;; + + *) + echo "Usage: $0 {start|stop|reload|restart|status}" + exit 1 + ;; +esac + +# End $rc_base/init.d/sshd + diff --git a/talimatname/genel/p/ppp/talimat b/talimatname/genel/p/ppp/talimat new file mode 100644 index 000000000..8f317b9f1 --- /dev/null +++ b/talimatname/genel/p/ppp/talimat @@ -0,0 +1,24 @@ +# Tanım: dialup ağ yapılandırması için noktadan noktaya arkaplan çalışanı +# URL: http://samba.org/ppp +# Paketçi: milisarge +# Gerekler: libpcap +# Grup: ağ + +isim=ppp +surum=2.4.7 +devir=1 + +kaynak=(http://samba.org/ftp/$isim/$isim-$surum.tar.gz + pppd.servis) + +derle() { + unset MAKEFLAGS + export CFLAGS="$CFLAGS -D_GNU_SOURCE" + cd $isim-$surum + ./configure --prefix=/usr + make + make INSTROOT=$PKG install-etcppp + make INSTROOT=$PKG install + mkdir -p $PKG/etc/rc.d/init.d/ + install -m755 ../pppd.servis $PKG/etc/rc.d/init.d/pppd +} diff --git a/talimatname/genel/p/pptp/talimat b/talimatname/genel/p/pptp/talimat new file mode 100644 index 000000000..af09bbf9f --- /dev/null +++ b/talimatname/genel/p/pptp/talimat @@ -0,0 +1,18 @@ +# Tanım: Tescilli Microsoft Noktadan Noktaya Tünel Protokolü, PPTP için istemci. +# URL: http://pptpclient.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: ppp + +isim=pptp +surum=1.7.2 +devir=1 + +kaynak=(http://downloads.sourceforge.net/sourceforge/pptpclient/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + sed -i 's|BINDIR=$(DESTDIR)/usr|BINDIR=$(DESTDIR)|' Makefile + sed -i 's|/bin/ip|/sbin/ip|g' routing.c + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/premake/talimat b/talimatname/genel/p/premake/talimat new file mode 100644 index 000000000..71e367c82 --- /dev/null +++ b/talimatname/genel/p/premake/talimat @@ -0,0 +1,17 @@ +# Tanım: A simple build configuration and project generation tool using lua +# URL: http://industriousone.com/premake +# Paketçi: milisarge +# Gerekler: + +isim=premake +surum=4.3 +devir=1 +kaynak=(http://downloads.sourceforge.net/project/premake/Premake/4.3/premake-4.3-src.zip) + +derle() { + cd "$SRC/premake-$surum/build/gmake.unix" + make + cd "$SRC/premake-$surum" + install -Dm755 "bin/release/premake4" "${PKG}/usr/bin/premake4" + install -Dm644 LICENSE.txt "$PKG/usr/share/licenses/$isim/LICENSE" +} diff --git a/talimatname/genel/p/print-manager/talimat b/talimatname/genel/p/print-manager/talimat new file mode 100644 index 000000000..5a1bb7d1a --- /dev/null +++ b/talimatname/genel/p/print-manager/talimat @@ -0,0 +1,24 @@ +# Tanım: Yazıcı ayarlama aracı +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules qt5 cups kf5-kconfig kf5-kconfigwidgets kf5-kcoreaddons kf5-kdbusaddons kf5-kiconthemes kf5-ki18n kf5-kcmutils kf5-kio kf5-knotifications kf5-plasma-framework kf5-kwidgetsaddons kf5-kwindowsystem +# Grup: kde + +isim=print-manager +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/p/privoxy/privoxy.logrotate.d b/talimatname/genel/p/privoxy/privoxy.logrotate.d new file mode 100644 index 000000000..3f31b170f --- /dev/null +++ b/talimatname/genel/p/privoxy/privoxy.logrotate.d @@ -0,0 +1,9 @@ +/var/log/privoxy/logfile { + missingok + create 660 root privoxy + notifempty + compress + postrotate + /bin/kill -HUP `cat /var/run/privoxy.pid 2>/dev/null` 2> /dev/null || true + endscript +} diff --git a/talimatname/genel/p/privoxy/privoxy.sysusers b/talimatname/genel/p/privoxy/privoxy.sysusers new file mode 100644 index 000000000..fd8a377ca --- /dev/null +++ b/talimatname/genel/p/privoxy/privoxy.sysusers @@ -0,0 +1 @@ +u privoxy 42 "Privoxy" diff --git a/talimatname/genel/p/privoxy/talimat b/talimatname/genel/p/privoxy/talimat new file mode 100644 index 000000000..e28cb1a05 --- /dev/null +++ b/talimatname/genel/p/privoxy/talimat @@ -0,0 +1,62 @@ +# Tanım: A web proxy with advanced filtering capabilities. +# URL: https://www.privoxy.org +# Paketçi: milisarge +# Gerekler: pcre + +isim=privoxy +surum=3.0.26 +devir=1 +kaynak=(https://downloads.sourceforge.net/ijbswa/privoxy-$surum-stable-src.tar.gz + privoxy.logrotate.d + privoxy.sysusers) + +derle() { + cd "${SRC}/${isim}-${surum}-stable" + + autoheader + + autoconf + + ./configure --prefix=/usr --sysconfdir=/etc/privoxy --enable-compression + + make + + sed -i ' + + s+^confdir \.+confdir /etc/privoxy+ + + s+^logdir \.+logdir /var/log/privoxy+ + + s+^#\?user-manual .*+user-manual /usr/share/doc/privoxy/user-manual/+' config + + cd "${SRC}/${isim}-${surum}-stable" + + install -Dm644 "$SRC/privoxy.sysusers" "$PKG/usr/lib/sysusers.d/privoxy.conf" + + install -Dm644 "$SRC/privoxy.logrotate.d" "$PKG/etc/logrotate.d/privoxy" + + install -Dm755 {,"$PKG"/usr/bin/}privoxy + + install -Dm644 {,"$PKG"/usr/share/man/man1/}privoxy.1 + + install -d -o42 -g42 "$PKG"/var/log/privoxy + + install -d "$PKG"/etc/privoxy/ + + install -m644 config trust *.{action,filter} "$PKG"/etc/privoxy/ # -m0660 upstream + + find templates -type f -exec install -Dm644 '{}' "$PKG"/etc/privoxy/'{}' \; + + (d=$PKG/usr/share/doc/privoxy + + cd doc/webserver + + install -Dm644 {privoxy-,"$d"/}index.html + + install -m644 p_doc.css ../../{AUTHORS,README,ChangeLog} "$d"/ + + install -Dm644 {,"$d"/user-manual/}p_doc.css + + find user-manual developer-manual faq man-page \( -name '*.html' -o -name '*.jpg' \) -exec install -Dm644 '{}' "$d"/'{}' \;) + +} diff --git a/talimatname/genel/p/procmail/talimat b/talimatname/genel/p/procmail/talimat new file mode 100644 index 000000000..c15f4b536 --- /dev/null +++ b/talimatname/genel/p/procmail/talimat @@ -0,0 +1,20 @@ +# Tanım: Gelen postaları filtrelemek ve sıralamak için özerk bir posta işlemcisi +# URL: http://www.ring.gr.jp/archives/net/mail/procmail/ +# Paketçi: milisarge +# Gerekler: + +isim=procmail +surum=3.22 +devir=1 + +kaynak=(http://www.ring.gr.jp/archives/net/mail/$isim/$isim-$surum.tar.gz) + +derle() { + + cd $isim-$surum + + sed -i 's/getline/get_line/' src/*.[ch] + make BASENAME=$PKG LOCKINGTEST=$PKG/tmp MANDIR=$PKG/usr/share/man install + make BASENAME=$PKG install-suid + +} diff --git a/talimatname/genel/p/proftpd/proftpd.conf b/talimatname/genel/p/proftpd/proftpd.conf new file mode 100644 index 000000000..a5bf6bf7c --- /dev/null +++ b/talimatname/genel/p/proftpd/proftpd.conf @@ -0,0 +1,55 @@ +# This is a basic ProFTPD configuration file +# It establishes a single server and a single anonymous login. + +ServerName "ProFTPD Default Installation" +ServerType standalone +DefaultServer on + +# Port 21 is the standard FTP port. +Port 21 +# Umask 022 is a good standard umask to prevent new dirs and files +# from being group and world writable. +Umask 022 + +# To prevent DoS attacks, set the maximum number of child processes +# to 30. If you need to allow more than 30 concurrent connections +# at once, simply increase this value. Note that this ONLY works +# in standalone mode, in inetd mode you should use an inetd server +# that allows you to limit maximum number of processes per service + +MaxInstances 30 + +# Set the user and group that the server normally runs at. +User proftpd +Group proftpd + +# To cause every FTP user to be "jailed" (chrooted) into their home +# directory, uncomment this line. +#DefaultRoot ~ + + +# Normally, files should be overwritable. +<Directory /*> + AllowOverwrite on +</Directory> + +# A basic anonymous configuration, no upload directories. +<Anonymous ~proftpd> + User proftpd + Group proftpd + # Clients should be able to login with "anonymous" as well as "proftpd" + UserAlias anonymous proftpd + + # Limit the maximum number of anonymous logins + MaxClients 10 + + # 'welcome.msg' should be displayed at login, and '.message' displayed + # in each newly chdired directory. + DisplayLogin welcome.msg + DisplayChdir .message + + # Limit WRITE everywhere in the anonymous chroot + <Limit WRITE> + DenyAll + </Limit> +</Anonymous> diff --git a/talimatname/genel/p/proftpd/proftpd.kos-kur b/talimatname/genel/p/proftpd/proftpd.kos-kur new file mode 100644 index 000000000..30302f628 --- /dev/null +++ b/talimatname/genel/p/proftpd/proftpd.kos-kur @@ -0,0 +1,7 @@ +groupadd -g 46 proftpd +useradd -c proftpd -d /srv/ftp -g proftpd \ + -s /usr/bin/proftpdshell -u 46 proftpd + +install -v -d -m775 -o proftpd -g proftpd /srv/ftp +ln -v -s /bin/false /usr/bin/proftpdshell +echo /usr/bin/proftpdshell >> /etc/shells diff --git a/talimatname/genel/p/proftpd/talimat b/talimatname/genel/p/proftpd/talimat new file mode 100644 index 000000000..7149aae0c --- /dev/null +++ b/talimatname/genel/p/proftpd/talimat @@ -0,0 +1,32 @@ +# Tanım: Bir ağ üzerinden büyük dosya arşivlerine hizmet etmek için güvenli ve son derece yapılandırılabilir bir FTP arka plan programı +# URL: ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.5a.tar.gz +# Paketçi: milisarge +# Gerekler: libcap pam mariadb openssl pcre postgresql + +isim=proftpd +surum=1.3.5a +devir=1 +kaynak=(ftp://ftp.proftpd.org/distrib/source/$isim-$surum.tar.gz + proftpd.conf) + +derle() { + +cd $isim-$surum + +source /etc/blfs-bootscripts +wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2 +tar xvf $scripts-$scriptsversion.tar.bz2 + + +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/run + +make +make DESTDIR=$PKG install + +install -v -m755 -d $PKG/etc +cp -v $SRC/proftpd.conf $PKG/etc + +cd $scripts-$scriptsversion +make DESTDIR=$PKG install-proftpd + +} diff --git a/talimatname/genel/p/proj/talimat b/talimatname/genel/p/proj/talimat new file mode 100644 index 000000000..625627e11 --- /dev/null +++ b/talimatname/genel/p/proj/talimat @@ -0,0 +1,24 @@ +# Tanım: Kartografik Projeksiyonlar kütüphanesi +# URL: http://trac.osgeo.org/proj/ +# Paketçi: Cihan_Alkan +# Gerekler: +# Grup: kütüphane + +isim=proj +surum=4.9.3 +devir=1 +kaynak=(https://github.com/OSGeo/proj.4/archive/$surum.tar.gz::$isim-$surum.tar.gz + http://download.osgeo.org/proj/proj-datumgrid-1.6.zip) + +derle() { + bsdtar -p -o -C "${SRC}"/proj.4-$surum/nad -xf "${DERLEME_KAYNAKDIZIN}"/proj-datumgrid-1.6.zip + cd "${SRC}"/$isim.4-$surum + + autoreconf -if + ./configure --prefix=/usr + make + make DESTDIR="${PKG}" install + rm -rf "${PKG}"/usr/share/man + install -Dm644 COPYING "${PKG}"/usr/share/licenses/$isim/LICENSE +} + diff --git a/talimatname/genel/p/proot/talimat b/talimatname/genel/p/proot/talimat new file mode 100644 index 000000000..c0ef42113 --- /dev/null +++ b/talimatname/genel/p/proot/talimat @@ -0,0 +1,23 @@ +# Tanım: chroot,mount --bind ve binfmt_misc ayrıcalık/kurulum olmaksızın +# URL: http://proot.me +# Paketçi: Cihan_Alkan +# Gerekler: talloc python-docutils libxslt +# Grup: sistem + +isim=proot +surum=git +devir=1 +kaynak=() + +derle() { + adres="https://github.com/proot-me/PRoot" + git_indir ${adres} ${isim} + cd $SRC/${isim}/src + + make -f GNUmakefile + cd ../ + install -m755 -d "${PKG}"/usr/bin + install -m755 $SRC/${isim}/src/${isim} "${PKG}"/usr/bin + install -m755 -d "${PKG}"/usr/share/man/man1/ + install -m644 -T $SRC/${isim}/doc/proot/man.1 "${PKG}"/usr/share/man/man1/${isim}.1 +} diff --git a/talimatname/genel/p/protobuf-c/talimat b/talimatname/genel/p/protobuf-c/talimat new file mode 100644 index 000000000..a9e8a9ef7 --- /dev/null +++ b/talimatname/genel/p/protobuf-c/talimat @@ -0,0 +1,19 @@ +# Tanım: C'de protokol arabellekleri uygulaması +# URL: https://github.com/protobuf-c/protobuf-c +# Paketçi: Cihan_Alkan +# Gerekler: protobuf +# Grup: kütüphane + +isim=protobuf-c +surum=1.3.0 +devir=1 + +kaynak=(https://github.com/protobuf-c/protobuf-c/releases/download/v$surum/$isim-$surum.tar.gz) + +derle() { + cd "$isim-$surum" + ./configure --prefix=/usr --disable-static + make + make DESTDIR="$PKG" install + install -Dm644 LICENSE "$PKG/usr/share/licenses/$isim/LICENSE" +} diff --git a/talimatname/genel/p/protobuf/talimat b/talimatname/genel/p/protobuf/talimat new file mode 100644 index 000000000..46ea8c351 --- /dev/null +++ b/talimatname/genel/p/protobuf/talimat @@ -0,0 +1,17 @@ +# Tanım: Google veri değişim biçim aracı +# URL: http://code.google.com/p/protobuf/ +# Paketçi: milisarge +# Gerekler: python-setuptools clang unzip +# Grup: + +isim=protobuf +surum=3.5.1 +devir=1 + +kaynak=(https://github.com/google/protobuf/archive/v3.5.1.tar.gz::protobuf-$surum.tar.gz) +derle() { +cd ${isim}-$surum +./autogen.sh +./configure --prefix=/usr --disable-static +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/prun/talimat b/talimatname/genel/p/prun/talimat new file mode 100644 index 000000000..87886c9ed --- /dev/null +++ b/talimatname/genel/p/prun/talimat @@ -0,0 +1,25 @@ +# Tanım: Dağıtılmış cron ve iş zamanlayıcı +# URL: https://github.com/abudnik/prun +# Paketçi: Cihan_Alkan +# Gerekler: cmake boost python3 +# Grup: sistem + +isim=prun +surum=git +devir=1 +kaynak=() + +derle() { + adres1="https://github.com/abudnik/prun.git" + git_indir ${adres1} ${isim} + cd ${isim} + + cmake -DCMAKE_INSTALL_PREFIX=/usr -DRelease=true . + make + make DESTDIR="$PKG" install + mkdir -p $PKG/etc/rc.d + mv $PKG/etc/init.d $PKG/etc/rc.d/ + mv $PKG/etc/rc.d/init.d/prun-master.init $PKG/etc/rc.d/init.d/prun-master + mv $PKG/etc/rc.d/init.d/prun-worker.init $PKG/etc/rc.d/init.d/prun-worker +} + diff --git a/talimatname/genel/p/psi/talimat b/talimatname/genel/p/psi/talimat new file mode 100644 index 000000000..b75d9068b --- /dev/null +++ b/talimatname/genel/p/psi/talimat @@ -0,0 +1,22 @@ +# Tanım: Psi qt tabanlı xmpp mesajlaşma aracı +# URL: http://psi-im.org/ +# Paketçi: milisarge +# Gerekler: qca-qt5 qt5 + +isim=psi +surum=1.0 +devir=1 +kaynak=(https://sourceforge.net/projects/psi/files/Psi/1.0/$isim-$surum.tar.xz) + +derle() { + cd psi-$surum + ./configure --prefix=/usr \ + --libdir=/usr/lib \ + --enable-whiteboarding \ + --qtselect=5 + sed -e 's|/usr/X11R6/include|/usr/include/X11|g' -i Makefile + make + make INSTALL_ROOT=$PKG install + install -D -m 0644 $PKG/usr/share/icons/hicolor/48x48/apps/psi.png $PKG/usr/share/pixmaps/psi.png + rm -rf $(find $PKG -type f -name 'COPYING') $(find $PKG -type f -name 'README') +} diff --git a/talimatname/genel/p/psutil/talimat b/talimatname/genel/p/psutil/talimat new file mode 100644 index 000000000..1fcd23fc7 --- /dev/null +++ b/talimatname/genel/p/psutil/talimat @@ -0,0 +1,14 @@ +# Tanım: Çalışan süreçler ve sistem kullanımı hakkında bilgi almak için kütüphane +# URL: https://github.com/giampaolo/psutil +# Paketçi: milisarge +# Gerekler: python python-setuptools + +isim=psutil +surum=3.1.1 +devir=1 +kaynak=(https://pypi.python.org/packages/source/p/$isim/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + python setup.py install -O1 --prefix='/usr' --root=$PKG --optimize=1 +} diff --git a/talimatname/genel/p/pth/talimat b/talimatname/genel/p/pth/talimat new file mode 100644 index 000000000..5593825bc --- /dev/null +++ b/talimatname/genel/p/pth/talimat @@ -0,0 +1,20 @@ +# Tanım: Unix platformları için çok taşınabilir bir POSIX / ANSI-C tabanlı kitaplık içerir +# URL: http://www.gnu.org/software/pth/ +# Paketçi: milisarge +# Gerekler: + +isim=pth +surum=2.0.7 +devir=1 + +kaynak=(http://ftp.gnu.org/gnu/$isim/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum +sed -i 's#$(LOBJS): Makefile#$(LOBJS): pth_p.h Makefile#' Makefile.in +./configure --prefix=/usr \ +--mandir=/usr/share/man \ +--disable-static +make +make -j1 DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/ptlib/talimat b/talimatname/genel/p/ptlib/talimat new file mode 100644 index 000000000..693459e88 --- /dev/null +++ b/talimatname/genel/p/ptlib/talimat @@ -0,0 +1,20 @@ +# Tanım: Uzun yıllar önce PWLib olarak ortaya çıkmış bir sınıf kitaplığı. +# URL: http://ftp.gnu.org/gun/pth +# Paketçi: milisarge +# Gerekler: alsa-lib expat pulseaudio + +isim=ptlib +surum=2.10.11 +devir=1 + +kaynak=(ftp://ftp.gnome.org/pub/GNOME/sources/$isim/${surum%.*}/$isim-$surum.tar.xz + http://www.linuxfromscratch.org/patches/blfs/svn/ptlib-$surum-bison_fixes-1.patch) + +derle() { +cd $isim-$surum +patch -Np1 -i ../ptlib-$surum-bison_fixes-1.patch +./configure --prefix=/usr +make +make DESTDIR=$PKG install +chmod -v 755 $PKG/usr/lib/libpt.so.2.10.11 +} diff --git a/talimatname/genel/p/pugixml/talimat b/talimatname/genel/p/pugixml/talimat new file mode 100644 index 000000000..487eb4aa7 --- /dev/null +++ b/talimatname/genel/p/pugixml/talimat @@ -0,0 +1,21 @@ +# Tanım: XPath desteği ile hafif, basit ve hızlı C ++ ayrıştırıcısı. +# URL: http://pugixml.org +# Paketçi: Cihan Alkan +# Gerekler: cmake + +isim=pugixml +surum=1.8 +devir=1 +kaynak=(http://github.com/zeux/pugixml/releases/download/v$surum/pugixml-$surum.tar.gz) + +derle() { +mkdir -p build + cd build + cmake "$SRC/pugixml-$surum" \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=ON +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/pulseaudio/pulseaudio.desktop b/talimatname/genel/p/pulseaudio/pulseaudio.desktop new file mode 100644 index 000000000..392443307 --- /dev/null +++ b/talimatname/genel/p/pulseaudio/pulseaudio.desktop @@ -0,0 +1,87 @@ +[Desktop Entry] +Version=1.0 +Name=PulseAudio Sound System +Name[as]=PulseAudio শব্দ ব্যৱস্থা +Name[bn_IN]=PulseAudio শব্দ ব্যবস্থা +Name[ca]=Sistema de so PulseAudio +Name[cs]=Zvukový systém PulseAudio +Name[de]=PulseAudio Sound System +Name[de_CH]=PulseAudio Sound System +Name[el]=Σύστημα ήχου PulseAudio +Name[es]=Sistema de Sonido PulseAudio +Name[fi]=PulseAudio-äänijärjestelmä +Name[fr]=Système de son PulseAudio +Name[gu]=PulseAudio સાઉન્ડ સિસ્ટમ +Name[he]=מערכת הקול PulseAudio +Name[hi]=पल्सऑडियो ध्वनि तंत्र +Name[hu]=PulseAudio hangrendszer +Name[id]=Sistem Suara PulseAudio +Name[it]=Sistema sonoro PulseAudio +Name[ja]=PulseAudio サウンドシステム +Name[kn]=PulseAudio ಧ್ವನಿ ವ್ಯವಸ್ಥೆ +Name[ko]=펄스오디오 사운드 시스템 +Name[ml]=PulseAudio സൌണ്ട് സിസ്റ്റം +Name[mr]=PulseAudio आवाज प्रणाली +Name[nl]=PulseAudio geluidssysteem +Name[or]=PulseAudio ଧ୍ୱନି ତନ୍ତ୍ର +Name[pa]=ਪਲਸਆਡੀਓ ਸਾਊਂਡ ਸਿਸਟਮ +Name[pl]=System dźwięku PulseAudio +Name[pt]=Sistema de Som PulseAudio +Name[pt_BR]=Sistema de som PulseAudio +Name[ru]=Звуковая система PulseAudio +Name[sk]=Zvukový systém PulseAudio +Name[sr]=PulseAudio звучни систем +Name[sr@latin]=PulseAudio zvučni sistem +Name[sv]=PulseAudio ljudsystem +Name[ta]=பள்ஸ் ஆடியோ ஒலி கணினி +Name[te]=PulseAudio శబ్దపు సిస్టమ్ +Name[tr]=PulseAudio Ses Sistemi +Name[uk]=Звукова система PulseAudio +Name[zh_CN]=PulseAudio 声音系统 +Name[zh_TW]=PulseAudio 音效系統 +Comment=Start the PulseAudio Sound System +Comment[as]=PulseAudio শব্দ ব্যৱস্থা আৰম্ভ কৰা হ'ব +Comment[bn_IN]=PulseAudio শব্দ ব্যবস্থা আরম্ভ করা হবে +Comment[ca]=Inicialitza el sistema de so PulseAudio +Comment[cs]=Spustit zvukový systém PulseAudio +Comment[de]=Das PulseAudio Sound System starten +Comment[de_CH]=Das PulseAudio Sound System starten +Comment[el]=Έναρξη του συστήματος ήχου PulseAudio +Comment[es]=Iniciar el Sistema de Sonido PulseAudio +Comment[fi]=Käynnistä PulseAudio-äänijärjestelmä +Comment[fr]=Démarrer le système de son PulseAudio +Comment[gu]=PulseAudio સાઉન્ડ સિસ્ટમને શરૂ કરો +Comment[he]=התחל את מערכת הקול PulseAudio +Comment[hi]=पल्सऑडियो ध्वनि तंत्र प्रारंभ करें +Comment[hu]=A PulseAudio hangrendszer elindítása +Comment[id]=Memulai Sistem Suara PulseAudio +Comment[it]=Avvia il sistema sonoro PulseAudio +Comment[ja]=PulseAudio サウンドシステムを開始 +Comment[kn]=PulseAudio ಧ್ವನಿ ವ್ಯವಸ್ಥೆಯನ್ನು ಆರಂಭಿಸಿ +Comment[ko]=펄스오디오 사운드 시스템을 시작합니다 +Comment[ml]=PulseAudio സൌണ്ട് സിസ്റ്റം ആരംഭിക്കുക +Comment[mr]=PulseAudio आवाज प्रणाली सुरू करा +Comment[nl]=Start het PulseAudio geluidssysteem +Comment[or]=PulseAudio ଧ୍ୱନି ତନ୍ତ୍ରକୁ ଆରମ୍ଭ କରନ୍ତୁ +Comment[pa]=ਪਲਸਆਡੀਓ ਸਾਊਂਡ ਸਿਸਟਮ ਚਲਾਓ +Comment[pl]=Uruchomienie systemu dźwięku PulseAudio +Comment[pt]=Inciar o Sistema de Som PulseAudio +Comment[pt_BR]=Iniciar o sistema de som PulseAudio +Comment[ru]=Запуск звуковой системы PulseAudio +Comment[sk]=Spustenie zvukového systému PulseAudio +Comment[sr]=Покрени PulseAudio звучни систем +Comment[sr@latin]=Pokreni PulseAudio zvučni sistem +Comment[sv]=Starta ljudsystemet PulseAudio +Comment[ta]=பள்ஸ் ஆடியோ ஒலி கணினியை துவக்கவும +Comment[te]=PulseAudio శబ్దపు సిస్టమ్‌ను ప్రారంభించుము +Comment[tr]=PulseAudio Ses Sistemini Başlat +Comment[uk]=Запустити звукову систему PulseAudio +Comment[zh_CN]=启动 PulseAudio 声音系统 +Comment[zh_TW]=啟動 PulseAudio 音效系統 +Exec=pulseaudio -D +Terminal=false +Type=Application +Categories= +GenericName= +X-GNOME-Autostart-Phase=Initialization +X-KDE-autostart-phase=1 diff --git a/talimatname/genel/p/pulseaudio/pulseaudio.kur-kos b/talimatname/genel/p/pulseaudio/pulseaudio.kur-kos new file mode 100644 index 000000000..de81e1c2c --- /dev/null +++ b/talimatname/genel/p/pulseaudio/pulseaudio.kur-kos @@ -0,0 +1,2 @@ +#!/bin/bash +cp -f /sources/milis.git/talimatname/genel/p/pulseaudio/pulseaudio.desktop /etc/xdg/autostart/pulseaudio.desktop diff --git a/talimatname/genel/p/pulseaudio/talimat b/talimatname/genel/p/pulseaudio/talimat new file mode 100644 index 000000000..e95cc7ba9 --- /dev/null +++ b/talimatname/genel/p/pulseaudio/talimat @@ -0,0 +1,42 @@ +# Tanım: Özellikli, genel amaçlı bir ses sunucusu +# URL: http://www.pulseaudio.org +# Paketçi: milisarge +# Gerekler: fftw intltool sbc json-c bluez attr libasyncns tdb jack avahi soxr libsndfile alsa-lib dbus glib libcap openssl speex + +isim=pulseaudio +surum=11.1 +devir=1 + +kaynak=(http://freedesktop.org/software/pulseaudio/releases/pulseaudio-$surum.tar.xz + pulseaudio.desktop) + +derle() { + + cd pulseaudio-$surum + + #NOCONFIGURE=1 ./bootstrap.sh + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --with-udev-rules-dir=/usr/lib/udev/rules.d \ + --with-pulsedsp-location='/usr/lib/pulseaudio' \ + --with-database=tdb \ + --disable-tcpwrap \ + --disable-rpath \ + --disable-bluez4 \ + --disable-samplerate \ + --disable-default-build-tests + + make + make DESTDIR=$PKG install + mkdir -p $PKG/usr/share/icons/hicolor/scalable/devices + for size in 16 22 32 48 64 128; do + mkdir -p $PKG/usr/share/icons/hicolor/${size}x${size}/{apps,devices} + ln -s ../apps/pulseaudio.png $PKG/usr/share/icons/hicolor/${size}x${size}/devices/audio-backend-pulseaudio.png + done + mkdir -p $PKG/etc/xdg/autostart + cp -f $SRC/pulseaudio.desktop $PKG/etc/xdg/autostart/ + rm -f $PKG/etc/dbus-1/system.d/pulseaudio-system.conf +} diff --git a/talimatname/genel/p/pv/talimat b/talimatname/genel/p/pv/talimat new file mode 100644 index 000000000..2c875cf61 --- /dev/null +++ b/talimatname/genel/p/pv/talimat @@ -0,0 +1,17 @@ +# Tanım: Pipeline veri akışını izlemeye yarayan konsol uygulaması +# URL: http://www.ivarch.com/programs/pv.shtml +# Paketçi: milisarge +# Gerekler: + +isim=pv +surum=1.6.6 +devir=1 +kaynak=(https://www.ivarch.com/programs/sources/pv-$surum.tar.bz2) + +derle() { + cd "${SRC}/${isim}-${surum}" + ./configure --prefix=/usr --mandir=/usr/share/man + make + make DESTDIR="$PKG" install + install -Dm0644 doc/COPYING "$PKG/usr/share/licenses/$isim/COPYING" +} diff --git a/talimatname/genel/p/pyattrs/talimat b/talimatname/genel/p/pyattrs/talimat new file mode 100644 index 000000000..7f636f3d1 --- /dev/null +++ b/talimatname/genel/p/pyattrs/talimat @@ -0,0 +1,25 @@ +# Tanım: Demirbaşsız nitelikler. +# URL: https://attrs.readthedocs.org/ +# Paketçi: Cihan_Alkan +# Gerekler: python python3 python-setuptools python3-setuptools +# Grup: kütüphane + +isim=pyattrs +surum=17.4.0 +devir=1 +kaynak=(https://pypi.io/packages/source/a/attrs/attrs-$surum.tar.gz) + +derle() { + + cp -a attrs-$surum{,-py3} + + cd "$SRC"/attrs-$surum + python2 setup.py build + python2 setup.py install --root="$PKG" --optimize=1 --skip-build + + cd "$SRC"/attrs-$surum-py3 + python3 setup.py build + + python3 setup.py install --root="$PKG" --optimize=1 --skip-build + install -Dm644 LICENSE "$PKG/usr/share/licenses/$isim/LICENSE" +} diff --git a/talimatname/genel/p/pybitmessage/talimat b/talimatname/genel/p/pybitmessage/talimat new file mode 100644 index 000000000..022c31eb0 --- /dev/null +++ b/talimatname/genel/p/pybitmessage/talimat @@ -0,0 +1,62 @@ +# Tanım: Şifreli mesajları başka bir kişiye veya birçok aboneye göndermek için merkezi olmayan ve güvenilir P2P iletişim protokolü +# URL: https://github.com/Bitmessage/PyBitmessage +# Paketçi: Oltulu +# Gerekler: python sqlite python-msgpack qt4 python-qt4 +# Grup: ağ güvenlik + +isim=pybitmessage +surum=0.6.2 +devir=1 +kaynak=(https://github.com/Bitmessage/PyBitmessage/archive/v$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + +# Başlatıcı +cat > $SRC/pybitmessage.sh << "EOF" && +#!/bin/sh +cd /usr/share/pybitmessage +exec python2 bitmessagemain.py +EOF + + cd "$SRC/PyBitmessage-$surum" + + echo 'Fixing Python version...' + find . -type f -print0 | xargs -0 sed -i 's#/usr/bin/python#/usr/bin/python2#g' + find . -type f -print0 | xargs -0 sed -i 's#/usr/bin/env python#/usr/bin/env python2#g' + + cd src/bitmsghash + make + + cd "$SRC/PyBitmessage-$surum" + + echo 'Paylaşılan dosyaları yükleniyor...' + mkdir -p "$PKG"/usr/share/$isim + cp -R src/* "$PKG"/usr/share/$isim + + echo 'Masaüstü simgelerini yükleniyor...' + install -D -m644 src/images/can-icon-24px.png "$PKG/usr/share/icons/hicolor/24x24/apps/$isim.png" + install -D -m644 desktop/can-icon.svg "$PKG/usr/share/icons/hicolor/scalable/apps/$isim.svg" + install -D -m644 desktop/can-icon.svg "$PKG/usr/share/pixmaps/$isim.svg" + + echo 'Çalıştırılabilir dosya yükleniyor...' + install -D -m755 $SRC/pybitmessage.sh "$PKG/usr/bin/$isim" + +# Başlatıcı +mkdir -pv $PKG/usr/share/applications && +cat > $PKG/usr/share/applications/$isim.desktop << "EOF" && +[Desktop Entry] +Type=Application +Name=PyBitmessage +GenericName=Bitmesaj İstemcisi +Comment=Şifreli mesaj gönder +Exec=pybitmessage %F +Icon=pybitmessage +Terminal=false +Categories=Office;Email; +EOF + + echo 'Man sayfası yükleniyor...' + mkdir -p "$PKG/usr/share/man/man1" + install -m644 man/pybitmessage.1.gz "$PKG/usr/share/man/man1" + +} diff --git a/talimatname/genel/p/pycertifi/talimat b/talimatname/genel/p/pycertifi/talimat new file mode 100644 index 000000000..f323b0577 --- /dev/null +++ b/talimatname/genel/p/pycertifi/talimat @@ -0,0 +1,24 @@ +# Tanım: Mozilla'nın CA Paketini sağlamak için Python paketi +# URL: http://pypi.python.org/pypi/certifi +# Paketçi: Cihan_Alkan +# Gerekler: python python3 python-setuptools python3-setuptools +# Grup: kütüphane + +isim=pycertifi +surum=2018.1.18 +devir=1 + +kaynak=(https://pypi.python.org/packages/15/d4/2f888fc463d516ff7bf2379a4e9a552fef7f22a94147655d9b1097108248/certifi-2018.1.18.tar.gz) + +derle() { + cp -a certifi-$surum{,-py3} + + cd "$SRC"/certifi-$surum + python setup.py build + python setup.py install --root="$PKG" --optimize=1 --skip-build + + cd "$SRC"/certifi-$surum-py3 + python3 setup.py build + + python3 setup.py install --root="$PKG" --optimize=1 --skip-build +} diff --git a/talimatname/genel/p/pychardet/talimat b/talimatname/genel/p/pychardet/talimat new file mode 100644 index 000000000..79e49ddf3 --- /dev/null +++ b/talimatname/genel/p/pychardet/talimat @@ -0,0 +1,24 @@ +# Tanım: Otomatik algılama karakteri kodlaması için Python modülü +# URL: https://pypi.io/packages/source/c/chardet +# Paketçi: Cihan_Alkan +# Gerekler: python python3 python-setuptools python3-setuptools +# Grup: kütüphane + +isim=pychardet +surum=3.0.4 +devir=1 + +kaynak=(https://pypi.io/packages/source/c/chardet/chardet-${surum}.tar.gz) + +derle() { + cp -a chardet-$surum{,-py3} + + cd "$SRC"/chardet-$surum + python setup.py build + python setup.py install --root="$PKG" --optimize=1 --skip-build + + cd "$SRC"/chardet-$surum-py3 + python3 setup.py build + + python3 setup.py install --root="$PKG" --optimize=1 --skip-build +} diff --git a/talimatname/genel/p/pycharm/talimat b/talimatname/genel/p/pycharm/talimat new file mode 100644 index 000000000..95d207c45 --- /dev/null +++ b/talimatname/genel/p/pycharm/talimat @@ -0,0 +1,42 @@ +# Tanım: Profesyonel Geliştiriciler için Python IDE +# URL: http://www.jetbrains.com/pycharm/ +# Paketçi: Oltulu +# Gerekler: giflib glibc openjdk freefont-ttf python3-setuptools python-setuptools +# Grup: geliştirme + +isim=pycharm +surum=2017.3.1 +devir=1 +kaynak=(https://download.jetbrains.com/python/pycharm-community-${surum}.tar.gz) + +derle() { + cd pycharm-community-${surum} + + python helpers/pydev/setup_cython.py build_ext --inplace + python3 helpers/pydev/setup_cython.py build_ext --inplace + rm -rf bin/fsnotifier{,-arm} lib/libpty/linux/x86 + +# Başlatıcı +mkdir -pv $PKG/usr/share/applications && +cat > $PKG/usr/share/applications/$isim.desktop << "EOF" && +[Desktop Entry] +Version=1.0 +Type=Application +Name=PyCharm Topluluk Sürümü +Comment=Profesyonel Geliştiriciler için Python IDE +Exec=/usr/bin/pycharm %f +Icon=pycharm +Terminal=false +StartupNotify=true +StartupWMClass=jetbrains-pycharm-ce +Categories=Development;IDE;Python; +EOF + + install -dm 755 "${PKG}"/usr/{bin,share/{applications,doc,licenses,pixmaps,pycharm}} + cp -dr --no-preserve='ownership' bin helpers lib plugins "${PKG}"/usr/share/pycharm/ + cp -dr --no-preserve='ownership' help "${PKG}"/usr/share/doc/pycharm/ + cp -dr --no-preserve='ownership' license "${PKG}"/usr/share/licenses/pycharm/ + ln -s /usr/share/pycharm/bin/pycharm.sh $PKG/usr/bin/pycharm + ln -s /usr/share/pycharm/bin/pycharm.png "${PKG}"/usr/share/pixmaps/ + +} diff --git a/talimatname/genel/p/pycparser/talimat b/talimatname/genel/p/pycparser/talimat new file mode 100644 index 000000000..439c6bd5b --- /dev/null +++ b/talimatname/genel/p/pycparser/talimat @@ -0,0 +1,20 @@ +# Tanım: Pythonda yazılmış C ayrıştırıcı and AST üretici +# URL: https://github.com/eliben/pycparser +# Paketçi: milisarge +# Gerekler: python-setuptools + +isim=pycparser +surum=2.17 +devir=1 +kaynak=(https://github.com/eliben/$isim/archive/release_v$surum.zip::$isim-$surum.zip) + +derle() { + cd $isim-release_v$surum + /usr/bin/python setup.py build + + cd pycparser + /usr/bin/python _build_tables.py + cd - + + /usr/bin/python setup.py install --root=$PKG --optimize=1 +} diff --git a/talimatname/genel/p/pycups/talimat b/talimatname/genel/p/pycups/talimat new file mode 100644 index 000000000..283448557 --- /dev/null +++ b/talimatname/genel/p/pycups/talimat @@ -0,0 +1,21 @@ +# Tanım: Python CUPS Bağlamaları +# URL: http://cyberelk.net/tim/software/pycups/ +# Paketçi: Cihan_Alkan +# Gerekler: python python3 python-setuptools python3-setuptools +# Grup: kütüphane + +isim=pycups +surum=1.9.73 +devir=1 + +kaynak=(http://cyberelk.net/tim/data/${isim}/${isim}-${surum}.tar.bz2) + +derle() { + cp -a ${isim}-${surum} ${isim}-${surum}-python3 + cd ${isim}-${surum} + python2 setup.py build + python2 setup.py install --root="${PKG}" --optimize=1 + cd "${SRC}"/${isim}-${surum}-python3 + python3 setup.py build + python3 setup.py install --root="${PKG}" --optimize=1 +} diff --git a/talimatname/genel/p/pycurl/talimat b/talimatname/genel/p/pycurl/talimat new file mode 100644 index 000000000..bad2c53ab --- /dev/null +++ b/talimatname/genel/p/pycurl/talimat @@ -0,0 +1,25 @@ +# Tanım: Libcurl için bir Python arabirimi +# URL: http://pycurl.sourceforge.net/ +# Paketçi: Oltulu +# Gerekler: python python-setuptools python3 python3-setuptools +# Grup: kütüphane + +isim=pycurl +surum=7.43.0.1 +devir=1 +kaynak=(https://github.com/pycurl/pycurl/archive/REL_${surum//./_}.tar.gz::$isim-$surum.tar.gz) + +derle() { + + cd $isim-REL_7_43_0_1 + make + python3 setup.py build --with-ssl + python3 setup.py install -O1 --root="$PKG" + install -D -m644 COPYING-MIT "$PKG"/usr/share/licenses/$isim/LICENSE + + make + python2 setup.py build --with-ssl + python2 setup.py install -O1 --root="$PKG" + install -D -m644 COPYING-MIT "$PKG"/usr/share/licenses/$isim/LICENSE + +} diff --git a/talimatname/genel/p/pydateutil/talimat b/talimatname/genel/p/pydateutil/talimat new file mode 100644 index 000000000..45aa78eb9 --- /dev/null +++ b/talimatname/genel/p/pydateutil/talimat @@ -0,0 +1,25 @@ +# Tanım: Standart datetime modülüne güçlü eklentiler sağlar +# URL: https://github.com/dateutil/dateutil +# Paketçi: Cihan_Alkan +# Gerekler: python python3 python-setuptools python3-setuptools python-six python3-six +# Grup: kütüphane + +isim=pydateutil +surum=2.6.1 +devir=1 +kaynak=(https://github.com/dateutil/dateutil/archive/$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + + cp -a dateutil-$surum{,-py3} + + cd "$SRC"/dateutil-$surum + python2 setup.py build + python2 setup.py install --root="$PKG" --optimize=1 --skip-build + + cd "$SRC"/dateutil-$surum-py3 + python3 setup.py build + + python3 setup.py install --root="$PKG" --optimize=1 --skip-build + install -Dm644 LICENSE "$PKG/usr/share/licenses/$isim/LICENSE" +} diff --git a/talimatname/genel/p/pydbus/talimat b/talimatname/genel/p/pydbus/talimat new file mode 100644 index 000000000..67fdff2aa --- /dev/null +++ b/talimatname/genel/p/pydbus/talimat @@ -0,0 +1,22 @@ +# Tanım: Pythonic DBus kitaplığı +# URL: https://github.com/LEW21/pydbus +# Paketçi: Oltulu +# Gerekler: python python3 python-setuptools python3-setuptools + +isim=pydbus +surum=0.6.0 +devir=1 +kaynak=(https://github.com/LEW21/pydbus/archive/v$surum.tar.gz::${isim}-${surum}.tar.gz) + +derle() { + cd $SRC/pydbus-$surum + python3 setup.py \ + install \ + --root="${PKG}" \ + --optimize=1 + + python2 setup.py \ + install \ + --root="${PKG}" \ + --optimize=1 +} diff --git a/talimatname/genel/p/pydecorator/talimat b/talimatname/genel/p/pydecorator/talimat new file mode 100644 index 000000000..9f06b02aa --- /dev/null +++ b/talimatname/genel/p/pydecorator/talimat @@ -0,0 +1,23 @@ +# Tanım: Python Decorator modulü +# URL: http://pypi.python.org/pypi/decorator +# Paketçi: Cihan_Alkan +# Gerekler: python python3 python-setuptools python3-setuptools +# Grup: kütüphane + +isim=pydecorator +surum=4.2.1 +devir=1 + +kaynak=(https://pypi.python.org/packages/70/f1/cb9373195639db13063f55eb06116310ad691e1fd125e6af057734dc44ea/decorator-4.2.1.tar.gz) + +derle() { + cp -a decorator-$surum{,-py3} + cd "$SRC"/decorator-$surum + python setup.py build + python setup.py install --root="$PKG" --optimize=1 + + cd "$SRC"/decorator-$surum-py3 + python3 setup.py build + + python3 setup.py install --root="$PKG" --optimize=1 +} diff --git a/talimatname/genel/p/pyenchant/talimat b/talimatname/genel/p/pyenchant/talimat new file mode 100644 index 000000000..60ec2985a --- /dev/null +++ b/talimatname/genel/p/pyenchant/talimat @@ -0,0 +1,26 @@ +# Tanım: PyEnchant, Enchant kitaplığına dayanan Python için bir yazım denetimi kitaplığıdır +# URL: https://pypi.python.org/pypi/pyenchant +# Paketçi: Cihan_Alkan +# Gerekler: python-setuptools python3-setuptools python python3 enchant +# Grup:kütüphane + +isim=pyenchant +surum=2.0.0 +devir=1 +kaynak=(https://github.com/rfk/pyenchant/archive/v${surum}.tar.gz::$isim-$surum.tar.gz) + +derle() { + + cp -r pyenchant-${surum} pyenchant3-${surum} + + cd ${SRC}/pyenchant-${surum} + + python setup.py build + python setup.py install --root=${PKG} --optimize=1 + + cd ${SRC}/pyenchant3-${surum} + + python3 setup.py build + python3 setup.py install --root=${PKG} --optimize=1 + +} diff --git a/talimatname/genel/p/pygments/talimat b/talimatname/genel/p/pygments/talimat new file mode 100644 index 000000000..50e3ddd1f --- /dev/null +++ b/talimatname/genel/p/pygments/talimat @@ -0,0 +1,25 @@ +# Tanım: Python ile yazılmış basit bir pythonic şablon dili +# URL: http://jinja.pocoo.org/ +# Paketçi: Cihan_Alkan +# Gerekler: python python3 python-setuptools python3-setuptools +# Grup: kütüphane + +isim=pygments +surum=2.2.0 +devir=1 +kaynak=(https://pypi.org/packages/source/P/Pygments/Pygments-$surum.tar.gz) + +derle() { + + cp -a Pygments-$surum{,-py3} + + cd "$SRC"/Pygments-$surum + python2 setup.py build + python2 setup.py install --root="$PKG" --optimize=1 --skip-build + + cd "$SRC"/Pygments-$surum-py3 + python3 setup.py build + + python3 setup.py install --root="$PKG" --optimize=1 --skip-build + install -Dm644 LICENSE "$PKG/usr/share/licenses/$isim/LICENSE" +} diff --git a/talimatname/genel/p/pyidna/talimat b/talimatname/genel/p/pyidna/talimat new file mode 100644 index 000000000..1682edcb6 --- /dev/null +++ b/talimatname/genel/p/pyidna/talimat @@ -0,0 +1,24 @@ +# Tanım: Uygulamalardaki Uluslararası Alan Adları (IDNA) +# URL: https://github.com/kjd/idna +# Paketçi: Cihan_Alkan +# Gerekler: python python3 python-setuptools python3-setuptools +# Grup: kütüphane + +isim=pyidna +surum=2.6 +devir=1 + +kaynak=(https://pypi.io/packages/source/i/idna/idna-$surum.tar.gz) + +derle() { + cp -a idna-$surum{,-py3} + + cd "$SRC"/idna-$surum + python setup.py build + python setup.py install --root="$PKG" --optimize=1 --skip-build + + cd "$SRC"/idna-$surum-py3 + python3 setup.py build + + python3 setup.py install --root="$PKG" --optimize=1 --skip-build +} diff --git a/talimatname/genel/p/pyjinja/talimat b/talimatname/genel/p/pyjinja/talimat new file mode 100644 index 000000000..f1f814404 --- /dev/null +++ b/talimatname/genel/p/pyjinja/talimat @@ -0,0 +1,25 @@ +# Tanım: Python ile yazılmış basit bir pythonic şablon dili +# URL: http://jinja.pocoo.org/ +# Paketçi: Cihan_Alkan +# Gerekler: python python3 python-setuptools python3-setuptools pymarkupsafe +# Grup: kütüphane + +isim=pyjinja +surum=2.10 +devir=1 +kaynak=(https://pypi.org/packages/source/J/Jinja2/Jinja2-$surum.tar.gz) + +derle() { + + cp -a Jinja2-$surum{,-py3} + + cd "$SRC"/Jinja2-$surum + python2 setup.py build + python2 setup.py install --root="$PKG" --optimize=1 --skip-build + + cd "$SRC"/Jinja2-$surum-py3 + python3 setup.py build + + python3 setup.py install --root="$PKG" --optimize=1 --skip-build + install -Dm644 LICENSE "$PKG/usr/share/licenses/$isim/LICENSE" +} diff --git a/talimatname/genel/p/pymarkupsafe/talimat b/talimatname/genel/p/pymarkupsafe/talimat new file mode 100644 index 000000000..8584860d1 --- /dev/null +++ b/talimatname/genel/p/pymarkupsafe/talimat @@ -0,0 +1,25 @@ +# Tanım: Python için bir XML/HTML/XHTML İşaretleme güvenli dize uygular +# URL: http://pypi.python.org/pypi/MarkupSafe +# Paketçi: Cihan_Alkan +# Gerekler: python python3 python-setuptools python3-setuptools +# Grup: kütüphane + +isim=pymarkupsafe +surum=1.0 +devir=1 +kaynak=(https://pypi.io/packages/source/M/MarkupSafe/MarkupSafe-${surum}.tar.gz) + +derle() { + + cp -a MarkupSafe-$surum{,-py3} + + cd "$SRC"/MarkupSafe-$surum + python2 setup.py build + python2 setup.py install --root="$PKG" --optimize=1 --skip-build + + cd "$SRC"/MarkupSafe-$surum-py3 + python3 setup.py build + + python3 setup.py install --root="$PKG" --optimize=1 --skip-build + install -Dm644 LICENSE "$PKG/usr/share/licenses/$isim/LICENSE" +} diff --git a/talimatname/genel/p/pympv/talimat b/talimatname/genel/p/pympv/talimat new file mode 100644 index 000000000..756a8d3b0 --- /dev/null +++ b/talimatname/genel/p/pympv/talimat @@ -0,0 +1,16 @@ +# Tanım: Mpv media player'a Python arabirimi +# URL: https://github.com/jaseg/python-mpv +# Paketçi: Cihan_Alkan +# Gerekler: mpv python python-setuptools python3 python3-setuptools +# Grup: kütüphane + +isim=pympv +surum=0.3.8 +devir=1 +kaynak=(https://github.com/jaseg/python-mpv/archive/v0.3.8.tar.gz::$isim-$surum.tar.gz) + +derle() { +cd python-mpv-${surum} + python2 setup.py install --root="$PKG/" --optimize=1 + python3 setup.py install --root="$PKG/" --optimize=1 +} diff --git a/talimatname/genel/p/pynetworkx/talimat b/talimatname/genel/p/pynetworkx/talimat new file mode 100644 index 000000000..8442bc177 --- /dev/null +++ b/talimatname/genel/p/pynetworkx/talimat @@ -0,0 +1,23 @@ +# Tanım: Karmaşık ağların yapısı, dinamikleri ve işlevlerinin oluşturulması, manipülasyonu ve çalışılması için Python paketi. +# URL: http://networkx.github.io +# Paketçi: Cihan_Alkan +# Gerekler: python python3 python-setuptools python3-setuptools pydecorator +# Grup: kütüphane + +isim=pynetworkx +surum=2.1 +devir=1 + +kaynak=(https://github.com/networkx/networkx/archive/networkx-$surum.tar.gz::networkx-$surum.tar.gz) + +derle() { + cp -a networkx-networkx-$surum{,-py3} + cd "$SRC"/networkx-networkx-$surum + python setup.py build + python setup.py install --root="$PKG" --optimize=1 + + cd "$SRC"/networkx-networkx-$surum-py3 + python3 setup.py build + + python3 setup.py install --root="$PKG" --optimize=1 +} diff --git a/talimatname/genel/p/pypam/talimat b/talimatname/genel/p/pypam/talimat new file mode 100644 index 000000000..2597b3e04 --- /dev/null +++ b/talimatname/genel/p/pypam/talimat @@ -0,0 +1,19 @@ +# Tanım: linux pam python modülü +# URL: https://pypi.python.org/pypi/python-pam/ +# Paketçi: Cihan Alkan +# Gerekler: python python-setuptools +# Grup: kütüphane + +isim=pypam +surum=1.8.3 +devir=1 + +kaynak=(https://github.com/FirefighterBlu3/python-pam/archive/v1.8.3.tar.gz::python-pam-$surum.tar.gz) + +derle() { + cp -a python-pam-$surum{,-py3} + cd python-pam-$surum + python2 setup.py install --prefix=/usr --root=$PKG + cd $SRC/python-pam-$surum-py3 + python3 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/p/pypdf/talimat b/talimatname/genel/p/pypdf/talimat new file mode 100644 index 000000000..42d0caf94 --- /dev/null +++ b/talimatname/genel/p/pypdf/talimat @@ -0,0 +1,18 @@ +# Tanım: PDF araç seti olarak inşa edilmiş bir Saf Python kütüphanesi +# URL: http://pybrary.net/pyPdf +# Paketçi: Cihan_Alkan +# Gerekler: python-setuptools python3-setuptools python python3 +# Grup: kütüphane + +isim=pypdf +surum=1.13 +devir=1 +kaynak=(https://pypi.io/packages/source/p/pyPdf/pyPdf-$surum.tar.gz) + +derle() { + cd pyPdf-$surum + python setup.py build + python3 setup.py build + python setup.py install --root="$PKG" + python3 setup.py install --root="$PKG" +} diff --git a/talimatname/genel/p/pypeg2/talimat b/talimatname/genel/p/pypeg2/talimat new file mode 100644 index 000000000..99d82d0c1 --- /dev/null +++ b/talimatname/genel/p/pypeg2/talimat @@ -0,0 +1,21 @@ +# Tanım: Python için özlü bir PEG Ayrıştırıcı-Çevirici +# URL: http://fdik.org/pyPEG/ +# Paketçi: Cihan_Alkan +# Gerekler: python python3 python-setuptools python3-setuptools +# Grup: kütüphane + +isim=pypeg2 +surum=2.15.2 +devir=1 +kaynak=(https://pypi.python.org/packages/source/p/pyPEG2/pyPEG2-$surum.tar.gz) + +derle() { + + cp -a pyPEG2-$surum{,-py3} + + cd "$SRC"/pyPEG2-$surum + python2 setup.py install --root="$PKG" --prefix=/usr --optimize=1 + + cd "$SRC"/pyPEG2-$surum-py3 + python3 setup.py install --root="$PKG" --prefix=/usr --optimize=1 +} diff --git a/talimatname/genel/p/pyprctl/talimat b/talimatname/genel/p/pyprctl/talimat new file mode 100644 index 000000000..f1b660d98 --- /dev/null +++ b/talimatname/genel/p/pyprctl/talimat @@ -0,0 +1,24 @@ +# Tanım: Python (ic) linux prctl syscall arayüzü +# URL: https://github.com/seveas/python-prctl +# Paketçi: Cihan_Alkan +# Gerekler: python python-setuptools python3 python3-setuptools libcap +# Grup: kütüphane + +isim=pyprctl +surum=1.6.1 +devir=1 +kaynak=(https://github.com/seveas/python-prctl/archive/v1.6.1.tar.gz::$isim-$surum.tar.gz) + +derle() { + + cp -a python-prctl-1.6.1{,-py3} + + cd "$SRC"/python-prctl-1.6.1 + python2 setup.py build + python2 setup.py install --root="$PKG" --optimize=1 + + cd "$SRC"/python-prctl-1.6.1-py3 + python3 setup.py build + python3 setup.py install --root="$PKG" --optimize=1 + +} diff --git a/talimatname/genel/p/pypy/talimat b/talimatname/genel/p/pypy/talimat new file mode 100644 index 000000000..4730b0769 --- /dev/null +++ b/talimatname/genel/p/pypy/talimat @@ -0,0 +1,47 @@ +# Tanım: JIT destekli pythonda yazılmış python +# URL: http://pypy.org +# Paketçi: milisarge +# Gerekler: python tk sqlite mercurial pycparser libffi + +isim=pypy +surum=5.10.0 +devir=1 +kaynak=(https://bitbucket.org/pypy/pypy/downloads/pypy2-v$surum-src.tar.bz2) + +derle() { + + cd pypy2-v${surum}-src/pypy/goal + rm -rf /tmp/usession-release-pypy2.7-v${surum}* + python2 ../../rpython/bin/rpython -Ojit --shared targetpypystandalone || cd /tmp/usession-release-pypy2.7-v${surum}-0/testing_1/ && make -j3 + cd $SRC/pypy2-v${surum}-src/pypy/goal + cp /tmp/usession-release-pypy2.7-v${surum}-0/testing_1/pypy-c . + cp /tmp/usession-release-pypy2.7-v${surum}-0/testing_1/libpypy-c.so . + # Compile binary modules + PYTHONPATH=../.. ./pypy-c ../tool/build_cffi_imports.py + + cd $SRC/pypy2-v${surum}-src + + # Prepare installation + sed -i -e 's/\'--owner=root'\>//g' pypy/tool/release/package.py + sed -i -e 's/\'--group=root'\>//g' pypy/tool/release/package.py + python2 pypy/tool/release/package.py --archive-name pypy --targetdir . + mkdir unpacked + tar xf pypy.tar.bz2 -C unpacked + + # Install pypy + cd unpacked + install -Dm755 pypy/bin/pypy "${PKG}"/opt/pypy/bin/pypy + install -Dm755 pypy/bin/libpypy-c.so "${PKG}"/usr/lib/libpypy-c.so + cp -r pypy/include pypy/lib_pypy pypy/lib-python pypy/site-packages "${PKG}"/opt/pypy/ + cd .. + + # Install symlink + mkdir -p "${PKG}"/usr/bin + ln -s /opt/pypy/bin/pypy "${PKG}"/usr/bin/pypy + + # Install misc stuff + install -Dm644 README.rst "${PKG}"/opt/pypy/README.rst + install -Dm644 LICENSE "${PKG}"/opt/pypy/LICENSE + install -Dm644 LICENSE "${PKG}"/usr/share/licenses/pypy/LICENSE + rm -rf /tmp/usession-release-pypy2.7-v${surum}* +} diff --git a/talimatname/genel/p/pyrdflib/talimat b/talimatname/genel/p/pyrdflib/talimat new file mode 100644 index 000000000..f76060eb0 --- /dev/null +++ b/talimatname/genel/p/pyrdflib/talimat @@ -0,0 +1,25 @@ +# Tanım: RDF ile çalışmak için bir Python kütüphanesi +# URL: http://rdflib.net/ +# Paketçi: Cihan_Alkan +# Gerekler: python python3 python-setuptools python3-setuptools pymarkupsafe +# Grup: kütüphane + +isim=pyrdflib +surum=4.2.2 +devir=1 +kaynak=(https://github.com/RDFLib/rdflib/archive/4.2.2.tar.gz::$isim-$surum.tar.gz) + +derle() { + + cp -a rdflib-$surum{,-py3} + + cd "$SRC"/rdflib-$surum + python setup.py build + python setup.py install --root="$PKG" --optimize=1 + + cd "$SRC"/rdflib-$surum-py3 + python3 setup.py build + + python3 setup.py install --root="$PKG" --optimize=1 + +} diff --git a/talimatname/genel/p/pyreportlab/talimat b/talimatname/genel/p/pyreportlab/talimat new file mode 100644 index 000000000..6690a90bb --- /dev/null +++ b/talimatname/genel/p/pyreportlab/talimat @@ -0,0 +1,21 @@ +# Tanım: Kanıtlanmış bir endüstri gücü PDF oluşturma çözümü +# URL: http://www.reportlab.org/rl_toolkit.html +# Paketçi: Cihan_Alkan +# Gerekler: python3-pip python python3 freetype python-pillow python3-pillow python-pip +# Grup: kütüphane + +isim=pyreportlab +surum=3.4.0 +devir=1 +kaynak=(https://pypi.python.org/packages/87/f9/53b34c58d3735a6df7d5c542bf4de60d699cfa6035e113ca08b3ecdcca3f/reportlab-3.4.0.tar.gz) + +derle() { + cp -rf reportlab-$surum "python3-reportlab-$surum" + + cd "$SRC/reportlab-$surum" + python2 setup.py install --root=$PKG --optimize=1 + install -D -m644 LICENSE.txt $PKG/usr/share/licenses/$isim/license.txt + + cd "$SRC/python3-reportlab-$surum" + python3 setup.py install --root=$PKG --optimize=1 +} diff --git a/talimatname/genel/p/pyrequests/talimat b/talimatname/genel/p/pyrequests/talimat new file mode 100644 index 000000000..720a43535 --- /dev/null +++ b/talimatname/genel/p/pyrequests/talimat @@ -0,0 +1,25 @@ +# Tanım: İnsanlar için Python HTTP +# URL: https://github.com/requests/requests +# Paketçi: Cihan Alkan +# Gerekler: python-chardet python python3 python-setuptools python3-setuptools pyurllibs +# Grup: kütüphane + +isim=pyrequests +surum=2.18.4 +devir=1 + +kaynak=(https://github.com/requests/requests/archive/v2.18.4.tar.gz::requests-$surum.tar.gz) + +derle() { + cp -a requests-$surum{,-py3} + + cd "$SRC"/requests-$surum + python setup.py build + python setup.py install --root="$PKG" --optimize=1 --skip-build + + cd "$SRC"/requests-$surum-py3 + python3 setup.py build + + python3 setup.py install --root="$PKG" --optimize=1 --skip-build + install -Dm644 LICENSE "$PKG/usr/share/licenses/$isim/LICENSE" +} diff --git a/talimatname/genel/p/pysensors/talimat b/talimatname/genel/p/pysensors/talimat new file mode 100644 index 000000000..b9e6b94c5 --- /dev/null +++ b/talimatname/genel/p/pysensors/talimat @@ -0,0 +1,14 @@ +# Tanım: Libsensors'a python bağları (ctypes aracılığıyla) +# URL: https://bitbucket.org/blackjack/pysensors/ +# Paketçi: milisarge +# Gerekler: python python-setuptools lm-sensors + +isim=pysensors +surum=0.0.3 +devir=2 +kaynak=(https://pypi.python.org/packages/source/P/PySensors/PySensors-$surum.tar.gz) + +derle() { + cd PySensors-$surum + python setup.py install -O1 --prefix='/usr' --root=$PKG --optimize=1 +} diff --git a/talimatname/genel/p/python-apsw/talimat b/talimatname/genel/p/python-apsw/talimat new file mode 100644 index 000000000..082e1605f --- /dev/null +++ b/talimatname/genel/p/python-apsw/talimat @@ -0,0 +1,16 @@ +# Tanım: SQLite için Python2 sarmalayıcı. +# URL: https://github.com/rogerbinns/apsw +# Paketçi: milisarge +# Gerekler: python sqlite + +isim=python-apsw +surum=3.8.4.3 +devir=1 + +kaynak=( +https://github.com/rogerbinns/apsw/archive/$surum-r1.tar.gz) + +derle() { + cd apsw-$surum-r1 + python2 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/p/python-atspi/talimat b/talimatname/genel/p/python-atspi/talimat new file mode 100644 index 000000000..28c6aff8a --- /dev/null +++ b/talimatname/genel/p/python-atspi/talimat @@ -0,0 +1,17 @@ +# Tanım: Bu pakette, GNOME Erişilebilirlik'in temel bileşenleri için Python bağları bulunmaktadır. +# URL: http://www.cairographics.org/ +# Paketçi: milisarge +# Gerekler: python-gobject at-spi2-core + +isim=python-atspi +surum=2.16.0 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/pyatspi/${surum%.*}/pyatspi-$surum.tar.xz) + +derle() { +cd pyatspi-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/python-beautifulsoup3/talimat b/talimatname/genel/p/python-beautifulsoup3/talimat new file mode 100644 index 000000000..4d5507567 --- /dev/null +++ b/talimatname/genel/p/python-beautifulsoup3/talimat @@ -0,0 +1,16 @@ +# Tanım: Ekran sıyırma gibi hızlı dönüş projeleri için tasarlanmış bir Python HTML / XML ayrıştırıcı +# URL: http://www.crummy.com/software/BeautifulSoup/index.html +# Paketçi: milisarge +# Gerekler: python + +isim=python-beautifulsoup3 +surum=3.2.1 +devir=1 + +kaynak=( +http://www.crummy.com/software/BeautifulSoup/download/3.x/BeautifulSoup-$surum.tar.gz) + +derle() { + cd BeautifulSoup-$surum + python2 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/p/python-cairo/talimat b/talimatname/genel/p/python-cairo/talimat new file mode 100644 index 000000000..7320b121f --- /dev/null +++ b/talimatname/genel/p/python-cairo/talimat @@ -0,0 +1,17 @@ +# Tanım: Cairo kütüphanesi için Python2 konektörü +# URL: http://www.cairographics.org/ +# Paketçi: milisarge +# Gerekler: cairo + +isim=python-cairo +surum=1.10.0 +devir=1 + +kaynak=(http://cairographics.org/releases/py2cairo-$surum.tar.bz2) + +derle() { + cd py2cairo-$surum + python2 ./waf configure --prefix=/usr + ./waf build + ./waf install --destdir=$PKG +} diff --git a/talimatname/genel/p/python-caja/talimat b/talimatname/genel/p/python-caja/talimat new file mode 100644 index 000000000..ba66b841d --- /dev/null +++ b/talimatname/genel/p/python-caja/talimat @@ -0,0 +1,22 @@ +# Tanım: Python Caja için bağlama, Caja özellik sayfası ve menü öğesi uzantılarının Python'da yazılmasına izin vermek +# URL: http://www.mate-desktop.org/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: intltool caja python-gobject + +isim=python-caja +surum=1.20.0 +devir=1 +kaynak=(http://pub.mate-desktop.org/releases/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + sed -i 's/python-config/python2-config/' configure + PYTHON=/usr/bin/python2 ./configure \ + --prefix=/usr + + #https://bugzilla.gnome.org/show_bug.cgi?id=656231 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/python-cffi/talimat b/talimatname/genel/p/python-cffi/talimat new file mode 100644 index 000000000..982ec2aca --- /dev/null +++ b/talimatname/genel/p/python-cffi/talimat @@ -0,0 +1,15 @@ +# Tanım: Python çağıran C kodu için Yabancı Fonksiyon Arayüzü. +# URL: http://cffi.readthedocs.org/ +# Paketçi: milisarge +# Gerekler: libffi python-cparser + +isim=python-cffi +_isim=cffi +surum=1.5.2 +devir=1 +kaynak=(http://pypi.python.org/packages/source/c/$_name/$_name-$surum.tar.gz) + +derle() { + cd $_name-$surum + /usr/bin/python2 setup.py install --root=$PKG --optimize=1 +} diff --git a/talimatname/genel/p/python-chardet/talimat b/talimatname/genel/p/python-chardet/talimat new file mode 100644 index 000000000..50d37d957 --- /dev/null +++ b/talimatname/genel/p/python-chardet/talimat @@ -0,0 +1,16 @@ +# Tanım: Karakter kodlaması otomatik algılama için Python modülü. +# URL: https://github.com/erikrose/chardet +# Paketçi: milisarge +# Gerekler: python-setuptools + +isim=python-chardet +_isim=chardet +surum=2.3.0 +devir=1 +kaynak=(https://pypi.python.org/packages/source/c/$_name/$_name-$surum.tar.gz) + +derle() { + cd $_name-$surum + /usr/bin/python2 setup.py build + /usr/bin/python2 setup.py install --root=$PKG +} diff --git a/talimatname/genel/p/python-cherrypy/talimat b/talimatname/genel/p/python-cherrypy/talimat new file mode 100644 index 000000000..489f7ff81 --- /dev/null +++ b/talimatname/genel/p/python-cherrypy/talimat @@ -0,0 +1,16 @@ +# Tanım: Pythonic, nesne yönelimli bir web geliştirme çerçevesi. +# URL: http://www.cherrypy.org/ +# Paketçi: milisarge +# Gerekler: python + +isim=python-cherrypy +surum=3.6.0 +devir=1 + +kaynak=( +https://pypi.python.org/packages/source/C/CherryPy/CherryPy-$surum.tar.gz) + +derle() { + cd CherryPy-$surum + python2 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/p/python-cparser/talimat b/talimatname/genel/p/python-cparser/talimat new file mode 100644 index 000000000..3c77685d6 --- /dev/null +++ b/talimatname/genel/p/python-cparser/talimat @@ -0,0 +1,21 @@ +# Tanım: C ayrıştırıcı ve AST jeneratörü Python ile yazılmış. +# URL: https://github.com/eliben/pycparser +# Paketçi: milisarge +# Gerekler: python-setuptools + +isim=python-cparser +_isim=pycparser +surum=2.14 +devir=1 +kaynak=(https://github.com/eliben/$_name/archive/release_v$surum.zip) + +derle() { + cd $_name-release_v$surum + /usr/bin/python2 setup.py build + + cd pycparser + /usr/bin/python2 _build_tables.py + cd - + + /usr/bin/python2 setup.py install --root=$PKG --optimize=1 +} diff --git a/talimatname/genel/p/python-crypto/talimat b/talimatname/genel/p/python-crypto/talimat new file mode 100644 index 000000000..e6cdf8722 --- /dev/null +++ b/talimatname/genel/p/python-crypto/talimat @@ -0,0 +1,17 @@ +# Tanım: Python için şifreleme modülleri. +# URL: http://www.dlitz.net/software/pycrypto/ +# Paketçi: milisarge +# Gerekler: python + +isim=python-crypto +surum=2.6.1 +devir=1 + +kaynak=( +http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-$surum.tar.gz) + +derle() { + cd pycrypto-$surum + python2 setup.py build + python2 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/p/python-cryptography/talimat b/talimatname/genel/p/python-cryptography/talimat new file mode 100644 index 000000000..26cb5d46a --- /dev/null +++ b/talimatname/genel/p/python-cryptography/talimat @@ -0,0 +1,16 @@ +# Tanım: Şifreleme tariflerini ve ilkelleri Python geliştiricilerine sunacak şekilde tasarlanmış bir paket +# URL: http://pypi.python.org/pypi/cryptography +# Paketçi: milisarge +# Gerekler: python-six python-cffi python-enum34 python-pyasn1 + +isim=python-cryptography +_isim=cryptography +surum=1.2.3 +devir=1 +kaynak=(http://pypi.python.org/packages/source/c/$_name/$_name-$surum.tar.gz) + +derle() { + cd $_name-$surum + /usr/bin/python2 setup.py build + /usr/bin/python2 setup.py install --root=$PKG --optimize=1 +} diff --git a/talimatname/genel/p/python-cssselect/talimat b/talimatname/genel/p/python-cssselect/talimat new file mode 100644 index 000000000..c75f0962c --- /dev/null +++ b/talimatname/genel/p/python-cssselect/talimat @@ -0,0 +1,15 @@ +# Tanım: CSS3 Seçicilerini ayrıştıran ve XPath 1.0'a çeviren bir Python2 kitaplığı. +# URL: http://pypi.python.org/pypi/cssselect +# Paketçi: milisarge +# Gerekler: python + +isim=python-cssselect +surum=1.0.1 +devir=1 + +kaynak=(https://pypi.python.org/packages/77/ff/9c865275cd19290feba56344eba570e719efb7ca5b34d67ed12b22ebbb0d/cssselect-$surum.tar.gz) + +derle() { + cd cssselect-$surum + python2 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/p/python-cssutils/talimat b/talimatname/genel/p/python-cssutils/talimat new file mode 100644 index 000000000..a42dab6cf --- /dev/null +++ b/talimatname/genel/p/python-cssutils/talimat @@ -0,0 +1,19 @@ +# Tanım: Python için CSS Basamaklı Stil Sayfaları kitaplığı. +# URL: http://cthedot.de/cssutils/ +# Paketçi: milisarge +# Gerekler: python-setuptools + +isim=python-cssutils +surum=1.0 +devir=1 + +kaynak=( +http://pypi.python.org/packages/source/c/cssutils/cssutils-$surum.zip) + +derle() { + cd cssutils-$surum + python2 setup.py install --prefix=/usr --root=$PKG + + # rm tests (FS#27567) + rm -rf $PKG/usr/lib/python2.7/site-packages/tests +} diff --git a/talimatname/genel/p/python-cups/talimat b/talimatname/genel/p/python-cups/talimat new file mode 100644 index 000000000..62324e1e6 --- /dev/null +++ b/talimatname/genel/p/python-cups/talimat @@ -0,0 +1,16 @@ +# Tanım: Python CUPS Bağlantıları +# URL: http://cyberelk.net/tim/software/pycups/ +# Paketçi: milisarge +# Gerekler: cups python + +isim=python-cups +surum=1.9.73 +devir=1 + +kaynak=( +http://cyberelk.net/tim/data/pycups/pycups-$surum.tar.bz2) + +derle() { + cd pycups-$surum + python2 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/p/python-distutils-extra/talimat b/talimatname/genel/p/python-distutils-extra/talimat new file mode 100644 index 000000000..f6cf5463d --- /dev/null +++ b/talimatname/genel/p/python-distutils-extra/talimat @@ -0,0 +1,14 @@ +# Tanım: Python derleme sistemi +# URL: https://launchpad.net/python-distutils-extra +# Paketçi: milisarge +# Gerekler: python python-setuptools intltool + +isim=python-distutils-extra +surum=2.40 +devir=1 +kaynak=(https://launchpad.net/ubuntu/+archive/primary/+files/python-distutils-extra_2.40.tar.xz) + +derle() { + cd $isim-$surum + python setup.py install --root="$PKG/" +} diff --git a/talimatname/genel/p/python-django/talimat b/talimatname/genel/p/python-django/talimat new file mode 100644 index 000000000..4de518b34 --- /dev/null +++ b/talimatname/genel/p/python-django/talimat @@ -0,0 +1,21 @@ +# Tanım: python2 django web framework +# URL: https://www.djangoproject.com/ +# Paketçi: milisarge +# Gerekler: python-setuptools python + +isim=python-django +surum=1.11.2 +devir=1 + +kaynak=(https://pypi.python.org/packages/c0/31/4bffd9183066eea645430114419c30b030b599320da8246701b81c6a78d2/Django-1.11.2.tar.gz) + +derle() { + cd Django-$surum + python2 setup.py build + python2 setup.py install --prefix=/usr --root=$PKG --optimize=1 + ln -s django-admin.py "$PKG"/usr/bin/django-admin2.py + ln -s django-admin "$PKG"/usr/bin/django-admin2 + install -Dm644 extras/django_bash_completion "$PKG"/usr/share/bash-completion/completions/django-admin2.py + ln -s django-admin.py "$PKG"/usr/share/bash-completion/completions/django-admin2 + ln -s django-admin.py "$PKG"/usr/share/bash-completion/completions/manage2.py +} diff --git a/talimatname/genel/p/python-dnspython/talimat b/talimatname/genel/p/python-dnspython/talimat new file mode 100644 index 000000000..647170b89 --- /dev/null +++ b/talimatname/genel/p/python-dnspython/talimat @@ -0,0 +1,16 @@ +# Tanım: Python için bir DNS araç seti. +# URL: http://www.dnspython.org/ +# Paketçi: milisarge +# Gerekler: python + +isim=python-dnspython +surum=1.11.1 +devir=1 + +kaynak=( +http://www.dnspython.org/kits/$surum/dnspython-$surum.tar.gz) + +derle() { + cd dnspython-$surum + python2 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/p/python-docutils/talimat b/talimatname/genel/p/python-docutils/talimat new file mode 100644 index 000000000..000e0a38d --- /dev/null +++ b/talimatname/genel/p/python-docutils/talimat @@ -0,0 +1,15 @@ +# Tanım: Düz metin dökümanlarını HTML, XML veya LaTeX gibi formatlara dönüştürmek için araçlar seti +# URL: http://docutils.sourceforge.net +# Paketçi: milisarge +# Gerekler: python + +isim=python-docutils +surum=0.12 +devir=1 + +kaynak=(http://downloads.sourceforge.net/docutils/docutils-$surum.tar.gz) + +derle() { + cd docutils-$surum + python2 setup.py install --root=$PKG +} diff --git a/talimatname/genel/p/python-ecdsa/talimat b/talimatname/genel/p/python-ecdsa/talimat new file mode 100644 index 000000000..8598a2e98 --- /dev/null +++ b/talimatname/genel/p/python-ecdsa/talimat @@ -0,0 +1,15 @@ +# Tanım: ECDSA'nın Python'da uygulanması +# URL: https://github.com/warner/python-ecdsa +# Paketçi: milisarge +# Gerekler: python + +isim=python-ecdsa +surum=0.11 +devir=1 + +kaynak=(http://pypi.python.org/packages/source/e/ecdsa/ecdsa-$surum.tar.gz) + +derle() { + cd ecdsa-$surum + python2 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/p/python-enum34/talimat b/talimatname/genel/p/python-enum34/talimat new file mode 100644 index 000000000..820b726f1 --- /dev/null +++ b/talimatname/genel/p/python-enum34/talimat @@ -0,0 +1,17 @@ +# Tanım: Python 3.4'ün enum paketinin arka portu. Bu modül, eski Python sürümleri için bu veri türünün bir arka portu sağlar. +# URL: https://pypi.python.org/pypi/enum34 +# Paketçi: milisarge +# Gerekler: python-setuptools + +isim=python-enum34 +_isim=enum34 +surum=1.1.2 +devir=1 +kaynak=(http://pypi.python.org/packages/source/e/$_name/$_name-$surum.tar.gz) + +derle() { + cd $_name-$surum + /usr/bin/python2 setup.py install --root=$PKG --optimize=1 + + rm $PKG/usr/lib/python*/site-packages/enum/{LICENSE,README} +} diff --git a/talimatname/genel/p/python-fonttools/talimat b/talimatname/genel/p/python-fonttools/talimat new file mode 100644 index 000000000..8ed49c8d4 --- /dev/null +++ b/talimatname/genel/p/python-fonttools/talimat @@ -0,0 +1,15 @@ +# Tanım: Font dosyalarını değiştirmek için araçlar +# URL: http://sourceforge.net/projects/fonttools/ +# Paketçi: milisarge +# Gerekler: python python-numpy python-setuptools + +isim=python-fonttools +surum=2.4 +devir=1 + +kaynak=(http://pypi.python.org/packages/source/F/FontTools/FontTools-$surum.tar.gz) + +derle() { + cd FontTools-$surum + python2 setup.py build install --root=$PKG +} diff --git a/talimatname/genel/p/python-gconf/talimat b/talimatname/genel/p/python-gconf/talimat new file mode 100644 index 000000000..09e1b8b63 --- /dev/null +++ b/talimatname/genel/p/python-gconf/talimat @@ -0,0 +1,24 @@ +# Tanım: GConf yapılandırma veritabanı sistemi için Python bağları +# URL: http://www.gnome.org/ +# Paketçi: milisarge +# Gerekler: python-gtk gconf + +_isim=gnome-python + +isim=python-gconf +surum=2.28.1 +devir=1 + +kaynak=(http://download.gnome.org/sources/$_name/${surum%.*}/$_name-$surum.tar.bz2) + +derle() { + cd $_name-$surum + PYTHON=python2 ./configure --prefix=/usr \ + --disable-gtk-doc \ + --disable-allbindings \ + --enable-gconf + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/gtk-doc + rm -rf $PKG/usr/lib/pkgconfig +} diff --git a/talimatname/genel/p/python-geoip/talimat b/talimatname/genel/p/python-geoip/talimat new file mode 100644 index 000000000..36295fe63 --- /dev/null +++ b/talimatname/genel/p/python-geoip/talimat @@ -0,0 +1,17 @@ +# Tanım: GeoIP aramaları için Python API'sı +# URL: https://pypi.python.org/pypi/pygeoip/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: python + +isim=python-geoip +surum=0.2.7 +devir=1 +_isim=pygeoip + +kaynak=( https://pypi.python.org/packages/source/p/${_name}/${_name}-$surum.tar.gz) + +derle() { +cd ${_name}-$surum +python setup.py build +python setup.py install --optimize=1 --root=$PKG +} diff --git a/talimatname/genel/p/python-gitdb/talimat b/talimatname/genel/p/python-gitdb/talimat new file mode 100644 index 000000000..c7d92d55a --- /dev/null +++ b/talimatname/genel/p/python-gitdb/talimat @@ -0,0 +1,15 @@ +# Tanım: python için gitdb nesne kütüphanesi +# URL: https://github.com/gitpython-developers/gitdb +# Paketçi: milisarge +# Gerekler: python python-setuptools python-smmap + +isim=python-gitdb +_isim=gitdb +surum=0.6.4 +devir=1 +kaynak=(https://files.pythonhosted.org/packages/source/${_name:0:1}/${_name}/${_name}-${surum}.tar.gz) + +derle() { + cd "${SRC}/${_name}-${surum}" + python setup.py install --root=$PKG --optimize=1 +} diff --git a/talimatname/genel/p/python-gitpython/talimat b/talimatname/genel/p/python-gitpython/talimat new file mode 100644 index 000000000..e34604ef2 --- /dev/null +++ b/talimatname/genel/p/python-gitpython/talimat @@ -0,0 +1,16 @@ +# Tanım: python için Git kütüphanesi +# URL: http://pyyaml.org/wiki/PyYAML +# Paketçi: milisarge +# Gerekler: python python-setuptools + +isim=python-gitpython +_isim=GitPython +_name2=gitpython +surum=2.1.3 +devir=1 +kaynak=(https://files.pythonhosted.org/packages/source/g/${_name2}/${_name}-${surum}.tar.gz) + +derle() { + cd "${SRC}/${_name}-${surum}" + python setup.py install --root=$PKG --optimize=1 +} diff --git a/talimatname/genel/p/python-gobject/talimat b/talimatname/genel/p/python-gobject/talimat new file mode 100644 index 000000000..2f3d60024 --- /dev/null +++ b/talimatname/genel/p/python-gobject/talimat @@ -0,0 +1,21 @@ +# Tanım: GLib'in GObject sınıfı için Python 2'nin bağlantılarını sağlar. +# URL: http://www.gnome.org/ +# Paketçi: milisarge +# Gerekler: python-cairo gobject-introspection xorg-libxxf86vm libffi + +isim=python-gobject +surum=3.24.1 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/pygobject/${surum%.*}/pygobject-$surum.tar.xz) + +derle() { +cd pygobject-$surum +mkdir python2 +pushd python2 +../configure --prefix=/usr \ +--with-python=/usr/bin/python2 +make +popd +make DESTDIR=$PKG -C python2 install +} diff --git a/talimatname/genel/p/python-gobject2/pygobject-2.16.1-fixdetection.patch b/talimatname/genel/p/python-gobject2/pygobject-2.16.1-fixdetection.patch new file mode 100644 index 000000000..714144d62 --- /dev/null +++ b/talimatname/genel/p/python-gobject2/pygobject-2.16.1-fixdetection.patch @@ -0,0 +1,13 @@ +diff -p -up pygobject-2.16.1/pygtk.py.fixdetection pygobject-2.16.1/pygtk.py +--- pygobject-2.16.1/pygtk.py.fixdetection 2009-02-20 22:27:14.000000000 +0100 ++++ pygobject-2.16.1/pygtk.py 2009-02-23 09:44:55.000000000 +0100 +@@ -57,6 +57,9 @@ def _get_available_versions(): + # skip empty directories + if not os.listdir(pathname): + continue ++ # only accept directories containing gtk.py or gobject.so ++ if not glob.glob(os.path.join(pathname, "gtk.py")) and not glob.glob(os.path.join(pathname,"gobject.so")): ++ continue + + if not versions.has_key(filename[-3:]): + versions[filename[-3:]] = pathname diff --git a/talimatname/genel/p/python-gobject2/pygobject-2.28.6-fixes-1.patch b/talimatname/genel/p/python-gobject2/pygobject-2.28.6-fixes-1.patch new file mode 100644 index 000000000..c43d99820 --- /dev/null +++ b/talimatname/genel/p/python-gobject2/pygobject-2.28.6-fixes-1.patch @@ -0,0 +1,720 @@ +Submitted By: Andrew Benton <andy at benton dot eu dot com> (gobject-introspection) and Armin K. <krejzi at email dot com>, after thomas kaedin (git) +Date: 2012-03-29 (gobject-introspection) and 2014-03-04 (git) +Initial Package Version: 2.28.6 +Upstream Status: not submitted (gobject-introspection) and committed (git) +Origin: Andrew Benton (gobject-introspection) and upstream (git) +Tanım: Fixes compiling with recent versions of gobject-introspection; and upstream fixes + +diff -Naur pygobject-2.28.6.orig/configure.ac pygobject-2.28.6/configure.ac +--- pygobject-2.28.6.orig/configure.ac 2011-06-13 13:33:56.000000000 -0300 ++++ pygobject-2.28.6/configure.ac 2014-03-04 18:36:07.947079909 -0300 +@@ -85,7 +85,7 @@ + AM_PROG_CC_STDC + AM_PROG_CC_C_O + +-# check that we have the minimum version of python necisary to build ++# check that we have the minimum version of python necessary to build + JD_PATH_PYTHON(python_min_ver) + + # check if we are building for python 3 +@@ -236,7 +236,7 @@ + AC_ARG_ENABLE(introspection, + AC_HELP_STRING([--enable-introspection], [Use introspection information]), + enable_introspection=$enableval, +- enable_introspection=yes) ++ enable_introspection=no) + if test "$enable_introspection" != no; then + AC_DEFINE(ENABLE_INTROSPECTION,1,Use introspection information) + PKG_CHECK_MODULES(GI, +@@ -262,6 +262,9 @@ + AC_SUBST(INTROSPECTION_SCANNER) + AC_SUBST(INTROSPECTION_COMPILER) + ++dnl Do not install codegen for Python 3. ++AM_CONDITIONAL(ENABLE_CODEGEN, test $build_py3k = false) ++ + dnl add required cflags ... + if test "x$GCC" = "xyes"; then + JH_ADD_CFLAG([-Wall]) +@@ -281,8 +284,6 @@ + Makefile + pygobject-2.0.pc + pygobject-2.0-uninstalled.pc +- codegen/Makefile +- codegen/pygobject-codegen-2.0 + docs/Makefile + docs/reference/entities.docbook + docs/xsl/fixxref.py +@@ -295,6 +296,13 @@ + examples/Makefile + tests/Makefile + PKG-INFO) ++ ++if test $build_py3k = false; then ++ AC_CONFIG_FILES( ++ codegen/Makefile ++ codegen/pygobject-codegen-2.0) ++fi ++ + AC_OUTPUT + + echo +diff -Naur pygobject-2.28.6.orig/gi/module.py pygobject-2.28.6/gi/module.py +--- pygobject-2.28.6.orig/gi/module.py 2011-06-13 13:30:25.000000000 -0300 ++++ pygobject-2.28.6/gi/module.py 2014-03-04 18:36:07.947079909 -0300 +@@ -24,7 +24,11 @@ + + import os + import gobject +-import string ++try: ++ maketrans = ''.maketrans ++except AttributeError: ++ # fallback for Python 2 ++ from string import maketrans + + import gi + from .overrides import registry +@@ -124,7 +128,7 @@ + # Don't use upper() here to avoid locale specific + # identifier conversion (e. g. in Turkish 'i'.upper() == 'i') + # see https://bugzilla.gnome.org/show_bug.cgi?id=649165 +- ascii_upper_trans = string.maketrans( ++ ascii_upper_trans = maketrans( + 'abcdefgjhijklmnopqrstuvwxyz', + 'ABCDEFGJHIJKLMNOPQRSTUVWXYZ') + for value_info in info.get_values(): +diff -Naur pygobject-2.28.6.orig/gi/overrides/Gtk.py pygobject-2.28.6/gi/overrides/Gtk.py +--- pygobject-2.28.6.orig/gi/overrides/Gtk.py 2011-06-13 13:33:49.000000000 -0300 ++++ pygobject-2.28.6/gi/overrides/Gtk.py 2014-03-04 18:36:07.949079863 -0300 +@@ -35,6 +35,18 @@ + Gtk = modules['Gtk']._introspection_module + __all__ = [] + ++if Gtk._version == '2.0': ++ import warnings ++ warn_msg = "You have imported the Gtk 2.0 module. Because Gtk 2.0 \ ++was not designed for use with introspection some of the \ ++interfaces and API will fail. As such this is not supported \ ++by the pygobject development team and we encourage you to \ ++port your app to Gtk 3 or greater. PyGTK is the recomended \ ++python module to use with Gtk 2.0" ++ ++ warnings.warn(warn_msg, RuntimeWarning) ++ ++ + class Widget(Gtk.Widget): + + def translate_coordinates(self, dest_widget, src_x, src_y): +@@ -401,16 +413,22 @@ + def __init__(self, + parent=None, + flags=0, +- type=Gtk.MessageType.INFO, ++ message_type=Gtk.MessageType.INFO, + buttons=Gtk.ButtonsType.NONE, + message_format=None, + **kwds): + + if message_format != None: + kwds['text'] = message_format ++ ++ if 'type' in kwds: ++ import warnings ++ warnings.warn("The use of the keyword type as a parameter of the Gtk.MessageDialog constructor has been depricated. Please use message_type instead.", DeprecationWarning) ++ message_type = kwds['type'] ++ + Gtk.MessageDialog.__init__(self, + _buttons_property=buttons, +- message_type=type, ++ message_type=message_type, + **kwds) + Dialog.__init__(self, parent=parent, flags=flags) + +@@ -619,12 +637,18 @@ + def forward_search(self, string, flags, limit): + success, match_start, match_end = super(TextIter, self).forward_search(string, + flags, limit) +- return (match_start, match_end,) ++ if success: ++ return (match_start, match_end) ++ else: ++ return None + + def backward_search(self, string, flags, limit): + success, match_start, match_end = super(TextIter, self).backward_search(string, + flags, limit) +- return (match_start, match_end,) ++ if success: ++ return (match_start, match_end) ++ else: ++ return None + + def begins_tag(self, tag=None): + return super(TextIter, self).begins_tag(tag) +diff -Naur pygobject-2.28.6.orig/gi/pygi-foreign-cairo.c pygobject-2.28.6/gi/pygi-foreign-cairo.c +--- pygobject-2.28.6.orig/gi/pygi-foreign-cairo.c 2011-06-13 13:33:49.000000000 -0300 ++++ pygobject-2.28.6/gi/pygi-foreign-cairo.c 2014-03-04 18:36:07.949079863 -0300 +@@ -30,7 +30,7 @@ + #include <pycairo/py3cairo.h> + #endif + +-Pycairo_CAPI_t *Pycairo_CAPI; ++static Pycairo_CAPI_t *Pycairo_CAPI; + + #include "pygi-foreign.h" + +@@ -114,10 +114,15 @@ + Py_RETURN_NONE; + } + +-static PyMethodDef _gi_cairo_functions[] = {}; ++static PyMethodDef _gi_cairo_functions[] = {0,}; + PYGLIB_MODULE_START(_gi_cairo, "_gi_cairo") + { ++#if PY_VERSION_HEX < 0x03000000 + Pycairo_IMPORT; ++#else ++ Pycairo_CAPI = (Pycairo_CAPI_t*) PyCObject_Import("cairo", "CAPI"); ++#endif ++ + if (Pycairo_CAPI == NULL) + return PYGLIB_MODULE_ERROR_RETURN; + +diff -Naur pygobject-2.28.6.orig/gi/pygi-info.c pygobject-2.28.6/gi/pygi-info.c +--- pygobject-2.28.6.orig/gi/pygi-info.c 2011-06-13 13:30:25.000000000 -0300 ++++ pygobject-2.28.6/gi/pygi-info.c 2014-03-04 18:35:32.473899924 -0300 +@@ -162,9 +162,6 @@ + case GI_INFO_TYPE_CONSTANT: + type = &PyGIConstantInfo_Type; + break; +- case GI_INFO_TYPE_ERROR_DOMAIN: +- type = &PyGIErrorDomainInfo_Type; +- break; + case GI_INFO_TYPE_UNION: + type = &PyGIUnionInfo_Type; + break; +@@ -481,7 +478,6 @@ + case GI_INFO_TYPE_INVALID: + case GI_INFO_TYPE_FUNCTION: + case GI_INFO_TYPE_CONSTANT: +- case GI_INFO_TYPE_ERROR_DOMAIN: + case GI_INFO_TYPE_VALUE: + case GI_INFO_TYPE_SIGNAL: + case GI_INFO_TYPE_PROPERTY: +@@ -860,7 +856,6 @@ + case GI_INFO_TYPE_INVALID: + case GI_INFO_TYPE_FUNCTION: + case GI_INFO_TYPE_CONSTANT: +- case GI_INFO_TYPE_ERROR_DOMAIN: + case GI_INFO_TYPE_VALUE: + case GI_INFO_TYPE_SIGNAL: + case GI_INFO_TYPE_PROPERTY: +diff -Naur pygobject-2.28.6.orig/gio/gio-types.defs pygobject-2.28.6/gio/gio-types.defs +--- pygobject-2.28.6.orig/gio/gio-types.defs 2011-06-13 13:33:49.000000000 -0300 ++++ pygobject-2.28.6/gio/gio-types.defs 2014-03-04 18:36:07.950079840 -0300 +@@ -526,7 +526,7 @@ + ) + ) + +-(define-enum MountMountFlags ++(define-flags MountMountFlags + (in-module "gio") + (c-name "GMountMountFlags") + (gtype-id "G_TYPE_MOUNT_MOUNT_FLAGS") +@@ -545,7 +545,7 @@ + ) + ) + +-(define-enum DriveStartFlags ++(define-flags DriveStartFlags + (in-module "gio") + (c-name "GDriveStartFlags") + (gtype-id "G_TYPE_DRIVE_START_FLAGS") +@@ -770,7 +770,7 @@ + ) + ) + +-(define-enum SocketMsgFlags ++(define-flags SocketMsgFlags + (in-module "gio") + (c-name "GSocketMsgFlags") + (gtype-id "G_TYPE_SOCKET_MSG_FLAGS") +diff -Naur pygobject-2.28.6.orig/gobject/gobjectmodule.c pygobject-2.28.6/gobject/gobjectmodule.c +--- pygobject-2.28.6.orig/gobject/gobjectmodule.c 2011-06-13 13:33:49.000000000 -0300 ++++ pygobject-2.28.6/gobject/gobjectmodule.c 2014-03-04 18:36:07.952079793 -0300 +@@ -312,13 +312,6 @@ + pyglib_gil_state_release(state); + } + +-static void +-pyg_object_class_init(GObjectClass *class, PyObject *py_class) +-{ +- class->set_property = pyg_object_set_property; +- class->get_property = pyg_object_get_property; +-} +- + typedef struct _PyGSignalAccumulatorData { + PyObject *callable; + PyObject *user_data; +@@ -484,15 +477,14 @@ + } + + static PyObject * +-add_signals (GType instance_type, PyObject *signals) ++add_signals (GObjectClass *klass, PyObject *signals) + { + gboolean ret = TRUE; +- GObjectClass *oclass; + Py_ssize_t pos = 0; + PyObject *key, *value, *overridden_signals = NULL; ++ GType instance_type = G_OBJECT_CLASS_TYPE (klass); + + overridden_signals = PyDict_New(); +- oclass = g_type_class_ref(instance_type); + while (PyDict_Next(signals, &pos, &key, &value)) { + const gchar *signal_name; + gchar *signal_name_canon, *c; +@@ -530,7 +522,6 @@ + if (!ret) + break; + } +- g_type_class_unref(oclass); + if (ret) + return overridden_signals; + else { +@@ -800,14 +791,12 @@ + } + + static gboolean +-add_properties (GType instance_type, PyObject *properties) ++add_properties (GObjectClass *klass, PyObject *properties) + { + gboolean ret = TRUE; +- GObjectClass *oclass; + Py_ssize_t pos = 0; + PyObject *key, *value; + +- oclass = g_type_class_ref(instance_type); + while (PyDict_Next(properties, &pos, &key, &value)) { + const gchar *prop_name; + GType prop_type; +@@ -873,7 +862,7 @@ + Py_DECREF(slice); + + if (pspec) { +- g_object_class_install_property(oclass, 1, pspec); ++ g_object_class_install_property(klass, 1, pspec); + } else { + PyObject *type, *value, *traceback; + ret = FALSE; +@@ -883,7 +872,7 @@ + g_snprintf(msg, 256, + "%s (while registering property '%s' for GType '%s')", + PYGLIB_PyUnicode_AsString(value), +- prop_name, g_type_name(instance_type)); ++ prop_name, G_OBJECT_CLASS_NAME(klass)); + Py_DECREF(value); + value = PYGLIB_PyUnicode_FromString(msg); + } +@@ -892,11 +881,63 @@ + } + } + +- g_type_class_unref(oclass); + return ret; + } + + static void ++pyg_object_class_init(GObjectClass *class, PyObject *py_class) ++{ ++ PyObject *gproperties, *gsignals, *overridden_signals; ++ PyObject *class_dict = ((PyTypeObject*) py_class)->tp_dict; ++ ++ class->set_property = pyg_object_set_property; ++ class->get_property = pyg_object_get_property; ++ ++ /* install signals */ ++ /* we look this up in the instance dictionary, so we don't ++ * accidentally get a parent type's __gsignals__ attribute. */ ++ gsignals = PyDict_GetItemString(class_dict, "__gsignals__"); ++ if (gsignals) { ++ if (!PyDict_Check(gsignals)) { ++ PyErr_SetString(PyExc_TypeError, ++ "__gsignals__ attribute not a dict!"); ++ return; ++ } ++ if (!(overridden_signals = add_signals(class, gsignals))) { ++ return; ++ } ++ if (PyDict_SetItemString(class_dict, "__gsignals__", ++ overridden_signals)) { ++ return; ++ } ++ Py_DECREF(overridden_signals); ++ ++ PyDict_DelItemString(class_dict, "__gsignals__"); ++ } else { ++ PyErr_Clear(); ++ } ++ ++ /* install properties */ ++ /* we look this up in the instance dictionary, so we don't ++ * accidentally get a parent type's __gproperties__ attribute. */ ++ gproperties = PyDict_GetItemString(class_dict, "__gproperties__"); ++ if (gproperties) { ++ if (!PyDict_Check(gproperties)) { ++ PyErr_SetString(PyExc_TypeError, ++ "__gproperties__ attribute not a dict!"); ++ return; ++ } ++ if (!add_properties(class, gproperties)) { ++ return; ++ } ++ PyDict_DelItemString(class_dict, "__gproperties__"); ++ /* Borrowed reference. Py_DECREF(gproperties); */ ++ } else { ++ PyErr_Clear(); ++ } ++} ++ ++static void + pyg_register_class_init(GType gtype, PyGClassInitFunc class_init) + { + GSList *list; +@@ -1068,7 +1109,7 @@ + */ + static void + pyg_type_add_interfaces(PyTypeObject *class, GType instance_type, +- PyObject *bases, gboolean new_interfaces, ++ PyObject *bases, + GType *parent_interfaces, guint n_parent_interfaces) + { + int i; +@@ -1082,7 +1123,6 @@ + guint k; + PyObject *base = PyTuple_GET_ITEM(bases, i); + GType itype; +- gboolean is_new = TRUE; + const GInterfaceInfo *iinfo; + GInterfaceInfo iinfo_copy; + +@@ -1099,16 +1139,6 @@ + if (!G_TYPE_IS_INTERFACE(itype)) + continue; + +- for (k = 0; k < n_parent_interfaces; ++k) { +- if (parent_interfaces[k] == itype) { +- is_new = FALSE; +- break; +- } +- } +- +- if ((new_interfaces && !is_new) || (!new_interfaces && is_new)) +- continue; +- + iinfo = pyg_lookup_interface_info(itype); + if (!iinfo) { + gchar *error; +@@ -1129,7 +1159,7 @@ + int + pyg_type_register(PyTypeObject *class, const char *type_name) + { +- PyObject *gtype, *gsignals, *gproperties, *overridden_signals; ++ PyObject *gtype; + GType parent_type, instance_type; + GType *parent_interfaces; + guint n_parent_interfaces; +@@ -1216,88 +1246,22 @@ + } + + /* +- * Note: Interfaces to be implemented are searched twice. First +- * we register interfaces that are already implemented by a parent +- * type. The second time, the remaining interfaces are +- * registered, i.e. the ones that are not implemented by a parent +- * type. In between these two loops, properties and signals are +- * registered. It has to be done this way, in two steps, +- * otherwise glib will complain. If registering all interfaces +- * always before properties, you get an error like: +- * +- * ../gobject:121: Warning: Object class +- * test_interface+MyObject doesn't implement property +- * 'some-property' from interface 'TestInterface' +- * +- * If, on the other hand, you register interfaces after +- * registering the properties, you get something like: +- * +- * ../gobject:121: Warning: cannot add interface type +- * `TestInterface' to type `test_interface+MyUnknown', since +- * type `test_interface+MyUnknown' already conforms to +- * interface +- * +- * This looks like a GLib quirk, but no bug has been filed +- * upstream. However we have a unit test for this particular +- * problem, which can be found in test_interfaces.py, class +- * TestInterfaceImpl. ++ * Note, all interfaces need to be registered before the first ++ * g_type_class_ref(), see bug #686149. + * + * See also comment above pyg_type_add_interfaces(). + */ +- pyg_type_add_interfaces(class, instance_type, class->tp_bases, FALSE, ++ pyg_type_add_interfaces(class, instance_type, class->tp_bases, + parent_interfaces, n_parent_interfaces); + +- /* we look this up in the instance dictionary, so we don't +- * accidentally get a parent type's __gsignals__ attribute. */ +- gsignals = PyDict_GetItemString(class->tp_dict, "__gsignals__"); +- if (gsignals) { +- if (!PyDict_Check(gsignals)) { +- PyErr_SetString(PyExc_TypeError, +- "__gsignals__ attribute not a dict!"); +- g_free(parent_interfaces); +- return -1; +- } +- if (!(overridden_signals = add_signals(instance_type, gsignals))) { +- g_free(parent_interfaces); +- return -1; +- } +- if (PyDict_SetItemString(class->tp_dict, "__gsignals__", +- overridden_signals)) { +- g_free(parent_interfaces); +- return -1; +- } +- Py_DECREF(overridden_signals); +- } else { +- PyErr_Clear(); +- } + +- /* we look this up in the instance dictionary, so we don't +- * accidentally get a parent type's __gsignals__ attribute. */ +- gproperties = PyDict_GetItemString(class->tp_dict, "__gproperties__"); +- if (gproperties) { +- if (!PyDict_Check(gproperties)) { +- PyErr_SetString(PyExc_TypeError, +- "__gproperties__ attribute not a dict!"); +- g_free(parent_interfaces); +- return -1; +- } +- if (!add_properties(instance_type, gproperties)) { +- g_free(parent_interfaces); +- return -1; +- } +- PyDict_DelItemString(class->tp_dict, "__gproperties__"); +- /* Borrowed reference. Py_DECREF(gproperties); */ +- } else { +- PyErr_Clear(); ++ gclass = g_type_class_ref(instance_type); ++ if (PyErr_Occurred() != NULL) { ++ g_type_class_unref(gclass); ++ g_free(parent_interfaces); ++ return -1; + } + +- /* Register new interfaces, that are _not_ already defined by +- * the parent type. FIXME: See above. +- */ +- pyg_type_add_interfaces(class, instance_type, class->tp_bases, TRUE, +- parent_interfaces, n_parent_interfaces); +- +- gclass = g_type_class_ref(instance_type); + if (pyg_run_class_init(instance_type, gclass, class)) { + g_type_class_unref(gclass); + g_free(parent_interfaces); +@@ -1306,9 +1270,8 @@ + g_type_class_unref(gclass); + g_free(parent_interfaces); + +- if (gsignals) +- PyDict_DelItemString(class->tp_dict, "__gsignals__"); +- ++ if (PyErr_Occurred() != NULL) ++ return -1; + return 0; + } + +diff -Naur pygobject-2.28.6.orig/gobject/propertyhelper.py pygobject-2.28.6/gobject/propertyhelper.py +--- pygobject-2.28.6.orig/gobject/propertyhelper.py 2011-06-13 13:30:25.000000000 -0300 ++++ pygobject-2.28.6/gobject/propertyhelper.py 2014-03-04 18:36:07.953079770 -0300 +@@ -188,14 +188,16 @@ + return TYPE_STRING + elif type_ == object: + return TYPE_PYOBJECT +- elif isinstance(type_, type) and issubclass(type_, _gobject.GObject): ++ elif (isinstance(type_, type) and ++ issubclass(type_, (_gobject.GObject, ++ _gobject.GEnum))): + return type_.__gtype__ + elif type_ in [TYPE_NONE, TYPE_INTERFACE, TYPE_CHAR, TYPE_UCHAR, +- TYPE_INT, TYPE_UINT, TYPE_BOOLEAN, TYPE_LONG, +- TYPE_ULONG, TYPE_INT64, TYPE_UINT64, TYPE_ENUM, +- TYPE_FLAGS, TYPE_FLOAT, TYPE_DOUBLE, TYPE_POINTER, +- TYPE_BOXED, TYPE_PARAM, TYPE_OBJECT, TYPE_STRING, +- TYPE_PYOBJECT]: ++ TYPE_INT, TYPE_UINT, TYPE_BOOLEAN, TYPE_LONG, ++ TYPE_ULONG, TYPE_INT64, TYPE_UINT64, ++ TYPE_FLOAT, TYPE_DOUBLE, TYPE_POINTER, ++ TYPE_BOXED, TYPE_PARAM, TYPE_OBJECT, TYPE_STRING, ++ TYPE_PYOBJECT]: + return type_ + else: + raise TypeError("Unsupported type: %r" % (type_,)) +@@ -224,6 +226,12 @@ + elif ptype == TYPE_PYOBJECT: + if default is not None: + raise TypeError("object types does not have default values") ++ elif gobject.type_is_a(ptype, TYPE_ENUM): ++ if default is None: ++ raise TypeError("enum properties needs a default value") ++ elif not gobject.type_is_a(default, ptype): ++ raise TypeError("enum value %s must be an instance of %r" % ++ (default, ptype)) + + def _get_minimum(self): + ptype = self.type +@@ -291,7 +299,8 @@ + if ptype in [TYPE_INT, TYPE_UINT, TYPE_LONG, TYPE_ULONG, + TYPE_INT64, TYPE_UINT64, TYPE_FLOAT, TYPE_DOUBLE]: + args = self._get_minimum(), self._get_maximum(), self.default +- elif ptype == TYPE_STRING or ptype == TYPE_BOOLEAN: ++ elif (ptype == TYPE_STRING or ptype == TYPE_BOOLEAN or ++ ptype.is_a(TYPE_ENUM)): + args = (self.default,) + elif ptype == TYPE_PYOBJECT: + args = () +diff -Naur pygobject-2.28.6.orig/gobject/pygobject.c pygobject-2.28.6/gobject/pygobject.c +--- pygobject-2.28.6.orig/gobject/pygobject.c 2011-06-13 13:33:49.000000000 -0300 ++++ pygobject-2.28.6/gobject/pygobject.c 2014-03-04 18:36:07.954079747 -0300 +@@ -991,7 +991,9 @@ + PyObject * + pygobject_new_sunk(GObject *obj) + { +- g_object_set_qdata (obj, pygobject_ref_sunk_key, GINT_TO_POINTER (1)); ++ if (obj) ++ g_object_set_qdata (obj, pygobject_ref_sunk_key, GINT_TO_POINTER (1)); ++ + return pygobject_new_full(obj, TRUE, NULL); + } + +diff -Naur pygobject-2.28.6.orig/Makefile.am pygobject-2.28.6/Makefile.am +--- pygobject-2.28.6.orig/Makefile.am 2011-06-13 13:33:49.000000000 -0300 ++++ pygobject-2.28.6/Makefile.am 2014-03-04 18:36:07.954079747 -0300 +@@ -1,7 +1,11 @@ + ACLOCAL_AMFLAGS = -I m4 + AUTOMAKE_OPTIONS = 1.7 + +-SUBDIRS = docs codegen glib gobject gio examples ++SUBDIRS = docs glib gobject gio examples ++ ++if ENABLE_CODEGEN ++SUBDIRS += codegen ++endif + + if ENABLE_INTROSPECTION + SUBDIRS += gi +diff -Naur pygobject-2.28.6.orig/tests/Makefile.am pygobject-2.28.6/tests/Makefile.am +--- pygobject-2.28.6.orig/tests/Makefile.am 2011-06-13 13:33:49.000000000 -0300 ++++ pygobject-2.28.6/tests/Makefile.am 2014-03-04 18:36:07.955079724 -0300 +@@ -104,6 +104,7 @@ + test-floating.h \ + test-thread.h \ + test-unknown.h \ ++ te_ST@nouppera \ + org.gnome.test.gschema.xml + + EXTRA_DIST += $(TEST_FILES_STATIC) $(TEST_FILES_GI) $(TEST_FILES_GIO) +diff -Naur pygobject-2.28.6.orig/tests/test_gdbus.py pygobject-2.28.6/tests/test_gdbus.py +--- pygobject-2.28.6.orig/tests/test_gdbus.py 2011-06-13 13:33:49.000000000 -0300 ++++ pygobject-2.28.6/tests/test_gdbus.py 2014-03-04 18:36:07.956079701 -0300 +@@ -67,8 +67,10 @@ + + def test_native_calls_async(self): + def call_done(obj, result, user_data): +- user_data['result'] = obj.call_finish(result) +- user_data['main_loop'].quit() ++ try: ++ user_data['result'] = obj.call_finish(result) ++ finally: ++ user_data['main_loop'].quit() + + main_loop = gobject.MainLoop() + data = {'main_loop': main_loop} +diff -Naur pygobject-2.28.6.orig/tests/test_properties.py pygobject-2.28.6/tests/test_properties.py +--- pygobject-2.28.6.orig/tests/test_properties.py 2011-06-13 13:30:25.000000000 -0300 ++++ pygobject-2.28.6/tests/test_properties.py 2014-03-04 18:36:07.956079701 -0300 +@@ -14,6 +14,8 @@ + G_MININT, G_MAXINT, G_MAXUINT, G_MINLONG, G_MAXLONG, \ + G_MAXULONG + ++from gi.repository import Gio ++ + if sys.version_info < (3, 0): + TEST_UTF8 = "\xe2\x99\xa5" + UNICODE_UTF8 = unicode(TEST_UTF8, 'UTF-8') +@@ -34,6 +36,9 @@ + uint64 = gobject.property( + type=TYPE_UINT64, flags=PARAM_READWRITE|PARAM_CONSTRUCT) + ++ enum = gobject.property( ++ type=Gio.SocketType, default=Gio.SocketType.STREAM) ++ + class TestProperties(unittest.TestCase): + def testGetSet(self): + obj = PropertyObject() +@@ -61,8 +66,9 @@ + self.failUnless(pspec.name in ['normal', + 'construct', + 'construct-only', +- 'uint64']) +- self.assertEqual(len(obj), 4) ++ 'uint64', ++ 'enum']) ++ self.assertEqual(len(obj), 5) + + def testNormal(self): + obj = new(PropertyObject, normal="123") +@@ -127,6 +133,34 @@ + (etype, ex) = sys.exc_info()[2:] + self.fail(str(ex)) + ++ def testEnum(self): ++ obj = new(PropertyObject) ++ self.assertEqual(obj.props.enum, Gio.SocketType.STREAM) ++ self.assertEqual(obj.enum, Gio.SocketType.STREAM) ++ obj.enum = Gio.SocketType.DATAGRAM ++ self.assertEqual(obj.props.enum, Gio.SocketType.DATAGRAM) ++ self.assertEqual(obj.enum, Gio.SocketType.DATAGRAM) ++ obj.props.enum = Gio.SocketType.STREAM ++ self.assertEqual(obj.props.enum, Gio.SocketType.STREAM) ++ self.assertEqual(obj.enum, Gio.SocketType.STREAM) ++ obj.props.enum = 2 ++ self.assertEqual(obj.props.enum, Gio.SocketType.DATAGRAM) ++ self.assertEqual(obj.enum, Gio.SocketType.DATAGRAM) ++ obj.enum = 1 ++ self.assertEqual(obj.props.enum, Gio.SocketType.STREAM) ++ self.assertEqual(obj.enum, Gio.SocketType.STREAM) ++ ++ self.assertRaises(TypeError, setattr, obj, 'enum', 'foo') ++ self.assertRaises(TypeError, setattr, obj, 'enum', object()) ++ ++ self.assertRaises(TypeError, gobject.property, type=Gio.SocketType) ++ self.assertRaises(TypeError, gobject.property, type=Gio.SocketType, ++ default=Gio.SocketProtocol.TCP) ++ self.assertRaises(TypeError, gobject.property, type=Gio.SocketType, ++ default=object()) ++ self.assertRaises(TypeError, gobject.property, type=Gio.SocketType, ++ default=1) ++ + def testRange(self): + # kiwi code + def max(c): +@@ -270,8 +304,6 @@ + # self.assertRaises(TypeError, gobject.property, type=bool, default=0) + self.assertRaises(TypeError, gobject.property, type=bool, default='ciao mamma') + self.assertRaises(TypeError, gobject.property, type=bool) +- self.assertRaises(TypeError, gobject.property, type=GEnum) +- self.assertRaises(TypeError, gobject.property, type=GEnum, default=0) + self.assertRaises(TypeError, gobject.property, type=object, default=0) + self.assertRaises(TypeError, gobject.property, type=complex) + self.assertRaises(TypeError, gobject.property, flags=-10) diff --git a/talimatname/genel/p/python-gobject2/talimat b/talimatname/genel/p/python-gobject2/talimat new file mode 100644 index 000000000..80e4d2732 --- /dev/null +++ b/talimatname/genel/p/python-gobject2/talimat @@ -0,0 +1,21 @@ +# Tanım: GLib'in GObject sınıfı için Python 2'nin bağlantılarını sağlar. +# URL: http://www.gnome.org/ +# Paketçi: milisarge +# Gerekler: python-cairo xorg-libxxf86vm gobject-introspection + +isim=python-gobject2 +surum=2.28.6 +devir=1 + +kaynak=( http://ftp.gnome.org/pub/gnome/sources/pygobject/${surum%.*}/pygobject-$surum.tar.xz + pygobject-2.28.6-fixes-1.patch + pygobject-2.16.1-fixdetection.patch) + +derle() { +cd pygobject-$surum +patch -Np1 -i $SRC/pygobject-2.28.6-fixes-1.patch +patch -Np1 -i $SRC/pygobject-2.16.1-fixdetection.patch +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/python-gtk/talimat b/talimatname/genel/p/python-gtk/talimat new file mode 100644 index 000000000..36fe8946e --- /dev/null +++ b/talimatname/genel/p/python-gtk/talimat @@ -0,0 +1,18 @@ +# Tanım: GLib'in GObject sınıfı için Python 2'nin bağlantılarını sağlar. +# URL: http://www.gnome.org/ +# Paketçi: milisarge +# Gerekler: python-gobject2 python-cairo libglade + +isim=python-gtk +surum=2.24.0 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/pygtk/${surum%.*}/pygtk-$surum.tar.bz2) + +derle() { +cd pygtk-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install + +} diff --git a/talimatname/genel/p/python-gtksourceview2/talimat b/talimatname/genel/p/python-gtksourceview2/talimat new file mode 100644 index 000000000..519624e03 --- /dev/null +++ b/talimatname/genel/p/python-gtksourceview2/talimat @@ -0,0 +1,18 @@ +# Tanım: GtkSourceView widget'ı için Python bağları +# URL: http://www.gnome.org/ +# Paketçi: milisarge +# Gerekler: gtksourceview2 python-gtk + +isim=python-gtksourceview2 +surum=2.10.1 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/pygtksourceview/2.10/pygtksourceview-${surum}.tar.bz2) + +derle() { +cd pygtksourceview-$surum +PYTHON=python2 ./configure --prefix=/usr --sysconfdir=/etc \ + --localstatedir=/var --disable-static --disable-docs +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/p/python-httplib2/python-httplib2.cert.patch b/talimatname/genel/p/python-httplib2/python-httplib2.cert.patch new file mode 100644 index 000000000..8683bdda7 --- /dev/null +++ b/talimatname/genel/p/python-httplib2/python-httplib2.cert.patch @@ -0,0 +1,30 @@ +diff -ur httplib2-0.8.orig/python2/httplib2/__init__.py httplib2-0.8/python2/httplib2/__init__.py +--- httplib2-0.8.orig/python2/httplib2/__init__.py 2014-05-01 23:25:52.459852279 +0200 ++++ httplib2-0.8/python2/httplib2/__init__.py 2014-05-01 23:28:08.822391994 +0200 +@@ -190,9 +190,8 @@ + import ca_certs_locater + CA_CERTS = ca_certs_locater.get() + except ImportError: +- # Default CA certificates file bundled with httplib2. +- CA_CERTS = os.path.join( +- os.path.dirname(os.path.abspath(__file__ )), "cacerts.txt") ++ # Use system CA certificates ++ CA_CERTS = "/etc/ssl/certs/ca-certificates.crt" + + # Which headers are hop-by-hop headers by default + HOP_BY_HOP = ['connection', 'keep-alive', 'proxy-authenticate', 'proxy-authorization', 'te', 'trailers', 'transfer-encoding', 'upgrade'] +diff -ur httplib2-0.8.orig/python3/httplib2/__init__.py httplib2-0.8/python3/httplib2/__init__.py +--- httplib2-0.8.orig/python3/httplib2/__init__.py 2013-03-06 21:40:54.000000000 +0100 ++++ httplib2-0.8/python3/httplib2/__init__.py 2014-05-01 23:28:36.822913468 +0200 +@@ -123,9 +123,8 @@ + # Which headers are hop-by-hop headers by default + HOP_BY_HOP = ['connection', 'keep-alive', 'proxy-authenticate', 'proxy-authorization', 'te', 'trailers', 'transfer-encoding', 'upgrade'] + +-# Default CA certificates file bundled with httplib2. +-CA_CERTS = os.path.join( +- os.path.dirname(os.path.abspath(__file__ )), "cacerts.txt") ++# Use system CA certificates ++CA_CERTS = "/etc/ssl/certs/ca-certificates.crt" + + def _get_end2end_headers(response): + hopbyhop = list(HOP_BY_HOP) \ No newline at end of file diff --git a/talimatname/genel/p/python-httplib2/python-httplib2.ssl_hostname.patch b/talimatname/genel/p/python-httplib2/python-httplib2.ssl_hostname.patch new file mode 100644 index 000000000..50494ad9a --- /dev/null +++ b/talimatname/genel/p/python-httplib2/python-httplib2.ssl_hostname.patch @@ -0,0 +1,21 @@ +diff -r 93291649202b python2/httplib2/__init__.py +--- a/python2/httplib2/__init__.py Tue Mar 26 14:17:48 2013 -0400 ++++ b/python2/httplib2/__init__.py Tue Apr 23 10:32:15 2013 +0300 +@@ -1030,7 +1030,7 @@ + raise CertificateHostnameMismatch( + 'Server presented certificate that does not match ' + 'host %s: %s' % (hostname, cert), hostname, cert) +- except ssl_SSLError, e: ++ except (ssl_SSLError, CertificateHostnameMismatch), e: + if sock: + sock.close() + if self.sock: +@@ -1040,7 +1040,7 @@ + # to get at more detailed error information, in particular + # whether the error is due to certificate validation or + # something else (such as SSL protocol mismatch). +- if e.errno == ssl.SSL_ERROR_SSL: ++ if hasattr(e, 'errno') and e.errno == ssl.SSL_ERROR_SSL: + raise SSLHandshakeError(e) + else: + raise \ No newline at end of file diff --git a/talimatname/genel/p/python-httplib2/talimat b/talimatname/genel/p/python-httplib2/talimat new file mode 100644 index 000000000..9372c758b --- /dev/null +++ b/talimatname/genel/p/python-httplib2/talimat @@ -0,0 +1,23 @@ +# Tanım: Birçok özelliği destekleyen kapsamlı HTTP istemci kütüphanesi. +# URL: http://code.google.com/p/httplib2/ +# Paketçi: milisarge +# Gerekler: python + +isim=python-httplib2 +surum=0.9 +devir=1 + +kaynak=( +https://github.com/jcgregorio/httplib2/archive/v${surum}.tar.gz +$isim.ssl_hostname.patch +$isim.cert.patch) + +derle() { + cd httplib2-$surum + # Patch, ref FS#36839 + patch -p1 -i $SRC/$isim.ssl_hostname.patch + # Patch, ref FS#40179 + patch -p1 -i $SRC/$isim.cert.patch + # + python2 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/p/python-keybinder/talimat b/talimatname/genel/p/python-keybinder/talimat new file mode 100644 index 000000000..a6f4808cf --- /dev/null +++ b/talimatname/genel/p/python-keybinder/talimat @@ -0,0 +1,21 @@ +# Tanım: Genel klavye kısayollarını kaydetmek için kullanılan kitaplık - Python 2 bağları. +# URL: https://github.com/engla/keybinder +# Paketçi: milisarge +# Gerekler: keybinder python-gtk gnome-common + +_anaisim=keybinder +isim=python-keybinder +surum=0.3.1 +devir=1 + +kaynak=(https://github.com/engla/${_ananame}/archive/master.zip) + +derle() { + cd "${_ananame}-master" + export PYTHON=/usr/bin/python2 + ./autogen.sh --prefix=/usr + make + make DESTDIR="${PKG}/" install + rm -rf "${PKG}"/usr/lib/{girepository-1.0,libkeybinder*,pkgconfig} + rm -rf "${PKG}"/usr/{include,share} +} diff --git a/talimatname/genel/p/python-levenshtein/talimat b/talimatname/genel/p/python-levenshtein/talimat new file mode 100644 index 000000000..973e782e9 --- /dev/null +++ b/talimatname/genel/p/python-levenshtein/talimat @@ -0,0 +1,15 @@ +# Tanım: Dize düzenleme uzaklıkları ve benzerlikleri hesaplamak için Python uzantısı +# URL: http://pypi.python.org/pypi/python-Levenshtein/ +# Paketçi: Cihan Alkan +# Gerekler: python python-setuptools +# Grup: kütüphane + +isim=python-levenshtein +surum=0.12.0 +devir=1 +kaynak=(https://files.pythonhosted.org/packages/source/p/python-Levenshtein/python-Levenshtein-$surum.tar.gz) + +derle() { + cd python-Levenshtein-$surum + python2 setup.py build install -O1 --prefix=/usr --root="$PKG" +} diff --git a/talimatname/genel/p/python-lxml/talimat b/talimatname/genel/p/python-lxml/talimat new file mode 100644 index 000000000..3f8ec6901 --- /dev/null +++ b/talimatname/genel/p/python-lxml/talimat @@ -0,0 +1,18 @@ +# Tanım: Libxml2 ve libxslt kitaplıkları için Python2 bağlaması. +# URL: http://lxml.de/ +# Paketçi: milisarge +# Gerekler: libxslt python-beautifulsoup3 python-cssselect + +isim=python-lxml +surum=3.7.3 +devir=1 + +kaynak=(https://pypi.io/packages/source/l/lxml/lxml-$surum.tar.gz) + +derle() { + cd lxml-$surum + python2 setup.py install --prefix=/usr --root=$PKG + # Belgeleme + install -d $PKG/usr/share/doc/$isim-$surum + cp -r doc/html $PKG/usr/share/doc/$isim-$surum +} diff --git a/talimatname/genel/p/python-magic/talimat b/talimatname/genel/p/python-magic/talimat new file mode 100644 index 000000000..11ee6b50d --- /dev/null +++ b/talimatname/genel/p/python-magic/talimat @@ -0,0 +1,15 @@ +# Tanım: Magic kütüphanesi için python bağlantısı. +# URL: http://darwinsys.com/file/ +# Paketçi: yakar (aydin@komutan.org) +# Gerekler: python-setuptools + +isim=python-magic +surum=5.29 +devir=1 +kaynak=(ftp://ftp.astron.com/pub/file/file-${surum}.tar.gz) + +derle() { + cd "${SRC}/file-${surum}/python" + python setup.py install --root="${PKG}" --optimize=1 + install -Dm0644 "${SRC}/file-${surum}/COPYING" "${PKG}/usr/share/licenses/${isim}/COPYING" +} diff --git a/talimatname/genel/p/python-mako/talimat b/talimatname/genel/p/python-mako/talimat new file mode 100644 index 000000000..6eadbb417 --- /dev/null +++ b/talimatname/genel/p/python-mako/talimat @@ -0,0 +1,15 @@ +# Tanım: Python ile yazılmış bir şablon kütüphanesi. +# URL: http://www.makotemplates.org/ +# Paketçi: milisarge +# Gerekler: python-setuptools + +isim=python-mako +surum=1.0.1 +devir=1 +kaynak=(https://pypi.python.org/packages/source/M/Mako/Mako-$surum.tar.gz) + +derle() { + cd Mako-$surum + /usr/bin/python2 setup.py build + /usr/bin/python2 setup.py install --prefix=/usr --root=$PKG --optimize=1 +} diff --git a/talimatname/genel/p/python-msgpack/talimat b/talimatname/genel/p/python-msgpack/talimat new file mode 100644 index 000000000..86035f788 --- /dev/null +++ b/talimatname/genel/p/python-msgpack/talimat @@ -0,0 +1,22 @@ +# Tanım: Python için MessagePack seri hale getirici uygulaması +# URL: https://github.com/msgpack/msgpack-python +# Paketçi: Oltulu +# Gerekler: cython python-setuptools +# Grup: kütüphane + +isim=python-msgpack +surum=0.4.8 +devir=1 +kaynak=(https://pypi.io/packages/source/m/msgpack-python/msgpack-python-$surum.tar.gz) + +derle() { + + cd msgpack-python-$surum + python2 setup.py build --build-lib=build/python + find build/python -type f -exec \ + sed -i '1s,^#! \?/usr/bin/\(env \|\)python$,#!/usr/bin/python,' {} \; + + python2 setup.py build --build-lib=build/python \ + install --root="$PKG" --optimize=1 + +} diff --git a/talimatname/genel/p/python-nassl/talimat b/talimatname/genel/p/python-nassl/talimat new file mode 100644 index 000000000..48ead2f8b --- /dev/null +++ b/talimatname/genel/p/python-nassl/talimat @@ -0,0 +1,15 @@ +# Tanım: Python2.7 ve SSLyze için deneysel openssl bağlayıcısı +# URL: http://pypi.python.org/pypi/nassl +# Paketçi: milisarge +# Gerekler: python + +isim=python-nassl +surum=0.15.1 +devir=1 +kaynak=(https://pypi.python.org/packages/88/9b/31de4f1419d310d0c967d2dcd38e880b413c0912433a448866c4db0dcd02/nassl-0.15.1.tar.gz) + +derle() { + cd "$SRC/nassl-$surum" + python2 setup.py build + python2 setup.py install --root="$PKG" --optimize=1 +} diff --git a/talimatname/genel/p/python-netifaces/talimat b/talimatname/genel/p/python-netifaces/talimat new file mode 100644 index 000000000..d1d6146c1 --- /dev/null +++ b/talimatname/genel/p/python-netifaces/talimat @@ -0,0 +1,16 @@ +# Tanım: Python'daki ağ arabirimi bilgilerine erişmek için taşınabilir modül. +# URL: http://alastairs-place.net/netifaces/ +# Paketçi: milisarge +# Gerekler: python-setuptools + +isim=python-netifaces +surum=0.10.4 +devir=1 + +kaynak=( +https://pypi.python.org/packages/source/n/netifaces/netifaces-$surum.tar.gz) + +derle() { + cd netifaces-$surum + python2 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/p/python-notify/talimat b/talimatname/genel/p/python-notify/talimat new file mode 100644 index 000000000..de09cf115 --- /dev/null +++ b/talimatname/genel/p/python-notify/talimat @@ -0,0 +1,22 @@ +# Tanım: Libnotify için bağlayıcı python +# URL: http://www.galago-project.org/ +# Paketçi: milisarge +# Gerekler: libnotify python-gtk dbus-glib + +isim=python-notify +surum=0.1.1 +devir=1 + +kaynak=(http://www.galago-project.org/files/releases/source/notify-python/notify-python-$surum.tar.gz + http://downloads.nutyx.org/files/patchs/$isim/python-notify-0.1.1-fix-gtk-symbols-1.patch + http://downloads.nutyx.org/files/patchs/$isim/libnotify07.patch) + +derle() { + cd notify-python-$surum + patch -p1 < $SRC/libnotify07.patch + patch -Np1 -i ../python-notify-0.1.1-fix-gtk-symbols-1.patch + PYTHON=/usr/bin/python2 ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/p/python-numpy/talimat b/talimatname/genel/p/python-numpy/talimat new file mode 100644 index 000000000..f620f3df4 --- /dev/null +++ b/talimatname/genel/p/python-numpy/talimat @@ -0,0 +1,18 @@ +# Tanım: python bilimsel araç kütüphanesi +# URL: http://numpy.scipy.org/ +# Paketçi: milisarge +# Gerekler: python-setuptools lapack + +isim=python-numpy +surum=1.11.2 +devir=1 + +kaynak=(http://sourceforge.net/projects/numpy/files/NumPy/$surum/numpy-$surum.tar.gz) + +derle() { + cd numpy-$surum + export Atlas=None + export LDFLAGS="$LDFLAGS -shared" + python2 setup.py config_fc --fcompiler=gnu95 build + python2 setup.py config_fc --fcompiler=gnu95 install --prefix=/usr --root=$PKG --optimize=1 +} diff --git a/talimatname/genel/p/python-oauth2/talimat b/talimatname/genel/p/python-oauth2/talimat new file mode 100644 index 000000000..94960ffe2 --- /dev/null +++ b/talimatname/genel/p/python-oauth2/talimat @@ -0,0 +1,17 @@ +# Tanım: OAuth 1.0 istemcileri ve sunucuları oluşturmak için tamamen test edilmiş, soyut bir arayüz. +# URL: https://github.com/simplegeo/python-oauth2 +# Paketçi: milisarge +# Gerekler: python-httplib2 python-setuptools + +isim=python-oauth2 +surum=1.5.211 +devir=1 + +kaynak=( +https://pypi.python.org/packages/source/o/oauth2/oauth2-$surum.tar.gz) + +derle() { + cd oauth2-$surum + python2 setup.py install --prefix=/usr --root=$PKG +} + diff --git a/talimatname/genel/p/python-opengl/talimat b/talimatname/genel/p/python-opengl/talimat new file mode 100644 index 000000000..8a9ca2050 --- /dev/null +++ b/talimatname/genel/p/python-opengl/talimat @@ -0,0 +1,15 @@ +# Tanım: Çapraz platform Python, OpenGL ve ilgili API'lere bağlanır. +# URL: http://pyopengl.sourceforge.net/ +# Paketçi: yakar (aydin@komutan.org) +# Gerekler: freeglut python-setuptools + +isim=python-opengl +surum=3.1.0 +devir=1 + +kaynak=( https://pypi.python.org/packages/source/P/PyOpenGL/PyOpenGL-$surum.tar.gz) + +derle() { + cd PyOpenGL-$surum + python2 setup.py install --prefix=/usr --root=$PKG --optimize=1 +} diff --git a/talimatname/genel/p/python-openssl/talimat b/talimatname/genel/p/python-openssl/talimat new file mode 100644 index 000000000..a28a4f8e6 --- /dev/null +++ b/talimatname/genel/p/python-openssl/talimat @@ -0,0 +1,15 @@ +# Tanım: OpenSSL kütüphanesine Python arabirimi. +# URL: http://pypi.python.org/pypi/pyOpenSSL +# Paketçi: milisarge +# Gerekler: python-cryptography + +isim=python-openssl +surum=0.15.1 +devir=1 +kaynak=(http://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-$surum.tar.gz) + +derle() { + cd pyOpenSSL-$surum + /usr/bin/python2 setup.py build + /usr/bin/python2 setup.py install --root=$PKG --optimize=1 +} diff --git a/talimatname/genel/p/python-paramiko/talimat b/talimatname/genel/p/python-paramiko/talimat new file mode 100644 index 000000000..a6d063a89 --- /dev/null +++ b/talimatname/genel/p/python-paramiko/talimat @@ -0,0 +1,16 @@ +# Tanım: SSH2 protokolünü uygulayan Python modülü +# URL: https://github.com/paramiko/paramiko/ +# Paketçi: milisarge +# Gerekler: python python-crypto python-ecdsa + +isim=python-paramiko +surum=1.15.1 +devir=1 + +kaynak=( +http://pypi.python.org/packages/source/p/paramiko/paramiko-$surum.tar.gz) + +derle() { + cd paramiko-$surum + python2 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/p/python-parted/talimat b/talimatname/genel/p/python-parted/talimat new file mode 100644 index 000000000..e6c3ed2ab --- /dev/null +++ b/talimatname/genel/p/python-parted/talimat @@ -0,0 +1,17 @@ +# Tanım: Libparted'e Python bağları +# URL: https://fedorahosted.org/pyparted/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: parted python + +isim=python-parted +surum=3.10.0 +devir=1 +_isim=pyparted + +kaynak=( https://fedorahosted.org/releases/p/y/${_name}/${_name}-$surum.tar.gz) + +derle() { +cd ${_name}-$surum +python setup.py build +python setup.py install --optimize=1 --root=$PKG +} diff --git a/talimatname/genel/p/python-pcapy/talimat b/talimatname/genel/p/python-pcapy/talimat new file mode 100644 index 000000000..aec82757e --- /dev/null +++ b/talimatname/genel/p/python-pcapy/talimat @@ -0,0 +1,17 @@ +# Tanım: A simplified object-oriented Python wrapper for libpcap +# URL: https://github.com/CoreSecurity/pcapy +# Paketçi: milisarge +# Gerekler: git python-setuptools python libpcap +# Grup: kütüphane + +isim=python-pcapy +surum=git +devir=1 +kaynak=() + +derle() { + git_indir https://github.com/CoreSecurity/pcapy $isim + cd "${SRC}/${isim}" + python2 setup.py install --root="$PKG/" --optimize=1 + install -D -m644 LICENSE "${PKG}/usr/share/licenses/${isim}/LICENSE" +} diff --git a/talimatname/genel/p/python-pexpect/talimat b/talimatname/genel/p/python-pexpect/talimat new file mode 100644 index 000000000..26576379f --- /dev/null +++ b/talimatname/genel/p/python-pexpect/talimat @@ -0,0 +1,14 @@ +# Tanım: Diğer programların otomasyon ve kontrolu için kullanılan python kütüphanesi. +# URL: http://pexpect.readthedocs.org/en/stable/ +# Paketçi: milisarge +# Gerekler: python + +isim=python-pexpect +surum=4.2.1 +devir=1 +kaynak=(https://pypi.python.org/packages/e8/13/d0b0599099d6cd23663043a2a0bb7c61e58c6ba359b2656e6fb000ef5b98/pexpect-$surum.tar.gz) + +derle() { + cd "pexpect-$surum" + python setup.py install --root="$PKG" +} diff --git a/talimatname/genel/p/python-pillow/talimat b/talimatname/genel/p/python-pillow/talimat new file mode 100644 index 000000000..fe640bc4c --- /dev/null +++ b/talimatname/genel/p/python-pillow/talimat @@ -0,0 +1,32 @@ +# Tanım: Python Görüntüleme Kitaplığı (PIL) çatalı +# URL: http://python-imaging.github.io/ +# Paketçi: milisarge +# Gerekler: python python-setuptools lcms libwebp tk sane openjpeg + +isim=python-pillow +surum=4.1.1 +_sanever=2.8.3 +_appisim=Pillow +devir=1 + +kaynak=(https://files.pythonhosted.org/packages/source/P/Pillow/Pillow-$surum.tar.gz + https://github.com/python-pillow/Sane/archive/v$_sanever.tar.gz) + +derle() { + cd $SRC + sed -i "s|os.path.join|'../libImaging', &|" $SRC/Sane-$_sanever/setup.py + cp -r $SRC/Sane-${_sanever} $SRC/${_appname}-$surum/Sane + + cd Pillow-$surum + python2 setup.py install --prefix=/usr --root=$PKG + cd Sane + python2 setup.py install --prefix=/usr --root=$PKG + cd ../libImaging + install -dm755 $PKG/usr/include/python2.7 + install -m644 -t $PKG/usr/include/python2.7 *.h + # rename /bin/*.py to * + cd $PKG/usr/bin + for f in *.py; do + mv $f "${f%.py}2" + done +} diff --git a/talimatname/genel/p/python-pip/talimat b/talimatname/genel/p/python-pip/talimat new file mode 100644 index 000000000..cc6c54d31 --- /dev/null +++ b/talimatname/genel/p/python-pip/talimat @@ -0,0 +1,19 @@ +# Tanım: Python-pip (pypi python paketlerini yüklemek için kolay kurulum değiştirme) +# URL: http://www.pip-installer.org +# Paketçi: milisarge +# Gerekler: python python-setuptools + +isim=python-pip +surum=9.0.1 +devir=1 + +kaynak=(https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz) + +derle() { + cd pip-$surum + python2 setup.py install --prefix=/usr --root=$PKG + + mkdir -p $PKG/usr/share/doc/$isim-$surum + cp -Rf docs/* $PKG/usr/share/doc/$isim-$surum +} + diff --git a/talimatname/genel/p/python-polib/talimat b/talimatname/genel/p/python-polib/talimat new file mode 100644 index 000000000..74f914d1e --- /dev/null +++ b/talimatname/genel/p/python-polib/talimat @@ -0,0 +1,14 @@ +# Tanım: Gettext dosyalarını işlemek için bir kütüphane +# URL: http://polib.readthedocs.org/en/latest/index.html +# Paketçi: milisarge +# Gerekler: python + +isim=python-polib +surum=1.0.4 +devir=1 +kaynak=(https://bitbucket.org/izi/polib/downloads/polib-${surum}.tar.gz) +derle() { +cd polib-$surum +python2 setup.py build +python2 setup.py install --root=$PKG --optimize=1 +} diff --git a/talimatname/genel/p/python-poppler/pypoppler-0.12.1-poppler-0.16.0.patch b/talimatname/genel/p/python-poppler/pypoppler-0.12.1-poppler-0.16.0.patch new file mode 100644 index 000000000..42acdde66 --- /dev/null +++ b/talimatname/genel/p/python-poppler/pypoppler-0.12.1-poppler-0.16.0.patch @@ -0,0 +1,12 @@ +--- poppler.defs.orig 2010-12-30 05:55:07.000000000 +0000 ++++ poppler.defs 2010-12-30 05:55:27.000000000 +0000 +@@ -1794,7 +1794,7 @@ + + (define-method get_text + (of-object "PopplerPage") +- (c-name "poppler_page_get_text") ++ (c-name "poppler_page_get_selected_text") + (return-type "char*") + (parameters + '("PopplerSelectionStyle" "style") + diff --git a/talimatname/genel/p/python-poppler/python-poppler-0.12.1-poppler-0.39.0-changes.patch b/talimatname/genel/p/python-poppler/python-poppler-0.12.1-poppler-0.39.0-changes.patch new file mode 100644 index 000000000..53ae1dd70 --- /dev/null +++ b/talimatname/genel/p/python-poppler/python-poppler-0.12.1-poppler-0.39.0-changes.patch @@ -0,0 +1,20 @@ +--- poppler.defs 2009-09-27 16:07:59.000000000 +0700 ++++ poppler.defs 2015-12-22 16:36:14.000000000 +0600 +@@ -579,16 +579,4 @@ + ) + +-(define-enum Orientation +- (in-module "Poppler") +- (c-name "PopplerOrientation") +- (gtype-id "POPPLER_TYPE_ORIENTATION") +- (values +- '("portrait" "POPPLER_ORIENTATION_PORTRAIT") +- '("landscape" "POPPLER_ORIENTATION_LANDSCAPE") +- '("upsidedown" "POPPLER_ORIENTATION_UPSIDEDOWN") +- '("seascape" "POPPLER_ORIENTATION_SEASCAPE") +- ) +-) +- + (define-enum PageTransitionType + (in-module "Poppler") + diff --git a/talimatname/genel/p/python-poppler/talimat b/talimatname/genel/p/python-poppler/talimat new file mode 100644 index 000000000..16fda9bd9 --- /dev/null +++ b/talimatname/genel/p/python-poppler/talimat @@ -0,0 +1,36 @@ +# Tanım: Poppler için Python 2.x bağları +# URL: https://launchpad.net/poppler-python +# Paketçi: Cihan_Alkan +# Gerekler: python-gtk poppler-glib python-cairo +# Grup: kütüphane + +isim=python-poppler +surum=0.12.1 +devir=1 +kaynak=(https://launchpad.net/poppler-python/trunk/development/+download/pypoppler-$surum.tar.gz + pypoppler-0.12.1-poppler-0.16.0.patch + python-poppler-0.12.1-poppler-0.39.0-changes.patch) + +derle() { + + cd $SRC/pypoppler-$surum + + # poppler 0.16 compat + patch -Np0 -i \ + "$SRC/pypoppler-0.12.1-poppler-0.16.0.patch" + + # poppler 0.18 compat + sed -i "/pixbuf/,/^)/d" poppler.defs + + # poppler 0.39 compat + patch -Np0 -i $SRC/python-poppler-0.12.1-poppler-0.39.0-changes.patch + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var + PYTHON=python + make + + make DESTDIR="$PKG" install + +} diff --git a/talimatname/genel/p/python-protobuf/talimat b/talimatname/genel/p/python-protobuf/talimat new file mode 100644 index 000000000..a0f7cca62 --- /dev/null +++ b/talimatname/genel/p/python-protobuf/talimat @@ -0,0 +1,18 @@ +# Tanım: Google veri değişim biçim aracının python api'si +# URL: http://code.google.com/p/protobuf/ +# Paketçi: milisarge +# Gerekler: protobuf python-setuptools + +_isim=protobuf + +isim=python-protobuf +surum=2.6.1 +devir=1 + +kaynak=(https://github.com/google/protobuf/releases/download/$surum/protobuf-$surum.tar.bz2) + +derle() +{ +cd ${_name}-$surum/python +python2 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/p/python-psutil/talimat b/talimatname/genel/p/python-psutil/talimat new file mode 100644 index 000000000..6020e7f8f --- /dev/null +++ b/talimatname/genel/p/python-psutil/talimat @@ -0,0 +1,17 @@ +# Tanım: Python2 için çapraz platform işlem ve sistem yardımcı programları modülü. +# URL: http://code.google.com/p/psutil/ +# Paketçi: milisarge +# Gerekler: python-setuptools + +isim=python-psutil +surum=2.1.3 +devir=1 + +kaynak=( +https://pypi.python.org/packages/source/p/psutil/psutil-$surum.tar.gz) + +derle() { + cd psutil-$surum + python2 setup.py install --prefix=/usr --root=$PKG +} + diff --git a/talimatname/genel/p/python-ptyprocess/talimat b/talimatname/genel/p/python-ptyprocess/talimat new file mode 100644 index 000000000..f518e6327 --- /dev/null +++ b/talimatname/genel/p/python-ptyprocess/talimat @@ -0,0 +1,14 @@ +# Tanım: Sahte terminal altında altsüreç çalıştırma +# URL: https://github.com/pexpect/ptyprocess +# Paketçi: milisarge +# Gerekler: python python-setuptools + +isim=python-ptyprocess +surum=0.5.1 +devir=1 +kaynak=(https://pypi.python.org/packages/source/p/ptyprocess/ptyprocess-$surum.tar.gz) + +derle() { + cd ptyprocess-$surum + python setup.py install --root="$PKG/" --prefix=/usr --optimize=0 +} diff --git a/talimatname/genel/p/python-pyasn1/talimat b/talimatname/genel/p/python-pyasn1/talimat new file mode 100644 index 000000000..f66e13dc5 --- /dev/null +++ b/talimatname/genel/p/python-pyasn1/talimat @@ -0,0 +1,15 @@ +# Tanım: ASN.1 türleri ve codec bileşenleri. +# URL: http://pypi.python.org/pypi/pyasn1 +# Paketçi: milisarge +# Gerekler: python-setuptools + +isim=python-pyasn1 +_isim=pyasn1 +surum=0.1.9 +devir=1 +kaynak=(http://pypi.python.org/packages/source/p/$_name/$_name-$surum.tar.gz) + +derle() { + cd $_name-$surum + /usr/bin/python2 setup.py install --root=$PKG --optimize=1 +} diff --git a/talimatname/genel/p/python-pyaudio/talimat b/talimatname/genel/p/python-pyaudio/talimat new file mode 100644 index 000000000..74b0cbe36 --- /dev/null +++ b/talimatname/genel/p/python-pyaudio/talimat @@ -0,0 +1,15 @@ +# Tanım: PortAudio için python kütüphanesi +# URL: http://people.csail.mit.edu/hubert/pyaudio +# Paketçi: milisarge +# Gerekler: portaudio python-setuptools + +isim=python-pyaudio +surum=0.2.11 +devir=1 +kaynak=(https://files.pythonhosted.org/packages/source/P/PyAudio/PyAudio-$surum.tar.gz) + +derle() { + cd $SRC/PyAudio-$surum + python setup.py build + python setup.py install --root=$PKG +} diff --git a/talimatname/genel/p/python-pycountry/talimat b/talimatname/genel/p/python-pycountry/talimat new file mode 100644 index 000000000..87f094d6b --- /dev/null +++ b/talimatname/genel/p/python-pycountry/talimat @@ -0,0 +1,16 @@ +# Tanım: ISO ülkesi, alt bölüm, dil, para birimi ve senaryo tanımları ve çevirileri +# URL: http://pypi.python.org/pypi/pycountry +# Paketçi: milisarge +# Gerekler: python-setuptools python-lxml + +isim=python-pycountry +surum=1.5 +devir=1 + +kaynak=( +http://pypi.python.org/packages/source/p/pycountry/pycountry-$surum.tar.gz) + +derle() { + cd pycountry-$surum + python2 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/p/python-pygame/talimat b/talimatname/genel/p/python-pygame/talimat new file mode 100644 index 000000000..3277c6323 --- /dev/null +++ b/talimatname/genel/p/python-pygame/talimat @@ -0,0 +1,16 @@ +# Tanım: Python game-oyun kütüphanesi +# URL: http://www.pygame.org +# Paketçi: milisarge +# Gerekler: python-setuptools python sdl-mixer sdl-ttf sdl-image portmidi + +isim=python-pygame +_isim=pygame +surum=1.9.3 +devir=1 +kaynak=(https://files.pythonhosted.org/packages/source/${_isim::1}/pygame/pygame-$surum.tar.gz) + +derle() { + cd ${_isim}-${surum} + python2 config.py -auto + python2 setup.py install --root="${PKG}" --prefix=/usr +} diff --git a/talimatname/genel/p/python-pygments/talimat b/talimatname/genel/p/python-pygments/talimat new file mode 100644 index 000000000..2c566b8be --- /dev/null +++ b/talimatname/genel/p/python-pygments/talimat @@ -0,0 +1,16 @@ +# Tanım: Python sözdizimi vurgulayıcı +# URL: https://pypi.python.org/pypi/Pygments +# Paketçi: milisarge +# Gerekler: python-setuptools + +isim=python-pygments +surum=1.6 +devir=1 + +kaynak=( +http://pypi.python.org/packages/source/P/Pygments/Pygments-$surum.tar.gz) + +derle() { + cd Pygments-$surum + python2 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/p/python-pyinotify/talimat b/talimatname/genel/p/python-pyinotify/talimat new file mode 100644 index 000000000..e347dedf8 --- /dev/null +++ b/talimatname/genel/p/python-pyinotify/talimat @@ -0,0 +1,25 @@ +# Tanım: Python modülü, inotify ile Linux platformlarındaki dosya sistemleri olaylarını izlemek için kullanılır. +# URL: http://github.com/seb-m/pyinotify +# Paketçi: Cihan_Alkan +# Gerekler: python +# Grup: kütüphane + +isim=python-pyinotify +surum=0.9.6 +devir=1 +kaynak=(https://github.com/seb-m/pyinotify/archive/$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd $SRC/pyinotify-$surum + + python setup.py build + sed \ + -e 's_#!/usr/bin/env python_&2_' \ + -i python2/pyinotify.py + + python setup.py install --root=$PKG -O1 + + install -d $PKG/usr/share/licenses/python2-pyinotify + install -m644 COPYING \ + $PKG/usr/share/licenses/python2-pyinotify +} diff --git a/talimatname/genel/p/python-pyrex/talimat b/talimatname/genel/p/python-pyrex/talimat new file mode 100644 index 000000000..5a11c6c35 --- /dev/null +++ b/talimatname/genel/p/python-pyrex/talimat @@ -0,0 +1,17 @@ +# Tanım: Python modülleri +# URL: http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/ +# Paketçi: Cihan Alkan +# Gerekler: python python-setuptools +# Grup: kütüphane + +isim=python-pyrex +surum=0.9.9 +devir=1 +kaynak=(http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/Pyrex-${surum}.tar.gz) + +derle() { + cd Pyrex-${surum} + python2 setup.py build + + python2 setup.py install -O1 --root="${PKG}" --prefix=/usr +} diff --git a/talimatname/genel/p/python-pythondialog/talimat b/talimatname/genel/p/python-pythondialog/talimat new file mode 100644 index 000000000..b64579198 --- /dev/null +++ b/talimatname/genel/p/python-pythondialog/talimat @@ -0,0 +1,15 @@ +# Tanım: python2 dialog arayüzü +# URL: http://pythondialog.sf.net +# Paketçi: milisarge +# Gerekler: python + +isim=python-pythondialog +_isim=pythondialog +surum=3.4.0 +devir=1 +kaynak=(http://downloads.sourceforge.net/project/${_name}/${_name}/${surum}/python2-${_name}-${surum}.tar.bz2) + +derle() { + cd python2-${_name}-$surum + python2 ./setup.py install --prefix=/usr --root="${PKG}" -O1 +} diff --git a/talimatname/genel/p/python-pytz/talimat b/talimatname/genel/p/python-pytz/talimat new file mode 100644 index 000000000..ef08978bf --- /dev/null +++ b/talimatname/genel/p/python-pytz/talimat @@ -0,0 +1,15 @@ +# Tanım: Python yerel zaman kütüphanesi +# URL: http://pypi.python.org/pypi/pytz +# Paketçi: milisarge +# Gerekler: python python-setuptools + +isim=python-pytz +surum=2017.2 +devir=1 + +kaynak=(https://pypi.python.org/packages/a4/09/c47e57fc9c7062b4e83b075d418800d322caa87ec0ac21e6308bd3a2d519/pytz-2017.2.zip) + +derle() { + cd pytz-$surum + python2 setup.py install --root=$PKG/ +} diff --git a/talimatname/genel/p/python-pyxml/talimat b/talimatname/genel/p/python-pyxml/talimat new file mode 100644 index 000000000..9a474942f --- /dev/null +++ b/talimatname/genel/p/python-pyxml/talimat @@ -0,0 +1,17 @@ +# Tanım: Python XML, selinux-refpolicy için gereklilik +# URL: https://github.com/actmd/PyXML +# Paketçi: Oltulu +# Gerekler: python python-setuptools +# Grup: kütüphane + +isim=python-pyxml +surum=0.8.4 +devir=1 +kaynak=(https://github.com/actmd/PyXML/archive/${surum}.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd $SRC/PyXML-$surum/ + python2 setup.py build + python2 setup.py install --root="$PKG/" --optimize=1 +} + diff --git a/talimatname/genel/p/python-pyyaml/talimat b/talimatname/genel/p/python-pyyaml/talimat new file mode 100644 index 000000000..151d43fc2 --- /dev/null +++ b/talimatname/genel/p/python-pyyaml/talimat @@ -0,0 +1,18 @@ +# Tanım: Yeni nesil YAML ayrıştırıcı ve vericiyi uygulayan Python modülü +# URL: http://pyyaml.org/ +# Paketçi: milisarge +# Gerekler: python python3 yaml + +isim=python-pyyaml +surum=3.11 +devir=1 + +kaynak=(http://pyyaml.org/download/pyyaml/PyYAML-$surum.tar.gz) + +derle() { +cd PyYAML-$surum +python setup.py build +python setup.py install --optimize=1 --root=$PKG +python3 setup.py build +python3 setup.py install --optimize=1 --root=$PKG +} diff --git a/talimatname/genel/p/python-qt4/talimat b/talimatname/genel/p/python-qt4/talimat new file mode 100644 index 000000000..c32df7bc8 --- /dev/null +++ b/talimatname/genel/p/python-qt4/talimat @@ -0,0 +1,25 @@ +# Tanım: Qt4 için bağlayıcı python +# URL: http://www.riverbankcomputing.co.uk/software/pyqt/intro +# Paketçi: milisarge +# Gerekler: dbus-python python-sip qt4 phonon-qt4 + +isim=python-qt4 +surum=4.11.2 +devir=1 + +kaynak=(http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-$surum/PyQt-x11-gpl-$surum.tar.gz) +derle() { +cd PyQt-x11-gpl-$surum + +python2 configure-ng.py \ + -v /usr/share/sip \ + -q /usr/lib/qt4/bin/qmake \ + --confirm-license \ + --qsci-api + +find -name 'Makefile' | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g' +make +make DESTDIR=$PKG INSTALL_ROOT=$PKG install + +install -Dm644 PyQt4.api $PKG/usr/share/qt4/qsci/api/python/PyQt4.api +} diff --git a/talimatname/genel/p/python-qt5/talimat b/talimatname/genel/p/python-qt5/talimat new file mode 100644 index 000000000..5e93a86a9 --- /dev/null +++ b/talimatname/genel/p/python-qt5/talimat @@ -0,0 +1,25 @@ +# Tanım: Qt5 için bağlayıcı pythonu +# URL: http://www.riverbankcomputing.co.uk/software/pyqt/intro +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: dbus-python python-sip qt5 qt5-webkit python-opengl python + +isim=python-qt5 +surum=5.7 +devir=1 + +kaynak=(http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-$surum/PyQt5_gpl-$surum.tar.gz) +derle() { +cd PyQt5_gpl-$surum + +python2 configure.py \ + -q /usr/bin/qmake-qt5 \ + --confirm-license \ + --no-sip-files \ + --qsci-api + +find -name 'Makefile' | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g' +make +make DESTDIR=$PKG INSTALL_ROOT=$PKG install + +install -Dm644 PyQt5.api $PKG/usr/share/qt/qsci/api/python/PyQt5.api +} diff --git a/talimatname/genel/p/python-reportlab/talimat b/talimatname/genel/p/python-reportlab/talimat new file mode 100644 index 000000000..c82fa89f2 --- /dev/null +++ b/talimatname/genel/p/python-reportlab/talimat @@ -0,0 +1,17 @@ +# Tanım: Kanıtlanmış bir endüstri gücü PDF oluşturma çözümü +# URL: http://www.reportlab.org/rl_toolkit.html +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: python python-pillow freetype python-pip + +isim=python-reportlab +surum=3.3.0 +devir=1 + +kaynak=( +https://pypi.python.org/packages/source/r/reportlab/reportlab-$surum.tar.gz) + +derle() { + cd reportlab-$surum + python2 setup.py install --prefix=/usr --root=$PKG --optimize=1 + python2 setup.py tests +} diff --git a/talimatname/genel/p/python-rsvg/talimat b/talimatname/genel/p/python-rsvg/talimat new file mode 100644 index 000000000..b37d5d8eb --- /dev/null +++ b/talimatname/genel/p/python-rsvg/talimat @@ -0,0 +1,19 @@ +# Tanım: Librsvg kütüphanesi için bağlayıcı python. +# URL: http://www.gnome.org +# Paketçi: milisarge +# Gerekler: python-gtk librsvg + +_isim=gnome-python-desktop + +isim=python-rsvg +surum=2.32.0 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/${_name}/${surum%.*}-$surum.tar.bz2) +derle() { +cd ${_name}-$surum +./configure --prefix=/usr +make -C rsvg install DESTDIR=$PKG +install -m755 -d $PKG/usr/share/pygtk/2.0/defs +install -m644 rsvg/rsvg.defs $PKG/usr/share/pygtk/2.0/defs/ +} diff --git a/talimatname/genel/p/python-setproctitle/talimat b/talimatname/genel/p/python-setproctitle/talimat new file mode 100644 index 000000000..c6457c1fe --- /dev/null +++ b/talimatname/genel/p/python-setproctitle/talimat @@ -0,0 +1,21 @@ +# Tanım: Bir python işleminin işlem başlığını değiştirmesine izin verir +# URL: https://github.com/dvarrazzo/py-setproctitle +# Paketçi: Cihan Alkan +# Gerekler: python + +isim=python-setproctitle +surum=1.1.10 +devir=1 + +kaynak=(https://files.pythonhosted.org/packages/source/s/setproctitle/setproctitle-$surum.tar.gz) + + +derle() { + cd setproctitle-$surum + rm -rf ../buildpy2; mkdir ../buildpy2 + python2 setup.py build -b ../buildpy2 + find ../buildpy2 -name \*.py -exec sed -r '1 s|^#!(.*)python$|#!\1python2|' -i {} + + python2 setup.py install --skip-build -O1 --root="$PKG" + install -m0644 -D COPYRIGHT "$PKG/usr/share/licenses/$isim/COPYRIGHT" + python2 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/p/python-setuptools-scm/talimat b/talimatname/genel/p/python-setuptools-scm/talimat new file mode 100644 index 000000000..7b2597499 --- /dev/null +++ b/talimatname/genel/p/python-setuptools-scm/talimat @@ -0,0 +1,18 @@ +# Tanım: Python paketlerindeki scm verilerinin yönetimini sağlayan setuptools eklentisi +# URL: https://github.com/pypa/setuptools_scm +# Paketçi: milisarge +# Gerekler: python sqlite python-setuptools + +isim=python-setuptools-scm +surum=1.15.6 +devir=1 + +kaynak=(https://github.com/pypa/setuptools_scm/archive/v$surum.tar.gz) + +derle() { + export SETUPTOOLS_SCM_PRETEND_VERSION=$surum + cd "$SRC"/setuptools_scm-$surum + python2 setup.py build + python2 setup.py egg_info + python2 setup.py install --root "$PKG" +} diff --git a/talimatname/genel/p/python-setuptools/talimat b/talimatname/genel/p/python-setuptools/talimat new file mode 100644 index 000000000..13891f1e4 --- /dev/null +++ b/talimatname/genel/p/python-setuptools/talimat @@ -0,0 +1,20 @@ +# Tanım: Python paketlerini kolayca indirin, oluşturun, yükleyin, yükseltin ve kaldırın +# URL: https://bitbucket.org/pypa/setuptools +# Paketçi: milisarge +# Gerekler: python sqlite libffi + +isim=python-setuptools +surum=36.0.1 +devir=1 + +kaynak=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${name#*-}-$surum.zip) + +derle() { + cd ${name#*-}-$surum + export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0 + python2 bootstrap.py + python2 setup.py build + python2 setup.py install --prefix=/usr --root=$PKG --optimize=1 + unset SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES + rm $PKG/usr/bin/easy_install +} diff --git a/talimatname/genel/p/python-simplejson/talimat b/talimatname/genel/p/python-simplejson/talimat new file mode 100644 index 000000000..8a04dc4f2 --- /dev/null +++ b/talimatname/genel/p/python-simplejson/talimat @@ -0,0 +1,16 @@ +# Tanım: Python için basit ve hızlı, genişletilebilir JSON kodlayıcı / kod çözücü. +# URL: http://undefined.org/python/#simplejson +# Paketçi: milisarge +# Gerekler: python-setuptools + +isim=python-simplejson +surum=3.6.3 +devir=1 + +kaynak=( +https://pypi.python.org/packages/source/s/simplejson/simplejson-$surum.tar.gz) + +derle() { + cd simplejson-$surum + python2 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/p/python-sip/talimat b/talimatname/genel/p/python-sip/talimat new file mode 100644 index 000000000..a14216e40 --- /dev/null +++ b/talimatname/genel/p/python-sip/talimat @@ -0,0 +1,22 @@ +# Tanım: C ve C ++ kitaplıkları için Python bağlamaları oluşturmayı kolaylaştıran bir araç +# URL: http://www.riverbankcomputing.co.uk/software/sip/intro +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: python + +isim=python-sip +surum=4.18.1 +devir=1 + +kaynak=(http://sourceforge.net/projects/pyqt/files/sip/sip-$surum/sip-$surum.tar.gz ) + +derle() { + cd sip-$surum + python2 configure.py -b /usr/bin \ + -d /usr/lib/python2.7/site-packages \ + -e /usr/include/python2.7 \ + -v /usr/share/sip + make + make DESTDIR=$PKG install + chmod 644 $PKG/usr/lib/python2.7/site-packages/sipdistutils.py +} + diff --git a/talimatname/genel/p/python-six/talimat b/talimatname/genel/p/python-six/talimat new file mode 100644 index 000000000..d572761ec --- /dev/null +++ b/talimatname/genel/p/python-six/talimat @@ -0,0 +1,17 @@ +# Tanım: Python 2 ve 3 uyumluluk programları. +# URL: http://pypi.python.org/pypi/six/ +# Paketçi: milisarge +# Gerekler: python + +isim=python-six +surum=1.7.3 +devir=1 + +kaynak=( +http://pypi.python.org/packages/source/s/six/six-$surum.tar.gz) + +derle() { + cd six-$surum + python2 setup.py check + python2 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/p/python-smmap/talimat b/talimatname/genel/p/python-smmap/talimat new file mode 100644 index 000000000..71eb130e7 --- /dev/null +++ b/talimatname/genel/p/python-smmap/talimat @@ -0,0 +1,16 @@ +# Tanım: python için bellek harita yöneticisinin saf git uygulaması +# URL: https://github.com/gitpython-developers/smmap +# Paketçi: milisarge +# Gerekler: python python-setuptools + +isim=python-smmap +_isim=smmap2 +surum=0.9.0 +devir=1 +kaynak=(https://pypi.org/packages/source/s/${_name}/${_name}-${surum}.tar.gz) + +derle() { + cd "${SRC}/${_name}-${surum}" + python setup.py build + python setup.py install --root=$PKG --optimize=1 +} diff --git a/talimatname/genel/p/python-tweepy/talimat b/talimatname/genel/p/python-tweepy/talimat new file mode 100644 index 000000000..79c8dcf70 --- /dev/null +++ b/talimatname/genel/p/python-tweepy/talimat @@ -0,0 +1,16 @@ +# Tanım: Tüm Twitter API'sına erişmek için bir Python kitaplığı. +# URL: http://pypi.python.org/pypi/tweepy/ +# Paketçi: milisarge +# Gerekler: python-simplejson + +isim=python-tweepy +surum=2.2 +devir=1 + +kaynak=( +http://pypi.python.org/packages/source/t/tweepy/tweepy-$surum.tar.gz) + +derle() { + cd tweepy-$surum + python2 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/p/python-twisted/talimat b/talimatname/genel/p/python-twisted/talimat new file mode 100644 index 000000000..5101d96b4 --- /dev/null +++ b/talimatname/genel/p/python-twisted/talimat @@ -0,0 +1,14 @@ +# Tanım: Python olay odaklı ağ oluşturma çerçevesi. +# URL: http://www.twistedmatrix.com/ +# Paketçi: milisarge +# Gerekler: python python-setuptools python-zope_interface + +isim=python-twisted +surum=15.5.0 +devir=1 +kaynak=(http://pypi.python.org/packages/source/T/Twisted/Twisted-$surum.tar.bz2) + +derle() { + cd Twisted-$surum + /usr/bin/python2 setup.py install --root=$PKG +} diff --git a/talimatname/genel/p/python-typing/talimat b/talimatname/genel/p/python-typing/talimat new file mode 100644 index 000000000..be0f41429 --- /dev/null +++ b/talimatname/genel/p/python-typing/talimat @@ -0,0 +1,15 @@ +# Tanım: Python için yazım ipuçları +# URL: https://pypi.python.org/pypi/typing/ +# Paketçi: milisarge +# Gerekler: python-setuptools python + +isim=python-typing +surum=3.6.1 +devir=1 +kaynak=(https://pypi.python.org/packages/17/75/3698d7992a828ad6d7be99c0a888b75ed173a9280e53dbae67326029b60e/typing-3.6.1.tar.gz) + +derle() { + cd "$SRC/typing-$surum" + python2 setup.py build + python2 setup.py install --prefix=/usr --root="$PKG" --optimize=1 +} diff --git a/talimatname/genel/p/python-urwid/talimat b/talimatname/genel/p/python-urwid/talimat new file mode 100644 index 000000000..260442bef --- /dev/null +++ b/talimatname/genel/p/python-urwid/talimat @@ -0,0 +1,16 @@ +# Tanım: Urwid, Curses tabanlı bir Python kullanıcı arabirimi kütüphanesi. +# URL: http://excess.org/urwid/ +# Paketçi: milisarge +# Gerekler: python-setuptools + +isim=python-urwid +surum=1.2.1 +devir=1 + +kaynak=( +https://pypi.python.org/packages/source/u/urwid/urwid-$surum.tar.gz) + +derle() { + cd urwid-$surum + python2 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/p/python-virtualenv/talimat b/talimatname/genel/p/python-virtualenv/talimat new file mode 100644 index 000000000..fcd58c1c2 --- /dev/null +++ b/talimatname/genel/p/python-virtualenv/talimat @@ -0,0 +1,15 @@ +# Tanım: İzole edilmiş Python ortamları yaratmak için kullanılan araç. +# URL: https://virtualenv.pypa.io/ +# Paketçi: milisarge +# Gerekler: python + +isim=python-virtualenv +surum=15.1.0 +devir=1 + +kaynak=(https://pypi.python.org/packages/d4/0c/9840c08189e030873387a73b90ada981885010dd9aea134d6de30cd24cb8/virtualenv-15.1.0.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd virtualenv-$surum + python2 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/p/python-vte/talimat b/talimatname/genel/p/python-vte/talimat new file mode 100644 index 000000000..b27e13cc1 --- /dev/null +++ b/talimatname/genel/p/python-vte/talimat @@ -0,0 +1,37 @@ +# Tanım: VTE widget seti için Python bağları +# URL: http://developer.gnome.org/arch/gnome/widgets/vte.html +# Paketçi: milisarge +# Gerekler: vte vala + +isim=python-vte +surum=0.28.2 +devir=1 +kaynak=(ftp://ftp.gnome.org/pub/gnome/sources/vte/${surum%.*}/vte-$surum.tar.xz ) + +derle() { + cd vte-$surum + + ./configure --prefix=/usr \ + --libexecdir=/usr/lib/$isim \ + --disable-static \ + --disable-debugging \ + --enable-python \ + --disable-gtk-doc \ + --with-xft2 \ + --with-pangox + + make + make DESTDIR=$PKG install + + + rm -rf $PKG/usr/lib/libvte.la + rm -rf $PKG/usr/lib/libvte.so* + rm -rf $PKG/usr/lib/libvte.so.9.2800.2 + rm -rf $PKG/usr/lib/pkgconfig/ + rm -rf $PKG/usr/lib/vte/ + rm -rf $PKG/usr/include + rm -rf $PKG/usr/share + rm -rf $PKG/usr/bin + rm -rf $PKG/usr/{share}/{gtk-doc,locale} + rm -rf $PKG/usr/lib/vte/gnome-pty-helper +} diff --git a/talimatname/genel/p/python-xdg/talimat b/talimatname/genel/p/python-xdg/talimat new file mode 100644 index 000000000..2cccfba63 --- /dev/null +++ b/talimatname/genel/p/python-xdg/talimat @@ -0,0 +1,15 @@ +# Tanım: FreeDesktop standartlarına erişmek için kullanılan Python kütüphanesi +# URL: http://freedesktop.org/wiki/Software/pyxdg +# Paketçi: geantbrun at gmail dot com +# Gerekler: python + +isim=python-xdg +surum=0.25 +devir=1 + +kaynak=(http://people.freedesktop.org/~takluyver/pyxdg-$surum.tar.gz) + +derle() { + cd pyxdg-$surum + python2 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/p/python-xlib/talimat b/talimatname/genel/p/python-xlib/talimat new file mode 100644 index 000000000..da14fd433 --- /dev/null +++ b/talimatname/genel/p/python-xlib/talimat @@ -0,0 +1,16 @@ +# Tanım: Python için tamamen işlevsel bir X istemci kitaplığı programları +# URL: https://github.com/python-xlib/python-xlib +# Paketçi: Cihan Alkan +# Gerekler: python python-six python-setuptools +# Grup: kütüphane + +isim=python-xlib +surum=0.20 +devir=1 + +kaynak=(https://github.com/python-xlib/python-xlib/releases/download/$surum/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + python2 setup.py install --root="$PKG" +} diff --git a/talimatname/genel/p/python-yaml/talimat b/talimatname/genel/p/python-yaml/talimat new file mode 100644 index 000000000..c52265bcf --- /dev/null +++ b/talimatname/genel/p/python-yaml/talimat @@ -0,0 +1,14 @@ +# Tanım: python için yaml ayrıştırıcı +# URL: http://pyyaml.org/wiki/PyYAML +# Paketçi: milisarge +# Gerekler: python + +isim=python-yaml +surum=3.12 +devir=1 +kaynak=(http://pyyaml.org/download/pyyaml/PyYAML-$surum.tar.gz) + +derle() { + cd PyYAML-$surum + python2 setup.py install --root=$PKG +} diff --git a/talimatname/genel/p/python-zope_interface/talimat b/talimatname/genel/p/python-zope_interface/talimat new file mode 100644 index 000000000..18ed2ccad --- /dev/null +++ b/talimatname/genel/p/python-zope_interface/talimat @@ -0,0 +1,14 @@ +# Tanım: Zope3 arayüz kütüphanesi. +# URL: http://pypi.python.org/pypi/zope.interface/ +# Paketçi: milisarge +# Gerekler: python python-setuptools + +isim=python-zope_interface +surum=4.1.3 +devir=1 +kaynak=(http://pypi.python.org/packages/source/z/zope.interface/zope.interface-$surum.tar.gz) + +derle() { + cd zope.interface-$surum + /usr/bin/python2 setup.py install --root=$PKG --prefix=/usr +} diff --git a/talimatname/genel/p/python/python.okubeni b/talimatname/genel/p/python/python.okubeni new file mode 100644 index 000000000..5ea722781 --- /dev/null +++ b/talimatname/genel/p/python/python.okubeni @@ -0,0 +1 @@ +configure uses pkgconfig to find libffi. There is a circular dependency here: Pkgconfig requires Glib which requires Python 2. there is a circular dependency with the Tk package as it requires Xorg to be installed but parts of Xorg depend on Python diff --git a/talimatname/genel/p/python/python.png b/talimatname/genel/p/python/python.png new file mode 100644 index 000000000..ca4a3d85f Binary files /dev/null and b/talimatname/genel/p/python/python.png differ diff --git a/talimatname/genel/p/python/talimat b/talimatname/genel/p/python/talimat new file mode 100644 index 000000000..dd3a5ff54 --- /dev/null +++ b/talimatname/genel/p/python/talimat @@ -0,0 +1,43 @@ +# Tanım: Sonraki nesil python üst düzey betik dili +# URL: URL: http://www.python.org +# Paketçi: milisarge +# Gerekler: libffi sqlite + +_pybasever=2.7 + +isim=python +surum=2.7.11 +devir=1 + +kaynak=( +http://www.python.org/ftp/python/$surum/Python-$surum.tar.xz +python.png) + + +derle() { + cd Python-$surum + ./configure --prefix=/usr \ + --with-system-expat \ + --with-system-ffi \ + --enable-shared \ + --enable-unicode=ucs4 + make + make DESTDIR=$PKG install + chmod -v 755 $PKG/usr/lib/libpython2.7.so.1.0 + + # Part of python3 + rm -f $PKG/usr/bin/2to3 + + mkdir -p $PKG/usr/share/applications + echo "[Desktop Entry] +Categories=Development;Documentation +Exec=xdg-open file:///usr/share/doc/python-$surum/index.html +Icon=python +StartupNotify=false +Terminal=false +Type=Application +Name=Python Documentation +Name[tr]=Dokumentasyon Python" > $PKG/usr/share/applications/python.desktop + install -Dm644 $SRC/$isim.png \ + $PKG/usr/share/icons/hicolor/48x48/apps/$isim.png +} diff --git a/talimatname/genel/p/python3-astroid/talimat b/talimatname/genel/p/python3-astroid/talimat new file mode 100644 index 000000000..a5a93be1a --- /dev/null +++ b/talimatname/genel/p/python3-astroid/talimat @@ -0,0 +1,16 @@ +# Tanım: Python 3 Logilab projeleri tarafından kullanılan faydalı modüller. +# URL: https://bitbucket.org/logilab/astroid +# Paketçi: yasarciv67@gmail.com +# Gerekler: python3 python3-six python3-setuptools + +isim=python3-astroid +surum=1.4.5 +devir=1 + +kaynak=(https://pypi.python.org/packages/source/a/astroid/astroid-${surum}.tar.gz) + +derle() { + cd astroid-$surum + python3 setup.py check + python3 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/p/python3-beautifulsoup4/talimat b/talimatname/genel/p/python3-beautifulsoup4/talimat new file mode 100644 index 000000000..14f05f333 --- /dev/null +++ b/talimatname/genel/p/python3-beautifulsoup4/talimat @@ -0,0 +1,15 @@ +# Tanım: Ekran sıyırma gibi hızlı dönüş projeleri için tasarlanmış bir Python HTML / XML ayrıştırıcı +# URL: http://www.crummy.com/software/BeautifulSoup/index.html +# Paketçi: milisarge +# Gerekler: python3 python3-setuptools + +isim=python3-beautifulsoup4 +surum=4.6.0 +devir=1 + +kaynak=(http://www.crummy.com/software/BeautifulSoup/bs4/download/${surum%.*}-$surum.tar.gz) + +derle() { + cd beautifulsoup4-$surum + python3 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/p/python3-cairo/python3-cairo-1.10.0-waf-python3.4.patch b/talimatname/genel/p/python3-cairo/python3-cairo-1.10.0-waf-python3.4.patch new file mode 100644 index 000000000..a7d17bb5d Binary files /dev/null and b/talimatname/genel/p/python3-cairo/python3-cairo-1.10.0-waf-python3.4.patch differ diff --git a/talimatname/genel/p/python3-cairo/talimat b/talimatname/genel/p/python3-cairo/talimat new file mode 100644 index 000000000..1ea9a0569 --- /dev/null +++ b/talimatname/genel/p/python3-cairo/talimat @@ -0,0 +1,19 @@ +# Tanım: Cairo kütüphanesi için Python3 konnektörü. +# URL: http://www.cairographics.org/ +# Paketçi:alihan-ozturk28@hotmail.com +# Gerekler: python3 cairo + +isim=python3-cairo +surum=1.10.0 +devir=1 + +kaynak=(http://cairographics.org/releases/pycairo-$surum.tar.bz2 + python3-cairo-1.10.0-waf-python3.4.patch) + +derle() { + cd pycairo-$surum + patch -i ../python3-cairo-1.10.0-waf-python3.4.patch + PYTHON=python3 ./waf configure --prefix=/usr + ./waf build + ./waf install --destdir=$PKG +} diff --git a/talimatname/genel/p/python3-cffi/talimat b/talimatname/genel/p/python3-cffi/talimat new file mode 100644 index 000000000..f4d65dfdf --- /dev/null +++ b/talimatname/genel/p/python3-cffi/talimat @@ -0,0 +1,16 @@ +# Tanım: Python çağıran C kodu için Yabancı Fonksiyon Arayüzü. +# URL: http://cffi.readthedocs.org/ +# Paketçi: milisarge +# Gerekler: libffi python3-cparser +# Grup: kütüphane + +isim=python3-cffi +_isim=cffi +surum=1.11.5 +devir=1 +kaynak=(http://pypi.python.org/packages/source/c/$_isim/$_isim-$surum.tar.gz) + +derle() { + cd $_isim-$surum + /usr/bin/python3 setup.py install --root=$PKG --optimize=1 +} diff --git a/talimatname/genel/p/python3-cparser/talimat b/talimatname/genel/p/python3-cparser/talimat new file mode 100644 index 000000000..959563f76 --- /dev/null +++ b/talimatname/genel/p/python3-cparser/talimat @@ -0,0 +1,22 @@ +# Tanım: C ayrıştırıcı ve AST jeneratörü Python ile yazılmış. +# URL: https://github.com/eliben/pycparser +# Paketçi: Cihan_Alkan +# Gerekler: python3-setuptools +# Grup: kütüphane + +isim=python3-cparser +_isim=pycparser +surum=2.18 +devir=1 +kaynak=(https://github.com/eliben/$_isim/archive/release_v$surum.zip) + +derle() { + cd $_isim-release_v$surum + /usr/bin/python3 setup.py build + + cd pycparser + /usr/bin/python3 _build_tables.py + cd - + + /usr/bin/python3 setup.py install --root=$PKG --optimize=1 +} diff --git a/talimatname/genel/p/python3-cryptography/talimat b/talimatname/genel/p/python3-cryptography/talimat new file mode 100644 index 000000000..11dcae263 --- /dev/null +++ b/talimatname/genel/p/python3-cryptography/talimat @@ -0,0 +1,17 @@ +# Tanım: Şifreleme tariflerini ve ilkelleri Python geliştiricilerine sunacak şekilde tasarlanmış bir paket +# URL: http://pypi.python.org/pypi/cryptography +# Paketçi: Cihan_Alkan +# Gerekler: python3-six python3-cffi python3-enum34 python3-pyasn1 +# Grup: kütüphane + +isim=python3-cryptography +_isim=cryptography +surum=2.2.2 +devir=1 +kaynak=(https://pypi.io/packages/source/c/cryptography/cryptography-$surum.tar.gz) + +derle() { + cd $_isim-$surum + /usr/bin/python3 setup.py build + /usr/bin/python3 setup.py install --root=$PKG --optimize=1 +} diff --git a/talimatname/genel/p/python3-cssselect/talimat b/talimatname/genel/p/python3-cssselect/talimat new file mode 100644 index 000000000..251c85c0d --- /dev/null +++ b/talimatname/genel/p/python3-cssselect/talimat @@ -0,0 +1,15 @@ +# Tanım: CSS3 Seçicilerini ayrıştıran ve XPath 1.0'a çeviren bir Python3 kitaplığı. +# URL: http://pypi.python.org/pypi/cssselect +# Paketçi: milisarge +# Gerekler: python3 + +isim=python3-cssselect +surum=1.0.1 +devir=1 + +kaynak=(https://pypi.python.org/packages/77/ff/9c865275cd19290feba56344eba570e719efb7ca5b34d67ed12b22ebbb0d/cssselect-$surum.tar.gz) + +derle() { + cd cssselect-$surum + python3 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/p/python3-distutils-extra/talimat b/talimatname/genel/p/python3-distutils-extra/talimat new file mode 100644 index 000000000..0e31a2a12 --- /dev/null +++ b/talimatname/genel/p/python3-distutils-extra/talimat @@ -0,0 +1,14 @@ +# Tanım: Python3 derleme sistemi +# URL: https://launchpad.net/python-distutils-extra +# Paketçi: milisarge +# Gerekler: python3 python3-setuptools intltool + +isim=python3-distutils-extra +surum=2.40 +devir=1 +kaynak=(https://launchpad.net/ubuntu/+archive/primary/+files/python-distutils-extra_2.40.tar.xz) + +derle() { + cd python-distutils-extra-$surum + python3 setup.py install --root="$PKG/" +} diff --git a/talimatname/genel/p/python3-django/talimat b/talimatname/genel/p/python3-django/talimat new file mode 100644 index 000000000..aa4d6e500 --- /dev/null +++ b/talimatname/genel/p/python3-django/talimat @@ -0,0 +1,21 @@ +# Tanım: python3 django web framework +# URL: https://www.djangoproject.com/ +# Paketçi: milisarge +# Gerekler: python3-setuptools python3 + +isim=python3-django +surum=1.11.2 +devir=1 + +kaynak=(https://pypi.python.org/packages/c0/31/4bffd9183066eea645430114419c30b030b599320da8246701b81c6a78d2/Django-1.11.2.tar.gz) + +derle() { + cd Django-$surum + python3 setup.py build + python3 setup.py install --prefix=/usr --root=$PKG --optimize=1 + ln -s django-admin.py "$PKG"/usr/bin/django-admin3.py + ln -s django-admin "$PKG"/usr/bin/django-admin3 + install -Dm644 extras/django_bash_completion "$PKG"/usr/share/bash-completion/completions/django-admin.py + ln -s django-admin.py "$PKG"/usr/share/bash-completion/completions/django-admin + ln -s django-admin.py "$PKG"/usr/share/bash-completion/completions/manage.py +} diff --git a/talimatname/genel/p/python3-enum34/talimat b/talimatname/genel/p/python3-enum34/talimat new file mode 100644 index 000000000..a84277991 --- /dev/null +++ b/talimatname/genel/p/python3-enum34/talimat @@ -0,0 +1,17 @@ +# Tanım: Python 3.4 Enum backported +# URL: https://pypi.python.org/pypi/enum34 +# Paketçi: milisarge +# Gerekler: python3 python3-setuptools +# Grup: kütüphane + +isim=python3-enum34 +_isim=enum34 +surum=1.1.6 +devir=1 +kaynak=(https://pypi.python.org/packages/bf/3e/31d502c25302814a7c2f1d3959d2a3b3f78e509002ba91aea64993936876/enum34-1.1.6.tar.gz) + +derle() { + cd "$SRC/$_name-$surum" + python3 setup.py install --root="$PKG" --optimize=1 + install -Dm644 enum/LICENSE "$PKG/usr/share/licenses/$isim/LICENSE" +} diff --git a/talimatname/genel/p/python3-geoip/talimat b/talimatname/genel/p/python3-geoip/talimat new file mode 100644 index 000000000..b81ae581e --- /dev/null +++ b/talimatname/genel/p/python3-geoip/talimat @@ -0,0 +1,17 @@ +# Tanım: GeoIP aramaları için Python3 API +# URL: https://pypi.python.org/pypi/pygeoip/ +# Paketçi: milisarge +# Gerekler: python3 python3-setuptools + +isim=python3-geoip +surum=1.3.2 +devir=1 +_isim=pygeoip + +kaynak=(https://pypi.python.org/packages/source/G/GeoIP/GeoIP-$surum.tar.gz) + +derle() { + cd GeoIP-$surum + python3 setup.py build + python3 setup.py install --optimize=1 --root=$PKG +} diff --git a/talimatname/genel/p/python3-gitdb/talimat b/talimatname/genel/p/python3-gitdb/talimat new file mode 100644 index 000000000..858ec90b1 --- /dev/null +++ b/talimatname/genel/p/python3-gitdb/talimat @@ -0,0 +1,15 @@ +# Tanım: python için gitdb nesne kütüphanesi +# URL: http://pyyaml.org/wiki/PyYAML +# Paketçi: milisarge +# Gerekler: python3 python3-setuptools python3-smmap + +isim=python3-gitdb +_isim=gitdb +surum=0.6.4 +devir=1 +kaynak=(https://files.pythonhosted.org/packages/source/${_name:0:1}/${_name}/${_name}-${surum}.tar.gz) + +derle() { + cd "${SRC}/${_name}-${surum}" + python3 setup.py install --root=$PKG --optimize=1 +} diff --git a/talimatname/genel/p/python3-gitpython/talimat b/talimatname/genel/p/python3-gitpython/talimat new file mode 100644 index 000000000..87a75d546 --- /dev/null +++ b/talimatname/genel/p/python3-gitpython/talimat @@ -0,0 +1,16 @@ +# Tanım: python için Git kütüphanesi +# URL: http://pyyaml.org/wiki/PyYAML +# Paketçi: milisarge +# Gerekler: python3 python3-setuptools + +isim=python3-gitpython +_isim=GitPython +_name2=gitpython +surum=2.1.3 +devir=1 +kaynak=(https://files.pythonhosted.org/packages/source/g/${_name2}/${_name}-${surum}.tar.gz) + +derle() { + cd "${SRC}/${_name}-${surum}" + python3 setup.py install --root=$PKG --optimize=1 +} diff --git a/talimatname/genel/p/python3-gobject/talimat b/talimatname/genel/p/python3-gobject/talimat new file mode 100644 index 000000000..0562607b6 --- /dev/null +++ b/talimatname/genel/p/python3-gobject/talimat @@ -0,0 +1,21 @@ +# Tanım: GLib'in GObject sınıfı için Python 2'nin bağlantılarını sağlar. +# URL: http://www.gnome.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: python3 python3-cairo gobject-introspection xorg-libxxf86vm libffi + +isim=python3-gobject +surum=3.18.2 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/pygobject/${surum%.*}/pygobject-$surum.tar.xz) + +derle() { +cd pygobject-$surum +mkdir python3 +pushd python3 +../configure --prefix=/usr \ +--with-python=/usr/bin/python3 +make +popd +make DESTDIR=$PKG -C python3 install +} diff --git a/talimatname/genel/p/python3-lxml/talimat b/talimatname/genel/p/python3-lxml/talimat new file mode 100644 index 000000000..1605d7a0b --- /dev/null +++ b/talimatname/genel/p/python3-lxml/talimat @@ -0,0 +1,15 @@ +# Tanım: Libxml2 ve libxslt kitaplıkları için Python3 bağlaması. +# URL: http://lxml.de/ +# Paketçi: milisarge +# Gerekler: libxslt python3-beautifulsoup4 python3-cssselect + +isim=python3-lxml +surum=3.8.0 +devir=1 + +kaynak=(https://pypi.io/packages/source/l/lxml/lxml-$surum.tar.gz) + +derle() { + cd lxml-$surum + python3 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/p/python3-magic/talimat b/talimatname/genel/p/python3-magic/talimat new file mode 100644 index 000000000..fed0981db --- /dev/null +++ b/talimatname/genel/p/python3-magic/talimat @@ -0,0 +1,15 @@ +# Tanım: Magic kütüphanesi için python bağlantısı. +# URL: http://darwinsys.com/file/ +# Paketçi: yakar (aydin@komutan.org) +# Gerekler: python3 python3-setuptools + +isim=python3-magic +surum=5.29 +devir=1 +kaynak=(ftp://ftp.astron.com/pub/file/file-${surum}.tar.gz) + +derle() { + cd "${SRC}/file-${surum}/python" + python3 setup.py install --root="${PKG}" --optimize=1 + install -Dm0644 "${SRC}/file-${surum}/COPYING" "${PKG}/usr/share/licenses/${isim}/COPYING" +} diff --git a/talimatname/genel/p/python3-mprpc/talimat b/talimatname/genel/p/python3-mprpc/talimat new file mode 100644 index 000000000..fc5966a2c --- /dev/null +++ b/talimatname/genel/p/python3-mprpc/talimat @@ -0,0 +1,16 @@ +# Tanım: Hızlı MessagePack RPC kütüphanesi +# URL: https://github.com/studio-ousia/mprpc +# Paketçi: milisarge +# Gerekler: python3 python3-setuptools + +isim=python3-mprpc +_isim=mprpc +surum=0.1.14 +devir=1 + +kaynak=(https://github.com/studio-ousia/mprpc/archive/v0.1.14.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd $_name-$surum + python3 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/p/python3-multipledispatch/talimat b/talimatname/genel/p/python3-multipledispatch/talimat new file mode 100644 index 000000000..99f5a29ac --- /dev/null +++ b/talimatname/genel/p/python3-multipledispatch/talimat @@ -0,0 +1,15 @@ +# Tanım: Multiple dispatch implementation in Python +# URL: https://github.com/mrocklin/multipledispatch +# Paketçi: milisarge +# Gerekler: python3 python3-setuptools + +isim=python3-multipledispatch +surum=0.4.8 +devir=1 +kaynak=(https://github.com/mrocklin/multipledispatch/archive/$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd "${SRC}"/multipledispatch-$surum + python3 setup.py build + python3 setup.py install --skip-build --prefix=/usr --root="$PKG" --optimize=1 +} diff --git a/talimatname/genel/p/python3-numpy/talimat b/talimatname/genel/p/python3-numpy/talimat new file mode 100644 index 000000000..ff7213141 --- /dev/null +++ b/talimatname/genel/p/python3-numpy/talimat @@ -0,0 +1,18 @@ +# Tanım: python3 bilimsel araç kütüphanesi +# URL: http://numpy.scipy.org/ +# Paketçi: milisarge +# Gerekler: python3-setuptools lapack + +isim=python3-numpy +surum=1.11.2 +devir=1 + +kaynak=(http://sourceforge.net/projects/numpy/files/NumPy/$surum/numpy-$surum.tar.gz) + +derle() { + cd numpy-$surum + export Atlas=None + export LDFLAGS="$LDFLAGS -shared" + python3 setup.py config_fc --fcompiler=gnu95 build + python3 setup.py config_fc --fcompiler=gnu95 install --prefix=/usr --root=$PKG --optimize=1 +} diff --git a/talimatname/genel/p/python3-opengl/talimat b/talimatname/genel/p/python3-opengl/talimat new file mode 100644 index 000000000..fabe719ee --- /dev/null +++ b/talimatname/genel/p/python3-opengl/talimat @@ -0,0 +1,15 @@ +# Tanım: Çapraz platform Python, OpenGL ve ilgili API'lere bağlanır. +# URL: http://pyopengl.sourceforge.net/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: python3 freeglut python3-setuptools + +isim=python3-opengl +surum=3.1.0 +devir=1 + +kaynak=( https://pypi.python.org/packages/source/P/PyOpenGL/PyOpenGL-$surum.tar.gz) + +derle() { + cd PyOpenGL-$surum + python3 setup.py install --prefix=/usr --root=$PKG --optimize=1 +} diff --git a/talimatname/genel/p/python3-openssl/talimat b/talimatname/genel/p/python3-openssl/talimat new file mode 100644 index 000000000..60ab464f0 --- /dev/null +++ b/talimatname/genel/p/python3-openssl/talimat @@ -0,0 +1,15 @@ +# Tanım: OpenSSL kütüphanesine Python arabirimi. +# URL: http://pypi.python.org/pypi/pyOpenSSL +# Paketçi: Cihan_Alkan +# Gerekler: python3-cryptography + +isim=python3-openssl +surum=18.0.0 +devir=1 +kaynak=(https://github.com/pyca/pyopenssl/archive/${surum}.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd pyopenssl-$surum + /usr/bin/python3 setup.py build + /usr/bin/python3 setup.py install --root=$PKG --optimize=1 --skip-build +} diff --git a/talimatname/genel/p/python3-parted/talimat b/talimatname/genel/p/python3-parted/talimat new file mode 100644 index 000000000..e3dd5932c --- /dev/null +++ b/talimatname/genel/p/python3-parted/talimat @@ -0,0 +1,17 @@ +# Tanım: Libparted'e Python bağları +# URL: https://fedorahosted.org/pyparted/ +# Paketçi: milisarge +# Gerekler: parted python3 + +isim=python3-parted +surum=3.10.7 +devir=1 +_isim=pyparted + +kaynak=(https://github.com/rhinstaller/${_name}/archive/v${surum}.tar.gz) + +derle() { + cd ${_name}-$surum + python3 setup.py build + python3 setup.py install --optimize=1 --root=$PKG +} diff --git a/talimatname/genel/p/python3-pexpect/talimat b/talimatname/genel/p/python3-pexpect/talimat new file mode 100644 index 000000000..739981f03 --- /dev/null +++ b/talimatname/genel/p/python3-pexpect/talimat @@ -0,0 +1,14 @@ +# Tanım: Diğer programların otomasyon ve kontrolu için kullanılan python3 kütüphanesi. +# URL: http://pexpect.readthedocs.org/en/stable/ +# Paketçi: milisarge +# Gerekler: python3 + +isim=python3-pexpect +surum=4.2.1 +devir=1 +kaynak=(https://pypi.python.org/packages/e8/13/d0b0599099d6cd23663043a2a0bb7c61e58c6ba359b2656e6fb000ef5b98/pexpect-$surum.tar.gz) + +derle() { + cd "pexpect-$surum" + python3 setup.py install --root="$PKG" +} diff --git a/talimatname/genel/p/python3-pillow/talimat b/talimatname/genel/p/python3-pillow/talimat new file mode 100644 index 000000000..b07c37f0a --- /dev/null +++ b/talimatname/genel/p/python3-pillow/talimat @@ -0,0 +1,32 @@ +# Tanım: Python Görüntüleme Kitaplığı (PIL) çatalı +# URL: http://python-imaging.github.io/ +# Paketçi: milisarge +# Gerekler: python3 python3-setuptools lcms libwebp tk sane openjpeg + +isim=python3-pillow +surum=4.2.1 +_sanever=2.8.3 +_appisim=Pillow +devir=1 + +kaynak=(https://files.pythonhosted.org/packages/source/P/$_appname/$_appname-$surum.tar.gz + https://github.com/python-pillow/Sane/archive/v$_sanever.tar.gz) + +derle() { + cd $SRC + sed -i "s|os.path.join|'../libImaging', &|" $SRC/Sane-$_sanever/setup.py + cp -r $SRC/Sane-${_sanever} $SRC/${_appname}-$surum/Sane + + cd Pillow-$surum + python3 setup.py install --prefix=/usr --root=$PKG + cd Sane + python3 setup.py install --prefix=/usr --root=$PKG + cd ../libImaging + install -dm755 $PKG/usr/include/python3.5m + install -m644 -t $PKG/usr/include/python3.5m *.h + + cd $PKG/usr/bin + for f in *.py; do + mv $f "${f%.py}2" + done +} diff --git a/talimatname/genel/p/python3-pip/talimat b/talimatname/genel/p/python3-pip/talimat new file mode 100644 index 000000000..526afad74 --- /dev/null +++ b/talimatname/genel/p/python3-pip/talimat @@ -0,0 +1,19 @@ +# Tanım: Python-pip (pypi python paketlerini yüklemek için kolay kurulum değiştirme) +# URL: http://www.pip-installer.org +# Paketçi: milisarge +# Gerekler: python3 python3-setuptools + +isim=python3-pip +surum=9.0.1 +devir=1 + +kaynak=(https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz) + +derle() { + cd pip-$surum + python3 setup.py install --prefix=/usr --root=$PKG + + mkdir -p $PKG/usr/share/doc/$isim-$surum + cp -Rf docs/* $PKG/usr/share/doc/$isim-$surum +} + diff --git a/talimatname/genel/p/python3-psutil/talimat b/talimatname/genel/p/python3-psutil/talimat new file mode 100644 index 000000000..f8108c4b3 --- /dev/null +++ b/talimatname/genel/p/python3-psutil/talimat @@ -0,0 +1,17 @@ +# Tanım: Python3 için çapraz platform işlem ve sistem yardımcı programları modülü. +# URL: http://code.google.com/p/psutil/ +# Paketçi: milisarge +# Gerekler: python3-setuptools + +isim=python3-psutil +surum=2.1.3 +devir=1 + +kaynak=( +https://pypi.python.org/packages/source/p/psutil/psutil-$surum.tar.gz) + +derle() { + cd psutil-$surum + python3 setup.py install --prefix=/usr --root=$PKG +} + diff --git a/talimatname/genel/p/python3-pyasn1/talimat b/talimatname/genel/p/python3-pyasn1/talimat new file mode 100644 index 000000000..b89dd225f --- /dev/null +++ b/talimatname/genel/p/python3-pyasn1/talimat @@ -0,0 +1,15 @@ +# Tanım: Python 3 için ASN.1 kütüphanesi +# URL: https://pypi.io/packages/source/p/pyasn1 +# Paketçi: Cihan_Alkan +# Gerekler: python3-setuptools +# Grup: kütüphane + +isim=python3-pyasn1 +surum=0.4.2 +devir=1 +kaynak=(https://pypi.io/packages/source/p/pyasn1/pyasn1-$surum.tar.gz) + +derle() { + cd pyasn1-${surum} + python3 setup.py install --root="${PKG}" +} diff --git a/talimatname/genel/p/python3-pyaudio/talimat b/talimatname/genel/p/python3-pyaudio/talimat new file mode 100644 index 000000000..0376737ad --- /dev/null +++ b/talimatname/genel/p/python3-pyaudio/talimat @@ -0,0 +1,15 @@ +# Tanım: PortAudio için python3 kütüphanesi +# URL: http://people.csail.mit.edu/hubert/pyaudio +# Paketçi: milisarge +# Gerekler: portaudio python3-setuptools + +isim=python3-pyaudio +surum=0.2.11 +devir=1 +kaynak=(https://files.pythonhosted.org/packages/source/P/PyAudio/PyAudio-$surum.tar.gz) + +derle() { + cd $SRC/PyAudio-$surum + python3 setup.py build + python3 setup.py install --root=$PKG +} diff --git a/talimatname/genel/p/python3-pylint/talimat b/talimatname/genel/p/python3-pylint/talimat new file mode 100644 index 000000000..22172bfc9 --- /dev/null +++ b/talimatname/genel/p/python3-pylint/talimat @@ -0,0 +1,18 @@ +# Tanım: Hataları ve kalitesiz işaretleri arayan Python kodunu analiz eder +# URL: http://pylint.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: python3-astroid python3-setuptools python3-six + +isim=python3-pylint +surum=1.6.4 +devir=1 + +#kaynak=(http://pypi.python.org/packages/source/p/pylint/pylint-${surum}.tar.gz) +kaynak=() + +derle() { + git clone https://github.com/PyCQA/pylint.git + cd pylint + python3 setup.py check + python3 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/p/python3-pyrr/talimat b/talimatname/genel/p/python3-pyrr/talimat new file mode 100644 index 000000000..22b34f7e5 --- /dev/null +++ b/talimatname/genel/p/python3-pyrr/talimat @@ -0,0 +1,14 @@ +# Tanım: Numpy i kullanarak 3D matematik fonksiyon kütüphanesi +# URL: https://github.com/adamlwgriffiths/Pyrr +# Paketçi: milisarge +# Gerekler: python3 python3-setuptools python3-multipledispatch python3-numpy + +isim=python3-pyrr +surum=0.9.2 +devir=1 +kaynak=(https://github.com/adamlwgriffiths/Pyrr/archive/${surum}.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd "$SRC/Pyrr-$surum" + python3 setup.py install --root="$PKG/" --optimize=1 +} diff --git a/talimatname/genel/p/python3-pythondialog/talimat b/talimatname/genel/p/python3-pythondialog/talimat new file mode 100644 index 000000000..fdc79a72c --- /dev/null +++ b/talimatname/genel/p/python3-pythondialog/talimat @@ -0,0 +1,15 @@ +# Tanım: python3 dialog arayüzü +# URL: http://pythondialog.sf.net +# Paketçi: milisarge +# Gerekler: python3 + +isim=python3-pythondialog +_isim=pythondialog +surum=3.4.0 +devir=1 +kaynak=(http://downloads.sourceforge.net/project/${_name}/${_name}/${surum}/python3-${_name}-${surum}.tar.bz2) + +derle() { + cd "${SRC}/${_name}-${surum}" + python3 ./setup.py install --prefix=/usr --root="${PKG}" -O1 +} diff --git a/talimatname/genel/p/python3-pytz/talimat b/talimatname/genel/p/python3-pytz/talimat new file mode 100644 index 000000000..2903515f3 --- /dev/null +++ b/talimatname/genel/p/python3-pytz/talimat @@ -0,0 +1,15 @@ +# Tanım: Python yerel zaman kütüphanesi +# URL: http://pypi.python.org/pypi/pytz +# Paketçi: milisarge +# Gerekler: python3 python3-setuptools + +isim=python3-pytz +surum=2017.2 +devir=1 + +kaynak=(https://pypi.python.org/packages/a4/09/c47e57fc9c7062b4e83b075d418800d322caa87ec0ac21e6308bd3a2d519/pytz-2017.2.zip) + +derle() { + cd pytz-$surum + python3 setup.py install --root=$PKG/ +} diff --git a/talimatname/genel/p/python3-qt5/talimat b/talimatname/genel/p/python3-qt5/talimat new file mode 100644 index 000000000..80d4e869c --- /dev/null +++ b/talimatname/genel/p/python3-qt5/talimat @@ -0,0 +1,25 @@ +# Tanım: Qt5 için bağlayıcı python +# URL: https://sourceforge.net/projects/pyqt/f +# Paketçi: milisarge +# Gerekler: dbus-python python3-sip qt5 qt5-webkit python3-opengl python3 qt5-webengine + +isim=python3-qt5 +surum=5.9 +devir=1 + +kaynak=(http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-$surum/PyQt5_gpl-$surum.tar.gz) +derle() { +cd PyQt5_gpl-$surum + +python3 configure.py \ + -q /usr/bin/qmake-qt5 \ + --confirm-license \ + --no-sip-files \ + --qsci-api + +find -name 'Makefile' | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g' +make +make DESTDIR=$PKG INSTALL_ROOT=$PKG install + +install -Dm644 PyQt5.api $PKG/usr/share/qt/qsci/api/python/PyQt5.api +} diff --git a/talimatname/genel/p/python3-reportlab/talimat b/talimatname/genel/p/python3-reportlab/talimat new file mode 100644 index 000000000..998006250 --- /dev/null +++ b/talimatname/genel/p/python3-reportlab/talimat @@ -0,0 +1,17 @@ +# Tanım: Kanıtlanmış bir endüstri gücü PDF oluşturma çözümü +# URL: http://www.reportlab.org/rl_toolkit.html +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: python3 python3-pillow freetype python3-pip + +isim=python3-reportlab +surum=3.3.0 +devir=1 + +kaynak=( +https://pypi.python.org/packages/source/r/reportlab/reportlab-$surum.tar.gz) + +derle() { + cd reportlab-$surum + python3 setup.py install --prefix=/usr --root=$PKG + python3 setup.py tests +} diff --git a/talimatname/genel/p/python3-setuptools-scm/talimat b/talimatname/genel/p/python3-setuptools-scm/talimat new file mode 100644 index 000000000..5d05cd8b7 --- /dev/null +++ b/talimatname/genel/p/python3-setuptools-scm/talimat @@ -0,0 +1,18 @@ +# Tanım: Python paketlerindeki scm verilerinin yönetimini sağlayan setuptools eklentisi +# URL: https://github.com/pypa/setuptools_scm +# Paketçi: milisarge +# Gerekler: python3 sqlite python3-setuptools + +isim=python3-setuptools-scm +surum=1.15.6 +devir=1 + +kaynak=(https://github.com/pypa/setuptools_scm/archive/v$surum.tar.gz) + +derle() { + export SETUPTOOLS_SCM_PRETEND_VERSION=$surum + cd "$SRC"/setuptools_scm-$surum + python3 setup.py build + python3 setup.py egg_info + python3 setup.py install --root "$PKG" +} diff --git a/talimatname/genel/p/python3-setuptools/talimat b/talimatname/genel/p/python3-setuptools/talimat new file mode 100644 index 000000000..e055b08e9 --- /dev/null +++ b/talimatname/genel/p/python3-setuptools/talimat @@ -0,0 +1,20 @@ +# Tanım: Python paketlerini kolayca indirin, oluşturun, yükleyin, yükseltin ve kaldırın +# URL: https://bitbucket.org/pypa/setuptools +# Paketçi: milisarge +# Gerekler: python3 sqlite libffi + +isim=python3-setuptools +surum=36.0.1 +devir=1 + +kaynak=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${name#*-}-$surum.zip) + +derle() { + cd ${name#*-}-$surum + export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0 + python3 bootstrap.py + python3 setup.py build + python3 setup.py install --prefix=/usr --root=$PKG --optimize=1 + unset SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES + rm $PKG/usr/bin/easy_install +} diff --git a/talimatname/genel/p/python3-sip/talimat b/talimatname/genel/p/python3-sip/talimat new file mode 100644 index 000000000..4b7785960 --- /dev/null +++ b/talimatname/genel/p/python3-sip/talimat @@ -0,0 +1,22 @@ +# Tanım: C ve C ++ kitaplıkları için Python bağlamaları oluşturmayı kolaylaştıran bir araç +# URL: http://www.riverbankcomputing.co.uk/software/sip/intro +# Paketçi: milisarge +# Gerekler: python3 + +isim=python3-sip +surum=4.19.3 +devir=1 + +kaynak=(http://sourceforge.net/projects/pyqt/files/sip/sip-$surum/sip-$surum.tar.gz ) + +derle() { + cd sip-$surum + python3 configure.py -b /usr/bin \ + -d /usr/lib/python3.5/site-packages \ + -e /usr/include/python3.5* \ + -v /usr/share/sip + make + make DESTDIR=$PKG install + chmod 644 $PKG/usr/lib/python3.5/site-packages/sipdistutils.py +} + diff --git a/talimatname/genel/p/python3-six/talimat b/talimatname/genel/p/python3-six/talimat new file mode 100644 index 000000000..41173d432 --- /dev/null +++ b/talimatname/genel/p/python3-six/talimat @@ -0,0 +1,18 @@ +# Tanım: Python3 uyumluluk programları. +# URL: http://pypi.python.org/pypi/six/ +# Paketçi: milisarge +# Gerekler: python + +isim=python3-six +surum=1.7.3 +devir=1 + +kaynak=( +http://pypi.python.org/packages/source/s/six/six-$surum.tar.gz) + +derle() { + cd six-$surum + python3 setup.py check + python3 setup.py install --prefix=/usr --root=$PKG +} + diff --git a/talimatname/genel/p/python3-smmap/talimat b/talimatname/genel/p/python3-smmap/talimat new file mode 100644 index 000000000..ebfc8a93f --- /dev/null +++ b/talimatname/genel/p/python3-smmap/talimat @@ -0,0 +1,16 @@ +# Tanım: python için bellek harita yöneticisinin saf git uygulaması +# URL: https://github.com/gitpython-developers/smmap +# Paketçi: milisarge +# Gerekler: python3 python3-setuptools + +isim=python3-smmap +_isim=smmap2 +surum=0.9.0 +devir=1 +kaynak=(https://pypi.org/packages/source/s/${_name}/${_name}-${surum}.tar.gz) + +derle() { + cd "${SRC}/${_name}-${surum}" + python3 setup.py build + python3 setup.py install --root=$PKG --optimize=1 +} diff --git a/talimatname/genel/p/python3-thrift/talimat b/talimatname/genel/p/python3-thrift/talimat new file mode 100644 index 000000000..34ac78450 --- /dev/null +++ b/talimatname/genel/p/python3-thrift/talimat @@ -0,0 +1,14 @@ +# Tanım: python3 için thrift kütüphanesi +# URL: https://thrift.apache.org/ +# Paketçi: milisarge +# Gerekler: python3 python3-setuptools thrift + +isim=python3-thrift +surum=0.10.0 +devir=1 +kaynak=(https://pypi.python.org/packages/a3/ea/84a41e03f1ab14fb314c8bcf1c451090efa14c5cdfb9797d1079f502b54e/thrift-0.10.0.zip) + +derle() { + cd "thrift-${surum}" + python3 setup.py install --root=$PKG --optimize=1 +} diff --git a/talimatname/genel/p/python3-virtualenv/talimat b/talimatname/genel/p/python3-virtualenv/talimat new file mode 100644 index 000000000..d5835d073 --- /dev/null +++ b/talimatname/genel/p/python3-virtualenv/talimat @@ -0,0 +1,17 @@ +# Tanım: İzole edilmiş Python ortamları yaratmak için kullanılan araç. +# URL: https://virtualenv.pypa.io/ +# Paketçi: milisarge +# Gerekler: python3 + +isim=python3-virtualenv +surum=14.0.5 +devir=1 + +kaynak=( +http://pypi.python.org/packages/source/v/virtualenv/virtualenv-$surum.tar.gz) + +derle() { + cd virtualenv-$surum + python3 setup.py install --prefix=/usr --root=$PKG +} + diff --git a/talimatname/genel/p/python3-xdg/talimat b/talimatname/genel/p/python3-xdg/talimat new file mode 100644 index 000000000..a8fcb6ee8 --- /dev/null +++ b/talimatname/genel/p/python3-xdg/talimat @@ -0,0 +1,15 @@ +# Tanım: FreeDesktop standartlarına erişmek için kullanılan Python3 kütüphanesi +# URL: http://freedesktop.org/wiki/Software/pyxdg +# Paketçi: geantbrun at gmail dot com +# Gerekler: python3 + +isim=python3-xdg +surum=0.25 +devir=1 + +kaynak=(http://people.freedesktop.org/~takluyver/pyxdg-$surum.tar.gz) + +derle() { + cd pyxdg-$surum + python3 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/p/python3-yaml/talimat b/talimatname/genel/p/python3-yaml/talimat new file mode 100644 index 000000000..e033cc526 --- /dev/null +++ b/talimatname/genel/p/python3-yaml/talimat @@ -0,0 +1,14 @@ +# Tanım: python için yaml ayrıştırıcı +# URL: http://pyyaml.org/wiki/PyYAML +# Paketçi: milisarge +# Gerekler: python3 + +isim=python3-yaml +surum=3.12 +devir=1 +kaynak=(http://pyyaml.org/download/pyyaml/PyYAML-$surum.tar.gz) + +derle() { + cd PyYAML-$surum + python3 setup.py install --root=$PKG +} diff --git a/talimatname/genel/p/python3/python3.okubeni b/talimatname/genel/p/python3/python3.okubeni new file mode 100644 index 000000000..5ea722781 --- /dev/null +++ b/talimatname/genel/p/python3/python3.okubeni @@ -0,0 +1 @@ +configure uses pkgconfig to find libffi. There is a circular dependency here: Pkgconfig requires Glib which requires Python 2. there is a circular dependency with the Tk package as it requires Xorg to be installed but parts of Xorg depend on Python diff --git a/talimatname/genel/p/python3/python3.png b/talimatname/genel/p/python3/python3.png new file mode 100644 index 000000000..ca4a3d85f Binary files /dev/null and b/talimatname/genel/p/python3/python3.png differ diff --git a/talimatname/genel/p/python3/talimat b/talimatname/genel/p/python3/talimat new file mode 100644 index 000000000..c84631a6f --- /dev/null +++ b/talimatname/genel/p/python3/talimat @@ -0,0 +1,68 @@ +# Tanım: Sonraki nesil python üst düzey betik dili +# URL: http://www.python.org +# Paketçi: milisarge +# Gerekler: sqlite + +isim=python3 +surum=3.5.1 +devir=1 + +kaynak=( +http://www.python.org/ftp/python/$surum/Python-$surum.tar.xz +python3.png) + +docsurum=3.5.0a3 + +derle() { + cd Python-$surum + ./configure --prefix=/usr \ + --enable-shared \ + --with-system-expat \ + --with-system-ffi \ + --without-ensurepip + make + make DESTDIR=$PKG install + + chmod -v 755 $PKG/usr/lib/libpython3.5m.so + chmod -v 755 $PKG//usr/lib/libpython3.so + +# Install all HTML Docs files with desktop menu integration + + install -v -dm755 $PKG/usr/share/doc/$isim-$docversion/html + cd $SRC + wget --no-check-certificate -c https://www.python.org/ftp/python/doc/${docversion:0:5}/python-${docversion}-docs-html.tar.bz2 + tar --strip-components=1 \ + --no-same-owner \ + --no-same-permissions \ + -C $PKG/usr/share/doc/$isim-$docversion/html \ + -xvf python-$docversion-docs-html.tar.bz2 + + find $PKG/usr/share/doc/$isim-$docversion -type d -exec chmod 0755 {} \; + find $PKG/usr/share/doc/$isim-$docversion -type f -exec chmod 0644 {} \; + + mkdir -p $PKG/usr/share/applications + echo "[Desktop Entry] +Categories=Development;Documentation +Exec=xdg-open file:///usr/share/doc/python3-$docversion/html/index.html +Icon=python3 +StartupNotify=false +Terminal=false +Type=Application +Name=Python 3 Documentation +Name[fr]=Documentation Python 3" > $PKG/usr/share/applications/python3.desktop + install -Dm644 $SRC/$isim.png \ + $PKG/usr/share/icons/hicolor/48x48/apps/$isim.png +} +doc () { +cd $PKG +bsdtar -cf \ +bsdtar -cf \ +$PKGMK_PACKAGE_DIR/$isim.doc#$surum-any.mps \ +usr/share/doc/$isim-$docversion \ +usr/share/applications/$isim.desktop \ +usr/share/icons/hicolor/48x48/apps/$isim.png + +rm -r usr/share/{doc,applications/$isim.desktop,icons/hicolor/48x48/apps/$isim.png} + +} + diff --git a/talimatname/genel/p/pytwodict/talimat b/talimatname/genel/p/pytwodict/talimat new file mode 100644 index 000000000..7b614be59 --- /dev/null +++ b/talimatname/genel/p/pytwodict/talimat @@ -0,0 +1,18 @@ +# Tanım: Python için basit iki yönlü sıralı sözlük +# URL: https://github.com/MrS0m30n3/twodict +# Paketçi: Cihan_Alkan +# Gerekler: python python3 python-setuptools python3-setuptools +# Gruplar: kütüphane + +isim=pytwodict +surum=1.2 +devir=1 + +kaynak=(https://github.com/MrS0m30n3/twodict/archive/1.2.tar.gz::$isim-$surum.tar.gz) + +derle() { +cd twodict-$surum + install -Dm644 LICENSE "$PKG/usr/share/licenses/$isim/LICENSE" + python setup.py install --root="$PKG" --optimize=1 + python3 setup.py install --root="$PKG" --optimize=1 +} diff --git a/talimatname/genel/p/pyurllibs/talimat b/talimatname/genel/p/pyurllibs/talimat new file mode 100644 index 000000000..565b74859 --- /dev/null +++ b/talimatname/genel/p/pyurllibs/talimat @@ -0,0 +1,24 @@ +# Tanım: İş parçacıklı bağlantı havuzu ve dosya postası desteğiyle HTTP kitaplığı +# URL: https://github.com/shazow/urllib3 +# Paketçi: Cihan_Alkan +# Gerekler: python python3 python-setuptools python3-setuptools +# Grup: kütüphane + +isim=pyurllibs +surum=1.22 +devir=1 + +kaynak=(https://github.com/shazow/urllib3/archive/$surum.tar.gz::urllib3-$surum.tar.gz) + +derle() { + cp -a urllib3-$surum{,-py3} + + cd "$SRC"/urllib3-$surum + python setup.py build + python setup.py install --root="$PKG" --optimize=1 --skip-build + + cd "$SRC"/urllib3-$surum-py3 + python3 setup.py build + + python3 setup.py install --root="$PKG" --optimize=1 --skip-build +} diff --git a/talimatname/genel/p/pywget/talimat b/talimatname/genel/p/pywget/talimat new file mode 100644 index 000000000..56ab6f9da --- /dev/null +++ b/talimatname/genel/p/pywget/talimat @@ -0,0 +1,16 @@ +# Tanım: Wget python bağlayıcı kütüphane +# URL: http://bitbucket.org/techtonik/e19779610914 +# Paketçi: Cihan_Alkan +# Gerekler: python python-setuptools python3 python3-setuptools +# Grup: kütüphane + +isim=pywget +surum=3.2 +devir=1 +kaynak=(https://bitbucket.org/techtonik/python-wget/get/$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd techtonik-python-wget-e19779610914 + python setup.py install --root="$PKG/" --optimize=1 + python3 setup.py install --root="$PKG/" --optimize=1 +} diff --git a/talimatname/genel/p/pyxapp/talimat b/talimatname/genel/p/pyxapp/talimat new file mode 100644 index 000000000..1ea33da77 --- /dev/null +++ b/talimatname/genel/p/pyxapp/talimat @@ -0,0 +1,24 @@ +# Tanım: Python Xapp Kütüphanesi +# URL: https://github.com/linuxmint/python-xapp +# Paketçi: Cihan_Alkan +# Gerekler: python python3 python-setuptools python3-setuptools +# Grup: kütüphane + +isim=pyxapp +surum=1.0.1 +devir=1 + +kaynak=(https://github.com/linuxmint/python-xapp/archive/$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cp -a python-xapp-$surum{,-py3} + + cd "$SRC"/python-xapp-$surum + python setup.py build + python setup.py install --root="$PKG" --optimize=1 + + cd "$SRC"/python-xapp-$surum-py3 + python3 setup.py build + + python3 setup.py install --root="$PKG" --optimize=1 +} diff --git a/talimatname/genel/q/qbs/talimat b/talimatname/genel/q/qbs/talimat new file mode 100644 index 000000000..028a21ed7 --- /dev/null +++ b/talimatname/genel/q/qbs/talimat @@ -0,0 +1,23 @@ +# Tanım: Çapraz platform oluşturma aracı +# URL: https://wiki.qt.io/Qbs +# Paketçi: Cihan_Alkan +# Gerekler: qt5 +# Grup: geliştirme + +isim=qbs +surum=1.10.0 +devir=1 + +kaynak=(https://github.com/qbs/qbs/archive/v$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd qbs-$surum + qmake-qt5 QBS_INSTALL_PREFIX=/usr \ + QBS_LIBEXEC_INSTALL_DIR=/usr/lib/qbs \ + QBS_RELATIVE_LIBEXEC_PATH=../lib/qbs \ + CONFIG+=qbs_enable_project_file_updates \ + qbs.pro + make + + INSTALL_ROOT="$PKG" make install +} diff --git a/talimatname/genel/q/qca-qt5/talimat b/talimatname/genel/q/qca-qt5/talimat new file mode 100644 index 000000000..e02d8637c --- /dev/null +++ b/talimatname/genel/q/qca-qt5/talimat @@ -0,0 +1,25 @@ +# Tanım: Qt5 Şifreleme Mimarisi +# URL : http://delta.affinix.com/qca/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: qt5 nss cmake doxygen + +isim=qca-qt5 +surum=2.1.1 +devir=1 + +kaynak=(http://download.kde.org/stable/qca/$surum/src/qca-$surum.tar.xz) + +derle() { +cd qca-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_TESTS=OFF \ + -DQCA_SUFFIX=qt5 \ + -DQCA_INSTALL_IN_QT_PREFIX=ON + +make +make DESTDIR=$PKG install + + +rm $PKG/usr/lib/qt5/mkspecs/features/crypto.prf +} + diff --git a/talimatname/genel/q/qca/talimat b/talimatname/genel/q/qca/talimat new file mode 100644 index 000000000..56406407a --- /dev/null +++ b/talimatname/genel/q/qca/talimat @@ -0,0 +1,23 @@ +# Tanım: Qt Şifreleme Mimarisi (Qt4). +# URL: http://delta.affinix.com/qca/ +# Paketçi: milisage +# Gerekler: qt4 + +isim=qca +surum=2.1.0 +devir=1 + +kaynak=(http://delta.affinix.com/download/$isim/2.0/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + mkdir build + cd build + cmake -DCMAKE_INSTALL_PREFIX=$PKG/$QT4DIR \ + -DCMAKE_BUILD_TYPE=Release \ + -DQT4_BUILD=ON \ + .. + make + make INSTALL_ROOT=$PKG install + find $PKG -name "*.pc" -exec sed -i "s,$PKG,,g" {} \; +} diff --git a/talimatname/genel/q/qemu-all/talimat b/talimatname/genel/q/qemu-all/talimat new file mode 100644 index 000000000..d7cecfec3 --- /dev/null +++ b/talimatname/genel/q/qemu-all/talimat @@ -0,0 +1,41 @@ +# Tanım: QEMU, iyi öykünme hızı elde etmek için dinamik çeviri kullanan bir işlemci öykünücüsüdür (PC, PowerPC, PowerMac, güneş, Mips, ARM vb.) +# URL: http://www.qemu.org +# Paketçi: milisarge +# Gerekler: gtk2 gtk3 sdl glib python vte vte3 xorg-mesa nss lzo cyrus-sasl alsa-lib alsa-plugins alsa-utils curl check bluez ncurses nfs-utils libgcrypt libcap-ng gnutls libusb bzip2 usbutils bridge-utils + +isim=qemu-all +surum=2.6.0 +devir=1 +kaynak=(http://wiki.qemu.org/download/qemu-$surum.tar.bz2) + +derle() { + + cd qemu-$surum + + ./configure --prefix=/usr \ + --cc="${CC:=gcc}" \ + --host-cc="${CC:=gcc}" \ + --sysconfdir=/etc \ + --disable-docs \ + --libexecdir=/usr/lib/qemu \ + --disable-gtk \ + --localstatedir=/var + + # Düzeltme, libcap ile ilgili sorunları içerir + sed -i -e '/#include "qemu\/xattr.h"/d' \ + -e 's|#include <sys/resource.h>|#include <sys/resource.h>\r\n#include "qemu\/xattr.h"|g' \ + fsdev/virtfs-proxy-helper.c + + make ${MAKEFLAGS:=} + make DESTDIR=$PKG install + + make qemu.1 qemu-img.1 qemu-nbd.8 + install -D -m 644 qemu.1 $PKG/usr/share/man1/qemu.1 + install -D -m 644 qemu-img.1 $PKG/usr/share/man1/qemu-img.1 + install -D -m 644 qemu-nbd.8 $PKG/usr/share/man8/qemu-nbd.8 + + install -d $PKG/etc/udev/rules.d/ + echo 'KERNEL=="kvm", NAME="kvm", OWNER="root", GROUP="kvm", MODE="0660"' > \ + $PKG/etc/udev/rules.d/60-kvm.rules + +} diff --git a/talimatname/genel/q/qjson/talimat b/talimatname/genel/q/qjson/talimat new file mode 100644 index 000000000..c0f91c081 --- /dev/null +++ b/talimatname/genel/q/qjson/talimat @@ -0,0 +1,21 @@ +# Tanım: JSON verilerini QVariant nesnelerine eşleyen bir qt tabanlı kitaplık +# URL: http://qjson.sourceforge.net +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: cmake qt5 + +isim=qjson +surum=0.8.2 +devir=1 + +kaynak=( http://source.pisilinux.org/1.0/qjson-0.82_d0f62e65.tar.gz) + +derle() { +cd $isim +mkdir build +cd build +cmake .. \ +-DCMAKE_INSTALL_PREFIX=/usr \ +-DCMAKE_BUILD_TYPE=Release +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/q/qlibc/talimat b/talimatname/genel/q/qlibc/talimat new file mode 100644 index 000000000..4787a27af --- /dev/null +++ b/talimatname/genel/q/qlibc/talimat @@ -0,0 +1,18 @@ +# Tanım: Hızlı ve sade C kütüphaneleri +# Url: https://github.com/wolkykim/qlibc +# Paketçi: milisarge +# Gerekler: + +isim=qlibc +surum=2.4.2 +devir=1 +kaynak=(https://github.com/wolkykim/qlibc/archive/v$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make + make tests + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/q/qmmp/talimat b/talimatname/genel/q/qmmp/talimat new file mode 100644 index 000000000..8740fbb3d --- /dev/null +++ b/talimatname/genel/q/qmmp/talimat @@ -0,0 +1,21 @@ +# Tanım: Qt5 tabanlı ses oynatıcı +# URL: http://qmmp.ylsoftware.com/ +# Paketçi: Cihan_Alkan +# Gerekler: alsa-lib curl desktop-file-utils hicolor-icon-theme libmad libvorbis libogg libxkbcommon taglib xdg-utils qt5 cmake flac jack libmpcdec pulseaudio ffmpeg libcdio-paranoia libcddb libmms libsamplerate libmodplug libsndfile wavpack xorg-mesa faad2 libgme opusfile wildmidi +# Grup: medya + + +isim=qmmp +surum=1.2.0 +devir=1 +kaynak=(http://qmmp.ylsoftware.com/files/$isim-$surum.tar.bz2) + +derle() { + + cd $isim-$surum + cmake . -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib \ + -DUSE_HAL:BOOL=FALSE + make + make DESTDIR="${PKG}" install +} diff --git a/talimatname/genel/q/qpdf/talimat b/talimatname/genel/q/qpdf/talimat new file mode 100644 index 000000000..08f8b8f44 --- /dev/null +++ b/talimatname/genel/q/qpdf/talimat @@ -0,0 +1,18 @@ +# Tanım: Qpdf paketi, PDF dosyaları üzerinde yapısal, içerik koruma dönüştürmeleri yapan komut satırı programları ve kitaplığı içerir. +# URL: http://qpdf.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: pcre libxslt + +isim=qpdf +surum=20170726 +devir=2 +kaynak=(https://github.com/qpdf/qpdf/archive/master.zip::$isim-$surum.tar.gz) + +derle() { + cd $isim-master + ./autogen.sh + ./configure --prefix=/usr \ + --disable-static + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/q/qps/qps.desktop b/talimatname/genel/q/qps/qps.desktop new file mode 100644 index 000000000..cb74c7a15 --- /dev/null +++ b/talimatname/genel/q/qps/qps.desktop @@ -0,0 +1,87 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'> +<head> +<title>svntogit/community.git - Git clone of the 'community' repository + + + + + + + + + + + +
+ +
+ +
+
+
+ + + +
+summaryrefslogtreecommitdiffstats
+ + + +
+
+
blob: f3da91f991711e11e10ab0b8009a0d1002734ece (plain) + + +
1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+
[Desktop Entry]
+Categories=Application;System;
+Name=qps
+GenericName=Visual process manager
+Comment=GUI version version of "ps" or "top"
+Exec=qps
+Icon=qps.xpm
+Terminal=false
+Type=Application
+Encoding=UTF-8
+StartupNotify=false
+
+
+
+

Copyright © 2002-2016 Judd Vinet and Aaron Griffin. The Arch Linux name and logo +are recognized trademarks. Some rights reserved. The registered trademark +Linux® is used pursuant to a sublicense from LMI, the exclusive licensee +of Linus Torvalds, owner of the mark on a world-wide basis.

+
+
+ + diff --git a/talimatname/genel/q/qps/talimat b/talimatname/genel/q/qps/talimat new file mode 100644 index 000000000..4a586f0ae --- /dev/null +++ b/talimatname/genel/q/qps/talimat @@ -0,0 +1,22 @@ +# Tanım: Qt için süreç yöneticisi +# URL: https://github.com/QtDesktop/qps/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: qt5 + +isim=qps +surum=1.10.16 +devir=1 +kaynak=(https://github.com/QtDesktop/$isim/archive/v$surum.tar.gz \ +qps.desktop) + +derle() { + + cd $SRC/$isim-$surum + cmake . + make + install -D -m 755 src/qps $PKG/usr/bin/qps + install -D -m 644 qps.1 $PKG/usr/share/man/man1/qps.1 + install -D -m 644 $SRC/qps.desktop $PKG/usr/share/applications/qps.desktop + install -D -m 644 icon/icon.xpm $PKG/usr/share/pixmaps/qps.xpm + +} diff --git a/talimatname/genel/q/qqwing/talimat b/talimatname/genel/q/qqwing/talimat new file mode 100644 index 000000000..5247a3a97 --- /dev/null +++ b/talimatname/genel/q/qqwing/talimat @@ -0,0 +1,20 @@ +# Tanım: Sudoku üreten ve çözen yazılım +# URL: https://qqwing.com/ +# Paketçi: Cihan_Alkan +# Gerekler: +# Grup: oyun + +isim=qqwing +surum=1.3.4 +devir=1 + +kaynak=(https://qqwing.com/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum + ./configure --prefix=/usr + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + make + make DESTDIR=$PKG install + rm -rf "${PKG}"/usr/share/man +} diff --git a/talimatname/genel/q/qrencode/talimat b/talimatname/genel/q/qrencode/talimat new file mode 100644 index 000000000..7112fd589 --- /dev/null +++ b/talimatname/genel/q/qrencode/talimat @@ -0,0 +1,17 @@ +# Tanım: C kütüphanesi, bir QR Code sembolündeki verileri şifrelemek için kullanılır. +# URL: http://megaui.net/fukuchi/works/qrencode/index.en.html +# Paketçi: milisarge +# Gerekler: libpng sdl + +isim=qrencode +surum=4.0.0 +devir=1 + +kaynak=(http://megaui.net/fukuchi/works/${isim}/${isim}-${surum}.tar.bz2) + +derle() { + cd $SRC/$isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/q/qt4/talimat b/talimatname/genel/q/qt4/talimat new file mode 100644 index 000000000..afc3e70a1 --- /dev/null +++ b/talimatname/genel/q/qt4/talimat @@ -0,0 +1,168 @@ +# Tanım: Qt, GUI uygulamaları geliştirmek için yaygın olarak kullanılan çapraz platform bir çerçevedir +# URL: http://www.qt.io/ +# Paketçi: milisarge +# Gerekler: glib atk pango cairo gdk-pixbuf xorg-fontconfig xorg-libsm xorg-libxrandr xorg-libxv xorg-libxi xorg-libxinerama xorg-libxcursor xorg-libxfixes xorg-mesa xorg-glu alsa-lib dbus icu libjpeg-turbo libmng libtiff openssl sqlite cups gtk2 gstreamer-plugins-base postgresql pulseaudio unixodbc + +isim=qt4 +surum=4.8.7 +devir=6 + +_isim=qt-everywhere-opensource-src-${surum} + +kaynak=(http://download.qt-project.org/official_releases/qt/${surum%.*}.tar.gz) + +derle() { + +QT4PREFIX=/usr +QT4DIR=$QT4PREFIX +QT4BINDIR=$QT4PREFIX/lib/qt4/bin + +cd ${_name} + + ./configure -prefix $QT4PREFIX \ + -bindir $QT4BINDIR \ + -plugindir /usr/lib/qt4/plugins \ + -importdir /usr/lib/qt4/imports \ + -headerdir /usr/include/qt4 \ + -datadir /usr/share/qt4 \ + -sysconfdir /etc/xdg \ + -docdir /usr/share/doc/qt4 \ + -demosdir /usr/share/doc/qt4/demos \ + -examplesdir /usr/share/doc/qt4/examples \ + -translationdir /usr/share/qt4/translations \ + -confirm-license \ + -opensource \ + -release \ + -dbus-linked \ + -openssl-linked \ + -system-sqlite \ + -no-phonon \ + -no-phonon-backend \ + -no-webkit \ + -no-openvg \ + -nomake demos \ + -nomake examples \ + -nomake docs \ + -optimized-qmake + +make + +find . -name "*.pc" -exec perl -pi -e "s, -L$PWD/?\S+,,g" {} \; + +make INSTALL_ROOT=$PKG install + +rm -rf $PKG/usr/tests + +for file in $PKG/usr/lib/libQt*.prl; do + sed -r -e '/^QMAKE_PRL_BUILD_DIR/d' \ + -e 's/(QMAKE_PRL_LIBS =).*/\1/' \ + -i $file + +done +unset file + +install -v -Dm644 src/gui/dialogs/images/qtlogo-64.png \ + $PKG/usr/share/pixmaps/qt4logo.png + +install -v -Dm644 tools/assistant/tools/assistant/images/assistant-128.png \ + $PKG//usr/share/pixmaps/assistant-qt4.png + +install -v -Dm644 tools/designer/src/designer/images/designer.png \ + /usr/share/pixmaps/designer-qt4.png + +install -v -Dm644 tools/linguist/linguist/images/icons/linguist-128-32.png \ + $PKG/usr/share/pixmaps/linguist-qt4.png + +install -v -Dm644 tools/qdbus/qdbusviewer/images/qdbusviewer-128.png \ + $PKG/usr/share/pixmaps/qdbusviewer-qt4.png + +install -dm755 $PKG/usr/share/applications + +install -d $PKG/usr/bin + +for i in $PKG/usr/lib/qt4/bin/*; do + ln -s /usr/lib/qt4/bin/$(basename $i) $PKG/usr/bin/$(basename $i)-qt4 +done + +cat > $PKG/usr/share/applications/assistant-qt4.desktop << EOF +[Desktop Entry] +Name=Qt4 Assistant +Comment=Shows Qt4 documentation and examples +Exec=$QT4BINDIR/assistant +Icon=assistant-qt4.png +Terminal=false +Encoding=UTF-8 +Type=Application +Categories=Qt;Development;Documentation; +EOF + +cat > $PKG/usr/share/applications/designer-qt4.desktop << EOF +[Desktop Entry] +Name=Qt4 Designer +Comment=Design GUIs for Qt4 applications +Exec=$QT4BINDIR/designer +Icon=designer-qt4.png +MimeType=application/x-designer; +Terminal=false +Encoding=UTF-8 +Type=Application +Categories=Qt;Development; +EOF + +cat > $PKG/usr/share/applications/linguist-qt4.desktop << EOF +[Desktop Entry] +Name=Qt4 Linguist +Comment=Add translations to Qt4 applications +Exec=$QT4BINDIR/linguist +Icon=linguist-qt4.png +MimeType=text/vnd.trolltech.linguist;application/x-linguist; +Terminal=false +Encoding=UTF-8 +Type=Application +Categories=Qt;Development; +EOF + +cat > $PKG/usr/share/applications/qdbusviewer-qt4.desktop << EOF +[Desktop Entry] +Name=Qt4 QDbusViewer +GenericName=D-Bus Debugger +Comment=Debug D-Bus applications +Exec=$QT4BINDIR/qdbusviewer +Icon=qdbusviewer-qt4.png +Terminal=false +Encoding=UTF-8 +Type=Application +Categories=Qt;Development;Debugger; +EOF + +cat > $PKG/usr/share/applications/qtconfig-qt4.desktop << EOF +[Desktop Entry] +Name=Qt4 Config +Comment=Configure Qt4 behavior, styles, fonts +Exec=$QT4BINDIR/qtconfig +Icon=qt4logo.png +Terminal=false +Encoding=UTF-8 +Type=Application +Categories=Qt;Settings; +EOF + +mkdir -p $PKG/etc/profile.d +cat > $PKG/etc/profile.d/qt4.sh << EOF +# Begin /etc/profile.d/qt4.sh + +QT4PREFIX=$QT4PREFIX +QT4DIR=$QT4PREFIX +QT4BINDIR=$QT4BINDIR +QTDIR=$QT4DIR +export QT4PREFIX QT4DIR QTDIR QT4BINDIR + +# End /etc/profile.d/qt4.sh +EOF + +cat > $PKG/usr/bin/setqt4 << EOF +if [ "x\$QT5BINDIR" != "x/usr/bin" ] && [ "x\$QT5BINDIR" != "x" ]; then pathremove $QT5BINDIR; fi +if [ "x\$QT4BINDIR" != "x/usr/bin" ]; then pathprepend $QT4BINDIR; fi +echo \$PATH +EOF +} diff --git a/talimatname/genel/q/qt5-gstreamer/qt5-gstreamer-1.6.patch b/talimatname/genel/q/qt5-gstreamer/qt5-gstreamer-1.6.patch new file mode 100644 index 000000000..be33810f3 --- /dev/null +++ b/talimatname/genel/q/qt5-gstreamer/qt5-gstreamer-1.6.patch @@ -0,0 +1,38 @@ +From e2ca8094aa8d0eac1c3a98df66fe94ce0c754088 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Jos=C3=A9=20Manuel=20Santamar=C3=ADa?= +Date: Fri, 2 Oct 2015 15:00:29 +0300 +Subject: Fix compilation with GStreamer >= 1.5.1 + +apply gstreamer pkg-config definitions To ensure gstreamer builds correctly, +pick up its cflags in FindGstreamer and apply them to the build as definitions + +https://lists.ubuntu.com/archives/kubuntu-devel/2015-August/009819.html + +https://bugzilla.gnome.org/show_bug.cgi?id=751382 + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4d3e7dd..5744015 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -106,6 +106,7 @@ find_package(GObject) + macro_log_feature(GOBJECT_FOUND "GObject" "Required to build QtGLib" "http://www.gtk.org/" TRUE) + + set(CMAKE_REQUIRED_INCLUDES ${QTGSTREAMER_INCLUDES}) ++add_definitions(${GSTREAMER_DEFINITIONS}) + include(CheckCXXSourceCompiles) + check_cxx_source_compiles(" + #include +diff --git a/cmake/modules/FindGStreamer.cmake b/cmake/modules/FindGStreamer.cmake +index dab91ac..fe6cde1 100644 +--- a/cmake/modules/FindGStreamer.cmake ++++ b/cmake/modules/FindGStreamer.cmake +@@ -36,6 +36,7 @@ if (PKG_CONFIG_FOUND) + exec_program(${PKG_CONFIG_EXECUTABLE} + ARGS --variable pluginsdir gstreamer-${GSTREAMER_ABI_VERSION} + OUTPUT_VARIABLE PKG_GSTREAMER_PLUGIN_DIR) ++ set(GSTREAMER_DEFINITIONS ${PKG_GSTREAMER_CFLAGS}) + endif() + + find_library(GSTREAMER_LIBRARY +-- +cgit v0.10.2 diff --git a/talimatname/genel/q/qt5-gstreamer/talimat b/talimatname/genel/q/qt5-gstreamer/talimat new file mode 100644 index 000000000..f801e74c4 --- /dev/null +++ b/talimatname/genel/q/qt5-gstreamer/talimat @@ -0,0 +1,27 @@ +# Tanım: GStreamer için Qt5 bağları. +# URL: http://gstreamer.freedesktop.org/modules/qt-gstreamer.htm +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: cmake boost xorg-mesa doxygen gstreamer1-plugins-good qt5 + +isim=qt5-gstreamer +surum=1.2.0 +devir=1 + +kaynak=(http://gstreamer.freedesktop.org/src/qt-gstreamer/qt-gstreamer-$surum.tar.xz + qt5-gstreamer-1.6.patch) + +derle() { + mkdir build + cd qt-gstreamer-$surum + patch -p1 -i ../qt5-gstreamer-1.6.patch + + cd ../build + cmake ../qt-gstreamer-$surum \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DQTGSTREAMER_EXAMPLES=OFF \ + -DQT_VERSION=5 + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/q/qt5-pas/talimat b/talimatname/genel/q/qt5-pas/talimat new file mode 100644 index 000000000..973759a8d --- /dev/null +++ b/talimatname/genel/q/qt5-pas/talimat @@ -0,0 +1,17 @@ +# Tanım: Ücretsiz Pascal Qt5 bağlayıcı kütüphanesi lazarus tarafından güncellendi +# URL: https://svn.freepascal.org/svn/lazarus/trunk/lcl/interfaces/qt5/cbindings +# Paketçi: Cihan_Alkan +# Gerekler: qt5 +# Grup: geliştirme + +isim=qt5-pas +surum=2.6 +devir=1 +kaynak=(http://http.debian.net/debian/pool/main/libq/libqtpas/libqtpas_2.6~beta.orig.tar.xz) + +derle() { + cd cbindings + qmake-qt5 "QT += x11extras" + make + make INSTALL_ROOT="$PKG" install +} diff --git a/talimatname/genel/q/qt5-styleplugins/talimat b/talimatname/genel/q/qt5-styleplugins/talimat new file mode 100644 index 000000000..d3be78d01 --- /dev/null +++ b/talimatname/genel/q/qt5-styleplugins/talimat @@ -0,0 +1,20 @@ +# Tanım: Qt5 için ek stil eklentileri +# URL: https://code.qt.io/cgit/qt/qtstyleplugins +# Paketçi: Cihan Alkan +# Gerekler: gtk2 qt5 +# Grup: deepin + +isim=qt5-styleplugins +surum=5.0.0 +devir=1 +kaynak=(https://github.com/qt/qtstyleplugins/archive/v5.0.0.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd qtstyleplugins-$surum + qmake-qt5 PREFIX='/usr' \ + LIBDIR='/usr/lib' \ + QMAKE_CFLAGS_RELEASE="$CFLAGS" \ + QMAKE_CXXFLAGS_RELEASE="$CXXFLAGS" + make + make INSTALL_ROOT="${PKG}" install +} diff --git a/talimatname/genel/q/qt5-webengine/clip-ft-glyph.diff b/talimatname/genel/q/qt5-webengine/clip-ft-glyph.diff new file mode 100644 index 000000000..4ca703504 --- /dev/null +++ b/talimatname/genel/q/qt5-webengine/clip-ft-glyph.diff @@ -0,0 +1,162 @@ +# HG changeset patch +# User Lee Salzman +# Date 1504120456 14400 +# Wed Aug 30 15:14:16 2017 -0400 +# Node ID 708d52f954b6d7ca2497fcb5b5084c6483300e89 +# Parent 33224536ce20d942576cd4b9ffb350d6dce397bc +clip FreeType glyph bitmap to mask in Skia + +MozReview-Commit-ID: 9NqLj9SkHFo + +diff --git a/gfx/skia/skia/src/ports/SkFontHost_FreeType_common.cpp b/gfx/skia/skia/src/ports/SkFontHost_FreeType_common.cpp +--- a/gfx/skia/skia/src/ports/SkFontHost_FreeType_common.cpp ++++ b/gfx/skia/skia/src/ports/SkFontHost_FreeType_common.cpp +@@ -390,65 +390,131 @@ void SkScalerContext_FreeType_Base::gene + const SkMatrix& bitmapTransform) + { + const bool doBGR = SkToBool(fRec.fFlags & SkScalerContext::kLCD_BGROrder_Flag); + const bool doVert = SkToBool(fRec.fFlags & SkScalerContext::kLCD_Vertical_Flag); + + switch ( face->glyph->format ) { + case FT_GLYPH_FORMAT_OUTLINE: { + FT_Outline* outline = &face->glyph->outline; +- FT_BBox bbox; +- FT_Bitmap target; + + int dx = 0, dy = 0; + if (fRec.fFlags & SkScalerContext::kSubpixelPositioning_Flag) { + dx = SkFixedToFDot6(glyph.getSubXFixed()); + dy = SkFixedToFDot6(glyph.getSubYFixed()); + // negate dy since freetype-y-goes-up and skia-y-goes-down + dy = -dy; + } +- FT_Outline_Get_CBox(outline, &bbox); +- /* +- what we really want to do for subpixel is +- offset(dx, dy) +- compute_bounds +- offset(bbox & !63) +- but that is two calls to offset, so we do the following, which +- achieves the same thing with only one offset call. +- */ +- FT_Outline_Translate(outline, dx - ((bbox.xMin + dx) & ~63), +- dy - ((bbox.yMin + dy) & ~63)); ++ ++ memset(glyph.fImage, 0, glyph.rowBytes() * glyph.fHeight); + + if (SkMask::kLCD16_Format == glyph.fMaskFormat) { ++ FT_Outline_Translate(outline, dx, dy); + FT_Error err = FT_Render_Glyph(face->glyph, doVert ? FT_RENDER_MODE_LCD_V : + FT_RENDER_MODE_LCD); + if (err) { + SK_TRACEFTR(err, "Could not render glyph."); +- sk_bzero(glyph.fImage, glyph.computeImageSize()); + return; + } ++ + SkMask mask; + glyph.toMask(&mask); ++#ifdef SK_SHOW_TEXT_BLIT_COVERAGE ++ memset(mask.fImage, 0x80, mask.fBounds.height() * mask.fRowBytes); ++#endif ++ FT_GlyphSlotRec& ftGlyph = *face->glyph; ++ ++ if (!SkIRect::Intersects(mask.fBounds, ++ SkIRect::MakeXYWH( ftGlyph.bitmap_left, ++ -ftGlyph.bitmap_top, ++ ftGlyph.bitmap.width, ++ ftGlyph.bitmap.rows))) ++ { ++ return; ++ } ++ ++ // If the FT_Bitmap extent is larger, discard bits of the bitmap outside the mask. ++ // If the SkMask extent is larger, shrink mask to fit bitmap (clearing discarded). ++ unsigned char* origBuffer = ftGlyph.bitmap.buffer; ++ // First align the top left (origin). ++ if (-ftGlyph.bitmap_top < mask.fBounds.fTop) { ++ int32_t topDiff = mask.fBounds.fTop - (-ftGlyph.bitmap_top); ++ ftGlyph.bitmap.buffer += ftGlyph.bitmap.pitch * topDiff; ++ ftGlyph.bitmap.rows -= topDiff; ++ ftGlyph.bitmap_top = -mask.fBounds.fTop; ++ } ++ if (ftGlyph.bitmap_left < mask.fBounds.fLeft) { ++ int32_t leftDiff = mask.fBounds.fLeft - ftGlyph.bitmap_left; ++ ftGlyph.bitmap.buffer += leftDiff; ++ ftGlyph.bitmap.width -= leftDiff; ++ ftGlyph.bitmap_left = mask.fBounds.fLeft; ++ } ++ if (mask.fBounds.fTop < -ftGlyph.bitmap_top) { ++ mask.fImage += mask.fRowBytes * (-ftGlyph.bitmap_top - mask.fBounds.fTop); ++ mask.fBounds.fTop = -ftGlyph.bitmap_top; ++ } ++ if (mask.fBounds.fLeft < ftGlyph.bitmap_left) { ++ mask.fImage += sizeof(uint16_t) * (ftGlyph.bitmap_left - mask.fBounds.fLeft); ++ mask.fBounds.fLeft = ftGlyph.bitmap_left; ++ } ++ // Origins aligned, clean up the width and height. ++ int ftVertScale = (doVert ? 3 : 1); ++ int ftHoriScale = (doVert ? 1 : 3); ++ if (mask.fBounds.height() * ftVertScale < SkToInt(ftGlyph.bitmap.rows)) { ++ ftGlyph.bitmap.rows = mask.fBounds.height() * ftVertScale; ++ } ++ if (mask.fBounds.width() * ftHoriScale < SkToInt(ftGlyph.bitmap.width)) { ++ ftGlyph.bitmap.width = mask.fBounds.width() * ftHoriScale; ++ } ++ if (SkToInt(ftGlyph.bitmap.rows) < mask.fBounds.height() * ftVertScale) { ++ mask.fBounds.fBottom = mask.fBounds.fTop + ftGlyph.bitmap.rows / ftVertScale; ++ } ++ if (SkToInt(ftGlyph.bitmap.width) < mask.fBounds.width() * ftHoriScale) { ++ mask.fBounds.fRight = mask.fBounds.fLeft + ftGlyph.bitmap.width / ftHoriScale; ++ } + if (fPreBlend.isApplicable()) { +- copyFT2LCD16(face->glyph->bitmap, mask, doBGR, ++ copyFT2LCD16(ftGlyph.bitmap, mask, doBGR, + fPreBlend.fR, fPreBlend.fG, fPreBlend.fB); + } else { +- copyFT2LCD16(face->glyph->bitmap, mask, doBGR, ++ copyFT2LCD16(ftGlyph.bitmap, mask, doBGR, + fPreBlend.fR, fPreBlend.fG, fPreBlend.fB); + } ++ // Restore the buffer pointer so FreeType can properly free it. ++ ftGlyph.bitmap.buffer = origBuffer; + } else { ++ FT_BBox bbox; ++ FT_Bitmap target; ++ FT_Outline_Get_CBox(outline, &bbox); ++ /* ++ what we really want to do for subpixel is ++ offset(dx, dy) ++ compute_bounds ++ offset(bbox & !63) ++ but that is two calls to offset, so we do the following, which ++ achieves the same thing with only one offset call. ++ */ ++ FT_Outline_Translate(outline, dx - ((bbox.xMin + dx) & ~63), ++ dy - ((bbox.yMin + dy) & ~63)); ++ + target.width = glyph.fWidth; + target.rows = glyph.fHeight; + target.pitch = glyph.rowBytes(); + target.buffer = reinterpret_cast(glyph.fImage); + target.pixel_mode = compute_pixel_mode( (SkMask::Format)fRec.fMaskFormat); + target.num_grays = 256; + +- memset(glyph.fImage, 0, glyph.rowBytes() * glyph.fHeight); + FT_Outline_Get_Bitmap(face->glyph->library, outline, &target); ++#ifdef SK_SHOW_TEXT_BLIT_COVERAGE ++ for (int y = 0; y < glyph.fHeight; ++y) { ++ for (int x = 0; x < glyph.fWidth; ++x) { ++ uint8_t& a = ((uint8_t*)glyph.fImage)[(glyph.rowBytes() * y) + x]; ++ a = SkTMax(a, 0x20); ++ } ++ } ++#endif + } + } break; + + case FT_GLYPH_FORMAT_BITMAP: { + FT_Pixel_Mode pixel_mode = static_cast(face->glyph->bitmap.pixel_mode); + SkMask::Format maskFormat = static_cast(glyph.fMaskFormat); + + // Assume that the other formats do not exist. diff --git a/talimatname/genel/q/qt5-webengine/gzip_string.py b/talimatname/genel/q/qt5-webengine/gzip_string.py new file mode 100644 index 000000000..68f9ea1a0 --- /dev/null +++ b/talimatname/genel/q/qt5-webengine/gzip_string.py @@ -0,0 +1,43 @@ +# Copyright (c) 2016 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. +"""Provides gzip utilities for strings. +""" +import cStringIO +import gzip +import subprocess + + +def GzipStringRsyncable(data): + # Make call to host system's gzip to get access to --rsyncable option. This + # option makes updates much smaller - if one line is changed in the resource, + # it won't have to push the entire compressed resource with the update. + # Instead, --rsyncable breaks the file into small chunks, so that one doesn't + # affect the other in compression, and then only that chunk will have to be + # updated. + gzip_proc = subprocess.Popen(['gzip', '--stdout', + '--best', '--no-name'], + stdin=subprocess.PIPE, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE) + data, stderr = gzip_proc.communicate(data) + if gzip_proc.returncode != 0: + raise subprocess.CalledProcessError(gzip_proc.returncode, 'gzip', + stderr) + return data + + +def GzipString(data): + # Gzipping using Python's built in gzip: Windows doesn't ship with gzip, and + # OSX's gzip does not have an --rsyncable option built in. Although this is + # not preferable to --rsyncable, it is an option for the systems that do + # not have --rsyncable. If used over GzipStringRsyncable, the primary + # difference of this function's compression will be larger updates every time + # a compressed resource is changed. + gzip_output = cStringIO.StringIO() + with gzip.GzipFile(mode='wb', compresslevel=9, fileobj=gzip_output, + mtime=0) as gzip_file: + gzip_file.write(data) + data = gzip_output.getvalue() + gzip_output.close() + return data diff --git a/talimatname/genel/q/qt5-webengine/harmony-fix.diff b/talimatname/genel/q/qt5-webengine/harmony-fix.diff new file mode 100644 index 000000000..803730f0d --- /dev/null +++ b/talimatname/genel/q/qt5-webengine/harmony-fix.diff @@ -0,0 +1,69 @@ +diff -u -r qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp qtwebengine-opensource-src-5.9.1-ftfixes/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp +--- qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp 2017-09-19 17:38:43.659642835 +0200 ++++ qtwebengine-opensource-src-5.9.1-ftfixes/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp 2017-09-19 17:38:50.492991631 +0200 +@@ -80,7 +80,7 @@ + + class FreeTypeLibrary : SkNoncopyable { + public: +- FreeTypeLibrary() : fLibrary(nullptr), fIsLCDSupported(false), fLCDExtra(0) { ++ FreeTypeLibrary() : fLibrary(nullptr) { + if (FT_New_Library(&gFTMemory, &fLibrary)) { + return; + } +@@ -90,8 +90,6 @@ + // Default { 0x10, 0x40, 0x70, 0x40, 0x10 } adds up to 0x110, simulating ink spread. + // SetLcdFilter must be called before SetLcdFilterWeights. + if (FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT) == 0) { +- fIsLCDSupported = true; +- fLCDExtra = 2; //Using a filter adds one full pixel to each side. + + #ifdef SK_FONTHOST_FREETYPE_USE_NORMAL_LCD_FILTER + // Adds to 0x110 simulating ink spread, but provides better results than default. +@@ -124,13 +122,9 @@ + } + + FT_Library library() { return fLibrary; } +- bool isLCDSupported() { return fIsLCDSupported; } +- int lcdExtra() { return fLCDExtra; } + + private: + FT_Library fLibrary; +- bool fIsLCDSupported; +- int fLCDExtra; + + // FT_Library_SetLcdFilterWeights was introduced in FreeType 2.4.0. + // The following platforms provide FreeType of at least 2.4.0. +@@ -633,17 +627,6 @@ + rec->fTextSize = SkIntToScalar(1 << 14); + } + +- if (isLCD(*rec)) { +- // TODO: re-work so that FreeType is set-up and selected by the SkFontMgr. +- SkAutoMutexAcquire ama(gFTMutex); +- ref_ft_library(); +- if (!gFTLibrary->isLCDSupported()) { +- // If the runtime Freetype library doesn't support LCD, disable it here. +- rec->fMaskFormat = SkMask::kA8_Format; +- } +- unref_ft_library(); +- } +- + SkPaint::Hinting h = rec->getHinting(); + if (SkPaint::kFull_Hinting == h && !isLCD(*rec)) { + // collapse full->normal hinting if we're not doing LCD +@@ -1046,11 +1029,11 @@ + void SkScalerContext_FreeType::updateGlyphIfLCD(SkGlyph* glyph) { + if (isLCD(fRec)) { + if (fLCDIsVert) { +- glyph->fHeight += gFTLibrary->lcdExtra(); +- glyph->fTop -= gFTLibrary->lcdExtra() >> 1; ++ glyph->fHeight += 2; ++ glyph->fTop -= 1; + } else { +- glyph->fWidth += gFTLibrary->lcdExtra(); +- glyph->fLeft -= gFTLibrary->lcdExtra() >> 1; ++ glyph->fWidth += 2; ++ glyph->fLeft -= 1; + } + } + } diff --git a/talimatname/genel/q/qt5-webengine/last-commit-position.patch b/talimatname/genel/q/qt5-webengine/last-commit-position.patch new file mode 100644 index 000000000..307bfb230 --- /dev/null +++ b/talimatname/genel/q/qt5-webengine/last-commit-position.patch @@ -0,0 +1,28 @@ +diff -pruN qtwebengine-opensource-src-5.9.1.orig/src/3rdparty/chromium/tools/gn/BUILD.gn qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/tools/gn/BUILD.gn +--- qtwebengine-opensource-src-5.9.1.orig/src/3rdparty/chromium/tools/gn/BUILD.gn 2017-08-06 08:14:54.775770614 +0000 ++++ qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/tools/gn/BUILD.gn 2017-08-06 08:17:54.230085298 +0000 +@@ -269,7 +269,6 @@ executable("gn") { + + deps = [ + ":gn_lib", +- ":last_commit_position", + "//base", + "//build/config/sanitizers:deps", + "//build/win:default_exe_manifest", +diff -pruN qtwebengine-opensource-src-5.9.1.orig/src/3rdparty/chromium/tools/gn/gn_main.cc qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/tools/gn/gn_main.cc +--- qtwebengine-opensource-src-5.9.1.orig/src/3rdparty/chromium/tools/gn/gn_main.cc 2017-08-06 08:14:54.746771855 +0000 ++++ qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/tools/gn/gn_main.cc 2017-08-06 08:18:53.627541541 +0000 +@@ -12,13 +12,7 @@ + #include "tools/gn/standard_out.h" + #include "tools/gn/switches.h" + +-// Only the GN-generated build makes this header for now. +-// TODO(brettw) consider adding this if we need it in GYP. +-#if defined(GN_BUILD) +-#include "tools/gn/last_commit_position.h" +-#else + #define LAST_COMMIT_POSITION "UNKNOWN" +-#endif + + namespace { + diff --git a/talimatname/genel/q/qt5-webengine/talimat b/talimatname/genel/q/qt5-webengine/talimat new file mode 100644 index 000000000..6cbfb0ce9 --- /dev/null +++ b/talimatname/genel/q/qt5-webengine/talimat @@ -0,0 +1,34 @@ +# Tanım: Bir WebKit2 tabanlı uygulama sınıfları ve yeni bir QML API'sı +# URL: http://qt-project.org/ +# Paketçi: milisarge +# Gerekler: ffmpeg jsoncpp libvpx libevent libsrtp xorg-libxdamage protobuf nss gstreamer1-plugins-base libwebp xorg-libxcomposite libxslt gstreamer1-plugins-good python ruby qt5 ninja + +isim=qt5-webengine +_isim=qtwebengine +surum=5.9.1 +devir=1 + +#kaynak=(http://download.qt.io/official_releases/qt/5.9/$surum/submodules/$_name-opensource-src-$surum.tar.xz) +kaynak=(http://download.qt.io/official_releases/qt/${surum%.*}/$surum/single/qt-everywhere-opensource-src-$surum.tar.xz + last-commit-position.patch + clip-ft-glyph.diff + harmony-fix.diff + gzip_string.py) + +derle() { + cd $SRC/qt-everywhere-opensource-src-$surum/qtwebengine/ + + #patch -p1 -i $SRC/last-commit-position.patch + patch -d src/3rdparty/chromium/third_party -Np3 < $SRC/clip-ft-glyph.diff + patch -Np1 -i $SRC/harmony-fix.diff + + install -d build + cd build + cp -rf $SRC/gzip_string.py $SRC/qt-everywhere-opensource-src-5.9.1/qtwebengine/src/3rdparty/chromium/tools/grit/grit/format/ + qmake-qt5 WEBENGINE_CONFIG+="use_proprietary_codecs use_system_ffmpeg use_system_icu" ../qtwebengine.pro + make + make INSTALL_ROOT=$PKG install + find "$PKG/usr/lib" -type f -name '*.prl' \ + -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \; + +} diff --git a/talimatname/genel/q/qt5-webkit/qt5-webkit-icu59.patch b/talimatname/genel/q/qt5-webkit/qt5-webkit-icu59.patch new file mode 100644 index 000000000..2ad514c6a --- /dev/null +++ b/talimatname/genel/q/qt5-webkit/qt5-webkit-icu59.patch @@ -0,0 +1,73 @@ +diff --git a/Source/WTF/wtf/Compiler.h b/Source/WTF/wtf/Compiler.h +index ead844f..e62cfd4 100644 +--- a/Source/WTF/wtf/Compiler.h ++++ b/Source/WTF/wtf/Compiler.h +@@ -61,6 +61,7 @@ + #define WTF_COMPILER_SUPPORTS_HAS_TRIVIAL_DESTRUCTOR __has_feature(has_trivial_destructor) + #define WTF_COMPILER_SUPPORTS_CXX_STRONG_ENUMS __has_feature(cxx_strong_enums) + #define WTF_COMPILER_SUPPORTS_CXX_REFERENCE_QUALIFIED_FUNCTIONS __has_feature(cxx_reference_qualified_functions) ++#define WTF_COMPILER_SUPPORTS_CXX_NEW_CHAR_TYPES !defined(_LIBCPP_HAS_NO_UNICODE_CHARS) + + #endif + +@@ -142,6 +143,7 @@ + #define WTF_COMPILER_SUPPORTS_CXX_DELETED_FUNCTIONS 1 + #endif + #if GCC_VERSION_AT_LEAST(4, 5, 0) ++#define WTF_COMPILER_SUPPORTS_CXX_NEW_CHAR_TYPES 1 + #define WTF_COMPILER_SUPPORTS_CXX_EXPLICIT_CONVERSIONS 1 + #endif + #if GCC_VERSION_AT_LEAST(4, 6, 0) +diff --git a/Source/WTF/wtf/TypeTraits.h b/Source/WTF/wtf/TypeTraits.h +index b9e46bc..876fa45 100644 +--- a/Source/WTF/wtf/TypeTraits.h ++++ b/Source/WTF/wtf/TypeTraits.h +@@ -75,6 +75,10 @@ namespace WTF { + #if !COMPILER(MSVC) || defined(_NATIVE_WCHAR_T_DEFINED) + template<> struct IsInteger { static const bool value = true; }; + #endif ++#if COMPILER_SUPPORTS(CXX_NEW_CHAR_TYPES) ++ template<> struct IsInteger { static const bool value = true; }; ++ template<> struct IsInteger { static const bool value = true; }; ++#endif + + template struct IsFloatingPoint { static const bool value = false; }; + template<> struct IsFloatingPoint { static const bool value = true; }; +---qtwebkit-opensource-src-5.5.1/Source/JavaScriptCore/API/JSStringRef.h.orig 2015-10-13 06:37:10.000000000 +0200 ++++ qtwebkit-opensource-src-5.5.1/Source/JavaScriptCore/API/JSStringRef.h 2017-04-24 12:26:42.495345570 +0200 +@@ -32,6 +32,7 @@ + #include + #endif + #include /* for size_t */ ++#include + + #ifdef __cplusplus + extern "C" { +@@ -43,7 +44,7 @@ + @typedef JSChar + @abstract A Unicode character. + */ +- typedef unsigned short JSChar; ++ typedef char16_t JSChar; + #else + typedef wchar_t JSChar; + #endif +--- qtwebkit-opensource-src-5.5.1/Source/WebKit2/Shared/API/c/WKString.h.orig 2015-10-13 06:37:12.000000000 +0200 ++++ qtwebkit-opensource-src-5.5.1/Source/WebKit2/Shared/API/c/WKString.h 2017-04-24 12:27:33.432011867 +0200 +@@ -31,6 +31,7 @@ + #ifndef __cplusplus + #include + #endif ++#include + + #ifdef __cplusplus + extern "C" { +@@ -38,7 +39,7 @@ + + #if !defined(WIN32) && !defined(_WIN32) \ + && !((defined(__CC_ARM) || defined(__ARMCC__)) && !defined(__linux__)) /* RVCT */ +- typedef unsigned short WKChar; ++ typedef char16_t WKChar; + #else + typedef wchar_t WKChar; + #endif diff --git a/talimatname/genel/q/qt5-webkit/talimat b/talimatname/genel/q/qt5-webkit/talimat new file mode 100644 index 000000000..3b4497989 --- /dev/null +++ b/talimatname/genel/q/qt5-webkit/talimat @@ -0,0 +1,26 @@ +# Tanım: Bir WebKit2 tabanlı uygulama sınıfları ve yeni bir QML API'sı +# URL: http://qt-project.org/ +# Paketçi: milisarge +# Gerekler: cmake gstreamer1-plugins-base libwebp xorg-libxcomposite libxslt gstreamer1-plugins-good python ruby qt5 hyphen + +isim=qt5-webkit +_isim=qtwebkit +surum=5.9.0 +devir=1 + +kaynak=(http://download.qt.io/community_releases/5.9/$surum-final/$_name-opensource-src-$surum.tar.xz + qt5-webkit-icu59.patch) + +derle() { + cd $_name-opensource-src-$surum + patch -p1 -i $SRC/qt5-webkit-icu59.patch + install -d build + cd build + qmake-qt5 .. + make + make INSTALL_ROOT=$PKG install + + find "$PKG/usr/lib" -type f -name '*.prl' \ + -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \; + +} diff --git a/talimatname/genel/q/qt5/qt5-logo.png b/talimatname/genel/q/qt5/qt5-logo.png new file mode 100644 index 000000000..b1a32b068 Binary files /dev/null and b/talimatname/genel/q/qt5/qt5-logo.png differ diff --git a/talimatname/genel/q/qt5/talimat b/talimatname/genel/q/qt5/talimat new file mode 100644 index 000000000..3dcd4f70d --- /dev/null +++ b/talimatname/genel/q/qt5/talimat @@ -0,0 +1,152 @@ +# Tanım: Qt ücretsiz sürümü, sürüm 5.x +# URL: http://qt-project.org/ +# Paketçi: milisarge +# Gerekler: hunspell xorg-proto xorg-libxkbfile xorg-xtrans xorg-libx11 xorg-libxext xorg-libfs xorg-libice xorg-libsm xorg-libxscrnsaver xorg-libxt xorg-libxmu xorg-libxpm xorg-libxaw xorg-libxfixes xorg-libxcomposite xorg-libxrender xorg-libxcursor xorg-libxdamage xorg-libfontenc xorg-libxfont xorg-libxft xorg-libxi xorg-libxinerama xorg-libxrandr xorg-libxres xorg-libxtst xorg-libxv xorg-libxvmc xorg-libxxf86dga xorg-libxxf86vm xorg-libdmx xorg-libpciaccess xorg-libxkbfile xorg-libxshmfence xcb-proto xcb-util-image xcb-util-keysyms xcb-util-renderutil xcb-util-wm alsa-lib ca-certificates cups dbus glib gstreamer-plugins-base icu jasper libproxy libinput libjpeg-turbo libmng libpng libtiff libwebp xorg-mesa mtdev openssl pcre sqlite ruby gstreamer1-plugins-base geoclue gtk2 harfbuzz postgresql pulseaudio unixodbc libxkbcommon mariadb + +isim=qt5 +surum=5.9.1 +devir=1 + +_isim=qt-everywhere-opensource-src-${surum} + +kaynak=(http://download.qt.io/official_releases/qt/${surum%.*}/$surum/single/qt-everywhere-opensource-src-$surum.tar.xz + qt5-logo.png) + +derle() { + +cd ${_name}* + # Respect system CXX + [ "$CXX" ] || CXX=g++ + sed -i "/^QMAKE_CXX\s/s|=.*|= $CXX|" qtbase/mkspecs/common/g++-base.conf + + # Remove obsolete xorg path + sed -i 's|X11R6/||g' qtbase/mkspecs/*/*.conf + + # Respect system CXXFLAGS + sed -i "s|^\(QMAKE_CFLAGS_RELEASE.*\)|\1 ${CXXFLAGS}|" qtbase/mkspecs/common/gcc-base.conf + + # Respect system LDFLAGS + sed -i "s|^\(QMAKE_LFLAGS_RELEASE.*\)|\1 ${LDFLAGS}|" qtbase/mkspecs/common/g++-unix.conf + + export QTDIR="$PWD" + export LD_LIBRARY_PATH="$QTDIR/qtbase/lib:$QTDIR/qttools/lib:$LD_LIBRARY_PATH" + export QT_PLUGIN_PATH="$QTDIR/qtbase/plugins" + + ./configure \ + -prefix /usr/ \ + -archdatadir /usr/lib/qt5 \ + -bindir /usr/lib/qt5/bin \ + -datadir /usr/share/qt5 \ + -docdir /usr/share/doc/qt5-$surum \ + -examplesdir /usr/share/doc/qt5-$surum/examples \ + -headerdir /usr/include/qt5 \ + -libdir /usr/lib \ + -sysconfdir /usr/etc/xdg \ + -confirm-license \ + -dbus-linked \ + -no-egl \ + -nomake examples \ + -no-pch \ + -no-rpath \ + -no-separate-debug-info \ + -no-strip \ + -opengl desktop \ + -opensource \ + -openssl-linked \ + -optimized-qmake \ + -reduce-relocations \ + -release \ + -shared \ + -skip qtwebengine + + make + make -j1 INSTALL_ROOT=$PKG install + + # Fix paths + find $PKG/usr/lib/ -type f -name '*.prl' \ + -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/' {} \; + + sed -e "s|$PWD/qtbase|/usr/lib/qt5|g" \ + -i $PKG/usr/lib/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri + + rm -r $PKG/usr/share/doc + + # Install useful symlinks + install -d $PKG/usr/bin + for file in $PKG/usr/lib/qt5/bin/*; do + ln -s ../lib/qt5/bin/$(basename $file) $PKG/usr/bin/$(basename $file)-qt5 + done + + # Add menu entries for all those hidden but great Qt applications: + # # Qt5 logo: + install -d $PKG/usr/share/icons/hicolor/48x48/apps + + install -m 0644 $SRC/qt5-logo.png $PKG/usr/share/icons/hicolor/48x48/apps/qt5-logo.png + + # Assistant icons + install -m 0644 -D qttools/src/assistant/assistant/images/assistant.png $PKG/usr/share/icons/hicolor/32x32/apps/qt5-assistant.png + install -m 0644 -D qttools/src/assistant/assistant/images/assistant-128.png $PKG/usr/share/icons/hicolor/128x128/apps/qt5-assistant.png + + # Designer icon + install -m 0644 -D qttools/src/designer/src/designer/images/designer.png $PKG/usr/share/icons/hicolor/128x128/apps/qt5-designer.png + + # QDbusViewer icons + install -m 0644 qttools/src/qdbus/qdbusviewer/images/qdbusviewer.png $PKG/usr/share/icons/hicolor/32x32/apps/qt5-qdbusviewer.png + install -m 0644 qttools/src/qdbus/qdbusviewer/images/qdbusviewer-128.png $PKG/usr/share/icons/hicolor/128x128/apps/qt5-qdbusviewer.png + + # Linguist icons + for icon in qttools/src/linguist/linguist/images/icons/linguist-*-32.png ; do + size=$(echo $(basename ${icon}) | cut -d- -f2) + install -m 0644 -D ${icon} $PKG/usr/share/icons/hicolor/${size}x${size}/apps/qt5-linguist.png + done + + # And the .desktop files too: + install -d $PKG/usr/share/applications + cat < $PKG/usr/share/applications/qt5-designer.desktop +[Desktop Entry] +Name=Qt5 Designer +GenericName=Arayüz tasarımı +Comment=Qt5 uygulamaları için arayüz tasarımı +Exec=designer-qt5 -qt=5 +Icon=qt5-designer +MimeType=application/x-designer; +Terminal=false +Encoding=UTF-8 +Type=Application +Categories=Qt;Development; +EOF + cat < $PKG/usr/share/applications/qt5-assistant.desktop +[Desktop Entry] +Name=Qt5 Asistan +Comment=Qt5 belgelerini ve örneklerini gösterir +Exec=assistant-qt5 -qt=5 +Icon=qt5-assistant +Terminal=false +Encoding=UTF-8 +Type=Application +Categories=Qt;Development;Documentation; +EOF + cat < $PKG/usr/share/applications/qt5-linguist.desktop +[Desktop Entry] +Name=Qt5 Linguist +Comment=Qt5 uygulamalarına dil ekleme +Exec=linguist-qt5 -qt=5 +Icon=qt5-linguist +MimeType=text/vnd.trolltech.linguist;application/x-linguist; +Terminal=false +Encoding=UTF-8 +Type=Application +Categories=Qt;Development; +EOF + cat < $PKG/usr/share/applications/qt5-qdbusviewer.desktop +[Desktop Entry] +Name=Qt5 QDbusViewer +GenericName=Qt5 D-Bus Debugger +Comment=D-Bus uygulamalarında hata ayıklama +Exec=qdbusviewer-qt5 +Icon=qt5-qdbusviewer +Terminal=false +Type=Application +Categories=Qt;Development;Debugger; +EOF +} diff --git a/talimatname/genel/q/qtav/talimat b/talimatname/genel/q/qtav/talimat new file mode 100644 index 000000000..15dcc5e94 --- /dev/null +++ b/talimatname/genel/q/qtav/talimat @@ -0,0 +1,17 @@ +# Tanım: Qt ve FFmpeg'e dayalı çapraz platformlu çoklu oynatma çerçevesi +# URL: http://www.qtav.org/ +# Paketçi: Oltulu +# Gerekler: qt5 taglib ffmpeg desktop-file-utils xorg-libxv openal uchardet +# Grup: multimedya + +isim=qtav +surum=1.12.0 +devir=1 +kaynak=(https://github.com/wang-bin/QtAV/archive/v$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd QtAV-$surum + qmake-qt5 "CONFIG+=no_rpath recheck" + make + make INSTALL_ROOT="$PKG" install +} diff --git a/talimatname/genel/q/qtchess/qtchess.desktop b/talimatname/genel/q/qtchess/qtchess.desktop new file mode 100644 index 000000000..157809261 --- /dev/null +++ b/talimatname/genel/q/qtchess/qtchess.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Satranç Oyunu +Comment=P2P Satranç Oyunu +Exec=/usr/bin/qtchess +Icon=/usr/share/icons/hicolor/48x48/qtchess.png +Terminal=false +Type=Application +Categories=Game; +MimeType=text/html;/text/xml;application/xhtml_xml; +StartupNotify=true diff --git a/talimatname/genel/q/qtchess/talimat b/talimatname/genel/q/qtchess/talimat new file mode 100644 index 000000000..0257adf9d --- /dev/null +++ b/talimatname/genel/q/qtchess/talimat @@ -0,0 +1,22 @@ +# Tanım: qt tabanlı P2P satranç oyunu +# URL: http://qtchess.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: qt5 + +isim=qtchess +surum=20160904 +_surum=2016.09.04 +devir=1 + +kaynak=(https://github.com/textbrowser/qtchess/archive/v${_version}.tar.gz + qtchess.desktop) + +derle() { + cd "$isim-$_version" + qmake-qt5 -o Makefile qtchess.pro + sed -i s_'-Werror'__g Makefile # stack protector is not proctecting small arrays + make + install -Dm755 QtChess -- "${PKG}/usr/bin/qtchess" + install -Dm644 $SRC/qtchess.desktop -- "${PKG}/usr/share/applications/${isim}.desktop" + install -Dm644 Images/chess.png -- "${PKG}/usr/share/icons/hicolor/48x48/$isim.png" +} diff --git a/talimatname/genel/q/qtcreator/talimat b/talimatname/genel/q/qtcreator/talimat new file mode 100644 index 000000000..894bc5eb1 --- /dev/null +++ b/talimatname/genel/q/qtcreator/talimat @@ -0,0 +1,30 @@ +# Tanım: Hafif, çapraz platformlu entegre geliştirme ortamı +# URL: http://qt-project.org +# Paketçi: Cihan_Alkan +# Gerekler: qt5 clang qbs + +isim=qtcreator +surum=4.5.0 +devir=1 + +kaynak=(http://download.qt.io/official_releases/qtcreator/${surum%.*}/${surum}/qt-creator-opensource-src-${surum}.tar.xz) + +derle() { + [[ -d build ]] && rm -r build + mkdir build + + # fix hardcoded libexec path + sed -e 's|libexec\/qtcreator|lib\/qtcreator|g' -i qt-creator-opensource-src-${surum}/qtcreator.pri + # use system qbs + rm -r qt-creator-opensource-src-${surum}/src/shared/qbs + + cd build + + qmake-qt5 LLVM_INSTALL_DIR=/usr QBS_INSTALL_DIR=/usr CONFIG-=journald QMAKE_CFLAGS_ISYSTEM=-I \ + DEFINES+=QBS_ENABLE_PROJECT_FILE_UPDATES "$SRC"/qt-creator-opensource-src-${surum}/qtcreator.pro + make + + make INSTALL_ROOT="${PKG}/usr/" install + + install -Dm644 ${SRC}/qt-creator-opensource-src-${surum}/LICENSE.GPL3-EXCEPT ${PKG}/usr/share/licenses/qtcreator/LICENSE.GPL3-EXCEPT +} diff --git a/talimatname/genel/q/qterminal/talimat b/talimatname/genel/q/qterminal/talimat new file mode 100644 index 000000000..a943da7a9 --- /dev/null +++ b/talimatname/genel/q/qterminal/talimat @@ -0,0 +1,21 @@ +# Tanım: Qt tabanlı hafif bir terminal emülatörü. +# URL: http://lxqt.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: liblxqt lxqt-qtermwidget lxqt-l10n + +isim=qterminal +surum=0.7.1 +devir=1 +kaynak=(https://github.com/lxde/$isim/releases/download/$surum/$isim-$surum.tar.xz) + + +derle() { + mkdir -v build + cd build + cmake $SRC/$isim-$surum \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_LIBDIR=lib + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/q/qtermwidget/talimat b/talimatname/genel/q/qtermwidget/talimat new file mode 100644 index 000000000..616801fe3 --- /dev/null +++ b/talimatname/genel/q/qtermwidget/talimat @@ -0,0 +1,22 @@ +# Tanım: Terminal Widget based on qt4 +# URL: http://sourceforge.net/projects/qterminal/ +# Maintainer: https://github.com/qterminal/qtermwidget.git +# Paketçi: pierre at nutyx dot org +# Gerekler: qt4 + +isim=qtermwidget +surum=20130206 +devir=2 + +kaynak=(http://downloads.nutyx.org/files/patchs/$isim/$isim-$surum.tar.bz2) +derle() +{ +cd $isim-$surum +mkdir build +cd build +cmake .. -DCMAKE_INSTALL_PREFIX=/usr + +make + +make DESTDIR="$PKG/" install +} diff --git a/talimatname/genel/q/qtkeychain-qt5/talimat b/talimatname/genel/q/qtkeychain-qt5/talimat new file mode 100644 index 000000000..c416f3418 --- /dev/null +++ b/talimatname/genel/q/qtkeychain-qt5/talimat @@ -0,0 +1,25 @@ +# Tanım: Güvenli kimlik bilgisi deposu için destek sağlar +# URL: https://github.com/frankosterfeld/qtkeychain +# Paketçi: milisarge +# Gerekler: cmake qt5 icu + + +isim=qtkeychain-qt5 +devir=3 +surum=0.5 +_isim=qtkeychain +kaynak=(https://github.com/frankosterfeld/qtkeychain/archive/$surum.zip ) + +derle() { +mkdir build +cd build +cmake ../$_name-$surum \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_LIBEXECDIR=lib/$isim \ + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/q/qtox/talimat b/talimatname/genel/q/qtox/talimat new file mode 100644 index 000000000..4db1c2bff --- /dev/null +++ b/talimatname/genel/q/qtox/talimat @@ -0,0 +1,20 @@ +# Tanım: C++/Qt tabanlı tox bağlanıcısı +# URL: https://github.com/qTox/qTox +# Paketçi: milisarge +# Gerekler: cmake qt5 desktop-file-utils openal qrencode gtk2 ffmpeg sqlcipher toxcore + +isim=qtox +name2=qTox +surum=1.10.1 +devir=1 +kaynak=(https://github.com/$isim2/$isim2/archive/v$surum.tar.gz) + +derle() { + cd $isim2-$surum + install -d build + cd build + cmake .. -DCMAKE_INSTALL_PREFIX="/usr" + make test + make + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/q/qtwebkit/talimat b/talimatname/genel/q/qtwebkit/talimat new file mode 100644 index 000000000..fc421bd01 --- /dev/null +++ b/talimatname/genel/q/qtwebkit/talimat @@ -0,0 +1,25 @@ +# Tanım: Qt4 lib için QtWebkit modülü +# Url: http://trac.webkit.org/wiki/QtWebKit +# Paketçi: milisarge +# Gerekler: ruby python qt4 + +PKGMK_IGNORE_UNPACK="yes" + + +isim=qtwebkit +surum=2.3.4 +devir=1 +_isim=qt-everywhere-opensource-src-${_qtversion} +kaynak=(http://download.kde.org/stable/qtwebkit-2.3/$surum/src/qtwebkit-$surum.tar.gz + http://www.linuxfromscratch.org/patches/blfs/svn/qtwebkit-2.3.4-gcc5-1.patch) +derle() { +mkdir qtwebkit-$surum +cd qtwebkit-$surum +tar xf ../qtwebkit-$surum.tar.gz +source setqt4 +patch -Np1 -i ../qtwebkit-2.3.4-gcc5-1.patch +[ -z $QTDIR ] && QTDIR="/usr" + +Tools/Scripts/build-webkit --qt --no-webkit2 --prefix=$QT4PREFIX +make INSTALL_ROOT=$PKG -C WebKitBuild/Release install +} diff --git a/talimatname/genel/q/quadrapassel/quadrapassel.kur-kos b/talimatname/genel/q/quadrapassel/quadrapassel.kur-kos new file mode 100644 index 000000000..7048548c7 --- /dev/null +++ b/talimatname/genel/q/quadrapassel/quadrapassel.kur-kos @@ -0,0 +1,3 @@ +glib-compile-schemas /usr/share/glib-2.0/schemas +update-desktop-database -q +gtk-update-icon-cache -f -q /usr/share/icons/hicolor diff --git a/talimatname/genel/q/quadrapassel/talimat b/talimatname/genel/q/quadrapassel/talimat new file mode 100644 index 000000000..188410a93 --- /dev/null +++ b/talimatname/genel/q/quadrapassel/talimat @@ -0,0 +1,18 @@ +# Tanım: Düşen blokları bir araya getirin (GNOME için Tetris benzeri oyun) +# URL: https://live.gnome.org/Quadrapassel +# Paketçi: yasarciv67@gmail.com +# Gerekler: gsettings-desktop-schemas desktop-file-utils gtk-update-icon-cache intltool itstool gobject-introspection desktop-file-utils hicolor-icon-theme clutter-gtk libcanberra librsvg + +isim=quadrapassel +surum=3.22.0 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${version:0:4}/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + --disable-schemas-compile +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/q/quicklisp/talimat b/talimatname/genel/q/quicklisp/talimat new file mode 100644 index 000000000..3cabc2fc8 --- /dev/null +++ b/talimatname/genel/q/quicklisp/talimat @@ -0,0 +1,19 @@ +# Tanım: Common Lisp için kütüphane yöneticisi +# URL: https://www.quicklisp.org +# Paketçi: milisarge +# Gerekler: sbcl +# Grup: geliştirme + +isim=quicklisp +surum=20150128 +devir=1 +kaynak=(https://beta.quicklisp.org/quicklisp.lisp) + +derle() { + echo $(awk '/qlqs-info/ {print $3}' $isim.lisp |tr -d - |tr -d \)) + echo -ne "(quicklisp-quickstart:install :path \"$PKG/usr/lib/$isim\")\n(quit)\n" | sbcl --no-userinit --load $isim.lisp + chmod 777 -R "$PKG"/usr/lib/$isim/dists + chmod 777 -R "$PKG"/usr/lib/$isim/local-projects + install -d "$PKG"/etc/default + echo -ne "(load \"/usr/lib/$isim/setup\")\n" > "$PKG"/etc/default/$isim +} diff --git a/talimatname/genel/q/qutebrowser/talimat b/talimatname/genel/q/qutebrowser/talimat new file mode 100644 index 000000000..3287f788c --- /dev/null +++ b/talimatname/genel/q/qutebrowser/talimat @@ -0,0 +1,17 @@ +# Tanım: PyQt5 tabanlı klavyeye dayalı, vim benzeri bir tarayıcı +# URL: http://www.qutebrowser.org/ +# Paketçi: Cihan_Alkan +# Gerekler: pyattrs pyjinja pygments pypeg2 python3-qt5 python3-yaml qt5 asciidoc +# Grup: ağ + +isim=qutebrowser +surum=1.1.1 +devir=1 +kaynak=(https://github.com/qutebrowser/qutebrowser/releases/download/v$surum/qutebrowser-$surum.tar.gz) + +derle() { + cd $isim-$surum + a2x -f manpage doc/qutebrowser.1.asciidoc + python3 setup.py build + make -f misc/Makefile DESTDIR="$PKG" install +} diff --git a/talimatname/genel/q/quvi/talimat b/talimatname/genel/q/quvi/talimat new file mode 100644 index 000000000..1ee26fd30 --- /dev/null +++ b/talimatname/genel/q/quvi/talimat @@ -0,0 +1,18 @@ +# Tanım: Video indirme bağlantılarını ayrıştırmak için komut satırı aracı. +# URL: http://quvi.sourceforge.net/ +# Paketçi: Cihan_Alkan +# Gerekler: libquvi libxml2 json-glib +# Grup: medya + +isim=quvi +surum=0.9.5 +devir=1 + +kaynak=(http://downloads.sourceforge.net/sourceforge/${isim}/${isim}-${surum}.tar.xz) + +derle() { + cd "${isim}-${surum}" + ./configure --prefix=/usr + make + make DESTDIR="${PKG}" install +} diff --git a/talimatname/genel/r/rabbitmq/rabbitmq-env.conf b/talimatname/genel/r/rabbitmq/rabbitmq-env.conf new file mode 100644 index 000000000..6918e6c0f --- /dev/null +++ b/talimatname/genel/r/rabbitmq/rabbitmq-env.conf @@ -0,0 +1,6 @@ +NODENAME=rabbit +NODE_IP_ADDRESS=0.0.0.0 +NODE_PORT=5672 + +LOG_BASE=/var/log/rabbitmq +MNESIA_BASE=/var/lib/rabbitmq/mnesia diff --git a/talimatname/genel/r/rabbitmq/rabbitmq-script-wrapper b/talimatname/genel/r/rabbitmq/rabbitmq-script-wrapper new file mode 100644 index 000000000..0e1ee8e14 --- /dev/null +++ b/talimatname/genel/r/rabbitmq/rabbitmq-script-wrapper @@ -0,0 +1,48 @@ +#!/bin/sh +## The contents of this file are subject to the Mozilla Public License +## Version 1.1 (the "License"); you may not use this file except in +## compliance with the License. You may obtain a copy of the License +## at http://www.mozilla.org/MPL/ +## +## Software distributed under the License is distributed on an "AS IS" +## basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See +## the License for the specific language governing rights and +## limitations under the License. +## +## The Original Code is RabbitMQ. +## +## The Initial Developer of the Original Code is GoPivotal, Inc. +## Copyright (c) 2007-2014 GoPivotal, Inc. All rights reserved. +## + +# Escape spaces and quotes, because shell is revolting. +for arg in "$@" ; do + # Escape quotes in parameters, so that they're passed through cleanly. + arg=$(sed -e 's/"/\\"/g' <<-END + $arg + END + ) + CMDLINE="${CMDLINE} \"${arg}\"" +done + +SCRIPT="$(basename "$0")" + +if [ $(id -u) = $(id -u rabbitmq) ] && [ "$SCRIPT" = "rabbitmq-server" ]; then + cd /var/lib/rabbitmq + /usr/lib/rabbitmq/bin/rabbitmq-server "$@" > "/var/log/rabbitmq/startup_log" 2> "/var/log/rabbitmq/startup_err" +elif [ $(id -u) = $(id -u rabbitmq) ]; then + cd /var/lib/rabbitmq + if [ -f "${PWD}/.erlang.cookie" ] ; then + export HOME=. + fi + "/usr/lib/rabbitmq/bin/${SCRIPT}" "$@" +elif [ $(id -u) = 0 ] ; then + cd /var/lib/rabbitmq + su rabbitmq -s /bin/sh -c "/usr/lib/rabbitmq/bin/${SCRIPT} ${CMDLINE}" +else + "/usr/lib/rabbitmq/bin/${SCRIPT}" + echo + echo "Only root or rabbitmq should run ${SCRIPT}" + echo + exit 1 +fi diff --git a/talimatname/genel/r/rabbitmq/rabbitmq.logrotate b/talimatname/genel/r/rabbitmq/rabbitmq.logrotate new file mode 100644 index 000000000..9e347d72f --- /dev/null +++ b/talimatname/genel/r/rabbitmq/rabbitmq.logrotate @@ -0,0 +1,6 @@ +/var/log/rabbitmq/*.log { + missingok + notifempty + compress + create 640 rabbitmq rabbitmq +} diff --git a/talimatname/genel/r/rabbitmq/rabbitmq.sysusers b/talimatname/genel/r/rabbitmq/rabbitmq.sysusers new file mode 100644 index 000000000..6b51a776b --- /dev/null +++ b/talimatname/genel/r/rabbitmq/rabbitmq.sysusers @@ -0,0 +1 @@ +u rabbitmq 197 "RabbitMQ user" /var/lib/rabbitmq diff --git a/talimatname/genel/r/rabbitmq/rabbitmq.tmpfiles b/talimatname/genel/r/rabbitmq/rabbitmq.tmpfiles new file mode 100644 index 000000000..56e74d0a4 --- /dev/null +++ b/talimatname/genel/r/rabbitmq/rabbitmq.tmpfiles @@ -0,0 +1,2 @@ +d /var/lib/rabbitmq 0750 rabbitmq rabbitmq - - +d /var/log/rabbitmq 0750 rabbitmq rabbitmq - - diff --git a/talimatname/genel/r/rabbitmq/talimat b/talimatname/genel/r/rabbitmq/talimat new file mode 100644 index 000000000..254a60297 --- /dev/null +++ b/talimatname/genel/r/rabbitmq/talimat @@ -0,0 +1,40 @@ +# Tanım: Erlang/OTP'de yazılmış AMQP'nin güvenilir ve kurumsal kurumsal mesajlaşma uygulaması +# URL: https://rabbitmq.com +# Paketçi: Cihan_Alkan +# Gerekler: erlang python libxslt xmlto zip +# Grup: kütüphane + +isim=rabbitmq +surum=3.6.15 +devir=1 + +kaynak=(https://www.rabbitmq.com/releases/rabbitmq-server/v$surum/rabbitmq-server_$surum.orig.tar.xz + rabbitmq-env.conf + rabbitmq.sysusers + rabbitmq.tmpfiles + rabbitmq-script-wrapper + rabbitmq.logrotate) + +derle() { + + cd ${isim}-server-${surum} + sed -r 's|^(SYS_PREFIX=).*$|\1""|' -i deps/rabbit/scripts/rabbitmq-defaults + make + make DESTDIR="${PKG}" PREFIX=/usr RMQ_ROOTDIR=/usr/lib/rabbitmq \ + install install-man install-bin + + # using script wrapper for better bin handling + local libdir="${PKG}/usr/lib/rabbitmq/lib/rabbitmq_server-${surum}" + install -d "${PKG}/usr/bin" + install -Dm 755 scripts/rabbitmq-script-wrapper -t "${PKG}/usr/lib/rabbitmq/bin" + for script in "${libdir}"/sbin/rabbit*; do + ln -s /usr/lib/rabbitmq/bin/rabbitmq-script-wrapper "${PKG}/usr/bin/${script#${libdir}/sbin/}" + done + + install -Dm 644 "${SRC}/rabbitmq-env.conf" "${PKG}/etc/rabbitmq/rabbitmq-env.conf" + install -Dm 644 "${SRC}/rabbitmq.sysusers" "${PKG}/usr/lib/sysusers.d/rabbitmq.conf" + install -Dm 644 "${SRC}/rabbitmq.tmpfiles" "${PKG}/usr/lib/tmpfiles.d/rabbitmq.conf" + install -Dm 644 "${SRC}/rabbitmq.logrotate" "${PKG}/etc/logrotate.d/rabbitmq" + + chown -R 197:0 "${PKG}/etc/rabbitmq" +} diff --git a/talimatname/genel/r/racket/talimat b/talimatname/genel/r/racket/talimat new file mode 100644 index 000000000..513c1abb4 --- /dev/null +++ b/talimatname/genel/r/racket/talimat @@ -0,0 +1,34 @@ +# Tanım: LISP benzeri sağlam plt şema programlama dili +# Url: http://racket-lang.org +# Paketçi: milisarge +# Gerekler: gsfonts sqlite gtk3 +# Grup: geliştirme + +isim=racket +surum=6.12 +devir=1 +kaynak=(http://download.racket-lang.org/installers/${surum}/${isim}-${surum}-src.tgz) + +derle() { + cd "$SRC/${isim}-${surum}" + echo "Icon=drracket" >> share/pkgs/drracket/drracket/drracket.desktop + cd "$SRC/${isim}-${surum}/src" + export CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fPIC -Wall -pthread" + export "LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -pthread" + ./configure --prefix=/usr --sysconfdir=/etc --disable-strip + make + cd "$SRC/${isim}-${surum}/src" + make DESTDIR=${PKG} install + install -Dm644 COPYING-libscheme.txt "${PKG}/usr/share/licenses/${isim}/LICENSE" + + install -Dm644 ../share/pkgs/drracket/drracket/drracket.desktop "${PKG}/usr/share/applications/drracket.desktop" + install -d "${PKG}"/usr/share/icons/hicolor/{16x16,32x32,48x48,256x256}/apps + ln -s /usr/share/racket/pkgs/icons/plt-16x16.png "${PKG}/usr/share/icons/hicolor/16x16/apps/drracket.png" + ln -s /usr/share/racket/pkgs/icons/plt-32x32.png "${PKG}/usr/share/icons/hicolor/32x32/apps/drracket.png" + ln -s /usr/share/racket/pkgs/icons/plt-48x48.png "${PKG}/usr/share/icons/hicolor/48x48/apps/drracket.png" + ln -s /usr/share/racket/pkgs/icons/plt-logo-red-diffuse.png "${PKG}/usr/share/icons/hicolor/256x256/apps/drracket.png" + + # sloppy + find "${PKG}/usr/share/doc/" -delete +} + diff --git a/talimatname/genel/r/radare2/talimat b/talimatname/genel/r/radare2/talimat new file mode 100644 index 000000000..e9195de8e --- /dev/null +++ b/talimatname/genel/r/radare2/talimat @@ -0,0 +1,22 @@ +# Tanım: açık kaynak assembler çözücü,hata ayıklayıcı ve ikili okuyucu çatı uygulaması +# URL: https://radare.org +# Paketçi: milisarge +# Gerekler: capstone libzip + +isim=radare2 +surum=1.5.0 +devir=1 +kaynak=(https://github.com/radare/radare2/archive/$surum.tar.gz) + +derle() { + cd ${isim}-${surum} + + ./configure --prefix=/usr \ + --with-syscapstone \ + --with-syszip \ + --with-openssl + make + make DESTDIR="${PKG}" install + rm "${PKG}"/usr/bin/r2-{indent,docker} "${PKG}/usr/share/man/man1/r2-docker.1" + +} diff --git a/talimatname/genel/r/ragel/talimat b/talimatname/genel/r/ragel/talimat new file mode 100644 index 000000000..2f56c66bf --- /dev/null +++ b/talimatname/genel/r/ragel/talimat @@ -0,0 +1,18 @@ +# Tanım: Sonlu durum makinelerini düzenli dillerden çalıştırılabilir C, C ++, Objective-C veya D koduna derler. +# URL: http://www.complang.org/ragel/ +# Paketçi: Cihan Alkan +# Gerekler: + +isim=ragel +surum=6.10 +devir=1 + +kaynak=(https://www.colm.net/files/$isim/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr CXXFLAGS="$CXXFLAGS -std=gnu++98" + make + make DESTDIR=$PKG install + install -m0644 -D ragel.vim "$PKG"/usr/share/vim/vimfiles/syntax/ragel.vim +} diff --git a/talimatname/genel/r/ranger/ranger.okubeni b/talimatname/genel/r/ranger/ranger.okubeni new file mode 100644 index 000000000..9f9898875 --- /dev/null +++ b/talimatname/genel/r/ranger/ranger.okubeni @@ -0,0 +1,29 @@ +Here are the optionnal deps which you can choose to install or not: + +- file: for determining file types +- The python module chardet, in case of encoding detection problems +- "sudo" to use the "run as root"-feature +- w3m for previewing images in "true color". + +And, for enhanced file previews (with "scope.sh"): + +- img2txt (from caca-utils) for previewing images in ASCII-art +- highlight for syntax highlighting of code +- atool for previews of archives +- lynx, w3m or elinks for previews of html pages +- pdftotext for pdf previews +- transmission-show for viewing bit-torrent information +- mediainfo or exiftool for viewing information about media files + +Note: previewing images in "true color" is disabled by default. To enable it, +first make sure you have w3m installed, then check that your terminal supports it. +It was successfully tested with urxvt and xterm, while it did not work with +gnome-terminal and st. Currently it does not work with tmux but with screen. +Finally, add this line to your ~/.config/ranger/rc.conf and restart ranger: + +set preview_images true + +Note: to use custom file previews, you need ranger 1.3.1 or later, and a script +that creates previews. Use the default script by typing: + +ranger --copy-config=scope diff --git a/talimatname/genel/r/ranger/talimat b/talimatname/genel/r/ranger/talimat new file mode 100644 index 000000000..b97c834f7 --- /dev/null +++ b/talimatname/genel/r/ranger/talimat @@ -0,0 +1,16 @@ +# Tanım: Ranger, VI anahtar bağları olan bir dosya yöneticisidir. +# URL: http://ranger.nongnu.org/ +# Paketçi: milisarge +# Gerekler: python3 + +isim=ranger +surum=1.8.1 +devir=1 + +kaynak=(http://ranger.nongnu.org/$isim-$surum.tar.gz +) + +derle() { + cd $isim-$surum + python3 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/r/raptor/talimat b/talimatname/genel/r/raptor/talimat new file mode 100644 index 000000000..e32db33e5 --- /dev/null +++ b/talimatname/genel/r/raptor/talimat @@ -0,0 +1,18 @@ +# Tanım: RDF / XML / N-Üçlülerini RDF üçlülerine ayrıştıran bir C kitaplığı +# URL: http://download.librdf.org/source/ +# Paketçi: milisarge +# Gerekler: libxml2 icu + +isim=raptor +surum=2.0.15 +devir=2 + +kaynak=(http://librdf.org/dist/source/raptor2-$surum.tar.gz) +derle() { + cd raptor2-$surum + ./configure --prefix=/usr \ + --disable-static \ + --with-icu-config=/usr/bin/icu-config + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/r/rarian/talimat b/talimatname/genel/r/rarian/talimat new file mode 100644 index 000000000..5ca1e0dcc --- /dev/null +++ b/talimatname/genel/r/rarian/talimat @@ -0,0 +1,17 @@ +# Tanım: Scrollkeeper'ın yerini alacak şekilde tasarlanmış dokümantasyon meta veri kütüphanesi. +# URL: http://www.gnome.org/ +# Paketçi: milisarge +# Gerekler: libxslt + +isim=rarian +surum=0.8.1 +devir=1 + +kaynak=( http://ftp.gnome.org/pub/gnome/sources/rarian/${surum%.*}/$isim-$surum.tar.bz2) +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/r/rasqal/talimat b/talimatname/genel/r/rasqal/talimat new file mode 100644 index 000000000..db3de1ca7 --- /dev/null +++ b/talimatname/genel/r/rasqal/talimat @@ -0,0 +1,18 @@ +# Tanım: Kaynak Tanımlama Çerçevesi (RDF) sorgu sözdizimini işleyen ücretsiz bir C kitaplığı +# URL: http://download.librdf.org/source/ +# Paketçi: milisarge +# Gerekler: libxslt raptor libgcrypt + +isim=rasqal +surum=0.9.33 +devir=1 + +kaynak=(http://download.librdf.org/source/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/r/ratpoison/ratpoison.desktop b/talimatname/genel/r/ratpoison/ratpoison.desktop new file mode 100644 index 000000000..8c3c445fb --- /dev/null +++ b/talimatname/genel/r/ratpoison/ratpoison.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Encoding=UTF-8 +Type=XSession +Name=Ratpoison +Comment=The ratpoison window manager +Exec=ratpoison +Type=Application diff --git a/talimatname/genel/r/ratpoison/ratpoison.okubeni b/talimatname/genel/r/ratpoison/ratpoison.okubeni new file mode 100644 index 000000000..6497ef1f4 --- /dev/null +++ b/talimatname/genel/r/ratpoison/ratpoison.okubeni @@ -0,0 +1,38 @@ +If you are not using a graphical display manager (gsm, lightdm, kdm, ...), +please consider adding this lines to your ~/.xinitrc + +#!/bin/sh + +userresources=$HOME/.Xresources +usermodmap=$HOME/.Xmodmap +sysresources=/usr/lib/X11/xinit/.Xresources +sysmodmap=/usr/lib/X11/xinit/.Xmodmap + +# merge in defaults and keymaps + +if [ -f $sysresources ]; then + xrdb -merge $sysresources +fi + +if [ -f $sysmodmap ]; then + xmodmap $sysmodmap +fi + +if [ -f $userresources ]; then + xrdb -merge $userresources +fi + +if [ -f $usermodmap ]; then + xmodmap $usermodmap +fi + +# Start the window manager: +if [ -x /usr/bin/ck-launch-session ]; then + LAUNCH="ck-launch-session" +else + LAUNCH="" +fi +if [ -x /usr/bin/dbus-launch ]; then + LAUNCH="$LAUNCH dbus-launch --exit-with-session" +fi +exec $LAUNCH /usr/bin/ratpoison diff --git a/talimatname/genel/r/ratpoison/talimat b/talimatname/genel/r/ratpoison/talimat new file mode 100644 index 000000000..60fa1ef5e --- /dev/null +++ b/talimatname/genel/r/ratpoison/talimat @@ -0,0 +1,39 @@ +# Tanım: Ratpoison, kullanıcının fareyle uygulamayı yönetmesine izin veren C ile yazılmış bir döşeme penceresi yöneticisidir. Kullanıcı arabirimi, Screen'den esinlenmiştir. +# URL: http://www.nongnu.org/ratpoison/ +# Paketçi: milisarge +# Gerekler: texinfo xorg-libxft xorg-libxinerama xorg-libxtst + +isim=ratpoison +surum=1.4.7 +devir=2 + +kaynak=(http://savannah.nongnu.org/download/$isim/$isim-$surum.tar.xz +$isim.desktop +$isim.README) + +derle(){ + cd $isim-$surum + sed -i 's|PRINT_ERROR (("XGetWMName|PRINT_DEBUG (("XGetWMName|' src/manage.c + ./configure --prefix=/usr + make CFLAGS="$CFLAGS -DHAVE_GETLINE" + make DESTDIR=$PKG install + + # düzeltme izinleri + chmod +x $PKG/usr/share/ratpoison/{allwindows.sh,clickframe.pl,rpshowall.sh,rpws,split.sh} + + cd contrib + ./genrpbindings + install -dm755 $PKG/usr/share/ratpoison/bindings + install -m644 \ + {Ratpoison.pm,ratpoison-cmd.el,ratpoison.rb,ratpoison.lisp,ratpoison.py} \ + $PKG/usr/share/ratpoison/bindings/ + + install -Dm644 $SRC/$isim.desktop \ + $PKG/usr/share/xsessions/$isim.desktop + + mv $PKG/usr/share/doc/$isim $PKG/usr/share/doc/$isim-$surum + install -m644 $SRC/$isim.README \ + $PKG/usr/share/doc/$isim-$surum/$isim.README +} + + diff --git a/talimatname/genel/r/razor/razor-2.85-cosmetic-pv-fix.patch b/talimatname/genel/r/razor/razor-2.85-cosmetic-pv-fix.patch new file mode 100644 index 000000000..70bc1ea6a --- /dev/null +++ b/talimatname/genel/r/razor/razor-2.85-cosmetic-pv-fix.patch @@ -0,0 +1,23 @@ +--- a/lib/Razor2/Client/Version.pm 2007-05-10 22:32:10.000000000 +0200 ++++ b/lib/Razor2/Client/Version.pm 2010-03-25 11:11:36.911409707 +0100 +@@ -14,7 +14,7 @@ + + $PROTOCOL = 3; + +-$VERSION = '2.84'; ++$VERSION = '2.85'; + + 1; + +--- a/META.yml 2007-05-23 20:29:34.000000000 +0200 ++++ b/META.yml 2010-03-25 11:11:43.691408628 +0100 +@@ -1,7 +1,7 @@ + # http://module-build.sourceforge.net/META-spec.html + #XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX# + name: razor-agents +-version: 2.84 ++version: 2.85 + version_from: lib/Razor2/Client/Version.pm + installdirs: site + requires: + diff --git a/talimatname/genel/r/razor/talimat b/talimatname/genel/r/razor/talimat new file mode 100644 index 000000000..278517b62 --- /dev/null +++ b/talimatname/genel/r/razor/talimat @@ -0,0 +1,23 @@ +# Tanım: Dağıtılmış, ortak çalışan, spam tespit ve filtreleme ağı. +# URL: http://search.cpan.org/ +# Paketçi: milisarge +# Gerekler: perl perl-net-dns perl-digest-sha1 perl-uri perl-digest-nilsimsa + +isim=razor +surum=2.85 +devir=1 + +kaynak=(http://sourceforge.net/projects/razor/files/razor-agents/$surum/razor-agents-$surum.tar.bz2 + razor-2.85-cosmetic-pv-fix.patch) + +derle() { +cd razor-agents-$surum +patch -p1 -i $SRC/razor-2.85-cosmetic-pv-fix.patch +perl Makefile.PL INSTALLDIRS=vendor +make +make DESTDIR=$PKG install +find $PKG \ + -name '*.bs' -or \ + -name '.packlist' -or \ + -name 'perllocal.pod' | xargs rm +} diff --git a/talimatname/genel/r/rdesktop/rdesktop-send_physical_buttons.diff b/talimatname/genel/r/rdesktop/rdesktop-send_physical_buttons.diff new file mode 100644 index 000000000..313cd8d50 --- /dev/null +++ b/talimatname/genel/r/rdesktop/rdesktop-send_physical_buttons.diff @@ -0,0 +1,71 @@ +? aclocal.m4 +Index: rdesktop.c +=================================================================== +RCS file: /cvsroot/rdesktop/rdesktop/rdesktop.c,v +retrieving revision 1.163 +diff -u -r1.163 rdesktop.c +--- rdesktop.c 5 Apr 2008 06:15:45 -0000 1.163 ++++ rdesktop.c 5 Aug 2008 11:46:04 -0000 +@@ -73,6 +73,7 @@ + int g_win_button_size = 0; /* If zero, disable single app mode */ + RD_BOOL g_bitmap_compression = True; + RD_BOOL g_sendmotion = True; ++RD_BOOL g_send_physical_buttons = True; + RD_BOOL g_bitmap_cache = True; + RD_BOOL g_bitmap_cache_persist_enable = False; + RD_BOOL g_bitmap_cache_precache = True; +@@ -152,6 +153,7 @@ + fprintf(stderr, " -B: use BackingStore of X-server (if available)\n"); + fprintf(stderr, " -e: disable encryption (French TS)\n"); + fprintf(stderr, " -E: disable encryption from client to server\n"); ++ fprintf(stderr, " -M: do not map logical mouse buttons to physical\n"); + fprintf(stderr, " -m: do not send motion events\n"); + fprintf(stderr, " -C: use private colour map\n"); + fprintf(stderr, " -D: hide window manager decorations\n"); +@@ -450,7 +452,7 @@ + #endif + + while ((c = getopt(argc, argv, +- VNCOPT "A:u:L:d:s:c:p:n:k:g:o:fbBeEitmzCDKS:T:NX:a:x:Pr:045h?")) != -1) ++ VNCOPT "A:u:L:d:s:c:p:n:k:g:o:fbBeEitMmzCDKS:T:NX:a:x:Pr:045h?")) != -1) + { + switch (c) + { +@@ -584,6 +586,9 @@ + case 'E': + g_packet_encryption = False; + break; ++ case 'M': ++ g_send_physical_buttons = False; ++ break; + case 'm': + g_sendmotion = False; + break; +Index: xwin.c +=================================================================== +RCS file: /cvsroot/rdesktop/rdesktop/xwin.c,v +retrieving revision 1.235 +diff -u -r1.235 xwin.c +--- xwin.c 11 Jul 2008 03:51:23 -0000 1.235 ++++ xwin.c 5 Aug 2008 11:46:06 -0000 +@@ -36,6 +36,7 @@ + extern int g_ypos; + extern int g_pos; + extern RD_BOOL g_sendmotion; ++extern RD_BOOL g_send_physical_buttons; + extern RD_BOOL g_fullscreen; + extern RD_BOOL g_grab_keyboard; + extern RD_BOOL g_hide_decorations; +@@ -2190,7 +2191,8 @@ + receive physical buttons (true in mstsc as well) and + logical button behavior depends on the remote desktop's own + mouse settings */ +- xevent.xbutton.button = g_pointer_log_to_phys_map[xevent.xbutton.button - 1]; ++ if (g_send_physical_buttons) ++ xevent.xbutton.button = g_pointer_log_to_phys_map[xevent.xbutton.button - 1]; + button = xkeymap_translate_button(xevent.xbutton.button); + if (button == 0) + return; + + + diff --git a/talimatname/genel/r/rdesktop/talimat b/talimatname/genel/r/rdesktop/talimat new file mode 100644 index 000000000..4b392934e --- /dev/null +++ b/talimatname/genel/r/rdesktop/talimat @@ -0,0 +1,24 @@ +# Tanım: Terminal pencerelerine erişime izin verir +# URL: http://www.rdesktop.org/ +# Paketçi: milisarge +# Gerekler: xorg-libx11 + +isim=rdesktop +surum=1.8.2 +devir=1 + +kaynak=(http://downloads.sourceforge.net/$isim/$isim-$surum.tar.gz + rdesktop-send_physical_buttons.diff) + +derle() { + cd $isim-$surum + patch -i $SRC/rdesktop-send_physical_buttons.diff + + ./configure --prefix=/usr \ + --disable-credssp \ + --disable-smartcard + make + make DESTDIR=$PKG install + +} + diff --git a/talimatname/genel/r/re-alpine/talimat b/talimatname/genel/r/re-alpine/talimat new file mode 100644 index 000000000..38a8cfc6d --- /dev/null +++ b/talimatname/genel/r/re-alpine/talimat @@ -0,0 +1,24 @@ +# Desciription: Washington Üniversitesi tarafından geliştirilen Alpine, metin tabanlı e-posta istemcisinin devamı. +# URL: http://sourceforge.net/projects/re-alpine/files/re-alpine-2.03.tar.bz2 +# Paketçi: milisarge +# Gerekler: openssl aspell tcl pam + +isim=re-alpine +surum=2.03 +devir=1 +kaynak=(http://sourceforge.net/projects/re-alpine/files/$isim-$surum.tar.bz2) + +derle() { + +cd $isim-$surum + +./configure --prefix=/usr \ + --sysconfdir=/etc \ + --without-ldap \ + --without-krb5 \ + --with-ssl-dir=/usr \ + --with-passfile=.pine-passfile +make +make DESTDIR=$PKG install + +} diff --git a/talimatname/genel/r/re2/talimat b/talimatname/genel/r/re2/talimat new file mode 100644 index 000000000..33c87cf35 --- /dev/null +++ b/talimatname/genel/r/re2/talimat @@ -0,0 +1,18 @@ +# Tanım: Hızlı, güvenli, thread dostu normal ifade motoru +# URL: https://github.com/google/re2 +# Paketçi: Cihan_Alkan +# Gerekler: +# Grup: kütüphane + +isim=re2 +surum=2018-01-01 +devir=1 + +kaynak=(https://github.com/google/re2/archive/$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + make + make prefix=/usr DESTDIR="$PKG" install + install -Dm644 LICENSE "$PKG/usr/share/licenses/$isim/LICENSE" +} diff --git a/talimatname/genel/r/re2c/talimat b/talimatname/genel/r/re2c/talimat new file mode 100644 index 000000000..b014777f0 --- /dev/null +++ b/talimatname/genel/r/re2c/talimat @@ -0,0 +1,19 @@ +# Tanım: Normal ifadelerden C tabanlı tanıyıcılar üretmek için kullanılan bir araç +# URL: http://re2c.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: + +isim=re2c +surum=1.0.2 +devir=1 + +kaynak=(https://github.com/skvadrik/re2c/archive/$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum/re2c + ./autogen.sh + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/r/rebar3/talimat b/talimatname/genel/r/rebar3/talimat new file mode 100644 index 000000000..4d1b9784d --- /dev/null +++ b/talimatname/genel/r/rebar3/talimat @@ -0,0 +1,17 @@ +# Tanım: Otp esaslarına göre erlang derleme aracı +# URL: https://github.com/rebar/rebar3 +# Paketçi: milisarge +# Gerekler: erlang + +isim=rebar3 +surum=3.5.0 +devir=1 +kaynak=(https://github.com/rebar/rebar3/archive/${surum}.tar.gz::$isim-$surum.tar.gz) + +derle(){ + cd "$SRC/$isim-$surum" + ./bootstrap + install -Dm0755 "${isim}" "$PKG/usr/bin/${isim}" + install -Dm0644 "priv/shell-completion/bash/rebar3" "$PKG/usr/share/bash-completion/completions/rebar3" +} + diff --git a/talimatname/genel/r/recordmydesktop/talimat b/talimatname/genel/r/recordmydesktop/talimat new file mode 100644 index 000000000..3e9660596 --- /dev/null +++ b/talimatname/genel/r/recordmydesktop/talimat @@ -0,0 +1,17 @@ +# Tanım: Bir masaüstü oturumu kaydetmek için bir program +# URL: http://recordmydesktop.sourceforge.net/ +# Paketçi: milisarge@gmail.com +# Gerekler: libtheora xorg-libxdamage xorg-libxext + +isim=recordmydesktop +surum=0.3.8.1 +devir=1 +kaynak=(http://download.sourceforge.net/$isim/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --mandir=/usr/man + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/r/recoverjpeg/talimat b/talimatname/genel/r/recoverjpeg/talimat new file mode 100644 index 000000000..e366e67ff --- /dev/null +++ b/talimatname/genel/r/recoverjpeg/talimat @@ -0,0 +1,19 @@ +# Tanım: hardisk silinmiş jpeg-mov kurtarıcı +# Url: https://github.com/samueltardieu/recoverjpeg +# Paketçi: milisarge +# Gerekler: python + +isim=recoverjpeg +surum=2.6.1 +devir=1 +kaynak=(http://www.rfc1149.net/download/${isim}/${isim}-${surum}.tar.gz) + +derle() { + cd $isim-$surum + sed -i '1s,.*,#! /usr/bin/python2,' scripts/remove-duplicates + ./configure --prefix=/usr + make + make DESTDIR="${PKG}/" install + install -D -m 644 COPYING ${PKG}/usr/share/licenses/$isim/COPYING +} + diff --git a/talimatname/genel/r/redland/rpath.diff b/talimatname/genel/r/redland/rpath.diff new file mode 100644 index 000000000..831bc80ed --- /dev/null +++ b/talimatname/genel/r/redland/rpath.diff @@ -0,0 +1,11 @@ +--- libtool 2011-02-20 10:46:47.000000000 +0100 ++++ libtool.new 2011-02-20 10:52:58.285764909 +0100 +@@ -324,7 +324,7 @@ + + # Flag to hardcode $libdir into a binary during linking. + # This must work even if $libdir does not exist +-hardcode_libdir_flag_spec="\${wl}-rpath \${wl}\$libdir" ++hardcode_libdir_flag_spec=" " + + # If ld is used when linking, flag to hardcode $libdir into a binary + # during linking. This must work even if $libdir does not exist. diff --git a/talimatname/genel/r/redland/talimat b/talimatname/genel/r/redland/talimat new file mode 100644 index 000000000..4e20d721f --- /dev/null +++ b/talimatname/genel/r/redland/talimat @@ -0,0 +1,27 @@ +# Tanım: RDF verilerine üst düzey bir arayüz sağlayan kütüphane +# URL: http://download.librdf.org/source/ +# Paketçi: milisarge +# Gerekler: rasqal raptor sqlite libiodbc pcre + +isim=redland +surum=1.0.17 +devir=4 + +kaynak=(http://download.librdf.org/source/$isim-$surum.tar.gz + rpath.diff) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ + --enable-release \ + --enable-silent-rules \ + --disable-static \ + --with-raptor=system \ + --with-rasqal=system \ + --with-sqlite=3 \ + --with-bdb=no +patch -Np0 -i "${SRC}/rpath.diff" +make -j1 +make DESTDIR=$PKG install +rm -rf $PKG/usr/share/gtk-doc +} diff --git a/talimatname/genel/r/reflex/talimat b/talimatname/genel/r/reflex/talimat new file mode 100644 index 000000000..100744153 --- /dev/null +++ b/talimatname/genel/r/reflex/talimat @@ -0,0 +1,16 @@ +# Tanım: Bu, esnek, hızlı sözcüksel tarayıcının bir varyantı +# URL: http://invisible-island.net/reflex/reflex.html +# Paketçi: milisarge +# Gerekler: + +isim=reflex +surum=20100627 +devir=1 +kaynak=(ftp://invisible-island.net/${isim}/${isim}-${surum}.tgz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --mandir=/usr/man + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/r/reiserfsprogs/talimat b/talimatname/genel/r/reiserfsprogs/talimat new file mode 100644 index 000000000..ec9ee94ee --- /dev/null +++ b/talimatname/genel/r/reiserfsprogs/talimat @@ -0,0 +1,22 @@ +# Tanım: Utilities for use with the Reiser file system. +# URL: http://www.kernel.org/pub/linux/utils/fs/reiserfs/ +# Paketçi: milisarge +# Gerekler: + +isim=reiserfsprogs +surum=3.6.24 +devir=1 + +kaynak=(http://ftp.kernel.org/pub/linux/kernel/people/jeffm/reiserfsprogs/v${surum}/$isim-$surum.tar.xz) + + +derle() { + export CFLAGS="$CFLAGS -std=gnu90" + cd $isim-$surum + ./configure --prefix=/usr \ + --sbindir=/sbin + make + make DESTDIR=$PKG install + ln -sf reiserfsck $PKG/sbin/fsck.reiserfs + ln -sf mkreiserfs $PKG/sbin/mkfs.reiserfs +} diff --git a/talimatname/genel/r/remake/talimat b/talimatname/genel/r/remake/talimat new file mode 100644 index 000000000..c0d02823d --- /dev/null +++ b/talimatname/genel/r/remake/talimat @@ -0,0 +1,22 @@ +# Tanım: Geliştirilmiş GNU Make - tracing, hata raporlama, hata ayıklama, profil oluşturma ve daha fazlası +# URL: https://github.com/richfitz/remake +# Paketçi: Cihan_Alkan +# Gerekler: guile +# Grup: geliştirme + +isim=remake +surum=4.2.1 +devir=1 +kaynak=(https://sourceforge.net/projects/bashdb/files/remake/4.2%2Bdbg-1.1/remake-4.2.1%2Bdbg1.1.tar.bz2::$isim-$surum.tar.bz2) + + +derle() { +cd $isim-4.2.1+dbg1.1 + autoreconf -fi + + ./configure --prefix=/usr + make + + make DESTDIR=${PKG} install + mv "$PKG/usr/include/gnumake.h" "$PKG/usr/include/remake.h" +} diff --git a/talimatname/genel/r/remmina/talimat b/talimatname/genel/r/remmina/talimat new file mode 100644 index 000000000..74e4cf588 --- /dev/null +++ b/talimatname/genel/r/remmina/talimat @@ -0,0 +1,31 @@ +# Tanım: A remote desktop client written in GTK+ - git checkout +# URL: http://www.remmina.org/ +# Paketçi: milisarge +# Gerekler: intltool gtk3 cmake avahi xorg-libxkbfile freerdp telepathy-glib gtk2 libjpeg-turbo libssh libunique vte3 libgcrypt xorg-libxdmcp libgnome-keyring libvncserver libsecret webkitgtk2 + +isim=remmina +hesap=FreeRDP +_isim=Remmina +surum=1.2.0 +devir=1 +kaynak=() + +derle() { + if [ ! -d $DERLEME_KAYNAKDIZIN/$_name ];then + git clone https://github.com/$hesap/$_name $DERLEME_KAYNAKDIZIN/$_name + else + cd $DERLEME_KAYNAKDIZIN/$_name + git pull + cd - + fi + cp -r $DERLEME_KAYNAKDIZIN/$_name $SRC/ + cd $SRC/$_name + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DWITH_APPINDICATOR=OFF \ + -DWITH_AVAHI=OFF \ + . + make + make DESTDIR="${PKG}/" install +} diff --git a/talimatname/genel/r/reptyr/talimat b/talimatname/genel/r/reptyr/talimat new file mode 100644 index 000000000..0fc15b157 --- /dev/null +++ b/talimatname/genel/r/reptyr/talimat @@ -0,0 +1,17 @@ +# Tanım: çalışan bir süreci alıp yeni bir terminale yerleştirici uygulama +# URL: https://github.com/nelhage/reptyr +# Paketçi: milisarge +# Gerekler: +# Grup: sistem + +isim=reptyr +surum=0.6.2 +devir=1 +kaynak=(https://github.com/nelhage/reptyr/archive/reptyr-$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd $isim-$isim-$surum + make + make "DESTDIR=$PKG" "PREFIX=/usr" install + install -Dm644 COPYING $PKG/usr/share/licenses/reptyr/LICENSE +} diff --git a/talimatname/genel/r/restbed/strand.patch b/talimatname/genel/r/restbed/strand.patch new file mode 100644 index 000000000..1ef4c55c3 --- /dev/null +++ b/talimatname/genel/r/restbed/strand.patch @@ -0,0 +1,8 @@ +--- a/source/corvusoft/restbed/detail/socket_impl.hpp 2016-09-28 12:01:30.415787179 -0400 +--- a/source/corvusoft/restbed/detail/socket_impl.hpp 2016-09-28 12:01:33.329120391 -0400 +@@ -23,3 +23,3 @@ + #include +-#include ++#include + + diff --git a/talimatname/genel/r/restbed/talimat b/talimatname/genel/r/restbed/talimat new file mode 100644 index 000000000..8839c3d3f --- /dev/null +++ b/talimatname/genel/r/restbed/talimat @@ -0,0 +1,24 @@ +# Tanım: A framework for asynchronous RESTful functionality in C++11 applications +# URL: https://github.com/Corvusoft/restbed +# Paketçi: milisarge +# Gerekler: cmake asio kashmir + +isim=restbed +surum=4.6 +devir=1 +kaynak=(https://github.com/Corvusoft/restbed/archive/$surum.tar.gz::$isim-$surum.tar.gz + strand.patch) + +derle() { + cd "$SRC/$isim-$surum" + # Necessary to build against asio 1.10.X + patch -p1 < "$SRC"/strand.patch + mkdir -p build + cd build + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED=on + make + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/r/retroshare/talimat b/talimatname/genel/r/retroshare/talimat new file mode 100644 index 000000000..acfd59752 --- /dev/null +++ b/talimatname/genel/r/retroshare/talimat @@ -0,0 +1,28 @@ +# Tanım: retroshare,osya paylaşımı,mesajlaşma vb. uygulamalar içeren f2f çatısı +# URL: http://retroshare.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: libupnp sqlcipher qt5 libgnome-keyring libxslt ffmpeg opencv libmicrohttpd speexdsp + +isim=retroshare +surum=0.6.2 +devir=1 +kaynak=(https://github.com/RetroShare/RetroShare/archive/v$surum.tar.gz) + +derle() { + cd RetroShare-$surum + cd libretroshare/src + LANG=C ./version_detail.sh + cd ../.. + cd retroshare-gui/src + LANG=C ./version_detail.sh + cd ../.. + _optAutol='CONFIG+=rs_autologin' + qmake-qt5 CONFIG-=debug CONFIG+=release \ + CONFIG+=rs_nodeprecatedwarning \ + ${_optAutol} \ + QMAKE_CFLAGS_RELEASE="${CFLAGS}"\ + QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}"\ + RetroShare.pro + make + make INSTALL_ROOT="${PKG}" install +} diff --git a/talimatname/genel/r/rfkill/talimat b/talimatname/genel/r/rfkill/talimat new file mode 100644 index 000000000..87851b75e --- /dev/null +++ b/talimatname/genel/r/rfkill/talimat @@ -0,0 +1,15 @@ +# Tanım: Rfkill anahtarlarını sorgulamak ve değiştirmek için kullanıcı alanı aracı +# URL: http://wireless.kernel.org/en/users/Documentation/rfkill +# Paketçi: milisarge +# Gerekler: + +isim=rfkill +surum=0.5 +devir=2 +kaynak=(http://www.kernel.org/pub/software/network/$isim/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/r/rhash/talimat b/talimatname/genel/r/rhash/talimat new file mode 100644 index 000000000..7172249c7 --- /dev/null +++ b/talimatname/genel/r/rhash/talimat @@ -0,0 +1,27 @@ +# Tanım: Dosya karma değerlerini doğrulamak için yardımcı program +# URL: http://rhash.anz.ru/?l=en +# Paketçi: Cihan Alkan +# Gerekler: +# Grup: sistem + +isim=rhash +surum=1.3.5 +devir=1 +kaynak=(https://downloads.sourceforge.net/rhash/rhash-$surum-src.tar.gz) + +derle() { + cd RHash-$surum + export ADDCFLAGS="$CFLAGS" + export ADDLDFLAGS="$LDFLAGS" + make build-shared + make -C librhash + + # program + make PREFIX=/usr DESTDIR="$PKG" install-shared + + # library + make -C librhash PREFIX=/usr DESTDIR="$PKG" install-headers install-lib-shared install-so-link + + # license + install -Dm644 COPYING "$PKG"/usr/share/licenses/rhash/LICENSE +} diff --git a/talimatname/genel/r/rhino/talimat b/talimatname/genel/r/rhino/talimat new file mode 100644 index 000000000..7ba56dead --- /dev/null +++ b/talimatname/genel/r/rhino/talimat @@ -0,0 +1,20 @@ +# Tanım: JavaScript in java gerçeklemesi +# URL: https://github.com/mozilla/rhino +# Paketçi: milisarge +# Gerekler: apache-ant openjdk + +isim=rhino +surum=1.7.7.1 +devir=1 +kaynak=(https://github.com/mozilla/$isim/archive/Rhino${version//./_}_RELEASE.tar.gz + http://archive.apache.org/dist/xmlbeans/binaries/xmlbeans-2.6.0.tgz) + +derle() { + export JAVA_HOME=/opt/OpenJDK-8u60-bin + export PATH=$JAVA_HOME/bin:/opt/ant/bin:$PATH + cd $isim-Rhino${version//./_}_RELEASE + ant -Dxbean.jar=$SRC/xmlbeans-2.6.0/lib/xbean.jar \ + -Djsr173.jar=$SRC/xmlbeans-2.6.0/lib/jsr173_1.0_api.jar \ + jar javadoc + install -D -m 644 build/$isim$surum/js.jar $PKG/usr/share/java/$isim.jar +} diff --git a/talimatname/genel/r/rhythmbox/rhythmbox.kur-kos b/talimatname/genel/r/rhythmbox/rhythmbox.kur-kos new file mode 100644 index 000000000..e1a0850e4 --- /dev/null +++ b/talimatname/genel/r/rhythmbox/rhythmbox.kur-kos @@ -0,0 +1,3 @@ +glib-compile-schemas /usr/share/glib-2.0/schemas +update-desktop-database -q +gtk-update-icon-cache -f -q -t /usr/share/icons/hicolor diff --git a/talimatname/genel/r/rhythmbox/talimat b/talimatname/genel/r/rhythmbox/talimat new file mode 100644 index 000000000..fd0a0f0f0 --- /dev/null +++ b/talimatname/genel/r/rhythmbox/talimat @@ -0,0 +1,29 @@ +# Tanım: iTunes benzeri müzik çalma ve yönetim uygulaması +# URL: http://www.rhythmbox.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: gsettings-desktop-schemas desktop-file-utils gtk-update-icon-cache gobject-introspection intltool gtk3 gdk-pixbuf libsoup libpeas libxml2 tdb json-glib totem-pl-parser libmtp gstreamer1 gstreamer1-plugins-base gstreamer1-plugins-good webkit2gtk3 python python-gobject + +isim=rhythmbox +surum=3.4.1 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${version:0:3}/$isim-$surum.tar.xz) + +derle() { + + cd $isim-$surum + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --disable-scrollkeeper \ + --enable-python=yes \ + --enable-vala \ + --enable-browser-plugin \ + --enable-musicbrainz \ + --with-gudev \ + --with-mtp \ + --with-gnome-keyring \ + --with-brasero \ + --with-webkit + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/r/ricin/talimat b/talimatname/genel/r/ricin/talimat new file mode 100644 index 000000000..a028ea355 --- /dev/null +++ b/talimatname/genel/r/ricin/talimat @@ -0,0 +1,21 @@ +# Tanım: Hafif vala tabanlı Tox istemcisi +# URL: https://github.com/RicinApp/Ricin +# Paketçi: milisarge +# Gerekler: toxcore meson gtk3 vala json-glib libsoup libnotify + +isim=ricin +_isim=Ricin +surum=0.0.7 +devir=1 +kaynak=(https://github.com/RicinApp/${_name}/archive/v${surum}.tar.gz) + +derle() { + cd ${_name}-${surum} + make autogen + make release + cd build + mesonconf.py -Dprefix=/usr + cd .. + make DESTDIR=$PKG install + install -Dm755 "build/${_name}" "$PKG/usr/bin/ricin" +} diff --git a/talimatname/genel/r/ring-daemon/talimat b/talimatname/genel/r/ring-daemon/talimat new file mode 100644 index 000000000..c1d4b494e --- /dev/null +++ b/talimatname/genel/r/ring-daemon/talimat @@ -0,0 +1,39 @@ +# Tanım: ring.cx sflphone olarak ta bilinen ücretsiz iletişim yazılımıdır. +# URL: https://ring.cx +# Paketçi: milisarge +# Gerekler: boost libsecp256k1 msgpack-c autoconf-archive opendht yaml-cpp alsa-lib pulseaudio jack jsoncpp libsamplerate libsndfile dbus-c++ ffmpeg xorg-libxtst gnutls gsm libupnp libnatpmp crypto++ libva boost libvdpau restbed +# Grup: ağ + +isim=ring-daemon +surum=git +devir=1 +kaynak=(https://github.com/savoirfairelinux/ring-daemon/archive/master.tar.gz::$isim-git-$devir.tar.gz) + +derle() { + cd "$SRC/$isim-master" + _pjprojectver=2.6 + wget -nc http://www.pjsip.org/release/${_pjprojectver}/pjproject-${_pjprojectver}.tar.bz2 -P $DERLEME_KAYNAKDIZIN + [ -f $DERLEME_KAYNAKDIZIN/pjproject-${_pjprojectver}.tar.bz2 ] && \ + cp $DERLEME_KAYNAKDIZIN/pjproject-${_pjprojectver}.tar.bz2 contrib/tarballs \ + || exit 1 + + mkdir contrib/native + autoreconf -fvi + cd "$SRC/$isim-master/contrib/native" + ../bootstrap \ + --disable-downloads \ + --disable-all \ + --enable-pjproject + make DEPS_pjproject= + + cd ../.. + ./configure \ + --prefix=/usr \ + --sbindir=/usr/bin \ + --libexecdir=/usr/lib \ + --sysconfdir=/etc \ + --enable-ipv6 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + make + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/r/ristretto/talimat b/talimatname/genel/r/ristretto/talimat new file mode 100644 index 000000000..46f02820e --- /dev/null +++ b/talimatname/genel/r/ristretto/talimat @@ -0,0 +1,18 @@ +# Tanım: Ristretto, Xfce masaüstü ortamı için hızlı ve hafif bir resim görüntüleme aracıdır. +# URL: http://goodies.xfce.org/projects/applications/ristretto +# Paketçi: milisarge +# Gerekler: xorg-libxinerama xorg-libxrandr xorg-libsm thunar libexif + +isim=ristretto +surum=0.8.0 +devir=1 + +kaynak=(http://archive.xfce.org/src/apps/$isim/${surum%.*}/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--sysconfdir=/etc +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/r/rlog/rlog-section.patch b/talimatname/genel/r/rlog/rlog-section.patch new file mode 100644 index 000000000..b17478570 --- /dev/null +++ b/talimatname/genel/r/rlog/rlog-section.patch @@ -0,0 +1,75 @@ +diff -ruN rlog-1.4.orig/rlog/common.h rlog-1.4/rlog/common.h +--- rlog-1.4.orig/rlog/common.h 2008-06-15 07:49:52.000000000 +0200 ++++ rlog-1.4/rlog/common.h 2008-06-23 19:29:16.000000000 +0200 +@@ -52,7 +52,6 @@ + + # define PRINTF(FMT,X) __attribute__ (( __format__ ( __printf__, FMT, X))) + # define HAVE_PRINTF_ATTR 1 +-# define RLOG_SECTION __attribute__ (( section("RLOG_DATA") )) + + #if __GNUC__ >= 3 + # define expect(foo, bar) __builtin_expect((foo),bar) +@@ -77,7 +76,6 @@ + */ + # define PRINTF(FMT,X) + # define HAVE_PRINTF_ATTR 0 +-# define RLOG_SECTION + + /*! + */ +diff -ruN rlog-1.4.orig/rlog/common.h.in rlog-1.4/rlog/common.h.in +--- rlog-1.4.orig/rlog/common.h.in 2008-06-15 05:10:13.000000000 +0200 ++++ rlog-1.4/rlog/common.h.in 2008-06-23 19:28:28.000000000 +0200 +@@ -52,7 +52,6 @@ + + # define PRINTF(FMT,X) __attribute__ (( __format__ ( __printf__, FMT, X))) + # define HAVE_PRINTF_ATTR 1 +-# define RLOG_SECTION __attribute__ (( section("RLOG_DATA") )) + + #if __GNUC__ >= 3 + # define expect(foo, bar) __builtin_expect((foo),bar) +@@ -77,7 +76,6 @@ + */ + # define PRINTF(FMT,X) + # define HAVE_PRINTF_ATTR 0 +-# define RLOG_SECTION + + /*! + */ +diff -ruN rlog-1.4.orig/rlog/rlog-c99.h rlog-1.4/rlog/rlog-c99.h +--- rlog-1.4.orig/rlog/rlog-c99.h 2008-06-15 05:56:57.000000000 +0200 ++++ rlog-1.4/rlog/rlog-c99.h 2008-06-23 19:28:37.000000000 +0200 +@@ -22,7 +22,7 @@ + @internal + */ + #define _rMessageDef(ID, COMPONENT) \ +- static rlog::PublishLoc ID RLOG_SECTION = {& ID ## _enabled, \ ++ static rlog::PublishLoc ID = {& ID ## _enabled, \ + &rlog::RLog_Register, 0, STR(COMPONENT), __FILE__, \ + __FUNCTION__, __LINE__, 0}; + +diff -ruN rlog-1.4.orig/rlog/rlog-novariadic.h rlog-1.4/rlog/rlog-novariadic.h +--- rlog-1.4.orig/rlog/rlog-novariadic.h 2008-06-15 05:10:13.000000000 +0200 ++++ rlog-1.4/rlog/rlog-novariadic.h 2008-06-23 19:28:45.000000000 +0200 +@@ -35,7 +35,7 @@ + + #define _rMessageDef(ID, COMPONENT) \ + static bool ID ## _enabled = true; \ +- static rlog::PublishLoc ID RLOG_SECTION = {& ID ## _enabled, \ ++ static rlog::PublishLoc ID = {& ID ## _enabled, \ + &rlog::RLog_Register, 0, STR(COMPONENT), __FILE__, \ + __FUNCTION__, __LINE__, 0} + +diff -ruN rlog-1.4.orig/rlog/rlog-prec99.h rlog-1.4/rlog/rlog-prec99.h +--- rlog-1.4.orig/rlog/rlog-prec99.h 2008-06-15 05:59:05.000000000 +0200 ++++ rlog-1.4/rlog/rlog-prec99.h 2008-06-23 19:28:06.000000000 +0200 +@@ -18,7 +18,7 @@ + + #define _rMessageDef(ID, COMPONENT) \ + static bool ID ## _enabled = true; \ +- static rlog::PublishLoc ID RLOG_SECTION = {& ID ## _enabled, \ ++ static rlog::PublishLoc ID = {& ID ## _enabled, \ + &rlog::RLog_Register, 0, STR(COMPONENT), __FILE__, \ + __FUNCTION__, __LINE__, 0}; + + diff --git a/talimatname/genel/r/rlog/talimat b/talimatname/genel/r/rlog/talimat new file mode 100644 index 000000000..a9fe8729c --- /dev/null +++ b/talimatname/genel/r/rlog/talimat @@ -0,0 +1,19 @@ +# Tanım: C ++ programları ve kitaplıkları için esnek bir mesaj günlüğü tesisi +# URL: http://www.arg0.net/rlog +# Paketçi: milisarge +# Gerekler: + +isim=rlog +surum=1.4 +devir=1 + +kaynak=(http://rlog.googlecode.com/files/$isim-$surum.tar.gz + $isim-section.patch) + +derle() { + cd $isim-$surum + patch -Np1 -i ../$isim-section.patch + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/r/rlwrap/talimat b/talimatname/genel/r/rlwrap/talimat new file mode 100644 index 000000000..3e7700349 --- /dev/null +++ b/talimatname/genel/r/rlwrap/talimat @@ -0,0 +1,18 @@ +# Tanım: Programlara readline tarzı düzenleme ve tarih ekler. +# URL: https://github.com/hanslub42/rlwrap +# Paketçi: Cihan_Alkan +# Gerekler: perl python +# Grup: sistem + +isim=rlwrap +surum=0.43 +devir=1 +kaynak=(https://github.com/hanslub42/rlwrap/archive/v$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + autoreconf -vi + ./configure --prefix=/usr + make + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/r/rofi/talimat b/talimatname/genel/r/rofi/talimat new file mode 100644 index 000000000..50f94296f --- /dev/null +++ b/talimatname/genel/r/rofi/talimat @@ -0,0 +1,41 @@ +# Tanım: Bir pencere değiştirici, uygulama başlatıcısı ve dmenu değiştirme +# URL: https://github.com/DaveDavenport/rofi/ +# Paketçi: Cihan_Alkan +# Gerekler: xorg-libx11 xorg-libxft freetype libxdg-basedir pango startup-notification libxcb libxkbcommon check xcb-util xcb-util-wm xcb-util-xrm librsvg meson +# Grup: + +isim=rofi +surum=1.5.0 +devir=1 + +kaynak=() + +derle() { + adres="https://github.com/DaveDavenport/rofi" + git_indir ${adres} ${isim} + adres1="https://github.com/sardemff7/libgwater" + git_indir ${adres1} ${isim} + adres2="https://github.com/sardemff7/libnkutils" + git_indir ${adres2} ${isim} + + cd rofi + for module in libgwater libnkutils; do + local submodule="subprojects/${module}" + git submodule init "${submodule}" + git config "submodule.${submodule}.url" "${SRC}/${module}" + git submodule update "${submodule}" + done + + autoreconf -i + ./configure --prefix=/usr --sysconfdir=/etc + make + + LC_ALL=C make + make install install-man DESTDIR="$PKG" + + install -Dm644 COPYING "$PKG/usr/share/licenses/rofi/COPYING" + install -dm755 "$PKG/usr/share/doc/rofi/examples" + install -Dm755 Examples/*.sh "$PKG/usr/share/doc/rofi/examples" + rm -rf ${PKG}/usr/share/doc + rm -rf ${PKG}/usr/share/man +} diff --git a/talimatname/genel/r/rosa-imagewriter/imagewriter-tr_TR.ts b/talimatname/genel/r/rosa-imagewriter/imagewriter-tr_TR.ts new file mode 100644 index 000000000..5274aa297 --- /dev/null +++ b/talimatname/genel/r/rosa-imagewriter/imagewriter-tr_TR.ts @@ -0,0 +1,214 @@ + + + + + MainDialog + + b + b + + + MB + MB + + + %v / %m MB + %v / %m MB + + + Open image file + Kalıp dosyası aç + + + &Write + &Yazdır + + + Failed to open the image file: + Kalıp dosyası açılamadı: + + + Clea&r + &Temizle + + + Disk Images + Disk Kalıpları + + + Image: + Kalıp: + + + Refresh the list + Listeyi yenile + + + Image size: + Kalıp boyutu: + + + &USB Device: + &USB Aygıt: + + + Warning! + Uyarı! + + + The image is larger than your selected device! + Görüntü seçilen cihazınızdan daha büyük! + + + Are you sure you wish to proceed? + Devam etmek istediğinizden emin misiniz? + + + &Cancel + &İptal + + + Delete partitions and make all space available for storing data + Bölümleri silin ve verileri depolamak için tüm alanı kullanılabilir yapın + + + Writing is in progress, abort it? + Yazma devam ediyor, iptal edilsin mi? + + + Disk size: + Disk boyutu: + + + All Files + Tüm Dosyalar + + + All existing data on the selected device will be lost! + Seçilen cihazdaki tüm mevcut veriler kaybolacak! + + + + QObject + + MB + MB + + + Unknown Device + Bilinmeyen Aygıt + + + Error code: + Hata kodu: + + + Error! + Hata! + + + Failed to restart with root privileges! (Error code: %1) + Root yetkileri ile yeniden başlatılamadı! (Hata kodu: %1) + + + ConnectServer failed. + ConnectServer başarısız oldu. + + + No appropriate su-application found! + Uygun SU başvurusu bulunamadı! + + + <unmounted> + <unmounted> + + + Failed to query list of partitions. + Bölümlerin listesini sorgulama işlemi başarısız oldu. + + + CoCreateInstance(WbemAdministrativeLocator) failed. + CoCreateInstance(WbemAdministrativeLocator) hata oldu. + + + Memory allocation for %1 failed. + %1 için bellek ayırma başarısız oldu. + + + Please, restart the program with root privileges. + Lütfen programı kök ayrıcalıklarıyla yeniden başlatınız. + + + Failed to query USB flash devices. + USB bellek aygıtları sorgulanamadı. + + + Failed to query list of logical disks. + Mantıksal disklerin listesini sorgulama işlemi başarısız oldu. + + + + ImageWriter + + Failed to write to the device: + Cihaza yazma başarısız oldu: + + + Failed to open the drive + Sürücü açılamadı + + + Failed to open the image file: + Kalıp dosyası açılamadı: + + + Failed to open the target device: + Hedef cihazı açamadı: + + + Now you need to format your device. + Şimdi cihazınızı biçimlendirmeniz gerekiyor. + + + The operation completed successfully. + İşlem başarıyla tamamlandı. + + + Failed to unmount the volume + Birimin kaldırılması başarısız oldu + + + Failed to read the image file: + Kalıp dosyasını okuma başarısız oldu: + + + Failed to unmount the drive + Sürücünün bağlantısı kesilemedi + + + The last block was not fully written (%1 of %2 bytes)! +Aborting. + Son blok tamamen yazılmadı (%2 de %1 bayt)! +Durduruluyor. + + + To be able to store data on this device again, please, use the button "Clear". + Bu cihaza tekrar veri depolamak için lütfen "Temizle" düğmesini kullanın. + + + Failed to allocate memory for buffer: + Arabellek için bellek ayırma başarısız: + + + Failed to allocate memory for buffer. + Arabellek için bellek ayıramadı. + + + + PhysicalDevice + + Could not acquire lock: + Kilit alınamadı: + + + diff --git a/talimatname/genel/r/rosa-imagewriter/logo-rosa.png b/talimatname/genel/r/rosa-imagewriter/logo-rosa.png new file mode 100644 index 000000000..6f1cd3581 Binary files /dev/null and b/talimatname/genel/r/rosa-imagewriter/logo-rosa.png differ diff --git a/talimatname/genel/r/rosa-imagewriter/talimat b/talimatname/genel/r/rosa-imagewriter/talimat new file mode 100644 index 000000000..895981f8a --- /dev/null +++ b/talimatname/genel/r/rosa-imagewriter/talimat @@ -0,0 +1,45 @@ +# Tanım: USB kurulum Belleği Hazırlama +# URL: http://wiki.rosalab.ru +# Paketçi: Cihan_Alkan +# Gerekler: qt5 +# Grup: sistem + +isim=rosa-imagewriter +surum=2.6.2.0 +devir=1 + +kaynak=(https://abf.io/soft/rosa-imagewriter/archive/${isim}-version-${surum}.tar.gz + logo-rosa.png + imagewriter-tr_TR.ts) + +derle() { + + cp -r $SRC/logo-rosa.png $SRC/${isim}-version-${surum}/res/ + cd $SRC/${isim}-version-${surum} + qmake-qt5 RosaImageWriter.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug + make + + mkdir -p $PKG/usr/bin + mkdir -p $PKG/usr/share/icons + mkdir -p $PKG/usr/share/RosaImageWriter/lang + cp -r $SRC/${isim}-version-${surum}/RosaImageWriter $PKG/usr/share/RosaImageWriter/ + cp -r $SRC/${isim}-version-${surum}/res/icon-rosa.svg $PKG/usr/share/icons/ + ln -s /usr/share/RosaImageWriter/RosaImageWriter $PKG/usr/bin/RosaImageWriter +# Başlatıcı +mkdir -pv $PKG/usr/share/applications && +cat > $PKG/usr/share/applications/$isim.desktop << "EOF" && +[Desktop Entry] +Version=1.0 +Type=Application +Terminal=false +Icon=/usr/share/icons/icon-rosa.svg +Exec=/usr/share/RosaImageWriter/RosaImageWriter +Categories=GNOME;GTK;Utility; +Name=USB Kalıp Yazıcı +Comment=Boot edebilir USB bellek hazırla +EOF + +/usr/lib/qt5/bin/lrelease ../imagewriter-tr_TR.ts -qm $PKG/usr/share/RosaImageWriter/lang/tr_TR.qm + +} + diff --git a/talimatname/genel/r/rox-filer/talimat b/talimatname/genel/r/rox-filer/talimat new file mode 100644 index 000000000..079450f1c --- /dev/null +++ b/talimatname/genel/r/rox-filer/talimat @@ -0,0 +1,62 @@ +# Tanım: İsteğe bağlı olarak masaüstü arka planını ve panellerini yönetebilen küçük ve hızlı dosya yöneticisi +# URL: http://roscidus.com/desktop/ROX-Filer +# Paketçi: milisarge +# Gerekler: xorg-libsm libglade shared-mime-info + +isim=rox-filer +surum=2.11 +devir=3 + +kaynak=(http://downloads.sourceforge.net/rox/rox-filer-2.11.tar.bz2) + +derle() { +cd $isim-$surum/ROX-Filer +sed -i 's:g_strdup(getenv("APP_DIR")):"/usr/share/rox":' src/main.c +mkdir build +pushd build +../src/configure LIBS="-lm -ldl" +make +popd + +mkdir -p $PKG/usr/{bin,share/{applications,pixmaps,rox,man/man1}} + +cp -av Help Messages Options.xml ROX images style.css .DirIcon \ +$PKG/usr/share/rox + +cp -av ../rox.1 \ +$PKG/usr/share/man/man1 + +cp -v ROX-Filer $PKG/usr/bin/rox + +chown -Rv root:root $PKG/ + +cd $PKG/usr/share/rox/ROX/MIME + +ln -sv text-x-{diff,patch}.png +ln -sv application-x-font-{afm,type1}.png +ln -sv application-xml{,-dtd}.png +ln -sv application-xml{,-external-parsed-entity}.png +ln -sv application-{,rdf+}xml.png +ln -sv application-x{ml,-xbel}.png +ln -sv application-{x-shell,java}script.png +ln -sv application-x-{bzip,xz}-compressed-tar.png +ln -sv application-x-{bzip,lzma}-compressed-tar.png +ln -sv application-x-{bzip-compressed-tar,lzo}.png +ln -sv application-x-{bzip,xz}.png +ln -sv application-x-{gzip,lzma}.png +ln -sv application-{msword,rtf}.png +ln -s ../rox/.DirIcon $PKG/usr/share/pixmaps/rox.png + +cat > $PKG/usr/share/applications/rox.desktop << "HERE_DOC" +[Desktop Entry] +Encoding=UTF-8 +Type=Application +Name=Rox +Comment=The Rox File Manager +Icon=rox +Exec=rox +Categories=GTK;Utility;Application;System;Core; +StartupNotify=true +Terminal=false +HERE_DOC +} diff --git a/talimatname/genel/r/roxterm/talimat b/talimatname/genel/r/roxterm/talimat new file mode 100644 index 000000000..e06e0a912 --- /dev/null +++ b/talimatname/genel/r/roxterm/talimat @@ -0,0 +1,17 @@ +# Tanım: ROXTerm, VTE kütüphanesine dayanan bir terminal emülatörüdür. +# URL: http://roxterm.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: dbus-glib vte3 hicolor-icon-theme xorg-libsm lockfile + +isim=roxterm +surum=3.3.1 +devir=1 + +kaynak=(http://downloads.sourceforge.net/roxterm/roxterm-$surum.tar.xz) + +derle() { + cd "${SRC}/${isim}-${surum}" + python2 mscript.py configure --prefix='/usr' + python2 mscript.py build + python2 mscript.py install --destdir="${PKG}" +} diff --git a/talimatname/genel/r/rpcbind/talimat b/talimatname/genel/r/rpcbind/talimat new file mode 100644 index 000000000..df9cb3a0e --- /dev/null +++ b/talimatname/genel/r/rpcbind/talimat @@ -0,0 +1,34 @@ +# Tanım: portmap replacement which supports RPC over various protocols +# URL: http://rpcbind.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: libtirpc + +isim=rpcbind +surum=0.2.3 +devir=1 + +kaynak=(http://downloads.sourceforge.net/rpcbind/rpcbind-$surum.tar.bz2 ) + +derle() { + source /etc/blfs-bootscripts + + wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2 + tar xvf $scripts-$scriptsversion.tar.bz2 + + cd rpcbind-$surum + sed -i "/servname/s:rpcbind:sunrpc:" src/rpcbind.c + + ./configure --prefix=/usr \ + --bindir=/sbin \ + --with-rpcuser=root \ + --without-systemdsystemunitdir + make + make DESTDIR=$PKG install + + cd ../$scripts-$scriptsversion + make DESTDIR=$PKG install-rpcbind + make DESTDIR=$PKG install-netfs + + # cut is in /bin + sed -i "s,usr/bin/cut,bin/cut," $PKG/etc/rc.d/init.d/netfs +} diff --git a/talimatname/genel/r/rsound/talimat b/talimatname/genel/r/rsound/talimat new file mode 100644 index 000000000..1de2305f9 --- /dev/null +++ b/talimatname/genel/r/rsound/talimat @@ -0,0 +1,16 @@ +# Tanım: Simple solution for streaming PCM data from client to server in real time. +# URL: http://github.com/Themaister/RSound +# Paketçi: milisarge +# Gerekler: + +isim=rsound +surum=1.1 +devir=1 +kaynak=(http://cloud.github.com/downloads/Themaister/RSound/$isim-$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd "${isim}-${surum}" + ./configure --prefix=/usr + make + make DESTDIR="${PKG}" install +} diff --git a/talimatname/genel/r/rssguard/talimat b/talimatname/genel/r/rssguard/talimat new file mode 100644 index 000000000..d5c3ec75e --- /dev/null +++ b/talimatname/genel/r/rssguard/talimat @@ -0,0 +1,23 @@ +# Tanım: RSS / RDF ve ATOM da dahil olmak üzere en bilinen besleme formatlarını elde edebilen besleme okuyucu +# URL: https://bitbucket.org/skunkos/rssguard/wiki/Home +# Paketçi: milisarge +# Gerekler: cmake qt5 + +isim=rssguard +surum=3.0.1 +devir=1 + +kaynak=("https://bitbucket.org/skunkos/rssguard/get/$surum.tar.bz2") + +derle() { + mkdir -p build + cd build + + cmake ../skunkos* \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=release \ + -DUSE_QT_5=ON + make + + make DESTDIR=$PKG/ install +} diff --git a/talimatname/genel/r/rtmpdump/talimat b/talimatname/genel/r/rtmpdump/talimat new file mode 100644 index 000000000..3bd271124 --- /dev/null +++ b/talimatname/genel/r/rtmpdump/talimat @@ -0,0 +1,20 @@ +# Tanım: Rtmp akışlarını indirmek için kullanılan araç +# URL: https://rtmpdump.mplayerhq.hu/ +# Paketçi: Cihan_Alkan +# Gerekler: gnutls +# Grup: medya + +isim=rtmpdump +surum=2.4 +devir=1 +kaynak=(https://git.ffmpeg.org/gitweb/rtmpdump.git/snapshot/fa8646daeb19dfd12c181f7d19de708d623704c0.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd rtmpdump-fa8646d + sed -e 's/^CRYPTO=OPENSSL/#CRYPTO=OPENSSL/' -e 's/#CRYPTO=GNUTLS/CRYPTO=GNUTLS/' -i Makefile -i librtmp/Makefile + make \ + OPT="$CFLAGS" \ + XLDFLAGS="$LDFLAGS" + mkdir -p $PKG/usr/lib + make prefix=/usr sbindir=/usr/bin mandir=/usr/share/man DESTDIR="${PKG}" install +} diff --git a/talimatname/genel/r/ruby-bundler/talimat b/talimatname/genel/r/ruby-bundler/talimat new file mode 100644 index 000000000..d350a0e18 --- /dev/null +++ b/talimatname/genel/r/ruby-bundler/talimat @@ -0,0 +1,18 @@ +# Tanım: Ruby uygulama-paket yöneticisi +# URL: http://www.ruby-lang.org +# Paketçi: milisarge +# Gerekler: ruby + +isim=ruby-bundler +surum=1.15.1 +devir=1 +kaynak=(https://rubygems.org/downloads/${name#ruby-}-$surum.gem) + +derle() { + cd "$SRC" + local _gemdir="$(ruby -e'puts Gem.default_dir')" + HOME="/tmp" GEM_HOME="$_gemdir" + GEM_PATH="$_gemdir" + gem install --no-user-install --ignore-dependencies -i "$PKG/$_gemdir" -n "$PKG/usr/bin" "${name#ruby-}-$surum.gem" + rm "$PKG/$_gemdir/cache/${name#ruby-}-$surum.gem" +} diff --git a/talimatname/genel/r/ruby/gemrc b/talimatname/genel/r/ruby/gemrc new file mode 100644 index 000000000..65163119a --- /dev/null +++ b/talimatname/genel/r/ruby/gemrc @@ -0,0 +1,5 @@ +# Read about the gemrc format at http://guides.rubygems.org/command-reference/#gem-environment + +# --user-install is used to install to $HOME/.gem/ by default since we want to separate +# pacman installed gems and gem installed gems +gem: --user-install diff --git a/talimatname/genel/r/ruby/talimat b/talimatname/genel/r/ruby/talimat new file mode 100644 index 000000000..86a5ce9d6 --- /dev/null +++ b/talimatname/genel/r/ruby/talimat @@ -0,0 +1,30 @@ +# Tanım: Ruby yorumlayıcı +# URL: http://www.ruby-lang.org +# Paketçi: milisarge +# Gerekler: libffi yaml + +isim=ruby +surum=2.4.1 +devir=1 +kaynak=(http://cache.ruby-lang.org/pub/$isim/${surum%.*}/$isim-$surum.tar.xz + gemrc) + +derle() { + cd $isim-$surum + + PKG_CONFIG=/usr/bin/pkg-config ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --sharedstatedir=/var/lib \ + --libexecdir=/usr/lib/ruby \ + --enable-shared \ + --disable-rpath \ + --disable-install-doc \ + --with-dbm-type=gdbm_compat + + make + make DESTDIR="${PKG}" install-nodoc + + install -D -m644 ${SRC}/gemrc "${PKG}/etc/gemrc" +} diff --git a/talimatname/genel/r/ruby23-bundler/talimat b/talimatname/genel/r/ruby23-bundler/talimat new file mode 100644 index 000000000..11f70c96d --- /dev/null +++ b/talimatname/genel/r/ruby23-bundler/talimat @@ -0,0 +1,25 @@ +# Tanım: Ruby2.3 uygulama-paket yöneticisi +# URL: http://www.ruby-lang.org +# Paketçi: milisarge +# Gerekler: ruby23 + +isim=ruby23-bundler +_rubyver=2.3 +_gemisim=bundler +pkgisim=ruby${_rubyver}-${_gemname} +surum=1.15.1 +devir=1 +kaynak=(https://rubygems.org/downloads/$_gemname-$surum.gem) + +derle() { + cd "$srcdir" + + local _gemdir="$(ruby-${_rubyver} -rubygems -e'puts Gem.default_dir')" + HOME="/tmp" GEM_HOME="$_gemdir" GEM_PATH="$_gemdir" gem-${_rubyver} install --no-user-install --ignore-dependencies \ + --no-ri --no-rdoc -i "$PKG/$_gemdir" "$_gemname-$surum.gem" + rm "$PKG/$_gemdir/cache/$_gemname-$surum.gem" + install -D -m644 "$PKG/$_gemdir/gems/$_gemname-$surum/LICENSE.md" "$PKG/usr/share/licenses/$pkgname/LICENSE.md" + + install -d "$PKG/usr/bin/" + ln -s "$_gemdir/bin/bundle" "$PKG/usr/bin/bundle-${_rubyver}" +} diff --git a/talimatname/genel/r/ruby23/gemrc b/talimatname/genel/r/ruby23/gemrc new file mode 100644 index 000000000..65163119a --- /dev/null +++ b/talimatname/genel/r/ruby23/gemrc @@ -0,0 +1,5 @@ +# Read about the gemrc format at http://guides.rubygems.org/command-reference/#gem-environment + +# --user-install is used to install to $HOME/.gem/ by default since we want to separate +# pacman installed gems and gem installed gems +gem: --user-install diff --git a/talimatname/genel/r/ruby23/talimat b/talimatname/genel/r/ruby23/talimat new file mode 100644 index 000000000..c46f7d91c --- /dev/null +++ b/talimatname/genel/r/ruby23/talimat @@ -0,0 +1,43 @@ +# Tanım: Ruby2.3 yorumlayıcı +# URL: http://www.ruby-lang.org +# Paketçi: milisarge +# Gerekler: libffi yaml + +isim=ruby23 +_isim=ruby +_rubyver=2.3 +surum=2.3.4 +devir=1 +kaynak=(http://cache.ruby-lang.org/pub/$_name/${surum%.*}/$_name-$surum.tar.xz) + +derle() { + cd $_name-$surum + + PKG_CONFIG=/usr/bin/pkg-config ./configure \ + --prefix=/opt/ruby${_rubyver} \ + --program-suffix=-${_rubyver} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --sharedstatedir=/var/lib \ + --libexecdir=/usr/lib/ruby \ + --enable-shared \ + --disable-rpath \ + --with-dbm-type=gdbm_compat + + make ruby + make test + make DESTDIR="${PKG}" install-nodoc + + install -dm755 $PKG//usr/bin + install -dm755 $PKG//usr/lib + + for i in erb irb rdoc ri ruby testrb rake gem; do + ln -s /opt/ruby${_rubyver}/bin/$i-${_rubyver} $PKG/usr/bin/$i-${_rubyver} + ln -s /opt/ruby${_rubyver}/bin/$i-${_rubyver} $PKG/opt/ruby${_rubyver}/bin/$i + done + + ln -s /opt/$_name$_rubyver/lib/libruby.so.${_rubyver} $PKG/usr/lib/libruby.so.${_rubyver} + + install -D -m644 COPYING "${PKG}/usr/share/licenses/ruby${_rubyver}/LICENSE" + install -D -m644 BSDL "${PKG}/usr/share/licenses/ruby${_rubyver}/BSDL" +} diff --git a/talimatname/genel/r/rust/0001-librustc_llvm-build-Force-link-against-libffi.patch b/talimatname/genel/r/rust/0001-librustc_llvm-build-Force-link-against-libffi.patch new file mode 100644 index 000000000..02d25e4e4 --- /dev/null +++ b/talimatname/genel/r/rust/0001-librustc_llvm-build-Force-link-against-libffi.patch @@ -0,0 +1,32 @@ +From 5dbc650a60ddb230f59e5a18ffd298b033566945 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Johannes=20L=C3=B6thberg?= +Date: Thu, 20 Jul 2017 23:07:01 +0200 +Subject: [PATCH] librustc_llvm/build: Force link against libffi +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +`llvm-config --libs` doesn't output libffi in many cases. Fixing it +turned out to take quite a bit of effort, so force libffi linking in +here for now. + +Signed-off-by: Johannes Löthberg +--- + src/librustc_llvm/build.rs | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/librustc_llvm/build.rs b/src/librustc_llvm/build.rs +index 3f0f536960..7dc0c40c9d 100644 +--- a/src/librustc_llvm/build.rs ++++ b/src/librustc_llvm/build.rs +@@ -220,6 +220,7 @@ fn main() { + }; + println!("cargo:rustc-link-lib={}={}", kind, name); + } ++ println!("cargo:rustc-link-lib=dylib=ffi"); + + // LLVM ldflags + // +-- +2.13.3 + diff --git a/talimatname/genel/r/rust/bootstrap-config.toml b/talimatname/genel/r/rust/bootstrap-config.toml new file mode 100644 index 000000000..0cbc5805b --- /dev/null +++ b/talimatname/genel/r/rust/bootstrap-config.toml @@ -0,0 +1,5 @@ +[install] +prefix = "/usr" + +[rust] +channel = "stable" diff --git a/talimatname/genel/r/rust/talimat b/talimatname/genel/r/rust/talimat new file mode 100644 index 000000000..8c9367e88 --- /dev/null +++ b/talimatname/genel/r/rust/talimat @@ -0,0 +1,25 @@ +# Tanım: Mozilla tarafından güvenli, eşzamanlı, pratik bir dil. +# URL: http://www.rust-lang.org/ +# Paketçi: milisarge +# Gerekler: libffi python jemalloc cmake ccache +# Grup: geliştirme + +isim=rust +surum=1.25.0 +devir=1 +kaynak=(http://static.rust-lang.org/dist/rustc-$surum-src.tar.gz + 0001-librustc_llvm-build-Force-link-against-libffi.patch + bootstrap-config.toml) + +derle() { + cd ${isim}c-$surum-src + + patch -p1 -i $SRC/0001-librustc_llvm-build-Force-link-against-libffi.patch + cp $SRC/bootstrap-config.toml config.toml + + /usr/bin/python ./x.py build --verbose + DESTDIR=$PKG /usr/bin/python ./x.py install + + rm -r $PKG/usr/lib/rustlib/{components,manifest-rustc,rust-installer-version} + rm -r $PKG/usr/share/doc +} diff --git a/talimatname/genel/r/rxvt-unicode/rxvt-unicode.desktop b/talimatname/genel/r/rxvt-unicode/rxvt-unicode.desktop new file mode 100644 index 000000000..2b248bc8b --- /dev/null +++ b/talimatname/genel/r/rxvt-unicode/rxvt-unicode.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Version=1.0 +Name=urxvt +Comment=An unicode capable rxvt clone +Exec=urxvt +Icon=urxvt-unicode +Terminal=false +Type=Application +Categories=System;TerminalEmulator; diff --git a/talimatname/genel/r/rxvt-unicode/rxvt-unicode.svg b/talimatname/genel/r/rxvt-unicode/rxvt-unicode.svg new file mode 100644 index 000000000..7459c09cc --- /dev/null +++ b/talimatname/genel/r/rxvt-unicode/rxvt-unicode.svg @@ -0,0 +1,198 @@ + + + + + + + + + + + + + >_ + + + >_ + + + + + + image/svg+xml + + + + + Openclipart + + + Command line + 2013-02-04T14:03:30 + A simple command line icon. + https://openclipart.org/detail/174814/command-line-by-rendon-174814 + + + rendon + + + + + Command line + bash + terminal + + + + + + + + + + + diff --git a/talimatname/genel/r/rxvt-unicode/talimat b/talimatname/genel/r/rxvt-unicode/talimat new file mode 100644 index 000000000..a973900aa --- /dev/null +++ b/talimatname/genel/r/rxvt-unicode/talimat @@ -0,0 +1,55 @@ +# Tanım: Rxvt terminal emülatörünün geliştirilmiş bir unicode özellikli sürümü. +# URL: http://software.schmorp.de/pkg/rxvt-unicode.html +# Paketçi: milisarge +# Gerekler: gdk-pixbuf xorg-libxft startup-notification + +isim=rxvt-unicode +surum=9.20 +devir=2 + +kaynak=( +http://dist.schmorp.de/rxvt-unicode/Attic/$isim-$surum.tar.bz2 +$isim.desktop +$isim.svg) + +derle(){ + cd $isim-$surum + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --enable-everything \ + --enable-unicode3 \ + --enable-combining \ + --enable-xft \ + --enable-font-styles \ + --enable-transparency \ + --enable-fading \ + --enable-frills \ + --enable-pixbuf \ + --enable-rxvt-scroll \ + --enable-next-scroll \ + --enable-xterm-scroll \ + --enable-perl \ + --enable-xim \ + --enable-iso14755 \ + --enable-keepscrolling \ + --enable-selectionscrolling \ + --enable-mousewheel \ + --enable-slipwheeling \ + --enable-smart-resize \ + --enable-text-blink \ + --enable-pointer-blank \ + --enable-utmp \ + --enable-wtmp \ + --enable-lastlog \ + --enable-256-color + + mkdir -p $PKG/usr/share/terminfo + TERMINFO=$PKG/usr/share/terminfo make install DESTDIR=$PKG + + # Openclipart simgesiyle masaüstü bütünleşmesi + install -Dm 644 $SRC/$isim.desktop \ + $PKG/usr/share/applications/$isim.desktop + install -Dm 644 $SRC/$isim.svg \ + $PKG/usr/share/icons/hicolor/scalable/apps/$isim.svg +} diff --git a/talimatname/genel/s/samba/samba.conf b/talimatname/genel/s/samba/samba.conf new file mode 100644 index 000000000..c221cdbff --- /dev/null +++ b/talimatname/genel/s/samba/samba.conf @@ -0,0 +1 @@ +/usr/lib/samba diff --git a/talimatname/genel/s/samba/talimat b/talimatname/genel/s/samba/talimat new file mode 100644 index 000000000..f9443abe8 --- /dev/null +++ b/talimatname/genel/s/samba/talimat @@ -0,0 +1,60 @@ +# Tanım: SMB Dosya sunucusu ve AD Etki Alanı sunucusu +# URL: http://www.samba.org +# Paketçi: milisarge +# Gerekler: talloc tevent avahi gnutls libgpg-error popt python cups kerberos libcap tdb openldap libxslt +# Grup: ağ + +isim=samba +surum=4.6.7 +devir=1 +kaynak=(https://www.samba.org/samba/ftp/stable/$isim-$surum.tar.gz + samba.conf) + +derle() { + +cd $isim-$surum + + +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --with-piddir=/run/samba \ + --with-pammodulesdir=/lib/security \ + --without-ad-dc \ + --enable-fhs \ + --without-systemd \ + --bundled-libraries=!tdb,!talloc,!pytalloc-util,!tevent,!popt,!ldb + +make + +sed -i "/samba3.blackbox.failure.failure/i \^samba3.raw.eas" selftest/knownfail + +make DESTDIR=$PKG install + +install -v -m644 examples/smb.conf.default $PKG/etc/samba/smb.conf.default + +mkdir -pv $PKG/etc/openldap/schema +install -v -m644 examples/LDAP/README $PKG/etc/openldap/schema/README.LDAP + +install -v -m644 examples/LDAP/samba* $PKG/etc/openldap/schema + +install -v -m755 examples/LDAP/{get*,ol*} $PKG/etc/openldap/schema + +#ld.conf +mkdir -pv $PKG/etc/ld.so.conf.d +cp -f $SRC/samba.conf $PKG/etc/ld.so.conf.d/ + +# cups +cd $PKG/usr/lib/ +install -d cups/backend +ln -v -sf $PKG/usr/bin/smbspool $PKG/usr/lib/cups/backend/smb + +# servis +cd /sources/milis.git/ayarlar/servisler +make DESTDIR=$PKG kur-samba +make DESTDIR=$PKG kur-winbindd + +# Doublon +rm -f $PKG/usr/lib/python2.7/site-packages/talloc.so +} diff --git a/talimatname/genel/s/samsung-printer/talimat b/talimatname/genel/s/samsung-printer/talimat new file mode 100644 index 000000000..d59de2a61 --- /dev/null +++ b/talimatname/genel/s/samsung-printer/talimat @@ -0,0 +1,69 @@ +# Tanım: Samsung yazıcılar ve tarayıcılar için Birleşik Linux Sürücüsü +# URL: http://www.samsung.com +# Paketçi: Cihan_Alkan +# Gerekler: libxml2 libusb-compat cups sane ghostscript +# Grup: sürücü + +isim=samsung-printer +surum=1.00.39 +devir=1 + +kaynak=(http://downloadcenter.samsung.com/content/DR/201704/20170407143829533/uld_V${surum}_01.17.tar.gz + xerox_mfp-smfp.conf) + +derle() { + mkdir -p "$PKG"/usr/share/licenses/samsung-unified-driver + cp "$SRC"/uld/noarch/license/eula.txt "$PKG"/usr/share/licenses/samsung-unified-driver/LICENSE + cp "$SRC"/uld/noarch/license/eula-fr.txt "$PKG"/usr/share/licenses/samsung-unified-driver + + mkdir -p "$PKG"/usr/lib + cp "$SRC"/uld/x86_64/libscmssc.so "$PKG"/usr/lib + + mkdir -p "$PKG"/usr/lib/cups/backend + cp "$SRC"/uld/x86_64/smfpnetdiscovery "$PKG"/usr/lib/cups/backend + + mkdir -p "$PKG"/usr/lib/cups/filter + cp "$SRC"/uld/x86_64/pstosecps "$PKG"/usr/lib/cups/filter + cp "$SRC"/uld/x86_64/rastertospl "$PKG"/usr/lib/cups/filter + + mkdir -p "$PKG"/usr/share/ppd/suld + for ppd in "$SRC"/uld/noarch/share/ppd/*.ppd; do + gzip < "$ppd" > "$PKG"/usr/share/ppd/suld/"${ppd##*/}".gz + done + + mkdir -p "$PKG"/usr/share/ppd/suld/cms + for cts in "$SRC"/uld/noarch/share/ppd/cms/*.cts; do + cp "$cts" "$PKG"/usr/share/ppd/suld/cms + done + + mkdir -p "$PKG"/usr/share + cp -r "$SRC"/uld/noarch/share/locale "$PKG"/usr/share + rm -f "$PKG"/usr/share/locale/fr/LC_MESSAGES/install.mo + + mkdir -p "$PKG"/etc/sane.d + cp "$SRC"/uld/noarch/etc/smfp.conf "$PKG"/etc/sane.d + cp "$SRC"/xerox_mfp-smfp.conf "$PKG"/etc/sane.d + + mkdir -p "$PKG"/etc/sane.d/dll.d + echo smfp > "$PKG"/etc/sane.d/dll.d/smfp-scanner + echo xerox_mfp-smfp > "$PKG"/etc/sane.d/dll.d/smfp-scanner-fix + + mkdir -p "$PKG"/usr/lib/sane + cp "$SRC"/uld/x86_64/libsane-smfp.so.1.0.1 "$PKG"/usr/lib/sane + ln -s libsane-smfp.so.1.0.1 "$PKG"/usr/lib/sane/libsane-smfp.so.1 + ln -s libsane-smfp.so.1 "$PKG"/usr/lib/sane/libsane-smfp.so + + mkdir -p "$PKG"/usr/lib/udev/rules.d + ( + OEM_FILE="$SRC"/uld/noarch/oem.conf + INSTALL_LOG_FILE=/dev/null + source "$SRC"/uld/noarch/scripting_utils + source "$SRC"/uld/noarch/package_utils + source "$SRC"/uld/noarch/scanner-script.pkg + fill_full_template "$SRC"/uld/noarch/etc/smfp.rules.in "$PKG"/usr/lib/udev/rules.d/60_smfp_samsung.rules + + mkdir -p "$PKG"/opt/samsung/scanner/share + cp "$OEM_FILE" "$PKG"/opt/samsung/scanner/share + ) +} + diff --git a/talimatname/genel/s/samsung-printer/xerox_mfp-smfp.conf b/talimatname/genel/s/samsung-printer/xerox_mfp-smfp.conf new file mode 100644 index 000000000..a16f7184a --- /dev/null +++ b/talimatname/genel/s/samsung-printer/xerox_mfp-smfp.conf @@ -0,0 +1,67 @@ +#xerox_mfp-smfp.conf + +# Samsung CLX-2160 +usb 0x04e8 0x3425 + +# Samsung CLX-3170FN & CLX-3175FW +usb 0x04e8 0x342a + +# Samsung CLX-3185 +usb 0x04e8 0x343d + +# Samsung CLX-3300 +usb 0x04e8 0x3456 + +# Samsung M2070 +usb 0x04e8 0x3469 + +# Samsung SCX-3200 & SCX-3205W +usb 0x04e8 0x3441 + +# Samsung SCX-3405W +usb 0x04e8 0x344f + +# Samsung SCX-4100 +usb 0x04e8 0x3413 + +# Samsung SCX-4200 +usb 0x04e8 0x341b + +# Samsung SCX-4216F +usb 0x04e8 0x3409 + +# Samsung SCX-4300 +usb 0x04e8 0x342e + +# Samsung SCX-4500 +usb 0x04e8 0x3426 + +# Samsung SCX-4500W +usb 0x04e8 0x342b + +# Samsung SCX-4521F +usb 0x04e8 0x3419 + +# Samsung SCX-4600 +usb 0x04e8 0x3433 + +# Samsung SCX-4623 +usb 0x04e8 0x3434 + +# Samsung SCX-4623FW +usb 0x04e8 0x3440 + +# Samsung SCX-4725FN +usb 0x04e8 0x341f + +# Samsung SCX-4824 +usb 0x04e8 0x342c + +# Samsung SCX-4825FN +usb 0x04e8 0x343c + +# Samsung SCX-4828FN (4x28 Series) +usb 0x04e8 0x342d + +# Samsung SCX-4833FD +usb 0x04e8 0x344b \ No newline at end of file diff --git a/talimatname/genel/s/sane/sane.kur-kos b/talimatname/genel/s/sane/sane.kur-kos new file mode 100644 index 000000000..29ca90b81 --- /dev/null +++ b/talimatname/genel/s/sane/sane.kur-kos @@ -0,0 +1,4 @@ +if ( ! grep sane /etc/sysconfig/createfiles > /dev/null );then + echo "/var/lock/sane dir 775 root scanner" >> /etc/sysconfig/createfiles +fi + diff --git a/talimatname/genel/s/sane/talimat b/talimatname/genel/s/sane/talimat new file mode 100644 index 000000000..58501a2ab --- /dev/null +++ b/talimatname/genel/s/sane/talimat @@ -0,0 +1,37 @@ +# Tanım: SANE, "Tarayıcı Erişimi Şimdi Kolay" anlamına gelir ve herhangi bir raster görüntü tarayıcı donanımına standartlaştırılmış erişim sağlayan bir uygulama programlama arabirimi (API). +# URL: http://www.sane-project.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: libusb-compat libjpeg-turbo libtiff gtk2 libexif cups + +isim=sane +surum=1.0.25 +devir=1 + +kaynak=(http://fossies.org/linux/misc//sane-backends-$surum.tar.gz) + +derle() { + cd $isim-backends-$surum + + ./configure --prefix=/usr \ + --localstatedir=/var \ + --sysconfdir=/etc \ + --with-docdir=/usr/share/doc/sane-backend-$surum \ + --enable-libusb_1_0 \ + --enable-pthread \ + --disable-rpath \ + --disable-locking \ + --with-group=scanner + make + make DESTDIR=$PKG install + + install -d $PKG/etc/udev/rules.d + install -m 644 -v tools/udev/libsane.rules \ + $PKG/etc/udev/rules.d/65-scanner.rules + + install -v -m644 doc/sane.png doc/sane-logo.png \ + $PKG/usr/share/sane + + mkdir -p $PKG/var/lock/sane + chmod 775 $PKG/var/lock/sane + chgrp scanner $PKG/var/lock/sane +} diff --git a/talimatname/genel/s/sayonara-player/talimat b/talimatname/genel/s/sayonara-player/talimat new file mode 100644 index 000000000..0b2cce9ab --- /dev/null +++ b/talimatname/genel/s/sayonara-player/talimat @@ -0,0 +1,19 @@ +# Tanım: Linux için Qt çerçevesinde desteklenen, C ++ ile yazılmış küçük, net ve hızlı bir ses çalar +# URL: http://sayonara-player.com +# Paketçi: Cihan_Alkan +# Gerekler: qt5 taglib gstreamer-plugins-base gstreamer-plugins-good gstreamer-plugins-bad libmtp zlib cmake +# Grup: medya + +isim=sayonara-player +surum=20171231 +devir=1 +kaynak=(http://sayonara-player.com/sw/sayonara-player-1.0.0-git1-$surum.tar.gz) + +derle() { + cd $SRC/$isim + mkdir build + cd build + cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE="Release" + make + make DESTDIR="$PKG/" install +} diff --git a/talimatname/genel/s/sbc/talimat b/talimatname/genel/s/sbc/talimat new file mode 100644 index 000000000..8471ba9f8 --- /dev/null +++ b/talimatname/genel/s/sbc/talimat @@ -0,0 +1,19 @@ +# Tanım: Verileri Bluetooth ses çıkış cihazlarına aktarmak için kullanılan dijital ses kodlayıcı ve kod çözücü. +# URL: https://fr.wikipedia.org/wiki/SBC_%28codec%29 +# Paketçi: milisarge +# Gerekler: + +isim=sbc +surum=1.3 +devir=1 + +kaynak=(http://www.kernel.org/pub/linux/bluetooth/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --disable-static \ + --disable-tester + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/sbcl/arch-fixes.lisp b/talimatname/genel/s/sbcl/arch-fixes.lisp new file mode 100644 index 000000000..bdc631331 --- /dev/null +++ b/talimatname/genel/s/sbcl/arch-fixes.lisp @@ -0,0 +1,21 @@ +(in-package "COMMON-LISP-USER") + +(let* ((parent (make-pathname :directory '(:absolute "usr" "share" "sbcl-source"))) + (src + (merge-pathnames + (make-pathname :directory '(:relative "src" :wild-inferiors) + :name :wild :type :wild) + parent)) + (contrib + (merge-pathnames + (make-pathname :directory '(:relative "contrib" :wild-inferiors) + :name :wild :type :wild) + parent))) + (setf (logical-pathname-translations "SYS") + `(("SYS:SRC;**;*.*.*" ,src) + ("SYS:CONTRIB;**;*.*.*" ,contrib)))) + +(ignore-errors + (sb-ext:gc :full t) + (sb-ext:enable-debugger) + (sb-ext:save-lisp-and-die "sbcl-new.core")) diff --git a/talimatname/genel/s/sbcl/customize-target-features.lisp b/talimatname/genel/s/sbcl/customize-target-features.lisp new file mode 100644 index 000000000..f25e9bb06 --- /dev/null +++ b/talimatname/genel/s/sbcl/customize-target-features.lisp @@ -0,0 +1,6 @@ +(lambda (features) + (flet ((enable (x) (pushnew x features)) + (disable (x) (setf features (remove x features)))) + (enable :sb-thread) + (enable :sb-core-compression) + (${enable_disable_largefile} :largefile))) diff --git a/talimatname/genel/s/sbcl/talimat b/talimatname/genel/s/sbcl/talimat new file mode 100644 index 000000000..e028e0b4f --- /dev/null +++ b/talimatname/genel/s/sbcl/talimat @@ -0,0 +1,52 @@ +# Tanım: Steel Bank Common Lisp +# URL: http://www.sbcl.org/ +# Paketçi: milisarge +# Gerekler: clisp + +isim=sbcl +surum=1.3.17 +devir=1 +kaynak=(https://downloads.sourceforge.net/project/sbcl/sbcl/1.3.17/sbcl-$surum-source.tar.bz2 + arch-fixes.lisp + customize-target-features.lisp) + +derle() { + cd "$SRC/$isim-$surum" + export CFLAGS+=" -D_GNU_SOURCE -fno-omit-frame-pointer -DSBCL_HOME=/usr/lib/sbcl" + export GNUMAKE="make" + # build system uses LINKFLAGS and OS_LIBS to build LDFLAGS + export LINKFLAGS="$LDFLAGS" + unset LDFLAGS + unset MAKEFLAGS + enable_disable_largefile=enable + # Make a multi-threaded SBCL, disable LARGEFILE + #cp $SRC/customize-target-features.lisp . + bash make.sh clisp --prefix=/usr --fancy + + # cannot have both SBCL_HOME and INSTALL_ROOT + + SBCL_HOME="" INSTALL_ROOT="$PKG/usr" sh install.sh + + src/runtime/sbcl --core output/sbcl.core --script "${SRC}/arch-fixes.lisp" + + mv sbcl-new.core "${PKG}/usr/lib/sbcl/sbcl.core" + + # sources + + mkdir -p "$PKG/usr/share/sbcl-source" + + cp -R -t "$PKG/usr/share/sbcl-source" "$SRC/$isim-$surum/"{src,contrib} + + # license + + install -D -m644 "$SRC/$isim-$surum/COPYING" "$PKG/usr/share/licenses/$isim/license.txt" + + # drop unwanted files + + find "$PKG" \( -name Makefile -o -name .cvsignore \) -delete + + find "$PKG/usr/share/sbcl-source" -type f \( -name \*.fasl -o -name \*.o -o -name \*.log -o -name \*.so -o -name a.out \) -delete + + rm "$PKG/usr/share/sbcl-source/src/runtime/sbcl"{,.nm} + +} diff --git a/talimatname/genel/s/scons/talimat b/talimatname/genel/s/scons/talimat new file mode 100644 index 000000000..dcf6e6ce4 --- /dev/null +++ b/talimatname/genel/s/scons/talimat @@ -0,0 +1,16 @@ +# Tanım: SCons, Açık Kaynaklı bir yazılım geliştirme aracı, yani yeni nesil bir yapı aracıdır. +# URL: http://scons.org +# Paketçi: milisarge +# Gerekler: python + +isim=scons +surum=2.4.1 +devir=1 + +kaynak=(http://downloads.sourceforge.net/$isim/$isim-$surum.tar.gz) +derle() +{ +cd $isim-$surum +python2 setup.py install --standard-lib --prefix=/usr --install-data=/usr/share --root=$PKG --optimize=1; +install -D -m644 LICENSE.txt $PKG/usr/share/licenses/$isim/LICENSE +} diff --git a/talimatname/genel/s/scratch/scratch.desktop b/talimatname/genel/s/scratch/scratch.desktop new file mode 100644 index 000000000..6e503af5d --- /dev/null +++ b/talimatname/genel/s/scratch/scratch.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Scratch +Comment= Programlama sistemi ve içerik geliştirme aracı +Exec=scratch +Terminal=false +Type=Application +Icon=scratch +Categories=Development; +MimeType=application/x-scratch-project diff --git a/talimatname/genel/s/scratch/talimat b/talimatname/genel/s/scratch/talimat new file mode 100644 index 000000000..2698166d4 --- /dev/null +++ b/talimatname/genel/s/scratch/talimat @@ -0,0 +1,35 @@ +# Tanım: Kendi etkileşimli hikayelerinizi, oyunlarınızı, müzik ve sanatınızı oluşturun ve paylaşın +# URL: http://scratch.mit.edu +# Paketçi: Cihan Alkan +# Gerekler: squeak-vm shared-mime-info desktop-file-utils pango gtk-update-icon-cache +# Grup: geliştirme + +isim=scratch +surum=1.4.0.7 +devir=1 +kaynak=(http://download.scratch.mit.edu/$isim-$surum.src.tar.gz + $isim.desktop) + +derle() { + cd $isim-$surum.src + sed -i 's/-xshm //' src/$isim + make build + + install -Dm755 src/$isim "$PKG"/usr/bin/$isim + install -Dm644 Scratch.image "$PKG"/usr/lib/$isim/Scratch.image + install -m644 Scratch.ini "$PKG"/usr/lib/$isim/Scratch.ini + install -Dm644 src/$isim.desktop "$PKG"/usr/share/applications/$isim.desktop + install -Dm644 src/man/$isim.1.gz "$PKG"/usr/share/man/man1/$isim.1.gz + install -Dm644 src/$isim.xml "$PKG"/usr/share/mime/packages/$isim.xml + install -dm755 "$PKG"/usr/share/{$isim,icons/hicolor} + + cp -rp Help locale Media Projects README "$PKG"/usr/share/$isim/ + cp -rp Plugins "$PKG"/usr/lib/$isim/ + chmod 755 "$PKG"/usr/share/scratch/locale + cp -r $SRC/$isim.desktop "$PKG"/usr/share/applications/$isim.desktop + + for res in 32 48 128; do + install -D -m644 src/icons/${res}x${res}/$isim.png \ + "$PKG"/usr/share/icons/hicolor/${res}x${res}/apps/$isim.png + done +} diff --git a/talimatname/genel/s/screen/talimat b/talimatname/genel/s/screen/talimat new file mode 100644 index 000000000..74fa94bbc --- /dev/null +++ b/talimatname/genel/s/screen/talimat @@ -0,0 +1,28 @@ +# Tanım: Screen, fiziksel bir terminali birkaç işlem arasında, genellikle etkileşimli kabuklarla çoğaltılan tam ekran bir pencere yöneticisidir +# URL: http://www.gnu.org/software/screen/screen.html +# Paketçi: milisarge +# Gerekler: + +isim=screen +surum=4.3.1 +devir=1 + +kaynak=(ftp://ftp.gnu.org/gnu/$isim/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --with-socket-dir=/run/screen \ + --with-pty-group=5 \ + --with-sys-screenrc=/etc/screenrc && + +sed -i -e "s%/usr/local/etc/screenrc%/etc/screenrc%" {etc,doc}/* && +make +make DESTDIR=$PKG install +rm $PKG/usr/share/info/dir +mkdir $PKG/etc +install -m 644 etc/etcscreenrc \ +$PKG/etc/screenrc +} diff --git a/talimatname/genel/s/scribus/talimat b/talimatname/genel/s/scribus/talimat new file mode 100644 index 000000000..0ef5afffd --- /dev/null +++ b/talimatname/genel/s/scribus/talimat @@ -0,0 +1,31 @@ +# Tanım: Masaüstü yayıncılık yazılımı +# URL: http://www.scribus.net +# Paketçi: milisarge +# Gerekler: cmake boost aspell cups qt4 gnutls kerberos boost ghostscript lcms libxml2 cairo desktop-file-utils shared-mime-info + +isim=scribus +surum=1.4.5 +devir=2 + +kaynak=(http://downloads.sourceforge.net/$isim/$isim-$surum.tar.bz2) + +derle() { + unset MAKEFLAGS + cd $SRC* + + sed -i -e 's|#!/usr/bin/python|#!/usr/bin/python2|' \ + -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \ + scribus-$surum/scribus/plugins/scriptplugin/{samples,scripts}/* + + cd $isim-$surum + mkdir build + cd build + cmake ../ -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_SKIP_RPATH=ON \ + -DWANT_CAIRO=1 \ + -DLIB_SUFFIX="" + make + make DESTDIR=$PKG install + install -Dm644 $SRC/$isim-$surum/scribus.desktop \ + $PKG/usr/share/applications/scribus.desktop +} diff --git a/talimatname/genel/s/scrot/talimat b/talimatname/genel/s/scrot/talimat new file mode 100644 index 000000000..dc2cf1256 --- /dev/null +++ b/talimatname/genel/s/scrot/talimat @@ -0,0 +1,19 @@ +# Tanım: X için basit bir komut satırı ekran görüntüsü programı +# URL: http://scrot.sourcearchive.com/ +# Paketçi: milisarge +# Gerekler: giblib + +isim=scrot +surum=0.8.17 +devir=1 + +kaynak=("http://scrot.sourcearchive.com/downloads/0.8-17/scrot_0.8.orig.tar.gz") + +derle() { + cd $SRC/$isim-0.8 + ./configure --prefix=/usr \ + --mandir=/usr/share/man + make + + make DESTDIR=$PKG docsdir=/usr/share/doc/scrot install +} diff --git a/talimatname/genel/s/sddm/10-backlight.rules b/talimatname/genel/s/sddm/10-backlight.rules new file mode 100644 index 000000000..68e50bb2a --- /dev/null +++ b/talimatname/genel/s/sddm/10-backlight.rules @@ -0,0 +1,12 @@ +polkit.addRule(function(action, subject) { + + if (action.id.indexOf("org.kde.powerdevil.backlighthelper.") == 0 && + + subject.isInGroup("users")) { + + return polkit.Result.YES; + + } + +}); + diff --git a/talimatname/genel/s/sddm/ecb903e4.patch b/talimatname/genel/s/sddm/ecb903e4.patch new file mode 100644 index 000000000..7dce56752 --- /dev/null +++ b/talimatname/genel/s/sddm/ecb903e4.patch @@ -0,0 +1,33 @@ +From ecb903e48822bd90650bdd64fe80754e3e9664cb Mon Sep 17 00:00:00 2001 +From: Bastian Beischer +Date: Fri, 2 Sep 2016 13:05:18 +0200 +Subject: [PATCH] Fix display of user avatars. (#684) + +QFile::exists("...") does not understand file:// URLs, at least in Qt +5.7.0 and Qt 4.8.7. +--- + src/greeter/UserModel.cpp | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/src/greeter/UserModel.cpp b/src/greeter/UserModel.cpp +index 41a9f10..94c492d 100644 +--- a/src/greeter/UserModel.cpp ++++ b/src/greeter/UserModel.cpp +@@ -107,13 +107,13 @@ namespace SDDM { + d->lastIndex = i; + + if (avatarsEnabled) { +- const QString userFace = QStringLiteral("file://%1/.face.icon").arg(user->homeDir); +- const QString systemFace = QStringLiteral("file://%1/%2.face.icon").arg(facesDir).arg(user->name); ++ const QString userFace = QStringLiteral("%1/.face.icon").arg(user->homeDir); ++ const QString systemFace = QStringLiteral("%1/%2.face.icon").arg(facesDir).arg(user->name); + + if (QFile::exists(userFace)) +- user->icon = userFace; ++ user->icon = QStringLiteral("file://%1").arg(userFace); + else if (QFile::exists(systemFace)) +- user->icon = systemFace; ++ user->icon = QStringLiteral("file://%1").arg(systemFace); + } + } + } diff --git a/talimatname/genel/s/sddm/sddm-0.14.0-consolekit.patch b/talimatname/genel/s/sddm/sddm-0.14.0-consolekit.patch new file mode 100644 index 000000000..64ea06482 --- /dev/null +++ b/talimatname/genel/s/sddm/sddm-0.14.0-consolekit.patch @@ -0,0 +1,9 @@ +--- a/data/scripts/Xsession 2016-08-28 14:52:04.910181422 +0200 ++++ b/data/scripts/Xsession 2016-08-28 14:53:07.157184480 +0200 +@@ -91,5 +91,5 @@ + if [ -z "$@" ]; then + exec xmessage -center -buttons OK:0 -default OK "Sorry, $DESKTOP_SESSION is no valid session." + else +- exec $@ ++ exec ck-launch-session $@ + fi diff --git a/talimatname/genel/s/sddm/sddm.conf b/talimatname/genel/s/sddm/sddm.conf new file mode 100644 index 000000000..22a6a54a9 --- /dev/null +++ b/talimatname/genel/s/sddm/sddm.conf @@ -0,0 +1,100 @@ +[Autologin] +# Autologin again on session exit +Relogin=false + +# Autologin session +Session=plasma.desktop + +# Autologin user +User= + + +[General] +# Halt command +HaltCommand=/sbin/shutdown -h -P now + +# Initial NumLock state +# Valid values: on|off|none +# If property is set to none, numlock won't be changed +Numlock=on + +# Reboot command +RebootCommand=/sbin/shutdown -r now + + +[Theme] +# Current theme name +Current=breeze + +# Cursor theme +CursorTheme=breeze_cursors + +# Face icon directory +# The files should be in username.face.icon format +FacesDir=/usr/share/sddm/faces + +# Theme directory path +ThemeDir=/usr/share/sddm/themes + + +[Users] +# Default $PATH +DefaultPath=/bin:/usr/bin:/usr/sbin:/usr/local/bin + +# Hidden shells +# Users with these shells as their default won't be listed +HideShells= + +# Hidden users +HideUsers= + +# Maximum user id for displayed users +MaximumUid=65000 + +# Minimum user id for displayed users +MinimumUid=1000 + +# Remember the session of the last successfully logged in user +RememberLastSession=true + +# Remember the last successfully logged in user +RememberLastUser=true + + +[WaylandDisplay] +# Wayland session script path +# A script to execute when starting the desktop session +SessionCommand=/usr/share/sddm/scripts/wayland-session + +# Session description directory +SessionDir=/usr/share/wayland-sessions + + +[XDisplay] +# Xsetup script path +# A script to execute when starting the display server +DisplayCommand=/usr/share/sddm/scripts/Xsetup + +# Xstop script path +# A script to execute when stopping the display server +DisplayStopCommand=/usr/share/sddm/scripts/Xstop + +# Minimum VT +# The lowest virtual terminal number that will be used. +MinimumVT=7 + +# X server path +ServerPath=/usr/bin/X + +# Xsession script path +# A script to execute when starting the desktop session +SessionCommand=/usr/share/sddm/scripts/Xsession + +# Session description directory +SessionDir=/usr/share/xsessions + +# Xauth path +XauthPath=/usr/bin/xauth + +# Xephyr path +XephyrPath=/usr/bin/Xephyr diff --git a/talimatname/genel/s/sddm/sddm.kos-kur b/talimatname/genel/s/sddm/sddm.kos-kur new file mode 100644 index 000000000..71409313f --- /dev/null +++ b/talimatname/genel/s/sddm/sddm.kos-kur @@ -0,0 +1,18 @@ +echo "Lxdm sistemden kaldırılıyor." + +mps -s lxdm + +if ! getent group sddm > /dev/null; then + groupadd -g 64 sddm +fi +if ! getent passwd sddm > /dev/null; then + useradd -c "Simple Desktop Display Manager" \ + -d /var/lib/sddm \ + -u 64 -g sddm \ + -s /bin/false sddm + + passwd -l sddm > /dev/null +fi + +mkdir -p /var/lib/sddm +chown -R sddm:sddm /var/lib/sddm > /dev/null diff --git a/talimatname/genel/s/sddm/sddm.kur-kos b/talimatname/genel/s/sddm/sddm.kur-kos new file mode 100644 index 000000000..d944fb0ce --- /dev/null +++ b/talimatname/genel/s/sddm/sddm.kur-kos @@ -0,0 +1,3 @@ +. /lib/lsb/init-functions +sed -i "s/^id:[3-5]/id:5/" /etc/inittab +echo "Init default set to 5 in the /etc/inittab file" diff --git a/talimatname/genel/s/sddm/talimat b/talimatname/genel/s/sddm/talimat new file mode 100644 index 000000000..17a21b4db --- /dev/null +++ b/talimatname/genel/s/sddm/talimat @@ -0,0 +1,96 @@ +# Tanım: SDDM paketi, Qt ve QML'de yazılmış hafif bir ekran yöneticisi içerir. +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: cmake kf5-extra-cmake-modules qt5 upower consolekit2 xorg-libxkbfile libxcb + +isim=sddm +devir=1 +surum=0.14.0 + +kaynak=( https://github.com/sddm/sddm/releases/download/v$surum/${isim}-$surum.tar.xz + sddm.conf + 10-backlight.rules + sddm-0.14.0-consolekit.patch + ecb903e4.patch) + +derle() { +wget http://anduin.linuxfromscratch.org/BLFS/blfs-bootscripts/blfs-bootscripts-20160902.tar.xz +tar xvf blfs-bootscripts-20160902.tar.xz + +cd ${isim}-$surum +sed -e '/UPOWER_SERVICE)/ s:^://:' \ + -i src/daemon/PowerManager.cpp +mkdir build +patch -p1 -i ../sddm-0.14.0-consolekit.patch +patch -p1 -i ../ecb903e4.patch +cd build +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DENABLE_JOURNALD=OFF \ + -DDBUS_CONFIG_FILENAME=sddm_org.freedesktop.DisplayManager.conf \ + -Wno-dev .. +make +make DESTDIR=$PKG install + +install -m 644 -p $SRC/sddm.conf $PKG/etc/ +mkdir -p $PKG/etc/polkit-1/ +mkdir -p $PKG/etc/polkit-1/rules.d +install -m 644 -p $SRC/10-backlight.rules $PKG/etc/polkit-1/rules.d/ +install -v -dm755 -o sddm -g sddm /var/lib/sddm + +cat > $PKG/etc/pam.d/sddm << "EOF" +# Begin /etc/pam.d/sddm + +auth requisite pam_nologin.so +auth required pam_env.so + +auth required pam_succeed_if.so uid >= 0 quiet +#auth sufficient pam_succeed_if.so user ingroup nopasswdlogin +auth include system-auth + +account include system-account +password include system-password + +session required pam_limits.so +session include system-session + +# End /etc/pam.d/sddm +EOF + +cat > $PKG/etc/pam.d/sddm-autologin << "EOF" +# Begin /etc/pam.d/sddm-autologin + +auth requisite pam_nologin.so +auth required pam_env.so + +auth required pam_succeed_if.so uid >= 0 quiet +#auth sufficient pam_succeed_if.so user ingroup nopasswdlogin +auth required pam_permit.so + +account include system-account + +password required pam_deny.so + +session required pam_limits.so +session include system-session + +# End /etc/pam.d/sddm-autologin +EOF + +cat > $PKG/etc/pam.d/sddm-greeter << "EOF" +# Begin /etc/pam.d/sddm-greeter + +auth required pam_env.so +auth required pam_permit.so + +account required pam_permit.so +password required pam_deny.so +session required pam_unix.so +-session optional pam_systemd.so + +# End /etc/pam.d/sddm-greeter +EOF +# service +cd $SRC/blfs-bootscripts-20160902 +make DESTDIR=$PKG install-sddm +} diff --git a/talimatname/genel/s/sdl-image/talimat b/talimatname/genel/s/sdl-image/talimat new file mode 100644 index 000000000..da943b588 --- /dev/null +++ b/talimatname/genel/s/sdl-image/talimat @@ -0,0 +1,22 @@ +# Tanım: SDL_image, çeşitli biçimlerin SDL yüzeyleri gibi resimlerini yüklemek için kullanılan basit bir kütüphanedir. +# URL: http://www.libsdl.org/projects/SDL_image +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: sdl libjpeg-turbo libpng libtiff libwebp + +isim=sdl-image +surum=1.2.12 +devir=1 + +kaynak=(http://www.libsdl.org/projects/SDL_image/release/SDL_image-$surum.tar.gz) + +derle() { + +cd SDL_image-$surum + +./configure --prefix=/usr \ + + +make +make DESTDIR=$PKG install + +} diff --git a/talimatname/genel/s/sdl-mixer/talimat b/talimatname/genel/s/sdl-mixer/talimat new file mode 100644 index 000000000..491820833 --- /dev/null +++ b/talimatname/genel/s/sdl-mixer/talimat @@ -0,0 +1,17 @@ +# Tanım: Örnek bir çok kanallı ses karıştırıcı kitaplığı. +# URL: http://www.libsdl.org/projects/SDL_mixer +# Paketçi: milisarge +# Gerekler: libvorbis smpeg libmikmod flac + +isim=sdl-mixer +surum=1.2.12 +devir=2 +kaynak=(http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-$surum.tar.gz) + +derle() { + cd SDL_mixer-$surum + sed -i -e 's|/usr/local/lib/timidity|/usr/share/timidity|g' timidity/config.h + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/sdl-net/talimat b/talimatname/genel/s/sdl-net/talimat new file mode 100644 index 000000000..c5dcaca17 --- /dev/null +++ b/talimatname/genel/s/sdl-net/talimat @@ -0,0 +1,17 @@ +# Tanım: SDL için çapraz platform bir ağ kitaplığı. +# URL: http://www.libsdl.org/projects/SDL_net +# Paketçi: milisarge +# Gerekler: sdl + +isim=sdl-net +surum=1.2.8 +devir=1 +kaynak=(http://www.libsdl.org/projects/SDL_net/release/SDL_net-$surum.tar.gz) + +derle() { + cd SDL_net-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/s/sdl-pango/SDL_Pango-0.1.2-API-adds.patch b/talimatname/genel/s/sdl-pango/SDL_Pango-0.1.2-API-adds.patch new file mode 100644 index 000000000..1535a5673 --- /dev/null +++ b/talimatname/genel/s/sdl-pango/SDL_Pango-0.1.2-API-adds.patch @@ -0,0 +1,116 @@ +--- src/SDL_Pango.c 2004-12-10 10:06:33.000000000 +0100 ++++ src/SDL_Pango.c 2006-09-24 22:46:24.000000000 +0200 +@@ -723,13 +723,8 @@ + SDL_UnlockSurface(surface); + } + +-/*! +- Create a context which contains Pango objects. +- +- @return A pointer to the context as a SDLPango_Context*. +-*/ + SDLPango_Context* +-SDLPango_CreateContext() ++SDLPango_CreateContext_GivenFontDesc(const char* font_desc) + { + SDLPango_Context *context = g_malloc(sizeof(SDLPango_Context)); + G_CONST_RETURN char *charset; +@@ -743,8 +738,7 @@ + pango_context_set_language (context->context, pango_language_from_string (charset)); + pango_context_set_base_dir (context->context, PANGO_DIRECTION_LTR); + +- context->font_desc = pango_font_description_from_string( +- MAKE_FONT_NAME (DEFAULT_FONT_FAMILY, DEFAULT_FONT_SIZE)); ++ context->font_desc = pango_font_description_from_string(font_desc); + + context->layout = pango_layout_new (context->context); + +@@ -762,6 +756,17 @@ + } + + /*! ++ Create a context which contains Pango objects. ++ ++ @return A pointer to the context as a SDLPango_Context*. ++*/ ++SDLPango_Context* ++SDLPango_CreateContext() ++{ ++ SDLPango_CreateContext_GivenFontDesc(MAKE_FONT_NAME(DEFAULT_FONT_FAMILY, DEFAULT_FONT_SIZE)); ++} ++ ++/*! + Free a context. + + @param *context [i/o] Context to be free +@@ -1053,6 +1058,20 @@ + pango_layout_set_font_description (context->layout, context->font_desc); + } + ++void ++SDLPango_SetText_GivenAlignment( ++ SDLPango_Context *context, ++ const char *text, ++ int length, ++ SDLPango_Alignment alignment) ++{ ++ pango_layout_set_attributes(context->layout, NULL); ++ pango_layout_set_text (context->layout, text, length); ++ pango_layout_set_auto_dir (context->layout, TRUE); ++ pango_layout_set_alignment (context->layout, alignment); ++ pango_layout_set_font_description (context->layout, context->font_desc); ++} ++ + /*! + Set plain text to context. + Text must be utf-8. +@@ -1067,11 +1086,7 @@ + const char *text, + int length) + { +- pango_layout_set_attributes(context->layout, NULL); +- pango_layout_set_text (context->layout, text, length); +- pango_layout_set_auto_dir (context->layout, TRUE); +- pango_layout_set_alignment (context->layout, PANGO_ALIGN_LEFT); +- pango_layout_set_font_description (context->layout, context->font_desc); ++ SDLPango_SetText_GivenAlignment(context, text, length, SDLPANGO_ALIGN_LEFT); + } + + /*! +--- src/SDL_Pango.h 2004-12-10 10:06:33.000000000 +0100 ++++ src/SDL_Pango.h 2006-09-24 22:46:01.000000000 +0200 +@@ -109,12 +109,20 @@ + SDLPANGO_DIRECTION_NEUTRAL /*! Neutral */ + } SDLPango_Direction; + +- ++/*! ++ Specifies alignment of text. See Pango reference for detail ++*/ ++typedef enum { ++ SDLPANGO_ALIGN_LEFT, ++ SDLPANGO_ALIGN_CENTER, ++ SDLPANGO_ALIGN_RIGHT ++} SDLPango_Alignment; + + extern DECLSPEC int SDLCALL SDLPango_Init(); + + extern DECLSPEC int SDLCALL SDLPango_WasInit(); + ++extern DECLSPEC SDLPango_Context* SDLCALL SDLPango_CreateContext_GivenFontDesc(const char* font_desc); + extern DECLSPEC SDLPango_Context* SDLCALL SDLPango_CreateContext(); + + extern DECLSPEC void SDLCALL SDLPango_FreeContext( +@@ -157,6 +165,12 @@ + const char *markup, + int length); + ++extern DECLSPEC void SDLCALL SDLPango_SetText_GivenAlignment( ++ SDLPango_Context *context, ++ const char *text, ++ int length, ++ SDLPango_Alignment alignment); ++ + extern DECLSPEC void SDLCALL SDLPango_SetText( + SDLPango_Context *context, + const char *markup, diff --git a/talimatname/genel/s/sdl-pango/matrix_declarations.patch b/talimatname/genel/s/sdl-pango/matrix_declarations.patch new file mode 100644 index 000000000..c35d0a708 --- /dev/null +++ b/talimatname/genel/s/sdl-pango/matrix_declarations.patch @@ -0,0 +1,131 @@ +Index: SDL_Pango-0.1.2/src/SDL_Pango.c +=================================================================== +--- SDL_Pango-0.1.2.orig/src/SDL_Pango.c 2007-09-18 15:03:10.732910311 +0200 ++++ SDL_Pango-0.1.2/src/SDL_Pango.c 2007-09-18 15:04:41.970109622 +0200 +@@ -286,6 +286,59 @@ + } contextImpl; + + ++const SDLPango_Matrix _MATRIX_WHITE_BACK ++ = {255, 0, 0, 0, ++ 255, 0, 0, 0, ++ 255, 0, 0, 0, ++ 255, 255, 0, 0,}; ++ ++/*! ++ Specifies white back and black letter. ++*/ ++const SDLPango_Matrix *MATRIX_WHITE_BACK = &_MATRIX_WHITE_BACK; ++ ++const SDLPango_Matrix _MATRIX_BLACK_BACK ++ = {0, 255, 0, 0, ++ 0, 255, 0, 0, ++ 0, 255, 0, 0, ++ 255, 255, 0, 0,}; ++/*! ++ Specifies black back and white letter. ++*/ ++const SDLPango_Matrix *MATRIX_BLACK_BACK = &_MATRIX_BLACK_BACK; ++ ++const SDLPango_Matrix _MATRIX_TRANSPARENT_BACK_BLACK_LETTER ++ = {0, 0, 0, 0, ++ 0, 0, 0, 0, ++ 0, 0, 0, 0, ++ 0, 255, 0, 0,}; ++/*! ++ Specifies transparent back and black letter. ++*/ ++const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_BLACK_LETTER = &_MATRIX_TRANSPARENT_BACK_BLACK_LETTER; ++ ++const SDLPango_Matrix _MATRIX_TRANSPARENT_BACK_WHITE_LETTER ++ = {255, 255, 0, 0, ++ 255, 255, 0, 0, ++ 255, 255, 0, 0, ++ 0, 255, 0, 0,}; ++/*! ++ Specifies transparent back and white letter. ++*/ ++const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_WHITE_LETTER = &_MATRIX_TRANSPARENT_BACK_WHITE_LETTER; ++ ++const SDLPango_Matrix _MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER ++ = {255, 255, 0, 0, ++ 255, 255, 0, 0, ++ 255, 255, 0, 0, ++ 0, 0, 0, 0,}; ++/*! ++ Specifies transparent back and transparent letter. ++ This is useful for KARAOKE like rendering. ++*/ ++const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER = &_MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER; ++ ++ + /*! + Initialize the Glib and Pango API. + This must be called before using other functions in this library, +Index: SDL_Pango-0.1.2/src/SDL_Pango.h +=================================================================== +--- SDL_Pango-0.1.2.orig/src/SDL_Pango.h 2007-09-18 15:03:10.732910311 +0200 ++++ SDL_Pango-0.1.2/src/SDL_Pango.h 2007-09-18 15:06:24.919976401 +0200 +@@ -47,57 +47,27 @@ + Uint8 m[4][4]; /*! Matrix variables */ + } SDLPango_Matrix; + +-const SDLPango_Matrix _MATRIX_WHITE_BACK +- = {255, 0, 0, 0, +- 255, 0, 0, 0, +- 255, 0, 0, 0, +- 255, 255, 0, 0,}; +- + /*! + Specifies white back and black letter. + */ +-const SDLPango_Matrix *MATRIX_WHITE_BACK = &_MATRIX_WHITE_BACK; +- +-const SDLPango_Matrix _MATRIX_BLACK_BACK +- = {0, 255, 0, 0, +- 0, 255, 0, 0, +- 0, 255, 0, 0, +- 255, 255, 0, 0,}; ++extern const SDLPango_Matrix *MATRIX_WHITE_BACK; + /*! + Specifies black back and white letter. + */ +-const SDLPango_Matrix *MATRIX_BLACK_BACK = &_MATRIX_BLACK_BACK; +- +-const SDLPango_Matrix _MATRIX_TRANSPARENT_BACK_BLACK_LETTER +- = {0, 0, 0, 0, +- 0, 0, 0, 0, +- 0, 0, 0, 0, +- 0, 255, 0, 0,}; ++extern const SDLPango_Matrix *MATRIX_BLACK_BACK; + /*! + Specifies transparent back and black letter. + */ +-const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_BLACK_LETTER = &_MATRIX_TRANSPARENT_BACK_BLACK_LETTER; +- +-const SDLPango_Matrix _MATRIX_TRANSPARENT_BACK_WHITE_LETTER +- = {255, 255, 0, 0, +- 255, 255, 0, 0, +- 255, 255, 0, 0, +- 0, 255, 0, 0,}; ++extern const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_BLACK_LETTER; + /*! + Specifies transparent back and white letter. + */ +-const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_WHITE_LETTER = &_MATRIX_TRANSPARENT_BACK_WHITE_LETTER; +- +-const SDLPango_Matrix _MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER +- = {255, 255, 0, 0, +- 255, 255, 0, 0, +- 255, 255, 0, 0, +- 0, 0, 0, 0,}; ++extern const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_WHITE_LETTER; + /*! + Specifies transparent back and transparent letter. + This is useful for KARAOKE like rendering. + */ +-const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER = &_MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER; ++extern const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER; + + /*! + Specifies direction of text. See Pango reference for detail diff --git a/talimatname/genel/s/sdl-pango/talimat b/talimatname/genel/s/sdl-pango/talimat new file mode 100644 index 000000000..b13b4aaac --- /dev/null +++ b/talimatname/genel/s/sdl-pango/talimat @@ -0,0 +1,22 @@ +# Tanım: Pango SDL ciltlemesi +# URL: http://sdlpango.sourceforge.net/ +# Paketçi: Cihan Alkan +# Gerekler: pango sdl + +isim=sdl-pango +surum=0.1.2 +devir=1 + +kaynak=(https://downloads.sourceforge.net/sourceforge/sdlpango/SDL_Pango-$surum.tar.gz + SDL_Pango-$surum-API-adds.patch + matrix_declarations.patch) + + +derle() { + cd SDL_Pango-$surum + patch -Np0 -i $SRC/SDL_Pango-$surum-API-adds.patch + patch -Np1 -i $SRC/matrix_declarations.patch + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/sdl-ttf/talimat b/talimatname/genel/s/sdl-ttf/talimat new file mode 100644 index 000000000..03166c3ba --- /dev/null +++ b/talimatname/genel/s/sdl-ttf/talimat @@ -0,0 +1,20 @@ +# Tanım: Libsdl için TrueType kitaplığı. +# URL: http://www.libsdl.org/projects/SDL_ttf/ +# Paketçi: milisarge +# Gerekler: freetype sdl + +isim=sdl-ttf +surum=2.0.11 +devir=1 +kaynak=(http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-$surum.tar.gz) + +derle() { + cd SDL_ttf-$surum + + ./configure \ + --prefix=/usr \ + --disable-dependency-tracking + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/sdl/talimat b/talimatname/genel/s/sdl/talimat new file mode 100644 index 000000000..a17578861 --- /dev/null +++ b/talimatname/genel/s/sdl/talimat @@ -0,0 +1,18 @@ +# Tanım: Basit Directmedia Layer, bir kitaplık çoklu biçimi +# URL: http://www.libsdl.org +# Paketçi: milisarge +# Gerekler: alsa-lib nasm libusb pulseaudio xorg-libx11 xorg-libxext +# Grup: grafik_tasarım + +isim=sdl +surum=1.2.15 +devir=1 + +kaynak=(http://www.libsdl.org/release/SDL-$surum.tar.gz) +derle() { +cd SDL-$surum +sed -i '/_XData32/s:register long:register _Xconst long:' src/video/x11/SDL_x11sym.h +./configure --prefix=/usr --disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/sdl2-image/talimat b/talimatname/genel/s/sdl2-image/talimat new file mode 100644 index 000000000..88669ec92 --- /dev/null +++ b/talimatname/genel/s/sdl2-image/talimat @@ -0,0 +1,19 @@ +# Tanım: SDL yüzeyleri (Version 2) olarak çeşitli biçimlerin görüntülerini yüklemek için basit bir kütüphane +# URL: http://www.libsdl.org/projects/SDL_image +# Paketçi: yasarciv67@gmail.com +# Gerekler: sdl2 libpng libtiff libjpeg-turbo libwebp cmake + +isim=sdl2-image +surum=2.0.1 +devir=1 +kaynak=(https://www.libsdl.org/projects/SDL_image/release/SDL2_image-$surum.tar.gz) + +derle() { + cd SDL2_image-$surum + ./configure --disable-static --prefix=/usr + + make + make DESTDIR=$PKG install +install -Dm644 COPYING.txt "$PKG/usr/share/licenses/$isim/LICENSE" +} + diff --git a/talimatname/genel/s/sdl2-mixer/talimat b/talimatname/genel/s/sdl2-mixer/talimat new file mode 100644 index 000000000..0dfe01da1 --- /dev/null +++ b/talimatname/genel/s/sdl2-mixer/talimat @@ -0,0 +1,20 @@ +# Tanım: A simple multi-channel audio mixer (Version 2) +# URL: http://www.libsdl.org/projects/SDL_mixer +# Paketçi: milisarge +# Gerekler: fluidsynth sdl2 libvorbis libmodplug smpeg2 flac + +isim=sdl2-mixer +surum=2.0.1 +devir=1 +kaynak=(https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-$surum.tar.gz) + +derle() { + cd "${SRC}/SDL2_mixer-${surum}/" + sed -i "s|/etc/timidity|/etc/timidity++|g" timidity/config.h + sed -i "s|/etc/timidity++.cfg|/etc/timidity++/timidity.cfg|g" timidity/config.h + export CFLAGS+=" ${CFLAGS} -I/usr/include/libmodplug" + ./configure --disable-static --prefix=/usr + make + make DESTDIR="${PKG}" install + install -Dm644 COPYING.txt "${PKG}/usr/share/licenses/${isim}/LICENSE" +} diff --git a/talimatname/genel/s/sdl2-ttf/talimat b/talimatname/genel/s/sdl2-ttf/talimat new file mode 100644 index 000000000..8fed4cdce --- /dev/null +++ b/talimatname/genel/s/sdl2-ttf/talimat @@ -0,0 +1,21 @@ +# Tanım: SDL2 uygulamalarınızda TrueType fontları kullanmanıza izin veren bir kütüphane +# URL: http://www.libsdl.org/projects/SDL_ttf +# Paketçi: Cihan_Alkan +# Gerekler: sdl2 freetype cmake +# Grup: kütüphane + +isim=sdl2-ttf +surum=2.0.14 +devir=1 +kaynak=(https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-${surum}.tar.gz) + +derle() { + + cd "${SRC}/SDL2_ttf-${surum}/" + + ./configure --disable-static --prefix=/usr + make + + make DESTDIR="${PKG}/" install + install -Dm644 COPYING.txt "${PKG}/usr/share/licenses/${isim}/LICENSE" +} diff --git a/talimatname/genel/s/sdl2/talimat b/talimatname/genel/s/sdl2/talimat new file mode 100644 index 000000000..80c42e3cc --- /dev/null +++ b/talimatname/genel/s/sdl2/talimat @@ -0,0 +1,24 @@ +# Tanım: Bir video çerçeve arabelleği, ses çıkışı, fare ve klavyeye taşınabilir düşük seviye erişimi için bir kütüphane +# URL: http://www.libsdl.org +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: xorg-libxext xorg-libxrender xorg-libx11 xorg-libxcursor alsa-lib xorg-mesa pulseaudio xorg-libxrandr xorg-libxinerama libxkbcommon wayland + +isim=sdl2 +surum=2.0.4 +devir=1 + +kaynak=(http://www.libsdl.org/release/SDL2-$surum.tar.gz) + +derle() { + mkdir build + cd build + ../SDL2-$surum/configure --prefix=/usr \ + --enable-sdl-dlopen \ + --disable-arts --disable-esd --disable-nas \ + --enable-alsa --enable-pulseaudio-shared \ + --disable-video-wayland \ + --disable-rpath + make + make DESTDIR=$PKG install + install -Dm644 ../SDL2-$surum/COPYING.txt $PKG/usr/share/licenses/$isim/LICENSE +} diff --git a/talimatname/genel/s/sdl2_gfx/talimat b/talimatname/genel/s/sdl2_gfx/talimat new file mode 100644 index 000000000..d64668c2a --- /dev/null +++ b/talimatname/genel/s/sdl2_gfx/talimat @@ -0,0 +1,17 @@ +# Tanım: SDL graphics drawing primitives and other support functions (Version 2) +# URL: http://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx/ +# Paketçi: milisarge +# Gerekler: sdl2 + +isim=sdl2_gfx +surum=1.0.3 +devir=1 +kaynak=(http://www.ferzkopp.net/Software/SDL2_gfx/SDL2_gfx-$surum.tar.gz) + +derle() { + cd SDL2_gfx-$surum + ./configure --prefix=/usr + make + make DESTDIR="$PKG" install + install -Dm644 COPYING "$PKG/usr/share/licenses/$isim/LICENSE" +} diff --git a/talimatname/genel/s/sdl2_net/talimat b/talimatname/genel/s/sdl2_net/talimat new file mode 100644 index 000000000..cf2954211 --- /dev/null +++ b/talimatname/genel/s/sdl2_net/talimat @@ -0,0 +1,17 @@ +# Tanım: SDL-2 için çapraz platform bir ağ kitaplığı. +# URL: http://www.libsdl.org/projects/SDL_net +# Paketçi: milisarge +# Gerekler: sdl2 + +isim=sdl2_net +surum=2.0.1 +devir=1 +kaynak=(https://www.libsdl.org/projects/SDL_net/release/SDL2_net-$surum.tar.gz) + +derle() { + cd SDL2_net-$surum + ./configure --disable-static --prefix=/usr + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/s/sdl_gfx/talimat b/talimatname/genel/s/sdl_gfx/talimat new file mode 100644 index 000000000..8ad6ff103 --- /dev/null +++ b/talimatname/genel/s/sdl_gfx/talimat @@ -0,0 +1,17 @@ +# Tanım: SDL grafik çizim ilkelleri ve diğer destek fonksiyonları. +# URL: http://www.ferzkopp.net/joomla/software-mainmenu-14/4-ferzkopps-linux-software/19-sdlgfx +# Paketçi: milisarge +# Gerekler: sdl + +isim=sdl_gfx +surum=2.0.23 +devir=1 +kaynak=(http://downloads.sourceforge.net/project/sdlgfx/SDL_gfx-$surum.tar.gz) + +derle() { + cd SDL_gfx-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/s/seahorse-nautilus/seahorse-nautilus.kur-kos b/talimatname/genel/s/seahorse-nautilus/seahorse-nautilus.kur-kos new file mode 100644 index 000000000..7b04491d7 --- /dev/null +++ b/talimatname/genel/s/seahorse-nautilus/seahorse-nautilus.kur-kos @@ -0,0 +1,2 @@ +glib-compile-schemas /usr/share/glib-2.0/schemas +update-desktop-database -q diff --git a/talimatname/genel/s/seahorse-nautilus/talimat b/talimatname/genel/s/seahorse-nautilus/talimat new file mode 100644 index 000000000..ec0e1c249 --- /dev/null +++ b/talimatname/genel/s/seahorse-nautilus/talimat @@ -0,0 +1,18 @@ +# Tanım: Nautilus için PGP şifreleme ve imzalama. +# URL: http://www.gnome.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: gsettings-desktop-schemas desktop-file-utils gtk-update-icon-cache gtk3 libcryptui dbus-glib gnome-keyring gconf gnupg gpgme nautilus libnotify seahorse + +isim=seahorse-nautilus +surum=3.11.92 +devir=1 + +kaynak=(http://download.gnome.org/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + sed -i "s@1.2 1.4 2.0@1.2 1.4 2.0 2.1@" configure + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/seahorse/seahorse.kur-kos b/talimatname/genel/s/seahorse/seahorse.kur-kos new file mode 100644 index 000000000..51b045731 --- /dev/null +++ b/talimatname/genel/s/seahorse/seahorse.kur-kos @@ -0,0 +1,3 @@ +glib-compile-schemas /usr/share/glib-2.0/schemas +update-desktop-database -q +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor diff --git a/talimatname/genel/s/seahorse/talimat b/talimatname/genel/s/seahorse/talimat new file mode 100644 index 000000000..51e958c24 --- /dev/null +++ b/talimatname/genel/s/seahorse/talimat @@ -0,0 +1,17 @@ +# Tanım: PGP anahtarlarını yönetmek için GNOME uygulaması. +# URL: http://www.gnome.org/" +# Paketçi: yasarciv67@gmail.com +# Gerekler: gsettings-desktop-schemas desktop-file-utils gtk-update-icon-cache gtk3 gcr libsecret desktop-file-utils dconf gpgme openldap intltool yelp-tools gobject-introspection xorg-libsm vala + +isim=seahorse +surum=3.20.0 +devir=2 + +kaynak=(http://download.gnome.org/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/sendmail/sendmail.kos-kur b/talimatname/genel/s/sendmail/sendmail.kos-kur new file mode 100644 index 000000000..763d9ac28 --- /dev/null +++ b/talimatname/genel/s/sendmail/sendmail.kos-kur @@ -0,0 +1,5 @@ +groupadd -g 26 smmsp +useradd -c "Sendmail Daemon" -g smmsp -d /dev/null \ + -s /bin/false -u 26 smmsp +chmod -v 1777 /var/mail +install -v -m700 -d /var/spool/mqueue diff --git a/talimatname/genel/s/sendmail/sendmail.sil-kos b/talimatname/genel/s/sendmail/sendmail.sil-kos new file mode 100644 index 000000000..3355681bd --- /dev/null +++ b/talimatname/genel/s/sendmail/sendmail.sil-kos @@ -0,0 +1,3 @@ +userdel smmsp +groupdel smmsp + diff --git a/talimatname/genel/s/sendmail/site.config.m4 b/talimatname/genel/s/sendmail/site.config.m4 new file mode 100644 index 000000000..302bea330 --- /dev/null +++ b/talimatname/genel/s/sendmail/site.config.m4 @@ -0,0 +1,5 @@ +define(`confMANGRP',`root') +define(`confMANOWN',`root') +define(`confSBINGRP',`root') +define(`confUBINGRP',`root') +define(`confUBINOWN',`root') diff --git a/talimatname/genel/s/sendmail/talimat b/talimatname/genel/s/sendmail/talimat new file mode 100644 index 000000000..d0f5c8e84 --- /dev/null +++ b/talimatname/genel/s/sendmail/talimat @@ -0,0 +1,74 @@ +# Tanım: The sendmail package contains a Mail Transport Agent (MTA). +# URL: ftp://ftp.sendmail.org/pub/sendmail/ +# Paketçi: milisarge +# Gerekler: ghostscript cyrus-sasl openssl procmail openldap + +isim=sendmail +surum=8.15.2 +devir=1 + +kaynak=(ftp://ftp.sendmail.org/pub/$isim/$isim.$surum.tar.gz + site.config.m4) + +derle() { + + cd $isim-$surum + + source /etc/blfs-bootscripts + wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2 + tar xvf $scripts-$scriptsversion.tar.bz2 + + cp -v $SRC/site.config.m4 devtools/Site + + sed -i 's|/usr/man/man|/usr/share/man/man|' \ + devtools/OS/Linux + cd sendmail + sh Build + cd ../cf/cf + cp generic-linux.mc sendmail.mc + sh Build sendmail.cf + + install -v -d -m755 $PKG/etc/mail + install -c -o root -g bin -m 0444 sendmail.cf $PKG/etc/mail/sendmail.cf + install -c -o root -g bin -m 0444 submit.cf $PKG/etc/mail/submit.cf + + + cd ../.. + sh Build install + + install -v -m644 cf/cf/{submit,sendmail}.mc $PKG/etc/mail + cp -v -R cf/* $PKG/etc/mail + + install -v -m755 -d $PKG/usr/share/doc/sendmail-8.15.2/{cf,sendmail} + + install -v -m644 CACerts FAQ KNOWNBUGS LICENSE PGPKEYS README RELEASE_NOTES \ + $PKG/usr/share/doc/sendmail-8.15.2 + + install -v -m644 sendmail/{README,SECURITY,TRACEFLAGS,TUNING} \ + $PKG/usr/share/doc/sendmail-8.15.2/sendmail + + install -v -m644 cf/README $PKG/usr/share/doc/sendmail-8.15.2/cf + + install -v -d -m755 $PKG/usr/share/man/man8 + for manpage in sendmail editmap mailstats makemap praliases smrsh + do + install -v -m644 $manpage/$manpage.8 $PKG/usr/share/man/man8 + done && + + install -v -m644 sendmail/aliases.5 $PKG/usr/share/man/man5 + install -v -m644 sendmail/mailq.1 $PKG/usr/share/man/man1 + install -v -m644 sendmail/newaliases.1 $PKG/usr/share/man/man1 + install -v -m644 vacation/vacation.1 $PKG/usr/share/man/man1 + + cd doc/op + sed -i 's/groff/GROFF_NO_SGR=1 groff/' Makefile + make op.txt op.pdf + + install -v -d -m755 $PKG/usr/share/doc/sendmail-8.15.2 + install -v -m644 op.ps op.txt op.pdf $PKG/usr/share/doc/sendmail-8.15.2 + cd ../.. + + cd $scripts-$scriptsversion + make DESTDIR=$PKG install-sendmail + +} diff --git a/talimatname/genel/s/serf/talimat b/talimatname/genel/s/serf/talimat new file mode 100644 index 000000000..120df1b93 --- /dev/null +++ b/talimatname/genel/s/serf/talimat @@ -0,0 +1,22 @@ +# Tanım: C tabanlı HTTP istemci kütüphanesi Apache Portable Runtime (APR) kütüphanesi üzerine inşa edilmiştir. +# URL: https://code.google.com/p/serf/ +# Paketçi: milisarge +# Gerekler: apr-util openssl scons kerberos + +isim=serf +surum=1.3.8 +devir=1 +kaynak=(https://archive.apache.org/dist/$isim/$isim-$surum.tar.bz2) + +derle() { + +cd $isim-$surum + +sed -i "/Append/s:RPATH=libdir,::" SConstruct +sed -i "/Default/s:lib_static,::" SConstruct +sed -i "/Alias/s:install_static,::" SConstruct +scons PREFIX=/usr + +scons PREFIX=$PKG/usr install + +} diff --git a/talimatname/genel/s/setconf/talimat b/talimatname/genel/s/setconf/talimat new file mode 100644 index 000000000..2fa5c100b --- /dev/null +++ b/talimatname/genel/s/setconf/talimat @@ -0,0 +1,15 @@ +# Tanım: Ayar dosyalarındaki ayarları kolayca değiştirme aracı +# URL: http://setconf.roboticoverlords.org/ +# Paketçi: milisarge +# Gerekler: python + +isim=setconf +surum=0.7.4 +devir=1 +kaynak=(http://setconf.roboticoverlords.org/$isim-$surum.tar.xz) + +derle() { + cd "$isim-$surum" + + install -Dm755 "$isim.py" "$PKG/usr/bin/$isim" +} diff --git a/talimatname/genel/s/seyhan/seyhan-logo.png b/talimatname/genel/s/seyhan/seyhan-logo.png new file mode 100644 index 000000000..d9eab67ad Binary files /dev/null and b/talimatname/genel/s/seyhan/seyhan-logo.png differ diff --git a/talimatname/genel/s/seyhan/talimat b/talimatname/genel/s/seyhan/talimat new file mode 100644 index 000000000..1dfbc45e1 --- /dev/null +++ b/talimatname/genel/s/seyhan/talimat @@ -0,0 +1,42 @@ +# Tanım: Açık kaynak kodlu ön muhasebe programı +# URL: http://www.seyhanproject.com +# Paketçi: Cihan_Alkan +# Gerekler: openjdk unzip +# Grup: ofis_düzenleyici + +isim=seyhan +surum=1.0.19 +devir=1 + +kaynak=(seyhan-logo.png) + +derle() { +if [ ! -f $DERLEME_KAYNAKDIZIN/seyhan-$surum.zip ];then + wget http://www.seyhanproject.com/downloads/seyhan-$surum.zip \ + --user-agent="Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 \ + (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" \ + -O $DERLEME_KAYNAKDIZIN/seyhan-$surum.zip +fi +unzip $DERLEME_KAYNAKDIZIN/seyhan-$surum.zip -d $SRC/ +mkdir -pv $PKG/opt/seyhan +mv $SRC/$isim-$surum/* $PKG/opt/seyhan/ + +# Başlatıcı +mkdir -pv $PKG/usr/share/applications && +cat > $PKG/usr/share/applications/seyhan.desktop << "EOF" && +[Desktop Entry] +Encoding=UTF-8 +Type=Application +Name=Seyhan Ön Muhasebe +Comment=Açık kaynak kodlu ön muhasebe programı +Icon=seyhan +Exec=firefox http://localhost:9000 +Categories=Network;GTK;Application;Browser;WebBrowser; +StartupNotify=true +Terminal=false +EOF + +mkdir -pv $PKG/usr/share/pixmaps +cp -r $SRC/seyhan-logo.png $PKG/usr/share/pixmaps/seyhan.png +echo "Kullanıcı Adı: super , Şifre: 1234" +} diff --git a/talimatname/genel/s/sfml-python/talimat b/talimatname/genel/s/sfml-python/talimat new file mode 100644 index 000000000..9b7daffeb --- /dev/null +++ b/talimatname/genel/s/sfml-python/talimat @@ -0,0 +1,19 @@ +# Tanım: SFML için gayriresmi Python bağlaması +# URL: http://python-sfml.org +# Paketçi: Cihan_Alkan +# Gerekler: cython sfml python python3 +# Grup: kütüphane + +isim=sfml-python +surum=git +devir=1 + +kaynak=(https://github.com/Sonkun/python-sfml/archive/master.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd $SRC/python-sfml-master + python2 setup.py build_ext + python2 setup.py install --root="${PKG}" --prefix=/usr + python3 setup.py build_ext + python3 setup.py install --root="${PKG}" --prefix=/usr +} diff --git a/talimatname/genel/s/sfml/talimat b/talimatname/genel/s/sfml/talimat new file mode 100644 index 000000000..54bef17f4 --- /dev/null +++ b/talimatname/genel/s/sfml/talimat @@ -0,0 +1,32 @@ +# Tanım: Sade,hızlı,çoğl platform destekli multimedya kütüphanesi +# URL: http://www.sfml-dev.org/ +# Paketçi: milisarge +# Gerekler: flac freetype libjpeg-turbo libvorbis xorg-mesa openal util-linux xorg-libsm xorg-libxrandr xcb-util-image + +isim=sfml +surum=2.4.2 +devir=1 +kaynak=(https://www.sfml-dev.org/files/SFML-$surum-sources.zip) + +derle() { + cd SFML-$surum + cmake_surum=3.4 + install -d build + cd build + + cmake .. \ + -DCMAKE_BUILD_TYPE='Release' \ + -DCMAKE_INSTALL_PREFIX='/usr' \ + -DSFML_INSTALL_PKGCONFIG_FILES=1 \ + -DSFML_BUILD_EXAMPLES=0 \ + -DSFML_BUILD_DOC=0 \ + + + make + make DESTDIR=$PKG install + + install -D -m 0644 $PKG/usr/share/SFML/cmake/Modules/FindSFML.cmake \ + $PKG/usr/share/cmake-$cmake_surum/Modules/FindSFML.cmake + + rm -r $PKG/usr/share/SFML/{license,readme}.txt +} diff --git a/talimatname/genel/s/sg3-utils/talimat b/talimatname/genel/s/sg3-utils/talimat new file mode 100644 index 000000000..dc4582150 --- /dev/null +++ b/talimatname/genel/s/sg3-utils/talimat @@ -0,0 +1,16 @@ +# Tanım: Genel SCSI yardımcı programları +# URL: http://sg.danny.cz/sg/sg3_utils.html +# Paketçi: milisarge +# Gerekler: + +isim=sg3-utils +surum=1.41 +devir=1 + +kaynak=(http://sg.danny.cz/sg/p/sg3_utils-$surum.tar.xz) +derle() { +cd sg3_utils-$surum +./configure --prefix=/usr --disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/sgml-common/talimat b/talimatname/genel/s/sgml-common/talimat new file mode 100644 index 000000000..cd7eaf699 --- /dev/null +++ b/talimatname/genel/s/sgml-common/talimat @@ -0,0 +1,25 @@ +# Tanım: Merkezi SGML kataloglarını koruma araçları. +# URL: http://www.docbook.org/xml/ +# Paketçi: milisarge +# Gerekler: + +isim=sgml-common +surum=0.6.3 +devir=1 + +kaynak=( +ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/sgml-common-$surum.tgz +http://www.linuxfromscratch.org/patches/blfs/7.5/sgml-common-$surum-manpage-1.patch) + +derle(){ + cd $isim-$surum + patch -Np1 -i ../sgml-common-$surum-manpage-1.patch && + autoreconf -f -i + ./configure --prefix=/usr \ + --sysconfdir=/etc + make + make DESTDIR=$PKG install + + # Doc dizinini düzelt + mv $PKG/usr/doc $PKG/usr/share/doc +} diff --git a/talimatname/genel/s/shared-color-targets/talimat b/talimatname/genel/s/shared-color-targets/talimat new file mode 100644 index 000000000..b2f12a155 --- /dev/null +++ b/talimatname/genel/s/shared-color-targets/talimat @@ -0,0 +1,16 @@ +# Tanım: Renk profilleri oluşturmak için paylaşılan renk hedefleri. +# URL: http://www.gnome.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: + +isim=shared-color-targets +surum=0.1.7 +devir=1 +kaynak=(http://people.freedesktop.org/~hughsient/releases/$isim-$surum.tar.xz) + +derle(){ + cd $isim-$surum +./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/shared-mime-info/shared-mime-info.kur-kos b/talimatname/genel/s/shared-mime-info/shared-mime-info.kur-kos new file mode 100644 index 000000000..e4b7536a2 --- /dev/null +++ b/talimatname/genel/s/shared-mime-info/shared-mime-info.kur-kos @@ -0,0 +1 @@ +update-mime-database usr/share/mime > /dev/null 2>&1 diff --git a/talimatname/genel/s/shared-mime-info/talimat b/talimatname/genel/s/shared-mime-info/talimat new file mode 100644 index 000000000..accfde425 --- /dev/null +++ b/talimatname/genel/s/shared-mime-info/talimat @@ -0,0 +1,18 @@ +# Tanım: Destekleyen tüm uygulamalar için MIME bilgilerini merkezi olarak güncellemenizi sağlar. +# URL: http://freedesktop.org/ +# Paketçi: milisarge +# Gerekler: libxml2 intltool glib + +isim=shared-mime-info +surum=1.5 +devir=1 + +kaynak=( http://freedesktop.org/~hadess/$isim-$surum.tar.xz) + +derle() { +unset MAKEFLAGS +cd $isim-$surum +./configure --prefix=/usr --disable-update-mimedb +make -j1 +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/sharutils/talimat b/talimatname/genel/s/sharutils/talimat new file mode 100644 index 000000000..b391c1559 --- /dev/null +++ b/talimatname/genel/s/sharutils/talimat @@ -0,0 +1,17 @@ +# Tanım: 'Kabuk' arşivleri oluşturabilen araçlar içerir. +# URL: https://www.gnu.org/software/sharutils/ +# Paketçi: milisarge +# Gerekler: + +isim=sharutils +surum=4.15.2 +devir=1 + +kaynak=(http://ftp.gnu.org/gnu/$isim/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/shashlik/shashlik-gui.sh b/talimatname/genel/s/shashlik/shashlik-gui.sh new file mode 100644 index 000000000..8d3ab879b --- /dev/null +++ b/talimatname/genel/s/shashlik/shashlik-gui.sh @@ -0,0 +1,44 @@ +#!/usr/bin/env bash +# shashlik-gui 1.0 +# +# Copyright (c) 2017 Elias Ojala +# +# Permission to use, copy, modify, and/or distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +# +# https://github.com/theel0ja/shashlik-gui + +FILE=`zenity --file-selection --title="Yüklemek istediğiniz bir .apk dosyası seçin"` +case $? in + 0) + case "${FILE##*.}" in + apk) + zenity --question --text="$FILE dosyasını yüklemek istiyor musunuz?" + case $? in + 0) + /opt/shashlik/bin/shashlik-install $FILE + ;; + 1) + zenity --warning --text="Uygulama yüklenemedi.";; + -1) + zenity --error --text="Beklenmeyen bir hata oluştu.";; + esac + ;; + *) + zenity --error --text="Geçersiz dosya türü.";; + esac + ;; + 1) + zenity --error --text="Dosya seçilmedi.";; + -1) + zenity --error --text="Beklenmeyen bir hata oluştu.";; +esac diff --git a/talimatname/genel/s/shashlik/shashlik.desktop b/talimatname/genel/s/shashlik/shashlik.desktop new file mode 100644 index 000000000..9aa0bd073 --- /dev/null +++ b/talimatname/genel/s/shashlik/shashlik.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Version=1.0 +Name=Android Apk Kur +CommentAndroid uygulamaları çalıştır +Icon=multimedia-volume-control +Exec=/bin/shashlik-gui.sh +Type=Application +Icon=/opt/shashlik/data/shashlik.png +StartupNotify=true +Terminal=false +Categories=X-XFCE;Utility; diff --git a/talimatname/genel/s/shashlik/talimat b/talimatname/genel/s/shashlik/talimat new file mode 100644 index 000000000..617a059e4 --- /dev/null +++ b/talimatname/genel/s/shashlik/talimat @@ -0,0 +1,22 @@ +# Tanım: Standart Linux masaüstü üzerinde Android uygulamaları çalıştır +# URL: http://www.shashlik.io +# Paketçi: Cihan Alkan +# Gerekler: python3 kdialog zenity + +isim=shashlik +surum=0.9.3 +devir=1 +kaynak=(http://static.davidedmundson.co.uk/shashlik/shashlik_$surum.deb +shashlik.desktop +shashlik-gui.sh) + +derle() { + ar x ${SRC}/shashlik_$surum.deb + tar -xJC $PKG -f data.tar.xz + install -dm755 $PKG/usr/bin + ln -s /opt/shashlik/bin/shashlik-run $PKG/usr/bin/ + ln -s /opt/shashlik/bin/shashlik-install $PKG/usr/bin/ + cp -f /$SRC/shashlik.desktop /usr/share/applications/shashlik.desktop + cp -f /$SRC/shashlik-gui.sh /bin/ + +} diff --git a/talimatname/genel/s/shotcut/talimat b/talimatname/genel/s/shotcut/talimat new file mode 100644 index 000000000..f4189b67e --- /dev/null +++ b/talimatname/genel/s/shotcut/talimat @@ -0,0 +1,37 @@ +# Tanım: Video düzenleyici +# URL: https://www.shotcut.org/ +# Paketçi: Cihan_Alkan +# Gerekler: qt5 mlt movit ffmpeg x264 lame frei0r-plugins ladspa +# Grup: medya + +isim=shotcut +surum=18.05 +devir=1 + +kaynak=(https://github.com/mltframework/shotcut/archive/v$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + + cd $SRC/$isim-$surum + qmake-qt5 PREFIX='/usr' \ + QMAKE_CFLAGS_RELEASE="${CFLAGS}" \ + QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" + make + + make INSTALL_ROOT="${PKG}" install +# Başlatıcı +mkdir -pv $PKG/usr/share/applications && +cat > $PKG/usr/share/applications/$isim.desktop << "EOF" && +[Desktop Entry] +Type=Application +Name=Shotcut +GenericName=Video Düzenleyici +Comment=Video düzenleyici +Exec=shotcut +Icon=applications-multimedia +Terminal=false +Categories=AudioVideo;Video;AudioVideoEditing; +EOF +cd /$SRC/ + +} diff --git a/talimatname/genel/s/shotwell/shotwell.kur-kos b/talimatname/genel/s/shotwell/shotwell.kur-kos new file mode 100644 index 000000000..0a5783124 --- /dev/null +++ b/talimatname/genel/s/shotwell/shotwell.kur-kos @@ -0,0 +1,4 @@ +glib-compile-schemas /usr/share/glib-2.0/schemas +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor +update-desktop-database -q + diff --git a/talimatname/genel/s/shotwell/talimat b/talimatname/genel/s/shotwell/talimat new file mode 100644 index 000000000..a18a1db4e --- /dev/null +++ b/talimatname/genel/s/shotwell/talimat @@ -0,0 +1,19 @@ +# Tanım: GNOME masaüstü ortamı için tasarlanmış bir dijital fotoğraf düzenleyicisi. +# URL: http://www.gnome.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: dconf desktop-file-utils hicolor-icon-theme gnome-doc-utils json-glib libgphoto2 libgee libgexiv2 gtk3 libgudev libraw libsoup libxml2 librest gstreamer1-plugins-base webkit2gtk3 + +isim=shotwell +surum=0.23.7 +devir=1 +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ + --disable-schemas-compile \ + --disable-desktop-update \ + --disable-icon-update +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/siege/talimat b/talimatname/genel/s/siege/talimat new file mode 100644 index 000000000..60dd890f1 --- /dev/null +++ b/talimatname/genel/s/siege/talimat @@ -0,0 +1,19 @@ +# Tanım: http stres test performans ölçüm uygulaması +# URL: https://www.joedog.org/siege-home/ +# Paketçi: milisarge +# Gerekler: + +isim=siege +surum=4.0.4 +devir=1 +kaynak=(http://download.joedog.org/siege/siege-$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd "${SRC}/$isim-$surum" + ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man + make + install -d -m755 "$PKG/etc" + install -d -m755 "$PKG/usr/share" + make DESTDIR="$PKG" install + sed -i 's/^# file =$/file = \/etc\/urls.txt/' "$PKG/etc/siegerc" +} diff --git a/talimatname/genel/s/sielo-navigateur/talimat b/talimatname/genel/s/sielo-navigateur/talimat new file mode 100644 index 000000000..34696f975 --- /dev/null +++ b/talimatname/genel/s/sielo-navigateur/talimat @@ -0,0 +1,28 @@ +# Tanım: C++14 ve Qt5 ile yapılan hızlı bir web tarayıcısı +# URL: https://feldrise.com/Sielo +# Paketçi: Cihan_Alkan +# Gerekler: qt5 +# Grup: ağ + +isim=sielo-navigateur +surum=0.4.0 +devir=1 +kaynak=(http://feldrise.com/Sielo/Linux/$isim-v$surum.tar.gz) + +derle() { + cd $SRC/$isim-v$surum/build/release + qmake-qt5 -spec linux-g++ -o Makefile ../../SieloNavigateur.pro || return 1 + cd $SRC/$isim-v$surum + mkdir -p $PKG/usr/bin/ + mkdir -p $PKG/usr/share/applications/ + mkdir -p $PKG/usr/share/pixmaps/ + cp build/release/SieloDataSoftware/SieloDataSoftware $PKG/usr/bin/ + cp build/release/SNThemeEditor/SNThemeEditor $PKG/usr/bin/ + cp build/release/SieloNavigateur/SieloNavigateur $PKG/usr/bin/ + cp share/applications/Sielo.desktop $PKG/usr/share/applications/ + cp share/pixmaps/SNIcon.png $PKG/usr/share/pixmaps + chmod +x $PKG/usr/bin/SieloDataSoftware + chmod +x $PKG/usr/bin/SNThemeEditor + chmod +x $PKG/usr/bin/SieloNavigateur +} + diff --git a/talimatname/genel/s/signon-kwallet-extension/talimat b/talimatname/genel/s/signon-kwallet-extension/talimat new file mode 100644 index 000000000..f4273d859 --- /dev/null +++ b/talimatname/genel/s/signon-kwallet-extension/talimat @@ -0,0 +1,22 @@ +# Tanım: KWallet oturum açma uzantısı +# URL: http://kde.org +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules signond kf5-kwallet +# Grup: kde + +isim=signon-kwallet-extension +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DKDE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/signon-plugin-oauth2/talimat b/talimatname/genel/s/signon-plugin-oauth2/talimat new file mode 100644 index 000000000..392ad704c --- /dev/null +++ b/talimatname/genel/s/signon-plugin-oauth2/talimat @@ -0,0 +1,23 @@ +# Tanım: Oturum açma için OAuth 2 eklentisi +# URL: https://gitlab.com/accounts-sso/signon-plugin-oauth2 +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: signond qt5 + +isim=signon-plugin-oauth2 +surum=0.23 +devir=1 + +kaynak=(https://gitlab.com/accounts-sso/signon-plugin-oauth2/repository/archive.tar.gz) + +derle() { +cd signon-plugin-oauth2* +sed -i '/-Werror/d' common-project-config.pri + +# Do not install tests and example +echo 'INSTALLS =' >>tests/tests.pro +echo 'INSTALLS =' >>example/example.pro + +qmake-qt5 PREFIX=/usr LIBDIR=/usr/lib +make +make INSTALL_ROOT=$PKG install +} diff --git a/talimatname/genel/s/signon-ui/talimat b/talimatname/genel/s/signon-ui/talimat new file mode 100644 index 000000000..6a42074b9 --- /dev/null +++ b/talimatname/genel/s/signon-ui/talimat @@ -0,0 +1,20 @@ +# Tanım: Bir çevrimiçi hesabın oturum açma işlemi sırasında kullanıcı etkileşimlerini işleme tabi tutmaktan sorumlu UI bileşeni +# URL : https://launchpad.net/online-accounts-signon-ui +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: qt5 libaccounts-qt5 qt5-webkit signond libnotify + +isim=signon-ui +surum=0.17+15.10.20150810 +devir=1 + +kaynak=(http://archive.ubuntu.com/ubuntu/pool/main/s/$isim/${isim}_$surum.orig.tar.gz) + +derle() { +cd $isim-$surum +echo 'INSTALLS =' >>tests/unit/tst_inactivity_timer.pro +echo 'INSTALLS =' >>tests/unit/tst_signon_ui.pro + +qmake-qt5 PREFIX=/usr LIBDIR=/usr/lib +make +make INSTALL_ROOT=$PKG install +} diff --git a/talimatname/genel/s/signond/talimat b/talimatname/genel/s/signond/talimat new file mode 100644 index 000000000..a08f194e1 --- /dev/null +++ b/talimatname/genel/s/signond/talimat @@ -0,0 +1,20 @@ +# Tanım: İstemci adına kullanıcı kimlik doğrulamasını yapan bir D-Bus servisi +# URL : https://gitlab.com/accounts-sso/signond/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: qt5 libproxy doxygen dejavu-ttf freefont-ttf ttf-liberation noto-fonts + +isim=signond +surum=8.58 +devir=1 + +kaynak=(https://gitlab.com/accounts-sso/signond/repository/archive.tar.bz2) + +derle() { +cd $isim* + +sed -i 's/qdbusxml2cpp/qdbusxml2cpp-qt5/' src/signond/signond.pro + +qmake-qt5 CONFIG+=coverage PREFIX=/usr LIBDIR=/usr/lib +make +make INSTALL_ROOT=$PKG install +} diff --git a/talimatname/genel/s/simple-mtpfs/talimat b/talimatname/genel/s/simple-mtpfs/talimat new file mode 100644 index 000000000..8c00c32e5 --- /dev/null +++ b/talimatname/genel/s/simple-mtpfs/talimat @@ -0,0 +1,22 @@ +# Tanım: MTP cihazları için yazma/okuma yapabilen fuse dosya sistemi +# URL: https://github.com/phatina/simple-mtpfs/ +# Paketçi: milisarge +# Gerekler: libmtp fuse + +isim=simple-mtpfs +surum=0.3.0 +devir=1 + +kaynak=(https://github.com/phatina/simple-mtpfs/archive/$isim-$surum.tar.gz) + +derle(){ + cd $isim-$isim-$surum + if [[ ! -e "./configure" ]]; then + ./autogen.sh + ./configure --prefix=/usr + else + ./config.status + fi + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/simple-scan/simple-scan.kur-kos b/talimatname/genel/s/simple-scan/simple-scan.kur-kos new file mode 100644 index 000000000..44076814b --- /dev/null +++ b/talimatname/genel/s/simple-scan/simple-scan.kur-kos @@ -0,0 +1,2 @@ +glib-compile-schemas /usr/share/glib-2.0/schemas > /dev/null 2>&1 +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor diff --git a/talimatname/genel/s/simple-scan/talimat b/talimatname/genel/s/simple-scan/talimat new file mode 100644 index 000000000..adfaa4aab --- /dev/null +++ b/talimatname/genel/s/simple-scan/talimat @@ -0,0 +1,18 @@ +# Tanım: Basit tarama arayüzü programı +# URL: https://launchpad.net/simple-scan/ +# Paketçi: milisarge +# Gerekler: gtk3 colord itstool sane dconf intltool xorg-libxcursor xorg-libxdamage xorg-libxrandr xorg-libxinerama v4l-utils libgphoto2 + +isim=simple-scan +surum=3.12.2 +devir=1 + +kaynak=(https://launchpad.net/$isim/${surum%.*}/$surum/+download/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --disable-schemas-compile + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/simplescreenrecorder/simplescreenrecorder.desktop b/talimatname/genel/s/simplescreenrecorder/simplescreenrecorder.desktop new file mode 100644 index 000000000..7892a0087 --- /dev/null +++ b/talimatname/genel/s/simplescreenrecorder/simplescreenrecorder.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Name=Basit Ekran Kaydedici +Comment=A feature-rich screen recorder that supports X11 and OpenGL +Comment[tr]=X11 ve OpenGL'i destekli zengin özelliklere sahip ekran kaydedici. +Icon=simplescreenrecorder +Exec=simplescreenrecorder --logfile +Terminal=false +Categories=AudioVideo;Video;Recorder;Qt; +Keywords=screen recorder;screencast;live streaming; diff --git a/talimatname/genel/s/simplescreenrecorder/simplescreenrecorder_tr.qm b/talimatname/genel/s/simplescreenrecorder/simplescreenrecorder_tr.qm new file mode 100644 index 000000000..95a339350 Binary files /dev/null and b/talimatname/genel/s/simplescreenrecorder/simplescreenrecorder_tr.qm differ diff --git a/talimatname/genel/s/simplescreenrecorder/talimat b/talimatname/genel/s/simplescreenrecorder/talimat new file mode 100644 index 000000000..94b6166a7 --- /dev/null +++ b/talimatname/genel/s/simplescreenrecorder/talimat @@ -0,0 +1,33 @@ +# Tanım: X11 ve OpenGL'i destekleyen, zengin özelliklere sahip bir ekran kaydedici. +# URL: http://www.maartenbaert.be/simplescreenrecorder/ +# Paketçi: Cihan Alkan +# Gerekler: qt4 ffmpeg jack xorg-glu xorg-libx11 xorg-libxi xorg-libxext xorg-libxfixes + +isim=simplescreenrecorder +surum=0.3.8 +devir=1 + +kaynak=(simplescreenrecorder_tr.qm + simplescreenrecorder.desktop) + + +derle() { + if [ ! -d $DERLEME_KAYNAKDIZIN/$isim ];then + git clone https://github.com/MaartenBaert/ssr.git $DERLEME_KAYNAKDIZIN/$isim + else + cd $DERLEME_KAYNAKDIZIN/$isim + git pull + cd - + fi + cp -r $DERLEME_KAYNAKDIZIN/$isim $SRC/ + + + cd $isim + ./configure --prefix=/usr --disable-assert + make + rm $SRC/$isim/data/$isim.desktop + cp $SRC/$isim.desktop $SRC/$isim/data/ + make DESTDIR=$PKG install + mkdir -p /usr/share/$isim/translations + cp $SRC/simplescreenrecorder_tr.qm /usr/share/$isim/translations/ +} diff --git a/talimatname/genel/s/slack/slack.desktop b/talimatname/genel/s/slack/slack.desktop new file mode 100644 index 000000000..90fcfb09a --- /dev/null +++ b/talimatname/genel/s/slack/slack.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Name=Slack +Comment=Slack Desktop +Comment[tr]=Slack Masaüstü +GenericName=Slack Client for Linux +GenericName[tr]=Linux için Slack istemcisi +Exec=slack --disable-gpu %U +Icon=slack +Type=Application +StartupNotify=true +Categories=Network;InstantMessaging; +MimeType=x-scheme-handler/slack; diff --git a/talimatname/genel/s/slack/talimat b/talimatname/genel/s/slack/talimat new file mode 100644 index 000000000..1379a2cf0 --- /dev/null +++ b/talimatname/genel/s/slack/talimat @@ -0,0 +1,20 @@ +# Tanım: Linux için Slack masaüstü uygulaması +# URL: https://slack.com/apps +# Paketçi: yasarciv67@gmail.com +# Gerekler: gconf gtk2 expat hunspell libgcrypt nss xorg-libxtst libnotify xdg-utils xorg-libxscrnsaver alsa-lib libgnome-keyring + +isim=slack +surum=2.7.1 +devir=1 +kaynak=(https://slack-ssb-updates.global.ssl.fastly.net/linux_releases/slack-desktop-$surum-amd64.deb +$isim.desktop) + +derle() { + bsdtar -xf $isim-desktop-$surum-amd64.deb + bsdtar -xf data.tar.xz + mkdir -p $PKG/opt/$isim $PKG/usr/bin + cp -R usr/lib/$isim/* $PKG/opt/$isim + install -Dm644 $isim.desktop $PKG/usr/share/applications/$isim.desktop + install -Dm644 usr/share/pixmaps/$isim.png $PKG/usr/share/icons/hicolor/512x512/apps/$isim.png + ln -s /opt/$isim/$isim $PKG/usr/bin/$isim +} diff --git a/talimatname/genel/s/slang/talimat b/talimatname/genel/s/slang/talimat new file mode 100644 index 000000000..093cb58b3 --- /dev/null +++ b/talimatname/genel/s/slang/talimat @@ -0,0 +1,23 @@ +# Tanım: S-Lang güçlü bir yorumlanmış dil +# URL: http://gd.tuwien.ac.at/editors/davis/slang +# Paketçi: milisarge +# Gerekler: + +isim=slang +surum=2.2.4 +devir=2 + +kaynak=( ftp://space.mit.edu/pub/davis/$isim/v2.2/$isim-$surum.tar.bz2) + +derle() { + unset MAKEFLAGS + cd $isim-$surum + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info + make + make DESTDIR=$PKG install + chmod -v 755 $PKG/usr/lib/libslang.so.$surum \ + $PKG/usr/lib/slang/v2/modules/*.so +} diff --git a/talimatname/genel/s/slim/CMakeLists.txt.patch b/talimatname/genel/s/slim/CMakeLists.txt.patch new file mode 100644 index 000000000..9a29e6c2d --- /dev/null +++ b/talimatname/genel/s/slim/CMakeLists.txt.patch @@ -0,0 +1,14 @@ +--- CMakeLists.txt.orig 2014-08-08 07:24:01.864876514 -0700 ++++ CMakeLists.txt 2014-08-08 07:24:51.980873088 -0700 +@@ -221,7 +221,10 @@ + ####### install + # slim + install(TARGETS slim RUNTIME DESTINATION bin) +-install(TARGETS slimlock RUNTIME DESTINATION bin) ++## we have to comment this out or else ++## build will fail on slackware as pam ++## is required for slimlock ++#install(TARGETS slimlock RUNTIME DESTINATION bin) + + if (BUILD_SHARED_LIBS) + set_target_properties(libslim PROPERTIES diff --git a/talimatname/genel/s/slim/background.png b/talimatname/genel/s/slim/background.png new file mode 120000 index 000000000..3d906dffb --- /dev/null +++ b/talimatname/genel/s/slim/background.png @@ -0,0 +1 @@ +/sources/milis.git/ayarlar/milis-linux-arkaplan.png \ No newline at end of file diff --git a/talimatname/genel/s/slim/panel.png b/talimatname/genel/s/slim/panel.png new file mode 100644 index 000000000..2b6724d92 Binary files /dev/null and b/talimatname/genel/s/slim/panel.png differ diff --git a/talimatname/genel/s/slim/slim-1.3.6_freetype-2.5.1.diff b/talimatname/genel/s/slim/slim-1.3.6_freetype-2.5.1.diff new file mode 100644 index 000000000..7f4f48a9f --- /dev/null +++ b/talimatname/genel/s/slim/slim-1.3.6_freetype-2.5.1.diff @@ -0,0 +1,22 @@ +From 98822d549689f09bd454b1cf462aae231931f64d Mon Sep 17 00:00:00 2001 +From: mancha +Date: Sat, 14 Feb 2015 +Subject: Fix compile with FreeType 2.5.1+ + +FREETYPE_INCLUDE_DIR_freetype2 & FREETYPE_INCLUDE_DIR_ft2build +might differ. Include both. + +--- + CMakeLists.txt | 1 + + 1 file changed, 1 insertion(+) + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -171,6 +171,7 @@ include_directories( + ${X11_Xrender_INCLUDE_PATH} + ${X11_Xrandr_INCLUDE_PATH} + ${FREETYPE_INCLUDE_DIR_freetype2} ++ ${FREETYPE_INCLUDE_DIR_ft2build} + ${X11_Xmu_INCLUDE_PATH} + ${ZLIB_INCLUDE_DIR} + ${JPEG_INCLUDE_DIR} diff --git a/talimatname/genel/s/slim/slim.conf b/talimatname/genel/s/slim/slim.conf new file mode 100644 index 000000000..862e81921 --- /dev/null +++ b/talimatname/genel/s/slim/slim.conf @@ -0,0 +1,95 @@ +# Path, X server and arguments (if needed) +# Note: -xauth $authfile is automatically appended +default_path /bin:/usr/bin:/usr/local/bin +default_xserver /usr/bin/X +#xserver_arguments -dpi 75 + +# Commands for halt, login, etc. +halt_cmd /sbin/shutdown -h now +reboot_cmd /sbin/shutdown -r now +console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login" +#suspend_cmd /usr/sbin/suspend +suspend_cmd /usr/sbin/pm-suspend +# Full path to the xauth binary +xauth_path /usr/bin/xauth + +# Xauth file for server +authfile /var/run/slim.auth + + +# Activate numlock when slim starts. Valid values: on|off +numlock on + +# Hide the mouse cursor (note: does not work with some WMs). +# Valid values: true|false +# hidecursor false + +# This command is executed after a succesful login. +# you can place the %session and %theme variables +# to handle launching of specific commands in .xinitrc +# depending of chosen session and slim theme +# +# NOTE: if your system does not have bash you need +# to adjust the command according to your preferred shell, +# i.e. for freebsd use: +# login_cmd exec /bin/sh - ~/.xinitrc %session +login_cmd exec /usr/bin/ck-launch-session /bin/bash -login ~/.xinitrc %session + +# Commands executed when starting and exiting a session. +# They can be used for registering a X11 session with +# sessreg. You can use the %user variable +# +# sessionstart_cmd some command +# sessionstop_cmd some command + +# Start in daemon mode. Valid values: yes | no +# Note that this can be overriden by the command line +# options "-d" and "-nodaemon" +# daemon yes + +# Available sessions (first one is the default). +# The current chosen session name is replaced in the login_cmd +# above, so your login command can handle different sessions. +# see the xinitrc.sample file shipped with slim sources +sessiondir /usr/share/xsessions/ + +# Executed when pressing F11 (requires imagemagick) +screenshot_cmd import -window root /tmp/slim.png + +# welcome message. Available variables: %host, %domain +welcome_msg Hoşgeldiniz %host + +# Session message. Prepended to the session name when pressing F1 +# session_msg Session: +hints_msg "F1 masaüstü seçimi" + +# Prepended to the themes session name when pressing F1 +session_msg [F1] xsession: + +# shutdown / reboot messages +shutdown_msg sistem kapanıyor... +reboot_msg sistem yeniden başlatılıyor... + +# default user, leave blank or remove this line +# for avoid pre-loading the username. +#default_user simone + +# Focus the password field on start when default_user is set +# Set to "yes" to enable this feature +#focus_password no + +# Automatically login the default user (without entering +# the password. Set to "yes" to enable this feature +#auto_login no + + +# current theme, use comma separated list to specify a set to +# randomly choose from +current_theme milis + +# Lock file +lockfile /var/run/slim.lock + +# Log file +logfile /var/log/slim.log + diff --git a/talimatname/genel/s/slim/slim.kur-kos b/talimatname/genel/s/slim/slim.kur-kos new file mode 100644 index 000000000..415f85a5c --- /dev/null +++ b/talimatname/genel/s/slim/slim.kur-kos @@ -0,0 +1 @@ +sed -i "s/^id:[3-5]/id:5/" /etc/inittab diff --git a/talimatname/genel/s/slim/slim.logrotate b/talimatname/genel/s/slim/slim.logrotate new file mode 100644 index 000000000..3d237a2d1 --- /dev/null +++ b/talimatname/genel/s/slim/slim.logrotate @@ -0,0 +1,9 @@ +/var/log/slim.log { + compress + rotate 4 + size=1M + notifempty + missingok + copytruncate + noolddir +} diff --git a/talimatname/genel/s/slim/slim.theme b/talimatname/genel/s/slim/slim.theme new file mode 100644 index 000000000..d32727d49 --- /dev/null +++ b/talimatname/genel/s/slim/slim.theme @@ -0,0 +1,46 @@ + +background_style stretch +background_color #000000 + +input_panel_x 50% +input_panel_y 50% + +input_font DejaVu Sans Light:ExtraLight:size=10.5:dpi=96 +input_fgcolor #000000 +input_color #000000 + +username_font DejaVu Sans Light:ExtraLight:size=16:dpi=96 +username_color #000000 +username_x 50% +username_y 50% +password_x 50% +password_y 50% + +username_msg KULLANICI ADINIZ +password_msg ŞİFRENİZ + + +input_name_x 65 +input_name_y 200 +input_pass_x 65 +input_pass_y 200 + + +msg_color #000000 +msg_font fixed:size=13:dpi=75 +msg_x 50% +msg_y 40% +msg_shadow_xoffset 1 +msg_shadow_yoffset 1 + +session_msg Oturumlar: +session_font DejaVu Sans Light:ExtraLight:size=14:dpi=96 +session_x 50% +session_y 75% +session_color #000000 + +hints_msg [F1]=oturum seçimi - reboot=yeniden başlat - console=uçbirim +hints_x 50% +hints_y 90% +hints_font DejaVu Sans Light:ExtraLight:size=12:dpi=96 +hints_color #000000 diff --git a/talimatname/genel/s/slim/talimat b/talimatname/genel/s/slim/talimat new file mode 100644 index 000000000..9475715af --- /dev/null +++ b/talimatname/genel/s/slim/talimat @@ -0,0 +1,67 @@ +# Tanım: Grafiksel oturum açma yardımcı programı +# URL: http://sourceforge.net/projects/slim.berlios +# Paketçi: milisarge +# Gerekler: xorg-xauth libjpeg-turbo libpng cmake xorg-libxft + +isim=slim +surum=2.0 +devir=3 +kaynak=(http://kaynaklar.milislinux.org/slim-$surum.tar.gz + panel.png + https://raw.githubusercontent.com/yakar/milis-linux-wallpapers/master/milis-linux-tree.png + slim.conf + CMakeLists.txt.patch + slim-1.3.6_freetype-2.5.1.diff + slim.logrotate + slim.theme) + +derle() { +cd $isim-$surum + +patch -p0 < $SRC/CMakeLists.txt.patch +patch -p1 < $SRC/slim-1.3.6_freetype-2.5.1.diff + +# Fix location of man-pages +sed "s/share\/man/man/" -i CMakeLists.txt +sed -i "s/DESTINATION lib/DESTINATION lib64/" CMakeLists.txt + +mkdir -p build + + +cd build + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DUSE_CONSOLEKIT=no \ + -DCMAKE_BUILD_TYPE=Release .. + make + make install DESTDIR=$PKG +cd .. + +mv $SRC/slim.conf $PKG/etc/slim.conf + +mkdir -p $PKG/etc/logrotate.d +cat $SRC/slim.logrotate > $PKG/etc/logrotate.d/slim + +# Kill the incorrectly-placed (and useless anyway) systemd stuff +rm -rf $PKG/usr/usr +# Kill systemd stuff +rm -rf $PKG/lib + +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + +# Remove slimlock as we don't build it +rm $PKG/usr/man/man1/slimlock.1.gz +rm $PKG/etc/init.d/slim.init +rm -rf $PKG/usr/share/slim/themes/xamplar +rm -rf $PKG/usr/man/ + +install -d $PKG/usr/share/slim/themes/milis +cp $SRC/panel.png $PKG/usr/share/slim/themes/milis/ +cp $SRC/milis-linux-tree.png $PKG/usr/share/slim/themes/milis/background.png +cp $SRC/slim.theme $PKG/usr/share/slim/themes/milis/ +chmod 0644 $PKG/usr/share/slim/themes/milis/* + +cd /sources/milis.git/ayarlar/servisler +make DESTDIR=$PKG kur-slim +} diff --git a/talimatname/genel/s/slop/talimat b/talimatname/genel/s/slop/talimat new file mode 100644 index 000000000..8d8247edc --- /dev/null +++ b/talimatname/genel/s/slop/talimat @@ -0,0 +1,16 @@ +# Tanım: Kullanıcının seçtiği bölgeyi stdout a veren uygulama +# URL: https://github.com/naelstrof/slop +# Paketçi: milisarge +# Gerekler: cmake xorg-libxext glm xorg-mesa + +isim=slop +surum=5.3.37 +devir=1 +kaynak=(https://github.com/naelstrof/$isim/archive/v$surum.tar.gz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/slowloris/talimat b/talimatname/genel/s/slowloris/talimat new file mode 100644 index 000000000..190b40c6d --- /dev/null +++ b/talimatname/genel/s/slowloris/talimat @@ -0,0 +1,14 @@ +# Tanım: Web sunucu güvenliğini artırabilmek, bağlantı hizmet aksatma (DoS) saldırıları, http sunucusu güvenlik açıklarını test etmek için perl'de yazılmış bir araç. +# URL: http://ha.ckers.org/slowloris/ +# Paketçi: yakar (aydin@komutan.org) +# Gerekler: perl-io-socket-ssl + +isim=slowloris +surum=0.7 +devir=1 +kaynak=(https://raw.githubusercontent.com/llaera/slowloris.pl/master/slowloris.pl) + +derle() { + cd "$SRC" + install -Dm755 "$SRC/slowloris.pl" "$PKG/usr/bin/slowloris" +} diff --git a/talimatname/genel/s/smartmontools/talimat b/talimatname/genel/s/smartmontools/talimat new file mode 100644 index 000000000..c306de764 --- /dev/null +++ b/talimatname/genel/s/smartmontools/talimat @@ -0,0 +1,23 @@ +# Tanım: S.M.A.R.T.'yi kontrol edin ve izleyin. Etkin ATA ve SCSI Sabit Diskler +# URL: http://smartmontools.sourceforge.net +# Paketçi: milisarge +# Gerekler: + +isim=smartmontools +surum=6.6 +devir=1 + +kaynak=(http://downloads.sourceforge.net/sourceforge/$isim/$isim-$surum.tar.gz ) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --with-initscriptdir=/etc/rc.d/init.d \ + --localstatedir=/var \ + --with-savestates \ + --with-attributelog + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/smpeg/smpeg-0.4.4_m4.patch b/talimatname/genel/s/smpeg/smpeg-0.4.4_m4.patch new file mode 100644 index 000000000..adbfb90c6 --- /dev/null +++ b/talimatname/genel/s/smpeg/smpeg-0.4.4_m4.patch @@ -0,0 +1,12 @@ +diff -pruN smpeg-0.4.4.orig/smpeg.m4 smpeg-0.4.4/smpeg.m4 +--- smpeg-0.4.4.orig/smpeg.m4 2008-08-07 22:45:31.086141377 +1000 ++++ smpeg-0.4.4/smpeg.m4 2008-08-07 22:49:53.350144919 +1000 +@@ -10,7 +10,7 @@ dnl AM_PATH_SMPEG([MINIMUM-VERSION, [ACT + ACTION-IF-NOT-FOUND]]]) + dnl Test for SMPEG, and define SMPEG_CFLAGS and SMPEG_LIBS + dnl +-AC_DEFUN(AM_PATH_SMPEG, ++AC_DEFUN([AM_PATH_SMPEG], + [dnl + dnl Get the cflags and libraries from the smpeg-config script + dnl diff --git a/talimatname/genel/s/smpeg/smpeg-mpegaudiosdl.patch b/talimatname/genel/s/smpeg/smpeg-mpegaudiosdl.patch new file mode 100644 index 000000000..af76807f5 --- /dev/null +++ b/talimatname/genel/s/smpeg/smpeg-mpegaudiosdl.patch @@ -0,0 +1,14 @@ +--- smpeg-0.4.4/MPEGaudio.h.orig 2006-01-15 16:17:56.356444000 +0100 ++++ smpeg-0.4.4/MPEGaudio.h 2006-01-15 16:18:36.686965250 +0100 +@@ -148,6 +148,11 @@ + char buffer[2*WINDOWSIZE]; + }; + ++void Play_MPEGaudioSDL(void *udata, Uint8 *stream, int len); ++#ifdef THREADED_AUDIO ++int Decode_MPEGaudio(void *udata); ++#endif ++ + /* The actual MPEG audio class */ + class MPEGaudio : public MPEGerror, public MPEGaudioaction { + diff --git a/talimatname/genel/s/smpeg/talimat b/talimatname/genel/s/smpeg/talimat new file mode 100644 index 000000000..4a8fd77ee --- /dev/null +++ b/talimatname/genel/s/smpeg/talimat @@ -0,0 +1,25 @@ +# Tanım: SDL MPEG oynatıcı kitaplığı. +# URL: http://www.lokigames.com/development/smpeg.php3 +# Paketçi: milisarge +# Gerekler: sdl + +isim=smpeg +surum=0.4.5 +devir=2 +kaynak=(http://ftp.slackware.com/pub/vectorlinux/VL64-7.0/source/sourceVL/smpeg/0.4.5/src/smpeg-0.4.5.tar.gz + smpeg-mpegaudiosdl.patch + smpeg-0.4.4_m4.patch) + +derle() { + cd smpeg-$surum + ./configure \ + --prefix=/usr \ + --mandir=/usr/share/man \ + --disable-static \ + --enable-gtk-player=no +# sed -i -e 's|\(libsmpeg_la_LDFLAGS = .*\)|\1 -lstdc++|' Makefile + make + make install DESTDIR=$PKG +# rm $PKG/usr/man/man1/gtv.1 +} + diff --git a/talimatname/genel/s/smpeg2/talimat b/talimatname/genel/s/smpeg2/talimat new file mode 100644 index 000000000..4b21403ca --- /dev/null +++ b/talimatname/genel/s/smpeg2/talimat @@ -0,0 +1,19 @@ +# Tanım: SDL2 MPEG Player Library +# URL: http://icculus.org/smpeg/ +# Paketçi: milisarge +# Gerekler: sdl2 + +isim=smpeg2 +surum=2.0.0 +devir=1 +kaynak=(http://kaynaklar.milislinux.org//smpeg2.tar.gz) + +derle() { + cd $SRC/release_2_0_0 + ./autogen.sh + ./configure --prefix=/usr --mandir=/usr/share/man --disable-static + make + make DESTDIR=${PKG} install + rm ${PKG}/usr/bin/plaympeg + rm -r ${PKG}/usr/share/man +} diff --git a/talimatname/genel/s/smplayer/talimat b/talimatname/genel/s/smplayer/talimat new file mode 100644 index 000000000..c664c7b48 --- /dev/null +++ b/talimatname/genel/s/smplayer/talimat @@ -0,0 +1,24 @@ +# Tanım: SMPlayer kurulu kodekleriyle tüm ses ve video türlerini oynatabilen Linux için ücretsiz bir medya oynatıcısıdır. +# URL: http://smplayer.sf.net/ +# Paketçi: milisarge +# Gerekler: mplayer qt4 + +isim=smplayer +surum=16.4.0 +devir=1 +kaynak=(http://prdownloads.sf.net/$isim/$isim-$surum.tar.bz2) + +derle() { + tamir_qt4path + cd $isim-$surum + sed -i -e 's|kde-config|kde4-config|g' Makefile + + # Çoğu hata ayıklama mesajını kaldır + find src -type f -name '*.cpp' -print0 | xargs -0 sed -i -e 's|qDebug(.*);|{}|g' + + # Kdelibs'in yüklü olup olmadığını kontrol edin, çünkü otomatik olarak algılanmadı. + [ -x /usr/bin/kde4-config ] && kde=KDE_SUPPORT=1 + + make DESTDIR=$PKG PREFIX=/usr $kde install + rm -rf $PKG/usr/share/doc +} diff --git a/talimatname/genel/s/snappy-player/0001-Set-windowing-backend-to-X11.patch b/talimatname/genel/s/snappy-player/0001-Set-windowing-backend-to-X11.patch new file mode 100644 index 000000000..9b15f85a8 --- /dev/null +++ b/talimatname/genel/s/snappy-player/0001-Set-windowing-backend-to-X11.patch @@ -0,0 +1,25 @@ +From 7ccb21a78cb85cf0d12232ec2c82ca194956dd44 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= +Date: Wed, 15 Apr 2015 15:46:14 +0200 +Subject: [PATCH] Set windowing backend to X11 + +This required to work with Clutter 1.22. +--- + src/snappy.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/snappy.c b/src/snappy.c +index 6054c88..c2bb2d0 100644 +--- a/src/snappy.c ++++ b/src/snappy.c +@@ -179,6 +179,7 @@ main (int argc, char *argv[]) + + context = g_option_context_new (" - Play movie files"); + ++ clutter_set_windowing_backend (CLUTTER_WINDOWING_X11); + ci_err = gtk_clutter_init (&argc, &argv); + if (ci_err != CLUTTER_INIT_SUCCESS) + goto quit; +-- +2.3.5 + diff --git a/talimatname/genel/s/snappy-player/clutter-gst3.patch b/talimatname/genel/s/snappy-player/clutter-gst3.patch new file mode 100644 index 000000000..8f6a56360 --- /dev/null +++ b/talimatname/genel/s/snappy-player/clutter-gst3.patch @@ -0,0 +1,164 @@ +From 872fc2ed3d0339559e4023523fa0935f168f631a Mon Sep 17 00:00:00 2001 +From: Luis de Bethencourt +Date: Tue, 28 Jul 2015 12:06:16 +0100 +Subject: clutter: upgrade to clutter-gst-3.0 + +--- + configure.ac | 4 ++-- + src/gst_engine.c | 2 +- + src/gst_engine.h | 5 +++-- + src/snappy.c | 7 ++----- + src/user_interface.h | 4 ++++ + 5 files changed, 12 insertions(+), 10 deletions(-) + +diff --git a/configure.ac b/configure.ac +index b2986c6..75ffb8d 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -35,7 +35,7 @@ AC_CANONICAL_HOST + # keep one single GST_REQ, core/base should be same versions anyway + GST_REQ=1.0.0 + CLUTTER_REQS=1.12.0 +-CLUTTER_GST_REQS=2.0.0 ++CLUTTER_GST_REQS=2.99.2 + CLUTTER_GTK_REQS=1.0.2 + GTK_REQS=3.5.0 + GIO_REQ=2.32 +@@ -55,7 +55,7 @@ PKG_CHECK_MODULES([CLUTTER], + AC_SUBST(CLUTTER_CFLAGS) + AC_SUBST(CLUTTER_LIBS) + +-PKG_CHECK_MODULES([CLUTTER_GST], [clutter-gst-2.0 >= $CLUTTER_GST_REQS]) ++PKG_CHECK_MODULES([CLUTTER_GST], [clutter-gst-3.0 >= $CLUTTER_GST_REQS]) + AC_SUBST(CLUTTER_GST_CFLAGS) + AC_SUBST(CLUTTER_GST_LIBS) + +diff --git a/src/gst_engine.c b/src/gst_engine.c +index 8fc16d4..431d77c 100644 +--- a/src/gst_engine.c ++++ b/src/gst_engine.c +@@ -724,7 +724,7 @@ cycle_streams (GstEngine * engine, guint streamid) + + /* Init GstEngine variables */ + gboolean +-engine_init (GstEngine * engine, GstElement * sink) ++engine_init (GstEngine * engine, ClutterGstVideoSink * sink) + { + engine->playing = FALSE; + engine->direction_foward = TRUE; +diff --git a/src/gst_engine.h b/src/gst_engine.h +index 70dce63..1c044eb 100644 +--- a/src/gst_engine.h ++++ b/src/gst_engine.h +@@ -24,6 +24,7 @@ + #define __GST_ENGINE_H__ + + #include ++#include + + /* GStreamer Interfaces */ + #include +@@ -50,7 +51,7 @@ struct _GstEngine + gchar *uri; + + GstElement *player; +- GstElement *sink; ++ ClutterGstVideoSink *sink; + + GstBus *bus; + +@@ -64,7 +65,7 @@ gboolean bus_call (GstBus * bus, GstMessage * msg, gpointer data); + gboolean change_state (GstEngine * engine, gchar * state); + gboolean check_missing_plugins_error (GstEngine * engine, GstMessage * msg); + gboolean cycle_streams (GstEngine * engine, guint streamid); +-gboolean engine_init (GstEngine * engine, GstElement * sink); ++gboolean engine_init (GstEngine * engine, ClutterGstVideoSink * sink); + gboolean engine_change_offset (GstEngine * engine, gint64 av_offest); + gboolean engine_change_speed (GstEngine * engine, gdouble rate); + void engine_load_uri (GstEngine * engine, gchar * uri); +diff --git a/src/snappy.c b/src/snappy.c +index c2bb2d0..c06fd10 100644 +--- a/src/snappy.c ++++ b/src/snappy.c +@@ -29,9 +29,6 @@ + #include + #include + #include +-#include +-#include +-#include + + #include "user_interface.h" + +@@ -160,7 +157,7 @@ main (int argc, char *argv[]) + UserInterface *ui = NULL; + GstEngine *engine = NULL; + ClutterActor *video_texture; +- GstElement *sink; ++ ClutterGstVideoSink *sink; + + gboolean ok, blind = FALSE, fullscreen = FALSE, hide = FALSE, loop = FALSE; + gboolean secret = FALSE, tags = FALSE; +@@ -230,7 +227,7 @@ main (int argc, char *argv[]) + + /* Gstreamer engine */ + engine = g_new (GstEngine, 1); +- sink = gst_element_factory_make ("cluttersink", "video-sink"); ++ sink = clutter_gst_video_sink_new (); + if (sink == NULL) { + g_print ("ERROR: Failed to create clutter-gst sink element\n"); + return FALSE; +diff --git a/src/user_interface.h b/src/user_interface.h +index 6fe43c5..b011da0 100644 +--- a/src/user_interface.h ++++ b/src/user_interface.h +@@ -23,6 +23,10 @@ + #ifndef __USER_INTERFACE_H__ + #define __USER_INTERFACE_H__ + ++#include ++#include ++#include ++ + #include + + #include "gst_engine.h" +-- +cgit v0.11.2 + +From f33f7a5e9424544884a37b264bf88ee1866a56ac Mon Sep 17 00:00:00 2001 +From: Luis de Bethencourt +Date: Tue, 28 Jul 2015 14:02:44 +0100 +Subject: clutter: update method to create video texture + +--- + src/snappy.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/src/snappy.c b/src/snappy.c +index c06fd10..94b6e5b 100644 +--- a/src/snappy.c ++++ b/src/snappy.c +@@ -222,8 +222,6 @@ main (int argc, char *argv[]) + ui->tags = tags; + ui->data_dir = data_dir; + interface_init (ui); +- video_texture = g_object_new (CLUTTER_TYPE_TEXTURE, "disable-slicing", TRUE, +- NULL); + + /* Gstreamer engine */ + engine = g_new (GstEngine, 1); +@@ -232,7 +230,9 @@ main (int argc, char *argv[]) + g_print ("ERROR: Failed to create clutter-gst sink element\n"); + return FALSE; + } +- g_object_set (G_OBJECT (sink), "texture", video_texture, NULL); ++ video_texture = g_object_new (CLUTTER_TYPE_ACTOR, "content", ++ g_object_new (CLUTTER_GST_TYPE_CONTENT, "sink", sink, NULL), ++ "name", "texture", NULL); + + ok = engine_init (engine, sink); + if (!ok) +-- +cgit v0.11.2 + diff --git a/talimatname/genel/s/snappy-player/talimat b/talimatname/genel/s/snappy-player/talimat new file mode 100644 index 000000000..b1e1e58a9 --- /dev/null +++ b/talimatname/genel/s/snappy-player/talimat @@ -0,0 +1,27 @@ +# Tanım: Minimalist bir arayüzü olan güçlü medya oynatıcı +# URL: https://wiki.gnome.org/Apps/Snappy +# Paketçi: Cihan_Alkan +# Gerekler: gstreamer-plugins-base clutter-gst clutter-gtk +# Grup: medya + +isim=snappy-player +surum=1.0 +devir=1 + +kaynak=(https://download.gnome.org/sources/snappy/$surum/snappy-$surum.tar.xz + 0001-Set-windowing-backend-to-X11.patch + clutter-gst3.patch) + +derle() { + cd snappy-$surum + # Fix compatibility with Clutter 1.22 + patch -Np1 -i ../0001-Set-windowing-backend-to-X11.patch + + # Port to clutter-gst 3.0 + patch -Np1 -i ../clutter-gst3.patch + autoreconf -fi + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/s/snappy/talimat b/talimatname/genel/s/snappy/talimat new file mode 100644 index 000000000..bdee18735 --- /dev/null +++ b/talimatname/genel/s/snappy/talimat @@ -0,0 +1,18 @@ +# Tanım: Snappy bir sıkıştırma / açma kütüphanesi. +# URL: http://code.google.com/p/snappy/ +# Paketçi: milisarge +# Gerekler: + +isim=snappy +surum=1.1.1 +devir=1 + +kaynak=(http://snappy.googlecode.com/files/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum +CXXFLAGS+=\ -DNDEBUG +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/sndio/talimat b/talimatname/genel/s/sndio/talimat new file mode 100644 index 000000000..244b8cc6c --- /dev/null +++ b/talimatname/genel/s/sndio/talimat @@ -0,0 +1,16 @@ +# Tanım: Small audio and MIDI framework part of the OpenBSD project. +# URL: http://www.sndio.org/ +# Paketçi: milisarge +# Gerekler: alsa-lib + +isim=sndio +surum=1.2.0 +devir=1 +kaynak=(http://www.sndio.org/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/sni-qt/sni-qt.conf b/talimatname/genel/s/sni-qt/sni-qt.conf new file mode 100644 index 000000000..421dcad0e --- /dev/null +++ b/talimatname/genel/s/sni-qt/sni-qt.conf @@ -0,0 +1,6 @@ +[need-activate-action] +clementine=1 +mumble=1 +skype=1 +speedcrunch=1 +keepassx=1 diff --git a/talimatname/genel/s/sni-qt/talimat b/talimatname/genel/s/sni-qt/talimat new file mode 100644 index 000000000..90558d477 --- /dev/null +++ b/talimatname/genel/s/sni-qt/talimat @@ -0,0 +1,26 @@ +# Tanım: QT4 eklentisi, tüm QSystemTrayIcon'u StatusNotifierItems'e dönüştürür (appindicators) +# URL: https://launchpad.net/sni-qt +# Paketçi: milisarge +# Gerekler: cmake libdbusmenu-qt + +isim=sni-qt +surum=0.2.6 +devir=1 + +kaynak=(http://launchpad.net/sni-qt/trunk/$surum/+download/sni-qt-$surum.tar.bz2 + sni-qt.conf) + +derle() { +mkdir build + +sed -i '/tests/ d' sni-qt-$surum/CMakeLists.txt + +cd build +cmake ../sni-qt-$surum \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release +make +make DESTDIR=$PKG install + +install -Dm644 $SRC/sni-qt.conf $PKG/etc/sni-qt.conf +} diff --git a/talimatname/genel/s/snownews/talimat b/talimatname/genel/s/snownews/talimat new file mode 100644 index 000000000..14591b408 --- /dev/null +++ b/talimatname/genel/s/snownews/talimat @@ -0,0 +1,18 @@ +# Tanım: Linux ve Unix için metin modu RSS haber okuyucu. +# URL: http://kiza.kcore.de/software/snownews/ +# Paketçi: milisarge +# Gerekler: libxml2 gettext perl + +isim=snownews +surum=1.5.12 +devir=1 +kaynak=(http://kiza.kcore.de/software/$isim/download/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + + ./configure --prefix=/usr \ + --disable-nls + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/socat/libressl.patch b/talimatname/genel/s/socat/libressl.patch new file mode 100644 index 000000000..cf6603358 --- /dev/null +++ b/talimatname/genel/s/socat/libressl.patch @@ -0,0 +1,173 @@ +Patch from OpenBSD +--- a/sslcls.c Sat Jan 24 03:15:22 2015 ++++ b/sslcls.c Sat Jul 18 20:01:59 2015 +@@ -55,6 +55,7 @@ const SSL_METHOD *sycSSLv2_server_method(void) { + } + #endif + ++#ifdef HAVE_SSLv3_client_method + const SSL_METHOD *sycSSLv3_client_method(void) { + const SSL_METHOD *result; + Debug("SSLv3_client_method()"); +@@ -62,7 +63,9 @@ const SSL_METHOD *sycSSLv3_client_method(void) { + Debug1("SSLv3_client_method() -> %p", result); + return result; + } ++#endif + ++#ifdef HAVE_SSLv3_server_method + const SSL_METHOD *sycSSLv3_server_method(void) { + const SSL_METHOD *result; + Debug("SSLv3_server_method()"); +@@ -70,6 +73,7 @@ const SSL_METHOD *sycSSLv3_server_method(void) { + Debug1("SSLv3_server_method() -> %p", result); + return result; + } ++#endif + + const SSL_METHOD *sycSSLv23_client_method(void) { + const SSL_METHOD *result; +@@ -331,14 +335,6 @@ void sycSSL_free(SSL *ssl) { + return; + } + +-int sycRAND_egd(const char *path) { +- int result; +- Debug1("RAND_egd(\"%s\")", path); +- result = RAND_egd(path); +- Debug1("RAND_egd() -> %d", result); +- return result; +-} +- + DH *sycPEM_read_bio_DHparams(BIO *bp, DH **x, pem_password_cb *cb, void *u) { + DH *result; + Debug4("PEM_read_bio_DHparams(%p, %p, %p, %p)", +@@ -375,7 +371,7 @@ int sycFIPS_mode_set(int onoff) { + } + #endif /* WITH_FIPS */ + +-#if OPENSSL_VERSION_NUMBER >= 0x00908000L ++#if (OPENSSL_VERSION_NUMBER >= 0x00908000L) && !defined(OPENSSL_NO_COMP) + const COMP_METHOD *sycSSL_get_current_compression(SSL *ssl) { + const COMP_METHOD *result; + Debug1("SSL_get_current_compression(%p)", ssl); +--- a/sslcls.h Sat Jan 24 11:15:22 2015 ++++ b/sslcls.h Mon Apr 13 15:06:25 2015 +@@ -47,7 +47,6 @@ X509 *sycSSL_get_peer_certificate(SSL *ssl); + int sycSSL_shutdown(SSL *ssl); + void sycSSL_CTX_free(SSL_CTX *ctx); + void sycSSL_free(SSL *ssl); +-int sycRAND_egd(const char *path); + + DH *sycPEM_read_bio_DHparams(BIO *bp, DH **x, pem_password_cb *cb, void *u); + +@@ -55,7 +54,7 @@ BIO *sycBIO_new_file(const char *filename, const char + + int sycFIPS_mode_set(int onoff); + +-#if OPENSSL_VERSION_NUMBER >= 0x00908000L ++#if (OPENSSL_VERSION_NUMBER >= 0x00908000L) && !defined(OPENSSL_NO_COMP) + const COMP_METHOD *sycSSL_get_current_compression(SSL *ssl); + const COMP_METHOD *sycSSL_get_current_expansion(SSL *ssl); + const char *sycSSL_COMP_get_name(const COMP_METHOD *comp); +@@ -98,7 +97,6 @@ const char *sycSSL_COMP_get_name(const COMP_METHOD *co + #define sycSSL_shutdown(s) SSL_shutdown(s) + #define sycSSL_CTX_free(c) SSL_CTX_free(c) + #define sycSSL_free(s) SSL_free(s) +-#define sycRAND_egd(p) RAND_egd(p) + + #define sycPEM_read_bio_DHparams(b,x,p,u) PEM_read_bio_DHparams(b,x,p,u) + +--- a/xio-openssl.c Sat Jan 24 15:33:42 2015 ++++ b/xio-openssl.c Mon Apr 13 14:59:12 2015 +@@ -108,7 +108,6 @@ const struct optdesc opt_openssl_key = { "open + const struct optdesc opt_openssl_dhparam = { "openssl-dhparam", "dh", OPT_OPENSSL_DHPARAM, GROUP_OPENSSL, PH_SPEC, TYPE_FILENAME, OFUNC_SPEC }; + const struct optdesc opt_openssl_cafile = { "openssl-cafile", "cafile", OPT_OPENSSL_CAFILE, GROUP_OPENSSL, PH_SPEC, TYPE_FILENAME, OFUNC_SPEC }; + const struct optdesc opt_openssl_capath = { "openssl-capath", "capath", OPT_OPENSSL_CAPATH, GROUP_OPENSSL, PH_SPEC, TYPE_FILENAME, OFUNC_SPEC }; +-const struct optdesc opt_openssl_egd = { "openssl-egd", "egd", OPT_OPENSSL_EGD, GROUP_OPENSSL, PH_SPEC, TYPE_FILENAME, OFUNC_SPEC }; + const struct optdesc opt_openssl_pseudo = { "openssl-pseudo", "pseudo", OPT_OPENSSL_PSEUDO, GROUP_OPENSSL, PH_SPEC, TYPE_BOOL, OFUNC_SPEC }; + #if OPENSSL_VERSION_NUMBER >= 0x00908000L + const struct optdesc opt_openssl_compress = { "openssl-compress", "compress", OPT_OPENSSL_COMPRESS, GROUP_OPENSSL, PH_SPEC, TYPE_STRING, OFUNC_SPEC }; +@@ -147,7 +146,7 @@ int xio_reset_fips_mode(void) { + static void openssl_conn_loginfo(SSL *ssl) { + Notice1("SSL connection using %s", SSL_get_cipher(ssl)); + +-#if OPENSSL_VERSION_NUMBER >= 0x00908000L ++#if (OPENSSL_VERSION_NUMBER >= 0x00908000L) && !defined(OPENSSL_NO_COMP) + { + const COMP_METHOD *comp, *expansion; + +@@ -722,7 +721,6 @@ int + char *opt_dhparam = NULL; /* file name of DH params */ + char *opt_cafile = NULL; /* certificate authority file */ + char *opt_capath = NULL; /* certificate authority directory */ +- char *opt_egd = NULL; /* entropy gathering daemon socket path */ + #if OPENSSL_VERSION_NUMBER >= 0x00908000L + char *opt_compress = NULL; /* compression method */ + #endif +@@ -741,7 +739,6 @@ int + retropt_string(opts, OPT_OPENSSL_CAPATH, &opt_capath); + retropt_string(opts, OPT_OPENSSL_KEY, &opt_key); + retropt_string(opts, OPT_OPENSSL_DHPARAM, &opt_dhparam); +- retropt_string(opts, OPT_OPENSSL_EGD, &opt_egd); + retropt_bool(opts,OPT_OPENSSL_PSEUDO, &opt_pseudo); + #if OPENSSL_VERSION_NUMBER >= 0x00908000L + retropt_string(opts, OPT_OPENSSL_COMPRESS, &opt_compress); +@@ -877,10 +874,6 @@ int + } + } + +- if (opt_egd) { +- sycRAND_egd(opt_egd); +- } +- + if (opt_pseudo) { + long int randdata; + /* initialize libc random from actual microseconds */ +@@ -1098,7 +1091,7 @@ static int openssl_SSL_ERROR_SSL(int level, const char + if (e == ((ERR_LIB_RAND<<24)| + (RAND_F_SSLEAY_RAND_BYTES<<12)| + (RAND_R_PRNG_NOT_SEEDED)) /*0x24064064*/) { +- Error("too few entropy; use options \"egd\" or \"pseudo\""); ++ Error("too few entropy; use option \"pseudo\""); + stat = STAT_NORETRY; + } else { + Msg2(level, "%s(): %s", funcname, ERR_error_string(e, buf)); +--- a/xio-openssl.h Sun Jun 23 07:16:48 2013 ++++ b/xio-openssl.h Sat Apr 19 15:58:21 2014 +@@ -21,7 +21,6 @@ extern const struct optdesc opt_openssl_key; + extern const struct optdesc opt_openssl_dhparam; + extern const struct optdesc opt_openssl_cafile; + extern const struct optdesc opt_openssl_capath; +-extern const struct optdesc opt_openssl_egd; + extern const struct optdesc opt_openssl_pseudo; + #if OPENSSL_VERSION_NUMBER >= 0x00908000L + extern const struct optdesc opt_openssl_compress; +--- a/xioopts.c Sat Jan 24 11:15:22 2015 ++++ b/xioopts.c Mon Apr 13 15:06:25 2015 +@@ -412,7 +412,6 @@ const struct optname optionnames[] = { + #ifdef ECHOPRT + IF_TERMIOS("echoprt", &opt_echoprt) + #endif +- IF_OPENSSL("egd", &opt_openssl_egd) + IF_ANY ("end-close", &opt_end_close) + IF_TERMIOS("eof", &opt_veof) + IF_TERMIOS("eol", &opt_veol) +@@ -1102,7 +1101,6 @@ const struct optname optionnames[] = { + IF_OPENSSL("openssl-compress", &opt_openssl_compress) + #endif + IF_OPENSSL("openssl-dhparam", &opt_openssl_dhparam) +- IF_OPENSSL("openssl-egd", &opt_openssl_egd) + #if WITH_FIPS + IF_OPENSSL("openssl-fips", &opt_openssl_fips) + #endif +--- a/xioopts.h Sat Jan 24 11:15:22 2015 ++++ b/xioopts.h Mon Apr 13 15:06:25 2015 +@@ -478,7 +478,6 @@ enum e_optcode { + OPT_OPENSSL_COMPRESS, + #endif + OPT_OPENSSL_DHPARAM, +- OPT_OPENSSL_EGD, + OPT_OPENSSL_FIPS, + OPT_OPENSSL_KEY, + OPT_OPENSSL_METHOD, diff --git a/talimatname/genel/s/socat/talimat b/talimatname/genel/s/socat/talimat new file mode 100644 index 000000000..b438e7ca8 --- /dev/null +++ b/talimatname/genel/s/socat/talimat @@ -0,0 +1,18 @@ +# Tanım: SOcket CAT - netcat benzeri ek özellikli araç +# URL: http://www.dest-unreach.org/socat +# Paketçi: milisarge +# Gerekler: + +isim=socat +surum=1.7.3.1 +devir=1 +kaynak=(http://www.dest-unreach.org/$isim/download/$isim-$surum.tar.bz2 + libressl.patch) + +derle() { + cd $isim-$surum + patch -p1 < $SRC/libressl.patch + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/sound-theme-freedesktop/talimat b/talimatname/genel/s/sound-theme-freedesktop/talimat new file mode 100644 index 000000000..ad3850925 --- /dev/null +++ b/talimatname/genel/s/sound-theme-freedesktop/talimat @@ -0,0 +1,17 @@ +# Tanım: Bu paket masaüstü için ses temaları içeriyor. +# URL: http://freedesktop.org/wiki/Specifications/sound-theme-spec +# Paketçi: yasarciv67@gmail.com +# Gerekler: intltool + +isim=sound-theme-freedesktop +surum=0.8 +devir=1 + +kaynak=(http://people.freedesktop.org/~mccann/dist/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/soundtouch/talimat b/talimatname/genel/s/soundtouch/talimat new file mode 100644 index 000000000..a1e1e02c8 --- /dev/null +++ b/talimatname/genel/s/soundtouch/talimat @@ -0,0 +1,17 @@ +# Tanım: Ses tempo, basamak ve oynatma oranını değiştirmeye izin veren ses işleme kitaplığı. +# Url: http://www.surina.net/soundtouch/ +# Paketçi: milisarge +# Gerekler: + +isim=soundtouch +surum=1.9.2 +devir=1 +kaynak=(http://www.surina.net/soundtouch/$isim-$surum.tar.gz) +derle() { +cd $isim +./bootstrap +./configure --prefix=/usr \ +--docdir=/usr/share/doc/$isim-$surum +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/sox/sox-dynamic.patch b/talimatname/genel/s/sox/sox-dynamic.patch new file mode 100644 index 000000000..94ac6a282 --- /dev/null +++ b/talimatname/genel/s/sox/sox-dynamic.patch @@ -0,0 +1,12 @@ +diff -Naur sox-14.4.2-orig/src/Makefile.am sox-14.4.2/src/Makefile.am +--- sox-14.4.2-orig/src/Makefile.am 2015-04-08 17:11:09.555343005 -0400 ++++ sox-14.4.2/src/Makefile.am 2015-04-08 17:11:25.115317153 -0400 +@@ -95,7 +95,7 @@ + + libsox_la_CFLAGS = @WARN_CFLAGS@ + libsox_la_LDFLAGS = @APP_LDFLAGS@ -version-info @SHLIB_VERSION@ \ +- -export-symbols-regex '^(sox_.*|lsx_(check_read_params|(close|open)_dllibrary|(debug(_more|_most)?|fail|report|warn)_impl|eof|fail_errno|filelength|find_(enum_(text|value)|file_extension)|getopt(_init)?|lpc10_(create_(de|en)coder_state|(de|en)code)|raw(read|write)|read(_b_buf|buf|chars)|realloc|rewind|seeki|sigfigs3p?|strcasecmp|tell|unreadb|write(b|_b_buf|buf|s)))$$' ++ -export-symbols-regex '^(sox_.*|lsx_(error|flush|check_read_params|(close|open)_dllibrary|(debug(_more|_most)?|fail|report|warn)_impl|eof|fail_errno|filelength|find_(enum_(text|value)|file_extension)|getopt(_init)?|lpc10_(create_(de|en)coder_state|(de|en)code)|raw(read|write)|read(_b_buf|buf|chars)|realloc|rewind|seeki|sigfigs3p?|strcasecmp|tell|unreadb|write(b|_b_buf|buf|s)))$$' + + if HAVE_WIN32_LTDL + libsox_la_SOURCES += win32-ltdl.c win32-ltdl.h diff --git a/talimatname/genel/s/sox/talimat b/talimatname/genel/s/sox/talimat new file mode 100644 index 000000000..f244f9519 --- /dev/null +++ b/talimatname/genel/s/sox/talimat @@ -0,0 +1,27 @@ +# Tanım: Çok panelli sekmeli dosya yöneticisi +# URL: http://sox.sourceforge.net/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: file libsndfile libpng lame opencore-amr gsm libao libmad libid3tag wavpack pulseaudio opusfile time + +isim=sox +surum=14.4.2 +devir=1 + +kaynak=(http://downloads.sourceforge.net/$isim/$isim-$surum.tar.bz2 + sox-dynamic.patch) + +derle() { + cd $isim-$surum + sed -i 's|man1/sox.1 soxeffect.7|man1/sox.1.gz soxeffect.7.gz|' Makefile.in + + patch -p1 -i $SRC/sox-dynamic.patch + + aclocal + automake + + ./configure --prefix=/usr --sysconfdir=/etc \ + --with-dyn-default --with-distro="NuTyX" + make + make bindir=. installcheck + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/soxr/talimat b/talimatname/genel/s/soxr/talimat new file mode 100644 index 000000000..210a70036 --- /dev/null +++ b/talimatname/genel/s/soxr/talimat @@ -0,0 +1,31 @@ +# Tanım: The SoX Resampler library that aims to give fast and high quality results for any constant resampling ratio +# URL: http://sourceforge.net/p/soxr/wiki/Home/ +# Paketçi: milisarge +# Gerekler: cmake + +isim=soxr +surum=0.1.2 +devir=1 + +kaynak=(http://downloads.sourceforge.net/project/soxr/soxr-$surum-Source.tar.xz) + +derle() { + cd soxr-$surum-Source + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_EXAMPLES=OFF \ + -DBUILD_SHARED_LIBS=ON \ + -DCMAKE_BUILD_TYPE=Release \ + -DVISIBILITY_HIDDENL=ON \ + -DWITH_AVFFT=ON \ + -DWITH_DOUBLE_PRECISION=ON \ + -DWITH_LSR_BINDINGS=ON \ + -DWITH_OPENMP=ON \ + -DWITH_PFFFT=ON \ + -DWITH_SIMD=ON \ + . + make + make DESTDIR="$PKG" install + install -Dm644 LICENCE "$PKG"/usr/share/licenses/$isim/LICENSE + rm -r "$PKG"/usr/share/doc/ +} diff --git a/talimatname/genel/s/spacefm/spacefm.kur-kos b/talimatname/genel/s/spacefm/spacefm.kur-kos new file mode 100644 index 000000000..9bc54ecba --- /dev/null +++ b/talimatname/genel/s/spacefm/spacefm.kur-kos @@ -0,0 +1,2 @@ +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor +gtk-update-icon-cache -q -t -f /usr/share/icons/Faenza diff --git a/talimatname/genel/s/spacefm/talimat b/talimatname/genel/s/spacefm/talimat new file mode 100644 index 000000000..558ab9901 --- /dev/null +++ b/talimatname/genel/s/spacefm/talimat @@ -0,0 +1,18 @@ +# Tanım: Çok panelli sekmeli dosya yöneticisi +# URL: http://ignorantguru.github.com/spacefm/ +# Paketçi: Cihan_Alkan +# Gerekler: gtk2 eudev shared-mime-info desktop-file-utils xorg-libxdamage ffmpegthumbnailer + +isim=spacefm +surum=1.0.6 +devir=1 +kaynak=(https://github.com/IgnorantGuru/$isim/archive/$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --disable-pixmaps \ + --with-gtk3 + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/spacenavd/talimat b/talimatname/genel/s/spacenavd/talimat new file mode 100644 index 000000000..1e701aadc --- /dev/null +++ b/talimatname/genel/s/spacenavd/talimat @@ -0,0 +1,18 @@ +# Tanım: 3D giriş cihazları için tescilli 3Dconnexion cihaz sürücüsü ve SDK'nın alternatifi +# URL: http://spacenav.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: xorg + +isim=spacenavd +surum=0.6 +devir=1 + +kaynak=(https://freefr.dl.sourceforge.net/project/spacenav/spacenav%20daemon/spacenavd%20$surum/$isim-$surum.tar.gz) + +derle() { + cd ${isim}-${surum} + ./configure --prefix=/usr \ + --disable-debug + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/spamassassin/spamassassin-net-dns-01.patch b/talimatname/genel/s/spamassassin/spamassassin-net-dns-01.patch new file mode 100644 index 000000000..42f323ff6 --- /dev/null +++ b/talimatname/genel/s/spamassassin/spamassassin-net-dns-01.patch @@ -0,0 +1,13 @@ +--- spamassassin/branches/3.4/lib/Mail/SpamAssassin/DnsResolver.pm 2015/07/20 18:23:18 1691991 ++++ spamassassin/branches/3.4/lib/Mail/SpamAssassin/DnsResolver.pm 2015/07/20 18:24:48 1691992 +@@ -592,6 +592,9 @@ + }; + + if ($packet) { ++ # RD flag needs to be set explicitly since Net::DNS 1.01, Bug 7223 ++ $packet->header->rd(1); ++ + # my $udp_payload_size = $self->{res}->udppacketsize; + my $udp_payload_size = $self->{conf}->{dns_options}->{edns}; + if ($udp_payload_size && $udp_payload_size > 512) { + diff --git a/talimatname/genel/s/spamassassin/spamassassin.service b/talimatname/genel/s/spamassassin/spamassassin.service new file mode 100644 index 000000000..e9e27ffe7 --- /dev/null +++ b/talimatname/genel/s/spamassassin/spamassassin.service @@ -0,0 +1,15 @@ +[Unit] +Tanım:Spamassassin daemon +After=syslog.target network.target + +[Service] +Type=forking +PIDFile=/var/run/spamd.pid +ExecStart=/usr/bin/vendor_perl/spamd -d --pidfile /var/run/spamd.pid -c -c -x --virtual-config-dir=/var/lib/spamassassin -u spamd -g spamd +StandardOutput=syslog +StandardError=syslog +Restart=always + +[Install] +WantedBy=multi-user.target + diff --git a/talimatname/genel/s/spamassassin/talimat b/talimatname/genel/s/spamassassin/talimat new file mode 100644 index 000000000..d556690de --- /dev/null +++ b/talimatname/genel/s/spamassassin/talimat @@ -0,0 +1,35 @@ +# Tanım: Spam belirlemek için bir posta filtresi +# URL: http://search.cpan.org/ +# Paketçi: milisarge +# Gerekler: openssl zlib re2c perl-net-dns perl-io-socket-ssl perl-libwww perl-mail-spf perl-http-message perl-net-http perl-io-socket-inet6 perl-mail-dkim perl-crypt-ssleay razor perl-dbi + +isim=spamassassin +surum=3.4.1 +devir=1 + +kaynak=("http://www.us.apache.org/dist/spamassassin/source/Mail-SpamAssassin-$surum.tar.gz"{,.asc} + spamassassin.service + spamassassin-net-dns-01.patch) + +derle() { +cd Mail-SpamAssassin-$surum + +sed -i t/sa_compile.t \ +-e 's#^my $temp_binpath = $Config{sitebinexp};#my $temp_binpath = "/bin/site_perl/";#' + +patch -p3 -i $SRC/spamassassin-net-dns-01.patch + +PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor \ + CONTACT_ADDRESS=root@localhost ENABLE_SSL=yes PERL_TAINT=no + +make +make DESTDIR=$PKG install + +install -D -m644 $SRC/spamassassin.service $PKG/usr/lib/systemd/system/spamassassin.service +install -d -o 182 -g 182 -m 755 $PKG/var/lib/spamassassin + +find $PKG \ + -name '*.bs' -or \ + -name .packlist -or \ + -name perllocal.pod | xargs rm +} diff --git a/talimatname/genel/s/sparsehash/talimat b/talimatname/genel/s/sparsehash/talimat new file mode 100644 index 000000000..8fe03053b --- /dev/null +++ b/talimatname/genel/s/sparsehash/talimat @@ -0,0 +1,18 @@ +# Tanım: Alan ve hızın optimize edilmesi de dahil olmak üzere çeşitli karma harita uygulamaları içerir. +# URL: http://code.google.com/p/sparsehash +# Paketçi: milisarge +# Gerekler: +# Grup: kütüphane + +isim=sparsehash +surum=2.0.3 +devir=1 + +kaynak=(https://github.com/sparsehash/sparsehash/archive/sparsehash-$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd $isim-$isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/spectacle/talimat b/talimatname/genel/s/spectacle/talimat new file mode 100644 index 000000000..ea9a8f6a8 --- /dev/null +++ b/talimatname/genel/s/spectacle/talimat @@ -0,0 +1,23 @@ +# Tanım: Spectacle, masaüstü ekran görüntülerini yakalamak için basit bir uygulamadır +# URL : https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules kf5-kcoreaddons kf5-kwidgetsaddons kf5-kdbusaddons kf5-knotifications kf5-kconfig kf5-ki18n kf5-kio kf5-kxmlgui kf5-kwindowsystem xcb-proto xcb-util-cursor xcb-util-renderutil plasma-libkscreen libkipi kf5-kdeclarative +# Grup: kde + +isim=spectacle +surum=17.12.1 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz ) + +derle() { +cd $SRC/$isim-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/speedcrunch/talimat b/talimatname/genel/s/speedcrunch/talimat new file mode 100644 index 000000000..60bdb040b --- /dev/null +++ b/talimatname/genel/s/speedcrunch/talimat @@ -0,0 +1,18 @@ +# Tanım: calculator based on QT +# URL: http://speedcrunch.org/ +# Paketçi: milisarge +# Gerekler: qt5 + +isim=speedcrunch +surum=0.12.0 +devir=1 + +kaynak=(https://bitbucket.org/heldercorreia/speedcrunch/get/release-$surum.tar.bz2) +derle() +{ + cd */src + cmake . -DCMAKE_INSTALL_PREFIX=/usr + make + make DESTDIR="$PKG" install + +} diff --git a/talimatname/genel/s/speex/talimat b/talimatname/genel/s/speex/talimat new file mode 100644 index 000000000..311ffde0d --- /dev/null +++ b/talimatname/genel/s/speex/talimat @@ -0,0 +1,20 @@ +# Tanım: Ücretsiz konuşma için ücretsiz bir codec bileşeni +# URL: http://www.speex.org/ +# Paketçi: milisarge +# Gerekler: libogg speexdsp + +isim=speex +surum=1.2.0 +devir=1 + +kaynak=(http://downloads.us.xiph.org/releases/$isim/$isim-$surum.tar.gz) + + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-static \ + --enable-binaries # Must be given or configure won't use pkg-config correctly + make + make -k check + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/speexdsp/talimat b/talimatname/genel/s/speexdsp/talimat new file mode 100644 index 000000000..b43d9373e --- /dev/null +++ b/talimatname/genel/s/speexdsp/talimat @@ -0,0 +1,18 @@ +# Tanım: DSP library derived from Speex +# URL: http://downloads.us.xiph.org +# Paketçi: milisarge +# Gerekler: + +isim=speexdsp +surum=1.2rc3 +devir=1 +kaynak=(http://downloads.us.xiph.org/releases/speex/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-static + make + make DESTDIR="$PKG" install + install -Dm644 COPYING "$PKG/usr/share/licenses/$pkgname/LICENSE" +} + diff --git a/talimatname/genel/s/splix/splix-deviceID.patch b/talimatname/genel/s/splix/splix-deviceID.patch new file mode 100644 index 000000000..74822473d --- /dev/null +++ b/talimatname/genel/s/splix/splix-deviceID.patch @@ -0,0 +1,105 @@ +diff -up splix/ppd/samsung.drv.in.deviceID splix/ppd/samsung.drv.in +--- splix/ppd/samsung.drv.in.deviceID 2013-08-26 21:45:31.000000000 +0200 ++++ splix/ppd/samsung.drv.in 2013-09-02 13:56:57.002669362 +0200 +@@ -39,6 +39,7 @@ Manufacturer "Samsung" + Resolution k 1 0 0 0 "300dpi/300 DPI" + + ModelName "SCX-4200" ++ Attribute "1284DeviceID" "" "MFG:Samsung;MDL:SCX-4200 Series;CMD:GDI;" + PCFileName "scx4200.ppd" + } { + Resolution k 1 0 0 0 "300dpi/300 DPI" +@@ -83,6 +84,7 @@ Manufacturer "Samsung" + PCFileName "ml1520.ppd" + } { + ModelName "ML-1610" ++ Attribute "1284DeviceID" "" "MFG:Samsung;MDL:ML-1610;CMD:GDI;" + PCFileName "ml1610.ppd" + } { + ModelName "ML-1710" +@@ -121,6 +123,7 @@ Manufacturer "Samsung" + Throughput 22 + { + ModelName "ML-2250" ++ Attribute "1284DeviceID" "" "MFG:Samsung;MDL:ML-2250;" + PCFileName "ml2250.ppd" + } { + ModelName "ML-2251" +@@ -166,6 +169,7 @@ Manufacturer "Samsung" + PCFileName "ml1640.ppd" + } { + ModelName "ML-2010" ++ Attribute "1284DeviceID" "" "MFG:Samsung;MDL:ML-2010;CMD:GDI;" + PCFileName "ml2010.ppd" + } { + ModelName "ML-2015" +@@ -177,6 +181,7 @@ Manufacturer "Samsung" + #import "srtmode.defs" + + ModelName "ML-2510" ++ Attribute "1284DeviceID" "" "MFG:Samsung;MDL:ML-2510 Series;CMD:GDI;" + PCFileName "ml2510.ppd" + } + } +@@ -193,15 +198,18 @@ Manufacturer "Samsung" + + { + ModelName "ML-1660" ++ Attribute "1284DeviceID" "" "MFG:Samsung;MDL:ML-1660 Series;CMD:GDI,FWV,EXT;" + PCFileName "ml1660.ppd" + } { + ModelName "ML-1910" + PCFileName "ml1910.ppd" + } { + ModelName "ML-2525" ++ Attribute "1284DeviceID" "" "MFG:Samsung;MDL:ML-2525 Series;CMD:GDI,FWV,EXT;" + PCFileName "ml2525.ppd" + } { + ModelName "ML-2525W" ++ Attribute "1284DeviceID" "" "MFG:Samsung;MDL:ML-2525W Series;CMD:GDI,FWV,EXT;" + PCFileName "ml2525w.ppd" + } + } { +@@ -465,6 +473,7 @@ Manufacturer "Samsung" + Attribute General CMSFile "CLP-310" + + ModelName "CLP-310" ++ Attribute "1284DeviceID" "" "MFG:Samsung;MDL:CLP-310 Series;CMD:SPLC,FWV;" + PCFileName "clp310.ppd" + }{ + Attribute General CMSFile "CLP-315" +diff -up splix/ppd/xerox.drv.in.deviceID splix/ppd/xerox.drv.in +--- splix/ppd/xerox.drv.in.deviceID 2013-08-26 17:22:00.000000000 +0200 ++++ splix/ppd/xerox.drv.in 2013-09-02 13:55:22.634957854 +0200 +@@ -66,6 +66,7 @@ Manufacturer "Xerox" + } { + #import "manualduplex.defs" + ModelName "Phaser 3120" ++ Attribute "1284DeviceID" "" "MFG:Xerox;MDL:Phaser 3120;CMD:GDI;" + PCFileName "ph3120.ppd" + } { + #import "manualduplex.defs" +@@ -74,6 +75,7 @@ Manufacturer "Xerox" + } { + #import "manualduplex.defs" + ModelName "Phaser 3130" ++ Attribute "1284DeviceID" "" "MFG:Xerox;MDL:Phaser 3130;CMD:PCL5E,PCL6;" + PCFileName "ph3130.ppd" + } { + // Multi-tray +@@ -118,6 +120,7 @@ Manufacturer "Xerox" + + { + ModelName "Phaser 3117" ++ Attribute "1284DeviceID" "" "MFG:Xerox;MDL:Phaser 3117;CMD:GDI;" + PCFileName "ph3117.ppd" + } { + Resolution k 1 0 0 0 "1200x600dpi/1200x600 DPI" +@@ -131,6 +134,7 @@ Manufacturer "Xerox" + + { + ModelName "Phaser 3124" ++ Attribute "1284DeviceID" "" "MFG:Xerox;MDL:Phaser 3124;CMD:GDI;" + PCFileName "ph3124.ppd" + } + } diff --git a/talimatname/genel/s/splix/talimat b/talimatname/genel/s/splix/talimat new file mode 100644 index 000000000..5ec6f42d8 --- /dev/null +++ b/talimatname/genel/s/splix/talimat @@ -0,0 +1,29 @@ +# Tanım: SPL (Samsung Printer Language) yazıcıları için cups sürücüleri +# URL: http://splix.ap2c.org/ +# Paketçi: milisarge +# Gerekler: cups jbigkit krb5 subversion ghostscript + +isim=splix +surum=2.0.0 +devir=1 +kaynak=(splix-deviceID.patch) + +derle() { + + cd $DERLEME_KAYNAKDIZIN + if [ ! -d $DERLEME_KAYNAKDIZIN/$isim ];then + svn co http://svn.code.sf.net/p/splix/code/splix/ + else + cd $DERLEME_KAYNAKDIZIN/$isim + svn up + cd - + fi + cp -r $DERLEME_KAYNAKDIZIN/$isim ${SRC}/$isim + cd "${SRC}/${isim}" + patch -Np1 -i ../splix-deviceID.patch + CXXFLAGS+=" -fno-strict-aliasing" + make drv + make all DRV_ONLY=1 + make DESTDIR="$PKG" install DRV_ONLY=1 + +} diff --git a/talimatname/genel/s/sqlcipher/talimat b/talimatname/genel/s/sqlcipher/talimat new file mode 100644 index 000000000..dc4ea7981 --- /dev/null +++ b/talimatname/genel/s/sqlcipher/talimat @@ -0,0 +1,17 @@ +# Tanım: sqlite veritabanları için 256bit şifreleme eklentisi +# URL: https://www.zetetic.net/sqlcipher/ +# Paketçi: milisarge +# Gerekler: sqlite tcl + +isim=sqlcipher +surum=3.4.1 +devir=1 +kaynak=(https://github.com/sqlcipher/$isim/archive/v$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --enable-tempstore=yes \ + CFLAGS="$CFLAGS -DSQLITE_HAS_CODEC" LDFLAGS="-lcrypto" + make + make DESTDIR="${PKG}" install +} diff --git a/talimatname/genel/s/sqlite/talimat b/talimatname/genel/s/sqlite/talimat new file mode 100644 index 000000000..8fe121d1e --- /dev/null +++ b/talimatname/genel/s/sqlite/talimat @@ -0,0 +1,36 @@ +# Tanım: SQL veritabanı motoru +# URL: http://www.sqlite.org/ +# Paketçi: milisarge +# Gerekler: + +isim=sqlite +surum=3.23.1 +_srcver=3230100 +devir=1 +_surum=$(printf "%i%.2i%.2i%.2i" ${surum//./ }) + +kaynak=(http://www.sqlite.org/2018/sqlite-autoconf-${_surum}.tar.gz) + +derle() { + cd sqlite-autoconf-$_srcver + export CPPFLAGS="$CPPFLAGS -DSQLITE_ENABLE_COLUMN_METADATA=1 \ + -DSQLITE_ENABLE_UNLOCK_NOTIFY \ + -DSQLITE_ENABLE_DBSTAT_VTAB=1 \ + -DSQLITE_ENABLE_FTS3_TOKENIZER=1 \ + -DSQLITE_SECURE_DELETE \ + -DSQLITE_MAX_VARIABLE_NUMBER=250000 \ + -DSQLITE_MAX_EXPR_DEPTH=10000" + + ./configure --prefix=/usr \ + --disable-static \ + --disable-amalgamation \ + --enable-fts3 \ + --enable-fts4 \ + --enable-fts5 \ + --enable-rtree \ + --enable-json1 + make + # build additional tools + make + make DESTDIR=${PKG} install +} diff --git a/talimatname/genel/s/sqlitebrowser/talimat b/talimatname/genel/s/sqlitebrowser/talimat new file mode 100644 index 000000000..2b17a0680 --- /dev/null +++ b/talimatname/genel/s/sqlitebrowser/talimat @@ -0,0 +1,24 @@ +# Tanım: SQL veritabanı Qt5 tabanlı yönetim arayüzü +# URL: http://www.sqlite.org/ +# Paketçi: milisarge +# Gerekler: sqlite cmake libxkbcommon qt5 + +isim=sqlitebrowser +surum=3.9.1 +devir=1 + +kaynak=(https://github.com/sqlitebrowser/sqlitebrowser/archive/v$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd "$SRC"/$isim-$surum + sed -i 's|Icon=.*|Icon=sqlitebrowser|' distri/sqlitebrowser.desktop + sed -i \ + -e 's|DB Browser for SQLite|sqlitebrowser|g' \ + CMakeLists.txt + cmake -DUSE_QT5=TRUE -DCMAKE_INSTALL_PREFIX=/usr . + make + make install DESTDIR="$PKG" + install -Dm0644 distri/sqlitebrowser.desktop "$PKG"/usr/share/applications/sqlitebrowser.desktop + install -dm0755 "$PKG"/usr/share/icons/ + install -m0644 images/sqlitebrowser.svg "$PKG"/usr/share/icons/ +} diff --git a/talimatname/genel/s/sqlmap/talimat b/talimatname/genel/s/sqlmap/talimat new file mode 100644 index 000000000..1657dfee6 --- /dev/null +++ b/talimatname/genel/s/sqlmap/talimat @@ -0,0 +1,41 @@ +# Tanım: SQL enjeksiyon kusurlarını sömürme sürecini otomatikleştirin +# URL: http://sqlmap.org +# Paketçi: milisarge +# Gerekler: python + +isim=sqlmap +surum=git +devir=1 +kaynak=() + +derle() { + git clone https://github.com/sqlmapproject/sqlmap.git + cd $isim + python2 -m compileall . + python2 -O -m compileall . + + install -d "$PKG/etc" + install -d "$PKG/usr/bin" + install -d "$PKG/opt/$isim" + install -d "$PKG/usr/share/doc" + + mv doc "$PKG/usr/share/doc/$isim" + mv sqlmap.conf "$PKG/etc/sqlmap.conf" + ln -sf /etc/sqlmap.conf "$PKG/opt/$isim/sqlmap.conf" + cp -R --no-preserve=ownership * "$PKG/opt/$isim" + + cat > "$PKG/usr/bin/sqlmap" << EOF +#!/bin/sh +cd /opt/$isim +python2 sqlmap.py "\$@" +EOF + cat > "$PKG/usr/bin/sqlmapapi" << EOF +#!/bin/sh +cd /opt/$isim +python2 sqlmapapi.py "\$@" +EOF + + chmod 755 "$PKG/usr/bin/sqlmap" + chmod 755 "$PKG/usr/bin/sqlmapapi" + +} diff --git a/talimatname/genel/s/squeak-vm/talimat b/talimatname/genel/s/squeak-vm/talimat new file mode 100644 index 000000000..611ce43b7 --- /dev/null +++ b/talimatname/genel/s/squeak-vm/talimat @@ -0,0 +1,23 @@ +# Tanım: Smalltalk programlama dili ve ortamının tam özellikli uygulanması +# URL: http://squeakvm.org +# Paketçi: Cihan Alkan +# Gerekler: cmake xorg-libxrender pulseaudio +# Grup: geliştirme + +isim=squeak-vm +surum=4.10.2.2614 +devir=1 +kaynak=(http://squeakvm.org/unix/release/Squeak-$surum-src.tar.gz) + +derle() { + cd "$SRC"/Squeak-$surum-src + + ./unix/cmake/configure --prefix=/usr --without-quartz --with-x \ + --enable-mpg-mmx + + make + make DESTDIR="$PKG"/ install + + install -Dm644 "$SRC"/Squeak-$surum-src/unix/doc/LICENSE \ + "$PKG"/usr/share/licenses/$isim/LICENSE +} diff --git a/talimatname/genel/s/squid/squid.kur-kos b/talimatname/genel/s/squid/squid.kur-kos new file mode 100644 index 000000000..88e9f8b37 --- /dev/null +++ b/talimatname/genel/s/squid/squid.kur-kos @@ -0,0 +1,5 @@ +#!/bin/sh +/sbin/groupadd -g 90 squid +/sbin/useradd -g squid -u 90 -d /var/squid -s /bin/false squid +/bin/passwd -l squid +install -d -m 0700 -o squid -g squid /var/{log/squid,squid} diff --git a/talimatname/genel/s/squid/squid_servisi b/talimatname/genel/s/squid/squid_servisi new file mode 100644 index 000000000..116a3382c --- /dev/null +++ b/talimatname/genel/s/squid/squid_servisi @@ -0,0 +1,42 @@ +#!/bin/sh +# +# /etc/rc.d/squid: start/stop squid daemon +# + +SSD=/sbin/start-stop-daemon +PROG=/usr/sbin/squid +PID=/var/run/squid.pid +OPTS="-Y" + +case $1 in +start) + $SSD --start --pidfile $PID --exec $PROG -- $OPTS + ;; +stop) + $SSD --stop --retry 10 --pidfile $PID --signal INT + ;; +shutdown) + $SSD --stop --retry 60 --pidfile $PID --signal TERM + ;; +restart) + $0 stop + $0 start + ;; +reload) + $SSD --stop --pidfile $PID --signal HUP + ;; +status) + $SSD --status --pidfile $PID + case $? in + 0) echo "$PROG is running with pid $(cat $PID)" ;; + 1) echo "$PROG is not running but the pid file $PID exists" ;; + 3) echo "$PROG is not running" ;; + 4) echo "Unable to determine the program status" ;; + esac + ;; +*) + echo "usage: $0 [start|stop|shutdown|restart|reload|status]" + ;; +esac + +# End of file diff --git a/talimatname/genel/s/squid/talimat b/talimatname/genel/s/squid/talimat new file mode 100644 index 000000000..2ea40625c --- /dev/null +++ b/talimatname/genel/s/squid/talimat @@ -0,0 +1,40 @@ +# Tanım: Fonksiyonel vekil sunucu yazılımı +# URL: http://www.squid-cache.org +# Paketçi: milisarge +# Gerekler: + +isim=squid +surum=3.5.24 +devir=2 +kaynak=(http://www.squid-cache.org/Versions/v3/3.5/$isim-$surum.tar.xz + squid_servisi) + +derle() { + cd $isim-$surum + + ./configure --prefix=/usr \ + --sysconfdir=/etc/squid \ + --libexecdir=/usr/lib/squid \ + --localstatedir=/var \ + --datadir=/usr/share/squid \ + --with-logdir=/var/log/squid \ + --with-pidfile=/var/run/squid.pid \ + --with-swapdir=/var/squid \ + --with-default-user=squid \ + --enable-linux-netfilter \ + --enable-storeio=ufs,aufs,diskd,rock \ + --enable-removal-policies=lru,heap \ + --with-large-files \ + --with-pthreads \ + --with-aufs-threads=16 \ + --disable-auto-locale \ + --with-openssl \ + --enable-ssl-crtd + + make all + make DESTDIR=$PKG install + + rm -r $PKG/var/run + find $PKG/usr/share/squid/errors/* -prune ! -name templates | xargs rm -r + install -D -m 755 $SRC/squid_servisi $PKG/etc/rc.d/init.d/squid +} diff --git a/talimatname/genel/s/ssh-askpass/ssh-askpass.kur-kos b/talimatname/genel/s/ssh-askpass/ssh-askpass.kur-kos new file mode 100644 index 000000000..839dc3e9c --- /dev/null +++ b/talimatname/genel/s/ssh-askpass/ssh-askpass.kur-kos @@ -0,0 +1,8 @@ +if ( ! grep ssh-askpass etc/sudo.conf 2> /dev/null ) +then + cat >> etc/sudo.conf << "EOF" +# Path to askpass helper program +Path askpass /usr/libexec/openssh/ssh-askpass +EOF + chmod -v 0644 /etc/sudo.conf +fi diff --git a/talimatname/genel/s/ssh-askpass/talimat b/talimatname/genel/s/ssh-askpass/talimat new file mode 100644 index 000000000..9f1b9d1d6 --- /dev/null +++ b/talimatname/genel/s/ssh-askpass/talimat @@ -0,0 +1,20 @@ +# Tanım: Yönetici ayrıcalıkları gerektiren paketlerin şifresini almak için iletişim kutusu +# URL: http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/ +# Paketçi: milisarge +# Depend on: gdk-pixbuf gtk2 xorg-libx11 + +isim=ssh-askpass +surum=7.1p2 +devir=2 +kaynak=(http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-7.1p2.tar.gz) + +derle() { + +cd openssh-$surum/contrib +make gnome-ssh-askpass2 +install -v -d -m755 $PKG/usr/libexec/openssh/contrib +install -v -m755 gnome-ssh-askpass2 \ +$PKG/usr/libexec/openssh/contrib +ln -sv -f contrib/gnome-ssh-askpass2 \ +$PKG/usr/libexec/openssh/ssh-askpass +} diff --git a/talimatname/genel/s/sshfs-fuse/talimat b/talimatname/genel/s/sshfs-fuse/talimat new file mode 100644 index 000000000..24f6e8c42 --- /dev/null +++ b/talimatname/genel/s/sshfs-fuse/talimat @@ -0,0 +1,16 @@ +# Tanım: SSH Dosya Aktarım Protokolünü temel alan FUSE istemcisi +# URL: http://fuse.sourceforge.net/sshfs.html +# Paketçi: milisarge@gmail.com +# Gerekler: fuse glib openssh + +isim=sshfs-fuse +surum=2.5 +devir=1 +kaynak=(https://github.com/libfuse/sshfs/releases/download/sshfs_${version//./_}//$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/sshuttle/prefixes.conf b/talimatname/genel/s/sshuttle/prefixes.conf new file mode 100644 index 000000000..ca472b9a1 --- /dev/null +++ b/talimatname/genel/s/sshuttle/prefixes.conf @@ -0,0 +1,5 @@ +# Output prefixes here, one per line. Prefix is in: +# prefix/netmask format +# Like this: +# 192.168.0.0/16 +# 192.0.43.10/32 diff --git a/talimatname/genel/s/sshuttle/talimat b/talimatname/genel/s/sshuttle/talimat new file mode 100644 index 000000000..0dcc1f10a --- /dev/null +++ b/talimatname/genel/s/sshuttle/talimat @@ -0,0 +1,28 @@ +# Tanım: tcp paketleri ssh üzerinde yönlendiren şeffaf vekil sunucu +# URL: https://github.com/sshuttle/sshuttle +# Paketçi: milisarge +# Gerekler: python3 python3-setuptools iptables net-tools libffi + +isim=sshuttle +hesap=sshuttle +surum=0.78.2 +devir=1.0 +kaynak=(prefixes.conf + tunnel.conf) + +derle() { + if [ ! -d $DERLEME_KAYNAKDIZIN/$isim ];then + git clone https://github.com/$hesap/$isim $DERLEME_KAYNAKDIZIN/$isim + else + cd $DERLEME_KAYNAKDIZIN/$isim + git pull + cd - + fi + + cp -r $DERLEME_KAYNAKDIZIN/$isim $SRC/ + cd $SRC/$isim + python3 setup.py build + python3 setup.py install --root="$PKG" -O1 + install -d "$PKG/etc/sshuttle" + install -m644 "$SRC"/{tunnel.conf,prefixes.conf} "$PKG/etc/sshuttle" +} diff --git a/talimatname/genel/s/sshuttle/tunnel.conf b/talimatname/genel/s/sshuttle/tunnel.conf new file mode 100644 index 000000000..64fb54edb --- /dev/null +++ b/talimatname/genel/s/sshuttle/tunnel.conf @@ -0,0 +1,19 @@ +# Here is where you can specify any SSH tunnel options See ssh_config(5) for +# details. You need to leave the Host line intact, but everything else can +# specify whatever you want +Host sshuttle_tunnel + +# REQUIRED: Set this to be the host to which you would like to connect your +# tunnel +#Hostname localhost + +# REQUIRED: Set this to be the target SSH user on the remote system +#User foo + +# --------------------------------------------------------------------------- +# The rest are all optional; see ssh_config(5) for the full list of what can +# be specified. Some very commonly needed ones are below. +# --------------------------------------------------------------------------- + +# SSH key used for connecting +#IdentityFile /path/to/key diff --git a/talimatname/genel/s/sslyze/talimat b/talimatname/genel/s/sslyze/talimat new file mode 100644 index 000000000..b6b551f4c --- /dev/null +++ b/talimatname/genel/s/sslyze/talimat @@ -0,0 +1,16 @@ +# Tanım: SSL sunucu analiz uygulaması +# URL: https://github.com/nabla-c0d3/sslyze/ +# Paketçi: milisarge +# Gerekler: python-setuptools python python-nassl python-lxml python-typing + +isim=sslyze +surum=1.0.0 +devir=1 +kaynak=(https://github.com/nabla-c0d3/sslyze/archive/$surum.tar.gz) + +derle() { + cd sslyze-$surum + python2 setup.py build + python2 setup.py install --root="$PKG" --optimize=1 + install -Dm644 README.md "$PKG/usr/share/doc/sslyze/README.md" +} diff --git a/talimatname/genel/s/st/talimat b/talimatname/genel/s/st/talimat new file mode 100644 index 000000000..f1580a12d --- /dev/null +++ b/talimatname/genel/s/st/talimat @@ -0,0 +1,29 @@ +# Tanım: X için basit terminal uygulaması +# URL: http://st.suckless.org/ +# Paketçi: milisarge +# Gerekler: xorg-libxext xorg-libxft + +isim=st +surum=0.7 +devir=1 + +kaynak=(http://dl.suckless.org/st/$isim-$surum.tar.gz) + +derle(){ + cd $isim-$surum + local file + sed \ + -e '/char font/s/= .*/= "Fixed:pixelsize=17:style=Condensed";/' \ + -e '/char worddelimiters/s/= .*/= " '"'"'`\\\"()[]{}<>|";/' \ + -e '/int defaultcs/s/= .*/= 1;/' \ + -i config.def.h + sed \ + -e 's/CPPFLAGS =/CPPFLAGS +=/g' \ + -e 's/CFLAGS =/CFLAGS +=/g' \ + -e 's/LDFLAGS =/LDFLAGS +=/g' \ + -e 's/_BSD_SOURCE/_DEFAULT_SOURCE/' \ + -i config.mk + sed '/@tic/d' -i Makefile + make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 + make PREFIX=/usr DESTDIR="${PKG}" install +} diff --git a/talimatname/genel/s/stacer/talimat b/talimatname/genel/s/stacer/talimat new file mode 100644 index 000000000..aa7a78807 --- /dev/null +++ b/talimatname/genel/s/stacer/talimat @@ -0,0 +1,57 @@ +# Tanım: Linux Sistem Doktoru ve İzleme +# URL: https://github.com/oguzhaninan/Stacer +# Paketçi: Cihan_Alkan +# Gerekler: qt5 +# Grup: sistem + +isim=stacer +surum=1.0.8 +devir=1 + +kaynak=(https://github.com/oguzhaninan/Stacer/archive/v1.0.8.tar.gz::$isim-$surum.tar.gz) + +derle() { + export QT_PLUGIN_PATH=$QTDIR/plugins + export LD_LIBRARY_PATH=$QTDIR/lib + cd "Stacer-$surum" + P_DIR=$(pwd) + DIST_DIR=dist + BUILD_DIR=build + #clean + rm -rf dist + + mkdir -p $DIST_DIR/$BUILD_DIR + cd $DIST_DIR/$BUILD_DIR + + #build + $QTDIR/usr/bin/qmake-qt5 -spec linux-g++ "CONFIG += release" $SRC/Stacer-$surum/Stacer.pro && make + + cd $SRC/Stacer-$surum/$DIST_DIR/$BUILD_DIR/stacer-core && make + cd $SRC/Stacer-$surum/$DIST_DIR/$BUILD_DIR/stacer && make + + mkdir $SRC/Stacer-$surum/$DIST_DIR/$BUILD_DIR/stacer/lib + + cp $SRC/Stacer-$surum/$DIST_DIR/$BUILD_DIR/stacer-core/libstacer-core.so.1.0.0 $SRC/Stacer-$surum/$DIST_DIR/$BUILD_DIR/stacer/lib/libstacer-core.so.1 + + cd $SRC/Stacer-$surum + lrelease stacer/stacer.pro + + mkdir $SRC/Stacer-$surum/$DIST_DIR/$BUILD_DIR/stacer/translations + mv $SRC/Stacer-$surum/translations/*.qm $SRC/Stacer-$surum/$DIST_DIR/$BUILD_DIR/stacer/translations + rm -rf $SRC/Stacer-$surum/$DIST_DIR/$BUILD_DIR/stacer-core + find $SRC/Stacer-$surum/$DIST_DIR/$BUILD_DIR/stacer \( -name "moc_*" -or -name "*.o" -or -name "qrc_*" -or -name "Makefile*" -or -name "*.a" -or -name "*.h" \) -exec rm {} \; + + mkdir -p $PKG/usr/bin + mkdir -p $PKG/usr/share/pixmaps + mkdir -p $PKG/usr/share/applications + mkdir -p $PKG/usr/share/stacer + mkdir -p $PKG/usr/lib + mkdir -p $PKG/usr/share/icons + + cp -R $SRC/Stacer-$surum/icons/hicolor/128x128/apps $PKG/usr/share/pixmaps/stacer.png + cp -R $SRC/Stacer-$surum/stacer.desktop $PKG/usr/share/applications/stacer.desktop + cp -R $SRC/Stacer-$surum/$DIST_DIR/$BUILD_DIR/stacer/lib/* $PKG/usr/lib/ + cp -R $SRC/Stacer-$surum/icons/* $PKG/usr/share/icons/ + cp -R $SRC/Stacer-$surum/$DIST_DIR/$BUILD_DIR/stacer/* $PKG/usr/share/stacer/ + ln -s /usr/share/stacer/stacer "$PKG/usr/bin/stacer" +} diff --git a/talimatname/genel/s/start-stop-daemon/makefile b/talimatname/genel/s/start-stop-daemon/makefile new file mode 100644 index 000000000..976a01ab3 --- /dev/null +++ b/talimatname/genel/s/start-stop-daemon/makefile @@ -0,0 +1,12 @@ +CC = cc +CFLAGS += -g -Wall +PROGRAM = start-stop-daemon +SOURCES = start-stop-daemon.c + +$(PROGRAM): $(SOURCES) + $(CC) $(CFLAGS) -o $(@) $(SOURCES) + + +all: $(PROGRAM) +clean: ; rm -f $(PROGRAM) +force: clean all diff --git a/talimatname/genel/s/start-stop-daemon/ornek_servis b/talimatname/genel/s/start-stop-daemon/ornek_servis new file mode 100644 index 000000000..dad1ea465 --- /dev/null +++ b/talimatname/genel/s/start-stop-daemon/ornek_servis @@ -0,0 +1,48 @@ +#!/bin/sh + +# Derived from https://gist.github.com/sodik82/4f4aafdb52e84102b75d + +set -e +. /lib/lsb/init-functions + +# Must be a valid filename +NAME=foo +PIDFILE=/run/$NAME.pid + +# Full path to executable +DAEMON=/usr/local/bin/bar + +# Options +DAEMON_OPTS="--baz=quux" + +# User to run the command as +USER=www + + +export PATH="${PATH:+$PATH:}/usr/sbin:/sbin" + +case "$1" in + start) + echo -n "Starting daemon: "$NAME + start-stop-daemon --start --quiet -b -m --pidfile $PIDFILE --chdir $WORK_DIR --chuid $USER --exec $DAEMON -- $DAEMON_OPTS + echo "." + ;; + stop) + echo -n "Stopping daemon: "$NAME + start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE + echo "." + ;; + restart) + echo -n "Restarting daemon: "$NAME + start-stop-daemon --stop --quiet --oknodo --retry 30 --pidfile $PIDFILE + start-stop-daemon --start --quiet -b -m --pidfile $PIDFILE --chdir $WORK_DIR --chuid $USER --exec $DAEMON -- $DAEMON_OPTS + echo "." + ;; + status) + status_of_proc -p $PIDFILE $DAEMON $NAME && exit 0 || exit $? + ;; + + *) + echo "Usage: "$1" {start|stop|restart}" + exit 1 +esac diff --git a/talimatname/genel/s/start-stop-daemon/start-stop-daemon.8 b/talimatname/genel/s/start-stop-daemon/start-stop-daemon.8 new file mode 100644 index 000000000..deae6c6b0 --- /dev/null +++ b/talimatname/genel/s/start-stop-daemon/start-stop-daemon.8 @@ -0,0 +1,381 @@ +.\" dpkg manual page - start-stop-daemon(8) +.\" +.\" Copyright © 1999 Klee Dienes +.\" Copyright © 1999 Ben Collins +.\" Copyright © 2000-2001 Wichert Akkerman +.\" Copyright © 2002-2003 Adam Heath +.\" Copyright © 2004 Scott James Remnant +.\" Copyright © 2008-2015 Guillem Jover +.\" +.\" This is free software; you can redistribute it and/or modify +.\" it under the terms of the GNU General Public License as published by +.\" the Free Software Foundation; either version 2 of the License, or +.\" (at your option) any later version. +.\" +.\" This is distributed in the hope that it will be useful, +.\" but WITHOUT ANY WARRANTY; without even the implied warranty of +.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +.\" GNU General Public License for more details. +.\" +.\" You should have received a copy of the GNU General Public License +.\" along with this program. If not, see . +. +.TH start\-stop\-daemon 8 "2014-03-26" "Debian Project" "dpkg utilities" +.SH NAME +start\-stop\-daemon \- start and stop system daemon programs +. +.SH SYNOPSIS +.B start\-stop\-daemon +.RI [ option "...] " command +. +.SH DESCRIPTION +.B start\-stop\-daemon +is used to control the creation and termination of system-level processes. +Using one of the matching options, \fBstart\-stop\-daemon\fP +can be configured to find existing instances of a running process. +.PP +Note: unless +.B \-\-pid +or +.B \-\-pidfile +are specified, +.B start\-stop\-daemon +behaves similar to +.BR killall (1). +.B start\-stop\-daemon +will scan the process table looking for any processes which +match the process name, parent pid, uid, and/or gid (if specified). Any +matching process will prevent +.BR \-\-start +from starting the daemon. All matching processes will be sent the TERM +signal (or the one specified via \fB\-\-signal\fP or \fB\-\-retry\fP) if +.BR \-\-stop +is specified. For daemons which have long-lived children +which need to live through a +.BR \-\-stop , +you must specify a pidfile. +. +.SH COMMANDS +.TP +.BR \-S ", " \-\-start " [" \-\- "] \fIarguments\fP" +Check for the existence of a specified process. +If such a process exists, +.B start\-stop\-daemon +does nothing, and exits with error status 1 (0 if +.BR \-\-oknodo +is specified). +If such a process does not exist, it starts an +instance, using either the executable specified by +.B \-\-exec +or, if specified, by +.BR \-\-startas . +Any arguments given after +.BR \-\- +on the command line are passed unmodified to the program being +started. +.TP +.BR \-K ", " \-\-stop +Checks for the existence of a specified process. +If such a process exists, +.B start\-stop\-daemon +sends it the signal specified by +.BR \-\-signal , +and exits with error status 0. +If such a process does not exist, +.B start\-stop\-daemon +exits with error status 1 +(0 if +.BR \-\-oknodo +is specified). If +.B \-\-retry +is specified, then +.B start\-stop\-daemon +will check that the process(es) have terminated. +.TP +.BR \-T ", " \-\-status +Check for the existence of a specified process, and returns an exit status +code, according to the LSB Init Script Actions (since version 1.16.1). +.TP +.BR \-H ", " \-\-help +Show usage information and exit. +.TP +.BR \-V ", " \-\-version +Show the program version and exit. +. +.SH OPTIONS +.SS Matching options +.TP +.BR \-\-pid " \fIpid\fP" +Check for a process with the specified \fIpid\fP (since version 1.17.6). +The \fIpid\fP must be a number greater than 0. +.TP +.BR \-\-ppid " \fIppid\fP" +Check for a process with the specified parent pid \fIppid\fP +(since version 1.17.7). +The \fIppid\fP must be a number greater than 0. +.TP +.BR \-p ", " \-\-pidfile " \fIpid-file\fP" +Check whether a process has created the file \fIpid-file\fP. Note: using this +matching option alone might cause unintended processes to be acted on, if the +old process terminated without being able to remove the \fIpid-file\fP. +.TP +.BR \-x ", " \-\-exec " \fIexecutable\fP" +Check for processes that are instances of this \fIexecutable\fP. The +\fIexecutable\fP argument should be an absolute pathname. Note: this might +not work as intended with interpreted scripts, as the executable will point +to the interpreter. Take into account processes running from inside a chroot +will also be matched, so other match restrictions might be needed. +.TP +.BR \-n ", " \-\-name " \fIprocess-name\fP" +Check for processes with the name \fIprocess-name\fP. The \fIprocess-name\fP +is usually the process filename, but it could have been changed by the +process itself. Note: on most systems this information is retrieved from +the process comm name from the kernel, which tends to have a relatively +short length limit (assuming more than 15 characters is non-portable). +.TP +.BR \-u ", " \-\-user " \fIusername\fP|\fIuid\fP +Check for processes owned by the user specified by \fIusername\fP or +\fIuid\fP. Note: using this matching option alone will cause all processes +matching the user to be acted on. +. +.SS Generic options +.TP +.BR \-g ", " \-\-group " \fIgroup\fP|\fIgid\fP" +Change to \fIgroup\fP or \fIgid\fP when starting the process. +.TP +.BR \-s ", " \-\-signal " \fIsignal\fP" +With +.BR \-\-stop , +specifies the signal to send to processes being stopped (default TERM). +.TP +.BR \-R ", " \-\-retry " \fItimeout\fP|\fIschedule\fP" +With +.BR \-\-stop , +specifies that +.B start\-stop\-daemon +is to check whether the process(es) +do finish. It will check repeatedly whether any matching processes +are running, until none are. If the processes do not exit it will +then take further action as determined by the schedule. + +If +.I timeout +is specified instead of +.IR schedule , +then the schedule +.IB signal / timeout /KILL/ timeout +is used, where +.I signal +is the signal specified with +.BR \-\-signal . + +.I schedule +is a list of at least two items separated by slashes +.RB ( / ); +each item may be +.BI \- signal-number +or [\fB\-\fP]\fIsignal-name\fP, +which means to send that signal, +or +.IR timeout , +which means to wait that many seconds for processes to +exit, +or +.BR forever , +which means to repeat the rest of the schedule forever if +necessary. + +If the end of the schedule is reached and +.BR forever +is not specified, then +.B start\-stop\-daemon +exits with error status 2. +If a schedule is specified, then any signal specified +with +.B \-\-signal +is ignored. +.TP +.BR \-a ", " \-\-startas " \fIpathname\fP" +With +.BR \-\-start , +start the process specified by +.IR pathname . +If not specified, defaults to the argument given to +.BR \-\-exec . +.TP +.BR \-t ", " \-\-test +Print actions that would be taken and set appropriate return value, +but take no action. +.TP +.BR \-o ", " \-\-oknodo +Return exit status 0 instead of 1 if no actions are (would be) taken. +.TP +.BR \-q ", " \-\-quiet +Do not print informational messages; only display error messages. +.TP +.BR \-c ", " \-\-chuid " \fIusername\fR|\fIuid\fP[\fB:\fP\fIgroup\fR|\fIgid\fP]" +Change to this username/uid before starting the process. You can also +specify a group by appending a +.BR : , +then the group or gid in the same way +as you would for the \fBchown\fP(1) command (\fIuser\fP\fB:\fP\fIgroup\fP). +If a user is specified without a group, the primary GID for that user is used. +When using this option +you must realize that the primary and supplemental groups are set as well, +even if the +.B \-\-group +option is not specified. The +.B \-\-group +option is only for +groups that the user isn't normally a member of (like adding per process +group membership for generic users like +.BR nobody ). +.TP +.BR \-r ", " \-\-chroot " \fIroot\fP" +Chdir and chroot to +.I root +before starting the process. Please note that the pidfile is also written +after the chroot. +.TP +.BR \-d ", " \-\-chdir " \fIpath\fP" +Chdir to +.I path +before starting the process. This is done after the chroot if the +\fB\-r\fP|\fB\-\-chroot\fP option is set. When not specified, +.B start\-stop\-daemon +will chdir to the root directory before starting the process. +.TP +.BR \-b ", " \-\-background +Typically used with programs that don't detach on their own. This option +will force +.B start\-stop\-daemon +to fork before starting the process, and force it into the background. +.B Warning: start\-stop\-daemon +cannot check the exit status if the process fails to execute for +.B any +reason. This is a last resort, and is only meant for programs that either +make no sense forking on their own, or where it's not feasible to add the +code for them to do this themselves. +.TP +.BR \-C ", " \-\-no\-close +Do not close any file descriptor when forcing the daemon into the background +(since version 1.16.5). +Used for debugging purposes to see the process output, or to redirect file +descriptors to log the process output. +Only relevant when using \fB\-\-background\fP. +.TP +.BR \-N ", " \-\-nicelevel " \fIint\fP" +This alters the priority of the process before starting it. +.TP +.BR \-P ", " \-\-procsched " \fIpolicy\fP\fB:\fP\fIpriority\fP" +This alters the process scheduler policy and priority of the process before +starting it (since version 1.15.0). +The priority can be optionally specified by appending a \fB:\fP +followed by the value. The default \fIpriority\fP is 0. The currently +supported policy values are \fBother\fP, \fBfifo\fP and \fBrr\fP. +.TP +.BR \-I ", " \-\-iosched " \fIclass\fP\fB:\fP\fIpriority\fP" +This alters the IO scheduler class and priority of the process before starting +it (since version 1.15.0). +The priority can be optionally specified by appending a \fB:\fP followed +by the value. The default \fIpriority\fP is 4, unless \fIclass\fP is \fBidle\fP, +then \fIpriority\fP will always be 7. The currently supported values for +\fIclass\fP are \fBidle\fP, \fBbest-effort\fP and \fBreal-time\fP. +.TP +.BR \-k ", " \-\-umask " \fImask\fP" +This sets the umask of the process before starting it (since version 1.13.22). +.TP +.BR \-m ", " \-\-make\-pidfile +Used when starting a program that does not create its own pid file. This +option will make +.B start\-stop\-daemon +create the file referenced with +.B \-\-pidfile +and place the pid into it just before executing the process. Note, the +file will only be removed when stopping the program if +\fB\-\-remove\-pidfile\fP is used. +.B Note: +This feature may not work in all cases. Most notably when the program +being executed forks from its main process. Because of this, it is usually +only useful when combined with the +.B \-\-background +option. +.TP +.B \-\-remove\-pidfile +Used when stopping a program that does not remove its own pid file +(since version 1.17.19). +This option will make +.B start\-stop\-daemon +remove the file referenced with +.B \-\-pidfile +after terminating the process. +.TP +.BR \-v ", " \-\-verbose +Print verbose informational messages. +. +.SH EXIT STATUS +.TP +.B 0 +The requested action was performed. If +.B \-\-oknodo +was specified, it's also possible that nothing had to be done. +This can happen when +.B \-\-start +was specified and a matching process was already running, or when +.B \-\-stop +was specified and there were no matching processes. +.TP +.B 1 +If +.B \-\-oknodo +was not specified and nothing was done. +.TP +.B 2 +If +.B \-\-stop +and +.B \-\-retry +were specified, but the end of the schedule was reached and the processes were +still running. +.TP +.B 3 +Any other error. +.PP +When using the \fB\-\-status\fP command, the following status codes are +returned: +.TP +.B 0 +Program is running. +.TP +.B 1 +Program is not running and the pid file exists. +.TP +.B 3 +Program is not running. +.TP +.B 4 +Unable to determine program status. +. +.SH EXAMPLE +Start the \fBfood\fP daemon, unless one is already running (a process named +food, running as user food, with pid in food.pid): +.IP +.nf +start\-stop\-daemon \-\-start \-\-oknodo \-\-user food \-\-name food \\ + \-\-pidfile /run/food.pid \-\-startas /usr/sbin/food \\ + \-\-chuid food \-\- \-\-daemon +.fi +.PP +Send \fBSIGTERM\fP to \fBfood\fP and wait up to 5 seconds for it to stop: +.IP +.nf +start\-stop\-daemon \-\-stop \-\-oknodo \-\-user food \-\-name food \\ + \-\-pidfile /run/food.pid \-\-retry 5 +.fi +.PP +Demonstration of a custom schedule for stopping \fBfood\fP: +.IP +.nf +start\-stop\-daemon \-\-stop \-\-oknodo \-\-user food \-\-name food \\ + \-\-pidfile /run/food.pid \-\-retry=TERM/30/KILL/5 +.fi diff --git a/talimatname/genel/s/start-stop-daemon/start-stop-daemon.c b/talimatname/genel/s/start-stop-daemon/start-stop-daemon.c new file mode 100644 index 000000000..a749008bc --- /dev/null +++ b/talimatname/genel/s/start-stop-daemon/start-stop-daemon.c @@ -0,0 +1,1059 @@ +/* + * A rewrite of the original Debian's start-stop-daemon Perl script + * in C (faster - it is executed many times during system startup). + * + * Written by Marek Michalkiewicz , + * public domain. Based conceptually on start-stop-daemon.pl, by Ian + * Jackson . May be used and distributed + * freely for any purpose. Changes by Christian Schwarz + * , to make output conform to the Debian + * Console Message Standard, also placed in public domain. Minor + * changes by Klee Dienes , also placed in the Public + * Domain. + * + * Changes by Ben Collins , added --chuid, --background + * and --make-pidfile options, placed in public domain aswell. + * + * Port to OpenBSD by Sontri Tomo Huynh + * and Andreas Schuldei + * + * Changes by Ian Jackson: added --retry (and associated rearrangements). + * + * Modified for Gentoo rc-scripts by Donny Davies : + * I removed the BSD/Hurd/OtherOS stuff, added #include + * and stuck in a #define VERSION "1.9.18". Now it compiles without + * the whole automake/config.h dance. + */ + +#ifdef HAVE_LXC +#define _GNU_SOURCE +#include +#endif /* HAVE_LXC */ + +#include +#define VERSION "1.9.18" + +#define MIN_POLL_INTERVAL 20000 /*us*/ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +static int testmode = 0; +static int quietmode = 0; +static int exitnodo = 1; +static int start = 0; +static int stop = 0; +static int background = 0; +static int mpidfile = 0; +static int signal_nr = 15; +static const char *signal_str = NULL; +static int user_id = -1; +static int runas_uid = -1; +static int runas_gid = -1; +static const char *userspec = NULL; +static char *changeuser = NULL; +static const char *changegroup = NULL; +static char *changeroot = NULL; +static const char *cmdname = NULL; +static char *execname = NULL; +static char *startas = NULL; +static const char *pidfile = NULL; +static char what_stop[1024]; +static const char *schedule_str = NULL; +static const char *progname = ""; +static int nicelevel = 0; + +static struct stat exec_stat; + +struct pid_list { + struct pid_list *next; + pid_t pid; +}; + +static struct pid_list *found = NULL; +static struct pid_list *killed = NULL; + +struct schedule_item { + enum { sched_timeout, sched_signal, sched_goto, sched_forever } type; + int value; /* seconds, signal no., or index into array */ + /* sched_forever is only seen within parse_schedule and callees */ +}; + +static int schedule_length; +static struct schedule_item *schedule = NULL; + +LIST_HEAD(namespace_head, namespace); + +struct namespace { + LIST_ENTRY(namespace) list; + char *path; + int nstype; +}; + +static struct namespace_head namespace_head; + +static void *xmalloc(int size); +static void push(struct pid_list **list, pid_t pid); +static void do_help(void); +static void parse_options(int argc, char * const *argv); +static int pid_is_user(pid_t pid, uid_t uid); +static int pid_is_cmd(pid_t pid, const char *name); +static void check(pid_t pid); +static void do_pidfile(const char *name); +static void do_stop(int signal_nr, int quietmode, + int *n_killed, int *n_notkilled, int retry_nr); +static int pid_is_exec(pid_t pid, const struct stat *esb); + +#ifdef __GNUC__ +static void fatal(const char *format, ...) + __attribute__((noreturn, format(printf, 1, 2))); +static void badusage(const char *msg) + __attribute__((noreturn)); +#else +static void fatal(const char *format, ...); +static void badusage(const char *msg); +#endif + +/* This next part serves only to construct the TVCALC macro, which + * is used for doing arithmetic on struct timeval's. It works like this: + * TVCALC(result, expression); + * where result is a struct timeval (and must be an lvalue) and + * expression is the single expression for both components. In this + * expression you can use the special values TVELEM, which when fed a + * const struct timeval* gives you the relevant component, and + * TVADJUST. TVADJUST is necessary when subtracting timevals, to make + * it easier to renormalise. Whenver you subtract timeval elements, + * you must make sure that TVADJUST is added to the result of the + * subtraction (before any resulting multiplication or what have you). + * TVELEM must be linear in TVADJUST. + */ +typedef long tvselector(const struct timeval*); +static long tvselector_sec(const struct timeval *tv) { return tv->tv_sec; } +static long tvselector_usec(const struct timeval *tv) { return tv->tv_usec; } +#define TVCALC_ELEM(result, expr, sec, adj) \ +{ \ + const long TVADJUST = adj; \ + long (*const TVELEM)(const struct timeval*) = tvselector_##sec; \ + (result).tv_##sec = (expr); \ +} +#define TVCALC(result,expr) \ +do { \ + TVCALC_ELEM(result, expr, sec, (-1)); \ + TVCALC_ELEM(result, expr, usec, (+1000000)); \ + (result).tv_sec += (result).tv_usec / 1000000; \ + (result).tv_usec %= 1000000; \ +} while(0) + + +static void +fatal(const char *format, ...) +{ + va_list arglist; + + fprintf(stderr, "%s: ", progname); + va_start(arglist, format); + vfprintf(stderr, format, arglist); + va_end(arglist); + putc('\n', stderr); + exit(2); +} + + +static void * +xmalloc(int size) +{ + void *ptr; + + ptr = malloc(size); + if (ptr) + return ptr; + fatal("malloc(%d) failed", size); +} + +static void +xgettimeofday(struct timeval *tv) +{ + if (gettimeofday(tv,0) != 0) + fatal("gettimeofday failed: %s", strerror(errno)); +} + +static void +push(struct pid_list **list, pid_t pid) +{ + struct pid_list *p; + + p = xmalloc(sizeof(*p)); + p->next = *list; + p->pid = pid; + *list = p; +} + +static void +clear(struct pid_list **list) +{ + struct pid_list *here, *next; + + for (here = *list; here != NULL; here = next) { + next = here->next; + free(here); + } + + *list = NULL; +} + +static char * +next_dirname(const char *s) +{ + char *cur; + + cur = (char *)s; + + if (*cur != '\0') { + for (; *cur != '/'; ++cur) + if (*cur == '\0') + return cur; + + for (; *cur == '/'; ++cur) + ; + } + + return cur; +} + +static void +add_namespace(const char *path) +{ + int nstype; + char *nsdirname, *nsname, *cur; + struct namespace *namespace; + + cur = (char *)path; + nsdirname = nsname = ""; + + while ((cur = next_dirname(cur))[0] != '\0') { + nsdirname = nsname; + nsname = cur; + } + + if (!memcmp(nsdirname, "ipcns/", strlen("ipcns/"))) + nstype = CLONE_NEWIPC; + else if (!memcmp(nsdirname, "netns/", strlen("netns/"))) + nstype = CLONE_NEWNET; + else if (!memcmp(nsdirname, "utcns/", strlen("utcns/"))) + nstype = CLONE_NEWUTS; + else + badusage("invalid namepspace path"); + + namespace = xmalloc(sizeof(*namespace)); + namespace->path = (char *)path; + namespace->nstype = nstype; + LIST_INSERT_HEAD(&namespace_head, namespace, list); +} + +#ifdef HAVE_LXC +static void +set_namespaces() +{ + struct namespace *namespace; + int fd; + + LIST_FOREACH(namespace, &namespace_head, list) { + if ((fd = open(namespace->path, O_RDONLY)) == -1) + fatal("open namespace %s: %s", namespace->path, strerror(errno)); + if (setns(fd, namespace->nstype) == -1) + fatal("setns %s: %s", namespace->path, strerror(errno)); + } +} +#else +static void +set_namespaces() +{ + if (!LIST_EMPTY(&namespace_head)) + fatal("LCX namespaces not supported"); +} +#endif + +static void +do_help(void) +{ + printf( +"start-stop-daemon " VERSION " for Milis linux - small and fast C version written by\n" +"Marek Michalkiewicz , public domain.\n" +"Milis Linux milisarge@gmail.com .\n" +"\n" +"Usage:\n" +" start-stop-daemon -S|--start options ... -- arguments ...\n" +" start-stop-daemon -K|--stop options ...\n" +" start-stop-daemon -H|--help\n" +" start-stop-daemon -V|--version\n" +"\n" +"Options (at least one of --exec|--pidfile|--user is required):\n" +" -x|--exec program to start/check if it is running\n" +" -p|--pidfile pid file to check\n" +" -c|--chuid \n" +" change to this user/group before starting process\n" +" -u|--user | stop processes owned by this user\n" +" -n|--name stop processes with this name\n" +" -s|--signal signal to send (default TERM)\n" +" -a|--startas program to start (default is )\n" +" -N|--nicelevel add incr to the process's nice level\n" +" -b|--background force the process to detach\n" +" -m|--make-pidfile create the pidfile before starting\n" +" -R|--retry check whether processes die, and retry\n" +" -t|--test test mode, don't do anything\n" +" -o|--oknodo exit status 0 (not 1) if nothing done\n" +" -q|--quiet be more quiet\n" +" -v|--verbose be more verbose\n" +"Retry is |//... where is one of\n" +" -|[-] send that signal\n" +" wait that many seconds\n" +" forever repeat remainder forever\n" +"or may be just , meaning //KILL/\n" +"\n" +"Exit status: 0 = done 1 = nothing done (=> 0 if --oknodo)\n" +" 3 = trouble 2 = with --retry, processes wouldn't die\n"); +} + + +static void +badusage(const char *msg) +{ + if (msg) + fprintf(stderr, "%s: %s\n", progname, msg); + fprintf(stderr, "Try `%s --help' for more information.\n", progname); + exit(3); +} + +struct sigpair { + const char *name; + int signal; +}; + +const struct sigpair siglist[] = { + { "ABRT", SIGABRT }, + { "ALRM", SIGALRM }, + { "FPE", SIGFPE }, + { "HUP", SIGHUP }, + { "ILL", SIGILL }, + { "INT", SIGINT }, + { "KILL", SIGKILL }, + { "PIPE", SIGPIPE }, + { "QUIT", SIGQUIT }, + { "SEGV", SIGSEGV }, + { "TERM", SIGTERM }, + { "USR1", SIGUSR1 }, + { "USR2", SIGUSR2 }, + { "CHLD", SIGCHLD }, + { "CONT", SIGCONT }, + { "STOP", SIGSTOP }, + { "TSTP", SIGTSTP }, + { "TTIN", SIGTTIN }, + { "TTOU", SIGTTOU } +}; + +static int parse_integer (const char *string, int *value_r) { + unsigned long ul; + char *ep; + + if (!string[0]) + return -1; + + ul= strtoul(string,&ep,10); + if (ul > INT_MAX || *ep != '\0') + return -1; + + *value_r= ul; + return 0; +} + +static int parse_signal (const char *signal_str, int *signal_nr) +{ + unsigned int i; + + if (parse_integer(signal_str, signal_nr) == 0) + return 0; + + for (i = 0; i < sizeof (siglist) / sizeof (siglist[0]); i++) { + if (strcmp (signal_str, siglist[i].name) == 0) { + *signal_nr = siglist[i].signal; + return 0; + } + } + return -1; +} + +static void +parse_schedule_item(const char *string, struct schedule_item *item) { + const char *after_hyph; + + if (!strcmp(string,"forever")) { + item->type = sched_forever; + } else if (isdigit(string[0])) { + item->type = sched_timeout; + if (parse_integer(string, &item->value) != 0) + badusage("invalid timeout value in schedule"); + } else if ((after_hyph = string + (string[0] == '-')) && + parse_signal(after_hyph, &item->value) == 0) { + item->type = sched_signal; + } else { + badusage("invalid schedule item (must be [-], " + "-, or `forever'"); + } +} + +static void +parse_schedule(const char *schedule_str) { + char item_buf[20]; + const char *slash; + int count, repeatat; + ptrdiff_t str_len; + + count = 0; + for (slash = schedule_str; *slash; slash++) + if (*slash == '/') + count++; + + schedule_length = (count == 0) ? 4 : count+1; + schedule = xmalloc(sizeof(*schedule) * schedule_length); + + if (count == 0) { + schedule[0].type = sched_signal; + schedule[0].value = signal_nr; + parse_schedule_item(schedule_str, &schedule[1]); + if (schedule[1].type != sched_timeout) { + badusage ("--retry takes timeout, or schedule list" + " of at least two items"); + } + schedule[2].type = sched_signal; + schedule[2].value = SIGKILL; + schedule[3]= schedule[1]; + } else { + count = 0; + repeatat = -1; + while (schedule_str != NULL) { + slash = strchr(schedule_str,'/'); + str_len = slash ? slash - schedule_str : strlen(schedule_str); + if (str_len >= (ptrdiff_t)sizeof(item_buf)) + badusage("invalid schedule item: far too long" + " (you must delimit items with slashes)"); + memcpy(item_buf, schedule_str, str_len); + item_buf[str_len] = 0; + schedule_str = slash ? slash+1 : NULL; + + parse_schedule_item(item_buf, &schedule[count]); + if (schedule[count].type == sched_forever) { + if (repeatat >= 0) + badusage("invalid schedule: `forever'" + " appears more than once"); + repeatat = count; + continue; + } + count++; + } + if (repeatat >= 0) { + schedule[count].type = sched_goto; + schedule[count].value = repeatat; + count++; + } + assert(count == schedule_length); + } +} + +static void +parse_options(int argc, char * const *argv) +{ + static struct option longopts[] = { + { "help", 0, NULL, 'H'}, + { "stop", 0, NULL, 'K'}, + { "start", 0, NULL, 'S'}, + { "version", 0, NULL, 'V'}, + { "startas", 1, NULL, 'a'}, + { "name", 1, NULL, 'n'}, + { "oknodo", 0, NULL, 'o'}, + { "pidfile", 1, NULL, 'p'}, + { "quiet", 0, NULL, 'q'}, + { "signal", 1, NULL, 's'}, + { "test", 0, NULL, 't'}, + { "user", 1, NULL, 'u'}, + { "chroot", 1, NULL, 'r'}, + { "namespace", 1, NULL, 'd'}, + { "verbose", 0, NULL, 'v'}, + { "exec", 1, NULL, 'x'}, + { "chuid", 1, NULL, 'c'}, + { "nicelevel", 1, NULL, 'N'}, + { "background", 0, NULL, 'b'}, + { "make-pidfile", 0, NULL, 'm'}, + { "retry", 1, NULL, 'R'}, + { NULL, 0, NULL, 0} + }; + int c; + + for (;;) { + c = getopt_long(argc, argv, "HKSVa:n:op:qr:d:s:tu:vx:c:N:bmR:", + longopts, (int *) 0); + if (c == -1) + break; + switch (c) { + case 'H': /* --help */ + do_help(); + exit(0); + case 'K': /* --stop */ + stop = 1; + break; + case 'S': /* --start */ + start = 1; + break; + case 'V': /* --version */ + printf("start-stop-daemon " VERSION "\n"); + exit(0); + case 'a': /* --startas */ + startas = optarg; + break; + case 'n': /* --name */ + cmdname = optarg; + break; + case 'o': /* --oknodo */ + exitnodo = 0; + break; + case 'p': /* --pidfile */ + pidfile = optarg; + break; + case 'q': /* --quiet */ + quietmode = 1; + break; + case 's': /* --signal */ + signal_str = optarg; + break; + case 't': /* --test */ + testmode = 1; + break; + case 'u': /* --user | */ + userspec = optarg; + break; + case 'v': /* --verbose */ + quietmode = -1; + break; + case 'x': /* --exec */ + execname = optarg; + break; + case 'c': /* --chuid | */ + /* we copy the string just in case we need the + * argument later. */ + changeuser = strdup(optarg); + changeuser = strtok(changeuser, ":"); + changegroup = strtok(NULL, ":"); + break; + case 'r': /* --chroot /new/root */ + changeroot = optarg; + break; + case 'd': /* --namespace /.../||/name */ + add_namespace(optarg); + break; + case 'N': /* --nice */ + nicelevel = atoi(optarg); + break; + case 'b': /* --background */ + background = 1; + break; + case 'm': /* --make-pidfile */ + mpidfile = 1; + break; + case 'R': /* --retry | */ + schedule_str = optarg; + break; + default: + badusage(NULL); /* message printed by getopt */ + } + } + + if (signal_str != NULL) { + if (parse_signal (signal_str, &signal_nr) != 0) + badusage("signal value must be numeric or name" + " of signal (KILL, INTR, ...)"); + } + + if (schedule_str != NULL) { + parse_schedule(schedule_str); + } + + if (start == stop) + badusage("need one of --start or --stop"); + + if (!execname && !pidfile && !userspec && !cmdname) + badusage("need at least one of --exec, --pidfile, --user or --name"); + + if (!startas) + startas = execname; + + if (start && !startas) + badusage("--start needs --exec or --startas"); + + if (mpidfile && pidfile == NULL) + badusage("--make-pidfile is only relevant with --pidfile"); + + if (background && !start) + badusage("--background is only relevant with --start"); + +} + +static int +pid_is_exec(pid_t pid, const struct stat *esb) +{ + struct stat sb; + char buf[32]; + + sprintf(buf, "/proc/%d/exe", pid); + if (stat(buf, &sb) != 0) + return 0; + return (sb.st_dev == esb->st_dev && sb.st_ino == esb->st_ino); +} + + +static int +pid_is_user(pid_t pid, uid_t uid) +{ + struct stat sb; + char buf[32]; + + sprintf(buf, "/proc/%d", pid); + if (stat(buf, &sb) != 0) + return 0; + return (sb.st_uid == uid); +} + + +static int +pid_is_cmd(pid_t pid, const char *name) +{ + char buf[32]; + FILE *f; + int c; + + sprintf(buf, "/proc/%d/stat", pid); + f = fopen(buf, "r"); + if (!f) + return 0; + while ((c = getc(f)) != EOF && c != '(') + ; + if (c != '(') { + fclose(f); + return 0; + } + /* this hopefully handles command names containing ')' */ + while ((c = getc(f)) != EOF && c == *name) + name++; + fclose(f); + return (c == ')' && *name == '\0'); +} + + +static void +check(pid_t pid) +{ + if (execname && !pid_is_exec(pid, &exec_stat)) + return; + if (userspec && !pid_is_user(pid, user_id)) + return; + if (cmdname && !pid_is_cmd(pid, cmdname)) + return; + push(&found, pid); +} + +static void +do_pidfile(const char *name) +{ + FILE *f; + pid_t pid; + + f = fopen(name, "r"); + if (f) { + if (fscanf(f, "%d", &pid) == 1) + check(pid); + fclose(f); + } else if (errno != ENOENT) + fatal("open pidfile %s: %s", name, strerror(errno)); + +} + +/* WTA: this needs to be an autoconf check for /proc/pid existance. + */ +static void +do_procinit(void) +{ + DIR *procdir; + struct dirent *entry; + int foundany; + pid_t pid; + + procdir = opendir("/proc"); + if (!procdir) + fatal("opendir /proc: %s", strerror(errno)); + + foundany = 0; + while ((entry = readdir(procdir)) != NULL) { + if (sscanf(entry->d_name, "%d", &pid) != 1) + continue; + foundany++; + check(pid); + } + closedir(procdir); + if (!foundany) + fatal("nothing in /proc - not mounted?"); +} + +static void +do_findprocs(void) +{ + clear(&found); + + if (pidfile) + do_pidfile(pidfile); + else + do_procinit(); +} + +/* return 1 on failure */ +static void +do_stop(int signal_nr, int quietmode, int *n_killed, int *n_notkilled, int retry_nr) +{ + struct pid_list *p; + + do_findprocs(); + + *n_killed = 0; + *n_notkilled = 0; + + if (!found) + return; + + clear(&killed); + + for (p = found; p; p = p->next) { + if (testmode) + printf("Would send signal %d to %d.\n", + signal_nr, p->pid); + else if (kill(p->pid, signal_nr) == 0) { + push(&killed, p->pid); + (*n_killed)++; + } else { + printf("%s: warning: failed to kill %d: %s\n", + progname, p->pid, strerror(errno)); + (*n_notkilled)++; + } + } + if (quietmode < 0 && killed) { + printf("Stopped %s (pid", what_stop); + for (p = killed; p; p = p->next) + printf(" %d", p->pid); + putchar(')'); + if (retry_nr > 0) + printf(", retry #%d", retry_nr); + printf(".\n"); + } +} + + +static void +set_what_stop(const char *str) +{ + strncpy(what_stop, str, sizeof(what_stop)); + what_stop[sizeof(what_stop)-1] = '\0'; +} + +static int +run_stop_schedule(void) +{ + int r, position, n_killed, n_notkilled, value, ratio, anykilled, retry_nr; + struct timeval stopat, before, after, interval, maxinterval; + + if (testmode) { + if (schedule != NULL) { + printf("Ignoring --retry in test mode\n"); + schedule = NULL; + } + } + + if (cmdname) + set_what_stop(cmdname); + else if (execname) + set_what_stop(execname); + else if (pidfile) + sprintf(what_stop, "process in pidfile `%.200s'", pidfile); + else if (userspec) + sprintf(what_stop, "process(es) owned by `%.200s'", userspec); + else + fatal("internal error, please report"); + + anykilled = 0; + retry_nr = 0; + + if (schedule == NULL) { + do_stop(signal_nr, quietmode, &n_killed, &n_notkilled, 0); + if (n_notkilled > 0 && quietmode <= 0) + printf("%d pids were not killed\n", n_notkilled); + if (n_killed) + anykilled = 1; + goto x_finished; + } + + for (position = 0; position < schedule_length; ) { + value= schedule[position].value; + n_notkilled = 0; + + switch (schedule[position].type) { + + case sched_goto: + position = value; + continue; + + case sched_signal: + do_stop(value, quietmode, &n_killed, &n_notkilled, retry_nr++); + if (!n_killed) + goto x_finished; + else + anykilled = 1; + goto next_item; + + case sched_timeout: + /* We want to keep polling for the processes, to see if they've exited, + * or until the timeout expires. + * + * This is a somewhat complicated algorithm to try to ensure that we + * notice reasonably quickly when all the processes have exited, but + * don't spend too much CPU time polling. In particular, on a fast + * machine with quick-exiting daemons we don't want to delay system + * shutdown too much, whereas on a slow one, or where processes are + * taking some time to exit, we want to increase the polling + * interval. + * + * The algorithm is as follows: we measure the elapsed time it takes + * to do one poll(), and wait a multiple of this time for the next + * poll. However, if that would put us past the end of the timeout + * period we wait only as long as the timeout period, but in any case + * we always wait at least MIN_POLL_INTERVAL (20ms). The multiple + * (`ratio') starts out as 2, and increases by 1 for each poll to a + * maximum of 10; so we use up to between 30% and 10% of the + * machine's resources (assuming a few reasonable things about system + * performance). + */ + xgettimeofday(&stopat); + stopat.tv_sec += value; + ratio = 1; + for (;;) { + xgettimeofday(&before); + if (timercmp(&before,&stopat,>)) + goto next_item; + + do_stop(0, 1, &n_killed, &n_notkilled, 0); + if (!n_killed) + goto x_finished; + + xgettimeofday(&after); + + if (!timercmp(&after,&stopat,<)) + goto next_item; + + if (ratio < 10) + ratio++; + + TVCALC(interval, ratio * (TVELEM(&after) - TVELEM(&before) + TVADJUST)); + TVCALC(maxinterval, TVELEM(&stopat) - TVELEM(&after) + TVADJUST); + + if (timercmp(&interval,&maxinterval,>)) + interval = maxinterval; + + if (interval.tv_sec == 0 && + interval.tv_usec <= MIN_POLL_INTERVAL) + interval.tv_usec = MIN_POLL_INTERVAL; + + r = select(0,0,0,0,&interval); + if (r < 0 && errno != EINTR) + fatal("select() failed for pause: %s", + strerror(errno)); + } + + default: + assert(!"schedule[].type value must be valid"); + + } + + next_item: + position++; + } + + if (quietmode <= 0) + printf("Program %s, %d process(es), refused to die.\n", + what_stop, n_killed); + + return 2; + +x_finished: + if (!anykilled) { + if (quietmode <= 0) + printf("No %s found running; none killed.\n", what_stop); + return exitnodo; + } else { + return 0; + } +} + +/* +int main(int argc, char **argv) NONRETURNING; +*/ + +int +main(int argc, char **argv) +{ + progname = argv[0]; + + LIST_INIT(&namespace_head); + + parse_options(argc, argv); + argc -= optind; + argv += optind; + + if (execname && stat(execname, &exec_stat)) + fatal("stat %s: %s", execname, strerror(errno)); + + if (userspec && sscanf(userspec, "%d", &user_id) != 1) { + struct passwd *pw; + + pw = getpwnam(userspec); + if (!pw) + fatal("user `%s' not found\n", userspec); + + user_id = pw->pw_uid; + } + + if (changegroup && sscanf(changegroup, "%d", &runas_gid) != 1) { + struct group *gr = getgrnam(changegroup); + if (!gr) + fatal("group `%s' not found\n", changegroup); + runas_gid = gr->gr_gid; + } + if (changeuser && sscanf(changeuser, "%d", &runas_uid) != 1) { + struct passwd *pw = getpwnam(changeuser); + if (!pw) + fatal("user `%s' not found\n", changeuser); + runas_uid = pw->pw_uid; + if (changegroup == NULL) { /* pass the default group of this user */ + changegroup = ""; /* just empty */ + runas_gid = pw->pw_gid; + } + } + + if (stop) { + int i = run_stop_schedule(); + exit(i); + } + + do_findprocs(); + + if (found) { + if (quietmode <= 0) + printf("%s already running.\n", execname); + exit(exitnodo); + } + if (testmode) { + printf("Would start %s ", startas); + while (argc-- > 0) + printf("%s ", *argv++); + if (changeuser != NULL) { + printf(" (as user %s[%d]", changeuser, runas_uid); + if (changegroup != NULL) + printf(", and group %s[%d])", changegroup, runas_gid); + else + printf(")"); + } + if (changeroot != NULL) + printf(" in directory %s", changeroot); + if (nicelevel) + printf(", and add %i to the priority", nicelevel); + printf(".\n"); + exit(0); + } + if (quietmode < 0) + printf("Starting %s...\n", startas); + *--argv = startas; + if (changeroot != NULL) { + if (chdir(changeroot) < 0) + fatal("Unable to chdir() to %s", changeroot); + if (chroot(changeroot) < 0) + fatal("Unable to chroot() to %s", changeroot); + } + if (changeuser != NULL) { + if (setgid(runas_gid)) + fatal("Unable to set gid to %d", runas_gid); + if (initgroups(changeuser, runas_gid)) + fatal("Unable to set initgroups() with gid %d", runas_gid); + if (setuid(runas_uid)) + fatal("Unable to set uid to %s", changeuser); + } + + if (background) { /* ok, we need to detach this process */ + int i, fd; + if (quietmode < 0) + printf("Detatching to start %s...", startas); + i = fork(); + if (i<0) { + fatal("Unable to fork.\n"); + } + if (i) { /* parent */ + if (quietmode < 0) + printf("done.\n"); + exit(0); + } + /* child continues here */ + /* now close all extra fds */ + for (i=getdtablesize()-1; i>=0; --i) close(i); + /* change tty */ + fd = open("/dev/tty", O_RDWR); + ioctl(fd, TIOCNOTTY, 0); + close(fd); + chdir("/"); + umask(022); /* set a default for dumb programs */ + setpgid(0,0); /* set the process group */ + fd=open("/dev/null", O_RDWR); /* stdin */ + dup(fd); /* stdout */ + dup(fd); /* stderr */ + } + if (nicelevel) { + errno = 0; + if (nice(nicelevel) < 0 && errno) + fatal("Unable to alter nice level by %i: %s", nicelevel, + strerror(errno)); + } + if (mpidfile && pidfile != NULL) { /* user wants _us_ to make the pidfile :) */ + FILE *pidf = fopen(pidfile, "w"); + pid_t pidt = getpid(); + if (pidf == NULL) + fatal("Unable to open pidfile `%s' for writing: %s", pidfile, + strerror(errno)); + fprintf(pidf, "%d\n", pidt); + fclose(pidf); + } + set_namespaces(); + execv(startas, argv); + fatal("Unable to start %s: %s", startas, strerror(errno)); +} diff --git a/talimatname/genel/s/start-stop-daemon/talimat b/talimatname/genel/s/start-stop-daemon/talimat new file mode 100644 index 000000000..837390a6e --- /dev/null +++ b/talimatname/genel/s/start-stop-daemon/talimat @@ -0,0 +1,16 @@ +# Tanım: sistem servislerinin kontrol programı +# URL: http://man7.org/linux/man-pages/man8/start-stop-daemon.8.html +# Paketçi: milisarge +# Gerekler: + +isim=start-stop-daemon +surum=1.0 +devir=1 +kaynak=(start-stop-daemon.c start-stop-daemon.8 ornek_servis makefile) + +derle() { + make + install -d $PKG/{sbin,usr/share/man/man8} + install -m 755 $isim $PKG/sbin/ + install -m 644 $isim.8 $PKG/usr/share/man/man8/ +} diff --git a/talimatname/genel/s/startup-notification/talimat b/talimatname/genel/s/startup-notification/talimat new file mode 100644 index 000000000..b3f9fcd8d --- /dev/null +++ b/talimatname/genel/s/startup-notification/talimat @@ -0,0 +1,20 @@ +# Tanım: Uygulama başlatmayı izleme ve görüntüleme +# URL: http://freedesktop.org/wiki/Software/startup-notification +# Paketçi: milisarge +# Gerekler: xorg-libx11 xcb-util + +isim=startup-notification +surum=0.12 +devir=1 + +kaynak=(http://www.freedesktop.org/software/$isim/releases/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/s/steghide/climit.diff b/talimatname/genel/s/steghide/climit.diff new file mode 100644 index 000000000..a7e54f51c --- /dev/null +++ b/talimatname/genel/s/steghide/climit.diff @@ -0,0 +1,11 @@ +diff -ruN steghide-0.5.1.orig/src/Graph.cc steghide-0.5.1/src/Graph.cc +--- steghide-0.5.1.orig/src/Graph.cc 2003-10-11 23:54:26.000000000 +0200 ++++ steghide-0.5.1/src/Graph.cc 2008-12-14 14:23:27.000000000 +0100 +@@ -22,6 +22,7 @@ + #include + #include + #include ++#include + + #include "BitString.h" + #include "CvrStgFile.h" diff --git a/talimatname/genel/s/steghide/float-constexpr.diff b/talimatname/genel/s/steghide/float-constexpr.diff new file mode 100644 index 000000000..7c5fb3a91 --- /dev/null +++ b/talimatname/genel/s/steghide/float-constexpr.diff @@ -0,0 +1,24 @@ +diff -urN a/src/Arguments.h b/src/Arguments.h +--- a/src/Arguments.h 2017-02-25 20:00:52.071294580 +0100 ++++ b/src/Arguments.h 2017-02-25 20:02:45.312061439 +0100 +@@ -100,7 +100,7 @@ + static const VERBOSITY Default_Verbosity = NORMAL ; + static const unsigned long Default_Radius = 0 ; // there is no default radius for all file formats + static const unsigned int Max_Algorithm = 3 ; +- static const float Default_Goal = 100.0 ; ++ static constexpr float Default_Goal = 100.0 ; + static const DEBUGCOMMAND Default_DebugCommand = NONE ; + static const bool Default_Check = false ; + static const unsigned int Default_DebugLevel = 0 ; +diff -urN a/src/ProgressOutput.h b/src/ProgressOutput.h +--- a/src/ProgressOutput.h 2017-02-25 20:00:52.071294580 +0100 ++++ b/src/ProgressOutput.h 2017-02-25 20:03:13.528919155 +0100 +@@ -64,7 +64,7 @@ + **/ + void done (float rate, float avgweight = NoAvgWeight) const ; + +- static const float NoAvgWeight = -1.0 ; ++ static constexpr float NoAvgWeight = -1.0 ; + + protected: + std::string vcompose (const char *msgfmt, va_list ap) const ; diff --git a/talimatname/genel/s/steghide/talimat b/talimatname/genel/s/steghide/talimat new file mode 100644 index 000000000..c95606207 --- /dev/null +++ b/talimatname/genel/s/steghide/talimat @@ -0,0 +1,22 @@ +# Tanım: Ses ve resim dosyaları içinde veri gizleme uygulaması +# URL: http://steghide.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: mhash libmcrypt +# Grup: güvenlik + +isim=steghide +surum=0.5.1 +devir=1 +kaynak=(http://downloads.sourceforge.net/$isim/$isim-$surum.tar.bz2 + float-constexpr.diff + climit.diff + template-headers.diff) + +derle() { + cd $isim-$surum + cat $SRC/*.diff | patch -Np1 + CONFIG_SHELL=/bin/bash CXX='g++ -std=c++11' ./configure --prefix=/usr --mandir=/usr/share/man + make + make DESTDIR=$PKG PREFIX=/usr MANDIR=/usr/share/man install + rm -rf $PKG/usr/share/{doc,locale} +} diff --git a/talimatname/genel/s/steghide/template-headers.diff b/talimatname/genel/s/steghide/template-headers.diff new file mode 100644 index 000000000..36848dd4c --- /dev/null +++ b/talimatname/genel/s/steghide/template-headers.diff @@ -0,0 +1,75 @@ +diff -Naur steghide-0.5.1.orig/src/AuData.h steghide-0.5.1.new/src/AuData.h +--- steghide-0.5.1.orig/src/AuData.h 2003-09-28 11:30:29.000000000 -0400 ++++ steghide-0.5.1.new/src/AuData.h 2007-06-28 17:22:44.000000000 -0400 +@@ -26,22 +26,30 @@ + + // AuMuLawAudioData + typedef AudioDataImpl AuMuLawAudioData ; ++template<> + inline BYTE AuMuLawAudioData::readValue (BinaryIO* io) const { return (io->read8()) ; } ++template<> + inline void AuMuLawAudioData::writeValue (BinaryIO* io, BYTE v) const { io->write8(v) ; } + + // AuPCM8AudioData + typedef AudioDataImpl AuPCM8AudioData ; ++template<> + inline SBYTE AuPCM8AudioData::readValue (BinaryIO* io) const { return ((SBYTE) io->read8()) ; } ++template<> + inline void AuPCM8AudioData::writeValue (BinaryIO* io, SBYTE v) const { io->write8((BYTE) v) ; } + + // AuPCM16AudioData + typedef AudioDataImpl AuPCM16AudioData ; ++template<> + inline SWORD16 AuPCM16AudioData::readValue (BinaryIO* io) const { return ((SWORD16) io->read16_be()) ; } ++template<> + inline void AuPCM16AudioData::writeValue (BinaryIO* io, SWORD16 v) const { io->write16_be((UWORD16) v) ; } + + // AuPCM32AudioData + typedef AudioDataImpl AuPCM32AudioData ; ++template<> + inline SWORD32 AuPCM32AudioData::readValue (BinaryIO* io) const { return ((SWORD32) io->read32_be()) ; } ++template<> + inline void AuPCM32AudioData::writeValue (BinaryIO* io, SWORD32 v) const { io->write32_be((UWORD32) v) ; } + + #endif // ndef SH_AUDATA_H +diff -Naur steghide-0.5.1.orig/src/AuSampleValues.cc steghide-0.5.1.new/src/AuSampleValues.cc +--- steghide-0.5.1.orig/src/AuSampleValues.cc 2003-09-28 11:30:30.000000000 -0400 ++++ steghide-0.5.1.new/src/AuSampleValues.cc 2007-06-28 17:23:52.000000000 -0400 +@@ -21,17 +21,25 @@ + #include "AuSampleValues.h" + + // AuMuLawSampleValue ++template<> + const BYTE AuMuLawSampleValue::MinValue = 0 ; ++template<> + const BYTE AuMuLawSampleValue::MaxValue = BYTE_MAX ; + + // AuPCM8SampleValue ++template<> + const SBYTE AuPCM8SampleValue::MinValue = SBYTE_MIN ; ++template<> + const SBYTE AuPCM8SampleValue::MaxValue = SBYTE_MAX ; + + // AuPCM16SampleValue ++template<> + const SWORD16 AuPCM16SampleValue::MinValue = SWORD16_MIN ; ++template<> + const SWORD16 AuPCM16SampleValue::MaxValue = SWORD16_MAX ; + + // AuPCM32SampleValue ++template<> + const SWORD32 AuPCM32SampleValue::MinValue = SWORD32_MIN ; ++template<> + const SWORD32 AuPCM32SampleValue::MaxValue = SWORD32_MAX ; +diff -Naur steghide-0.5.1.orig/src/MHashPP.cc steghide-0.5.1.new/src/MHashPP.cc +--- steghide-0.5.1.orig/src/MHashPP.cc 2003-10-05 06:17:50.000000000 -0400 ++++ steghide-0.5.1.new/src/MHashPP.cc 2007-06-28 17:22:44.000000000 -0400 +@@ -120,7 +120,7 @@ + + std::string MHashPP::getAlgorithmName (hashid id) + { +- char *name = mhash_get_hash_name (id) ; ++ char *name = (char *) mhash_get_hash_name (id) ; + std::string retval ; + if (name == NULL) { + retval = std::string ("") ; diff --git a/talimatname/genel/s/stfl/talimat b/talimatname/genel/s/stfl/talimat new file mode 100644 index 000000000..5e98b5cee --- /dev/null +++ b/talimatname/genel/s/stfl/talimat @@ -0,0 +1,15 @@ +# Tanım: Metin terminalleri için curses tabanlı bir widget seti uygulayan kütüphane +# URL: http://www.clifford.at/stfl +# Paketçi: milisarge +# Gerekler: ncurses + +isim=stfl +surum=0.24 +devir=1 +kaynak=(http://www.clifford.at/$isim/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + sed -i 's|ncursesw/||' stfl_internals.h + make prefix=/usr FOUND_SWIG=0 DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/stopwatch/talimat b/talimatname/genel/s/stopwatch/talimat new file mode 100644 index 000000000..fadea2d3e --- /dev/null +++ b/talimatname/genel/s/stopwatch/talimat @@ -0,0 +1,16 @@ +# Tanım: Elle zamanlamayı fiziksel bir kronometrede olduğu gibi sağlar. Geri sayım sayacı olarak da kullanılabilir. +# URL: http://expect.sourceforge.net/stopwatch/ +# Paketçi: milisarge +# Gerekler: tcl tk + +isim=stopwatch +surum=3.4 +devir=1 +kaynak=(http://expect.sourceforge.net/$isim/$isim.tar.gz) + +derle() { + cd $isim-$surum + sed -i -e 's/depot\/path/usr\/bin/g' stopwatch + install -D -m0755 $isim $PKG/usr/sbin/$isim + +} diff --git a/talimatname/genel/s/strace/talimat b/talimatname/genel/s/strace/talimat new file mode 100644 index 000000000..831033ce2 --- /dev/null +++ b/talimatname/genel/s/strace/talimat @@ -0,0 +1,17 @@ +# Tanım: Sistem çağrı izleme programı (iz, makas, vb. gibi) +# URL: http://sourceforge.net/projects/strace/ +# Paketçi: milisarge +# Gerekler: libunwind + +isim=strace +surum=4.12 +devir=1 +kaynak=(http://download.sourceforge.net/$isim/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --with-libunwind + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/strigi/talimat b/talimatname/genel/s/strigi/talimat new file mode 100644 index 000000000..ee5637d01 --- /dev/null +++ b/talimatname/genel/s/strigi/talimat @@ -0,0 +1,25 @@ +# Tanım: Qt GUI ile hızlı tarama masaüstü arama motoru +# URL: http://strigi.sourceforge.net +# Paketçi: milisarge +# Gerekler: curl qt4 exiv2 ffmpeg libxml2 + +isim=strigi +surum=0.7.8 +devir=2 + +kaynak=( http://www.vandenoever.info/software/$isim/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum +sed -i "s/BufferedStream :/STREAMS_EXPORT &/" libstreams/include/strigi/bufferedstream.h +mkdir build +cd build +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_BUILD_TYPE=Release \ + -DENABLE_CLUCENE=OFF \ + -DENABLE_CLUCENE_NG=OFF \ + .. +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/stunnel/cert-openssl.patch b/talimatname/genel/s/stunnel/cert-openssl.patch new file mode 100644 index 000000000..ef37d2aa6 --- /dev/null +++ b/talimatname/genel/s/stunnel/cert-openssl.patch @@ -0,0 +1,12 @@ +diff -rupN a/tools/makecert.sh b/tools/makecert.sh +--- a/tools/makecert.sh 2015-10-24 18:53:23.000000000 +0200 ++++ b/tools/makecert.sh 2015-11-25 05:05:53.936591000 +0100 +@@ -7,7 +7,7 @@ else + fi + + if test -n "$2"; then +- OPENSSL="$2/bin/openssl" ++ OPENSSL="/bin/openssl" + else + OPENSSL=openssl + fi diff --git a/talimatname/genel/s/stunnel/stunnel.conf b/talimatname/genel/s/stunnel/stunnel.conf new file mode 100644 index 000000000..b17220088 --- /dev/null +++ b/talimatname/genel/s/stunnel/stunnel.conf @@ -0,0 +1,21 @@ +; File: /etc/stunnel/stunnel.conf + +; Note: The pid and output locations are relative to the chroot location. + +pid = /run/stunnel.pid +chroot = /var/lib/stunnel +client = no +setuid = stunnel +setgid = stunnel +cert = /etc/stunnel/stunnel.pem + +;debug = 7 +;output = stunnel.log + +;[https] +;accept = 443 +;connect = 80 +;; "TIMEOUTclose = 0" is a workaround for a design flaw in Microsoft SSL +;; Microsoft implementations do not use SSL close-notify alert and thus +;; they are vulnerable to truncation attacks +;TIMEOUTclose = 0 diff --git a/talimatname/genel/s/stunnel/stunnel.kos-kur b/talimatname/genel/s/stunnel/stunnel.kos-kur new file mode 100644 index 000000000..8baa518d8 --- /dev/null +++ b/talimatname/genel/s/stunnel/stunnel.kos-kur @@ -0,0 +1,7 @@ +if [ -z "`grep '^stunnel:' etc/group`" ]; then + groupadd -g 51 stunnel +fi +if [ -z "`grep '^stunnel:' etc/passwd`" ]; then + useradd -c "stunnel Daemon" -d /var/lib/stunnel \ + -g stunnel -s /bin/false -u 51 stunnel +fi diff --git a/talimatname/genel/s/stunnel/stunnel.kur-kos b/talimatname/genel/s/stunnel/stunnel.kur-kos new file mode 100644 index 000000000..b67531cd3 --- /dev/null +++ b/talimatname/genel/s/stunnel/stunnel.kur-kos @@ -0,0 +1,2 @@ +install -v -m750 -o stunnel -g stunnel -d var/lib/stunnel/run +chown stunnel:stunnel var/lib/stunnel diff --git a/talimatname/genel/s/stunnel/talimat b/talimatname/genel/s/stunnel/talimat new file mode 100644 index 000000000..6ee05cf51 --- /dev/null +++ b/talimatname/genel/s/stunnel/talimat @@ -0,0 +1,37 @@ +# Tanım: Güvenli kanallar üzerinden iletişim kurabilmeniz için SSL içindeki keyfi TCP bağlantılarını şifreleyin +# URL: http://www.stunnel.org +# Paketçi: milisarge +# Gerekler: + +isim=stunnel +surum=5.26 +devir=2 + +kaynak=(ftp://ftp.stunnel.org/stunnel/archive/5.x/$isim-$surum.tar.gz cert-openssl.patch stunnel.conf) + +derle() { + + cd $isim-$surum + + patch -p1 -i $SRC/cert-openssl.patch + + source /etc/blfs-bootscripts + wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2 + tar xvf $scripts-$scriptsversion.tar.bz2 + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-systemd + make + + make DESTDIR=$PKG install + + make DESTDIR=$PKG cert + + cd $scripts-$scriptsversion + make DESTDIR=$PKG install-stunnel + + install -v -m750 -d $PKG/etc/stunnel + cp -v $SRC/stunnel.conf $PKG/etc/stunnel/stunnel.conf + +} diff --git a/talimatname/genel/s/sublime-text/talimat b/talimatname/genel/s/sublime-text/talimat new file mode 100644 index 000000000..185f02cc3 --- /dev/null +++ b/talimatname/genel/s/sublime-text/talimat @@ -0,0 +1,20 @@ +# Tanım: Geliştiriciler için sofistike text editörü +# URL: https://www.sublimetext.com +# Paketçi: milisarge +# Gerekler: desktop-file-utils libpng gtk2 + +isim=sublime-text +surum=3 +devir=2 +kaynak=(https://download.sublimetext.com/sublime_text_3_build_3143_x64.tar.bz2) + +derle() { + cd $SRC/sublime_text_3 + + mkdir -p $PKG/usr/share/applications/ + mkdir -p $PKG/opt/sublime_text/ + + mv sublime_text.desktop $PKG/usr/share/applications/ + mv -v * $PKG/opt/sublime_text/ + rm $PKG/opt/sublime_text/python3.3.zip +} diff --git a/talimatname/genel/s/subversion/talimat b/talimatname/genel/s/subversion/talimat new file mode 100644 index 000000000..ef11c7ae8 --- /dev/null +++ b/talimatname/genel/s/subversion/talimat @@ -0,0 +1,27 @@ +# Tanım: Bir sürüm kontrol sistemi (CVS değiştirme) +# URL: http://subversion.apache.org +# Paketçi: milisarge@gmail.com +# Gerekler: apr serf cyrus-sasl + +isim=subversion +surum=1.9.3 +devir=1 +kaynak=(http://www.apache.org/dist/$isim/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + + ./configure --prefix=/usr \ + --with-apr=/usr \ + --with-apr-util=/usr \ + --without-swig \ + --without-apxs \ + --disable-mod-activation \ + --disable-nls + + make + make -j1 DESTDIR=$PKG install + + # Makeinfo mevcut olduğunda bilgi sayfaları oluşturuluyor gibi görünüyor + rm -rf $PKG/usr/info +} diff --git a/talimatname/genel/s/supercat/talimat b/talimatname/genel/s/supercat/talimat new file mode 100644 index 000000000..be0d1244b --- /dev/null +++ b/talimatname/genel/s/supercat/talimat @@ -0,0 +1,17 @@ +# Tanım: Supercat, düzenli ifadeleri/dizeleri/karakterleri eşleştirerek metni renklendiren bir programdır. +# URL: http://supercat.nosredna.net +# Paketçi: Cihan_Alkan +# Gerekler: +# Grup: sistem + +isim=supercat +surum=0.5.6 +devir=1 +kaynak=(http://supercat.nosredna.net/supercat-$surum.tar.gz) + +derle() { + cd supercat-${surum} + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/supertux/talimat b/talimatname/genel/s/supertux/talimat new file mode 100644 index 000000000..d6fb28afc --- /dev/null +++ b/talimatname/genel/s/supertux/talimat @@ -0,0 +1,20 @@ +# Tanım: Bir zamanların efsane oyunu SuperMario benzeri bir oyun +# URL: http://supertux.github.io/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: sdl2-image physfs openal libogg libvorbis glew glbinding cmake boost + +isim=supertux +surum=0.5.1 +devir=1 +kaynak=(https://github.com/SuperTux/supertux/releases/download/v$surum/SuperTux-v$surum-Source.tar.gz) + +derle() { + cd SuperTux-v$surum-Source + cmake . \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DINSTALL_SUBDIR_BIN=bin \ + -DCMAKE_BUILD_TYPE=Release + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/supertuxkart/talimat b/talimatname/genel/s/supertuxkart/talimat new file mode 100644 index 000000000..3e21c5171 --- /dev/null +++ b/talimatname/genel/s/supertuxkart/talimat @@ -0,0 +1,30 @@ +# Tanım: 3D kart yarış oyunu +# URL: http://supertuxkart.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: cmake setconf bluez subversion xorg-mesa imagemagick openal libvorbis fribidi xorg-libxrandr xorg-glu + +isim=supertuxkart +surum=0.9.2 +devir=1 +kaynak=(http://downloads.sourceforge.net/$isim/$isim-$surum-src.tar.xz) + +derle() { + cd ${SRC}/supertuxkart-${surum} + + _fn="data/${isim}.desktop" + setconf "$_fn" Exec "$isim" + setconf "$_fn" TryExec "$isim" + setconf "$_fn" Icon "$isim"_128 + + [[ -d build ]] && rm -r build + mkdir build && cd build + + cmake .. \ + -DIRRLICHT_DIR="$SRC/irrlicht" \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_CXX_FLAGS="-lpthread -lm -ldl $CXXFLAGS -std=gnu++98" + + make + make DESTDIR=${PKG} install +} diff --git a/talimatname/genel/s/sweeper/talimat b/talimatname/genel/s/sweeper/talimat new file mode 100644 index 000000000..5fd514f6a --- /dev/null +++ b/talimatname/genel/s/sweeper/talimat @@ -0,0 +1,23 @@ +# Tanım: Sistem Temizleyici +# URL: https://kde.org/applications/utilities/sweeper +# Paketçi: Cihan Alkan +# Gerekler: kf5-kio kf5-kactivities-stats +# Grup: sistem + +isim=sweeper +surum=17.12.0 +devir=1 +kaynak=(https://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + + mkdir -p build + cd build + cmake ../sweeper-$surum \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_TESTING=OFF + make + + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/s/sweethome3d/talimat b/talimatname/genel/s/sweethome3d/talimat new file mode 100644 index 000000000..b583661b7 --- /dev/null +++ b/talimatname/genel/s/sweethome3d/talimat @@ -0,0 +1,120 @@ +# Tanım: Evinizin planını 3D ortamda çizmek için bir iç mekan tasarımı uygulaması +# URL: http://www.sweethome3d.com/ +# Paketçi: Oltulu +# Gerekler: shared-mime-info desktop-file-utils xorg-libxext xorg-libxrender openjdk +# Grup: grafik_tasarım + +isim=sweethome3d +surum=5.6 +devir=1 +kaynak=(http://downloads.sourceforge.net/${isim}/SweetHome3D-${surum}-linux-x64.tgz::SweetHome3D-${surum}-linux-x64.tgz) + +derle() { + cd $SRC + +# Başlatıcı +mkdir -pv $PKG/usr/share/applications && +cat > $PKG/usr/share/applications/$isim.desktop << "EOF" && +[Desktop Entry] +Version=1.0 +Type=Application +Name=Sweet Home 3D +Comment=Bir iç tasarım uygulaması +TryExec=sweethome3d +Exec=sweethome3d %f +Icon=sweethome3d +Categories=Graphics;Office;Java; +StartupWMClass=com-eteks-sweethome3d-SweetHome3D +MimeType=application/x-sweethome3d + +EOF + +# SH +mkdir -pv $PKG/usr/bin && +cat > $PKG/usr/bin/$isim << "EOF" && +#!/bin/sh + +APP_CLASSPATH="" +JAVA_EXEC="" +JAVA_OPTS="${JAVA_OPTS} -Xmx1024m" + +if [ -n "${JAVA_HOME}" ] +then + if [ -x "${JAVA_HOME}/bin/java" ] + then + JAVA_EXEC="${JAVA_HOME}/bin/java" + fi +else + JAVA_EXEC="$(which java)" +fi + +if [ -z "${JAVA_EXEC}" ] +then + echo "No 'java' executable can be found, please set JAVA_HOME variable or" + echo "use the 'archlinux-java' script to set the Java version." + exit 1 +fi + +# Build classpath +APP_CLASSPATH="SweetHome3D.jar:Furniture.jar:Textures.jar:Help.jar:iText-2.1.7.jar:freehep-vectorgraphics-svg-2.1.1b.jar:sunflow-0.07.3i.jar:jmf.jar:batik-svgpathparser-1.7.jar" +if [ "${SWEETHOME3D_JAVA3D}" = "1.5" ] +then + JAVA_OPTS="${JAVA_OPTS} -Djava.library.path=/usr/lib/sweethome3d/java3d-1.5" + APP_CLASSPATH="${APP_CLASSPATH}:/usr/lib/sweethome3d/java3d-1.5/j3dcore.jar:/usr/lib/sweethome3d/java3d-1.5/j3dutils.jar:/usr/lib/sweethome3d/java3d-1.5/vecmath.jar" +else + JAVA_OPTS="${JAVA_OPTS} -Djava.library.path=/usr/lib/sweethome3d/java3d-1.6 -Djogamp.gluegen.UseTempJarCache=false" + APP_CLASSPATH="${APP_CLASSPATH}:/usr/lib/sweethome3d/java3d-1.6/j3dcore.jar:/usr/lib/sweethome3d/java3d-1.6/j3dutils.jar:/usr/lib/sweethome3d/java3d-1.6/vecmath.jar:/usr/lib/sweethome3d/java3d-1.6/gluegen-rt.jar:/usr/lib/sweethome3d/java3d-1.6/jogl-java3d.jar" +fi +APP_CLASSPATH="${APP_CLASSPATH}:javaws.jar" + +cd "/usr/share/java/sweethome3d" + +exec "${JAVA_EXEC}" \ + -classpath "${APP_CLASSPATH}" \ + ${JAVA_OPTS} \ + -Dcom.eteks.sweethome3d.applicationId=SweetHome3D#Installer \ + com.eteks.sweethome3d.SweetHome3D \ + -open "$1" + +EOF + +# Xml +mkdir -pv $PKG/usr/share/mime/packages && +cat > $PKG/usr/share/mime/packages/$isim.xml << "EOF" && + + + + Sweet Home 3D project + + + + +EOF + + # Lisansları kur + cd "SweetHome3D-${surum}" + install -m 755 -d "${PKG}/usr/share/licenses/${isim}" + install -m 755 -t "${PKG}/usr/share/licenses/${isim}" THIRDPARTY-LICENSE-* + # Install icon + install -m 644 -D "SweetHome3DIcon.png" "${PKG}/usr/share/pixmaps/${isim}.png" + # Install javaws.jar from jre8 + install -m 755 -d "${PKG}/usr/share/java/${isim}" + install -m 644 -t "${PKG}/usr/share/java/${isim}" jre8/lib/javaws.jar + # Install main program and libraries + cd "lib" + install -m 644 -t "${PKG}/usr/share/java/${isim}" *.jar + # Java3D 1.5 kütüphanesi + install -m 755 -d "${PKG}/usr/lib/${isim}/java3d-1.5" + mv -t "${PKG}/usr/lib/${isim}/java3d-1.5" \ + "${PKG}"/usr/share/java/${isim}/{j3dcore.jar,j3dutils.jar,vecmath.jar} + install -m 755 -t "${PKG}/usr/lib/${isim}/java3d-1.5" libj3dcore-ogl.so + # Java3D 1.6 kütüphanesi + install -m 755 -d "${PKG}/usr/lib/${isim}/java3d-1.6" + install -m 644 -t "${PKG}/usr/lib/${isim}/java3d-1.6" java3d-1.6/*.jar + install -m 755 -t "${PKG}/usr/lib/${isim}/java3d-1.6" java3d-1.6/*.so + +chmod 755 $PKG/usr/share/applications/$isim.desktop +chmod 644 ${PKG}/usr/share/mime/packages/${isim}.xml +chmod 755 ${PKG}/usr/bin/$isim +chmod +x ${PKG}/usr/bin/$isim +} diff --git a/talimatname/genel/s/swi-prolog/talimat b/talimatname/genel/s/swi-prolog/talimat new file mode 100644 index 000000000..68aac1887 --- /dev/null +++ b/talimatname/genel/s/swi-prolog/talimat @@ -0,0 +1,22 @@ +# Tanım: Prolog environment +# URL: http://www.swi-prolog.org/ +# Paketçi: milisarge +# Gerekler: libjpeg-turbo xorg-libxft xorg-libxinerama xorg-libxpm unixodbc +# Grup: geliştirme + +isim=swi-prolog +surum=7.6.4 +devir=1 +kaynak=(http://www.swi-prolog.org/download/stable/src/swipl-${surum/_/-}.tar.gz +) + +derle() { + cd "swipl-${surum/_/-}" + ./configure --with-world --prefix=/usr + (cd src; ./configure --enable-readline --prefix=/usr) + make + make -C "$SRC/swipl-${surum/_/-}" check || true + make -C "$SRC/swipl-${surum/_/-}" DESTDIR="$PKG" install + # Fix for FS#20873 + chmod +x "$PKG/usr/lib/swipl-${surum/_/-}/library/dialect/sicstus/swipl-lfr.pl" +} diff --git a/talimatname/genel/s/swig/talimat b/talimatname/genel/s/swig/talimat new file mode 100644 index 000000000..a6b0312b1 --- /dev/null +++ b/talimatname/genel/s/swig/talimat @@ -0,0 +1,18 @@ +# Tanım: SWIG Basitleştirilmiş Sarmalayıcı ve Arayüz Jeneratörü +# URL: http://www.swig.org/ +# Paketçi: milisarge +# Gerekler: pcre + +isim=swig +surum=3.0.12 +devir=1 + +kaynak=("http://downloads.sourceforge.net/$isim/$isim-$surum.tar.gz") + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install + install -D -m644 LICENSE $PKG/usr/share/licenses/$isim/LICENSE +} diff --git a/talimatname/genel/s/sxhkd/sxhkd.kurkos b/talimatname/genel/s/sxhkd/sxhkd.kurkos new file mode 100644 index 000000000..aa4ba638f --- /dev/null +++ b/talimatname/genel/s/sxhkd/sxhkd.kurkos @@ -0,0 +1,3 @@ +mkdir -p ~/.config/sxhkd +cp /sources/milis.git/talimatname/genel/sxhkd/sxhkdrc ~/.config/sxhkd +echo "~/.config/sxhkd altındaki ayar dosyasına bakınız." diff --git a/talimatname/genel/s/sxhkd/sxhkdrc b/talimatname/genel/s/sxhkd/sxhkdrc new file mode 100644 index 000000000..8297d86ce --- /dev/null +++ b/talimatname/genel/s/sxhkd/sxhkdrc @@ -0,0 +1,4 @@ +super + Escape + notify-send merhaba +super + F2 + notify-send gülegüle diff --git a/talimatname/genel/s/sxhkd/talimat b/talimatname/genel/s/sxhkd/talimat new file mode 100644 index 000000000..65d5b2d34 --- /dev/null +++ b/talimatname/genel/s/sxhkd/talimat @@ -0,0 +1,19 @@ +# Tanım: Sxhkd, komutları çalıştırarak girdi olaylarına tepki veren bir X arka plan programıdır. +# URL: https://github.com/baskerville/sxhkd +# Paketçi: milisarge +# Gerekler: libxcb xcb-util xcb-util-wm xcb-util-keysyms + +isim=sxhkd +surum=0.5.8 +devir=1 + +kaynak=(https://github.com/baskerville/sxhkd/archive/$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + make PREFIX=/usr + make PREFIX=/usr DESTDIR="$PKG" install +} + + + diff --git a/talimatname/genel/s/sxiv/sxiv.giflib.patch b/talimatname/genel/s/sxiv/sxiv.giflib.patch new file mode 100644 index 000000000..54115553f --- /dev/null +++ b/talimatname/genel/s/sxiv/sxiv.giflib.patch @@ -0,0 +1,15 @@ +diff -rupN a/image.c b/image.c +--- a/image.c 2014-04-24 20:40:26.000000000 +0200 ++++ b/image.c 2014-05-27 11:39:41.786715632 +0200 +@@ -278,7 +278,11 @@ bool img_load_gif(img_t *img, const file + } + } while (rec != TERMINATE_RECORD_TYPE); + ++#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5 && GIFLIB_MINOR >= 1 ++ DGifCloseFile(gif, NULL); ++#else + DGifCloseFile(gif); ++#endif + + if (err && !file->loaded) + warn("corrupted gif file: %s", file->name); diff --git a/talimatname/genel/s/sxiv/talimat b/talimatname/genel/s/sxiv/talimat new file mode 100644 index 000000000..769bd5f13 --- /dev/null +++ b/talimatname/genel/s/sxiv/talimat @@ -0,0 +1,22 @@ +# Tanım: Basit X resim görüntüleyici. +# URL: https://github.com/muennich/sxiv +# Paketçi: milisarge +# Gerekler: desktop-file-utils hicolor-icon-theme imlib2 + +isim=sxiv +surum=1.2 +devir=1 + +kaynak=( +https://github.com/muennich/sxiv/archive/v$surum.tar.gz +sxiv.giflib.patch) + +derle(){ + cd $isim-$surum + patch -p1 -i ../sxiv.giflib.patch + make + make PREFIX=/usr DESTDIR=$PKG install + make -C icon PREFIX=/usr DESTDIR=$PKG install + install -Dm644 sxiv.desktop \ + $PKG/usr/share/applications/sxiv.desktop +} diff --git a/talimatname/genel/s/sylpheed/sylpheed.kur-kos b/talimatname/genel/s/sylpheed/sylpheed.kur-kos new file mode 100644 index 000000000..21f842bd7 --- /dev/null +++ b/talimatname/genel/s/sylpheed/sylpheed.kur-kos @@ -0,0 +1 @@ +update-desktop-database -q diff --git a/talimatname/genel/s/sylpheed/talimat b/talimatname/genel/s/sylpheed/talimat new file mode 100644 index 000000000..4629a95a4 --- /dev/null +++ b/talimatname/genel/s/sylpheed/talimat @@ -0,0 +1,25 @@ +# Tanım: Hafif ve kullanıcı dostu e-posta istemcisi +# URL: http://sylpheed.sraoss.jp/en/ +# Paketçi: milisarge +# Gerekler: atk expat freetype glib libpng pcre cairo cyrus-sasl xorg-fontconfig libassuan libgpg-error openldap pango gtk2 gnupg gpgme desktop-file-utils + +isim=sylpheed +surum=3.6.0 +devir=1 + +kaynak=(http://sylpheed.sraoss.jp/sylpheed/v${surum%.*}/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --enable-static=no \ + --disable-gtkspell \ + --disable-gtktest \ + --disable-compface \ + --enable-gpgme \ + --enable-ssl \ + --enable-ldap + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/syndication/talimat b/talimatname/genel/s/syndication/talimat new file mode 100644 index 000000000..129d31a49 --- /dev/null +++ b/talimatname/genel/s/syndication/talimat @@ -0,0 +1,21 @@ +# Tanım: S/Atom ayrıştırıcı kitaplığı +# URL : https://projects.kde.org/syndication +# Paketçi: cihanAlkan +# Gerekler: kf5-extra-cmake-modules python kf5-kio + +isim=syndication +surum=17.12.0 +devir=1 + +kaynak=(http://download.kde.org/stable/applications/$surum/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/syntax-highlighting/talimat b/talimatname/genel/s/syntax-highlighting/talimat new file mode 100644 index 000000000..888b40a27 --- /dev/null +++ b/talimatname/genel/s/syntax-highlighting/talimat @@ -0,0 +1,23 @@ +# Tanım: Yapılandırılmış metin ve kod için sözdizimi vurgulama motoru +# URL: https://community.kde.org/Frameworks +# Paketçi: CihanAlkan +# Gerekler: kf5-extra-cmake-modules qt5 doxygen +# Grup: kde + +isim=syntax-highlighting +surum=5.41.0 +devir=1 +kaynak=(https://download.kde.org/stable/frameworks/${surum%.*}/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum + mkdir -p build + cd build +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=lib \ + -DBUILD_TESTING=OFF \ + -Wno-dev .. + make + make DESTDIR="${PKG}" install +} diff --git a/talimatname/genel/s/sysfsutils/talimat b/talimatname/genel/s/sysfsutils/talimat new file mode 100644 index 000000000..b363bd552 --- /dev/null +++ b/talimatname/genel/s/sysfsutils/talimat @@ -0,0 +1,17 @@ +# Tanım: Sysfs temelli sistem araçları +# URL: http://linux-diag.sourceforge.net/Sysfsutils.html +# Paketçi: milisarge +# Gerekler: + +isim=sysfsutils +surum=2.1.0 +devir=2 +kaynak=(http://downloads.sourceforge.net/project/linux-diag/$isim/$surum/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --mandir=/usr/share/man + make + make DESTDIR=$PKG install + rm -f $PKG/usr/bin/dlist_test +} diff --git a/talimatname/genel/s/syslinux/talimat b/talimatname/genel/s/syslinux/talimat new file mode 100644 index 000000000..7c608b663 --- /dev/null +++ b/talimatname/genel/s/syslinux/talimat @@ -0,0 +1,18 @@ +# Tanım: FAT, ext2 /3/4 ve btrfs dosya sistemlerinden, CD'lerden ve PXE'den önyükleme yapan önyükleyici yükleyicileri +# URL: http://syslinux.org +# Paketçi: milisarge +# Gerekler: mtools nasm + +isim=syslinux +surum=6.03 +devir=1 + +kaynak=(http://www.kernel.org/pub/linux/utils/boot/syslinux/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + sed -i "s|win32/syslinux.exe||g" Makefile + make || true + make SBINDIR=$PKG/usr/sbin BINDIR=$PKG/usr/bin INCDIR=$PKG/usr/include MANDIR=$PKG/usr/share/man AUXDIR=$PKG/usr/lib/syslinux install +} + diff --git a/talimatname/genel/s/sysstat/talimat b/talimatname/genel/s/sysstat/talimat new file mode 100644 index 000000000..4d87458f9 --- /dev/null +++ b/talimatname/genel/s/sysstat/talimat @@ -0,0 +1,20 @@ +# Tanım: Sistem performansını ve kullanım etkinliğini izlemek için kullanılan yardımcı programlar. +# URL: http://perso.wanadoo.fr/sebastien.godard +# Paketçi: milisarge +# Gerekler: + +isim=sysstat +surum=11.6.1 +devir=1 +kaynak=(http://perso.wanadoo.fr/sebastien.godard/sysstat-$surum.tar.xz) + +derle() { + cd $isim-$surum + sa_lib_dir=/usr/lib/sa \ + sa_dir=/var/log/sa \ + conf_dir=/etc/sysconfig \ + ./configure --prefix=/usr \ + --disable-file-attr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/system-config-printer/0001-Fix-constructing-the-auth-dialog.patch b/talimatname/genel/s/system-config-printer/0001-Fix-constructing-the-auth-dialog.patch new file mode 100644 index 000000000..a6dde49d1 --- /dev/null +++ b/talimatname/genel/s/system-config-printer/0001-Fix-constructing-the-auth-dialog.patch @@ -0,0 +1,31 @@ +From 2766d74a98e44693f5e966d541a6303b966c088b Mon Sep 17 00:00:00 2001 +Message-Id: <2766d74a98e44693f5e966d541a6303b966c088b.1518105780.git.jan.steffens@gmail.com> +From: "Jan Alexander Steffens (heftig)" +Date: Thu, 8 Feb 2018 17:01:01 +0100 +Subject: [PATCH] Fix constructing the auth dialog + +47973c80 (Remove deprecated Gtk objects) broke the auth dialog. + +Fixes https://bugs.archlinux.org/task/57364. +--- + authconn.py | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/authconn.py b/authconn.py +index 2a645dcc..0f3021cb 100644 +--- a/authconn.py ++++ b/authconn.py +@@ -78,11 +78,9 @@ class AuthDialog(Gtk.Dialog): + field = auth_info_required[i] + label = Gtk.Label (label=_(self.AUTH_FIELD.get (field, field))) + label.set_alignment (0, 0.5) +- grid.attach (label, 0, 1, i, i + 1) + grid.attach (label, 0, i, 1, 1) + entry = Gtk.Entry () + entry.set_visibility (field != 'password') +- grid.attach (entry, 1, 2, i, i + 1, 0, 0) + grid.attach (entry, 1, i, 1, 1) + self.field_entry.append (entry) + +-- +2.16.1 diff --git a/talimatname/genel/s/system-config-printer/talimat b/talimatname/genel/s/system-config-printer/talimat new file mode 100644 index 000000000..597497ffc --- /dev/null +++ b/talimatname/genel/s/system-config-printer/talimat @@ -0,0 +1,23 @@ +# Tanım: Bir CUPS yazıcı yapılandırma aracı ve durum uygulaması +# URL: https://github.com/zdohnal/system-config-printer +# Packager: Cihan_Alkan +# Gerekler: intltool xmlto docbook-xsl desktop-file-utils pychardet pycertifi pyidna libsecret pycups pydbus pycurl libnotify pyrequests python3-gobject gtk3 python3-cairo +# Grup: sistem + +isim=system-config-printer +surum=1.5.11 +devir=1 +kaynak=(https://github.com/zdohnal/system-config-printer/releases/download/$surum/system-config-printer-${surum}.tar.xz + 0001-Fix-constructing-the-auth-dialog.patch) + +derle() { + cd ${isim}-${surum} + patch -Np1 -i ../0001-Fix-constructing-the-auth-dialog.patch + + ./configure --prefix=/usr \ + --sbindir=/usr/bin \ + --sysconfdir=/etc \ + --with-udevdir=/usr/lib/udev --with-udev-rules + make + make DESTDIR="${PKG}" install +} diff --git a/talimatname/genel/s/system-tools-backends/talimat b/talimatname/genel/s/system-tools-backends/talimat new file mode 100644 index 000000000..a1c398f57 --- /dev/null +++ b/talimatname/genel/s/system-tools-backends/talimat @@ -0,0 +1,18 @@ +# Tanım: Sistem Araçları Arka Uçları, Linux ve diğer Unix sistemleri için bir dizi çapraz platform komut dosyasıdır. +# URL: http://www.gnome.org +# Paketçi: milisarge +# Gerekler: perl-xml-parser dbus-glib polkit + +isim=system-tools-backends +surum=2.10.2 +devir=1 + +kaynak=(http://download.gnome.org/sources/$isim/${surum%.*}/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--sysconfdir=/etc +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/s/systemtap/talimat b/talimatname/genel/s/systemtap/talimat new file mode 100644 index 000000000..0901f70cb --- /dev/null +++ b/talimatname/genel/s/systemtap/talimat @@ -0,0 +1,24 @@ +# Tanım: Çalışan Linux sistemi hakkında bilgi toplamanın basitleştirilmesi için altyapı. +# URL: http://sourceware.org/systemtap/ +# Paketçi: milisarge +# Gerekler: elfutils + +isim=systemtap +surum=2.9 +devir=1 +kaynak=(http://sourceware.org/$isim/ftp/releases/$isim-$surum.tar.gz) + +derle() { + + cd $isim-$surum + + ./configure \ + --prefix=/usr \ + --mandir=/usr/man \ + --libexecdir=/usr/lib \ + --disable-rpath \ + + make + make DESTDIR=$PKG install + +} diff --git a/talimatname/genel/s/sysv-rc-conf/sysv-rc-conf.pl b/talimatname/genel/s/sysv-rc-conf/sysv-rc-conf.pl new file mode 100755 index 000000000..a68146b3c --- /dev/null +++ b/talimatname/genel/s/sysv-rc-conf/sysv-rc-conf.pl @@ -0,0 +1,1226 @@ +#!/usr/bin/perl -w +# This program is distributed under the terms of the GNU General Public License +# +# This file is part of sysv-rc-conf. +# +# sysv-rc-conf is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# sysv-rc-conf is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with sysv-rc-conf; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# Copyright 2004 Joe Oppegaard +# +use strict; +use Getopt::Long qw(:config no_ignore_case); + +use Curses; +use Curses::UI; + +use constant { + BOTTOM_LAB_HEIGHT => 2, + BOTTOM_WIN_HEIGHT => 4, + DEFAULT_K_PRI => 80, + DEFAULT_S_PRI => 20, + LABEL_WIDTH => 10, + LIST_SN_LENGTH => 12, + LIST_SN_PAD => 1, + MAX_ROWS => 8, + TOP_LABEL_HEIGHT => 2, +}; + +my $VERSION = "0.98"; + +my %opts = ( + cache_dir => "/var/lib/sysv-rc-conf", + order => 'a', + priority => '', + root => '/', + show => '', + verbose => '', + chkcfg_levels => '2345', # default runlevels to affect if not specified + chkcfg_list => undef, + chkcfg_sn => '', + chkcfg_state => '', +); + +GetOptions("cache=s" => \$opts{cache_dir}, + "level=s" => \$opts{chkcfg_levels}, + "list:s" => \$opts{chkcfg_list}, + "order=s" => \$opts{order}, + "priority" => \$opts{priority}, + "root=s" => \$opts{root}, + "show=s" => \$opts{show}, + "verbose=s" => \$opts{verbose}, + "Version" => sub { print STDERR "$0 $VERSION\n"; exit; }, + ); + +my $runlevel_cmd = '/sbin/runlevel'; + +$opts{verbose} ||= "/dev/null"; +open VERBOSE, "> $opts{verbose}" or die "Can't open $opts{verbose} : $!"; + +my $etc_rc = $opts{root} . "/etc/rc.d/rc"; +my $initd = $opts{root} . "/etc/init.d"; + +my @rls = qw/ 1 2 3 4 5 7 8 9 0 6 S /; + +check_args(); +setup_cache_env(); + +my @show_rls = split //, $opts{show}; + +# Page index +my $current_screen = 0; + +# Page screens +my @s = (); + +# All the runlevel information +my %runlevels = runlevel_status(); + +list_output(%runlevels) if defined $opts{chkcfg_list}; +chkconfig_emulation(); + +my $cui = new Curses::UI( -clear_on_exit => 0, + -color_support => 1, + -default_colors => 1, + ) or die "Can't create base Curses::UI object"; + +create_bottom_box(); + +# Get the service names for each screen +my @snames_per_screen = split_services(); + +create_main_window(); + +my %box_pos = (x => '00', y => '00'); + +$cui->set_binding( \&toggle_help, "h" ); +$cui->set_binding( \&revert_changes, "r") ; +$cui->set_binding( sub { exit }, "q" ); + +$cui->set_binding( \&next_page, "\cN" ); +$cui->set_binding( \&prev_page, "\cP" ); + +$s[$current_screen]->focus(); + +$cui->mainloop(); + +#--- rc access and modification subs ---# +sub update_link +{ + my ($sn, $rl, $sk, $pri) = @_; + + if (defined $sn && defined $rl && defined $sk && defined $pri) { + if (-e "$etc_rc$rl.d/$sk$pri$sn") { + # The symlink we are trying to make already exists + return 'exists'; + } + } + + opendir (RL, "$etc_rc$rl.d") or die "$0: opendir $etc_rc$rl.d : $!"; + + foreach (grep { /[SK]\d\d$sn/i } readdir(RL)) { + verbose("rm $etc_rc$rl.d/$_"); + unlink "$etc_rc$rl.d/$_" + or die "Can't unlink $etc_rc$rl.d/$_ : $!"; + } + + # If in priority mode and are completely deleting the link, $sk will + # be empty. + return 1 if $sk eq ''; + + $pri = get_pri_cache($sn, $rl, $sk) unless $pri; + + unless ($pri =~ /^\d\d$/) { die "Priority isn't two numbers: $pri" } + unless ($sk =~ /^[SK]$/) { die "You have to use S or K to start a link" } + + verbose("symlink $initd/$sn $etc_rc$rl.d/$sk$pri$sn"); + # unlike ln relative symlinks are relative to the target file, not the cwd + symlink "../init.d/$sn", "$etc_rc$rl.d/$sk$pri$sn" + or die "Can't symlink $etc_rc$rl.d/$sk$pri$sn to ../init.d/$sn : $!\n"; +} + +sub usage +{ + print STDERR <] +USAGE +} + +sub chkconfig_emulation +{ + $opts{chkcfg_sn} = $ARGV[0] if defined $ARGV[0]; + $opts{chkcfg_state} = $ARGV[1] if defined $ARGV[1]; + + if ($opts{chkcfg_sn} && not $opts{chkcfg_state}) { + # Check to see if service is configured to run in current rl + # exit true if it is, false if not. + # See chkconfig(8) + my $current_rl = current_runlevel(); + if (exists $runlevels{$opts{chkcfg_sn}}{$current_rl}) { + if ($runlevels{$opts{chkcfg_sn}}{$current_rl} =~ /^S/) { + # Service is configured to start, exit true + exit 0; + } + } + exit 1; + } + + if ($opts{chkcfg_sn} && $opts{chkcfg_state}) { + my $sk = ''; + if ($opts{chkcfg_state} =~ /^on$/i) { + $sk = 'S'; + } + elsif ($opts{chkcfg_state} =~ /^off$/i) { + $sk = 'K'; + } + else { + usage(); + } + + foreach (split //, $opts{chkcfg_levels}) { + update_link($opts{chkcfg_sn}, $_, $sk, undef); + } + + exit 0; + } + + # Program isn't being called like chkconfig, so return to normal + # operation. + return 1; +} + +sub list_output +{ + my (%runlevels) = @_; + + # There was an argument to --list + my $opt_sn = $opts{chkcfg_list}; + foreach my $sn (sort keys %runlevels) { + my $output = substr $sn, 0, LIST_SN_LENGTH; + $output .= " " until length $output >= LIST_SN_LENGTH + LIST_SN_PAD; + + foreach my $rl (sort keys %{$runlevels{$sn}}) { + $output .= "$rl:"; + if ($runlevels{$sn}{$rl} =~ /^[Ss]/) { + $output .= "on"; + } + else { + $output .= "off"; + } + $output .= "\t"; + } + chop($output); + $output .= "\n"; + if ($opt_sn) { + print $output if $sn eq $opt_sn; + } + else { + print $output; + } + } + + exit 0; +} + +sub revert_changes +{ + # Lookup table + my %cache = (); + foreach my $scr (@s) { + for (my $i = 0; $i < max_services() ; $i++) { + for (my $j = 0; $j <= $#show_rls; $j++) { + my $obj = $scr->getobj(zero_pad($i).zero_pad($j)); + my $ud = $obj->userdata(); + + $cache{ $ud->{sn} }{ $ud->{runlevel} } = $obj; + } + } + } + + foreach my $sn (keys %runlevels) { + foreach my $rl (keys %{$runlevels{$sn}}) { + $runlevels{$sn}{$rl} =~ /^([SK])(\d\d)$/; + my ($sk, $pri) = ($1, $2); + + next if update_link($sn, $rl, $sk, $pri) eq 'exists'; + + if (exists($cache{$sn}{$rl})) { + my $box = $cache{$sn}{$rl}; + if ($opts{priority}) { + # Reset the text + $box->text($sk.$pri); + $box->draw(1); + } + else { + # Simple layout, just toggle the box. + $box->toggle(); + $box->draw(1); + } + } + + + } + } + + $cui->dialog("Symlinks restored to original state!"); +} + +sub start_service +{ + my ($widget) = @_; + my $ud = $widget->userdata(); + + st_service($ud->{sn}, 'start'); +} + +sub stop_service +{ + my ($widget) = @_; + my $ud = $widget->userdata(); + + st_service($ud->{sn}, 'stop'); +} + +sub st_service +{ + my ($sn, $st) = @_; + + my $output = `$initd/$sn $st`; + + verbose("$initd/$sn $st : $output"); + $cui->dialog("Results of $initd/$sn $st :\n" . $output); +} + +sub get_pri_cache +{ + my ($sn, $rl, $sk) = @_; + # See if we can get an exact match from the cache, if not try to match + # the S or K except in a different run level, if there still is not a match + # get the opposite of S or K on another runlevel, if still no match return + # the default. + + open CACHE, "< $opts{cache_dir}/services" + or die "Can't open $opts{cache_dir}/services : $!"; + + chomp (my @cache = ); + close CACHE; + + # Try an exact cache match + foreach (@cache) { + # $arg_rl $arg_sk $arg_pri $arg_sn + next unless /^$rl\s+$sk\s+(\d\d)\s+$sn$/; + verbose("Got exact cache match for priority: $_"); + return $1; + } + + # Try an $sk match, except on any runlevel + foreach (@cache) { + next unless /^[\dsS]\s+$sk\s+(\d\d)\s+$sn$/; + verbose("Got differing runlevel cache for priority: $_"); + return $1; + } + + # Ok, try to match on any runlevel with either S or K + foreach (@cache) { + next unless /^[\dsS]\s+([SK])\s+(\d\d)\s+$sn$/; + verbose("Returning difference of 100 and $2: $_"); + # Sequence numbers are usually defined as stop = 100 - start + # So that means that start = 100 - stop + # Above we would have returned if $sk eq $1 so we know that $1 is + # the opposite of $sk. So return 100 - $2. + return zero_pad(100 - $2); + } + + verbose("No cache found, returning default"); + return DEFAULT_S_PRI if $sk eq 'S'; + return DEFAULT_K_PRI if $sk eq 'K'; +} + +sub pri_box_changed +{ + my ($widget) = @_; + + my $ud = $widget->userdata(); + my $new_link = $widget->get(); + + if ($new_link eq $ud->{last_good_text}) { + # Text didn't actually change, just moved out of the box + return 1; + } + + if ($new_link =~ /^([KS])(\d\d)$/ or $new_link =~ /^$/) { + my ($sk, $pri) = ('', ''); + if (defined $1 and defined $2) { + $sk = $1; + $pri = $2; + } + + update_link($ud->{sn}, $ud->{runlevel}, $sk, $pri); + + $ud->{last_good_text} = $new_link; + } + else { + $cui->error("Incorrect format: $new_link\n" . + "The correct format is a K or S followed by two digits!\n" . + "Returning field back to original state." + ); + + # Set the text in the box back to whatever the last good text was. + $widget->{-text} = $ud->{last_good_text}; + } +} + +sub simple_box_changed +{ + my ($box) = @_; + my $userdata = $box->userdata(); + + $userdata->{changed}++; + + if ($box->get()) { + update_link($userdata->{sn}, $userdata->{runlevel}, 'S', undef) + } + else { + update_link($userdata->{sn}, $userdata->{runlevel}, 'K', undef) + } +} + +sub runlevel_status +{ + my %runlevels = (); + + opendir (INITD, $initd) or die "$0: opendir $initd : $!"; + while ( defined(my $service = readdir INITD) ) { + next if $service =~ /\.sh$/; # see the debian policy manual + next if $service =~ /^\.+$/; # ignore . and .. + next unless -x "$initd/$service"; # ignore stuff like README + $runlevels{$service} = { }; + } + closedir INITD or die "$0: closedir $initd : $!"; + + # While 7-9 usually aren't used, init supports it. + foreach my $rl (@rls) { + unless (opendir(DIR, "$etc_rc$rl.d")) { + next if $rl =~ /^[789S]$/; + die "$0: opendir $etc_rc$rl.d : $!"; + } + while ( defined(my $file = readdir DIR) ) { + $file = "$etc_rc$rl.d/$file"; # Add the pathname to the file + next unless -l $file; + next if $file =~ /\.sh$/; + next unless $file =~ /([SK])(\d\d)(.+)$/; + my ($sk, $pri, $sn) = ($1, $2, $3); + $runlevels{$sn}{$rl} = $sk.$pri; + } + closedir DIR or die "$0: closedir $etc_rc$rl.d : $!"; + } + + update_cache(\%runlevels); + return %runlevels; +} + +sub setup_cache_env +{ + unless (-e $opts{cache_dir}) { + verbose("Creating non-existant cache directory: $opts{cache_dir}"); + mkdir $opts{cache_dir} or die "Can't create $opts{cache_dir} : $!"; + } + + unless (-e "$opts{cache_dir}/services") { + # Later we need to open the file with +< which can't create a new file + # so we'll emulate touch. + verbose("Touching $opts{cache_dir}/services"); + open CACHE, "> $opts{cache_dir}/services" + or die "Can't touch $opts{cache_dir}/services : $!"; + close CACHE; + } +} + +sub update_cache +{ + my ($runlevels) = @_; + + open CACHE, "+< $opts{cache_dir}/services" + or die "Can't open $opts{cache_dir}/services for rw access : $!"; + + # Check to see if this service & rl already exists somewhere in this file + # and update the line if so. + my %touched = (); + while () { + chomp; + next unless /^([\dSs])\s+([SK])\s+(\d\d)\s+([^\s]+)$/; + + my ($rl, $sk, $pri, $sn) = ($1, $2, $3, $4); + + if (exists $runlevels->{$sn}{$rl}) { + $runlevels->{$sn}{$rl} =~ /^([SK])(\d\d)$/; + $touched{$sn}{$rl} = 1; + + my ($n_sk, $n_pri) = ($1, $2); + next if $sk eq $n_sk && $pri eq $n_pri; + + s/^.+$/$rl $n_sk $n_pri $sn/; + } + } + + foreach my $sn (sort keys %{$runlevels}) { + foreach my $rl (sort keys %{$runlevels->{$sn}}) { + unless (exists $touched{$sn}{$rl}) { + $runlevels->{$sn}{$rl} =~ /^([SK])(\d\d)$/; + print CACHE "$rl $1 $2 $sn\n"; + } + } + } + + close CACHE or die "Can't close $opts{cache_dir}/services : $!"; +} + +#--- Misc subs ---# +sub check_args +{ + $opts{show} ||= get_default_show(); + + unless ($opts{show} =~ /^[S0-9]*$/) { + die "$0: --show must match [S0-9]\n"; + } + + if (length($opts{show}) > MAX_ROWS) { + die "$0: can only show ". MAX_ROWS . "rows at a time\n"; + } + + return 1; +} + +sub current_runlevel +{ + if (-e $runlevel_cmd) { + my $rl_out = `$runlevel_cmd`; + $rl_out = 1 if $rl_out =~ /unknown/; + $rl_out =~ /^\S\s?([Ss\d])?$/ or + die "Unknown return from $runlevel_cmd : $rl_out"; + return $1; + } + else { + return 1; + } +} + + +sub split_services +{ + # Figure out how many services can fit on the screen, then make + # as many screens as needed to fit all the services. + my @screens = (); + + my @services = (); + + my %o_opts = (); + $o_opts{p} = 1 if $opts{order} =~ /p/; + $o_opts{n} = 1 if $opts{order} =~ /n/; + $o_opts{a} = 1 unless exists $o_opts{p}; + + if ($opts{order} =~ /([Ss\d])/) { + $o_opts{rl} = $1; + } + else { + # If the --order option didn't set a runlevel to sort by, then + # use the current runlevel (from the output of /sbin/runlevel) or + # sort by runlevel 1 if the runlevel command doesn't exsist on this + # system. + $o_opts{rl} = current_runlevel(); + } + + # Process the opts we just set. + if (exists $o_opts{a}) { + if (exists $o_opts{n}) { + # Include the priority num on an alpha sort + foreach my $sn (sort keys %runlevels) { + next unless exists $runlevels{$sn}{$o_opts{rl}}; + next unless $runlevels{$sn}{$o_opts{rl}} =~ /^[SK](\d\d)$/; + push @services, $1.$sn; + } + } + else { + # Standard alpha sort + @services = sort keys %runlevels; + } + } + elsif (exists $o_opts{p}) { + # Sort by priority at runlevel specified or current runlevel + + my @tmp_order = ( [ ], [ ] ); # S is 0 and K is 1 + foreach my $sn (keys %runlevels) { + next unless exists $runlevels{$sn}{$o_opts{rl}}; + next unless $runlevels{$sn}{$o_opts{rl}} =~ /^([SK])(\d\d)$/; + + if ($1 eq 'S') { push @{$tmp_order[0]}, $2.$sn } + elsif ($1 eq 'K') { push @{$tmp_order[1]}, $2.$sn } + } + + foreach (0, 1) { + foreach my $ddsn (sort @{$tmp_order[$_]}) { + $ddsn =~ /^(\d\d)(.+)$/; + if (exists $o_opts{n}) { + # Include the priority num on a pri sort + push @services, $1.$2; + } + else { + push @services, $2; + } + } + } + } + + { + # We could be missing some services if they didn't have a link in the + # runlevel we were sorting by. This happens in all circumstances except + # the default of just 'a' being set. + my %seen = (); + foreach (@services) { + next unless $_ =~ /^(\d\d)?(.+)$/; + $seen{$2} = 1; + } + + foreach (sort keys %runlevels) { + unless (exists $seen{$_}) { + push(@services, $_); + } + } + } + + my $per_screen = max_services(); + + my $i = 0; + do { + $screens[$i] = [ splice(@services, 0, $per_screen) ]; + $i++; + } while @services; + + return @screens; +} + +sub max_services +{ + my $tmp_screen = $cui->add( + undef, 'Window', + -title => "N/A", + -border => 1, + -padtop => 1, + -padbottom => 4, + -ipad => 1, + ); + + my $ms = $tmp_screen->canvasheight() - TOP_LABEL_HEIGHT; + undef $tmp_screen; # Make sure the memory is cleaned up. + + return $ms; +} + +sub get_default_show +{ + my $show = ''; + foreach (@rls) { + if (-e "$etc_rc$_.d") { + $show .= $_; + } + } + return $show; +} + +sub zero_pad { sprintf('%.2u', $_[0]); } + +sub verbose { print VERBOSE $_[0]."\n" if $opts{verbose}; } + + +#--- Screen layout subs ---# +sub create_main_window +{ + create_help_window(); + + my $i = 0; + foreach my $services (@snames_per_screen) { + + # First create the main window all of this page of services goes in + my $id = "window_$i"; + my $screen = $cui->add( + $id, 'Window', + -title => +"SysV Runlevel Config -: stop service =/+: start service h: help q: quit", + -border => 1, + -padtop => 1, + -padbottom => 4, + -ipad => 1, + ); + + # Can't set these globally (on $cui) or else it overrides the + # keybindings on all other objects + $screen->set_binding( \&move_up, KEY_UP(), ); + $screen->set_binding( \&move_down, KEY_DOWN(), ); + $screen->set_binding( \&move_left, KEY_LEFT(), ); + $screen->set_binding( \&move_right, KEY_RIGHT(), ); + + create_top_label($screen); + + my $left_label = ''; + for (my $i = 0; $i < scalar(@$services); $i++) { + $left_label .= $services->[$i] . "\n"; + if ($services->[$i] =~ /^\d\d(.+)$/) { + # If the labels had numbers, we don't need them anymore. + $services->[$i] = $1; + } + } + + my $row = TOP_LABEL_HEIGHT; + + $screen->add( + undef, 'Label', + -text => $left_label, + -y => $row, + -width => LABEL_WIDTH, + -height => last_x() + 1, + ); + + foreach my $sn (@$services) { + if ($opts{priority}) { draw_priority_layout($screen, $sn, $row) } + else { draw_simple_layout($screen, $sn, $row) } + + $row++; + } + + $s[$i] = $screen; + + $i++; + } +} + +sub create_help_window +{ + my $help_text = < +EOF + + my $hw = $cui->add( + 'help_window', 'Window', + -title => +"SysV Runlevel Config -: stop service =/+: start service h: help q: quit", + -border => 1, + -padtop => 1, + -padbottom => 4, + -ipad => 1, + -userdata => 0, + ); + + $hw->add( + 'help_tv', 'TextViewer', + -text => $help_text, + -title => 'sysv-rc-conf help', + -vscrollbar => 1, + ); + +} + +sub draw_simple_layout +{ + my ($screen, $sn, $row) = @_; + + for (my $i = 0, my $right_n = 12; $i <= $#show_rls; $i++, $right_n += 8) { + my $on_or_off = 0; + # We only want to show S\d\d services as selected. + $on_or_off = 1 if exists $runlevels{$sn}{$show_rls[$i]} + && $runlevels{$sn}{$show_rls[$i]} =~ /^S\d\d$/; + + my $box = $screen->add( + zero_pad($row-2).zero_pad($i), 'Checkbox', + -label => '', + -checked => $on_or_off, + -border => 0, + -x => $right_n, + -y => $row, + -width => 5, + #-height => 1, + -userdata => { id => zero_pad($row-2).zero_pad($i), + sn => $sn, + changed => 0, + runlevel => $show_rls[$i], + }, + -onchange => \&simple_box_changed, + -onfocus => \&got_focus, + ); + + $box->set_binding( \&start_service, "=", "+" ); + $box->set_binding( \&stop_service, "-" ); + } +} + +sub draw_priority_layout +{ + my ($screen, $sn, $row) = @_; + + for (my $i = 0, my $right_n = 11; $i <= $#show_rls; $i++, $right_n += 8) { + my $text = exists $runlevels{$sn}{$show_rls[$i]} + ? $runlevels{$sn}{$show_rls[$i]} + : ''; + my $box = $screen->add( + zero_pad($row-2).zero_pad($i), 'TextEntry', + -sbborder => 1, + -x => $right_n, + -y => $row, + -width => 6, + -maxlength => 3, + -regexp => '/^[skSK\d]*$/', + -toupper => 1, + -showoverflow => 0, + -text => $text, + -userdata => { id => zero_pad($row-2).zero_pad($i), + sn => $sn, + changed => 0, + runlevel => $show_rls[$i], + last_good_text => $text, + }, + -onblur => \&pri_box_changed, + -onfocus => \&got_focus, + ); + + $box->set_binding( \&start_service, "=", "+" ); + $box->set_binding( \&stop_service, "-" ); + } +} + +sub create_top_label +{ + my ($window) = @_; + + my @label_rls = @show_rls; + + my $text = 'service ' . shift @label_rls; + foreach (@label_rls) { $text .= " $_" }; + $text .= "\n"; + $text .= "-" x 76; + + $window->add( + undef, 'Label', + -text => $text, + -y => 0, + -x => 0, + -height => TOP_LABEL_HEIGHT, + -textalignment => 'left', + ); +} + +sub create_bottom_box +{ + my $cmd_text = ''; + + if ($opts{priority}) { + $cmd_text = +"Editing: Backspace: bs ^d: delete ^b: backward ^f: forward"; + } + else { + $cmd_text = +" space: toggle service on / off ", + } + + my $exp_window = $cui->add( + 'exp_window', 'Window', + -border => 1, + -y => -1, + -height => BOTTOM_WIN_HEIGHT, + -ipadleft => 1, + -ipadright => 1, + ); + $exp_window->add(undef, 'Label', + -y => 0, + -width => -1, + -height => BOTTOM_LAB_HEIGHT, + -text => +"Use the arrow keys or mouse to move around. ^n: next pg ^p: prev pg\n$cmd_text", + ); +} + +sub toggle_help +{ + my $hw = $cui->getobj('help_window'); + my $hw_data = $hw->userdata(); + + if ($hw_data == 0) { + $hw->userdata($cui->getfocusobj); + $hw->focus(); + } + else { + # The help window is up, so turn it off by focusing the last + # object that was focused on before we pulled up the help window + $hw_data->focus(); + $hw->userdata(0); + } +} + +#--- Movement subs ---# +sub next_page +{ + $current_screen++; + $current_screen = 0 if $current_screen > last_screen(); + verbose("Going to screen $current_screen"); + _move_focus(00, $box_pos{y}); +} + +sub prev_page +{ + $current_screen--; + $current_screen = last_screen() if $current_screen < 0; + verbose("Going to screen $current_screen"); + $box_pos{x} = last_x(); + _move_focus($box_pos{x}, $box_pos{y}); +} + +sub got_focus +{ + my $widget = shift; + # Is there a better way to figure out my own id besides putting it + # in userdata on creation and fetching it? + my $userdata = $widget->userdata(); + my $id = $userdata->{id}; + + $id =~ /^(\d\d)(\d\d)$/; + + $box_pos{x} = $1; + $box_pos{y} = $2; +} + +sub move_left +{ + return if $box_pos{y} eq '00'; + _move_focus($box_pos{x}, $box_pos{y} - 1); +} + +sub move_right +{ + return if $box_pos{y} == scalar(@show_rls)-1; + _move_focus($box_pos{x}, $box_pos{y} + 1); +} + +sub move_up +{ + #return if $box_pos{x} eq '00'; + return prev_page() if $box_pos{x} eq '00'; + _move_focus($box_pos{x} - 1, $box_pos{y}); +} + +sub move_down +{ + # Index starts at 00, so we need one less then the max services that + # are on the screen. + return next_page() if $box_pos{x} == last_x(); + _move_focus($box_pos{x} + 1, $box_pos{y}); +} + +sub _move_focus +{ + $box_pos{x} = $_[0]; + $box_pos{y} = $_[1]; + my $box = $s[$current_screen]->getobj(zero_pad($_[0]).zero_pad($_[1])); + $box->focus(); +} + +sub last_x { return scalar(@{$snames_per_screen[$current_screen]})-1; } + +sub first_screen { return 0 } + +sub last_screen { return scalar(@s)-1 } + +=pod + +=head1 NAME + +B - Run-level configuration for SysV like init script links + +=head1 SYNOPSIS + +B [ I ] + +B [ --level I ] I EIE + +=head1 DESCRIPTION + +B gives an easy to use interface for managing +C symlinks. The interface comes in two different +flavors, one that simply allows turning services on or off and another that +allows for more fine tuned management of the symlinks. It's a replacement for +programs like B or B. + +B can also be used at the command line when the desired changes +to the symlinks are already known. The syntax is borrowed from B. + +=head1 GENERAL OPTIONS + +=over + +=item B<-c> DIRECTORY, B<--cache=>DIRECTORY + +The directory where the priority numbers, old runlevel configuration, etc. +should be stored. This defaults to C. See the FILES +section below. + +=item B<-r> DIRECTORY, B<--root=>DIRECTORY + +The root directory to use. This defaults to C. This comes in handy if the +root file system is mounted somewhere else, such as when using a rescue disk. + +=item B<-v> FILE, B<--verbose=>FILE + +Print verbose information to C + +=item B<-V>, B<--Version> + +Print version information to STDOUT and exit + +=back + +=head1 GUI RELATED OPTIONS + +=over + +=item B<-o> [ see description ], B<--order=>[ see description ] + +Allows various sorting orders and ways to display the rows. The argument can be +made up of any of the following: + +=over + +=item B + +Sort the rows Blphabetically. This is the default if the B<-o> option isn't +specified. + +=item B + +Show the priority numbers along with the name of the service. + +=item B

+ +Sorts by the B

riority numbers. + +=item B + +I can be any runlevel, 0-9 or S. This controls which runlevel the +priority numbers are sorted at. It only makes sense to use this in conjuntion +with B

. If omitted the priority numbers are sorted by the current runlevel +the system is in. + +=back + +=item B<-p>, B<--priority> + +Alternate layout. Instead of just showing a checkbox, the priority of the +service and the S or K are allowed to be edited. This is for more fine tuned +control then the default layout allows. + +=item B<-s> I, B<--show=>I + +Which runlevels to show. This defaults to up to 8 of the runlevels available +on the system. Usually this means it will show 1, 2, 3, 4, 5, 0, 6, and S. +The syntax calls for the runlevels to be allruntogether. For instance, to +show runlevels 3, 4, and 5 the syntax would be C<--show=345>. Also see +B<--order>. + +=back + +=head1 CLI RELATED OPTIONS + +=over + +=item B<--level> I + +The runlevels this operation will affect. I can be any number from +0-9 or S. For example, B<--level 135> will affect runlevels 1, 3, and 5. +If B<--level> is not set, the default is to affect runlevels 2, 3, 4, and 5. +This option is only used for the command line interface, see the section +below labled USING THE CLI for more information. + +=item B<--list> [I] + +This option will list all of the services and if they are stopped or started +when entering each runlevel. If I is specified, only the information +for that service is displayed. + +=back + +=head1 USING THE GUI + +=head2 Using the Default layout + +The default (simple) layout shows in a grid fashion all of the services that +are in C and which runlevels they are turned on at. For example, where +the C row and C<3> column intersect, if there is a checkbox there that +means the service will be turned on when entering runlevel 3. If there is no +checkbox it can mean that either there are no links to the service in that +specific runlevel, or that the service is turned off when entering that +runlevel. If more configuration detail is needed, see the next paragraph and +the B<--priority> option. + +=head2 Using the Priority layout + +The priority (advanced) layout also uses a grid fashion, but instead of +checkboxes there are text boxes that can have a few different values. If the +text box is blank, that means there isn't a symlink in that runlevel for that +service. This means that when changing into that runlevel that the service +will not be started or stopped, which is significant. If the text box starts +with the letter K that means that the service will be stopped when entering +that runlevel. If the text box starts with the letter S that means the service +will be started when entering that runlevel. The two digits following is the +order in which the services are started. That means that C would +start before C. For more information see your system documentation. + +=head2 Controls + +To move around use the arrow keys, or if the terminal support it, the mouse. +Typically there is more then one page of services (unless the terminal screen +is large), to move between the pages use CTRL-n or CTRL-p, or simply arrow key +down or up at the bottom or top of the screen, respectively. The bottom of the +screen also shows these movement commands for quick reference. To restore the +symlinks back to their original state before the B was run, +press the B key. The B key will display a quick reference help screen. + +=head2 Default layout + +When using the default layout use the space bar to toggle the service on / off. + +=head2 Priority layout + +The priority layout uses the default movement keys. In order to edit the fields +you can use CTRL-d to delete the character in front of the cursor or backspace +to backspace. Use CTRL-b or CTRL-f to move the cursor backwards or forwards +within the field. Note that only S, K, or any digit is allowed to be entered +into the field. + +=head2 Starting / Stopping Services + +To start a service, press the C<+> or C<=> key. +To stop a service, press the C<-> key. + +This will call C or C. + +=head1 USING THE CLI + +If the desired modifications to the symlinks are known and only one quick +change is needed, then you can use a CLI interface to B. +Examples: + + # sysv-rc-conf --level 35 ssh off + # sysv-rc-conf atd on + +The first example will turn ssh off on levels 3 and 5. The second example +turns atd on for runlevels 2, 3, 4, and 5. + +=head1 FILES + +B Feel free to skip this section + +B stores a cache of all the symlink information from +C in C (See the --cache +option to change the location of this file). It uses this cache to make an +intelligent decision on what priority number to give the K or S link when they +are changed in the simple layout. This cache is updated/created everytime the +program is launched. The format of the file is as follows: + + RUNLEVEL S|K PRIORITY SERVICE + +Here's a few examples: + + 2 K 74 ntpd + 2 K 50 xinetd + 3 S 08 iptables + 3 S 80 sendmail + +B will first see if it can get an exact match from the cache. +For example, if the symlink for C in runlevel 3 is S89cron and you +uncheck it, B will first see if there is an entry in the cache +that looks like C<3 K nn cron>, if so it will use nn for the priority number. + +If there wasn't a match, B will then see if there is another S or +K (whichever you're switching to, so in this example, K) entry on a different +runlevel - so an entry like C, where i is any runlevel. If found, +the link will use nn. + +If there still wasn't a match, B will look for the opposite of S +or K in any run level, and use 100 - that priority. So in our example, +C. If nn is 20, then it will use 80 (100 - 20), since that is +typically the way that the priority numbers are used. + +If there still isn't a match, the default priority of 20 for S links is used, +and the default priority of 80 for K links is used. + +=head1 COMPATIBILITY + +B should work on any Unix like system that manages services +when changing runlevels by using symlinks in C. Refer +to your system documentation to see if that's the case (usually there's a +C). + +=head1 CAVEATS + +B only manages the symlinks in the C +directories. It's possible that pacakages may have other ways of being +disabled or enabled. + +Because Curses takes over the screen sometimes error messages won't be +seen on the terminal. If you run across any weird problems try redirecting +STDERR to a file when you execute the program. + +For example: + # sysv-rc-conf 2E err.out + +=head1 REPORTING BUGS + +Report bugs to Joe Oppegaard Ejoe@pidone.orgE + +=head1 SEE ALSO + +B, B, B, C + + www: http://sysv-rc-conf.sourceforge.net + ftp: ftp://ftp.pidone.org/sysv-rc-conf + +=head1 AUTHOR + +Joe Oppegaard Ejoe@pidone.orgE diff --git a/talimatname/genel/s/sysv-rc-conf/talimat b/talimatname/genel/s/sysv-rc-conf/talimat new file mode 100644 index 000000000..2a317b135 --- /dev/null +++ b/talimatname/genel/s/sysv-rc-conf/talimat @@ -0,0 +1,16 @@ +# Tanım: sysvinit yonetimi +# URL: http://sysv-rc-conf.sourceforge.net/ +# Maintainer: milisarge +# Paketçi: milisarge +# Gerekler: perl-curses perl-curses-ui perl-term-readkey + +isim=sysv-rc-conf +surum=0.98 +devir=1 +kaynak=($isim.pl) + +derle() { + mkdir $PKG/usr + mkdir $PKG/usr/bin + install -m755 $isim.pl $PKG/usr/bin/$isim +} diff --git a/talimatname/genel/t/t4k-common/libpng15.patch b/talimatname/genel/t/t4k-common/libpng15.patch new file mode 100644 index 000000000..29991544d --- /dev/null +++ b/talimatname/genel/t/t4k-common/libpng15.patch @@ -0,0 +1,18 @@ +--- src/t4k_common-0.1.1/src/t4k_loaders.c 2011-04-08 05:46:07.000000000 +0300 ++++ src.new/t4k_common-0.1.1/src/t4k_loaders.c 2012-05-02 10:35:41.836670434 +0300 +@@ -1028,12 +1028,9 @@ + { + png_init_io(png_ptr, fi); + +- info_ptr->width = surf->w; +- info_ptr->height = surf->h; +- info_ptr->bit_depth = 8; +- info_ptr->color_type = PNG_COLOR_TYPE_RGB_ALPHA; +- info_ptr->interlace_type = 1; +- info_ptr->valid = 0; /* will be updated by various png_set_FOO() functions */ ++ png_set_IHDR(png_ptr, info_ptr, surf->w, surf->h, 8, ++ PNG_COLOR_TYPE_RGB_ALPHA, 1, ++ PNG_COMPRESSION_TYPE_BASE, PNG_FILTER_TYPE_BASE); + + png_set_sRGB_gAMA_and_cHRM(png_ptr, info_ptr, + PNG_sRGB_INTENT_PERCEPTUAL); diff --git a/talimatname/genel/t/t4k-common/talimat b/talimatname/genel/t/t4k-common/talimat new file mode 100644 index 000000000..9ff3e00dc --- /dev/null +++ b/talimatname/genel/t/t4k-common/talimat @@ -0,0 +1,21 @@ +# Tanım: TuxType ve TuxMath tarafından paylaşılan kod için ortak kütüphane +# URL: http://tux4kids.alioth.debian.org/ +# Paketçi: Cihan Alkan +# Gerekler: sdl-image sdl-mixer sdl-net sdl-ttf sdl-pango librsvg + +isim=t4k-common +_isim=t4k_common +surum=0.1.1 +devir=1 + +kaynak=(http://downloads.sourceforge.net/project/tuxmath/$_name/$_name-$surum.tar.gz + libpng15.patch) + + +derle() { + cd $SRC/$_name-$surum + patch -Np2 -i "$SRC/libpng15.patch" + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/taglib-extras/talimat b/talimatname/genel/t/taglib-extras/talimat new file mode 100644 index 000000000..3bc59e6d7 --- /dev/null +++ b/talimatname/genel/t/taglib-extras/talimat @@ -0,0 +1,20 @@ +# Tanım: KDE için ek taglib eklentileri +# URL: http://developer.kde.org/~wheeler/taglib.html +# Paketçi: milisarge +# Gerekler: taglib + +isim=taglib-extras +surum=1.0.1 +devir=1 + +kaynak=(http://downloads.nutyx.org/files/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + cmake -DCMAKE_INSTALL_PREFIX=/usr + make + make DESTDIR=$PKG install + +} + + diff --git a/talimatname/genel/t/taglib/talimat b/talimatname/genel/t/taglib/talimat new file mode 100644 index 000000000..41fe86e21 --- /dev/null +++ b/talimatname/genel/t/taglib/talimat @@ -0,0 +1,21 @@ +# Tanım: Çeşitli popüler ses biçimlerinin meta verilerini okumak ve düzenlemek için bir kütüphane +# URL: http://developer.kde.org/~wheeler/taglib.html +# Paketçi: milisarge +# Gerekler: cmake + +isim=taglib +surum=1.10 +devir=1 + +kaynak=( https://taglib.github.io/releases/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + mkdir build + cd build + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + .. + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/talloc/talimat b/talimatname/genel/t/talloc/talimat new file mode 100644 index 000000000..20c43d54c --- /dev/null +++ b/talimatname/genel/t/talloc/talimat @@ -0,0 +1,17 @@ +# Tanım: Talloc, yıkıcılarla hiyerarşik, referans sayılmış bir bellek havuzu sistemidir.Samba'da kullanılan çekirdek bellek ayırıcısıdır. +# URL: https://talloc.samba.org +# Paketçi: milisarge +# Gerekler: python libxslt + +isim=talloc +surum=2.1.10 +devir=1 +kaynak=(https://www.samba.org/ftp/$isim/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --enable-talloc-compat1 + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/tango-icon-theme-extras/talimat b/talimatname/genel/t/tango-icon-theme-extras/talimat new file mode 100644 index 000000000..4dd246c07 --- /dev/null +++ b/talimatname/genel/t/tango-icon-theme-extras/talimat @@ -0,0 +1,18 @@ +# Tanım: Tango Masaüstü Projesi, sanatçıların ve tasarımcıların uyabileceği bir simge stili kılavuzunu tanımlar. +# URL: http://tango.freedesktop.org/ +# Paketçi: milisarge +# Gerekler: icon-naming-utils imagemagick + +isim=tango-icon-theme-extras +surum=0.1.0 +devir=1 + +kaynak=(http://tango.freedesktop.org/releases/$isim-$surum.tar.gz) + +derle() +{ +cd $isim-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/tango-icon-theme/talimat b/talimatname/genel/t/tango-icon-theme/talimat new file mode 100644 index 000000000..c83eaab1c --- /dev/null +++ b/talimatname/genel/t/tango-icon-theme/talimat @@ -0,0 +1,18 @@ +# Tanım: The Tango Desktop Project defines an icon style guideline to which artists and designers can adhere. +# URL: http://tango.freedesktop.org/ +# Paketçi: milisarge +# Gerekler: icon-naming-utils imagemagick + +isim=tango-icon-theme +surum=0.8.90 +devir=1 + +kaynak=(http://tango.freedesktop.org/releases/$isim-$surum.tar.gz) + +derle() +{ +cd $isim-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/tcl/talimat b/talimatname/genel/t/tcl/talimat new file mode 100644 index 000000000..aaeb37efc --- /dev/null +++ b/talimatname/genel/t/tcl/talimat @@ -0,0 +1,40 @@ +# Tanım: Tcl betik dili +# URL: http://www.tcl.tk/ +# Paketçi: milisarge +# Gerekler: + +isim=tcl +surum=8.6.4 +devir=1 + +kaynak=( http://downloads.sourceforge.net/$isim/$isim$surum-src.tar.gz) + +derle() { +# build package +cd $isim$surum/unix + +if [ "$CARCH" = "x86_64" ]; then + ./configure --prefix=/usr --mandir=/usr/share/man --enable-threads --enable-64bit +else + ./configure --prefix=/usr --mandir=/usr/share/man --enable-threads --disable-64bit +fi + +make +sed -e "s#$SRCDIR/unix#/usr/lib#" \ + -e "s#$SRCDIR#/usr/include#" \ + -i tclConfig.sh +sed -e "s#$SRCDIR/unix/pkgs/tdbc1.0.3#/usr/lib/tdbc1.0.3#" \ + -e "s#$SRCDIR/pkgs/tdbc1.0.3/generic#/usr/include#" \ + -e "s#$SRCDIR/pkgs/tdbc1.0.3/library#/usr/lib/tcl8.6#" \ + -e "s#$SRCDIR/pkgs/tdbc1.0.3#/usr/include#" \ + -i pkgs/tdbc1.0.3/tdbcConfig.sh +sed -e "s#$SRCDIR/unix/pkgs/itcl4.0.3#/usr/lib/itcl4.0.3#" \ + -e "s#$SRCDIR/pkgs/itcl4.0.3/generic#/usr/include#" \ + -e "s#$SRCDIR/pkgs/itcl4.0.3#/usr/include#" \ + -i pkgs/itcl4.0.3/itclConfig.sh +unset SRCDIR +make DESTDIR=$PKG install +make DESTDIR=$PKG install-private-headers +ln -svf tclsh8.6 $PKG/usr/bin/tclsh +chmod -v 755 $PKG/usr/lib/libtcl8.6.so +} diff --git a/talimatname/genel/t/tcpdump/talimat b/talimatname/genel/t/tcpdump/talimat new file mode 100644 index 000000000..bfde5c738 --- /dev/null +++ b/talimatname/genel/t/tcpdump/talimat @@ -0,0 +1,17 @@ +# Tanım: Komut satırı arayüzü ile ağ algılayıcısı +# URL: http://www.tcpdump.org +# Paketçi: milisarge +# Gerekler: libpcap + +isim=tcpdump +surum=4.9.0 +devir=1 +kaynak=(http://www.tcpdump.org/release/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --enable-ipv6 + make + make DESTDIR=$PKG install + rm $PKG/usr/sbin/tcpdump.$surum +} diff --git a/talimatname/genel/t/tcptraceroute/talimat b/talimatname/genel/t/tcptraceroute/talimat new file mode 100644 index 000000000..0feeb3526 --- /dev/null +++ b/talimatname/genel/t/tcptraceroute/talimat @@ -0,0 +1,22 @@ +# Tanım: TCP paketlerini kullanan bir traceroute uygulaması. +# URL: http://michael.toren.net/code/tcptraceroute/ +# Paketçi: yakar (aydin@komutan.org) +# Gerekler: libpcap libnet + +isim=tcptraceroute +surum=1.5beta7 +devir=1 +kaynak=(https://github.com/mct/tcptraceroute/archive/tcptraceroute-${surum}.tar.gz) + +derle() { + cd "$SRC/tcptraceroute-tcptraceroute-$surum" + + ./configure --prefix=/usr --sysconfdir=/etc + + mkdir -p "$PKG/usr/share" + + make + make DESTDIR=$PKG install + + mv "$PKG/usr/man" "$PKG/usr/share/" +} diff --git a/talimatname/genel/t/tdb/talimat b/talimatname/genel/t/tdb/talimat new file mode 100644 index 000000000..e2448ae0e --- /dev/null +++ b/talimatname/genel/t/tdb/talimat @@ -0,0 +1,19 @@ +# Tanım: GDBM'ye benzer basit bir Veritabanı, ancak aynı anda taahhütlere izin verir +# URL: http://tdb.samba.org/ +# Paketçi: milisarge +# Gerekler: python libxslt docbook-xsl + +isim=tdb +surum=1.3.15 +devir=1 +kaynak=(http://samba.org/ftp/${isim}/${isim}-${surum}.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --localstatedir=/var \ + --sysconfdir=/etc/samba + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/t/telegram-bin/talimat b/talimatname/genel/t/telegram-bin/talimat new file mode 100644 index 000000000..8f2397a82 --- /dev/null +++ b/talimatname/genel/t/telegram-bin/talimat @@ -0,0 +1,16 @@ +# Tanım: Güvenli IM platformu olan Telegram uygulaması +# URL: http://www.telegram.org +# Paketçi: milisarge +# Gerekler: + +isim=telegram-bin +surum=0.9.49 +devir=1 +kaynak=(https://updates.tdesktop.com/tlinux/tsetup.$surum.tar.xz) + +derle() { + cd Telegram + + install -Dm755 Telegram $PKG/usr/bin/telegram + install -Dm755 Updater $PKG/usr/bin/updater +} diff --git a/talimatname/genel/t/telegram-cli/talimat b/talimatname/genel/t/telegram-cli/talimat new file mode 100644 index 000000000..1cfcec2e7 --- /dev/null +++ b/talimatname/genel/t/telegram-cli/talimat @@ -0,0 +1,22 @@ +# Tanım: Telegram mesajlaşma konsol uygulaması +# URL: https://github.com/vysheng/tg +# Paketçi: milisarge +# Gerekler: git libconfig libevent lua jansson +# Grup: ağ + +isim=telegram-cli +surum=git +devir=1 +kaynak=(telegram-cli.patch) + +derle() { + git_indir https://github.com/vysheng/tg $isim + cd "$SRC/$isim" + git submodule update --init --recursive --force + patch -p1 < "$SRC/$isim.patch" + ./configure + make + cd "$SRC/$isim" + install -Dm644 tg-server.pub ${PKG}/etc/telegram-cli/server.pub + install -Dm755 bin/telegram-cli ${PKG}/usr/bin/telegram-cli +} diff --git a/talimatname/genel/t/telegram-cli/telegram-cli.patch b/talimatname/genel/t/telegram-cli/telegram-cli.patch new file mode 100644 index 000000000..2d2b7b04e --- /dev/null +++ b/talimatname/genel/t/telegram-cli/telegram-cli.patch @@ -0,0 +1,90 @@ +diff --git a/tgl/crypto/rsa_pem_openssl.c b/tgl/crypto/rsa_pem_openssl.c +index db653f2..5e6a697 100644 +--- a/tgl/crypto/rsa_pem_openssl.c ++++ b/tgl/crypto/rsa_pem_openssl.c +@@ -36,6 +36,12 @@ TGLC_WRAPPER_ASSOC(rsa,RSA) + // TODO: Refactor crucial struct-identity into its own header. + TGLC_WRAPPER_ASSOC(bn,BIGNUM) + ++/* ++ * Since OpenSSL version 1.1.0 the RSA struct (rsa_st) is opaque, ++ * see also https://wiki.openssl.org/index.php/OpenSSL_1.1.0_Changes ++ */ ++#if (OPENSSL_VERSION_NUMBER < 0x10100000L) ++ + TGLC_rsa *TGLC_rsa_new (unsigned long e, int n_bytes, const unsigned char *n) { + RSA *ret = RSA_new (); + ret->e = unwrap_bn (TGLC_bn_new ()); +@@ -47,7 +53,30 @@ TGLC_rsa *TGLC_rsa_new (unsigned long e, int n_bytes, const unsigned char *n) { + #define RSA_GETTER(M) \ + TGLC_bn *TGLC_rsa_ ## M (TGLC_rsa *key) { \ + return wrap_bn (unwrap_rsa (key)->M); \ +- } \ ++ } ++ ++#else // OPENSSL_VERSION_NUMBER ++ ++TGLC_rsa *TGLC_rsa_new (unsigned long e, int n_bytes, const unsigned char *n) { ++ RSA *ret = RSA_new (); ++ BIGNUM *ret_e = unwrap_bn (TGLC_bn_new ()); ++ BIGNUM *ret_n = unwrap_bn (TGLC_bn_bin2bn (n, n_bytes, NULL)); ++ RSA_set0_key (ret, ret_n, ret_e, NULL); ++ TGLC_bn_set_word (wrap_bn (ret_e), e); ++ return wrap_rsa (ret); ++} ++ ++#define RSA_GETTER(M) \ ++TGLC_bn *TGLC_rsa_ ## M (TGLC_rsa *key) { \ ++ BIGNUM *rsa_n, *rsa_e, *rsa_d; \ ++ RSA_get0_key(unwrap_rsa (key), \ ++ (const BIGNUM **) &rsa_n, \ ++ (const BIGNUM **) &rsa_e, \ ++ (const BIGNUM **) &rsa_d); \ ++ return wrap_bn (rsa_ ## M); \ ++} ++ ++#endif // OPENSSL_VERSION_NUMBER + + RSA_GETTER(n); + RSA_GETTER(e); +@@ -60,4 +89,4 @@ TGLC_rsa *TGLC_pem_read_RSAPublicKey (FILE *fp) { + return wrap_rsa (PEM_read_RSAPublicKey (fp, NULL, NULL, NULL)); + } + +-#endif ++#endif // TGL_AVOID_OPENSSL +diff --git a/tgl/mtproto-utils.c b/tgl/mtproto-utils.c +index 0948bc8..cfdb216 100644 +--- a/tgl/mtproto-utils.c ++++ b/tgl/mtproto-utils.c +@@ -98,7 +98,7 @@ static unsigned long long BN2ull (TGLC_bn *b) { + if (sizeof (unsigned long) == 8) { + return TGLC_bn_get_word (b); + } else if (sizeof (unsigned long long) == 8) { +- assert (0); // As long as nobody ever uses this code, assume it is broken. ++// assert (0); // As long as nobody ever uses this code, assume it is broken. + unsigned long long tmp; + /* Here be dragons, but it should be okay due to be64toh */ + TGLC_bn_bn2bin (b, (unsigned char *) &tmp); +@@ -112,7 +112,7 @@ static void ull2BN (TGLC_bn *b, unsigned long long val) { + if (sizeof (unsigned long) == 8 || val < (1ll << 32)) { + TGLC_bn_set_word (b, val); + } else if (sizeof (unsigned long long) == 8) { +- assert (0); // As long as nobody ever uses this code, assume it is broken. ++// assert (0); // As long as nobody ever uses this code, assume it is broken. + htobe64(val); + /* Here be dragons, but it should be okay due to htobe64 */ + TGLC_bn_bin2bn ((unsigned char *) &val, 8, b); +diff --git a/tgl/tl-parser/tl-parser.c b/tgl/tl-parser/tl-parser.c +index 524b196..aeadbd2 100644 +--- a/tgl/tl-parser/tl-parser.c ++++ b/tgl/tl-parser/tl-parser.c +@@ -1903,7 +1903,7 @@ struct tl_combinator_tree *tl_parse_args134 (struct tree *T) { + //assert (S->data); + char *name = S->data; + if (!name) { +- static char s[20]; ++ static char s[21]; + sprintf (s, "%lld", lrand48 () * (1ll << 32) + lrand48 ()); + name = s; + } diff --git a/talimatname/genel/t/telepathy-accounts-signon/talimat b/talimatname/genel/t/telepathy-accounts-signon/talimat new file mode 100644 index 000000000..d86b7bb32 --- /dev/null +++ b/talimatname/genel/t/telepathy-accounts-signon/talimat @@ -0,0 +1,17 @@ +# Tanım: IM hesabı sağlamak için libaccounts ve libsignon ile entegre Telepati için bir görev kontrol eklentisi +# URL: https://gitlab.com/accounts-sso/telepathy-accounts-signon +# Paketçi: milisarge +# Gerekler: qt5 telepathy-mission-control libaccounts-glib libsignon-glib + +isim=telepathy-accounts-signon +surum=1.0 +devir=1 + +kaynak=(https://gitlab.com/accounts-sso/$isim/repository/archive.tar.gz) + +derle() { + mkdir -p build + cd build + qmake-qt5 ../$isim* + make INSTALL_ROOT=$PKG install +} diff --git a/talimatname/genel/t/telepathy-farstream/talimat b/talimatname/genel/t/telepathy-farstream/talimat new file mode 100644 index 000000000..4e3ab49b7 --- /dev/null +++ b/talimatname/genel/t/telepathy-farstream/talimat @@ -0,0 +1,18 @@ +# Tanım: Akış motorunu kullanmak için bir telepatik arka plan. +# URL: http://telepathy.freedesktop.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: farstream telepathy-glib + +isim=telepathy-farstream +surum=0.6.0 +devir=1 + +kaynak=(http://telepathy.freedesktop.org/releases/$isim/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/telepathy-gabble/talimat b/talimatname/genel/t/telepathy-gabble/talimat new file mode 100644 index 000000000..83dd8d41b --- /dev/null +++ b/talimatname/genel/t/telepathy-gabble/talimat @@ -0,0 +1,19 @@ +# Tanım: Telepati için bir Jabber / XMPP bağlantı yöneticisi +# URL: http://telepathy.freedesktop.org +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: telepathy-glib libsoup libnice sqlite libxslt + +isim=telepathy-gabble +surum=0.18.3 +devir=2 + +kaynak=(http://telepathy.freedesktop.org/releases/$isim/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --without-ca-certificates \ + --libexecdir=/usr/lib/telepathy + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/telepathy-glib/talimat b/talimatname/genel/t/telepathy-glib/talimat new file mode 100644 index 000000000..3cae5869d --- /dev/null +++ b/talimatname/genel/t/telepathy-glib/talimat @@ -0,0 +1,20 @@ +# Tanım: Telepati D-Bus protokolü için GLib bağları +# URL: http://telepathy.freedesktop.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: dbus-glib libxslt gobject-introspection vala + +isim=telepathy-glib +surum=0.24.1 +devir=1 + +kaynak=(http://telepathy.freedesktop.org/releases/$isim/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--libexecdir=/usr/lib/telepathy \ +--enable-vala-bindings \ +--disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/telepathy-idle/talimat b/talimatname/genel/t/telepathy-idle/talimat new file mode 100644 index 000000000..83f5312ed --- /dev/null +++ b/talimatname/genel/t/telepathy-idle/talimat @@ -0,0 +1,18 @@ +# Tanım: Telepati için bir IRC bağlantı yöneticisi +# URL: http://telepathy.freedesktop.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: telepathy-glib + +isim=telepathy-idle +surum=0.1.16 +devir=1 + +kaynak=(http://telepathy.freedesktop.org/releases/$isim/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--libexecdir=/usr/lib/telepathy +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/telepathy-kde-accounts-kcm/talimat b/talimatname/genel/t/telepathy-kde-accounts-kcm/talimat new file mode 100644 index 000000000..41a7a54a5 --- /dev/null +++ b/talimatname/genel/t/telepathy-kde-accounts-kcm/talimat @@ -0,0 +1,22 @@ +# Tanım: Telepati Anında Mesajlaşma Hesaplarını yapılandırmak için KCM Modülü +# URL: http://community.kde.org/Real-Time_Communication_and_Collaboration +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules telepathy-qt5 kaccounts-providers intltool telepathy-gabble +# Grup: kde + +isim=telepathy-kde-accounts-kcm +surum=17.12.1 +devir=1 +_isim=ktp-accounts-kcm + +kaynak=(http://download.kde.org/stable/applications/$surum/src/${_isim}-$surum.tar.xz) + +derle() { + cd ${_isim}-$surum + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/telepathy-kde-approver/talimat b/talimatname/genel/t/telepathy-kde-approver/talimat new file mode 100644 index 000000000..119f9d9f0 --- /dev/null +++ b/talimatname/genel/t/telepathy-kde-approver/talimat @@ -0,0 +1,22 @@ +# Tanım: Telepati için KDE kanal onaycısı +# URL: http://community.kde.org/Real-Time_Communication_and_Collaboration +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules kf5-kdoctools telepathy-qt5 kf5-knotifications kf5-kservice +# Grup: kde + +isim=telepathy-kde-approver +surum=17.12.1 +devir=1 +_isim=ktp-approver + +kaynak=(http://download.kde.org/stable/applications/$surum/src/${_isim}-$surum.tar.xz) + +derle() { + cd ktp-approver-$surum + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/telepathy-kde-auth-handler/talimat b/talimatname/genel/t/telepathy-kde-auth-handler/talimat new file mode 100644 index 000000000..a71cb2cac --- /dev/null +++ b/talimatname/genel/t/telepathy-kde-auth-handler/talimat @@ -0,0 +1,22 @@ +# Tanım: Hesap bağlanırken şifreler ve SSL hataları için UI/KWallet entegrasyonu sağlayın +# URL: http://community.kde.org/Real-Time_Communication_and_Collaboration +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules qca-qt5 telepathy-kde-common-internals kf5-kdewebkit +# Grup: kde + +isim=telepathy-kde-auth-handler +surum=17.12.1 +devir=1 +_isim=ktp-auth-handler + +kaynak=(http://download.kde.org/stable/applications/$surum/src/${_isim}-$surum.tar.xz) + +derle() { + cd ktp-auth-handler-$surum + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/telepathy-kde-call-ui/talimat b/talimatname/genel/t/telepathy-kde-call-ui/talimat new file mode 100644 index 000000000..85bba9269 --- /dev/null +++ b/talimatname/genel/t/telepathy-kde-call-ui/talimat @@ -0,0 +1,22 @@ +# Tanım: Telepati için Sesli/Görüntülü Arama Arabirimi +# URL: http://community.kde.org/Real-Time_Communication_and_Collaboration +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules boost telepathy-kde-common-internals qt5-gstreamer +# Grup: kde + +isim=telepathy-kde-call-ui +surum=17.12.1 +devir=1 +_isim=ktp-call-ui + +kaynak=(http://download.kde.org/stable/applications/$surum/src/${_isim}-$surum.tar.xz) + +derle() { + cd ktp-call-ui-$surum + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/telepathy-kde-common-internals/talimat b/talimatname/genel/t/telepathy-kde-common-internals/talimat new file mode 100644 index 000000000..325fe9566 --- /dev/null +++ b/talimatname/genel/t/telepathy-kde-common-internals/talimat @@ -0,0 +1,22 @@ +# Tanım: KDE-Telepati için ortak bileşenler +# URL: http://community.kde.org/Real-Time_Communication_and_Collaboration +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules kf5-kdoctools doxygen kf5-knotifyconfig kf5-ktexteditor kf5-kpeople telepathy-logger-qt kaccounts-integration libotr hicolor-icon-theme telepathy-accounts-signon telepathy-qt5 +# Grup: kde + +isim=telepathy-kde-common-internals +surum=17.12.1 +devir=1 +_isim=ktp-common-internals + +kaynak=(http://download.kde.org/stable/applications/$surum/src/${_isim}-$surum.tar.xz) + +derle() { + cd ktp-common-internals-$surum + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/telepathy-kde-contact-list/talimat b/talimatname/genel/t/telepathy-kde-contact-list/talimat new file mode 100644 index 000000000..56e7fedfd --- /dev/null +++ b/talimatname/genel/t/telepathy-kde-contact-list/talimat @@ -0,0 +1,22 @@ +# Tanım: KDE Telepathy irtibat listesi uygulaması +# URL: http://community.kde.org/Real-Time_Communication_and_Collaboration +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules kf5-kdoctools telepathy-kde-common-internals +# Grup: kde + +isim=telepathy-kde-contact-list +surum=17.12.1 +devir=1 +_isim=ktp-contact-list + +kaynak=(http://download.kde.org/stable/applications/$surum/src/${_isim}-$surum.tar.xz) + +derle() { + cd ktp-contact-list-$surum + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/telepathy-kde-contact-runner/talimat b/talimatname/genel/t/telepathy-kde-contact-runner/talimat new file mode 100644 index 000000000..2c517d542 --- /dev/null +++ b/talimatname/genel/t/telepathy-kde-contact-runner/talimat @@ -0,0 +1,22 @@ +# Tanım: KDE Telepati için KRunner eklentisi +# URL: http://community.kde.org/Real-Time_Communication_and_Collaboration +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules kf5-kdoctools telepathy-kde-common-internals kf5-krunner +# Grup: kde + +isim=telepathy-kde-contact-runner +surum=17.12.1 +devir=1 +_isim=ktp-contact-runner + +kaynak=(http://download.kde.org/stable/applications/$surum/src/${_isim}-$surum.tar.xz) + +derle() { + cd ktp-contact-runner-$surum + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/telepathy-kde-desktop-applets/talimat b/talimatname/genel/t/telepathy-kde-desktop-applets/talimat new file mode 100644 index 000000000..640db8b64 --- /dev/null +++ b/talimatname/genel/t/telepathy-kde-desktop-applets/talimat @@ -0,0 +1,22 @@ +# Tanım: KDE-Telepati Plasma masaüstü uygulamaları +# URL: http://community.kde.org/Real-Time_Communication_and_Collaboration +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules kf5-kdoctools kf5-plasma-framework telepathy-kde-common-internals telepathy-kde-accounts-kcm +# Grup: kde + +isim=telepathy-kde-desktop-applets +surum=17.12.1 +devir=1 +_isim=ktp-desktop-applets + +kaynak=(http://download.kde.org/stable/applications/$surum/src/${_isim}-$surum.tar.xz) + +derle() { + cd ktp-desktop-applets-$surum + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/telepathy-kde-filetransfer-handler/talimat b/talimatname/genel/t/telepathy-kde-filetransfer-handler/talimat new file mode 100644 index 000000000..4fd4fcc0b --- /dev/null +++ b/talimatname/genel/t/telepathy-kde-filetransfer-handler/talimat @@ -0,0 +1,22 @@ +# Tanım: KDE Telepathy dosya aktarım işleyici +# URL: http://community.kde.org/Real-Time_Communication_and_Collaboration +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules kf5-kdoctools telepathy-kde-common-internals +# Grup: kde + +isim=telepathy-kde-filetransfer-handler +surum=17.12.1 +devir=1 +_isim=ktp-filetransfer-handler + +kaynak=(http://download.kde.org/stable/applications/$surum/src/${_isim}-$surum.tar.xz) + +derle() { + cd ktp-filetransfer-handler-$surum + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/telepathy-kde-integration-module/talimat b/talimatname/genel/t/telepathy-kde-integration-module/talimat new file mode 100644 index 000000000..2afb17538 --- /dev/null +++ b/talimatname/genel/t/telepathy-kde-integration-module/talimat @@ -0,0 +1,22 @@ +# Tanım: KDED'e oturur ve kullanıcıyı otomatik erteleme veya bağlantı hatalarını işleme koyma gibi çeşitli sistem entegrasyonu ile ilgilenir +# URL: http://community.kde.org/Real-Time_Communication_and_Collaboration +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules kf5-kdoctools telepathy-kde-common-internals kf5-kidletime +# Grup: kde + +isim=telepathy-kde-kded-module +surum=17.12.1 +devir=1 +_isim=ktp-kded-module + +kaynak=(http://download.kde.org/stable/applications/$surum/src/${_isim}-$surum.tar.xz) + +derle() { + cd ${_isim}-$surum + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/telepathy-kde-send-file/talimat b/talimatname/genel/t/telepathy-kde-send-file/talimat new file mode 100644 index 000000000..0b2f97503 --- /dev/null +++ b/talimatname/genel/t/telepathy-kde-send-file/talimat @@ -0,0 +1,22 @@ +# Tanım: Belirtilen bir kişiyle bir dosya aktarım işi başlatmak için Dosya yöneticisi eklentisi +# URL: http://community.kde.org/Real-Time_Communication_and_Collaboration +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules kf5-kdoctools telepathy-kde-common-internals kf5-kio +# Grup: kde + +isim=telepathy-kde-send-file +surum=17.12.1 +devir=1 +_isim=ktp-send-file + +kaynak=(http://download.kde.org/stable/applications/$surum/src/${_isim}-$surum.tar.xz) + +derle() { + cd ktp-send-file-$surum + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_TESTING=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/telepathy-kde-text-ui/talimat b/talimatname/genel/t/telepathy-kde-text-ui/talimat new file mode 100644 index 000000000..b040de7a9 --- /dev/null +++ b/talimatname/genel/t/telepathy-kde-text-ui/talimat @@ -0,0 +1,23 @@ +# Tanım: Metin Sohbetleri için telepati işleyicisi +# URL: http://community.kde.org/Real-Time_Communication_and_Collaboration +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules kf5-kdoctools telepathy-kde-common-internals kf5-kdewebkit kf5-kemoticons +# Grup: kde + +isim=telepathy-kde-text-ui +surum=17.12.1 +devir=1 +_isim=ktp-text-ui + +kaynak=(http://download.kde.org/stable/applications/$surum/src/${_isim}-$surum.tar.xz) + +derle() { + cd ktp-text-ui-$surum + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_TESTING=OFF \ + -Wno-dev + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/telepathy-logger-qt/talimat b/talimatname/genel/t/telepathy-logger-qt/talimat new file mode 100644 index 000000000..3f2278d9b --- /dev/null +++ b/talimatname/genel/t/telepathy-logger-qt/talimat @@ -0,0 +1,20 @@ +# Tanım: TpLogger istemci kitaplığında Qt Wrapper. +# URL: http://telepathy.freedesktop.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules qt5 doxygen telepathy-qt5 glib dbus-glib telepathy-logger + +isim=telepathy-logger-qt +surum=15.04.0 +_surum=15.04 +devir=1 + +kaynak=(http://download.kde.org/stable/$isim/${_version}/src/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_INSTALL_DIR=lib +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/telepathy-logger/talimat b/talimatname/genel/t/telepathy-logger/talimat new file mode 100644 index 000000000..b4db35be0 --- /dev/null +++ b/talimatname/genel/t/telepathy-logger/talimat @@ -0,0 +1,19 @@ +# Tanım: Telepati-logger, Telepati çerçevesindeki tüm iletişimlerin günlüğünü merkezileştiren bir arka plan programıdır. +# URL: http://telepathy.freedesktop.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: intltool sqlite telepathy-glib gobject-introspection + +isim=telepathy-logger +surum=0.8.2 +devir=1 + +kaynak=(http://telepathy.freedesktop.org/releases/$isim/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--libexecdir=/usr/lib/telepathy \ +--disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/telepathy-mission-control/talimat b/talimatname/genel/t/telepathy-mission-control/talimat new file mode 100644 index 000000000..50148b686 --- /dev/null +++ b/talimatname/genel/t/telepathy-mission-control/talimat @@ -0,0 +1,23 @@ +# Tanım: Bağlantı yöneticilerinin detaylarının bir kısmını soyutlayan bir Telepati bileşeni. +# URL: http://telepathy.freedesktop.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: telepathy-glib libgnome-keyring dconf networkmanager + +isim=telepathy-mission-control +surum=5.16.3 +devir=1 + +kaynak=(http://telepathy.freedesktop.org/releases/$isim/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--libexecdir=/usr/lib/telepathy \ +--with-connectivity=nm \ +--enable-gtk-doc \ +--disable-upower \ +--disable-static \ +--disable-schemas-compile +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/telepathy-python/talimat b/talimatname/genel/t/telepathy-python/talimat new file mode 100644 index 000000000..3aba46087 --- /dev/null +++ b/talimatname/genel/t/telepathy-python/talimat @@ -0,0 +1,19 @@ +# Tanım: Telepathy istemcilerinde ve bağlantı yöneticilerinde kullanmak için Python kütüphaneleri +# URL: http://telepathy.freedesktop.org +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: dbus-python libxslt + +isim=telepathy-python +surum=0.15.19 +devir=1 + +kaynak=(http://telepathy.freedesktop.org/releases/$isim/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install + + python -m compileall $PKG/usr/lib/python2.7/site-packages/telepathy/ +} diff --git a/talimatname/genel/t/telepathy-qt5/talimat b/talimatname/genel/t/telepathy-qt5/talimat new file mode 100644 index 000000000..bc9ee0b78 --- /dev/null +++ b/talimatname/genel/t/telepathy-qt5/talimat @@ -0,0 +1,23 @@ +# Tanım: Qt5 tabanlı Telepathy istemcileri için bir kütüphane +# URL: http://telepathy.freedesktop.org/wiki/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: telepathy-farstream libxslt cmake doxygen qt5 + +isim=telepathy-qt5 +surum=0.9.7 +devir=1 + +kaynak=(http://telepathy.freedesktop.org/releases/telepathy-qt/telepathy-qt-$surum.tar.gz) + +derle() { + cd telepathy-qt-$surum + cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DPYTHON_EXECUTABLE=/usr/bin/python \ + -DDESIRED_QT_VERSION=5 \ + -DENABLE_EXAMPLES=OFF \ + -DENABLE_TESTS=OFF + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/telepathy/talimat b/talimatname/genel/t/telepathy/talimat new file mode 100644 index 000000000..c08643e26 --- /dev/null +++ b/talimatname/genel/t/telepathy/talimat @@ -0,0 +1,14 @@ +# Tanım: Bu paket Telepati paketlerini yükler +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: telepathy-kde-accounts-kcm telepathy-kde-approver telepathy-kde-auth-handler telepathy-kde-call-ui telepathy-kde-contact-runner telepathy-kde-contact-list telepathy-kde-desktop-applets telepathy-kde-filetransfer-handler telepathy-kde-integration-module telepathy-kde-send-file telepathy-kde-text-ui telepathy-mission-control telepathy-idle telepathy-logger telepathy-gabble telepathy-python + +isim=telepathy +surum=16.08.2 +devir=1 + +kaynak=(talimat) + +derle() { +echo "KDE Telepathy" +} diff --git a/talimatname/genel/t/termcap/talimat b/talimatname/genel/t/termcap/talimat new file mode 100644 index 000000000..7d9dc6a4a --- /dev/null +++ b/talimatname/genel/t/termcap/talimat @@ -0,0 +1,24 @@ +# Tanım: Programların ekran bilgisayar terminallerini cihazdan bağımsız biçimde kullanmasını sağlar +# URL: http://www.catb.org/~esr/terminfo/ +# Paketçi: Cihan_Alkan +# Gerekler: +# Grup: sistem + +isim=termcap +surum=1.3.1 +devir=1 +kaynak=(http://ftp.gnu.org/gnu/${isim}/${isim}-${surum}.tar.gz) + +derle() { + gcc -fPIC -c "${SRC}/${isim}-${surum}/${isim}.c" \ + -o "${SRC}"/"${isim}.o" \ + -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 || return 1 + gcc -shared -Wl,-soname,"lib${isim}.so" \ + -o "${SRC}/lib${isim}.so.${surum}" "${SRC}/${isim}.o" || return 1 + install -D -m755 "${SRC}/lib${isim}.so.${surum}" "${PKG}/usr/lib/lib${isim}.so.${surum}" + cd "${SRC}/${isim}-${surum}" + for infofile in termcap.info* + do install -D -m644 "${SRC}/${isim}-${surum}/${infofile}" "${PKG}/usr/share/info/${infofile}" + done + rm -rf $PKG/usr/share +} diff --git a/talimatname/genel/t/terminology/talimat b/talimatname/genel/t/terminology/talimat new file mode 100644 index 000000000..0b9de83e1 --- /dev/null +++ b/talimatname/genel/t/terminology/talimat @@ -0,0 +1,18 @@ +# Tanım: terminal emulator +# URL: http://www.enlightenment.org/ +# Paketçi: milisarge +# Gerekler: elementary + +isim=terminology +surum=1.0.0 +devir=1 +kaynak=(http://download.enlightenment.org/rel/apps/terminology/terminology-$surum.tar.xz) + +derle() +{ + cd terminology-$surum + ./configure --prefix=/usr \ + --mandir=/usr/man + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/terminus-font/talimat b/talimatname/genel/t/terminus-font/talimat new file mode 100644 index 000000000..0cf932899 --- /dev/null +++ b/talimatname/genel/t/terminus-font/talimat @@ -0,0 +1,30 @@ +# Tanım: Monospace bitmap font (for X11 and console) +# URL: URL: http://sourceforge.net/projects/terminus-font/ +# NuTyX package info file (http://nutyx.org) +# Paketçi: # NuTyX package info file (http://nutyx.org) +# Gerekler: xorg-app xorg-fontconfig xorg-font-util +isim=terminus-font +surum=4.39 +devir=1 + +kaynak=( +http://downloads.sourceforge.net/project/$isim/$isim-$surum/$isim-$surum.tar.gz) + +derle(){ + cd $isim-$surum + ./configure --prefix=/usr \ + --psfdir=/usr/share/kbd/consolefonts \ + --x11dir=/usr/share/fonts/misc + make + make DESTDIR=$PKG install + + install -Dm644 75-yes-terminus.conf \ + $PKG/etc/fonts/conf.avail/75-yes-terminus.conf + install -d $PKG/etc/fonts/conf.d + cd $PKG/etc/fonts/conf.d + ln -s ../conf.avail/75-yes-terminus.conf . +} + + + +# NuTyX Pkgfile (http://nutyx.org) diff --git a/talimatname/genel/t/terminus-font/terminus-font.kur-kos b/talimatname/genel/t/terminus-font/terminus-font.kur-kos new file mode 100644 index 000000000..a6abb81d4 --- /dev/null +++ b/talimatname/genel/t/terminus-font/terminus-font.kur-kos @@ -0,0 +1,12 @@ +# Update mkfontscale and mkfontdir: +if [ -x usr/bin/mkfontdir ]; then + ( cd usr/share/fonts/misc + mkfontscale . + mkfontdir . + ) +fi + +# Update the X font indexes: +if [ -x usr/bin/fc-cache ]; then + usr/bin/fc-cache -f +fi diff --git a/talimatname/genel/t/tesseract/talimat b/talimatname/genel/t/tesseract/talimat new file mode 100644 index 000000000..c01d76bc2 --- /dev/null +++ b/talimatname/genel/t/tesseract/talimat @@ -0,0 +1,28 @@ +# Tanım: OCR programı +# URL: https://github.com/tesseract-ocr/tesseract +# Paketçi: Cihan_Alkan +# Gerekler: libpng libtiff libjpeg-turbo zlib giflib leptonica icu cairo pango +# Grup: medya + +isim=tesseract +surum=3.05.01 +devir=1 + +kaynak=(https://github.com/tesseract-ocr/tesseract/archive/$surum.tar.gz::${isim}-${surum}.tar.gz + https://github.com/tesseract-ocr/tessdata/raw/master/osd.traineddata + https://github.com/tesseract-ocr/tessdata/raw/master/tur.traineddata) + +derle() { + cd "$SRC"/$isim-${surum} + [ -x configure ] || ./autogen.sh + [ -f Makefile ] || ./configure --prefix=/usr + make + make training + make DESTDIR="$PKG" install + make DESTDIR="$PKG" training-install + mkdir -p "$PKG"/usr/share/tessdata + install -Dm0644 "$SRC"/osd.traineddata "$PKG"/usr/share/tessdata/osd.traineddata + + cp $SRC/tur.traineddata $PKG/usr/share/tessdata/ + find $PKG/usr/share/tessdata -type f -exec chmod 0644 {} \; +} diff --git a/talimatname/genel/t/testdisk/talimat b/talimatname/genel/t/testdisk/talimat new file mode 100644 index 000000000..2e2c6496e --- /dev/null +++ b/talimatname/genel/t/testdisk/talimat @@ -0,0 +1,22 @@ +# Tanım: Testdisk güçlü ve özgür bir veri kurtarma yazılımıdır +# URL: http://www.cgsecurity.org/wiki/TestDisk +# Paketçi: yasarciv +# Gerekler: ntfs-3g libjpeg-turbo + +isim=testdisk +surum=7.0 +devir=1 +kaynak=(http://www.cgsecurity.org/$isim-$surum.tar.bz2) + +derle() { + +cd $isim-$surum + +./configure --prefix=/usr + + make + make DESTDIR=$PKG install + + rm -r $PKG/usr/share/doc + rm -r $PKG/usr/share/man/zh_CN +} diff --git a/talimatname/genel/t/tevent/talimat b/talimatname/genel/t/tevent/talimat new file mode 100644 index 000000000..bc19e514c --- /dev/null +++ b/talimatname/genel/t/tevent/talimat @@ -0,0 +1,18 @@ +# Tanım: Talloc bellek yönetimi kitaplığına dayanan olay sistemi +# URL: https://tevent.samba.org +# Paketçi: milisarge +# Gerekler: talloc python + +isim=tevent +surum=0.9.33 +devir=1 +kaynak=(https://www.samba.org/ftp/$isim/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --bundled-libraries=NONE \ + --builtin-libraries=replace + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/tex-gyre-fonts/talimat b/talimatname/genel/t/tex-gyre-fonts/talimat new file mode 100644 index 000000000..d66148113 --- /dev/null +++ b/talimatname/genel/t/tex-gyre-fonts/talimat @@ -0,0 +1,16 @@ +# Tanım: Substitute PostScript fonts in OpenType format +# URL: http://www.gust.org.pl/projects/e-foundry/tex-gyre +# Paketçi: milisarge +# Gerekler: + +isim=tex-gyre-fonts +surum=2.005 +devir=1 +kaynak=(http://www.gust.org.pl/projects/e-foundry/tex-gyre/whole/tg-${surum}otf.zip + http://www.gust.org.pl/projects/e-foundry/tex-gyre/../licenses/GUST-FONT-LICENSE.txt) + +derle() { + install -d "$PKG/usr/share/fonts/${name%-fonts}" + install -t "$PKG/usr/share/fonts/${name%-fonts}" -m644 *.otf + install -Dm644 GUST-FONT-LICENSE.txt "$PKG/usr/share/licenses/$isim/LICENSE" +} diff --git a/talimatname/genel/t/texi2html/talimat b/talimatname/genel/t/texi2html/talimat new file mode 100644 index 000000000..4a25d942c --- /dev/null +++ b/talimatname/genel/t/texi2html/talimat @@ -0,0 +1,16 @@ +# Tanım: Texinfo belgelerini HTML'ye dönüştürür +# URL: http://www.nongnu.org/texi2html/ +# Paketçi: milisarge +# Gerekler: + +isim=texi2html +surum=5.0 +devir=1 +kaynak=("http://download.savannah.gnu.org/releases/texi2html/$isim-$surum.tar.bz2") + +derle() { + cd "$isim-$surum" + ./configure --prefix=/usr + make + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/t/the_silver_searcher/talimat b/talimatname/genel/t/the_silver_searcher/talimat new file mode 100644 index 000000000..0da879906 --- /dev/null +++ b/talimatname/genel/t/the_silver_searcher/talimat @@ -0,0 +1,16 @@ +# Tanım: Hızlı kod arama aracı +# URL: https://github.com/ggreer/the_silver_searcher +# Paketçi: milisarge +# Gerekler: pcre + +isim=the_silver_searcher +surum=2.1.0 +devir=1 +kaynak=(https://github.com/ggreer/the_silver_searcher/archive/$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + sed -i 's_configure_configure --prefix=/usr_' build.sh + ./build.sh + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/t/theharvester/talimat b/talimatname/genel/t/theharvester/talimat new file mode 100644 index 000000000..c8fdabc50 --- /dev/null +++ b/talimatname/genel/t/theharvester/talimat @@ -0,0 +1,30 @@ +# Tanım: Farklı açık kaynaklarından e-posta hesapları ve alt alan adı toplamak için kullanılan araç. +# URL: http://www.edge-security.com/theHarvester.php +# Paketçi: ayakar +# Gerekler: python-pip python python-setuptools pyrequests + +isim=theharvester +surum=git +devir=1 +kaynak=() + +derle() { + git_indir https://github.com/laramies/theHarvester.git $isim + + cd $SRC/$isim + + sed -i 's|env python$|env python2|' theHarvester.py + + mkdir -p "$PKG/usr/bin" + mkdir -p "$PKG/usr/share/theharvester" + + install -Dm755 *.py "$PKG/usr/share/theharvester" + install -Dm644 -t "$PKG/usr/share/doc/theharvester" changelog.txt + install -Dm644 -t "$PKG/usr/share/licenses/theharvester" COPYING LICENSES + + cp --no-preserve=ownership -a discovery lib *.txt \ + "$PKG/usr/share/theharvester" + + ln -s "/usr/share/theharvester/theHarvester.py" "$PKG/usr/bin/theharvester" + rm -rf "$PKG"/usr/share/doc +} diff --git a/talimatname/genel/t/theharvester/theharvester.kur-kos b/talimatname/genel/t/theharvester/theharvester.kur-kos new file mode 100644 index 000000000..325bff712 --- /dev/null +++ b/talimatname/genel/t/theharvester/theharvester.kur-kos @@ -0,0 +1,2 @@ +#!/bin/sh +pip2 install shodan diff --git a/talimatname/genel/t/thrift/talimat b/talimatname/genel/t/thrift/talimat new file mode 100644 index 000000000..baa9e7735 --- /dev/null +++ b/talimatname/genel/t/thrift/talimat @@ -0,0 +1,41 @@ +# Tanım: Ölçeklenebilir çoğul programlama dilleri için IPC/RPC çatısı +# URL: http://thrift.apache.org/ +# Paketçi: milisarge +# Gerekler: qt5 boost libevent + +isim=thrift +surum=0.10.0 +devir=1 +kaynak=(https://github.com/apache/thrift/archive/$surum.zip::$isim-$zip.zip) + +derle() { + cd thrift-$surum + + ./bootstrap.sh + ./configure --prefix=/usr \ + --with-cpp \ + --with-c_glib \ + --with-qt5 \ + --with-libevent \ + --with-csharp \ + --without-haskell \ + --without-php \ + --without-ruby \ + --without-python \ + --without-erlang \ + --without-perl \ + --without-java \ + --without-c_sharp \ + --without-d \ + --without-php \ + --without-go \ + --without-lua \ + --without-nodejs \ + --without-tests + + make -j2 + make DESTDIR="$PKG" install + install -m0644 -D contrib/thrift.vim "$PKG"/usr/share/vim/vimfiles/syntax/thrift.vim + install -m0644 -D contrib/thrift.el "$PKG"/usr/share/emacs/site-lisp/thrift.el + +} diff --git a/talimatname/genel/t/thunar-archive-plugin/talimat b/talimatname/genel/t/thunar-archive-plugin/talimat new file mode 100644 index 000000000..fdf694b96 --- /dev/null +++ b/talimatname/genel/t/thunar-archive-plugin/talimat @@ -0,0 +1,58 @@ +# Tanım: Arşivlerle uğraşmak için Thunar filemanager eklentisi +# URL: http://foo-projects.org/~benny/projects/thunar-archive-plugin +# Paketçi: milisarge +# Gerekler: thunar xarchiver + +isim=thunar-archive-plugin +surum=0.3.1 +devir=1 +kaynak=(http://archive.xfce.org/src/thunar-plugins/$isim/${surum%.*}/$isim-$surum.tar.bz2) + +## +derle() { +cd $isim-$surum + +./configure --prefix=/usr \ + --libexecdir=/usr/lib/thunar \ + --disable-static \ + --disable-nls + +make +make DESTDIR=$PKG install + +## +mkdir -p $PKG/usr/lib/thunar/thunar-archive-plugin/ +cat > $PKG/usr/lib/thunar/thunar-archive-plugin/xarchiver.tap << "EOF" +#!/bin/sh +# +# xarchiver.tap - Wrapper script to create and extract archive files +# in Thunar, via the thunar-archive-plugin, using xarchiver. +# +# determine the action and the folder, "$@" then contains only the files +action=$1; shift; +folder=$1; shift; + +# check the action +case $action in +create) + exec xarchiver "--add-to=$@" + ;; + +extract-here) + exec xarchiver "--extract-to=$folder" "$@" + ;; + +extract-to) + exec xarchiver --extract "$@" + ;; + +*) + echo "Unsupported action '$action'" >&2 + exit 1 +esac +EOF + +## +chmod 755 $PKG/usr/lib/thunar/thunar-archive-plugin/xarchiver.tap +} + diff --git a/talimatname/genel/t/thunar-vcs-plugin/talimat b/talimatname/genel/t/thunar-vcs-plugin/talimat new file mode 100644 index 000000000..3378ccde3 --- /dev/null +++ b/talimatname/genel/t/thunar-vcs-plugin/talimat @@ -0,0 +1,17 @@ +# Tanım: Thunar için SVN ve GIT entegrasyonu. +# URL: http://goodies.xfce.org/projects/thunar-plugins/thunar-vcs-plugin +# Paketçi: yasarciv67@gmail.com +# Gerekler: intltool thunar subversion apr + +isim=thunar-vcs-plugin +surum=0.1.5 +devir=1 +kaynak=(http://archive.xfce.org/src/thunar-plugins/thunar-vcs-plugin/${surum%.*}/$isim-$surum.tar.bz2 +) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/xfce4 + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/thunar-vcs-plugin/thunar-vcs-plugin.kur-kos b/talimatname/genel/t/thunar-vcs-plugin/thunar-vcs-plugin.kur-kos new file mode 100644 index 000000000..2faa73a76 --- /dev/null +++ b/talimatname/genel/t/thunar-vcs-plugin/thunar-vcs-plugin.kur-kos @@ -0,0 +1 @@ +gtk-update-icon-cache -f /usr/share/icons/hicolor diff --git a/talimatname/genel/t/thunar-volman/talimat b/talimatname/genel/t/thunar-volman/talimat new file mode 100644 index 000000000..1ddc0af0c --- /dev/null +++ b/talimatname/genel/t/thunar-volman/talimat @@ -0,0 +1,17 @@ +# Tanım: thunar dosya yöneticisi disk yönetimi +# URL: http://thunar.xfce.org +# Paketçi: milisarge +# Gerekler: libgudev libnotify startup-notification exo xfce4-libui desktop-file-utils gvfs + +isim=thunar-volman +surum=0.8.1 +devir=1 + +kaynak=(http://archive.xfce.org/src/xfce/$isim/${surum%.*}/$isim-$surum.tar.bz2 ) +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--sysconfdir=/etc +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/thunar-volman/thunar-volman.kur-kos b/talimatname/genel/t/thunar-volman/thunar-volman.kur-kos new file mode 100644 index 000000000..7507c558c --- /dev/null +++ b/talimatname/genel/t/thunar-volman/thunar-volman.kur-kos @@ -0,0 +1,2 @@ +update-desktop-database -q +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor \ No newline at end of file diff --git a/talimatname/genel/t/thunar/no-root-warning.patch b/talimatname/genel/t/thunar/no-root-warning.patch new file mode 100644 index 000000000..968a0c269 --- /dev/null +++ b/talimatname/genel/t/thunar/no-root-warning.patch @@ -0,0 +1,4 @@ +835c835 +< if (G_UNLIKELY (geteuid () == 0)) +--- +> if (G_UNLIKELY (1 == 0)) diff --git a/talimatname/genel/t/thunar/talimat b/talimatname/genel/t/thunar/talimat new file mode 100644 index 000000000..ff768dac6 --- /dev/null +++ b/talimatname/genel/t/thunar/talimat @@ -0,0 +1,38 @@ +# Tanım: Thunar dosya yöneticisi +# URL: http://thunar.xfce.org +# Paketçi: milisarge +# Gerekler: libnotify libexif exo xfce4-libui xfce4-panel desktop-file-utils +# Grup: xfce4 + +isim=thunar +source /root/talimatname/genel/x/xfce4/surumler +surum="${thunar_surum}";[ -z ${thunar_surum} ] && \ +surum=1.6.12 +devir=1 + +kaynak=(http://archive.xfce.org/src/xfce/thunar/${surum%.*}/Thunar-$surum.tar.bz2 + no-root-warning.patch) +derle() { + cd Thunar-$surum + patch $SRC/Thunar-$surum/thunar/thunar-window.c $SRC/no-root-warning.patch + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-static \ + --enable-gio-unix \ + --enable-dbus \ + --enable-startup-notification \ + --enable-gudev \ + --enable-notifications \ + --enable-exif \ + --enable-pcre \ + --disable-debug + make + make DESTDIR=$PKG install + sed -i 's:x-directory/gnome-default-handler;::' $PKG/usr/share/applications/Thunar-folder-handler.desktop + rm -rf $PKG/usr/share/gtk-doc + rm -rf $PKG/usr/share/man + rm -rf $PKG/usr/share/doc +} diff --git a/talimatname/genel/t/thunar/thunar.kur-kos b/talimatname/genel/t/thunar/thunar.kur-kos new file mode 100644 index 000000000..16c107e19 --- /dev/null +++ b/talimatname/genel/t/thunar/thunar.kur-kos @@ -0,0 +1,3 @@ +update-desktop-database -q +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor +gdk-pixbuf-query-loaders > /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache diff --git a/talimatname/genel/t/thunderbird/talimat b/talimatname/genel/t/thunderbird/talimat new file mode 100644 index 000000000..9adc37df2 --- /dev/null +++ b/talimatname/genel/t/thunderbird/talimat @@ -0,0 +1,134 @@ +# Tanım: Thunderbird, Mozilla kod tabanına dayanan tek başına bir posta/haber istemcisidir. HTML e-postalarını görüntülemek ve oluşturmak için Gecko rendering motorunu kullanır. +# URL: http://www.mozilla.org/thunderbird +# Paketçi: milisarge +# Gerekler: alsa-lib gtk2 zip unzip libevent libvpx nspr nss yasm dbus-glib doxygen gstreamer-plugins-good gstreamer-plugins-ffmpeg libnotify openjdk startup-notification hunspell sqlite wireless-tools xorg-libx11 xorg-libxt xorg-libxrandr desktop-file-utils hicolor-icon-theme shared-mime-info pulseaudio + +isim=thunderbird +surum=38.6.0 +devir=1 + +kaynak=(http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$surum/source/$isim-$surum.source.tar.bz2 + $isim.desktop) + +derle() { +export LDFLAGS="$LDFLAGS -Wl,-rpath,/usr/lib/thunderbird" +export PYTHON="/usr/bin/python2" + +cd $SRC +ARCH=`uname -m` + +for lang in da de en-US es-ES fi fr it nb-NO nl pt-PT sv-SE +do +wget http://download.cdn.mozilla.net/pub/mozilla.org/$isim/releases/$surum/linux-$ARCH/xpi/$lang.xpi +done + +cd $SRC/comm-* + +cat > mozconfig << "EOF" +# If you have a multicore machine, the build may be faster if using parallel +# jobs. The build system automatically adds -jN to the "make" flags, where N +# is the number of CPU cores. The option below is therefore useless, unless +# you want to use a smaller number of jobs: +#mk_add_options MOZ_MAKE_FLAGS="-j1" + +# If you have installed DBus-Glib comment out this line: +# ac_add_options --disable-dbus + +# If you have installed wireless-tools comment out this line: +# ac_add_options --disable-necko-wifi + +# If you have installed libnotify comment out this line: +#### ac_add_options --disable-libnotify + +# GStreamer is necessary for H.264 video playback in HTML5 Video Player; +# to be enabled, also remember to set "media.gstreamer.enabled" to "true" +# in about:config. If you have installed GStreamer 0.x.y, comment out this line: +# ac_add_options --disable-gstreamer +# or uncomment this line, if you have installed GStreamer 1.x.y +#ac_add_options --enable-gstreamer=1.0 + +# Uncomment these lines if you have installed optional dependencies: +ac_add_options --enable-system-hunspell +ac_add_options --enable-startup-notification + +# Comment out following option if you have PulseAudio installed +# ac_add_options --disable-pulseaudio + +# If you want to compile the Mozilla Calendar, uncomment this line: +#ac_add_options --enable-calendar + +# Comment out following options if you have not installed +# recommended dependencies: +ac_add_options --enable-system-sqlite +ac_add_options --with-system-libevent +ac_add_options --with-system-libvpx +ac_add_options --with-system-nspr +ac_add_options --with-system-nss +ac_add_options --with-system-icu + +# The BLFS editors recommend not changing anything below this line: +ac_add_options --prefix=/usr +ac_add_options --enable-application=mail + +ac_add_options --disable-crashreporter +ac_add_options --disable-installer +ac_add_options --disable-updater +ac_add_options --disable-debug +ac_add_options --disable-tests + +ac_add_options --enable-optimize +ac_add_options --enable-strip +ac_add_options --enable-install-strip + +ac_add_options --enable-gio +ac_add_options --enable-official-branding +ac_add_options --enable-safe-browsing +ac_add_options --enable-url-classifier + +ac_add_options --enable-system-cairo +ac_add_options --enable-system-ffi +ac_add_options --enable-system-pixman + +ac_add_options --with-pthreads + +ac_add_options --with-system-bz2 +ac_add_options --with-system-jpeg +ac_add_options --with-system-png +ac_add_options --with-system-zlib + +EOF + +sed -e '/^ftglyph.h/i ftfntfmt.h' \ + -e '/^freetype\/ftcache.h/a freetype\/ftfntfmt.h' \ + -i mozilla/config/system-headers + +SHELL=/bin/sh make -f client.mk +SHELL=/bin/sh make -f client.mk DESTDIR=$PKG install INSTALL_SDK= + +mkdir -pv $PKG/usr/bin +ln -sfv ../lib/$isim-$surum/thunderbird $PKG/usr/bin + +mkdir -pv $PKG/usr/share/applications +install -Dm644 $SRC/thunderbird.desktop \ +$PKG/usr/share/applications/thunderbird.desktop + +for i in 16 22 24 32 48 256; do + install -Dm644 other-licenses/branding/thunderbird/mailicon$i.png \ + $PKG/usr/share/icons/hicolor/${i}x${i}/apps/thunderbird.png +done + + +mkdir -p $PKG/etc/ld.so.conf.d +echo "/usr/lib/$isim-$surum" > $PKG/etc/ld.so.conf.d/$isim.conf +cat > $PKG/usr/lib/thunderbird-$surum/defaults/pref/vendor.js << "EOF" +// Use LANG environment variable to choose locale +pref("intl.locale.matchOS", true); +EOF + +for lang in da de en-US es-ES fi fr it nb-NO nl pt-PT sv-SE +do + install -Dm644 $SRC/$lang.xpi \ + $PKG/usr/lib/thunderbird-$surum/extensions/langpack-$lang@thunderbird.mozilla.org.xpi +done +chown -R 0:0 $PKG/usr/lib/$isim-$surum +} diff --git a/talimatname/genel/t/thunderbird/thunderbird.desktop b/talimatname/genel/t/thunderbird/thunderbird.desktop new file mode 100644 index 000000000..b182e44f1 --- /dev/null +++ b/talimatname/genel/t/thunderbird/thunderbird.desktop @@ -0,0 +1,173 @@ +[Desktop Entry] +Name=Thunderbird +Comment=Send and receive mail with Thunderbird +Comment[ast]=Lleer y escribir corréu electrónicu +Comment[ca]=Llegiu i escriviu correu +Comment[cs]=Čtení a psaní pošty +Comment[da]=Skriv/læs e-post/nyhedsgruppe med Mozilla Thunderbird +Comment[de]=E-Mails und Nachrichten mit Thunderbird lesen und schreiben +Comment[el]=Διαβάστε και γράψτε γράμματα με το Mozilla Thunderbird +Comment[es]=Lea y escriba correos y noticias con Thunderbird +Comment[fi]=Lue ja kirjoita sähköposteja +Comment[fr]=Lire et écrire des courriels +Comment[gl]=Lea e escriba correo electrónico +Comment[he]=קריאה/כתיבה של דוא״ל/חדשות באמצעות Mozilla Thunderbird +Comment[hr]=Čitajte/šaljite e-poštu s Thunderbird +Comment[hu]=Levelek írása és olvasása a Thunderbirddel +Comment[it]=Per leggere e scrivere email +Comment[ja]=メールの読み書き +Comment[ko]=Mozilla Thunderbird 메일/뉴스 읽기 및 쓰기 클라이언트 +Comment[nl]=E-mail/nieuws lezen en schrijven met Mozilla Thunderbird +Comment[pl]=Czytanie i wysyłanie e-maili +Comment[pt_BR]=Leia e escreva suas mensagens +Comment[ru]=Читайте и пишите письма +Comment[sk]=Čítajte a píšte poštu pomocou programu Thunderbird +Comment[sv]=Läs och skriv e-post +Comment[ug]=ئېلخەت ۋە خەۋەرلەرنى Mozilla Thunderbird دا كۆرۈش ۋە يېزىش +Comment[uk]=Читання та написання листів +Comment[vi]=Đọc và soạn thư điện tử +Comment[zh_CN]=阅读邮件或新闻 +Comment[zh_TW]=以 Mozilla Thunderbird 讀寫郵件或新聞 +GenericName=Mail Client +GenericName[ast]=Client de correu +GenericName[ca]=Client de correu +GenericName[cs]=Poštovní klient +GenericName[da]=E-postklient +GenericName[de]=E-Mail-Anwendung +GenericName[el]=Λογισμικό αλληλογραφίας +GenericName[es]=Cliente de correo +GenericName[fi]=Sähköpostiohjelma +GenericName[fr]=Client de messagerie +GenericName[gl]=Cliente de correo electrónico +GenericName[he]=לקוח דוא״ל +GenericName[hr]=Klijent e-pošte +GenericName[hu]=Levelezőkliens +GenericName[it]=Client email +GenericName[ja]=電子メールクライアント +GenericName[ko]=메일 클라이언트 +GenericName[nl]=E-mailprogramma +GenericName[pl]=Klient poczty +GenericName[pt_BR]=Cliente de E-mail +GenericName[ru]=Почтовый клиент +GenericName[sk]=Poštový klient +GenericName[ug]=ئېلخەت دېتالى +GenericName[uk]=Поштова програма +GenericName[vi]=Phần mềm khách quản lý thư điện tử +GenericName[zh_CN]=邮件新闻客户端 +GenericName[zh_TW]=郵件用戶端 +Exec=thunderbird %u +Terminal=false +Type=Application +Icon=thunderbird +Categories=Network;Email; +MimeType=message/rfc822;x-scheme-handler/mailto;application/x-xpinstall; +StartupNotify=true +Actions=ComposeMessage;OpenAddressBook; + +[Desktop Action ComposeMessage] +Name=Write new message +Name[ar]=اكتب رسالة جديدة +Name[ast]=Redactar mensaxe nuevu +Name[be]=Напісаць новы ліст +Name[bg]=Съставяне на ново съобщение +Name[br]=Skrivañ ur gemennadenn nevez +Name[ca]=Escriu un missatge nou +Name[cs]=Napsat novou zprávu +Name[da]=Skriv en ny meddelelse +Name[de]=Neue Nachricht verfassen +Name[el]=Σύνταξη νέου μηνύματος +Name[es_AR]=Escribir un nuevo mensaje +Name[es_ES]=Redactar nuevo mensaje +Name[et]=Kirjuta uus kiri +Name[eu]=Idatzi mezu berria +Name[fi]=Kirjoita uusi viesti +Name[fr]=Rédiger un nouveau message +Name[fy_NL]=Skriuw in nij berjocht +Name[ga_IE]=Scríobh teachtaireacht nua +Name[gd]=Sgrìobh teachdaireachd ùr +Name[gl]=Escribir unha nova mensaxe +Name[he]=כתיבת הודעה חדשה +Name[hr]=Piši novu poruku +Name[hu]=Új üzenet írása +Name[hy_AM]=Գրել նոր նամակ +Name[is]=SKrifa nýjan póst +Name[it]=Scrivi nuovo messaggio +Name[ja]=新しいメッセージを作成する +Name[ko]=새 메시지 작성 +Name[lt]=Rašyti naują laišką +Name[nb_NO]=Skriv ny melding +Name[nl]=Nieuw bericht aanmaken +Name[nn_NO]=Skriv ny melding +Name[pl]=Nowa wiadomość +Name[pt_BR]=Nova mensagem +Name[pt_PT]=Escrever nova mensagem +Name[rm]=Scriver in nov messadi +Name[ro]=Scrie un mesaj nou +Name[ru]=Создать новое сообщение +Name[si]=නව ලිපියක් ලියන්න +Name[sk]=Nová e-mailová správa +Name[sl]=Sestavi novo sporočilo +Name[sq]=Shkruani mesazh të ri +Name[sr]=Писање нове поруке +Name[sv_SE]=Skriv ett nytt meddelande +Name[ta_LK]=புதிய செய்தியை எழுதுக +Name[tr]=Yeni ileti yaz +Name[uk]=Написати нового листа +Name[vi]=Viết thư mới +Name[zh_CN]=编写新消息 +Name[zh_TW]=寫一封新訊息 +Exec=thunderbird -compose + +[Desktop Action OpenAddressBook] +Name=Open address book +Name[ar]=افتح دفتر العناوين +Name[ast]=Abrir llibreta de direiciones +Name[be]=Адкрыць адрасную кнігу +Name[bg]=Отваряне на адресник +Name[br]=Digeriñ ur c'harned chomlec'hioù +Name[ca]=Obre la llibreta d'adreces +Name[cs]=Otevřít Adresář +Name[da]=Åbn adressebog +Name[de]=Adressbuch öffnen +Name[el]=Άνοιγμα ευρετηρίου διευθύνσεων +Name[es_AR]=Abrir libreta de direcciones +Name[es_ES]=Abrir libreta de direcciones +Name[et]=Ava aadressiraamat +Name[eu]=Ireki helbide-liburua +Name[fi]=Avaa osoitekirja +Name[fr]=Ouvrir un carnet d'adresses +Name[fy_NL]=Iepenje adresboek +Name[ga_IE]=Oscail leabhar seoltaí +Name[gd]=Fosgail leabhar-sheòlaidhean +Name[gl]=Abrir a axenda de enderezos +Name[he]=פתיחת ספר כתובות +Name[hr]=Otvori adresar +Name[hu]=Címjegyzék megnyitása +Name[hy_AM]=Բացել Հասցեագիրքը +Name[is]=Opna nafnaskrá +Name[it]=Apri rubrica +Name[ja]=アドレス帳を開く +Name[ko]=주소록 열기 +Name[lt]=Atverti adresų knygą +Name[nb_NO]=Åpne adressebok +Name[nl]=Adresboek openen +Name[nn_NO]=Opne adressebok +Name[pl]=Książka adresowa +Name[pt_BR]=Catálogo de endereços +Name[pt_PT]=Abrir livro de endereços +Name[rm]=Avrir il cudeschet d'adressas +Name[ro]=Deschide agenda de contacte +Name[ru]=Открыть адресную книгу +Name[si]=ලිපින පොත විවෘත කරන්න +Name[sk]=Otvoriť adresár +Name[sl]=Odpri adressar +Name[sq]=Hapni libër adresash +Name[sr]=Отвори адресар +Name[sv_SE]=Öppna adressboken +Name[ta_LK]=முகவரி பத்தகத்தை திறக்க +Name[tr]=Adres defterini aç +Name[uk]=Відкрити адресну книгу +Name[vi]=Mở sổ địa chỉ +Name[zh_CN]=打开通讯录 +Name[zh_TW]=開啟通訊錄 +Exec=thunderbird -addressbook diff --git a/talimatname/genel/t/thunderbird/thunderbird.kur-kos b/talimatname/genel/t/thunderbird/thunderbird.kur-kos new file mode 100644 index 000000000..f6546ca44 --- /dev/null +++ b/talimatname/genel/t/thunderbird/thunderbird.kur-kos @@ -0,0 +1,5 @@ +ldconfig -f etc/ld.so.conf.d/thunderbird.conf +# desktop database +update-desktop-database -q +# update icons cache +gtk-update-icon-cache -q -t -f usr/share/icons/hicolor diff --git a/talimatname/genel/t/tidy-html5/talimat b/talimatname/genel/t/tidy-html5/talimat new file mode 100644 index 000000000..f90b8ce53 --- /dev/null +++ b/talimatname/genel/t/tidy-html5/talimat @@ -0,0 +1,23 @@ +# Tanım: HTML, XHTML ve XML için HTML Temizlik kütüphanesi +# URL: https://github.com/htacg/tidy-html5 +# Paketçi: halityilmaz1982 +# Gerekler: cmake libxslt + +isim=tidy-html5 +surum=5.4.0 +devir=1 + +kaynak=(https://github.com/htacg/$isim/releases/download/$surum/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + cd build/cmake + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_TAB2SPACE=ON \ + ../.. + make + make DESTDIR=$PKG install + install -d $PKG/usr/bin + install -v -m755 $SRC/$isim-$surum/build/cmake/tab2space $PKG/usr/bin +} diff --git a/talimatname/genel/t/tidy/talimat b/talimatname/genel/t/tidy/talimat new file mode 100644 index 000000000..bc295bc99 --- /dev/null +++ b/talimatname/genel/t/tidy/talimat @@ -0,0 +1,28 @@ +# Tanım: HTML, XHTML ve XML dosyalarını okumak ve işaretleme biçimini temizlemek için kullanılan araçlar ve kitaplıklar +# URL: http://tidy.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: + +isim=tidy +surum=20101110 +devir=1 +kaynak=(http://anduin.linuxfromscratch.org/BLFS/$isim/$isim-cvs\_$surum.tar.bz2) + +derle() { + + cd $isim-cvs\_$surum + + ./configure \ + --prefix=/usr \ + --disable-static + + make + make DESTDIR=$PKG install + + install -v -m644 -D htmldoc/tidy.1 \ + $PKG/usr/share/man/man1/tidy.1 + install -v -m755 -d $PKG/usr/share/doc/tidy-cvs_20101110 + install -v -m644 htmldoc/*.{html,gif,css} \ + $PKG/usr/share/doc/tidy-cvs_20101110 + +} diff --git a/talimatname/genel/t/tig/talimat b/talimatname/genel/t/tig/talimat new file mode 100644 index 000000000..22a341242 --- /dev/null +++ b/talimatname/genel/t/tig/talimat @@ -0,0 +1,15 @@ +# Tanım: Git için metin modu arabirimi. +# URL: http://jonas.nitro.dk/tig/ +# Paketçi: milisarge +# Gerekler: asciidoc xmlto + +isim=tig +surum=2.1.1 +devir=1 +kaynak=(http://jonas.nitro.dk/${isim}/releases/${isim}-${surum}.tar.gz) +derle() { +cd $isim-$surum +./configure --prefix=/usr --sysconfdir=/etc +make +make DESTDIR=$PKG install install-doc-man +} diff --git a/talimatname/genel/t/tigervnc/talimat b/talimatname/genel/t/tigervnc/talimat new file mode 100644 index 000000000..02f50b615 --- /dev/null +++ b/talimatname/genel/t/tigervnc/talimat @@ -0,0 +1,23 @@ +# Tanım: VNC istemcisi +# URL: http://tigervnc.org +# Paketçi: milisarge +# Gerekler: cmake fltk1 gegl libjpeg-turbo xorg-libxtst xorg-libxfont xorg-xauth xorg-xkbcomp xorg-libpixman libgcrypt xorg-libxdamage gnutls + +isim=tigervnc +surum=1.6.0 +devir=2 +kaynak=(https://github.com/TigerVNC/$isim/archive/v$surum.tar.gz) + +derle() { + mv $DERLEME_KAYNAKDIZIN/v$surum.tar.gz $DERLEME_KAYNAKDIZIN/$isim-$surum.tar.gz + mkdir build + cd build + + cmake -G "Unix Makefiles" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + ../$isim-$surum + make + make DESTDIR=$PKG install + + rm -rf $PKG/usr/share/doc +} diff --git a/talimatname/genel/t/tilda/talimat b/talimatname/genel/t/tilda/talimat new file mode 100644 index 000000000..ebad079a3 --- /dev/null +++ b/talimatname/genel/t/tilda/talimat @@ -0,0 +1,18 @@ +# Tanım: Linux ve Unix için Gtk tabanlı açılır terminal +# URL: https://github.com/lanoxx/tilda +# Paketçi: Cihan_Alkan +# Gerekler: vte3 confuse +# Grup: sistem + +isim=tilda +surum=1.4.1 +devir=1 +kaynak=(https://github.com/lanoxx/$isim/archive/$isim-$surum.tar.gz) + +derle() { + cd $isim-$isim-$surum + ./autogen.sh + ./configure --prefix=/usr + make + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/t/tilde/talimat b/talimatname/genel/t/tilde/talimat new file mode 100644 index 000000000..f00f232eb --- /dev/null +++ b/talimatname/genel/t/tilde/talimat @@ -0,0 +1,17 @@ +# Tanım: Terminal için sezgisel bir metin editörü. +# URL: http://os.ghalkes.nl/tilde.html +# Paketçi: Cihan_Alkan +# Gerekler: libtranscript libt3widget libt3highlight +# Grup: ofis_duzenleyici + +isim=tilde +surum=0.3.7 +devir=1 +kaynak=(http://os.ghalkes.nl/dist/$isim-$surum.tar.bz2) + +derle() { + cd "${SRC}/${isim}-${surum}" + CXXFLAGS="-O2 -std=c++11" ./configure --prefix=/usr + make + make DESTDIR="${PKG}" install +} diff --git a/talimatname/genel/t/time/talimat b/talimatname/genel/t/time/talimat new file mode 100644 index 000000000..b522bafc3 --- /dev/null +++ b/talimatname/genel/t/time/talimat @@ -0,0 +1,30 @@ +# Tanım: Diğer programların kullandığı CPU kaynaklarının (örneğin zaman ve bellek gibi) birçoğunu ölçer. +# URL: http://ftp.gnu.org/gnu/time +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: + +isim=time +surum=1.7 +devir=1 +kaynak=(http://ftp.gnu.org/gnu/$isim/$isim-$surum.tar.gz) + +derle() { + + cd $isim-$surum + + sed -i 's/$(ACLOCAL)//' Makefile.in + sed -i 's/lu", ptok ((UL) resp->ru.ru_maxrss)/ld", resp->ru.ru_maxrss/' time.c + + ./configure \ + --prefix=/usr \ + --infodir=/usr/share/info + + make + + install -v -m755 -d $PKG/usr/share/info + install -v -m755 -d $PKG/usr/bin + + /usr/bin/install -c -m 644 ./time.info $PKG/usr/share/info/time.info + /usr/bin/install -c time $PKG/usr/bin/`echo time|sed 's,x,x,'` + +} diff --git a/talimatname/genel/t/tinc/talimat b/talimatname/genel/t/tinc/talimat new file mode 100644 index 000000000..6369aa06f --- /dev/null +++ b/talimatname/genel/t/tinc/talimat @@ -0,0 +1,23 @@ +# Tanım: bir vpn uygulaması +# URL: http://www.tinc-vpn.org +# Paketçi: milisarge +# Gerekler: + +isim=tinc +surum=1.0.31 +devir=1 +kaynak=(https://github.com/gsliepen/tinc/archive/release-$surum.tar.gz) + +derle() { + cd $isim-release-$surum + autoreconf -fsi + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --sbindir=/usr/bin + make + make DESTDIR=$PKG install + install -d "$PKG"/etc/tinc/ + install -dm755 "$PKG"/usr/share/tinc/examples + cp -r doc/sample-config $PKG/usr/share/tinc/examples + cp doc/sample-config/tinc.conf "$PKG"/etc/tinc/ + find "$PKG"/usr/share/tinc/examples -type f -exec chmod 644 {} + + find "$PKG"/usr/share/tinc/examples -type d -exec chmod 755 {} + +} diff --git a/talimatname/genel/t/tint2-extras/talimat b/talimatname/genel/t/tint2-extras/talimat new file mode 100644 index 000000000..df3592689 --- /dev/null +++ b/talimatname/genel/t/tint2-extras/talimat @@ -0,0 +1,28 @@ +# Tanım: Hafif panel/görev çubuğu +# URL: http://tint2.googlecode.com +# Paketçi: milisarge +# Gerekler: tint2 python-gtk + +isim=tint2-extras +surum=0.11 +devir=1 +kaynak=(http://tint2.googlecode.com/files/tint2-$surum.tar.bz2) + +derle() { + cd tint2-$surum + + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DENABLE_BATTERY=OFF \ + -DENABLE_EXAMPLES=ON \ + -DENABLE_TINT2CONF=ON \ + -DMANDIR=/usr/man \ + -DSYSCONFDIR=/usr/etc + + make + make DESTDIR=$PKG install + + install -d $PKG/usr/share/tint2 + mv $PKG/usr/share/doc/tint2/examples $PKG/usr/share/tint2 + rm -rf $PKG/usr/{bin/tint2,etc,man,share/doc} +} diff --git a/talimatname/genel/t/tint2/add-power-now-support.patch b/talimatname/genel/t/tint2/add-power-now-support.patch new file mode 100644 index 000000000..5057043df --- /dev/null +++ b/talimatname/genel/t/tint2/add-power-now-support.patch @@ -0,0 +1,19 @@ +diff -rup ../tint2-0.11.orig/src/battery/battery.c ./src/battery/battery.c +--- ../tint2-0.11.orig/src/battery/battery.c 2010-12-02 23:56:11.313403140 +0100 ++++ ./src/battery/battery.c 2010-12-02 23:57:22.266956142 +0100 +@@ -184,8 +184,14 @@ void init_battery() + } + g_free(path2); + } +- if (path_energy_now && path_energy_full) { ++ ++ path_current_now = g_build_filename(battery_dir, "power_now", NULL); ++ if (!g_file_test (path_current_now, G_FILE_TEST_EXISTS)) { ++ g_free(path_current_now); + path_current_now = g_build_filename(battery_dir, "current_now", NULL); ++ } ++ ++ if (path_energy_now && path_energy_full) { + path_status = g_build_filename(battery_dir, "status", NULL); + + // check file diff --git a/talimatname/genel/t/tint2/clock.patch b/talimatname/genel/t/tint2/clock.patch new file mode 100644 index 000000000..307611f66 --- /dev/null +++ b/talimatname/genel/t/tint2/clock.patch @@ -0,0 +1,22 @@ +--- trunk/src/clock/clock.c (revision 652) ++++ trunk/src/clock/clock.c (working copy) +@@ -23,6 +23,8 @@ + #include + #include + #include ++#include ++#include + + #include "window.h" + #include "server.h" +@@ -98,6 +103,10 @@ + // remember old_sec because after suspend/hibernate the clock should be updated directly, and not + // on next minute change + time_t old_sec = time_clock.tv_sec; ++ ++ // Little hack to wait executed commands in clock_action avoiding zombies ++ waitpid(-1, NULL, WNOHANG); ++ + gettimeofday(&time_clock, 0); + if (time_clock.tv_sec % 60 == 0 || time_clock.tv_sec - old_sec > 60) { + int i; diff --git a/talimatname/genel/t/tint2/talimat b/talimatname/genel/t/tint2/talimat new file mode 100644 index 000000000..746be04e5 --- /dev/null +++ b/talimatname/genel/t/tint2/talimat @@ -0,0 +1,28 @@ +# Tanım: Hafif panel/görev çubuğu +# URL: http://tint2.googlecode.com +# Paketçi: Vitaly Sinilin, vs at kp4 dot ru +# Gerekler: cmake imlib2 pango + +isim=tint2 +surum=0.11 +devir=2 +kaynak=(http://$isim.googlecode.com/files/$isim-$surum.tar.bz2 \ + add-power-now-support.patch) + +derle() { + cd $isim-$surum + + patch -p0 -i $SRC/add-power-now-support.patch + + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DENABLE_BATTERY=ON \ + -DENABLE_EXAMPLES=OFF \ + -DENABLE_TINT2CONF=OFF \ + -DMANDIR=/usr/man \ + -DSYSCONFDIR=/usr/etc + + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share +} diff --git a/talimatname/genel/t/tinyxml/entity.patch b/talimatname/genel/t/tinyxml/entity.patch new file mode 100644 index 000000000..66d89a617 --- /dev/null +++ b/talimatname/genel/t/tinyxml/entity.patch @@ -0,0 +1,64 @@ +? entity.patch +Index: tinyxml.cpp +=================================================================== +RCS file: /cvsroot/tinyxml/tinyxml/tinyxml.cpp,v +retrieving revision 1.105 +diff -u -r1.105 tinyxml.cpp +--- tinyxml.cpp 5 Jun 2010 19:06:57 -0000 1.105 ++++ tinyxml.cpp 19 Jul 2010 21:24:16 -0000 +@@ -57,30 +57,7 @@ + { + unsigned char c = (unsigned char) str[i]; + +- if ( c == '&' +- && i < ( (int)str.length() - 2 ) +- && str[i+1] == '#' +- && str[i+2] == 'x' ) +- { +- // Hexadecimal character reference. +- // Pass through unchanged. +- // © -- copyright symbol, for example. +- // +- // The -1 is a bug fix from Rob Laveaux. It keeps +- // an overflow from happening if there is no ';'. +- // There are actually 2 ways to exit this loop - +- // while fails (error case) and break (semicolon found). +- // However, there is no mechanism (currently) for +- // this function to return an error. +- while ( i<(int)str.length()-1 ) +- { +- outString->append( str.c_str() + i, 1 ); +- ++i; +- if ( str[i] == ';' ) +- break; +- } +- } +- else if ( c == '&' ) ++ if ( c == '&' ) + { + outString->append( entity[0].str, entity[0].strLength ); + ++i; +Index: xmltest.cpp +=================================================================== +RCS file: /cvsroot/tinyxml/tinyxml/xmltest.cpp,v +retrieving revision 1.89 +diff -u -r1.89 xmltest.cpp +--- xmltest.cpp 5 Jun 2010 17:41:52 -0000 1.89 ++++ xmltest.cpp 19 Jul 2010 21:24:16 -0000 +@@ -1340,6 +1340,16 @@ + }*/ + } + ++ #ifdef TIXML_USE_STL ++ { ++ TiXmlDocument xml; ++ xml.Parse("foo&#xa+bar"); ++ std::string str; ++ str << xml; ++ XmlTest( "Entity escaping", "foo&#xa+bar", str.c_str() ); ++ } ++ #endif ++ + /* 1417717 experiment + { + TiXmlDocument xml; diff --git a/talimatname/genel/t/tinyxml/talimat b/talimatname/genel/t/tinyxml/talimat new file mode 100644 index 000000000..a91da1761 --- /dev/null +++ b/talimatname/genel/t/tinyxml/talimat @@ -0,0 +1,30 @@ +# Tanım: Basit, küçük, minimal, C ++ XML ayrıştırıcı +# URL: http://www.grinninglizard.com/tinyxml/ +# Paketçi: milisarge +# Gerekler: + +isim=tinyxml +surum=2.6.2 +devir=1 +kaynak=(http://download.sourceforge.net/project/$isim/$isim/$surum/${isim}_${version//./_}.zip \ + entity.patch $isim-use-stl.patch) + +derle() { + export CXXFLAGS="${CXXFLAGS} -fPIC" + cd $isim + + patch -p0 -i $SRC/entity.patch + patch -p0 -i $SRC/$isim-use-stl.patch + sed -i -e "/^TINYXML_USE_STL/ s/=.*/= YES/" \ + -e "/^RELEASE_CFLAGS/ s/-O3/${CXXFLAGS}/" Makefile + + make + g++ ${CXXFLAGS} -DTIXML_USE_STL -shared -o lib$isim.so.$surum \ + -Wl,-soname,lib$isim.so.${version:0:1} *.o + + mkdir -p $PKG/usr/{include,lib} + install -m 0755 lib$isim.so.$surum $PKG/usr/lib/ + install -m 0644 *.h $PKG/usr/include/ + ln -s lib$isim.so.$surum $PKG/usr/lib/lib$isim.so.${version:0:1} + ln -s lib$isim.so.$surum $PKG/usr/lib/lib$isim.so +} diff --git a/talimatname/genel/t/tinyxml/tinyxml-use-stl.patch b/talimatname/genel/t/tinyxml/tinyxml-use-stl.patch new file mode 100644 index 000000000..b368c6881 --- /dev/null +++ b/talimatname/genel/t/tinyxml/tinyxml-use-stl.patch @@ -0,0 +1,11 @@ +--- tinyxml.h.orig 2013-03-17 22:25:59.051524653 -0500 ++++ tinyxml.h 2013-03-17 22:26:27.319650497 -0500 +@@ -43,6 +43,8 @@ + #define DEBUG + #endif + ++#define TIXML_USE_STL ++ + #ifdef TIXML_USE_STL + #include + #include diff --git a/talimatname/genel/t/tk/talimat b/talimatname/genel/t/tk/talimat new file mode 100644 index 000000000..95cd54903 --- /dev/null +++ b/talimatname/genel/t/tk/talimat @@ -0,0 +1,43 @@ +# Tanım: TCL için bir GUI araç seti. +# URL: http://www.tcl.tk/ +# Paketçi: milisarge +# Gerekler: tcl xorg-fontconfig xorg-libxft xorg-libxscrnsaver + +isim=tk +surum=8.6.6 +devir=1 +kaynak=(http://downloads.sourceforge.net/project/tcl/Tcl/$surum/$isim$surum-src.tar.gz) + +derle() { + cd $isim$surum/unix + + ./configure \ + --prefix=/usr \ + --mandir=/usr/share/man \ + --enable-gcc \ + --enable-shared \ + --enable-xft + + make + make MKLINKS_FLAGS="-s" INSTALL_ROOT=$PKG install install-private-headers + + cp ../generic/*.h $PKG/usr/include/ + cp tkUnixPort.h $PKG/usr/include/tkPort.h + cp tkUnixDefault.h $PKG/usr/include/tkDefault.h + cp tkUnixInt.h $PKG/usr/include/tkInt.h + + # remove $SRC traces + sed \ + -e "s|$SRC/tk$surum/unix|/usr/lib|g" \ + -e "s|$SRC/tk$surum|/usr/include|g" \ + -i $PKG/usr/lib/tkConfig.sh + + rm -r $PKG/usr/lib/tk${surum%.*}/demos + rm $PKG/usr/lib/tk${surum%.*}/images/README + + ln -s wish${surum%.*} $PKG/usr/bin/wish + ln -s libtk${surum%.*}.so $PKG/usr/lib/libtk.so + ln -s libtkstub${surum%.*}.a $PKG/usr/lib/libtkstub.a + + chmod -R u+w $PKG/usr/share/man +} diff --git a/talimatname/genel/t/tmux/talimat b/talimatname/genel/t/tmux/talimat new file mode 100644 index 000000000..d49826263 --- /dev/null +++ b/talimatname/genel/t/tmux/talimat @@ -0,0 +1,16 @@ +# Tanım: Terminal çoklayıcı. +# URL: https://tmux.github.io +# Paketçi: milisarge +# Gerekler: libevent + +isim=tmux +surum=2.2 +devir=1 +kaynak=(https://github.com/tmux/tmux/releases/download/$surum/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/tolua++/talimat b/talimatname/genel/t/tolua++/talimat new file mode 100644 index 000000000..599f48374 --- /dev/null +++ b/talimatname/genel/t/tolua++/talimat @@ -0,0 +1,23 @@ +# Tanım: C / C ++ kodunu Lua ile bütünleştiren bir araç +# URL: http://www.codenix.com/~tolua +# Paketçi: milisarge +# Gerekler: scons lua51 + +isim=tolua++ +surum=1.0.93 +devir=1 + +kaynak=(ftp://ftp.debian.org/debian/pool/main/t/$isim/${isim}_$surum.orig.tar.bz2) + +derle() { +cd $isim-$surum + +cat > config_linux.py << "EOF" +CCFLAGS = ['-I/usr/include/lua5.1', '-O2', '-ansi', '-Wall', '-fPIC'] +prefix = '/usr' +LIBS = ['lua5.1', 'dl', 'm'] +EOF + +scons all +scons prefix=$PKG/usr install +} diff --git a/talimatname/genel/t/tomb/talimat b/talimatname/genel/t/tomb/talimat new file mode 100644 index 000000000..36323f15f --- /dev/null +++ b/talimatname/genel/t/tomb/talimat @@ -0,0 +1,29 @@ +# Tanım: Şifreli dizin yuvaları yapmaya yarayan konsol uygulaması +# Url: https://www.dyne.org/software/tomb +# Paketçi: milisarge +# Gerekler: zsh cryptsetup gnupg sudo e2fsprogs + +isim=tomb +surum=git +devir=1 +kaynak=(https://raw.githubusercontent.com/parazyd/gtomb/master/gtomb::gtomb-$devir) +_git_url="https://github.com/dyne/Tomb" + +derle() { + if [ ! -d $DERLEME_KAYNAKDIZIN/$isim ];then + git clone $_git_url $DERLEME_KAYNAKDIZIN/$isim + else + cd $DERLEME_KAYNAKDIZIN/$isim + git pull + cd - + fi + cp -r $DERLEME_KAYNAKDIZIN/$isim $SRC/ + cd $SRC/$isim/extras/kdf-keys + make + make DESTDIR="${PKG}" PREFIX=/usr install + cd $SRC/$isim + make DESTDIR="${PKG}" PREFIX=/usr install + sed -i "s|/usr/local/bin|/usr/bin|g" $SRC/gtomb-$devir + cp $SRC/gtomb-$devir $PKG/usr/bin/gtomb +} + diff --git a/talimatname/genel/t/totem-pl-parser/talimat b/talimatname/genel/t/totem-pl-parser/talimat new file mode 100644 index 000000000..7761f9de1 --- /dev/null +++ b/talimatname/genel/t/totem-pl-parser/talimat @@ -0,0 +1,18 @@ +# Tanım: GObject tabanlı kitaplık, çalma listesi formatlarını analiz eder ve kaydeder. +# URL: http://www.gnome.org/ +# Paketçi: milisarge +# Gerekler: gmime intltool libsoup gobject-introspection + +isim=totem-pl-parser +surum=3.10.6 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr --disable-static +make +make DESTDIR=$PKG install +rm -rf $PKG/usr/share/gtk-doc +} diff --git a/talimatname/genel/t/totem/talimat b/talimatname/genel/t/totem/talimat new file mode 100644 index 000000000..8c92d4f7e --- /dev/null +++ b/talimatname/genel/t/totem/talimat @@ -0,0 +1,20 @@ +# Tanım: GStreamer tabanlı GNOME3 film oynatıcı. +# URL: http://www.gnome.org/projects/totem/" +# Paketçi: yasarciv67@gmail.com +# Gerekler: gsettings-desktop-schemas desktop-file-utils gtk-update-icon-cache grilo libpeas gnome-icon-theme iso-codes gnome-doc-utils python-xdg clutter-gst clutter-gtk xorg-libsm libpeas python-gobject libgdata gstreamer1-plugins-good gstreamer1-plugins-bad totem-pl-parser nautilus python3-pylint + +isim=totem +surum=3.22.0 +devir=1 + +kaynak=(http://download.gnome.org/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ + --disable-static \ + --enable-python \ + --enable-nautilus +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/totem/totem.kur-kos b/talimatname/genel/t/totem/totem.kur-kos new file mode 100644 index 000000000..c1b223d73 --- /dev/null +++ b/talimatname/genel/t/totem/totem.kur-kos @@ -0,0 +1,3 @@ +/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas +update-desktop-database -q +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor diff --git a/talimatname/genel/t/toxcore/talimat b/talimatname/genel/t/toxcore/talimat new file mode 100644 index 000000000..cf84f44eb --- /dev/null +++ b/talimatname/genel/t/toxcore/talimat @@ -0,0 +1,21 @@ +# Tanım: p2p şifreli iletişim protokol çekirdeği +# URL: https://github.com/TokTok/c-toxcore/ +# Paketçi: milisarge +# Gerekler: libconfig libsodium libvpx opus cmake + +isim=toxcore +surum=0.1.10 +devir=1 +kaynak=(https://github.com/TokTok/c-toxcore/archive/v$surum.tar.gz) + +derle() { + cd c-toxcore-$surum + sed -i "/Rpath/d;/RPATH/d" CMakeLists.txt + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DDHT_BOOTSTRAP=on \ + -DBOOTSTRAP_DAEMON=on \ + -DBUILD_NTOX=off + make + make DESTDIR="$PKG" install + install -Dm644 ./other/bootstrap_daemon/tox-bootstrapd.conf "$PKG/etc/tox-bootstrapd.conf" +} diff --git a/talimatname/genel/t/toxcore/toxcore.kur-kos b/talimatname/genel/t/toxcore/toxcore.kur-kos new file mode 100644 index 000000000..b424bd46a --- /dev/null +++ b/talimatname/genel/t/toxcore/toxcore.kur-kos @@ -0,0 +1,4 @@ +/sbin/groupadd -g 92 tox-bootstrapd +/sbin/useradd -g tox-bootstrapd -u 92 -d /var/tox-bootstrapd -s /bin/false tox-bootstrapd +/bin/passwd -l tox-bootstrapd +[[ -d var/lib/tox-bootstrapd ]] || install -dm 750 -o tox-bootstrapd -g tox-bootstrapd var/lib/tox-bootstrapd diff --git a/talimatname/genel/t/toybox/talimat b/talimatname/genel/t/toybox/talimat new file mode 100644 index 000000000..e7301c3e7 --- /dev/null +++ b/talimatname/genel/t/toybox/talimat @@ -0,0 +1,20 @@ +# Tanım: A BSD lisanslı busybox alternatifi +# URL: http://landley.net/toybox/ +# Paketçi: milisarge +# Gerekler: + +isim=toybox +surum=0.7.4 +devir=1.0 +kaynak=(http://landley.net/toybox/downloads/toybox-$surum.tar.gz) + +derle() { + cd "${SRC}/${isim}-${surum}" + make menuconfig + bash scripts/make.sh + mkdir -p "${PKG}/usr/share/licenses/${isim}" + mkdir -p "${PKG}/usr/bin" + PREFIX=${PKG}/usr/toybox/ make install + install -m755 "${SRC}/${isim}-${surum}/${isim}" "${PKG}/usr/bin/" + cp "${SRC}/${isim}-${surum}/LICENSE" "${PKG}/usr/share/licenses/toybox/" +} diff --git a/talimatname/genel/t/traceroute/talimat b/talimatname/genel/t/traceroute/talimat new file mode 100644 index 000000000..aea277a1d --- /dev/null +++ b/talimatname/genel/t/traceroute/talimat @@ -0,0 +1,16 @@ +# Tanım: Belirli bir ana makineye ulaşmak için paketlerin aldığı ağ yolunu görüntüleyin. +# URL: http://traceroute.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: + +isim=traceroute +surum=2.0.21 +devir=1 + +kaynak=(http://downloads.sourceforge.net/traceroute/traceroute-$surum.tar.gz) + +derle(){ + cd $isim-$surum + make + make prefix=/usr DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/tracker/talimat b/talimatname/genel/t/tracker/talimat new file mode 100644 index 000000000..d8cf2b0af --- /dev/null +++ b/talimatname/genel/t/tracker/talimat @@ -0,0 +1,23 @@ +# Tanım: Anlamsal veri depolama. +# URL: http://www.gnome.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: dbus exempi libgee gdk-pixbuf glib gnome-keyring gobject-introspection gstreamer1-plugins-base gtk3 icu libjpeg-turbo libexif libgsf libmediaart libosinfo libpng networkmanager pango poppler python sqlite libtiff totem-pl-parser upower util-linux vala zlib desktop-file-utils gtk-update-icon-cache + +isim=tracker +surum=1.10.3 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle(){ + cd $isim-$surum +./configure --prefix=/usr \ + --sysconfdir=/etc \ + --disable-static \ + --disable-unit-tests \ + --disable-miner-evolution \ + --disable-miner-firefox \ + --disable-miner-thunderbird + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/tracker/tracker.kur-kos b/talimatname/genel/t/tracker/tracker.kur-kos new file mode 100644 index 000000000..51b045731 --- /dev/null +++ b/talimatname/genel/t/tracker/tracker.kur-kos @@ -0,0 +1,3 @@ +glib-compile-schemas /usr/share/glib-2.0/schemas +update-desktop-database -q +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor diff --git a/talimatname/genel/t/transmission/talimat b/talimatname/genel/t/transmission/talimat new file mode 100644 index 000000000..fcea8627f --- /dev/null +++ b/talimatname/genel/t/transmission/talimat @@ -0,0 +1,22 @@ +# Tanım: Komut satırı ve web kullanıcı arayüzü ile BitTorrent istemcisi/arka plan programı +# URL: https://transmissionbt.com/ +# Paketçi: milisarge +# Gerekler: curl libevent gtk3 intltool + +isim=transmission +surum=2.92 +devir=1 +kaynak=(https://download.transmissionbt.com/files/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + + ./configure --prefix=/usr \ + --enable-cli \ + --enable-daemon \ + --with-gtk + make + make DESTDIR=$PKG install + + rm $PKG/usr/share/transmission/web/LICENSE +} diff --git a/talimatname/genel/t/transmission/transmission.kur-kos b/talimatname/genel/t/transmission/transmission.kur-kos new file mode 100644 index 000000000..1dd81428d --- /dev/null +++ b/talimatname/genel/t/transmission/transmission.kur-kos @@ -0,0 +1,2 @@ +update-desktop-database -q +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor diff --git a/talimatname/genel/t/trayer/manpage.diff b/talimatname/genel/t/trayer/manpage.diff new file mode 100644 index 000000000..76d6ad53f --- /dev/null +++ b/talimatname/genel/t/trayer/manpage.diff @@ -0,0 +1,197 @@ +Tanım: Debian manpage and path setup +Author: Jens Peter Secher +Index: trayer/trayer.1 +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ trayer/trayer.1 2011-05-08 21:38:37.000000000 +0200 +@@ -0,0 +1,190 @@ ++.TH TRAYER 1 "Feb 14, 2005" "FVWM\-Crystal" ++.SH NAME ++trayer \- a lightweight GTK2\-based systray for UNIX desktop ++.SH SYNOPSIS ++.B trayer \-h ++.br ++.B trayer \-v ++.br ++.B trayer ++.\" ++.RB [\| \-\-edge ++.RI \| left \||\| right \||\| top \||\| bottom \||\| none \|] ++.\" ++.RB [\| \-\-align ++.RI \| left \||\| right \||\| center \|] ++.\" ++.RB [\| \-\-margin ++.RI \| \|] ++.\" ++.RB [\| \-\-widthtype ++.RI \| request \||\| pixel \||\| percent ++.RI \|] ++.\" ++.RB [\| \-\-width ++.RI \| \|] ++.\" ++.RB [\| \-\-heighttype ++.RI \| \|] ++.\" ++.RB [\| \-\-height ++.RI \| \|] ++.\" ++.RB [\| \-\-SetDockType ++.RI \| true \||\| false \|] ++.\" ++.RB [\| \-\-SetPartialStrut ++.RI \| true \||\| false \|] ++.\" ++.RB [\| \-\-transparent ++.RI \| true \||\| false \|] ++.\" ++.RB [\| \-\-alpha ++.RI \| \|] ++.\" ++.RB [\| \-\-tint ++.RI \| \|] ++.\" ++.RB [\| \-\-distance ++.RI \| \|] ++.\" ++.RB [\| \-\-expand ++.RI \| true \||\| false \|] ++.\" ++.RB [\| \-\-padding ++.RI \| \|] ++.\" ++.SH DESCRIPTION ++.B trayer ++is a small program designed to provide system tray similar to these in ++.B GNOME ++/ ++.B KDE ++desktop environments for window managers which does not ++support that function. It is similar to other applications such as ++.B peksystray ++and \fBdocker\fP. ++.PP ++System tray is a place, where many applications put their icons, so they are ++always visible. Such icons may present status of an application and allow user ++to control the program. ++.PP ++\fBtrayer\fP's code was extracted from \fBfbpanel\fP application, you can find more ++about it on its homepage: http://fbpanel.sourceforge.net/. ++.SH OPTIONS ++This programs follow the usual GNU command line syntax, with long ++options starting with two dashes (`-'). ++A summary of options is included below. ++.TP ++.B \-\-help ++.TP ++.B \-h ++Show summary of options and exit. ++ ++.TP ++.B \-\-version ++.TP ++.B \-v ++Show version of program and exit. ++ ++.TP ++\fB\-\-edge\fP \fIleft\fP\||\|\fIright\fP\||\|\fItop\fP\||\|\fIbottom\fP\||\|\fInone\fP ++Specifies a screen edge to use. ++ ++.TP ++\fB\-\-align\fP \fIleft\fP\||\|\fIcenter\fP\||\|\fIright\fP ++Specifies an align of the icons. ++ ++.TP ++\fB\-\-margin\fP \fI\fP ++Specifies length of margin (in pixels) ++ ++.TP ++\fB\-\-widthtype\fB \fIrequest\fP\||\|\fIpixel\fP\||\|\fIpercent\fP ++Specifies method of calculating trayer's window width: ++.RS ++.TP ++\fIrequest\fP ++Follow application icons' size, so trayer may shrink or expand dynamically. ++ ++.TP ++\fIpixel\fP ++Set a fixed size, given with \fB\-\-width\fP option in pixels. ++ ++.TP ++\fIpercent\fP ++Set a fixed size, given with \fB\-\-width\fP option in percentage of a length of screen edge. ++.RE ++ ++.TP ++\fB\-\-width\fP \fI\fP ++Width of trayer's window. Ignored when \fB\-\-widthtype\fP is set to \fIrequest\fP. ++ ++.TP ++\fB\-\-heighttype\fP \fIrequest\fP\||\|\fIpixel\fP\||\|\fIpercent\fP ++Specifies method of calculating trayer's window height: ++.RS ++.TP ++\fIrequest\fP ++Follow application icons' size, so trayer may shrink or expand dynamically. ++ ++.TP ++\fIpixel\fP ++Set a fixed size, given with \fB\-\-height\fP option in pixels. ++ ++.TP ++\fIpercent\fP ++Set a fixed size, given with \fB\-\-height\fP option in percentage of a length of screen edge. ++.RE ++ ++.TP ++\fB\-\-height\fP \fI\fP ++Height of trayer's window. Ignored when \fB\-\-heighttype\fP is set to \fIrequest\fP. ++ ++.TP ++\fB\-\-SetDockType\fP \fItrue\fP\||\|\fIfalse\fP ++Identify panel window type as dock. ++ ++.TP ++\fB\-\-SetPartialStrut\fP \fItrue\fP\||\|\fIfalse\fP ++Reserve panel space so that it will not be covered by maximized windows. ++ ++.TP ++\fB\-\-transparent\fP \fItrue\fP\||\|\fIfalse\fP ++Use transparency. ++ ++.TP ++\fB\-\-alpha\fP \fI\fP ++Percentage of transparency (0 \- nontransparent, 255 \- fully transparent) ++ ++.TP ++\fB\-\-tint\fP \fI\fP ++Color used to tint transparent background. Color is given as a 24-bit C hexadecimal integer, for example: 0xff0000 is red, 0xff8800 is orange and 0x00ff00 is green. ++ ++.TP ++\fB\-\-distance\fP \fI\fP ++Specifies distance between trayer's window and screen edge (in pixels) ++ ++.TP ++\fB\-\-expand\fP \fItrue\fP\||\|\fIfalse\fP ++Specifies whether trayer may accommodate extra space when there is too much ++icons. ++ ++.TP ++\fB\-\-padding\fP \fI\fP ++Extra space between icons and trayer window's border. ++ ++.SH SEE ALSO ++.BR fbpanel (1) ++.SH AUTHORS ++Anatoly Asviyan \- fbpanel ++.br ++Rafal Bisingier ++.br ++Maciej Delmanowski ++.br ++Grzegorz Nieweglowski ++.br ++Thomas Rydzynski ++.PP ++This manual page was written by Tomasz Melcer . diff --git a/talimatname/genel/t/trayer/talimat b/talimatname/genel/t/trayer/talimat new file mode 100644 index 000000000..5fc5696c2 --- /dev/null +++ b/talimatname/genel/t/trayer/talimat @@ -0,0 +1,22 @@ +# Tanım: Hafif bir GTK2 tabanlı systray +# URL: http://home.gna.org/fvwm-crystal/ +# Paketçi: milisarge@gmail.com +# Gerekler: xorg-libxmu gtk2 + +isim=trayer +surum=1.0 +devir=1 +kaynak=(http://download.gna.org/fvwm-crystal/trayer/${surum}/${isim}-${surum}.tar.gz + trayer.diff manpage.diff ) + +derle() { + cd $isim-$surum + patch -p0 -i ../trayer.diff + patch -p1 -i ../manpage.diff + sed -i 's/$(LIBS) $(OBJ) $(SYSTRAYOBJ)/$(OBJ) $(SYSTRAYOBJ) $(LIBS) -lX11/' Makefile + make CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" + make PREFIX="$PKG/usr" install + install -D -m644 trayer.1 "$PKG/usr/share/man/man1/trayer.1" + install -D -m644 COPYING "$PKG/usr/share/licenses/$PKG/LICENSE" +} + diff --git a/talimatname/genel/t/trayer/trayer.diff b/talimatname/genel/t/trayer/trayer.diff new file mode 100644 index 000000000..469d249dc --- /dev/null +++ b/talimatname/genel/t/trayer/trayer.diff @@ -0,0 +1,22 @@ + # This patchfile was courtesy of the Debian team. Thanks! +--- Makefile.common ++++ Makefile.common~ +@@ -25,7 +25,7 @@ + endif + + # -DGTK_DISABLE_DEPRECATED does not work yet +-CFLAGS += -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED ++CFLAGS += -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED + + %.o: %.c + $(CC) $(CFLAGS) $(INCS) -c $< +--- panel.c ++++ panel.c~ +@@ -588,7 +588,6 @@ + printf(" --height \n"); + printf(" --SetDockType \n"); + printf(" --SetPartialStrut \n"); +- printf(" --RoundCorners \n"); + printf(" --transparent \n"); + printf(" --alpha \n"); + printf(" --tint \n"); diff --git a/talimatname/genel/t/tree/talimat b/talimatname/genel/t/tree/talimat new file mode 100644 index 000000000..e70ee050e --- /dev/null +++ b/talimatname/genel/t/tree/talimat @@ -0,0 +1,17 @@ +# Tanım: Dizin ağacını göster +# URL: http://mama.indstate.edu/users/ice/tree/ +# Paketçi: milisarge +# Gerekler: + +isim=tree +surum=1.7.0 +devir=1 + +kaynak=(ftp://mama.indstate.edu/linux/$isim/$isim-$surum.tgz) + +derle() { + cd $isim-$surum + make + mkdir -p $PKG/usr/bin + cp tree $PKG/usr/bin/ +} diff --git a/talimatname/genel/t/trinity/talimat b/talimatname/genel/t/trinity/talimat new file mode 100644 index 000000000..dd427b64d --- /dev/null +++ b/talimatname/genel/t/trinity/talimat @@ -0,0 +1,19 @@ +# Tanım: Linux sistem çağrılarının test uygulaması +# Url: http://codemonkey.org.uk/projects/trinity/ +# Paketçi: milisarge +# Gerekler: +# Grup: güvenlik + +isim=trinity +surum=1.8 +devir=1 +kaynak=(http://codemonkey.org.uk/projects/trinity/trinity-1.8.tar.xz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make + mkdir -p $PKG/usr/bin + install -m755 trinity $PKG/usr/bin/ +} + diff --git a/talimatname/genel/t/tripwire/talimat b/talimatname/genel/t/tripwire/talimat new file mode 100644 index 000000000..d83238980 --- /dev/null +++ b/talimatname/genel/t/tripwire/talimat @@ -0,0 +1,56 @@ +# Tanım: Bir saldırı tespit sistemi +# URL: http://sourceforge.net/projects/tripwire/ +# Paketçi: Cihan_Alkan +# Gerekler: +# Grup: güvenlik + +isim=tripwire +surum=2.4.3.6 +devir=1 +kaynak=(https://github.com/Tripwire/tripwire-open-source/archive/2.4.3.6.tar.gz::$isim-$surum.tar.gz + twpol.txt + twcfg.txt) + +derle() { + cd tripwire-open-source-$surum + +#build package +# CFLAGS="$CFLAGS -fno-strict-aliasing" CXXFLAGS="$CXXFLAGS -fno-strict-aliasing" \ + autoreconf --force --install + ./autogen.sh + ./configure --sysconfdir=/etc/tripwire + make -j4 + + # This package doesn't have a typical make install, so we do it by hand. + +#create var/lib directories + install -d ${PKG}/var/lib + install -d -m700 ${PKG}/var/lib/tripwire + install -d -m700 ${PKG}/var/lib/tripwire/report + +#install binaries + install -d ${PKG}/usr/bin + install -m755 bin/siggen ${PKG}/usr/bin/ + install -m755 bin/tripwire ${PKG}/usr/bin/ + install -m755 bin/twadmin ${PKG}/usr/bin/ + install -m755 bin/twprint ${PKG}/usr/bin/ + +#copy install files for use by user after install, and fix a path + install -d ${PKG}/usr/share/$isim + install -m755 installer/install.sh ${PKG}/usr/share/$isim/ + install -m644 installer/install.cfg ${PKG}/usr/share/$isim/ + sed -i 's#./install/install.cfg#./install.cfg#' ${PKG}/usr/share/$isim/install.sh + +#install man pages - FS#13766 fixed + install -d ${PKG}/usr/share/man/{man4,man5,man8} + install -m644 man/man4/*.4 ${PKG}/usr/share/man/man4/ + install -m644 man/man5/*.5 ${PKG}/usr/share/man/man5/ + install -m644 man/man8/*.8 ${PKG}/usr/share/man/man8/ + +#install configuration files + mkdir ${PKG}/etc + mkdir ${PKG}/etc/tripwire + install -d ${PKG}/etc/$isim + install -m644 ${SRC}/twpol.txt ${PKG}/etc/tripwire/twpol.txt + install -m644 ${SRC}/twcfg.txt ${PKG}/etc/tripwire/twcfg.txt +} diff --git a/talimatname/genel/t/tripwire/twcfg.txt b/talimatname/genel/t/tripwire/twcfg.txt new file mode 100644 index 000000000..d4392be0b --- /dev/null +++ b/talimatname/genel/t/tripwire/twcfg.txt @@ -0,0 +1,15 @@ +ROOT =/usr/sbin +POLFILE =/etc/tripwire/tw.pol +DBFILE =/var/lib/tripwire/$(HOSTNAME).twd +REPORTFILE =/var/lib/tripwire/report/$(HOSTNAME)-$(DATE).twr +SITEKEYFILE =/etc/tripwire/site.key +LOCALKEYFILE =/etc/tripwire/$(HOSTNAME)-local.key +EDITOR =/usr/bin/vi +LATEPROMPTING =false +LOOSEDIRECTORYCHECKING =false +MAILNOVIOLATIONS =true +EMAILREPORTLEVEL =3 +REPORTLEVEL =3 +MAILMETHOD =SENDMAIL +SYSLOGREPORTING =false +MAILPROGRAM =/usr/sbin/sendmail -oi -t diff --git a/talimatname/genel/t/tripwire/twpol.txt b/talimatname/genel/t/tripwire/twpol.txt new file mode 100644 index 000000000..051804889 --- /dev/null +++ b/talimatname/genel/t/tripwire/twpol.txt @@ -0,0 +1,1093 @@ + ############################################################################## + # ## +############################################################################## # +# # # +# This is the example Tripwire Policy file. It is intended as a place to # # +# start creating your own custom Tripwire Policy file. Referring to it as # # +# well as the Tripwire Policy Guide should give you enough information to # # +# make a good custom Tripwire Policy file that better covers your # # +# configuration and security needs. A text version of this policy file is # # +# called twpol.txt. # # +# # # +# Note that this file is tuned to an 'everything' install of Red Hat Linux. # # +# If run unmodified, this file should create no errors on database # # +# creation, or violations on a subsiquent integrity check. However, it is # # +# impossible for there to be one policy file for all machines, so this # # +# existing one errs on the side of security. Your Linux configuration will # # +# most likey differ from the one our policy file was tuned to, and will # # +# therefore require some editing of the default Tripwire Policy file. # # +# # # +# The example policy file is best run with 'Loose Directory Checking' # # +# enabled. Set LOOSEDIRECTORYCHECKING=TRUE in the Tripwire Configuration # # +# file. # # +# # # +# Email support is not included and must be added to this file. # # +# Add the 'emailto=' to the rule directive section of each rule (add a comma # # +# after the 'severity=' line and add an 'emailto=' and include the email # # +# addresses you want the violation reports to go to). Addresses are # # +# semi-colon delimited. # # +# ## +############################################################################## + + + + ############################################################################## + # ## +############################################################################## # +# # # +# Global Variable Definitions # # +# # # +# These are defined at install time by the installation script. You may # # +# Manually edit these if you are using this file directly and not from the # # +# installation script itself. # # +# ## +############################################################################## + +@@section GLOBAL +TWROOT=/usr/sbin; +TWBIN=/usr/sbin; +TWPOL="/etc/tripwire"; +TWDB="/var/lib/tripwire"; +TWSKEY="/etc/tripwire"; +TWLKEY="/etc/tripwire"; +TWREPORT="/var/lib/tripwire/report"; +HOSTNAME=localhost; + +@@section FS +SEC_CRIT = $(IgnoreNone)-SHa ; # Critical files that cannot change +SEC_SUID = $(IgnoreNone)-SHa ; # Binaries with the SUID or SGID flags set +SEC_BIN = $(ReadOnly) ; # Binaries that should not change +SEC_CONFIG = $(Dynamic) ; # Config files that are changed infrequently but accessed often +SEC_LOG = $(Growing) ; # Files that grow, but that should never change ownership +SEC_INVARIANT = +tpug ; # Directories that should never change permission or ownership +SIG_LOW = 33 ; # Non-critical files that are of minimal security impact +SIG_MED = 66 ; # Non-critical files that are of significant security impact +SIG_HI = 100 ; # Critical files that are significant points of vulnerability + + +# Tripwire Binaries +( + rulename = "Tripwire Binaries", + severity = $(SIG_HI) +) +{ + $(TWBIN)/siggen -> $(SEC_BIN) ; + $(TWBIN)/tripwire -> $(SEC_BIN) ; + $(TWBIN)/twadmin -> $(SEC_BIN) ; + $(TWBIN)/twprint -> $(SEC_BIN) ; +} + +# Tripwire Data Files - Configuration Files, Policy Files, Keys, Reports, Databases +( + rulename = "Tripwire Data Files", + severity = $(SIG_HI) +) +{ + # NOTE: We remove the inode attribute because when Tripwire creates a backup, + # it does so by renaming the old file and creating a new one (which will + # have a new inode number). Inode is left turned on for keys, which shouldn't + # ever change. + + # NOTE: The first integrity check triggers this rule and each integrity check + # afterward triggers this rule until a database update is run, since the + # database file does not exist before that point. + + $(TWDB) -> $(SEC_CONFIG) -i ; + $(TWPOL)/tw.pol -> $(SEC_BIN) -i ; + $(TWPOL)/tw.cfg -> $(SEC_BIN) -i ; + $(TWLKEY)/$(HOSTNAME)-local.key -> $(SEC_BIN) ; + $(TWSKEY)/site.key -> $(SEC_BIN) ; + + #don't scan the individual reports + $(TWREPORT) -> $(SEC_CONFIG) (recurse=0) ; +} + + +# Tripwire HQ Connector Binaries +#( +# rulename = "Tripwire HQ Connector Binaries", +# severity = $(SIG_HI) +#) +#{ +# $(TWBIN)/hqagent -> $(SEC_BIN) ; +#} +# +# Tripwire HQ Connector - Configuration Files, Keys, and Logs + + ############################################################################## + # ## +############################################################################## # +# # # +# Note: File locations here are different than in a stock HQ Connector # # +# installation. This is because Tripwire 2.3 uses a different path # # +# structure than Tripwire 2.2.1. # # +# # # +# You may need to update your HQ Agent configuation file (or this policy # # +# file) to correct the paths. We have attempted to support the FHS standard # # +# here by placing the HQ Agent files similarly to the way Tripwire 2.3 # # +# places them. # # +# ## +############################################################################## + +#( +# rulename = "Tripwire HQ Connector Data Files", +# severity = $(SIG_HI) +#) +#{ +# ############################################################################# +# ############################################################################## +# # NOTE: Removing the inode attribute because when Tripwire creates a backup ## +# # it does so by renaming the old file and creating a new one (which will ## +# # have a new inode number). Leaving inode turned on for keys, which ## +# # shouldn't ever change. ## +# ############################################################################# +# +# $(TWBIN)/agent.cfg -> $(SEC_BIN) -i ; +# $(TWLKEY)/authentication.key -> $(SEC_BIN) ; +# $(TWDB)/tasks.dat -> $(SEC_CONFIG) ; +# $(TWDB)/schedule.dat -> $(SEC_CONFIG) ; +# +# # Uncomment if you have agent logging enabled. +# #/var/log/tripwire/agent.log -> $(SEC_LOG) ; +#} + + + +# Commonly accessed directories that should remain static with regards to owner and group +( + rulename = "Invariant Directories", + severity = $(SIG_MED) +) +{ + / -> $(SEC_INVARIANT) (recurse = 0) ; + /home -> $(SEC_INVARIANT) (recurse = 0) ; + /etc -> $(SEC_INVARIANT) (recurse = 0) ; +} + ################################################ + # ## +################################################ # +# # # +# File System and Disk Administration Programs # # +# ## +################################################ + +( + rulename = "File System and Disk Administraton Programs", + severity = $(SIG_HI) +) +{ + /sbin/accton -> $(SEC_CRIT) ; + /sbin/badblocks -> $(SEC_CRIT) ; + /sbin/busybox -> $(SEC_CRIT) ; + /sbin/busybox.anaconda -> $(SEC_CRIT) ; + /sbin/convertquota -> $(SEC_CRIT) ; + /sbin/dosfsck -> $(SEC_CRIT) ; + /sbin/debugfs -> $(SEC_CRIT) ; + /sbin/debugreiserfs -> $(SEC_CRIT) ; + /sbin/dumpe2fs -> $(SEC_CRIT) ; + /sbin/dump -> $(SEC_CRIT) ; + /sbin/dump.static -> $(SEC_CRIT) ; + # /sbin/e2fsadm -> $(SEC_CRIT) ; tune2fs? + /sbin/e2fsck -> $(SEC_CRIT) ; + /sbin/e2label -> $(SEC_CRIT) ; + /sbin/fdisk -> $(SEC_CRIT) ; + /sbin/fsck -> $(SEC_CRIT) ; + /sbin/fsck.ext2 -> $(SEC_CRIT) ; + /sbin/fsck.ext3 -> $(SEC_CRIT) ; + /sbin/fsck.minix -> $(SEC_CRIT) ; + /sbin/fsck.msdos -> $(SEC_CRIT) ; + /sbin/fsck.vfat -> $(SEC_CRIT) ; + /sbin/ftl_check -> $(SEC_CRIT) ; + /sbin/ftl_format -> $(SEC_CRIT) ; + /sbin/hdparm -> $(SEC_CRIT) ; + #/sbin/lvchange -> $(SEC_CRIT) ; + #/sbin/lvcreate -> $(SEC_CRIT) ; + #/sbin/lvdisplay -> $(SEC_CRIT) ; + #/sbin/lvextend -> $(SEC_CRIT) ; + #/sbin/lvmchange -> $(SEC_CRIT) ; + #/sbin/lvmcreate_initrd -> $(SEC_CRIT) ; + #/sbin/lvmdiskscan -> $(SEC_CRIT) ; + #/sbin/lvmsadc -> $(SEC_CRIT) ; + #/sbin/lvmsar -> $(SEC_CRIT) ; + #/sbin/lvreduce -> $(SEC_CRIT) ; + #/sbin/lvremove -> $(SEC_CRIT) ; + #/sbin/lvrename -> $(SEC_CRIT) ; + #/sbin/lvscan -> $(SEC_CRIT) ; + /sbin/mkbootdisk -> $(SEC_CRIT) ; + /sbin/mkdosfs -> $(SEC_CRIT) ; + /sbin/mke2fs -> $(SEC_CRIT) ; + /sbin/mkfs -> $(SEC_CRIT) ; + /sbin/mkfs.bfs -> $(SEC_CRIT) ; + /sbin/mkfs.ext2 -> $(SEC_CRIT) ; + /sbin/mkfs.minix -> $(SEC_CRIT) ; + /sbin/mkfs.msdos -> $(SEC_CRIT) ; + /sbin/mkfs.vfat -> $(SEC_CRIT) ; + /sbin/mkinitrd -> $(SEC_CRIT) ; + #/sbin/mkpv -> $(SEC_CRIT) ; + /sbin/mkraid -> $(SEC_CRIT) ; + /sbin/mkreiserfs -> $(SEC_CRIT) ; + /sbin/mkswap -> $(SEC_CRIT) ; + #/sbin/mtx -> $(SEC_CRIT) ; + /sbin/pam_console_apply -> $(SEC_CRIT) ; + /sbin/parted -> $(SEC_CRIT) ; + /sbin/pcinitrd -> $(SEC_CRIT) ; + #/sbin/pvchange -> $(SEC_CRIT) ; + #/sbin/pvcreate -> $(SEC_CRIT) ; + #/sbin/pvdata -> $(SEC_CRIT) ; + #/sbin/pvdisplay -> $(SEC_CRIT) ; + #/sbin/pvmove -> $(SEC_CRIT) ; + #/sbin/pvscan -> $(SEC_CRIT) ; + /sbin/quotacheck -> $(SEC_CRIT) ; + /sbin/quotaon -> $(SEC_CRIT) ; + /sbin/raidstart -> $(SEC_CRIT) ; + /sbin/reiserfsck -> $(SEC_CRIT) ; + /sbin/resize2fs -> $(SEC_CRIT) ; + /sbin/resize_reiserfs -> $(SEC_CRIT) ; + /sbin/restore -> $(SEC_CRIT) ; + /sbin/restore.static -> $(SEC_CRIT) ; + /sbin/scsi_info -> $(SEC_CRIT) ; + /sbin/sfdisk -> $(SEC_CRIT) ; + /sbin/stinit -> $(SEC_CRIT) ; + #/sbin/tapeinfo -> $(SEC_CRIT) ; + /sbin/tune2fs -> $(SEC_CRIT) ; + /sbin/unpack -> $(SEC_CRIT) ; + /sbin/update -> $(SEC_CRIT) ; + #/sbin/vgcfgbackup -> $(SEC_CRIT) ; + #/sbin/vgcfgrestore -> $(SEC_CRIT) ; + #/sbin/vgchange -> $(SEC_CRIT) ; + #/sbin/vgck -> $(SEC_CRIT) ; + #/sbin/vgcreate -> $(SEC_CRIT) ; + #/sbin/vgdisplay -> $(SEC_CRIT) ; + #/sbin/vgexport -> $(SEC_CRIT) ; + #/sbin/vgextend -> $(SEC_CRIT) ; + #/sbin/vgimport -> $(SEC_CRIT) ; + #/sbin/vgmerge -> $(SEC_CRIT) ; + #/sbin/vgmknodes -> $(SEC_CRIT) ; + #/sbin/vgreduce -> $(SEC_CRIT) ; + #/sbin/vgremove -> $(SEC_CRIT) ; + #/sbin/vgrename -> $(SEC_CRIT) ; + #/sbin/vgscan -> $(SEC_CRIT) ; + #/sbin/vgsplit -> $(SEC_CRIT) ; + /bin/chgrp -> $(SEC_CRIT) ; + /bin/chmod -> $(SEC_CRIT) ; + /bin/chown -> $(SEC_CRIT) ; + /bin/cp -> $(SEC_CRIT) ; + /bin/cpio -> $(SEC_CRIT) ; + /bin/mount -> $(SEC_CRIT) ; + /bin/umount -> $(SEC_CRIT) ; + /bin/mkdir -> $(SEC_CRIT) ; + /bin/mknod -> $(SEC_CRIT) ; + /bin/mktemp -> $(SEC_CRIT) ; + /bin/rm -> $(SEC_CRIT) ; + /bin/rmdir -> $(SEC_CRIT) ; + /bin/touch -> $(SEC_CRIT) ; +} + + ################################## + # ## +################################## # +# # # +# Kernel Administration Programs # # +# ## +################################## + +( + rulename = "Kernel Administration Programs", + severity = $(SIG_HI) +) +{ + /sbin/adjtimex -> $(SEC_CRIT) ; + /sbin/ctrlaltdel -> $(SEC_CRIT) ; + /sbin/depmod -> $(SEC_CRIT) ; + /sbin/insmod -> $(SEC_CRIT) ; + /sbin/insmod.static -> $(SEC_CRIT) ; + /sbin/insmod_ksymoops_clean -> $(SEC_CRIT) ; + /sbin/klogd -> $(SEC_CRIT) ; + /sbin/ldconfig -> $(SEC_CRIT) ; + /sbin/minilogd -> $(SEC_CRIT) ; + /sbin/modinfo -> $(SEC_CRIT) ; + #/sbin/nuactlun -> $(SEC_CRIT) ; + #/sbin/nuscsitcpd -> $(SEC_CRIT) ; + /sbin/pivot_root -> $(SEC_CRIT) ; + /sbin/sndconfig -> $(SEC_CRIT) ; + /sbin/sysctl -> $(SEC_CRIT) ; +} + + ####################### + # ## +####################### # +# # # +# Networking Programs # # +# ## +####################### + +( + rulename = "Networking Programs", + severity = $(SIG_HI) +) +{ + /etc/sysconfig/network-scripts/ifdown -> $(SEC_CRIT) ; + /etc/sysconfig/network-scripts/ifdown-cipcb -> $(SEC_CRIT) ; + /etc/sysconfig/network-scripts/ifdown-ippp -> $(SEC_CRIT) ; + /etc/sysconfig/network-scripts/ifdown-ipv6 -> $(SEC_CRIT) ; + /etc/sysconfig/network-scripts/ifdown-isdn -> $(SEC_CRIT) ; + /etc/sysconfig/network-scripts/ifdown-post -> $(SEC_CRIT) ; + /etc/sysconfig/network-scripts/ifdown-ppp -> $(SEC_CRIT) ; + /etc/sysconfig/network-scripts/ifdown-sit -> $(SEC_CRIT) ; + /etc/sysconfig/network-scripts/ifdown-sl -> $(SEC_CRIT) ; + /etc/sysconfig/network-scripts/ifup -> $(SEC_CRIT) ; + /etc/sysconfig/network-scripts/ifup-aliases -> $(SEC_CRIT) ; + /etc/sysconfig/network-scripts/ifup-cipcb -> $(SEC_CRIT) ; + /etc/sysconfig/network-scripts/ifup-ippp -> $(SEC_CRIT) ; + /etc/sysconfig/network-scripts/ifup-ipv6 -> $(SEC_CRIT) ; + /etc/sysconfig/network-scripts/ifup-isdn -> $(SEC_CRIT) ; + /etc/sysconfig/network-scripts/ifup-plip -> $(SEC_CRIT) ; + /etc/sysconfig/network-scripts/ifup-plusb -> $(SEC_CRIT) ; + /etc/sysconfig/network-scripts/ifup-post -> $(SEC_CRIT) ; + /etc/sysconfig/network-scripts/ifup-ppp -> $(SEC_CRIT) ; + /etc/sysconfig/network-scripts/ifup-routes -> $(SEC_CRIT) ; + /etc/sysconfig/network-scripts/ifup-sit -> $(SEC_CRIT) ; + /etc/sysconfig/network-scripts/ifup-sl -> $(SEC_CRIT) ; + /etc/sysconfig/network-scripts/ifup-wireless -> $(SEC_CRIT) ; + /etc/sysconfig/network-scripts/network-functions -> $(SEC_CRIT) ; + /etc/sysconfig/network-scripts/network-functions-ipv6 -> $(SEC_CRIT) ; + /bin/ping -> $(SEC_CRIT) ; + /sbin/agetty -> $(SEC_CRIT) ; + /sbin/arp -> $(SEC_CRIT) ; + /sbin/arping -> $(SEC_CRIT) ; + /sbin/dhcpcd -> $(SEC_CRIT) ; + /sbin/ether-wake -> $(SEC_CRIT) ; + #/sbin/getty -> $(SEC_CRIT) ; + /sbin/ifcfg -> $(SEC_CRIT) ; + /sbin/ifconfig -> $(SEC_CRIT) ; + /sbin/ifdown -> $(SEC_CRIT) ; + /sbin/ifenslave -> $(SEC_CRIT) ; + /sbin/ifport -> $(SEC_CRIT) ; + /sbin/ifup -> $(SEC_CRIT) ; + /sbin/ifuser -> $(SEC_CRIT) ; + /sbin/ip -> $(SEC_CRIT) ; + /sbin/ip6tables -> $(SEC_CRIT) ; + /sbin/ipchains -> $(SEC_CRIT) ; + /sbin/ipchains-restore -> $(SEC_CRIT) ; + /sbin/ipchains-save -> $(SEC_CRIT) ; + /sbin/ipfwadm -> $(SEC_CRIT) ; + /sbin/ipmaddr -> $(SEC_CRIT) ; + /sbin/iptables -> $(SEC_CRIT) ; + /sbin/iptables-restore -> $(SEC_CRIT) ; + /sbin/iptables-save -> $(SEC_CRIT) ; + /sbin/iptunnel -> $(SEC_CRIT) ; + /sbin/ipvsadm -> $(SEC_CRIT) ; + /sbin/ipvsadm-restore -> $(SEC_CRIT) ; + /sbin/ipvsadm-save -> $(SEC_CRIT) ; + /sbin/ipx_configure -> $(SEC_CRIT) ; + /sbin/ipx_interface -> $(SEC_CRIT) ; + /sbin/ipx_internal_net -> $(SEC_CRIT) ; + /sbin/iwconfig -> $(SEC_CRIT) ; + /sbin/iwgetid -> $(SEC_CRIT) ; + /sbin/iwlist -> $(SEC_CRIT) ; + /sbin/iwpriv -> $(SEC_CRIT) ; + /sbin/iwspy -> $(SEC_CRIT) ; + /sbin/mgetty -> $(SEC_CRIT) ; + /sbin/mingetty -> $(SEC_CRIT) ; + /sbin/nameif -> $(SEC_CRIT) ; + /sbin/netreport -> $(SEC_CRIT) ; + /sbin/plipconfig -> $(SEC_CRIT) ; + /sbin/portmap -> $(SEC_CRIT) ; + /sbin/ppp-watch -> $(SEC_CRIT) ; + #/sbin/rarp -> $(SEC_CRIT) ; + /sbin/route -> $(SEC_CRIT) ; + /sbin/slattach -> $(SEC_CRIT) ; + /sbin/tc -> $(SEC_CRIT) ; + #/sbin/uugetty -> $(SEC_CRIT) ; + /sbin/vgetty -> $(SEC_CRIT) ; + /sbin/ypbind -> $(SEC_CRIT) ; +} + + ################################## + # ## +################################## # +# # # +# System Administration Programs # # +# ## +################################## + +( + rulename = "System Administration Programs", + severity = $(SIG_HI) +) +{ + /sbin/chkconfig -> $(SEC_CRIT) ; + /sbin/fuser -> $(SEC_CRIT) ; + /sbin/halt -> $(SEC_CRIT) ; + /sbin/init -> $(SEC_CRIT) ; + /sbin/initlog -> $(SEC_CRIT) ; + /sbin/install-info -> $(SEC_CRIT) ; + /sbin/killall5 -> $(SEC_CRIT) ; + #/sbin/linuxconf -> $(SEC_CRIT) ; + #/sbin/linuxconf-auth -> $(SEC_CRIT) ; + /sbin/pam_tally -> $(SEC_CRIT) ; + /sbin/pwdb_chkpwd -> $(SEC_CRIT) ; + #/sbin/remadmin -> $(SEC_CRIT) ; + /sbin/rescuept -> $(SEC_CRIT) ; + /sbin/rmt -> $(SEC_CRIT) ; + /sbin/rpc.lockd -> $(SEC_CRIT) ; + /sbin/rpc.statd -> $(SEC_CRIT) ; + /sbin/rpcdebug -> $(SEC_CRIT) ; + /sbin/service -> $(SEC_CRIT) ; + /sbin/setsysfont -> $(SEC_CRIT) ; + /sbin/shutdown -> $(SEC_CRIT) ; + /sbin/sulogin -> $(SEC_CRIT) ; + /sbin/swapon -> $(SEC_CRIT) ; + /sbin/syslogd -> $(SEC_CRIT) ; + /sbin/unix_chkpwd -> $(SEC_CRIT) ; + /bin/pwd -> $(SEC_CRIT) ; + /bin/uname -> $(SEC_CRIT) ; +} + + ######################################## + # ## +######################################## # +# # # +# Hardware and Device Control Programs # # +# ## +######################################## +( + rulename = "Hardware and Device Control Programs", + severity = $(SIG_HI) +) +{ + /bin/setserial -> $(SEC_CRIT) ; + /bin/sfxload -> $(SEC_CRIT) ; + /sbin/blockdev -> $(SEC_CRIT) ; + /sbin/cardctl -> $(SEC_CRIT) ; + /sbin/cardmgr -> $(SEC_CRIT) ; + /sbin/cbq -> $(SEC_CRIT) ; + /sbin/dump_cis -> $(SEC_CRIT) ; + /sbin/elvtune -> $(SEC_CRIT) ; + /sbin/hotplug -> $(SEC_CRIT) ; + /sbin/hwclock -> $(SEC_CRIT) ; + /sbin/ide_info -> $(SEC_CRIT) ; + #/sbin/isapnp -> $(SEC_CRIT) ; + #/sbin/kbdrate -> $(SEC_CRIT) ; + /sbin/losetup -> $(SEC_CRIT) ; + /sbin/lspci -> $(SEC_CRIT) ; + /sbin/lspnp -> $(SEC_CRIT) ; + /sbin/mii-tool -> $(SEC_CRIT) ; + /sbin/pack_cis -> $(SEC_CRIT) ; + #/sbin/pnpdump -> $(SEC_CRIT) ; + /sbin/probe -> $(SEC_CRIT) ; + #/sbin/pump -> $(SEC_CRIT) ; + /sbin/setpci -> $(SEC_CRIT) ; + /sbin/shapecfg -> $(SEC_CRIT) ; +} + + ############################### + # ## +############################### # +# # # +# System Information Programs # # +# ## +############################### +( + rulename = "System Information Programs", + severity = $(SIG_HI) +) +{ + /sbin/consoletype -> $(SEC_CRIT) ; + /sbin/kernelversion -> $(SEC_CRIT) ; + /sbin/runlevel -> $(SEC_CRIT) ; +} + + #################################### + # ## +#################################### # +# # # +# Application Information Programs # # +# ## +#################################### + +( + rulename = "Application Information Programs", + severity = $(SIG_HI) +) +{ + /sbin/genksyms -> $(SEC_CRIT) ; + #/sbin/genksyms.old -> $(SEC_CRIT) ; + /sbin/rtmon -> $(SEC_CRIT) ; +} + + ########################## + # ## +########################## # +# # # +# Shell Related Programs # # +# ## +########################## +( + rulename = "Shell Related Programs", + severity = $(SIG_HI) +) +{ + /sbin/getkey -> $(SEC_CRIT) ; + /sbin/nash -> $(SEC_CRIT) ; + /sbin/sash -> $(SEC_CRIT) ; +} + + + ################ + # ## +################ # +# # # +# OS Utilities # # +# ## +################ +( + rulename = "Operating System Utilities", + severity = $(SIG_HI) +) +{ + /bin/arch -> $(SEC_CRIT) ; + /bin/ash -> $(SEC_CRIT) ; + /bin/ash.static -> $(SEC_CRIT) ; + /bin/aumix-minimal -> $(SEC_CRIT) ; + /bin/basename -> $(SEC_CRIT) ; + /bin/cat -> $(SEC_CRIT) ; + #/bin/consolechars -> $(SEC_CRIT) ; + /bin/cut -> $(SEC_CRIT) ; + /bin/date -> $(SEC_CRIT) ; + /bin/dd -> $(SEC_CRIT) ; + /bin/df -> $(SEC_CRIT) ; + /bin/dmesg -> $(SEC_CRIT) ; + /bin/doexec -> $(SEC_CRIT) ; + /bin/echo -> $(SEC_CRIT) ; + /bin/ed -> $(SEC_CRIT) ; + /bin/egrep -> $(SEC_CRIT) ; + /bin/false -> $(SEC_CRIT) ; + /bin/fgrep -> $(SEC_CRIT) ; + /bin/gawk -> $(SEC_CRIT) ; + /bin/gawk-3.1.0 -> $(SEC_CRIT) ; + /bin/gettext -> $(SEC_CRIT) ; + /bin/grep -> $(SEC_CRIT) ; + /bin/gunzip -> $(SEC_CRIT) ; + /bin/gzip -> $(SEC_CRIT) ; + /bin/hostname -> $(SEC_CRIT) ; + /bin/igawk -> $(SEC_CRIT) ; + /bin/ipcalc -> $(SEC_CRIT) ; + /bin/kill -> $(SEC_CRIT) ; + /bin/ln -> $(SEC_CRIT) ; + /bin/loadkeys -> $(SEC_CRIT) ; + /bin/login -> $(SEC_CRIT) ; + /bin/ls -> $(SEC_CRIT) ; + /bin/mail -> $(SEC_CRIT) ; + /bin/more -> $(SEC_CRIT) ; + /bin/mt -> $(SEC_CRIT) ; + /bin/mv -> $(SEC_CRIT) ; + /bin/netstat -> $(SEC_CRIT) ; + /bin/nice -> $(SEC_CRIT) ; + /bin/pgawk -> $(SEC_CRIT) ; + /bin/ps -> $(SEC_CRIT) ; + /bin/rpm -> $(SEC_CRIT) ; + /bin/sed -> $(SEC_CRIT) ; + /bin/sleep -> $(SEC_CRIT) ; + /bin/sort -> $(SEC_CRIT) ; + /bin/stty -> $(SEC_CRIT) ; + /bin/su -> $(SEC_CRIT) ; + /bin/sync -> $(SEC_CRIT) ; + /bin/tar -> $(SEC_CRIT) ; + /bin/true -> $(SEC_CRIT) ; + /bin/usleep -> $(SEC_CRIT) ; + /bin/vi -> $(SEC_CRIT) ; + /bin/zcat -> $(SEC_CRIT) ; + /bin/zsh -> $(SEC_CRIT) ; + /bin/zsh-4.0.2 -> $(SEC_CRIT) ; + /sbin/sln -> $(SEC_CRIT) ; + /usr/bin/vimtutor -> $(SEC_CRIT) ; +} + + ############################## + # ## +############################## # +# # # +# Critical Utility Sym-Links # # +# ## +############################## +( + rulename = "Critical Utility Sym-Links", + severity = $(SIG_HI) +) +{ + #/sbin/askrunlevel -> $(SEC_CRIT) ; + /sbin/clock -> $(SEC_CRIT) ; + #/sbin/fixperm -> $(SEC_CRIT) ; + /sbin/fsck.reiserfs -> $(SEC_CRIT) ; + #/sbin/fsconf -> $(SEC_CRIT) ; + /sbin/ipfwadm-wrapper -> $(SEC_CRIT) ; + /sbin/kallsyms -> $(SEC_CRIT) ; + /sbin/ksyms -> $(SEC_CRIT) ; + /sbin/lsmod -> $(SEC_CRIT) ; + #/sbin/mailconf -> $(SEC_CRIT) ; + /sbin/mkfs.reiserfs -> $(SEC_CRIT) ; + #/sbin/modemconf -> $(SEC_CRIT) ; + /sbin/modprobe -> $(SEC_CRIT) ; + /sbin/mount.ncp -> $(SEC_CRIT) ; + /sbin/mount.ncpfs -> $(SEC_CRIT) ; + /sbin/mount.smb -> $(SEC_CRIT) ; + /sbin/mount.smbfs -> $(SEC_CRIT) ; + #/sbin/netconf -> $(SEC_CRIT) ; + /sbin/pidof -> $(SEC_CRIT) ; + /sbin/poweroff -> $(SEC_CRIT) ; + /sbin/quotaoff -> $(SEC_CRIT) ; + /sbin/raid0run -> $(SEC_CRIT) ; + /sbin/raidhotadd -> $(SEC_CRIT) ; + /sbin/raidhotgenerateerror -> $(SEC_CRIT) ; + /sbin/raidhotremove -> $(SEC_CRIT) ; + /sbin/raidstop -> $(SEC_CRIT) ; + /sbin/rdump -> $(SEC_CRIT) ; + /sbin/rdump.static -> $(SEC_CRIT) ; + /sbin/reboot -> $(SEC_CRIT) ; + /sbin/rmmod -> $(SEC_CRIT) ; + /sbin/rrestore -> $(SEC_CRIT) ; + /sbin/rrestore.static -> $(SEC_CRIT) ; + /sbin/swapoff -> $(SEC_CRIT) ; + /sbin/telinit -> $(SEC_CRIT) ; + #/sbin/userconf -> $(SEC_CRIT) ; + #/sbin/uucpconf -> $(SEC_CRIT) ; + #/sbin/vregistry -> $(SEC_CRIT) ; + /bin/awk -> $(SEC_CRIT) ; + /bin/bash2 -> $(SEC_CRIT) ; + /bin/bsh -> $(SEC_CRIT) ; + /bin/csh -> $(SEC_CRIT) ; + /bin/dnsdomainname -> $(SEC_CRIT) ; + /bin/domainname -> $(SEC_CRIT) ; + /bin/ex -> $(SEC_CRIT) ; + /bin/gtar -> $(SEC_CRIT) ; + /bin/nisdomainname -> $(SEC_CRIT) ; + /bin/red -> $(SEC_CRIT) ; + /bin/rvi -> $(SEC_CRIT) ; + /bin/rview -> $(SEC_CRIT) ; + /bin/view -> $(SEC_CRIT) ; + /bin/ypdomainname -> $(SEC_CRIT) ; +} + + + ######################### + # ## +######################### # +# # # +# Temporary directories # # +# ## +######################### +( + rulename = "Temporary directories", + recurse = false, + severity = $(SIG_LOW) +) +{ + /usr/tmp -> $(SEC_INVARIANT) ; + /var/tmp -> $(SEC_INVARIANT) ; + /tmp -> $(SEC_INVARIANT) ; +} + + ############### + # ## +############### # +# # # +# Local files # # +# ## +############### +( + rulename = "User binaries", + severity = $(SIG_MED) +) +{ + /sbin -> $(SEC_BIN) (recurse = 1) ; + /usr/bin -> $(SEC_BIN) (recurse = 1) ; + /usr/sbin -> $(SEC_BIN) (recurse = 1) ; + /usr/local/bin -> $(SEC_BIN) (recurse = 1) ; +} + +( + rulename = "Shell Binaries", + severity = $(SIG_HI) +) +{ + /bin/bash -> $(SEC_BIN) ; + /bin/ksh -> $(SEC_BIN) ; + # /bin/psh -> $(SEC_BIN) ; # No longer used? + # /bin/Rsh -> $(SEC_BIN) ; # No longer used? + /bin/sh -> $(SEC_BIN) ; + # /bin/shell -> $(SEC_SUID) ; # No longer used? + # /bin/tsh -> $(SEC_BIN) ; # No longer used? + /bin/tcsh -> $(SEC_BIN) ; + /sbin/nologin -> $(SEC_BIN) ; +} + +( + rulename = "Security Control", + severity = $(SIG_HI) +) +{ + /etc/group -> $(SEC_CRIT) ; + /etc/security -> $(SEC_CRIT) ; + #/var/spool/cron/crontabs -> $(SEC_CRIT) ; # Uncomment when this file exists +} + +#( +# rulename = "Boot Scripts", +# severity = $(SIG_HI) +#) +#{ +# /etc/rc -> $(SEC_CONFIG) ; +# /etc/rc.bsdnet -> $(SEC_CONFIG) ; +# /etc/rc.dt -> $(SEC_CONFIG) ; +# /etc/rc.net -> $(SEC_CONFIG) ; +# /etc/rc.net.serial -> $(SEC_CONFIG) ; +# /etc/rc.nfs -> $(SEC_CONFIG) ; +# /etc/rc.powerfail -> $(SEC_CONFIG) ; +# /etc/rc.tcpip -> $(SEC_CONFIG) ; +# /etc/trcfmt.Z -> $(SEC_CONFIG) ; +#} + +( + rulename = "Login Scripts", + severity = $(SIG_HI) +) +{ + /etc/bashrc -> $(SEC_CONFIG) ; + /etc/csh.cshrc -> $(SEC_CONFIG) ; + /etc/csh.login -> $(SEC_CONFIG) ; + /etc/inputrc -> $(SEC_CONFIG) ; + # /etc/tsh_profile -> $(SEC_CONFIG) ; #Uncomment when this file exists + /etc/profile -> $(SEC_CONFIG) ; +} + +# Libraries +( + rulename = "Libraries", + severity = $(SIG_MED) +) +{ + /usr/lib -> $(SEC_BIN) ; + /usr/local/lib -> $(SEC_BIN) ; +} + + + ###################################################### + # ## +###################################################### # +# # # +# Critical System Boot Files # # +# These files are critical to a correct system boot. # # +# ## +###################################################### + +( + rulename = "Critical system boot files", + severity = $(SIG_HI) +) +{ + /boot -> $(SEC_CRIT) ; + #/sbin/devfsd -> $(SEC_CRIT) ; + /sbin/grub -> $(SEC_CRIT) ; + /sbin/grub-install -> $(SEC_CRIT) ; + /sbin/grub-md5-crypt -> $(SEC_CRIT) ; + /sbin/installkernel -> $(SEC_CRIT) ; + /sbin/lilo -> $(SEC_CRIT) ; + /sbin/mkkerneldoth -> $(SEC_CRIT) ; + !/boot/System.map ; + !/boot/module-info ; + /usr/share/grub/i386-redhat/e2fs_stage1_5 -> $(SEC_CRIT) ; + /usr/share/grub/i386-redhat/fat_stage1_5 -> $(SEC_CRIT) ; + /usr/share/grub/i386-redhat/ffs_stage1_5 -> $(SEC_CRIT) ; + /usr/share/grub/i386-redhat/minix_stage1_5 -> $(SEC_CRIT) ; + /usr/share/grub/i386-redhat/reiserfs_stage1_5 -> $(SEC_CRIT) ; + /usr/share/grub/i386-redhat/stage1 -> $(SEC_CRIT) ; + /usr/share/grub/i386-redhat/stage2 -> $(SEC_CRIT) ; + /usr/share/grub/i386-redhat/vstafs_stage1_5 -> $(SEC_CRIT) ; + # other boot files may exist. Look for: + #/ufsboot -> $(SEC_CRIT) ; +} + ################################################## + ################################################### + # These files change every time the system boots ## + ################################################## +( + rulename = "System boot changes", + severity = $(SIG_HI) +) +{ + !/var/run/ftp.pids-all ; # Comes and goes on reboot. + !/root/.enlightenment ; + /dev/log -> $(SEC_CONFIG) ; + /dev/cua0 -> $(SEC_CONFIG) ; + # /dev/printer -> $(SEC_CONFIG) ; # Uncomment if you have a printer device + /dev/console -> $(SEC_CONFIG) -u ; # User ID may change on console login/logout. + /dev/tty1 -> $(SEC_CONFIG) ; # tty devices + /dev/tty2 -> $(SEC_CONFIG) ; # tty devices + /dev/tty3 -> $(SEC_CONFIG) ; # are extremely + /dev/tty4 -> $(SEC_CONFIG) ; # variable + /dev/tty5 -> $(SEC_CONFIG) ; + /dev/tty6 -> $(SEC_CONFIG) ; + /dev/urandom -> $(SEC_CONFIG) ; + /dev/initctl -> $(SEC_CONFIG) ; + /var/lock/subsys -> $(SEC_CONFIG) ; + /var/lock/subsys/amd -> $(SEC_CONFIG) ; + /var/lock/subsys/anacron -> $(SEC_CONFIG) ; + /var/lock/subsys/apmd -> $(SEC_CONFIG) ; + /var/lock/subsys/arpwatch -> $(SEC_CONFIG) ; + /var/lock/subsys/atd -> $(SEC_CONFIG) ; + /var/lock/subsys/autofs -> $(SEC_CONFIG) ; + /var/lock/subsys/bcm5820 -> $(SEC_CONFIG) ; + /var/lock/subsys/bgpd -> $(SEC_CONFIG) ; + /var/lock/subsys/bootparamd -> $(SEC_CONFIG) ; + /var/lock/subsys/canna -> $(SEC_CONFIG) ; + /var/lock/subsys/crond -> $(SEC_CONFIG) ; + /var/lock/subsys/cWnn -> $(SEC_CONFIG) ; + /var/lock/subsys/dhcpd -> $(SEC_CONFIG) ; + /var/lock/subsys/firewall -> $(SEC_CONFIG) ; + /var/lock/subsys/freeWnn -> $(SEC_CONFIG) ; + /var/lock/subsys/gated -> $(SEC_CONFIG) ; + /var/lock/subsys/gpm -> $(SEC_CONFIG) ; + /var/lock/subsys/httpd -> $(SEC_CONFIG) ; + /var/lock/subsys/identd -> $(SEC_CONFIG) ; + /var/lock/subsys/innd -> $(SEC_CONFIG) ; + /var/lock/subsys/ipchains -> $(SEC_CONFIG) ; + /var/lock/subsys/iptables -> $(SEC_CONFIG) ; + /var/lock/subsys/ipvsadm -> $(SEC_CONFIG) ; + /var/lock/subsys/irda -> $(SEC_CONFIG) ; + /var/lock/subsys/iscsi -> $(SEC_CONFIG) ; + /var/lock/subsys/isdn -> $(SEC_CONFIG) ; + /var/lock/subsys/junkbuster -> $(SEC_CONFIG) ; + /var/lock/subsys/kadmin -> $(SEC_CONFIG) ; + /var/lock/subsys/keytable -> $(SEC_CONFIG) ; + /var/lock/subsys/kprop -> $(SEC_CONFIG) ; + /var/lock/subsys/krb524 -> $(SEC_CONFIG) ; + /var/lock/subsys/krb5kdc -> $(SEC_CONFIG) ; + /var/lock/subsys/kudzu -> $(SEC_CONFIG) ; + /var/lock/subsys/kWnn -> $(SEC_CONFIG) ; + /var/lock/subsys/ldap -> $(SEC_CONFIG) ; + /var/lock/subsys/linuxconf -> $(SEC_CONFIG) ; + /var/lock/subsys/lpd -> $(SEC_CONFIG) ; + /var/lock/subsys/mars_nwe -> $(SEC_CONFIG) ; + /var/lock/subsys/mcserv -> $(SEC_CONFIG) ; + /var/lock/subsys/mysqld -> $(SEC_CONFIG) ; + /var/lock/subsys/named -> $(SEC_CONFIG) ; + /var/lock/subsys/netfs -> $(SEC_CONFIG) ; + /var/lock/subsys/network -> $(SEC_CONFIG) ; + /var/lock/subsys/nfs -> $(SEC_CONFIG) ; + /var/lock/subsys/nfslock -> $(SEC_CONFIG) ; + /var/lock/subsys/nscd -> $(SEC_CONFIG) ; + /var/lock/subsys/ntpd -> $(SEC_CONFIG) ; + /var/lock/subsys/ospf6d -> $(SEC_CONFIG) ; + /var/lock/subsys/ospfd -> $(SEC_CONFIG) ; + /var/lock/subsys/pcmcia -> $(SEC_CONFIG) ; + /var/lock/subsys/portmap -> $(SEC_CONFIG) ; + /var/lock/subsys/postgresql -> $(SEC_CONFIG) ; + /var/lock/subsys/pxe -> $(SEC_CONFIG) ; + /var/lock/subsys/radvd -> $(SEC_CONFIG) ; + /var/lock/subsys/random -> $(SEC_CONFIG) ; + /var/lock/subsys/rarpd -> $(SEC_CONFIG) ; + /var/lock/subsys/reconfig -> $(SEC_CONFIG) ; + /var/lock/subsys/rhnsd -> $(SEC_CONFIG) ; + /var/lock/subsys/ripd -> $(SEC_CONFIG) ; + /var/lock/subsys/ripngd -> $(SEC_CONFIG) ; + /var/lock/subsys/routed -> $(SEC_CONFIG) ; + /var/lock/subsys/rstatd -> $(SEC_CONFIG) ; + /var/lock/subsys/rusersd -> $(SEC_CONFIG) ; + /var/lock/subsys/rwalld -> $(SEC_CONFIG) ; + /var/lock/subsys/rwhod -> $(SEC_CONFIG) ; + /var/lock/subsys/sendmail -> $(SEC_CONFIG) ; + /var/lock/subsys/smb -> $(SEC_CONFIG) ; + /var/lock/subsys/snmpd -> $(SEC_CONFIG) ; + /var/lock/subsys/squid -> $(SEC_CONFIG) ; + /var/lock/subsys/sshd -> $(SEC_CONFIG) ; + /var/lock/subsys/syslog -> $(SEC_CONFIG) ; + /var/lock/subsys/tux -> $(SEC_CONFIG) ; + /var/lock/subsys/tWnn -> $(SEC_CONFIG) ; + /var/lock/subsys/ups -> $(SEC_CONFIG) ; + /var/lock/subsys/vncserver -> $(SEC_CONFIG) ; + /var/lock/subsys/wine -> $(SEC_CONFIG) ; + /var/lock/subsys/xfs -> $(SEC_CONFIG) ; + /var/lock/subsys/xinetd -> $(SEC_CONFIG) ; + /var/lock/subsys/ypbind -> $(SEC_CONFIG) ; + /var/lock/subsys/yppasswdd -> $(SEC_CONFIG) ; + /var/lock/subsys/ypserv -> $(SEC_CONFIG) ; + /var/lock/subsys/ypxfrd -> $(SEC_CONFIG) ; + /var/lock/subsys/zebra -> $(SEC_CONFIG) ; + /var/run -> $(SEC_CONFIG) ; + /var/log -> $(SEC_CONFIG) ; + /etc/ioctl.save -> $(SEC_CONFIG) ; + /etc/issue.net -> $(SEC_CONFIG) -i ; # Inode number changes + /etc/issue -> $(SEC_CONFIG) ; + /etc/mtab -> $(SEC_CONFIG) -i ; # Inode number changes on any mount/unmount + /lib/modules -> $(SEC_CONFIG) ; + /etc/.pwd.lock -> $(SEC_CONFIG) ; + # /lib/modules/preferred -> $(SEC_CONFIG) ; #Uncomment when this file exists +} + +# These files change the behavior of the root account +( + rulename = "Root config files", + severity = 100 +) +{ + /root -> $(SEC_CRIT) ; # Catch all additions to /root + /root/.Xresources -> $(SEC_CONFIG) ; + /root/.bashrc -> $(SEC_CONFIG) ; + /root/.bash_profile -> $(SEC_CONFIG) ; + /root/.bash_logout -> $(SEC_CONFIG) ; + /root/.cshrc -> $(SEC_CONFIG) ; + /root/.tcshrc -> $(SEC_CONFIG) ; + #/root/Mail -> $(SEC_CONFIG) ; + #/root/mail -> $(SEC_CONFIG) ; + #/root/.amandahosts -> $(SEC_CONFIG) ; + #/root/.addressbook.lu -> $(SEC_CONFIG) ; + #/root/.addressbook -> $(SEC_CONFIG) ; + /root/.bash_history -> $(SEC_CONFIG) ; + #/root/.elm -> $(SEC_CONFIG) ; + /root/.esd_auth -> $(SEC_CONFIG) ; + /root/.gnome_private -> $(SEC_CONFIG) ; + /root/.gnome-desktop -> $(SEC_CONFIG) ; + /root/.gnome -> $(SEC_CONFIG) ; + /root/.ICEauthority -> $(SEC_CONFIG) ; + #/root/.mc -> $(SEC_CONFIG) ; + #/root/.pinerc -> $(SEC_CONFIG) ; + #/root/.sawfish -> $(SEC_CONFIG) ; + /root/.Xauthority -> $(SEC_CONFIG) -i ; # Changes Inode number on login + #/root/.xauth -> $(SEC_CONFIG) ; + #/root/.xsession-errors -> $(SEC_CONFIG) ; +} + + ################################ + # ## +################################ # +# # # +# Critical configuration files # # +# ## +################################ +( + rulename = "Critical configuration files", + severity = $(SIG_HI) +) +{ + #/etc/conf.linuxconf -> $(SEC_BIN) ; + /etc/crontab -> $(SEC_BIN) ; + /etc/cron.hourly -> $(SEC_BIN) ; + /etc/cron.daily -> $(SEC_BIN) ; + /etc/cron.weekly -> $(SEC_BIN) ; + /etc/cron.monthly -> $(SEC_BIN) ; + /etc/default -> $(SEC_BIN) ; + /etc/fstab -> $(SEC_BIN) ; + /etc/exports -> $(SEC_BIN) ; + /etc/group- -> $(SEC_BIN) ; # changes should be infrequent + /etc/host.conf -> $(SEC_BIN) ; + /etc/hosts.allow -> $(SEC_BIN) ; + /etc/hosts.deny -> $(SEC_BIN) ; + /etc/httpd/conf -> $(SEC_BIN) ; # changes should be infrequent + /etc/protocols -> $(SEC_BIN) ; + /etc/services -> $(SEC_BIN) ; + /etc/rc.d/init.d -> $(SEC_BIN) ; + /etc/rc.d -> $(SEC_BIN) ; + /etc/mail.rc -> $(SEC_BIN) ; + /etc/modules.conf -> $(SEC_BIN) ; + /etc/motd -> $(SEC_BIN) ; + /etc/named.conf -> $(SEC_BIN) ; + /etc/passwd -> $(SEC_CONFIG) ; + /etc/passwd- -> $(SEC_CONFIG) ; + /etc/profile.d -> $(SEC_BIN) ; + /var/lib/nfs/rmtab -> $(SEC_BIN) ; + /usr/sbin/fixrmtab -> $(SEC_BIN) ; + /etc/rpc -> $(SEC_BIN) ; + /etc/sysconfig -> $(SEC_BIN) ; + /etc/samba/smb.conf -> $(SEC_CONFIG) ; + #/etc/gettydefs -> $(SEC_BIN) ; + /etc/nsswitch.conf -> $(SEC_BIN) ; + /etc/yp.conf -> $(SEC_BIN) ; + /etc/hosts -> $(SEC_CONFIG) ; + /etc/xinetd.conf -> $(SEC_CONFIG) ; + /etc/inittab -> $(SEC_CONFIG) ; + /etc/resolv.conf -> $(SEC_CONFIG) ; + /etc/syslog.conf -> $(SEC_CONFIG) ; +} + + #################### + # ## +#################### # +# # # +# Critical devices # # +# ## +#################### +( + rulename = "Critical devices", + severity = $(SIG_HI), + recurse = false +) +{ + /dev/kmem -> $(Device) ; + /dev/mem -> $(Device) ; + /dev/null -> $(Device) ; + /dev/zero -> $(Device) ; + /proc/devices -> $(Device) ; + /proc/net -> $(Device) ; + /proc/sys -> $(Device) ; + /proc/cpuinfo -> $(Device) ; + /proc/modules -> $(Device) ; + /proc/mounts -> $(Device) ; + /proc/dma -> $(Device) ; + /proc/filesystems -> $(Device) ; + /proc/pci -> $(Device) ; + /proc/interrupts -> $(Device) ; + /proc/driver/rtc -> $(Device) ; + /proc/ioports -> $(Device) ; + /proc/scsi -> $(Device) ; + /proc/kcore -> $(Device) ; + /proc/self -> $(Device) ; + /proc/kmsg -> $(Device) ; + /proc/stat -> $(Device) ; + /proc/ksyms -> $(Device) ; + /proc/loadavg -> $(Device) ; + /proc/uptime -> $(Device) ; + /proc/locks -> $(Device) ; + /proc/version -> $(Device) ; + /proc/mdstat -> $(Device) ; + /proc/meminfo -> $(Device) ; + /proc/cmdline -> $(Device) ; + /proc/misc -> $(Device) ; +} + +# Rest of critical system binaries +( + rulename = "OS executables and libraries", + severity = $(SIG_HI) +) +{ + /bin -> $(SEC_BIN) ; + /lib -> $(SEC_BIN) ; +} + +#============================================================================= +# +# Copyright 2000 Tripwire, Inc. Tripwire is a registered trademark of Tripwire, +# Inc. in the United States and other countries. All rights reserved. +# +# Linux is a registered trademark of Linus Torvalds. +# +# UNIX is a registered trademark of The Open Group. +# +#============================================================================= +# +# Permission is granted to make and distribute verbatim copies of this document +# provided the copyright notice and this permission notice are preserved on all +# copies. +# +# Permission is granted to copy and distribute modified versions of this +# document under the conditions for verbatim copying, provided that the entire +# resulting derived work is distributed under the terms of a permission notice +# identical to this one. +# +# Permission is granted to copy and distribute translations of this document +# into another language, under the above conditions for modified versions, +# except that this permission notice may be stated in a translation approved by +# Tripwire, Inc. +# +# DCM diff --git a/talimatname/genel/t/trojita/talimat b/talimatname/genel/t/trojita/talimat new file mode 100644 index 000000000..b62c0ecde --- /dev/null +++ b/talimatname/genel/t/trojita/talimat @@ -0,0 +1,21 @@ +# Tanım: QT IMAP e-posta istemcisi +# URL: http://trojita.flaska.net +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: git desktop-file-utils hicolor-icon-theme qt5-webkit qtkeychain-qt5 qt5 gpgmepp + +isim=trojita +surum=0.7 +devir=1 + +kaynak=(http://downloads.sourceforge.net/$isim/$isim-$surum.tar.xz) + +derle() { + mkdir build + cd build + cmake ../$isim-$surum \ + -DQT_QMAKE_EXECUTABLE=qmake-qt5 \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/t/tslib/talimat b/talimatname/genel/t/tslib/talimat new file mode 100644 index 000000000..84ec1a0b3 --- /dev/null +++ b/talimatname/genel/t/tslib/talimat @@ -0,0 +1,21 @@ +# Tanım: Dokunmatik Ekran Erişim Kitaplığı. +# URL: https://github.com/kergoth/tslib +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: + +isim=tslib +surum=1.1 +devir=1 + +kaynak=( https://github.com/kergoth/tslib/releases/download/1.1/tslib-1.1.tar.xz) + +derle(){ +cd $isim-$surum +./autogen.sh +./configure --prefix=/usr \ + --sysconfdir=/etc + +make +make DESTDIR=$PKG install +rm -f $PKG/usr/share/doc +} diff --git a/talimatname/genel/t/tsocks/fix-mkinstalldirs.patch b/talimatname/genel/t/tsocks/fix-mkinstalldirs.patch new file mode 100644 index 000000000..70465cbc8 --- /dev/null +++ b/talimatname/genel/t/tsocks/fix-mkinstalldirs.patch @@ -0,0 +1,12 @@ +--- a/Makefile.in 2014-09-23 16:50:30.336402163 +0200 ++++ b/Makefile.in 2013-06-28 18:04:10.000000000 +0200 +@@ -12,7 +12,7 @@ + includedir = @includedir@ + + SHELL = /bin/sh +-MKINSTALLDIRS = ${SHELL} mkinstalldirs ++MKINSTALLDIRS = mkdir -p + SHCC = ${CC} -fPIC + INSPECT = inspectsocks + SAVE = saveme + diff --git a/talimatname/genel/t/tsocks/talimat b/talimatname/genel/t/tsocks/talimat new file mode 100644 index 000000000..ab03d4d79 --- /dev/null +++ b/talimatname/genel/t/tsocks/talimat @@ -0,0 +1,23 @@ +# Tanım: Transparan SOCKS vekil kütüphanesi (ipv6 destekli) +# URL: https://github.com/Elysion-tcfa/tsocks +# Paketçi: milisarge +# Gerekler: + +isim=tsocks +surum=1.8beta6 +devir=1 +GIT_COMMIT=be36c83a7326c75123fa019a4cb53792ecd8f689 + +kaynak=(https://github.com/Elysion-tcfa/tsocks/archive/${GIT_COMMIT}.tar.gz + fix-mkinstalldirs.patch) + +derle(){ + cd "${SRC}/tsocks-${GIT_COMMIT}" + export CPPFLAGS= + patch -p1 < ../fix-mkinstalldirs.patch + ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man --libdir=/usr/lib + make + make DESTDIR="${PKG}" install + install -d "${PKG}/usr/share/${isim}" + install -m644 tsocks.conf.{simple,complex}.example "${PKG}/usr/share/${isim}" +} diff --git a/talimatname/genel/t/ttf-liberation/talimat b/talimatname/genel/t/ttf-liberation/talimat new file mode 100644 index 000000000..d6ad3f2f7 --- /dev/null +++ b/talimatname/genel/t/ttf-liberation/talimat @@ -0,0 +1,28 @@ +# Tanım: Red Hats Liberation yazı tipleri. +# URL: https://www.redhat.com/promo/fonts/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: xorg-fontconfig xorg-font-util xorg-encodings fontforge + +isim=ttf-liberation +surum=2.00.1 +devir=1 + +kaynak=( +https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-ttf-$surum.tar.gz +ttf-liberation.30-0-liberation-mono.conf +ttf-liberation.30-0-liberation-sans.conf +ttf-liberation.30-0-liberation-serif.conf) + +derle(){ + cd liberation-fonts-ttf-$surum + install -d $PKG/usr/share/fonts/TTF/ + install -m644 *.ttf $PKG/usr/share/fonts/TTF/ + + # install fontconfig files + install -Dm644 $SRC/ttf-liberation.30-0-liberation-mono.conf \ + $PKG/etc/fonts/conf.avail/30-$isim-mono.conf + install -Dm644 $SRC/ttf-liberation.30-0-liberation-sans.conf \ + $PKG/etc/fonts/conf.avail/30-$isim-sans.conf + install -Dm644 $SRC/ttf-liberation.30-0-liberation-serif.conf \ + $PKG/etc/fonts/conf.avail/30-$pkgname-serif.conf +} diff --git a/talimatname/genel/t/ttf-liberation/ttf-liberation.30-0-liberation-mono.conf b/talimatname/genel/t/ttf-liberation/ttf-liberation.30-0-liberation-mono.conf new file mode 100644 index 000000000..acf5178d2 --- /dev/null +++ b/talimatname/genel/t/ttf-liberation/ttf-liberation.30-0-liberation-mono.conf @@ -0,0 +1,17 @@ + + + + + + Courier New + + Liberation Mono + + + + Liberation Mono + + Courier New + + + \ No newline at end of file diff --git a/talimatname/genel/t/ttf-liberation/ttf-liberation.30-0-liberation-sans.conf b/talimatname/genel/t/ttf-liberation/ttf-liberation.30-0-liberation-sans.conf new file mode 100644 index 000000000..6e70b4092 --- /dev/null +++ b/talimatname/genel/t/ttf-liberation/ttf-liberation.30-0-liberation-sans.conf @@ -0,0 +1,17 @@ + + + + + + Arial + + Liberation Sans + + + + Liberation Sans + + Arial + + + \ No newline at end of file diff --git a/talimatname/genel/t/ttf-liberation/ttf-liberation.30-0-liberation-serif.conf b/talimatname/genel/t/ttf-liberation/ttf-liberation.30-0-liberation-serif.conf new file mode 100644 index 000000000..b69a13a32 --- /dev/null +++ b/talimatname/genel/t/ttf-liberation/ttf-liberation.30-0-liberation-serif.conf @@ -0,0 +1,17 @@ + + + + + + Times New Roman + + Liberation Serif + + + + Liberation Serif + + Times New Roman + + + \ No newline at end of file diff --git a/talimatname/genel/t/ttf-liberation/ttf-liberation.kur-kos b/talimatname/genel/t/ttf-liberation/ttf-liberation.kur-kos new file mode 100644 index 000000000..1fedfec2d --- /dev/null +++ b/talimatname/genel/t/ttf-liberation/ttf-liberation.kur-kos @@ -0,0 +1,12 @@ +# Update mkfontscale and mkfontdir: +if [ -x usr/bin/mkfontdir ]; then + ( cd usr/share/fonts/TTF + mkfontscale . + mkfontdir . + ) +fi + +# Update the X font indexes: +if [ -x usr/bin/fc-cache ]; then + usr/bin/fc-cache -f +fi diff --git a/talimatname/genel/t/ttf-linux-libertine/talimat b/talimatname/genel/t/ttf-linux-libertine/talimat new file mode 100644 index 000000000..28531f1f4 --- /dev/null +++ b/talimatname/genel/t/ttf-linux-libertine/talimat @@ -0,0 +1,23 @@ +# Tanım: Büyük Unicode kapsamı olan Serif (Libertine) ve Sans Serif (Biolinum) OpenType fontlar +# URL: http://linuxlibertine.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: xorg-libx11 xorg-fontconfig + +_reldate=2012_07_02 + +isim=ttf-linux-libertine +surum=5.3.0 +devir=1 + +kaynak=("http://downloads.sourceforge.net/project/linuxlibertine/linuxlibertine/${surum}/LinLibertine"{TTF,OTF}"_${surum}_${_reldate}.tgz") + +derle() { + cd $SRC + install -dm755 $PKG/usr/share/fonts/{OTF,TTF} + install -m644 *.ttf $PKG/usr/share/fonts/TTF + install -m644 *.otf $PKG/usr/share/fonts/OTF + + install -Dm644 OFL-1.1.txt $PKG/usr/share/licenses/$isim/LICENSE + install -Dm644 LICENCE.txt $PKG/usr/share/licenses/$isim/README +} + diff --git a/talimatname/genel/t/ttf-ms-fonts/talimat b/talimatname/genel/t/ttf-ms-fonts/talimat new file mode 100644 index 000000000..404a76ade --- /dev/null +++ b/talimatname/genel/t/ttf-ms-fonts/talimat @@ -0,0 +1,26 @@ +# Tanım: Microsoft'un Çekirdek TTF Fontları +# URL: http://corefonts.sourceforge.net +# Paketçi: milisarge +# Gerekler: xorg-libx11 xorg-fontconfig libarchive p7zip +_sfpath="http://downloads.sourceforge.net/corefonts" + +isim=ttf-ms-fonts +surum=2.0 +devir=1 + +kaynak=($_sfpath/andale32.exe $_sfpath/arial32.exe $_sfpath/arialb32.exe + $_sfpath/comic32.exe $_sfpath/courie32.exe $_sfpath/georgi32.exe + $_sfpath/impact32.exe $_sfpath/times32.exe $_sfpath/trebuc32.exe + $_sfpath/verdan32.exe $_sfpath/webdin32.exe ) + +derle() { + for i in *.exe; do + 7z e -y $i; + done + + install -dm755 "$PKG/usr/share/fonts/TTF" + + for font in *.{ttf,TTF}; do + install -m644 $font $PKG/usr/share/fonts/TTF/$(echo $font|tr A-Z a-z) + done +} diff --git a/talimatname/genel/t/tumbler/talimat b/talimatname/genel/t/tumbler/talimat new file mode 100644 index 000000000..5d670c6dd --- /dev/null +++ b/talimatname/genel/t/tumbler/talimat @@ -0,0 +1,22 @@ +# Tanım: Küçük resim yönetimi D-Bus teknik özelliklerine dayanan bir D-Bus minik resim oluşturma hizmeti. +# URL: http://www.ohloh.net/p/tumbler-xfce +# Paketçi: milisarge +# Gerekler: libjpeg-turbo libpng freetype gdk-pixbuf dbus-glib intltool gstreamer libgsf +# Grup: xfce4 + +isim=tumbler +source /root/talimatname/genel/x/xfce4/surumler +surum="${tumbler_surum}";[ -z ${tumbler_surum} ] && \ +surum=0.1.31 +devir=2 + +kaynak=(http://archive.xfce.org/src/xfce/$isim/${surum%.*}/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --sysconfdir=/etc + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/gtk-doc +} diff --git a/talimatname/genel/t/tuntox/shared-build.patch b/talimatname/genel/t/tuntox/shared-build.patch new file mode 100644 index 000000000..2e4d9b9fe --- /dev/null +++ b/talimatname/genel/t/tuntox/shared-build.patch @@ -0,0 +1,22 @@ +diff --git a/Makefile b/Makefile +index 5e19d0a..96c6ff3 100644 +--- a/Makefile ++++ b/Makefile +@@ -3,7 +3,7 @@ DEPS=libtoxcore + CC=gcc + CFLAGS=-g #-std=c99 + CFLAGS += $(shell pkg-config --cflags $(DEPS)) +-LDFLAGS=-g -pthread -lm -static -lrt ++LDFLAGS=-g -pthread -lm -lrt + LDFLAGS += $(shell pkg-config --libs $(DEPS)) + OBJECTS=$(SOURCES:.c=.o) + INCLUDES = $(wildcard *.h) +@@ -19,7 +19,7 @@ gitversion.c: gitversion.h + $(CC) $(CFLAGS) $< -c -o $@ + + tuntox: $(OBJECTS) $(INCLUDES) +- $(CC) -o $@ $(OBJECTS) -ltoxcore -lpthread $(LDFLAGS) /usr/local/lib/libsodium.a /usr/local/lib/libtoxcore.a ++ $(CC) -o $@ $(OBJECTS) -ltoxcore -lpthread $(LDFLAGS) -lsodium + + cscope.out: + cscope -bv ./*.[ch] diff --git a/talimatname/genel/t/tuntox/talimat b/talimatname/genel/t/tuntox/talimat new file mode 100644 index 000000000..07977403c --- /dev/null +++ b/talimatname/genel/t/tuntox/talimat @@ -0,0 +1,23 @@ +# Tanım: Tox protokolü üzerinden tünel TCP bağlantıları +# URL: http://tuntox.pl/ +# Paketçi: milisarge +# Gerekler: cscope toxcore + +isim=tuntox +surum=git +devir=1 + +kaynak=(shared-build.patch) +derle() { +if [ ! -d $DERLEME_KAYNAKDIZIN/$isim.git ];then + git clone https://github.com/gjedeer/$isim.git +else + cd $DERLEME_KAYNAKDIZIN/$isim.git + git pull + cd - +fi +cd $isim +patch -p1 -i ../shared-build.patch +make +install -Dm755 tuntox "$PKG/usr/bin/tuntox" +} diff --git a/talimatname/genel/t/tup/talimat b/talimatname/genel/t/tup/talimat new file mode 100644 index 000000000..e27985268 --- /dev/null +++ b/talimatname/genel/t/tup/talimat @@ -0,0 +1,23 @@ +# Tanım: Hızlı ve dosya bazlı derleme sistemi uygulaması +# URL: http://gittup.org/tup/index.html +# Paketçi: milisarge +# Gerekler: git fuse +# Grup: geliştirme + +isim=tup +surum=git +devir=1 +kaynak=() + +derle() { + adres="https://github.com/gittup/tup" + git_indir ${adres} ${isim} + cd $SRC/${isim} + + sh bootstrap.sh + install -d "$PKG"/usr/bin "$PKG"/usr/share/man/man1 "$PKG"/usr/share/vim/vimfiles/{syntax,ftdetect} + install -m755 -t "$PKG"/usr/bin tup + install -m644 -t "$PKG"/usr/share/man/man1 tup.1 + install -m644 -t "$PKG"/usr/share/vim/vimfiles/syntax contrib/syntax/tup.vim + echo 'au BufNewFile,BufRead Tupfile,*.tup setf tup' > "$PKG"/usr/share/vim/vimfiles/ftdetect/tup.vim +} diff --git a/talimatname/genel/t/turses/talimat b/talimatname/genel/t/turses/talimat new file mode 100644 index 000000000..8090fc998 --- /dev/null +++ b/talimatname/genel/t/turses/talimat @@ -0,0 +1,16 @@ +# Tanım: Konsol için bir Twitter istemcisi. +# URL: http://pypi.python.org/pypi/turses/ +# Paketçi: milisarge +# Gerekler: python-oauth2 python-setuptools python-tweepy python-urwid + +isim=turses +surum=0.2.23 +devir=1 + +kaynak=( +http://pypi.python.org/packages/source/t/turses/turses-$surum.tar.gz) + +derle() { + cd $isim-$surum + python2 setup.py install --prefix=/usr --root=$PKG +} diff --git a/talimatname/genel/t/tuxmath/talimat b/talimatname/genel/t/tuxmath/talimat new file mode 100644 index 000000000..fc4e78051 --- /dev/null +++ b/talimatname/genel/t/tuxmath/talimat @@ -0,0 +1,31 @@ +# Tanım: Çocukların matematik gerçeklerini uygulamalarına yardımcı olan bir arcade oyunu +# URL: http://tux4kids.alioth.debian.org/ +# Paketçi: Cihan Alkan +# Gerekler: t4k-common + +isim=tuxmath +surum=2.0.3 +devir=1 + +kaynak=(http://distro.ibiblio.org/slitaz/sources/packages/t/tuxmath_w_fonts-2.0.3.tar.gz + tuxmath.desktop) + + +derle() { + cd tuxmath_w_fonts-2.0.3 + + ./configure --prefix=/usr + + make + make DESTDIR=$PKG install + # install .desktop dosyası ve simge + mkdir -p $PKG/usr/share/{applications,pixmaps} + install -D $SRC/tuxmath.desktop $PKG/usr/share/applications/tuxmath.desktop + install -D -m644 data/images/icons/icon.png $PKG/usr/share/pixmaps/tuxmath.png + + # install lisans + install -D -m644 doc/OFL \ + $PKG/usr/share/licenses/$isim/OFL + install -D -m644 doc/README_DATA_LICENSES \ + $PKG/usr/share/licenses/$isim/DATA_LICENSES +} diff --git a/talimatname/genel/t/tuxmath/tuxmath.desktop b/talimatname/genel/t/tuxmath/tuxmath.desktop new file mode 100644 index 000000000..a9c287aa6 --- /dev/null +++ b/talimatname/genel/t/tuxmath/tuxmath.desktop @@ -0,0 +1,18 @@ +[Desktop Entry] +Name=Tux Math +GenericName=Educational math game +GenericName[de]=Mathe Spiel +GenericName[ru]=Образовательная игра +GenericName[tr]=Matematik Oyunu +Comment=Tux Math - Learn math with Tux! +Comment[pl]=Tux Math - Ucz siê matematyki z Tuxem! +Comment[de]=Tux Math - Lerne Mathe mit Tux! +Comment[ru]=Обучение арифметике с пингвином в главной роли +Comment[tr]=Eğitici Matematik Oyunu +Exec=tuxmath +Icon=tuxmath +Type=Application +Terminal=false +Categories=Education;Math; +## X-SuSE-translate=false +X-Ubuntu-Gettext-Domain=tuxmath diff --git a/talimatname/genel/t/tuxpaint/talimat b/talimatname/genel/t/tuxpaint/talimat new file mode 100644 index 000000000..824b06e6f --- /dev/null +++ b/talimatname/genel/t/tuxpaint/talimat @@ -0,0 +1,52 @@ +# Tanım: Küçük çocuklar için tasarlanmış çizim programı +# URL: http://tuxpaint.org/ +# Paketçi: Cihan Alkan +# Gerekler: optipng setconf sdl-ttf sdl-mixer python fribidi sdl-image sdl-pango libpaper librsvg + +isim=tuxpaint +surum=0.9.22 +devir=1 + +kaynak=(https://downloads.sourceforge.net/sourceforge/tuxpaint/$isim-$surum.tar.gz) + +derle() { + + cd $isim-$surum +# python2 fix + for f in docs/zh_tw/mkTuxpaintIM.py fonts/locale/zh_tw_docs/maketuxfont.py; do + sed -i '0,/on/s//on2/' $f + done + + # libpng15 fix + sed -i 's:$(ARCH_LINKS):$(ARCH_LINKS) -lpng:' Makefile + + # libpng16 fix + find -name '*.png' -exec optipng -quiet -force -fix {} + + + # fullscreen by default + sed -i 's:# fu:fu:' src/tuxpaint.conf + + # desktop shortcut categories + setconf src/tuxpaint.desktop Categories 'Game;KidsGame;Graphics;RasterGraphics;' + + # bash completion placement + setconf Makefile COMPLETIONDIR '$(DESTDIR)/usr/share/bash-completion/completions' + + cd $SRC + make -C "$isim-$surum" PREFIX=/usr clean translations all -j1 + + make -C "$isim-$surum" \ + PREFIX=/usr \ + GNOME_PREFIX=/usr \ + X11_ICON_PREFIX="$PKG/usr/share/pixmaps" \ + DESTDIR="$PKG" \ + install -j1 + + # fix permissions + chmod -R 644 "$PKG/usr/share/doc/tuxpaint-dev/"* + chmod 755 "$PKG/usr/share/doc/tuxpaint-dev/html" + + # bash completions + mv "$PKG/usr/share/bash-completion/completions/tuxpaint-completion.bash" \ + "$PKG/usr/share/bash-completion/completions/tuxpaint" +} diff --git a/talimatname/genel/t/txt2tags/talimat b/talimatname/genel/t/txt2tags/talimat new file mode 100644 index 000000000..3ac24505c --- /dev/null +++ b/talimatname/genel/t/txt2tags/talimat @@ -0,0 +1,34 @@ +# Tanım: Txt2tags bir belge üretecidir +# URL: http://txt2tags.sourceforge.net +# Paketçi: milisarge +# Gerekler: + +isim=txt2tags +surum=2.6 +devir=1 + +kaynak=(http://txt2tags.googlecode.com/files/$isim-$surum.tgz) + +derle() { +cd $isim-$surum + mkdir -p $PKG/usr/bin + mkdir -p $PKG/usr/share/{man/man1,man/fr/man1,vim/syntax,doc/$isim} + # bin + sed -i "s/env\ python/env\ python2/" txt2tags + install -m 755 txt2tags $PKG/usr/bin + install -m 755 extras/{t2tmake.rb,gensite,html-update.sh} $PKG/usr/bin + # vim + install -m 644 extras/*.vim $PKG/usr/share/vim/syntax + # page man + install -m 644 doc/manpage.man $PKG/usr/share/man/man1/txt2tags.1 + install -m 644 doc/manpage-fr.man $PKG/usr/share/man/fr/man1/txt2tags.1 + # doc + install -m 644 doc/{*.pdf,*.t2t} $PKG/usr/share/doc/$isim + # locale fr + mkdir -p $PKG/usr/share/locale/fr/LC_MESSAGES/ + cd po + msgfmt -o txt2tags.mo fr.po + install -m 644 txt2tags.mo $PKG/usr/share/locale/fr/LC_MESSAGES +} + + diff --git a/talimatname/genel/u/uchardet/talimat b/talimatname/genel/u/uchardet/talimat new file mode 100644 index 000000000..73a5dae3f --- /dev/null +++ b/talimatname/genel/u/uchardet/talimat @@ -0,0 +1,20 @@ +# Tanım: Encoding detector library ported from Mozilla +# URL: https://www.freedesktop.org/wiki/Software/uchardet +# Paketçi: milisarge +# Gerekler: cmake + +isim=uchardet +surum=0.0.6 +devir=1 +kaynak=(https://www.freedesktop.org/software/uchardet/releases/uchardet-0.0.6.tar.xz +) + +derle() { + cd ${isim}-${surum} + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_BUILD_TYPE=Release + make + make DESTDIR="${PKG}/" install +} diff --git a/talimatname/genel/u/ucspi-tcp/head-1.patch b/talimatname/genel/u/ucspi-tcp/head-1.patch new file mode 100644 index 000000000..b8b0fd9b3 --- /dev/null +++ b/talimatname/genel/u/ucspi-tcp/head-1.patch @@ -0,0 +1,40 @@ +--- Makefile.orig 2003-09-03 10:42:49.624475128 -0400 ++++ Makefile 2003-09-03 10:43:04.950145272 -0400 +@@ -41 +41 @@ +- ./auto-str auto_home `head -1 conf-home` > auto_home.c ++ ./auto-str auto_home `head -n 1 conf-home` > auto_home.c +@@ -152 +152 @@ +- | sed s}HOME}"`head -1 conf-home`"}g \ ++ | sed s}HOME}"`head -n 1 conf-home`"}g \ +@@ -164 +164 @@ +- echo exec "`head -1 conf-cc`" '-c $${1+"$$@"}' \ ++ echo exec "`head -n 1 conf-cc`" '-c $${1+"$$@"}' \ +@@ -171 +171 @@ +- | sed s}HOME}"`head -1 conf-home`"}g \ ++ | sed s}HOME}"`head -n 1 conf-home`"}g \ +@@ -295 +295 @@ +- | sed s}HOME}"`head -1 conf-home`"}g \ ++ | sed s}HOME}"`head -n 1 conf-home`"}g \ +@@ -349 +349 @@ +- | sed s}HOME}"`head -1 conf-home`"}g \ ++ | sed s}HOME}"`head -n 1 conf-home`"}g \ +@@ -392 +392 @@ +- echo exec "`head -1 conf-ld`" \ ++ echo exec "`head -n 1 conf-ld`" \ +@@ -419 +419 @@ +- | sed s}HOME}"`head -1 conf-home`"}g \ ++ | sed s}HOME}"`head -n 1 conf-home`"}g \ +@@ -517 +517 @@ +- | sed s}HOME}"`head -1 conf-home`"}g \ ++ | sed s}HOME}"`head -n 1 conf-home`"}g \ +@@ -674,2 +674,2 @@ +- echo CC=\'`head -1 conf-cc`\'; \ +- echo LD=\'`head -1 conf-ld`\'; \ ++ echo CC=\'`head -n 1 conf-cc`\'; \ ++ echo LD=\'`head -n 1 conf-ld`\'; \ +@@ -718 +718 @@ +- | sed s}HOME}"`head -1 conf-home`"}g \ ++ | sed s}HOME}"`head -n 1 conf-home`"}g \ +@@ -860 +860 @@ +- | sed s}HOME}"`head -1 conf-home`"}g \ ++ | sed s}HOME}"`head -n 1 conf-home`"}g \ diff --git a/talimatname/genel/u/ucspi-tcp/talimat b/talimatname/genel/u/ucspi-tcp/talimat new file mode 100644 index 000000000..eca56e3fe --- /dev/null +++ b/talimatname/genel/u/ucspi-tcp/talimat @@ -0,0 +1,26 @@ +# Tanım: Tcp istemci-sunucu uygulamalar üretmek için konsol uygulaması +# URL: http://cr.yp.to/ucspi-tcp.html +# Paketçi: milisarge +# Gerekler: +# Grup: + +isim=ucspi-tcp +surum=0.88 +devir=1 +kaynak=(http://cr.yp.to/ucspi-tcp/ucspi-tcp-0.88.tar.gz + ucspi-tcp-0.88-ipv6.patch + head-1.patch) + +derle() { + cd "$SRC/$isim-$surum" + patch -p0 < "$SRC/head-1.patch" + patch -p1 < "$SRC/ucspi-tcp-$surum-ipv6.patch" + echo "gcc ${CFLAGS}" > conf-cc + echo "/usr" > conf-home + make + for bin in tcpserver tcprules tcprulescheck argv0 recordio \ + tcpclient *\@ tcpcat mconnect mconnect-io addcr \ + delcr fixcrio rblsmtpd; do + install -m 755 -D $bin "$PKG/usr/bin/$bin" + done +} diff --git a/talimatname/genel/u/ucspi-tcp/ucspi-tcp-0.88-ipv6.patch b/talimatname/genel/u/ucspi-tcp/ucspi-tcp-0.88-ipv6.patch new file mode 100644 index 000000000..d83be6a8b --- /dev/null +++ b/talimatname/genel/u/ucspi-tcp/ucspi-tcp-0.88-ipv6.patch @@ -0,0 +1,4976 @@ +diff -uNr ucspi-tcp-0.88.orig/FILES ucspi-tcp-0.88/FILES +--- ucspi-tcp-0.88.orig/FILES 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/FILES 2009-08-04 17:45:59.000000000 -0500 +@@ -216,3 +216,40 @@ + warn-auto.sh + warn-shsgr + x86cpuid.c ++dns_ip6.c ++dns_ipq6.c ++dns_nd6.c ++dns_sortip6.c ++fmt_xlong.c ++ip6_fmt.c ++ip6_scan.c ++scan_0x.c ++socket_accept6.c ++socket_bind6.c ++socket_conn6.c ++socket_local6.c ++socket_recv6.c ++socket_remote6.c ++socket_send6.c ++socket_tcp6.c ++timeoutconn6.c ++tryip6.c ++haveip6.h2 ++haveip6.h1 ++remoteinfo6.c ++addcr.1 ++argv0.1 ++date@.1 ++delcr.1 ++finger@.1 ++fixcr.1 ++http@.1 ++mconnect.1 ++recordio.1 ++tcp-environ.5 ++tcpcat.1 ++tcpclient.1 ++tcprules.1 ++tcprulescheck.1 ++tcpserver.1 ++who@.1 +diff -uNr ucspi-tcp-0.88.orig/Makefile ucspi-tcp-0.88/Makefile +--- ucspi-tcp-0.88.orig/Makefile 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/Makefile 2009-08-04 17:45:59.000000000 -0500 +@@ -76,12 +76,14 @@ + makelib byte_chr.o byte_copy.o byte_cr.o byte_diff.o byte_rchr.o \ + byte_zero.o case_diffb.o case_diffs.o fmt_ulong.o ip4_fmt.o \ + ip4_scan.o scan_ulong.o str_chr.o str_diff.o str_len.o str_start.o \ +-uint16_pack.o uint16_unpack.o uint32_pack.o uint32_unpack.o ++uint16_pack.o uint16_unpack.o uint32_pack.o uint32_unpack.o \ ++ip6_fmt.o scan_ip6.o scan_xlong.o fmt_xlong.o + ./makelib byte.a byte_chr.o byte_copy.o byte_cr.o \ + byte_diff.o byte_rchr.o byte_zero.o case_diffb.o \ + case_diffs.o fmt_ulong.o ip4_fmt.o ip4_scan.o scan_ulong.o \ + str_chr.o str_diff.o str_len.o str_start.o uint16_pack.o \ +- uint16_unpack.o uint32_pack.o uint32_unpack.o ++ uint16_unpack.o uint32_pack.o uint32_unpack.o ip6_fmt.o \ ++ scan_ip6.o scan_xlong.o fmt_xlong.o + + byte_chr.o: \ + compile byte_chr.c byte.h +@@ -181,11 +183,13 @@ + dns.a: \ + makelib dns_dfd.o dns_domain.o dns_dtda.o dns_ip.o dns_ipq.o \ + dns_name.o dns_nd.o dns_packet.o dns_random.o dns_rcip.o dns_rcrw.o \ +-dns_resolve.o dns_sortip.o dns_transmit.o dns_txt.o ++dns_resolve.o dns_sortip.o dns_transmit.o dns_txt.o dns_ip6.o \ ++dns_sortip6.o dns_nd6.o dns_ipq6.o + ./makelib dns.a dns_dfd.o dns_domain.o dns_dtda.o dns_ip.o \ + dns_ipq.o dns_name.o dns_nd.o dns_packet.o dns_random.o \ + dns_rcip.o dns_rcrw.o dns_resolve.o dns_sortip.o \ +- dns_transmit.o dns_txt.o ++ dns_transmit.o dns_txt.o dns_ip6.o dns_sortip6.o dns_nd6.o \ ++ dns_ipq6.o + + dns_dfd.o: \ + compile dns_dfd.c error.h alloc.h byte.h dns.h stralloc.h gen_alloc.h \ +@@ -257,7 +261,7 @@ + dns_transmit.o: \ + compile dns_transmit.c socket.h uint16.h alloc.h error.h byte.h \ + readwrite.h uint16.h dns.h stralloc.h gen_alloc.h iopause.h taia.h \ +-tai.h uint64.h taia.h ++tai.h uint64.h taia.h uint32.h + ./compile dns_transmit.c + + dns_txt.o: \ +@@ -498,9 +502,15 @@ + remoteinfo.o: \ + compile remoteinfo.c fmt.h buffer.h socket.h uint16.h error.h \ + iopause.h taia.h tai.h uint64.h timeoutconn.h uint16.h remoteinfo.h \ +-stralloc.h gen_alloc.h uint16.h ++stralloc.h gen_alloc.h uint16.h uint32.h + ./compile remoteinfo.c + ++remoteinfo6.o: \ ++compile remoteinfo6.c fmt.h buffer.h socket.h uint16.h error.h \ ++iopause.h taia.h tai.h uint64.h timeoutconn.h uint16.h remoteinfo.h \ ++stralloc.h gen_alloc.h uint16.h uint32.h ++ ./compile remoteinfo6.c ++ + rts: \ + warn-auto.sh rts.sh conf-home + cat warn-auto.sh rts.sh \ +@@ -557,43 +567,43 @@ + rm -f trylsock.o trylsock + + socket_accept.o: \ +-compile socket_accept.c byte.h socket.h uint16.h ++compile socket_accept.c byte.h socket.h uint16.h uint32.h + ./compile socket_accept.c + + socket_bind.o: \ +-compile socket_bind.c byte.h socket.h uint16.h ++compile socket_bind.c byte.h socket.h uint16.h uint32.h + ./compile socket_bind.c + + socket_conn.o: \ +-compile socket_conn.c readwrite.h byte.h socket.h uint16.h ++compile socket_conn.c readwrite.h byte.h socket.h uint16.h uint32.h + ./compile socket_conn.c + + socket_delay.o: \ +-compile socket_delay.c socket.h uint16.h ++compile socket_delay.c socket.h uint16.h uint32.h + ./compile socket_delay.c + + socket_listen.o: \ +-compile socket_listen.c socket.h uint16.h ++compile socket_listen.c socket.h uint16.h uint32.h + ./compile socket_listen.c + + socket_local.o: \ +-compile socket_local.c byte.h socket.h uint16.h ++compile socket_local.c byte.h socket.h uint16.h uint32.h + ./compile socket_local.c + + socket_opts.o: \ +-compile socket_opts.c socket.h uint16.h ++compile socket_opts.c socket.h uint16.h uint32.h + ./compile socket_opts.c + + socket_remote.o: \ +-compile socket_remote.c byte.h socket.h uint16.h ++compile socket_remote.c byte.h socket.h uint16.h uint32.h + ./compile socket_remote.c + + socket_tcp.o: \ +-compile socket_tcp.c ndelay.h socket.h uint16.h ++compile socket_tcp.c ndelay.h socket.h uint16.h uint32.h + ./compile socket_tcp.c + + socket_udp.o: \ +-compile socket_udp.c ndelay.h socket.h uint16.h ++compile socket_udp.c ndelay.h socket.h uint16.h uint32.h + ./compile socket_udp.c + + str_chr.o: \ +@@ -710,9 +720,9 @@ + chmod 755 tcpcat + + tcpclient: \ +-load tcpclient.o remoteinfo.o timeoutconn.o dns.a time.a unix.a \ +-byte.a socket.lib +- ./load tcpclient remoteinfo.o timeoutconn.o dns.a time.a \ ++load tcpclient.o remoteinfo6.o dns.a time.a unix.a \ ++byte.a socket.lib byte.h timeoutconn6.o ++ ./load tcpclient remoteinfo6.o timeoutconn6.o dns.a time.a \ + unix.a byte.a `cat socket.lib` + + tcpclient.o: \ +@@ -720,7 +730,7 @@ + scan.h str.h ip4.h uint16.h socket.h uint16.h fd.h stralloc.h \ + gen_alloc.h buffer.h error.h strerr.h pathexec.h timeoutconn.h \ + uint16.h remoteinfo.h stralloc.h uint16.h dns.h stralloc.h iopause.h \ +-taia.h tai.h uint64.h taia.h ++taia.h tai.h uint64.h taia.h uint32.h + ./compile tcpclient.c + + tcprules: \ +@@ -742,9 +752,9 @@ + ./compile tcprulescheck.c + + tcpserver: \ +-load tcpserver.o rules.o remoteinfo.o timeoutconn.o cdb.a dns.a \ ++load tcpserver.o rules.o remoteinfo6.o timeoutconn6.o cdb.a dns.a \ + time.a unix.a byte.a socket.lib +- ./load tcpserver rules.o remoteinfo.o timeoutconn.o cdb.a \ ++ ./load tcpserver rules.o remoteinfo6.o timeoutconn6.o cdb.a \ + dns.a time.a unix.a byte.a `cat socket.lib` + + tcpserver.o: \ +@@ -753,7 +763,7 @@ + alloc.h buffer.h error.h strerr.h sgetopt.h subgetopt.h pathexec.h \ + socket.h uint16.h ndelay.h remoteinfo.h stralloc.h uint16.h rules.h \ + stralloc.h sig.h dns.h stralloc.h iopause.h taia.h tai.h uint64.h \ +-taia.h ++taia.h uint32.h + ./compile tcpserver.c + + time.a: \ +@@ -765,9 +775,14 @@ + + timeoutconn.o: \ + compile timeoutconn.c ndelay.h socket.h uint16.h iopause.h taia.h \ +-tai.h uint64.h error.h timeoutconn.h uint16.h ++tai.h uint64.h error.h timeoutconn.h uint16.h uint32.h + ./compile timeoutconn.c + ++timeoutconn6.o: \ ++compile timeoutconn6.c ndelay.h socket.h uint16.h iopause.h taia.h \ ++tai.h uint64.h error.h timeoutconn.h uint16.h uint32.h ++ ./compile timeoutconn6.c ++ + uint16_pack.o: \ + compile uint16_pack.c uint16.h + ./compile uint16_pack.c +@@ -806,7 +821,12 @@ + socket_opts.o socket_remote.o socket_tcp.o socket_udp.o \ + stralloc_cat.o stralloc_catb.o stralloc_cats.o stralloc_copy.o \ + stralloc_eady.o stralloc_opyb.o stralloc_opys.o stralloc_pend.o \ +-strerr_die.o strerr_sys.o subgetopt.o wait_nohang.o wait_pid.o ++strerr_die.o strerr_sys.o subgetopt.o wait_nohang.o wait_pid.o \ ++socket_conn6.o socket_bind6.o socket_accept6.o socket_recv6.o \ ++socket_send6.o socket_local6.o socket_remote6.o socket_tcp6.o \ ++socket_getifname.o socket_getifidx.o socket_v4mappedprefix.o \ ++socket_ip4loopback.o socket_v6any.o socket_v6loopback.o \ ++socket_udp6.o + ./makelib unix.a alloc.o alloc_re.o buffer.o buffer_0.o \ + buffer_1.o buffer_2.o buffer_copy.o buffer_get.o \ + buffer_put.o env.o error.o error_str.o fd_copy.o fd_move.o \ +@@ -819,7 +839,12 @@ + socket_udp.o stralloc_cat.o stralloc_catb.o stralloc_cats.o \ + stralloc_copy.o stralloc_eady.o stralloc_opyb.o \ + stralloc_opys.o stralloc_pend.o strerr_die.o strerr_sys.o \ +- subgetopt.o wait_nohang.o wait_pid.o ++ subgetopt.o wait_nohang.o wait_pid.o socket_conn6.o \ ++ socket_bind6.o socket_accept6.o socket_recv6.o socket_send6.o \ ++ socket_local6.o socket_remote6.o socket_tcp6.o \ ++ socket_getifname.o socket_getifidx.o socket_v4mappedprefix.o \ ++ socket_ip4loopback.o socket_v6any.o socket_v6loopback.o \ ++ socket_udp6.o + + wait_nohang.o: \ + compile wait_nohang.c haswaitp.h +@@ -835,3 +860,110 @@ + | sed s}HOME}"`head -1 conf-home`"}g \ + > who@ + chmod 755 who@ ++ ++socket_conn6.o: \ ++compile socket_conn6.c socket.h uint16.h haveip6.h error.h ip6.h \ ++uint32.h ++ ./compile socket_conn6.c ++ ++socket_bind6.o: \ ++compile socket_bind6.c socket.h uint16.h haveip6.h error.h ip6.h \ ++uint32.h ++ ./compile socket_bind6.c ++ ++socket_accept6.o: \ ++compile socket_accept6.c socket.h uint16.h haveip6.h error.h ip6.h \ ++uint32.h ++ ./compile socket_accept6.c ++ ++socket_recv6.o: \ ++compile socket_recv6.c socket.h uint16.h haveip6.h error.h ip6.h \ ++uint32.h ++ ./compile socket_recv6.c ++ ++socket_send6.o: \ ++compile socket_send6.c socket.h uint16.h haveip6.h error.h uint32.h ++ ./compile socket_send6.c ++ ++socket_local6.o: \ ++compile socket_local6.c socket.h uint16.h haveip6.h error.h uint32.h ++ ./compile socket_local6.c ++ ++socket_remote6.o: \ ++compile socket_remote6.c socket.h uint16.h haveip6.h error.h uint32.h ++ ./compile socket_remote6.c ++ ++dns_sortip6.o: \ ++compile dns_sortip6.c byte.h dns.h stralloc.h gen_alloc.h iopause.h \ ++taia.h tai.h uint64.h taia.h ++ ./compile dns_sortip6.c ++ ++dns_nd6.o: \ ++compile dns_nd6.c byte.h fmt.h dns.h stralloc.h gen_alloc.h iopause.h \ ++taia.h tai.h uint64.h taia.h ++ ./compile dns_nd6.c ++ ++dns_ipq6.o: \ ++compile dns_ipq6.c stralloc.h gen_alloc.h case.h byte.h str.h dns.h \ ++stralloc.h iopause.h taia.h tai.h uint64.h taia.h ip6.h ++ ./compile dns_ipq6.c ++ ++dns_ip6.o: \ ++compile dns_ip6.c stralloc.h gen_alloc.h uint16.h byte.h dns.h \ ++stralloc.h iopause.h taia.h tai.h uint64.h taia.h ++ ./compile dns_ip6.c ++ ++fmt_xlong.o: \ ++compile fmt_xlong.c scan.h ++ ./compile fmt_xlong.c ++ ++scan_xlong.o: \ ++compile scan_xlong.c scan.h ++ ./compile scan_xlong.c ++ ++ip6_fmt.o: \ ++compile ip6_fmt.c fmt.h ip6.h ++ ./compile ip6_fmt.c ++ ++scan_ip6.o: \ ++compile scan_ip6.c scan.h ip6.h ++ ./compile scan_ip6.c ++ ++socket_tcp6.o: \ ++compile socket_tcp6.c ndelay.h socket.h uint16.h haveip6.h uint32.h ++ ./compile socket_tcp6.c ++ ++socket_udp6.o: \ ++compile socket_udp6.c ndelay.h socket.h uint16.h haveip6.h uint32.h ++ ./compile socket_udp6.c ++ ++haveip6.h: \ ++tryip6.c choose compile haveip6.h1 haveip6.h2 ++ ./choose c tryip6 haveip6.h1 haveip6.h2 > haveip6.h ++ ++socket_getifname.o: \ ++compile socket_getifname.c socket.h uint16.h uint32.h ++ ./compile socket_getifname.c ++ ++socket_getifidx.o: \ ++compile socket_getifidx.c socket.h uint16.h uint32.h ++ ./compile socket_getifidx.c ++ ++socket_ip4loopback.o: \ ++compile socket_ip4loopback.c ++ ./compile socket_ip4loopback.c ++ ++socket_v4mappedprefix.o: \ ++compile socket_v4mappedprefix.c ++ ./compile socket_v4mappedprefix.c ++ ++socket_v6any.o: \ ++compile socket_v6any.c ++ ./compile socket_v6any.c ++ ++socket_v6loopback.o: \ ++compile socket_v6loopback.c ++ ./compile socket_v6loopback.c ++ ++clean: ++ rm -f `cat TARGETS` +diff -uNr ucspi-tcp-0.88.orig/TARGETS ucspi-tcp-0.88/TARGETS +--- ucspi-tcp-0.88.orig/TARGETS 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/TARGETS 2009-08-04 17:45:59.000000000 -0500 +@@ -169,3 +169,31 @@ + it + setup + check ++dns_ip6.o ++dns_ipq6.o ++dns_nd6.o ++dns_sortip6.o ++fmt_xlong.o ++ip6_fmt.o ++ip6_scan.o ++scan_0x.o ++socket_accept6.o ++socket_bind6.o ++socket_conn6.o ++socket_local6.o ++socket_recv6.o ++socket_remote6.o ++socket_send6.o ++socket_tcp6.o ++timeoutconn6.o ++haveip6.h ++remoteinfo6.o ++socket_getifidx.o ++socket_getifname.o ++scan_ip6.o ++scan_xlong.o ++socket_ip4loopback.o ++socket_udp6.o ++socket_v4mappedprefix.o ++socket_v6any.o ++socket_v6loopback.o +diff -uNr ucspi-tcp-0.88.orig/addcr.1 ucspi-tcp-0.88/addcr.1 +--- ucspi-tcp-0.88.orig/addcr.1 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/addcr.1 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,22 @@ ++.TH addcr 1 ++.SH NAME ++addcr \- add a CR before each LF ++.SH SYNOPSIS ++.B addcr ++.SH DESCRIPTION ++.B addcr ++inserts CR at the end of each line of input. ++It does not insert CR at the end of a partial final line. ++.SH COMPATIBILITY ++Some vendors ship ++.B unix2dos ++or ++.B bsd2dos ++tools similar to ++.BR addcr . ++Those tools often blow up on long lines and nulls. ++.B addcr ++has no trouble with long lines and nulls. ++.SH "SEE ALSO" ++delcr(1), ++fixcr(1) +diff -uNr ucspi-tcp-0.88.orig/argv0.1 ucspi-tcp-0.88/argv0.1 +--- ucspi-tcp-0.88.orig/argv0.1 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/argv0.1 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,47 @@ ++.TH argv0 1 ++.SH NAME ++argv0 \- run a program with a specified 0th argument ++.SH SYNOPSIS ++.B argv0 ++.I realname ++.I zero ++[ ++.I arg ... ++] ++.SH DESCRIPTION ++.B argv0 ++runs ++the program stored as ++.I realname ++on disk, ++with the given ++arguments. ++It sets the 0th argument of ++the program to ++.IR zero . ++ ++For example, ++ ++.EX ++ argv0 /bin/csh -bin/csh ++.EE ++ ++runs ++.B /bin/csh ++with a 0th argument of ++.BR -bin/csh . ++.B csh ++will think it is a login shell ++and behave accordingly. ++ ++.B argv0 ++can be used to run some ++.B inetd ++wrappers under ++.BR tcpserver . ++.SH "SEE ALSO" ++csh(1), ++tcpserver(1), ++execve(2), ++execvp(3), ++inetd(8) +diff -uNr ucspi-tcp-0.88.orig/date@.1 ucspi-tcp-0.88/date@.1 +--- ucspi-tcp-0.88.orig/date@.1 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/date@.1 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,32 @@ ++.TH date@ 1 ++.SH NAME ++date@ \- print the date on a host ++.SH SYNTAX ++.B date@ ++[ ++.I host ++] ++.SH DESCRIPTION ++.B date@ ++connects to TCP port 13 (Daytime) on ++.I host ++and prints any data it receives. ++It removes CR and converts unprintable characters to a visible format. ++ ++If ++.I host ++is not supplied, ++.B date@ ++connects to the local host. ++ ++Some computers respond to port 13 with a human-readable date. ++For example, they may be running ++ ++.EX ++ tcpserver 0 13 date & ++.EE ++.SH "SEE ALSO" ++cat(1), ++delcr(1), ++tcpclient(1), ++tcpserver(1) +diff -uNr ucspi-tcp-0.88.orig/delcr.1 ucspi-tcp-0.88/delcr.1 +--- ucspi-tcp-0.88.orig/delcr.1 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/delcr.1 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,30 @@ ++.TH delcr 1 ++.SH NAME ++delcr \- remove a CR before each LF ++.SH SYNOPSIS ++.B delcr ++.SH DESCRIPTION ++.B delcr ++removes a CR at the end of each line of input, ++if a CR is present. ++It also removes a CR at the end of a partial final line. ++ ++The pipeline ++ ++.EX ++ addcr | delcr ++.EE ++ ++prints an exact copy of its input. ++.SH COMPATIBILITY ++Some vendors ship ++.B dos2unix ++or ++.B dos2bsd ++tools similar to ++.BR delcr . ++Those tools often blow up on long lines and nulls. ++.B delcr ++has no trouble with long lines and nulls. ++.SH "SEE ALSO" ++addcr(1) +diff -uNr ucspi-tcp-0.88.orig/dns.h ucspi-tcp-0.88/dns.h +--- ucspi-tcp-0.88.orig/dns.h 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/dns.h 2009-08-04 17:45:59.000000000 -0500 +@@ -34,51 +34,60 @@ + unsigned int curserver; + struct taia deadline; + unsigned int pos; +- char *servers; +- char localip[4]; ++ const char *servers; ++ char localip[16]; ++ unsigned int scope_id; + char qtype[2]; + } ; + +-extern void dns_random_init(char *); ++extern void dns_random_init(const char *); + extern unsigned int dns_random(unsigned int); + + extern void dns_sortip(char *,unsigned int); ++extern void dns_sortip6(char *,unsigned int); + + extern void dns_domain_free(char **); +-extern int dns_domain_copy(char **,char *); +-extern unsigned int dns_domain_length(char *); +-extern int dns_domain_equal(char *,char *); +-extern char *dns_domain_suffix(char *,char *); +-extern int dns_domain_fromdot(char **,char *,unsigned int); +-extern int dns_domain_todot_cat(stralloc *,char *); +- +-extern unsigned int dns_packet_copy(char *,unsigned int,unsigned int,char *,unsigned int); +-extern unsigned int dns_packet_getname(char *,unsigned int,unsigned int,char **); +-extern unsigned int dns_packet_skipname(char *,unsigned int,unsigned int); +-extern int dns_packet_nameequal(char *,unsigned int,unsigned int,char *,unsigned int,unsigned int); ++extern int dns_domain_copy(char **,const char *); ++extern unsigned int dns_domain_length(const char *); ++extern int dns_domain_equal(const char *,const char *); ++extern int dns_domain_suffix(const char *,const char *); ++extern unsigned int dns_domain_suffixpos(const char *,const char *); ++extern int dns_domain_fromdot(char **,const char *,unsigned int); ++extern int dns_domain_todot_cat(stralloc *,const char *); ++ ++extern unsigned int dns_packet_copy(const char *,unsigned int,unsigned int,char *,unsigned int); ++extern unsigned int dns_packet_getname(const char *,unsigned int,unsigned int,char **); ++extern unsigned int dns_packet_skipname(const char *,unsigned int,unsigned int); + +-extern int dns_transmit_start(struct dns_transmit *,char *,int,char *,char *,char *); ++extern int dns_transmit_start(struct dns_transmit *,const char *,int,const char *,const char *,const char *); + extern void dns_transmit_free(struct dns_transmit *); + extern void dns_transmit_io(struct dns_transmit *,iopause_fd *,struct taia *); +-extern int dns_transmit_get(struct dns_transmit *,iopause_fd *,struct taia *); ++extern int dns_transmit_get(struct dns_transmit *,const iopause_fd *,const struct taia *); + + extern int dns_resolvconfip(char *); +-extern int dns_resolve(char *,char *); ++extern int dns_resolve(const char *,const char *); + extern struct dns_transmit dns_resolve_tx; + +-extern int dns_ip4_packet(stralloc *,char *,unsigned int); +-extern int dns_ip4(stralloc *,stralloc *); +-extern int dns_name_packet(stralloc *,char *,unsigned int); +-extern void dns_name4_domain(char *,char *); ++extern int dns_ip4_packet(stralloc *,const char *,unsigned int); ++extern int dns_ip4(stralloc *,const stralloc *); ++extern int dns_ip6_packet(stralloc *,const char *,unsigned int); ++extern int dns_ip6(stralloc *,stralloc *); ++extern int dns_name_packet(stralloc *,const char *,unsigned int); ++extern void dns_name4_domain(char *,const char *); + #define DNS_NAME4_DOMAIN 31 +-extern int dns_name4(stralloc *,char *); +-extern int dns_txt_packet(stralloc *,char *,unsigned int); +-extern int dns_txt(stralloc *,stralloc *); +-extern int dns_mx_packet(stralloc *,char *,unsigned int); +-extern int dns_mx(stralloc *,stralloc *); ++extern int dns_name4(stralloc *,const char *); ++extern int dns_txt_packet(stralloc *,const char *,unsigned int); ++extern int dns_txt(stralloc *,const stralloc *); ++extern int dns_mx_packet(stralloc *,const char *,unsigned int); ++extern int dns_mx(stralloc *,const stralloc *); + + extern int dns_resolvconfrewrite(stralloc *); +-extern int dns_ip4_qualify_rules(stralloc *,stralloc *,stralloc *,stralloc *); +-extern int dns_ip4_qualify(stralloc *,stralloc *,stralloc *); ++extern int dns_ip4_qualify_rules(stralloc *,stralloc *,const stralloc *,const stralloc *); ++extern int dns_ip4_qualify(stralloc *,stralloc *,const stralloc *); ++extern int dns_ip6_qualify_rules(stralloc *,stralloc *,const stralloc *,const stralloc *); ++extern int dns_ip6_qualify(stralloc *,stralloc *,const stralloc *); ++ ++extern int dns_name6_domain(char *,char *); ++#define DNS_NAME6_DOMAIN (4*16+11) + + #endif +diff -uNr ucspi-tcp-0.88.orig/dns_dfd.c ucspi-tcp-0.88/dns_dfd.c +--- ucspi-tcp-0.88.orig/dns_dfd.c 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/dns_dfd.c 2009-08-04 17:45:59.000000000 -0500 +@@ -1,9 +1,10 @@ +-#include "error.h" +-#include "alloc.h" ++#include ++#include + #include "byte.h" + #include "dns.h" ++#include "error.h" + +-int dns_domain_fromdot(char **out,char *buf,unsigned int n) ++int dns_domain_fromdot(char **out,const char *buf,unsigned int n) + { + char label[63]; + unsigned int labellen = 0; /* <= sizeof label */ +@@ -59,11 +60,11 @@ + if (namelen + 1 > sizeof name) return 0; + name[namelen++] = 0; + +- x = alloc(namelen); ++ x = malloc(namelen); + if (!x) return 0; + byte_copy(x,namelen,name); + +- if (*out) alloc_free(*out); ++ if (*out) free(*out); + *out = x; + return 1; + } +diff -uNr ucspi-tcp-0.88.orig/dns_domain.c ucspi-tcp-0.88/dns_domain.c +--- ucspi-tcp-0.88.orig/dns_domain.c 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/dns_domain.c 2009-08-04 17:45:59.000000000 -0500 +@@ -1,16 +1,15 @@ +-#include "error.h" +-#include "alloc.h" ++#include + #include "case.h" + #include "byte.h" + #include "dns.h" + +-unsigned int dns_domain_length(char *dn) ++unsigned int dns_domain_length(const char *dn) + { +- char *x; ++ const char *x; + unsigned char c; + + x = dn; +- while (c = *x++) ++ while ((c = *x++)) + x += (unsigned int) c; + return x - dn; + } +@@ -18,26 +17,26 @@ + void dns_domain_free(char **out) + { + if (*out) { +- alloc_free(*out); ++ free(*out); + *out = 0; + } + } + +-int dns_domain_copy(char **out,char *in) ++int dns_domain_copy(char **out,const char *in) + { + unsigned int len; + char *x; + + len = dns_domain_length(in); +- x = alloc(len); ++ x = malloc(len); + if (!x) return 0; + byte_copy(x,len,in); +- if (*out) alloc_free(*out); ++ if (*out) free(*out); + *out = x; + return 1; + } + +-int dns_domain_equal(char *dn1,char *dn2) ++int dns_domain_equal(const char *dn1,const char *dn2) + { + unsigned int len; + +@@ -48,12 +47,25 @@ + return 1; + } + +-char *dns_domain_suffix(char *big,char *little) ++int dns_domain_suffix(const char *big,const char *little) ++{ ++ unsigned char c; ++ ++ for (;;) { ++ if (dns_domain_equal(big,little)) return 1; ++ c = *big++; ++ if (!c) return 0; ++ big += c; ++ } ++} ++ ++unsigned int dns_domain_suffixpos(const char *big,const char *little) + { ++ const char *orig = big; + unsigned char c; + + for (;;) { +- if (dns_domain_equal(big,little)) return big; ++ if (dns_domain_equal(big,little)) return big - orig; + c = *big++; + if (!c) return 0; + big += c; +diff -uNr ucspi-tcp-0.88.orig/dns_dtda.c ucspi-tcp-0.88/dns_dtda.c +--- ucspi-tcp-0.88.orig/dns_dtda.c 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/dns_dtda.c 2009-08-04 17:45:59.000000000 -0500 +@@ -1,7 +1,7 @@ + #include "stralloc.h" + #include "dns.h" + +-int dns_domain_todot_cat(stralloc *out,char *d) ++int dns_domain_todot_cat(stralloc *out,const char *d) + { + char ch; + char ch2; +diff -uNr ucspi-tcp-0.88.orig/dns_ip.c ucspi-tcp-0.88/dns_ip.c +--- ucspi-tcp-0.88.orig/dns_ip.c 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/dns_ip.c 2009-08-04 17:45:59.000000000 -0500 +@@ -3,7 +3,7 @@ + #include "byte.h" + #include "dns.h" + +-int dns_ip4_packet(stralloc *out,char *buf,unsigned int len) ++int dns_ip4_packet(stralloc *out,const char *buf,unsigned int len) + { + unsigned int pos; + char header[12]; +@@ -36,7 +36,7 @@ + + static char *q = 0; + +-int dns_ip4(stralloc *out,stralloc *fqdn) ++int dns_ip4(stralloc *out,const stralloc *fqdn) + { + unsigned int i; + char code; +diff -uNr ucspi-tcp-0.88.orig/dns_ip6.c ucspi-tcp-0.88/dns_ip6.c +--- ucspi-tcp-0.88.orig/dns_ip6.c 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/dns_ip6.c 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,103 @@ ++#include "stralloc.h" ++#include "uint16.h" ++#include "byte.h" ++#include "dns.h" ++#include "ip4.h" ++#include "ip6.h" ++ ++static int dns_ip6_packet_add(stralloc *out,const char *buf,unsigned int len) ++{ ++ unsigned int pos; ++ char header[16]; ++ uint16 numanswers; ++ uint16 datalen; ++ ++ pos = dns_packet_copy(buf,len,0,header,12); if (!pos) return -1; ++ uint16_unpack_big(header + 6,&numanswers); ++ pos = dns_packet_skipname(buf,len,pos); if (!pos) return -1; ++ pos += 4; ++ ++ while (numanswers--) { ++ pos = dns_packet_skipname(buf,len,pos); if (!pos) return -1; ++ pos = dns_packet_copy(buf,len,pos,header,10); if (!pos) return -1; ++ uint16_unpack_big(header + 8,&datalen); ++ if (byte_equal(header,2,DNS_T_AAAA)) { ++ if (byte_equal(header + 2,2,DNS_C_IN)) ++ if (datalen == 16) { ++ if (!dns_packet_copy(buf,len,pos,header,16)) return -1; ++ if (!stralloc_catb(out,header,16)) return -1; ++ } ++ } else if (byte_equal(header,2,DNS_T_A)) ++ if (byte_equal(header + 2,2,DNS_C_IN)) ++ if (datalen == 4) { ++ byte_copy(header,12,V4mappedprefix); ++ if (!dns_packet_copy(buf,len,pos,header+12,4)) return -1; ++ if (!stralloc_catb(out,header,16)) return -1; ++ } ++ pos += datalen; ++ } ++ ++ dns_sortip6(out->s,out->len); ++ return 0; ++} ++ ++int dns_ip6_packet(stralloc *out,const char *buf,unsigned int len) { ++ if (!stralloc_copys(out,"")) return -1; ++ return dns_ip6_packet_add(out,buf,len); ++} ++ ++static char *q = 0; ++ ++int dns_ip6(stralloc *out,stralloc *fqdn) ++{ ++ unsigned int i; ++ char code; ++ char ch; ++ char ip[16]; ++ ++ if (!stralloc_copys(out,"")) return -1; ++ if (!stralloc_readyplus(fqdn,1)) return -1; ++ fqdn->s[fqdn->len]=0; ++ if ((i=scan_ip6(fqdn->s,ip))) { ++ if (fqdn->s[i]) return -1; ++ stralloc_copyb(out,ip,16); ++ return 0; ++ } ++ code = 0; ++ for (i = 0;i <= fqdn->len;++i) { ++ if (i < fqdn->len) ++ ch = fqdn->s[i]; ++ else ++ ch = '.'; ++ ++ if ((ch == '[') || (ch == ']')) continue; ++ if (ch == '.') { ++ if (!stralloc_append(out,&code)) return -1; ++ code = 0; ++ continue; ++ } ++ if ((ch >= '0') && (ch <= '9')) { ++ code *= 10; ++ code += ch - '0'; ++ continue; ++ } ++ ++ if (!dns_domain_fromdot(&q,fqdn->s,fqdn->len)) return -1; ++ if (!stralloc_copys(out,"")) return -1; ++ if (dns_resolve(q,DNS_T_AAAA) != -1) ++ if (dns_ip6_packet_add(out,dns_resolve_tx.packet,dns_resolve_tx.packetlen) != -1) { ++ dns_transmit_free(&dns_resolve_tx); ++ dns_domain_free(&q); ++ } ++ if (!dns_domain_fromdot(&q,fqdn->s,fqdn->len)) return -1; ++ if (dns_resolve(q,DNS_T_A) != -1) ++ if (dns_ip6_packet_add(out,dns_resolve_tx.packet,dns_resolve_tx.packetlen) != -1) { ++ dns_transmit_free(&dns_resolve_tx); ++ dns_domain_free(&q); ++ } ++ return out->a>0?0:-1; ++ } ++ ++ out->len &= ~3; ++ return 0; ++} +diff -uNr ucspi-tcp-0.88.orig/dns_ipq.c ucspi-tcp-0.88/dns_ipq.c +--- ucspi-tcp-0.88.orig/dns_ipq.c 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/dns_ipq.c 2009-08-04 17:45:59.000000000 -0500 +@@ -4,7 +4,7 @@ + #include "str.h" + #include "dns.h" + +-static int doit(stralloc *work,char *rule) ++static int doit(stralloc *work,const char *rule) + { + char ch; + unsigned int colon; +@@ -30,7 +30,7 @@ + return stralloc_cats(work,rule + colon + 1); + } + +-int dns_ip4_qualify_rules(stralloc *out,stralloc *fqdn,stralloc *in,stralloc *rules) ++int dns_ip4_qualify_rules(stralloc *out,stralloc *fqdn,const stralloc *in,const stralloc *rules) + { + unsigned int i; + unsigned int j; +@@ -63,7 +63,7 @@ + } + } + +-int dns_ip4_qualify(stralloc *out,stralloc *fqdn,stralloc *in) ++int dns_ip4_qualify(stralloc *out,stralloc *fqdn,const stralloc *in) + { + static stralloc rules; + if (dns_resolvconfrewrite(&rules) == -1) return -1; +diff -uNr ucspi-tcp-0.88.orig/dns_ipq6.c ucspi-tcp-0.88/dns_ipq6.c +--- ucspi-tcp-0.88.orig/dns_ipq6.c 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/dns_ipq6.c 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,72 @@ ++#include "stralloc.h" ++#include "case.h" ++#include "byte.h" ++#include "str.h" ++#include "dns.h" ++ ++static int doit(stralloc *work,const char *rule) ++{ ++ char ch; ++ unsigned int colon; ++ unsigned int prefixlen; ++ ++ ch = *rule++; ++ if ((ch != '?') && (ch != '=') && (ch != '*') && (ch != '-')) return 1; ++ colon = str_chr(rule,':'); ++ if (!rule[colon]) return 1; ++ ++ if (work->len < colon) return 1; ++ prefixlen = work->len - colon; ++ if ((ch == '=') && prefixlen) return 1; ++ if (case_diffb(rule,colon,work->s + prefixlen)) return 1; ++ if (ch == '?') { ++ if (byte_chr(work->s,prefixlen,'.') < prefixlen) return 1; ++ if (byte_chr(work->s,prefixlen,':') < prefixlen) return 1; ++ if (byte_chr(work->s,prefixlen,'[') < prefixlen) return 1; ++ if (byte_chr(work->s,prefixlen,']') < prefixlen) return 1; ++ } ++ ++ work->len = prefixlen; ++ if (ch == '-') work->len = 0; ++ return stralloc_cats(work,rule + colon + 1); ++} ++ ++int dns_ip6_qualify_rules(stralloc *out,stralloc *fqdn,const stralloc *in,const stralloc *rules) ++{ ++ unsigned int i; ++ unsigned int j; ++ unsigned int plus; ++ unsigned int fqdnlen; ++ ++ if (!stralloc_copy(fqdn,in)) return -1; ++ ++ for (j = i = 0;j < rules->len;++j) ++ if (!rules->s[j]) { ++ if (!doit(fqdn,rules->s + i)) return -1; ++ i = j + 1; ++ } ++ ++ fqdnlen = fqdn->len; ++ plus = byte_chr(fqdn->s,fqdnlen,'+'); ++ if (plus >= fqdnlen) ++ return dns_ip6(out,fqdn); ++ ++ i = plus + 1; ++ for (;;) { ++ j = byte_chr(fqdn->s + i,fqdnlen - i,'+'); ++ byte_copy(fqdn->s + plus,j,fqdn->s + i); ++ fqdn->len = plus + j; ++ if (dns_ip6(out,fqdn) == -1) return -1; ++ if (out->len) return 0; ++ i += j; ++ if (i >= fqdnlen) return 0; ++ ++i; ++ } ++} ++ ++int dns_ip6_qualify(stralloc *out,stralloc *fqdn,const stralloc *in) ++{ ++ static stralloc rules; ++ if (dns_resolvconfrewrite(&rules) == -1) return -1; ++ return dns_ip6_qualify_rules(out,fqdn,in,&rules); ++} +diff -uNr ucspi-tcp-0.88.orig/dns_name.c ucspi-tcp-0.88/dns_name.c +--- ucspi-tcp-0.88.orig/dns_name.c 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/dns_name.c 2009-08-04 17:45:59.000000000 -0500 +@@ -2,10 +2,11 @@ + #include "uint16.h" + #include "byte.h" + #include "dns.h" ++#include "ip6.h" + + static char *q = 0; + +-int dns_name_packet(stralloc *out,char *buf,unsigned int len) ++int dns_name_packet(stralloc *out,const char *buf,unsigned int len) + { + unsigned int pos; + char header[12]; +@@ -35,7 +36,7 @@ + return 0; + } + +-int dns_name4(stralloc *out,char ip[4]) ++int dns_name4(stralloc *out,const char ip[4]) + { + char name[DNS_NAME4_DOMAIN]; + +@@ -46,3 +47,17 @@ + dns_domain_free(&q); + return 0; + } ++ ++int dns_name6(stralloc *out,char ip[16]) ++{ ++ char name[DNS_NAME6_DOMAIN]; ++ ++ if (ip6_isv4mapped(ip)) ++ return dns_name4(out,ip+12); ++ dns_name6_domain(name,ip); ++ if (dns_resolve(name,DNS_T_PTR) == -1) return -1; ++ if (dns_name_packet(out,dns_resolve_tx.packet,dns_resolve_tx.packetlen) == -1) return -1; ++ dns_transmit_free(&dns_resolve_tx); ++ dns_domain_free(&q); ++ return 0; ++} +diff -uNr ucspi-tcp-0.88.orig/dns_nd.c ucspi-tcp-0.88/dns_nd.c +--- ucspi-tcp-0.88.orig/dns_nd.c 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/dns_nd.c 2009-08-04 17:45:59.000000000 -0500 +@@ -2,7 +2,7 @@ + #include "fmt.h" + #include "dns.h" + +-void dns_name4_domain(char name[DNS_NAME4_DOMAIN],char ip[4]) ++void dns_name4_domain(char name[DNS_NAME4_DOMAIN],const char ip[4]) + { + unsigned int namelen; + unsigned int i; +diff -uNr ucspi-tcp-0.88.orig/dns_nd6.c ucspi-tcp-0.88/dns_nd6.c +--- ucspi-tcp-0.88.orig/dns_nd6.c 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/dns_nd6.c 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,28 @@ ++#include "byte.h" ++#include "fmt.h" ++#include "dns.h" ++ ++/* RFC1886: ++ * 4321:0:1:2:3:4:567:89ab ++ * -> ++ * b.a.9.8.7.6.5.0.4.0.0.0.3.0.0.0.2.0.0.0.1.0.0.0.0.0.0.0.1.2.3.4.IP6.INT. ++ */ ++ ++static inline char tohex(char c) { ++ return c>=10?c-10+'a':c+'0'; ++} ++ ++int dns_name6_domain(char name[DNS_NAME6_DOMAIN],char ip[16]) ++{ ++ unsigned int j; ++ ++ for (j=0; j<16; j++) { ++ name[j*4]=1; ++ name[j*4+1]=tohex(ip[15-j] & 15); ++ name[j*4+2]=1; ++ name[j*4+3]=tohex((unsigned char)ip[15-j] >> 4); ++ } ++ byte_copy(name + 4*16,10,"\3ip6\4arpa\0"); ++ return 4*16+10; ++} ++ +diff -uNr ucspi-tcp-0.88.orig/dns_packet.c ucspi-tcp-0.88/dns_packet.c +--- ucspi-tcp-0.88.orig/dns_packet.c 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/dns_packet.c 2009-08-04 17:45:59.000000000 -0500 +@@ -2,10 +2,11 @@ + DNS should have used LZ77 instead of its own sophomoric compression algorithm. + */ + +-#include "error.h" ++#include + #include "dns.h" ++#include "error.h" + +-unsigned int dns_packet_copy(char *buf,unsigned int len,unsigned int pos,char *out,unsigned int outlen) ++unsigned int dns_packet_copy(const char *buf,unsigned int len,unsigned int pos,char *out,unsigned int outlen) + { + while (outlen) { + if (pos >= len) { errno = error_proto; return 0; } +@@ -15,7 +16,7 @@ + return pos; + } + +-unsigned int dns_packet_skipname(char *buf,unsigned int len,unsigned int pos) ++unsigned int dns_packet_skipname(const char *buf,unsigned int len,unsigned int pos) + { + unsigned char ch; + +@@ -32,7 +33,7 @@ + return 0; + } + +-unsigned int dns_packet_getname(char *buf,unsigned int len,unsigned int pos,char **d) ++unsigned int dns_packet_getname(const char *buf,unsigned int len,unsigned int pos,char **d) + { + unsigned int loop = 0; + unsigned int state = 0; +diff -uNr ucspi-tcp-0.88.orig/dns_random.c ucspi-tcp-0.88/dns_random.c +--- ucspi-tcp-0.88.orig/dns_random.c 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/dns_random.c 2009-08-04 17:45:59.000000000 -0500 +@@ -1,3 +1,4 @@ ++#include + #include "dns.h" + #include "taia.h" + #include "uint32.h" +@@ -29,7 +30,7 @@ + } + } + +-void dns_random_init(char data[128]) ++void dns_random_init(const char data[128]) + { + int i; + struct taia t; +diff -uNr ucspi-tcp-0.88.orig/dns_rcip.c ucspi-tcp-0.88/dns_rcip.c +--- ucspi-tcp-0.88.orig/dns_rcip.c 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/dns_rcip.c 2009-08-04 17:45:59.000000000 -0500 +@@ -2,12 +2,13 @@ + #include "openreadclose.h" + #include "byte.h" + #include "ip4.h" +-#include "env.h" ++#include "ip6.h" + #include "dns.h" ++#include "env.h" + + static stralloc data = {0}; + +-static int init(char ip[64]) ++static int init(char ip[256]) + { + int i; + int j; +@@ -16,15 +17,16 @@ + + x = env_get("DNSCACHEIP"); + if (x) +- while (iplen <= 60) ++ while (iplen <= 60) { + if (*x == '.') + ++x; + else { +- i = ip4_scan(x,ip + iplen); ++ i = scan_ip6(x,ip + iplen); + if (!i) break; + x += i; +- iplen += 4; ++ iplen += 16; + } ++ } + + if (!iplen) { + i = openreadclose("/etc/resolv.conf",&data,64); +@@ -39,8 +41,9 @@ + while ((data.s[i] == ' ') || (data.s[i] == '\t')) + ++i; + if (iplen <= 60) +- if (ip4_scan(data.s + i,ip + iplen)) +- iplen += 4; ++ if (scan_ip6(data.s + i,ip + iplen)) { ++ iplen += 16; ++ } + } + i = j + 1; + } +@@ -48,19 +51,19 @@ + } + + if (!iplen) { +- byte_copy(ip,4,"\177\0\0\1"); +- iplen = 4; ++ byte_copy(ip,16,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1"); ++ iplen = 16; + } +- byte_zero(ip + iplen,64 - iplen); ++ byte_zero(ip + iplen,256 - iplen); + return 0; + } + + static int ok = 0; + static unsigned int uses; + static struct taia deadline; +-static char ip[64]; /* defined if ok */ ++static char ip[256]; /* defined if ok */ + +-int dns_resolvconfip(char s[64]) ++int dns_resolvconfip(char s[256]) + { + struct taia now; + +@@ -77,6 +80,6 @@ + } + + --uses; +- byte_copy(s,64,ip); ++ byte_copy(s,256,ip); + return 0; + } +diff -uNr ucspi-tcp-0.88.orig/dns_rcrw.c ucspi-tcp-0.88/dns_rcrw.c +--- ucspi-tcp-0.88.orig/dns_rcrw.c 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/dns_rcrw.c 2009-08-04 17:45:59.000000000 -0500 +@@ -1,16 +1,17 @@ ++#include + #include "taia.h" +-#include "env.h" + #include "byte.h" + #include "str.h" + #include "openreadclose.h" + #include "dns.h" ++#include "env.h" + + static stralloc data = {0}; + + static int init(stralloc *rules) + { + char host[256]; +- char *x; ++ const char *x; + int i; + int j; + int k; +diff -uNr ucspi-tcp-0.88.orig/dns_resolve.c ucspi-tcp-0.88/dns_resolve.c +--- ucspi-tcp-0.88.orig/dns_resolve.c 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/dns_resolve.c 2009-08-04 17:45:59.000000000 -0500 +@@ -2,19 +2,20 @@ + #include "taia.h" + #include "byte.h" + #include "dns.h" ++#include "ip6.h" + + struct dns_transmit dns_resolve_tx = {0}; + +-int dns_resolve(char *q,char qtype[2]) ++int dns_resolve(const char *q,const char qtype[2]) + { + struct taia stamp; + struct taia deadline; +- char servers[64]; ++ char servers[256]; + iopause_fd x[1]; + int r; + + if (dns_resolvconfip(servers) == -1) return -1; +- if (dns_transmit_start(&dns_resolve_tx,servers,1,q,qtype,"\0\0\0\0") == -1) return -1; ++ if (dns_transmit_start(&dns_resolve_tx,servers,1,q,qtype,V6any) == -1) return -1; + + for (;;) { + taia_now(&stamp); +diff -uNr ucspi-tcp-0.88.orig/dns_sortip6.c ucspi-tcp-0.88/dns_sortip6.c +--- ucspi-tcp-0.88.orig/dns_sortip6.c 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/dns_sortip6.c 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,20 @@ ++#include "byte.h" ++#include "dns.h" ++ ++/* XXX: sort servers by configurable notion of closeness? */ ++/* XXX: pay attention to competence of each server? */ ++ ++void dns_sortip6(char *s,unsigned int n) ++{ ++ unsigned int i; ++ char tmp[16]; ++ ++ n >>= 4; ++ while (n > 1) { ++ i = dns_random(n); ++ --n; ++ byte_copy(tmp,16,s + (i << 4)); ++ byte_copy(s + (i << 4),16,s + (n << 4)); ++ byte_copy(s + (n << 4),16,tmp); ++ } ++} +diff -uNr ucspi-tcp-0.88.orig/dns_transmit.c ucspi-tcp-0.88/dns_transmit.c +--- ucspi-tcp-0.88.orig/dns_transmit.c 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/dns_transmit.c 2009-08-04 17:45:59.000000000 -0500 +@@ -1,12 +1,15 @@ ++#include ++#include ++#include ++#include + #include "socket.h" +-#include "alloc.h" +-#include "error.h" ++#include + #include "byte.h" +-#include "readwrite.h" + #include "uint16.h" + #include "dns.h" ++#include "ip6.h" + +-static int serverwantstcp(char *buf,unsigned int len) ++static int serverwantstcp(const char *buf,unsigned int len) + { + char out[12]; + +@@ -15,7 +18,7 @@ + return 0; + } + +-static int serverfailed(char *buf,unsigned int len) ++static int serverfailed(const char *buf,unsigned int len) + { + char out[12]; + unsigned int rcode; +@@ -23,11 +26,11 @@ + if (!dns_packet_copy(buf,len,0,out,12)) return 1; + rcode = out[3]; + rcode &= 15; +- if (rcode && (rcode != 3)) { errno = error_again; return 1; } ++ if (rcode && (rcode != 3)) { errno = EAGAIN; return 1; } + return 0; + } + +-static int irrelevant(struct dns_transmit *d,char *buf,unsigned int len) ++static int irrelevant(const struct dns_transmit *d,const char *buf,unsigned int len) + { + char out[12]; + char *dn; +@@ -40,8 +43,8 @@ + + dn = 0; + pos = dns_packet_getname(buf,len,pos,&dn); if (!pos) return 1; +- if (!dns_domain_equal(dn,d->query + 14)) { alloc_free(dn); return 1; } +- alloc_free(dn); ++ if (!dns_domain_equal(dn,d->query + 14)) { free(dn); return 1; } ++ free(dn); + + pos = dns_packet_copy(buf,len,pos,out,4); if (!pos) return 1; + if (byte_diff(out,2,d->qtype)) return 1; +@@ -53,14 +56,14 @@ + static void packetfree(struct dns_transmit *d) + { + if (!d->packet) return; +- alloc_free(d->packet); ++ free(d->packet); + d->packet = 0; + } + + static void queryfree(struct dns_transmit *d) + { + if (!d->query) return; +- alloc_free(d->query); ++ free(d->query); + d->query = 0; + } + +@@ -83,9 +86,9 @@ + int j; + + for (j = 0;j < 10;++j) +- if (socket_bind4(d->s1 - 1,d->localip,1025 + dns_random(64510)) == 0) ++ if (socket_bind6(d->s1 - 1,d->localip,1025 + dns_random(64510),d->scope_id) == 0) + return 0; +- if (socket_bind4(d->s1 - 1,d->localip,0) == 0) ++ if (socket_bind6(d->s1 - 1,d->localip,0,d->scope_id) == 0) + return 0; + return -1; + } +@@ -94,22 +97,22 @@ + + static int thisudp(struct dns_transmit *d) + { +- char *ip; ++ const char *ip; + + socketfree(d); + + while (d->udploop < 4) { + for (;d->curserver < 16;++d->curserver) { +- ip = d->servers + 4 * d->curserver; +- if (byte_diff(ip,4,"\0\0\0\0")) { ++ ip = d->servers + 16 * d->curserver; ++ if (byte_diff(ip,16,V6any)) { + d->query[2] = dns_random(256); + d->query[3] = dns_random(256); + +- d->s1 = 1 + socket_udp(); ++ d->s1 = 1 + socket_udp6(); + if (!d->s1) { dns_transmit_free(d); return -1; } + if (randombind(d) == -1) { dns_transmit_free(d); return -1; } + +- if (socket_connect4(d->s1 - 1,ip,53) == 0) ++ if (socket_connect6(d->s1 - 1,ip,53,d->scope_id) == 0) + if (send(d->s1 - 1,d->query + 2,d->querylen - 2,0) == d->querylen - 2) { + struct taia now; + taia_now(&now); +@@ -145,29 +148,29 @@ + static int thistcp(struct dns_transmit *d) + { + struct taia now; +- char *ip; ++ const char *ip; + + socketfree(d); + packetfree(d); + + for (;d->curserver < 16;++d->curserver) { +- ip = d->servers + 4 * d->curserver; +- if (byte_diff(ip,4,"\0\0\0\0")) { ++ ip = d->servers + 16 * d->curserver; ++ if (byte_diff(ip,16,V6any)) { + d->query[2] = dns_random(256); + d->query[3] = dns_random(256); + +- d->s1 = 1 + socket_tcp(); ++ d->s1 = 1 + socket_tcp6(); + if (!d->s1) { dns_transmit_free(d); return -1; } + if (randombind(d) == -1) { dns_transmit_free(d); return -1; } + + taia_now(&now); + taia_uint(&d->deadline,10); + taia_add(&d->deadline,&d->deadline,&now); +- if (socket_connect4(d->s1 - 1,ip,53) == 0) { ++ if (socket_connect6(d->s1 - 1,ip,53,d->scope_id) == 0) { + d->tcpstate = 2; + return 0; + } +- if ((errno == error_inprogress) || (errno == error_wouldblock)) { ++ if ((errno == EINPROGRESS) || (errno == EWOULDBLOCK)) { + d->tcpstate = 1; + return 0; + } +@@ -191,16 +194,16 @@ + return thistcp(d); + } + +-int dns_transmit_start(struct dns_transmit *d,char servers[64],int flagrecursive,char *q,char qtype[2],char localip[4]) ++int dns_transmit_start(struct dns_transmit *d,const char servers[256],int flagrecursive,const char *q,const char qtype[2],const char localip[16]) + { + unsigned int len; + + dns_transmit_free(d); +- errno = error_io; ++ errno = EIO; + + len = dns_domain_length(q); + d->querylen = len + 18; +- d->query = alloc(d->querylen); ++ d->query = malloc(d->querylen); + if (!d->query) return -1; + + uint16_pack_big(d->query,len + 16); +@@ -211,7 +214,7 @@ + + byte_copy(d->qtype,2,qtype); + d->servers = servers; +- byte_copy(d->localip,4,localip); ++ byte_copy(d->localip,16,localip); + + d->udploop = flagrecursive ? 1 : 0; + +@@ -236,19 +239,19 @@ + *deadline = d->deadline; + } + +-int dns_transmit_get(struct dns_transmit *d,iopause_fd *x,struct taia *when) ++int dns_transmit_get(struct dns_transmit *d,const iopause_fd *x,const struct taia *when) + { + char udpbuf[513]; + unsigned char ch; + int r; + int fd; + +- errno = error_io; ++ errno = EIO; + fd = d->s1 - 1; + + if (!x->revents) { + if (taia_less(when,&d->deadline)) return 0; +- errno = error_timeout; ++ errno = ETIMEDOUT; + if (d->tcpstate == 0) return nextudp(d); + return nexttcp(d); + } +@@ -260,7 +263,7 @@ + */ + r = recv(fd,udpbuf,sizeof udpbuf,0); + if (r <= 0) { +- if (d->udploop == 2) return 0; ++ if (errno == ECONNREFUSED) if (d->udploop == 2) return 0; + return nextudp(d); + } + if (r + 1 > sizeof udpbuf) return 0; +@@ -274,7 +277,7 @@ + socketfree(d); + + d->packetlen = r; +- d->packet = alloc(d->packetlen); ++ d->packet = malloc(d->packetlen); + if (!d->packet) { dns_transmit_free(d); return -1; } + byte_copy(d->packet,d->packetlen,udpbuf); + queryfree(d); +@@ -334,7 +337,7 @@ + d->packetlen += ch; + d->tcpstate = 5; + d->pos = 0; +- d->packet = alloc(d->packetlen); ++ d->packet = malloc(d->packetlen); + if (!d->packet) { dns_transmit_free(d); return -1; } + return 0; + } +diff -uNr ucspi-tcp-0.88.orig/dns_txt.c ucspi-tcp-0.88/dns_txt.c +--- ucspi-tcp-0.88.orig/dns_txt.c 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/dns_txt.c 2009-08-04 17:45:59.000000000 -0500 +@@ -3,7 +3,7 @@ + #include "byte.h" + #include "dns.h" + +-int dns_txt_packet(stralloc *out,char *buf,unsigned int len) ++int dns_txt_packet(stralloc *out,const char *buf,unsigned int len) + { + unsigned int pos; + char header[12]; +@@ -48,7 +48,7 @@ + + static char *q = 0; + +-int dns_txt(stralloc *out,stralloc *fqdn) ++int dns_txt(stralloc *out,const stralloc *fqdn) + { + if (!dns_domain_fromdot(&q,fqdn->s,fqdn->len)) return -1; + if (dns_resolve(q,DNS_T_TXT) == -1) return -1; +diff -uNr ucspi-tcp-0.88.orig/error.h ucspi-tcp-0.88/error.h +--- ucspi-tcp-0.88.orig/error.h 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/error.h 2009-08-04 17:45:59.000000000 -0500 +@@ -1,7 +1,7 @@ + #ifndef ERROR_H + #define ERROR_H + +-extern int errno; ++#include + + extern int error_intr; + extern int error_nomem; +diff -uNr ucspi-tcp-0.88.orig/finger@.1 ucspi-tcp-0.88/finger@.1 +--- ucspi-tcp-0.88.orig/finger@.1 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/finger@.1 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,45 @@ ++.TH finger@ 1 ++.SH NAME ++finger@ \- get user information from a host ++.SH SYNTAX ++.B finger@ ++[ ++.I host ++[ ++.I user ++] ++] ++.SH DESCRIPTION ++.B finger@ ++connects to TCP port 79 (Finger) on ++.IR host , ++sends ++.I user ++(with an extra CR) ++to ++.IR host , ++and prints any data it receives. ++It removes CR and converts unprintable characters to a visible format. ++Some computers respond to port 79 with information about ++.IR user . ++ ++If ++.I user ++is not supplied, ++.B finger@ ++sends a blank line to ++.IR host . ++Some computers respond with information about ++all the users who are logged in. ++ ++If ++.I host ++is not supplied, ++.B finger@ ++connects to the local host. ++.SH "SEE ALSO" ++addcr(1), ++cat(1), ++delcr(1), ++finger(1), ++tcpclient(1) +diff -uNr ucspi-tcp-0.88.orig/fixcr.1 ucspi-tcp-0.88/fixcr.1 +--- ucspi-tcp-0.88.orig/fixcr.1 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/fixcr.1 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,11 @@ ++.TH fixcr 1 ++.SH NAME ++fixcr \- make sure that there is a CR before each LF ++.SH SYNOPSIS ++.B fixcr ++.SH DESCRIPTION ++.B fixcr ++inserts CR at the end of each line of input where a CR is not already present. ++It does not insert CR at the end of a partial final line. ++.SH "SEE ALSO" ++addcr(1) +diff -uNr ucspi-tcp-0.88.orig/fmt_xlong.c ucspi-tcp-0.88/fmt_xlong.c +--- ucspi-tcp-0.88.orig/fmt_xlong.c 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/fmt_xlong.c 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,22 @@ ++#include "fmt.h" ++ ++char tohex(char num) { ++ if (num<10) ++ return num+'0'; ++ else if (num<16) ++ return num-10+'a'; ++ else ++ return -1; ++} ++ ++unsigned int fmt_xlong(register char *s,register unsigned long u) ++{ ++ register unsigned int len; register unsigned long q; ++ len = 1; q = u; ++ while (q > 15) { ++len; q /= 16; } ++ if (s) { ++ s += len; ++ do { *--s = tohex(u % 16); u /= 16; } while(u); /* handles u == 0 */ ++ } ++ return len; ++} +diff -uNr ucspi-tcp-0.88.orig/haveip6.h1 ucspi-tcp-0.88/haveip6.h1 +--- ucspi-tcp-0.88.orig/haveip6.h1 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/haveip6.h1 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1 @@ ++ +diff -uNr ucspi-tcp-0.88.orig/haveip6.h2 ucspi-tcp-0.88/haveip6.h2 +--- ucspi-tcp-0.88.orig/haveip6.h2 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/haveip6.h2 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1 @@ ++#define LIBC_HAS_IP6 1 +diff -uNr ucspi-tcp-0.88.orig/hier.c ucspi-tcp-0.88/hier.c +--- ucspi-tcp-0.88.orig/hier.c 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/hier.c 2009-08-04 17:45:59.000000000 -0500 +@@ -4,6 +4,9 @@ + { + h(auto_home,-1,-1,02755); + d(auto_home,"bin",-1,-1,02755); ++ d(auto_home,"man",-1,-1,02755); ++ d(auto_home,"man/man1",-1,-1,02755); ++ d(auto_home,"man/man5",-1,-1,02755); + + c(auto_home,"bin","tcpserver",-1,-1,0755); + c(auto_home,"bin","tcprules",-1,-1,0755); +@@ -22,4 +25,20 @@ + c(auto_home,"bin","delcr",-1,-1,0755); + c(auto_home,"bin","fixcrio",-1,-1,0755); + c(auto_home,"bin","rblsmtpd",-1,-1,0755); ++ ++ c(auto_home,"man/man1","tcpclient.1",-1,-1,0644); ++ c(auto_home,"man/man1","tcpserver.1",-1,-1,0644); ++ c(auto_home,"man/man1","tcprules.1",-1,-1,0644); ++ c(auto_home,"man/man1","tcprulescheck.1",-1,-1,0644); ++ c(auto_home,"man/man1","fixcr.1",-1,-1,0644); ++ c(auto_home,"man/man1","addcr.1",-1,-1,0644); ++ c(auto_home,"man/man1","delcr.1",-1,-1,0644); ++ c(auto_home,"man/man1","who@.1",-1,-1,0644); ++ c(auto_home,"man/man1","date@.1",-1,-1,0644); ++ c(auto_home,"man/man1","finger@.1",-1,-1,0644); ++ c(auto_home,"man/man1","http@.1",-1,-1,0644); ++ c(auto_home,"man/man1","mconnect.1",-1,-1,0644); ++ c(auto_home,"man/man1","argv0.1",-1,-1,0644); ++ c(auto_home,"man/man1","recordio.1",-1,-1,0644); ++ c(auto_home,"man/man5","tcp-environ.5",-1,-1,0644); + } +diff -uNr ucspi-tcp-0.88.orig/http@.1 ucspi-tcp-0.88/http@.1 +--- ucspi-tcp-0.88.orig/http@.1 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/http@.1 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,52 @@ ++.TH http@ 1 ++.SH NAME ++http@ \- get a web page from a host through HTTP ++.SH SYNTAX ++.B http@ ++[ ++.I host ++[ ++.I page ++[ ++.I port ++] ++] ++] ++.SH DESCRIPTION ++.B http@ ++connects to ++.I port ++on ++.IR host , ++sends ++.B GET /\fIpage ++(with an extra CR) ++to ++.IR host , ++and prints any data it receives, ++removing CR from the end of each line. ++ ++If ++.I port ++is not supplied, ++.B http@ ++uses port 80 (HTTP). ++ ++If ++.I page ++is not supplied, ++.B http@ ++sends ++.B GET / ++to ++.IR host . ++ ++If ++.I host ++is not supplied, ++.B http@ ++connects to the local host. ++.SH "SEE ALSO" ++addcr(1), ++delcr(1), ++tcpclient(1) +diff -uNr ucspi-tcp-0.88.orig/ip4.h ucspi-tcp-0.88/ip4.h +--- ucspi-tcp-0.88.orig/ip4.h 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/ip4.h 2009-08-04 17:45:59.000000000 -0500 +@@ -6,4 +6,6 @@ + + #define IP4_FMT 20 + ++extern const char ip4loopback[4]; /* = {127,0,0,1}; */ ++ + #endif +diff -uNr ucspi-tcp-0.88.orig/ip6.h ucspi-tcp-0.88/ip6.h +--- ucspi-tcp-0.88.orig/ip6.h 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/ip6.h 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,28 @@ ++#ifndef IP6_H ++#define IP6_H ++ ++#include "byte.h" ++ ++extern unsigned int scan_ip6(const char *src,char *ip); ++extern unsigned int fmt_ip6(char *dest,const char *ip); ++ ++extern unsigned int scan_ip6_flat(const char *src,char *); ++extern unsigned int fmt_ip6_flat(char *dest,const char *); ++ ++/* ++ ip6 address syntax: (h = hex digit), no leading '0' required ++ 1. hhhh:hhhh:hhhh:hhhh:hhhh:hhhh:hhhh:hhhh ++ 2. any number of 0000 may be abbreviated as "::", but only once ++ flat ip6 address syntax: ++ hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh ++ */ ++ ++#define IP6_FMT 40 ++ ++extern const unsigned char V4mappedprefix[12]; /*={0,0,0,0,0,0,0,0,0,0,0xff,0xff}; */ ++extern const unsigned char V6loopback[16]; /*={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}; */ ++extern const unsigned char V6any[16]; /*={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; */ ++ ++#define ip6_isv4mapped(ip) (byte_equal(ip,12,V4mappedprefix)) ++ ++#endif +diff -uNr ucspi-tcp-0.88.orig/ip6_fmt.c ucspi-tcp-0.88/ip6_fmt.c +--- ucspi-tcp-0.88.orig/ip6_fmt.c 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/ip6_fmt.c 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,64 @@ ++#include "fmt.h" ++#include "byte.h" ++#include "ip4.h" ++#include "ip6.h" ++ ++unsigned int ip6_fmt(char *s,char ip[16]) ++{ ++ unsigned long len,temp, k, pos0=0,len0=0, pos1=0, compr=0; ++ ++ for (k=0; k<16; k+=2) { ++ if (ip[k]==0 && ip[k+1]==0) { ++ if (!compr) { ++ compr=1; ++ pos1=k; ++ } ++ if (k==14) { k=16; goto last; } ++ } else if (compr) { ++ last: ++ if ((temp=k-pos1) > len0) { ++ len0=temp; ++ pos0=pos1; ++ } ++ compr=0; ++ } ++ } ++ ++ for (len=0,k=0; k<16; k+=2) { ++ if (k==12 && ip6_isv4mapped(ip)) { ++ len += ip4_fmt(s,ip+12); ++ break; ++ } ++ if (pos0==k && len0) { ++ if (k==0) { ++len; if (s) *s++ = ':'; } ++ ++len; if (s) *s++ = ':'; ++ k += len0-2; ++ continue; ++ } ++ temp = ((unsigned long) (unsigned char) ip[k] << 8) + ++ (unsigned long) (unsigned char) ip[k+1]; ++ temp = fmt_xlong(s,temp); len += temp; if (s) s += temp; ++ if (k<14) { ++len; if (s) *s++ = ':'; } ++ } ++ ++ return len; ++} ++ ++static char tohex(char num) { ++ if (num<10) ++ return num+'0'; ++ else if (num<16) ++ return num-10+'a'; ++ else ++ return -1; ++} ++ ++unsigned int ip6_fmt_flat(char *s,char ip[16]) ++{ ++ int i; ++ for (i=0; i<16; i++) { ++ *s++=tohex((unsigned char)ip[i] >> 4); ++ *s++=tohex((unsigned char)ip[i] & 15); ++ } ++ return 32; ++} +diff -uNr ucspi-tcp-0.88.orig/mconnect.1 ucspi-tcp-0.88/mconnect.1 +--- ucspi-tcp-0.88.orig/mconnect.1 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/mconnect.1 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,36 @@ ++.TH mconnect 1 ++.SH NAME ++mconnect \- connect to the SMTP server on a host ++.SH SYNTAX ++.B mconnect ++[ ++.I host ++[ ++.I port ++] ++] ++.SH DESCRIPTION ++.B mconnect ++connects to ++.I port ++on ++.IR host . ++It sends its input to ++.IR host , ++adding a CR to each line. ++Meanwhile it prints anything it receives from ++.IR host . ++ ++If ++.I port ++is not supplied, ++.B mconnect ++uses port 25 (SMTP). ++ ++If ++.I host ++is not supplied, ++.B mconnect ++connects to the local host. ++.SH "SEE ALSO" ++tcpclient(1) +diff -uNr ucspi-tcp-0.88.orig/old-rules.c ucspi-tcp-0.88/old-rules.c +--- ucspi-tcp-0.88.orig/old-rules.c 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/old-rules.c 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,101 @@ ++#include "alloc.h" ++#include "stralloc.h" ++#include "open.h" ++#include "cdb.h" ++#include "rules.h" ++ ++stralloc rules_name = {0}; ++ ++static struct cdb c; ++ ++static int dorule(void (*callback)(char *,unsigned int)) ++{ ++ char *data; ++ unsigned int datalen; ++ ++ switch(cdb_find(&c,rules_name.s,rules_name.len)) { ++ case -1: return -1; ++ case 0: return 0; ++ } ++ ++ datalen = cdb_datalen(&c); ++ data = alloc(datalen); ++ if (!data) return -1; ++ if (cdb_read(&c,data,datalen,cdb_datapos(&c)) == -1) { ++ alloc_free(data); ++ return -1; ++ } ++ ++ callback(data,datalen); ++ alloc_free(data); ++ return 1; ++} ++ ++static int doit(void (*callback)(char *,unsigned int),char *ip,char *host,char *info) ++{ ++ int r; ++ ++ if (info) { ++ if (!stralloc_copys(&rules_name,info)) return -1; ++ if (!stralloc_cats(&rules_name,"@")) return -1; ++ if (!stralloc_cats(&rules_name,ip)) return -1; ++ r = dorule(callback); ++ if (r) return r; ++ ++ if (host) { ++ if (!stralloc_copys(&rules_name,info)) return -1; ++ if (!stralloc_cats(&rules_name,"@=")) return -1; ++ if (!stralloc_cats(&rules_name,host)) return -1; ++ r = dorule(callback); ++ if (r) return r; ++ } ++ } ++ ++ if (!stralloc_copys(&rules_name,ip)) return -1; ++ r = dorule(callback); ++ if (r) return r; ++ ++ if (host) { ++ if (!stralloc_copys(&rules_name,"=")) return -1; ++ if (!stralloc_cats(&rules_name,host)) return -1; ++ r = dorule(callback); ++ if (r) return r; ++ } ++ ++ if (!stralloc_copys(&rules_name,ip)) return -1; ++ while (rules_name.len > 0) { ++ if (ip[rules_name.len - 1] == '.' || ++ (ip[rules_name.len-1]==':' && rules_name.len>1)) { ++ r = dorule(callback); ++ if (r) return r; ++ } ++ --rules_name.len; ++ } ++ ++ if (host) { ++ while (*host) { ++ if (*host == '.') { ++ if (!stralloc_copys(&rules_name,"=")) return -1; ++ if (!stralloc_cats(&rules_name,host)) return -1; ++ r = dorule(callback); ++ if (r) return r; ++ } ++ ++host; ++ } ++ if (!stralloc_copys(&rules_name,"=")) return -1; ++ r = dorule(callback); ++ if (r) return r; ++ } ++ ++ rules_name.len = 0; ++ return dorule(callback); ++} ++ ++int rules(void (*callback)(char *,unsigned int),int fd,char *ip,char *host,char *info) ++{ ++ int r; ++ cdb_init(&c,fd); ++ r = doit(callback,ip,host,info); ++ cdb_free(&c); ++ return r; ++} +diff -uNr ucspi-tcp-0.88.orig/pathexec.h ucspi-tcp-0.88/pathexec.h +--- ucspi-tcp-0.88.orig/pathexec.h 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/pathexec.h 2009-08-04 17:45:59.000000000 -0500 +@@ -2,7 +2,7 @@ + #define PATHEXEC_H + + extern void pathexec_run(char *,char **,char **); +-extern int pathexec_env(char *,char *); ++extern int pathexec_env(const char *,const char *); + extern void pathexec(char **); + + #endif +diff -uNr ucspi-tcp-0.88.orig/pathexec_env.c ucspi-tcp-0.88/pathexec_env.c +--- ucspi-tcp-0.88.orig/pathexec_env.c 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/pathexec_env.c 2009-08-04 17:45:59.000000000 -0500 +@@ -8,7 +8,7 @@ + static stralloc plus; + static stralloc tmp; + +-int pathexec_env(char *s,char *t) ++int pathexec_env(const char *s,const char *t) + { + if (!s) return 1; + if (!stralloc_copys(&tmp,s)) return 0; +@@ -22,7 +22,6 @@ + + void pathexec(char **argv) + { +- char *path; + char **e; + unsigned int elen; + unsigned int i; +diff -uNr ucspi-tcp-0.88.orig/rblsmtpd.c ucspi-tcp-0.88/rblsmtpd.c +--- ucspi-tcp-0.88.orig/rblsmtpd.c 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/rblsmtpd.c 2009-08-04 17:51:17.000000000 -0500 +@@ -25,26 +25,58 @@ + strerr_die1x(100,"rblsmtpd: usage: rblsmtpd [ -b ] [ -R ] [ -t timeout ] [ -r base ] [ -a base ] smtpd [ arg ... ]"); + } + ++char *tcp_proto; + char *ip_env; + static stralloc ip_reverse; + ++static inline char tohex(char c) { ++ return c>=10?c-10+'a':c+'0'; ++} ++ + void ip_init(void) + { + unsigned int i; + unsigned int j; ++ unsigned char remoteip[16]; ++ char hexval; + ++ tcp_proto = env_get("PROTO"); ++ if (!tcp_proto) tcp_proto = ""; + ip_env = env_get("TCPREMOTEIP"); + if (!ip_env) ip_env = ""; + + if (!stralloc_copys(&ip_reverse,"")) nomem(); + + i = str_len(ip_env); +- while (i) { +- for (j = i;j > 0;--j) if (ip_env[j - 1] == '.') break; +- if (!stralloc_catb(&ip_reverse,ip_env + j,i - j)) nomem(); +- if (!stralloc_cats(&ip_reverse,".")) nomem(); +- if (!j) break; +- i = j - 1; ++ if (str_diff(tcp_proto, "TCP6") != 0) ++ { ++ // IPv4 ++ while (i) { ++ for (j = i;j > 0;--j) if (ip_env[j - 1] == '.') break; ++ if (!stralloc_catb(&ip_reverse,ip_env + j,i - j)) nomem(); ++ if (!stralloc_cats(&ip_reverse,".")) nomem(); ++ if (!j) break; ++ i = j - 1; ++ } ++ } ++ else ++ { ++ // IPv6 ++ if ((i=scan_ip6(ip_env, remoteip))==0) ++ return; ++ ++ for (j=16; j>0; j--) ++ { ++ hexval=tohex(remoteip[j-1] & 15); ++ if(!stralloc_catb(&ip_reverse, &hexval, 1)) nomem(); ++ if(!stralloc_cats(&ip_reverse, ".")) nomem(); ++ ++ hexval=tohex(remoteip[j-1] >> 4); ++ if(!stralloc_catb(&ip_reverse, &hexval, 1)) nomem(); ++ if(!stralloc_cats(&ip_reverse, ".")) nomem(); ++ } ++ ++ if(!stralloc_cats(&ip_reverse, "ipv6.")) nomem(); + } + } + +@@ -190,7 +222,7 @@ + argv += optind; + if (!*argv) usage(); + +- if (flagwantdefaultrbl) rbl("rbl.maps.vix.com"); ++ if (flagwantdefaultrbl) rbl("zen.spamhaus.org"); + if (decision >= 2) rblsmtpd(); + + pathexec_run(*argv,argv,envp); +diff -uNr ucspi-tcp-0.88.orig/recordio.1 ucspi-tcp-0.88/recordio.1 +--- ucspi-tcp-0.88.orig/recordio.1 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/recordio.1 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,75 @@ ++.TH recordio 1 ++.SH NAME ++recordio \- record the input and output of a program ++.SH SYNTAX ++.B recordio ++.I program ++[ ++.I arg ... ++] ++.SH DESCRIPTION ++.B recordio ++runs ++.I program ++with the given arguments. ++It prints lines to stderr ++showing the input and output of ++.IR program . ++ ++At the beginning of each line on stderr, ++.B recordio ++inserts the ++.I program ++process ID, ++along with ++.B < ++for input or ++.B > ++for output. ++At the end of each line it inserts a space, a plus sign, or [EOF]; ++a space indicates that there was a newline in the input or output, ++and [EOF] indicates the end of input or output. ++ ++.B recordio ++prints every packet of input and output immediately. ++It does not attempt to combine packets into coherent stderr lines. ++For example, ++ ++.EX ++ recordio sh -c 'cat /dev/fd/8 2>&1' > /dev/null ++.EE ++ ++could produce ++ ++.EX ++ 5135 > cat: /dev/fd/8: Bad file descriptor ++.br ++ 5135 > [EOF] ++.EE ++ ++or ++ ++.EX ++ 5135 > cat: + ++.br ++ 5135 > /dev/fd/8+ ++.br ++ 5135 > : + ++.br ++ 5135 > Bad file descriptor ++.br ++ 5135 > [EOF] ++.EE ++ ++.B recordio ++uses several lines for long packets ++to guarantee that each line is printed atomically to stderr. ++ ++.B recordio ++runs as a child of ++.IR program . ++It exits when it sees the end of ++.IR program 's ++output. ++.SH "SEE ALSO" ++tcpserver(1) +diff -uNr ucspi-tcp-0.88.orig/remoteinfo.h ucspi-tcp-0.88/remoteinfo.h +--- ucspi-tcp-0.88.orig/remoteinfo.h 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/remoteinfo.h 2009-08-04 17:45:59.000000000 -0500 +@@ -5,5 +5,6 @@ + #include "uint16.h" + + extern int remoteinfo(stralloc *,char *,uint16,char *,uint16,unsigned int); ++extern int remoteinfo6(stralloc *,char *,uint16,char *,uint16,unsigned int,uint32); + + #endif +diff -uNr ucspi-tcp-0.88.orig/remoteinfo6.c ucspi-tcp-0.88/remoteinfo6.c +--- ucspi-tcp-0.88.orig/remoteinfo6.c 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/remoteinfo6.c 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,98 @@ ++#include "fmt.h" ++#include "buffer.h" ++#include "socket.h" ++#include "error.h" ++#include "iopause.h" ++#include "timeoutconn.h" ++#include "remoteinfo.h" ++ ++static struct taia now; ++static struct taia deadline; ++ ++static int mywrite(int fd,char *buf,int len) ++{ ++ iopause_fd x; ++ ++ x.fd = fd; ++ x.events = IOPAUSE_WRITE; ++ for (;;) { ++ taia_now(&now); ++ iopause(&x,1,&deadline,&now); ++ if (x.revents) break; ++ if (taia_less(&deadline,&now)) { ++ errno = error_timeout; ++ return -1; ++ } ++ } ++ return write(fd,buf,len); ++} ++ ++static int myread(int fd,char *buf,int len) ++{ ++ iopause_fd x; ++ ++ x.fd = fd; ++ x.events = IOPAUSE_READ; ++ for (;;) { ++ taia_now(&now); ++ iopause(&x,1,&deadline,&now); ++ if (x.revents) break; ++ if (taia_less(&deadline,&now)) { ++ errno = error_timeout; ++ return -1; ++ } ++ } ++ return read(fd,buf,len); ++} ++ ++static int doit(stralloc *out,int s,char ipremote[16],uint16 portremote,char iplocal[16],uint16 portlocal,unsigned int timeout,uint32 netif) ++{ ++ buffer b; ++ char bspace[128]; ++ char strnum[FMT_ULONG]; ++ int numcolons; ++ char ch; ++ ++ if (socket_bind6(s,iplocal,0,netif) == -1) return -1; ++ if (timeoutconn6(s,ipremote,113,timeout,netif) == -1) return -1; ++ ++ buffer_init(&b,mywrite,s,bspace,sizeof bspace); ++ buffer_put(&b,strnum,fmt_ulong(strnum,portremote)); ++ buffer_put(&b," , ",3); ++ buffer_put(&b,strnum,fmt_ulong(strnum,portlocal)); ++ buffer_put(&b,"\r\n",2); ++ if (buffer_flush(&b) == -1) return -1; ++ ++ buffer_init(&b,myread,s,bspace,sizeof bspace); ++ numcolons = 0; ++ for (;;) { ++ if (buffer_get(&b,&ch,1) != 1) return -1; ++ if ((ch == ' ') || (ch == '\t') || (ch == '\r')) continue; ++ if (ch == '\n') return 0; ++ if (numcolons < 3) { ++ if (ch == ':') ++numcolons; ++ } ++ else { ++ if (!stralloc_append(out,&ch)) return -1; ++ if (out->len > 256) return 0; ++ } ++ } ++} ++ ++int remoteinfo6(stralloc *out,char ipremote[16],uint16 portremote,char iplocal[16],uint16 portlocal,unsigned int timeout,uint32 netif) ++{ ++ int s; ++ int r; ++ ++ if (!stralloc_copys(out,"")) return -1; ++ ++ taia_now(&now); ++ taia_uint(&deadline,timeout); ++ taia_add(&deadline,&now,&deadline); ++ ++ s = socket_tcp6(); ++ if (s == -1) return -1; ++ r = doit(out,s,ipremote,portremote,iplocal,portlocal,timeout,netif); ++ close(s); ++ return r; ++} +diff -uNr ucspi-tcp-0.88.orig/rules.c ucspi-tcp-0.88/rules.c +--- ucspi-tcp-0.88.orig/rules.c 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/rules.c 2009-08-04 17:45:59.000000000 -0500 +@@ -64,7 +64,7 @@ + + if (!stralloc_copys(&rules_name,ip)) return -1; + while (rules_name.len > 0) { +- if (ip[rules_name.len - 1] == '.') { ++ if (ip[rules_name.len - 1] == '.' || ip[rules_name.len - 1] == ':') { + r = dorule(callback); + if (r) return r; + } +diff -uNr ucspi-tcp-0.88.orig/scan_ip6.c ucspi-tcp-0.88/scan_ip6.c +--- ucspi-tcp-0.88.orig/scan_ip6.c 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/scan_ip6.c 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,87 @@ ++#include "scan.h" ++#include "ip4.h" ++#include "ip6.h" ++ ++/* ++ * IPv6 addresses are really ugly to parse. ++ * Syntax: (h = hex digit) ++ * 1. hhhh:hhhh:hhhh:hhhh:hhhh:hhhh:hhhh:hhhh ++ * 2. any number of 0000 may be abbreviated as "::", but only once ++ * 3. The last two words may be written as IPv4 address ++ */ ++ ++unsigned int scan_ip6(const char *s,char ip[16]) ++{ ++ unsigned int i; ++ unsigned int len=0; ++ unsigned long u; ++ ++ char suffix[16]; ++ int prefixlen=0; ++ int suffixlen=0; ++ ++ if ((i=ip4_scan((char*)s,ip+12))) { ++ for (len=0; len<12; ++len) ip[len]=V4mappedprefix[len]; ++ return i; ++ } ++ for (i=0; i<16; i++) ip[i]=0; ++ for (;;) { ++ if (*s == ':') { ++ len++; ++ if (s[1] == ':') { /* Found "::", skip to part 2 */ ++ s+=2; ++ len++; ++ break; ++ } ++ s++; ++ } ++ i = scan_xlong((char*)s,&u); ++ if (!i) return 0; ++ if (prefixlen==12 && s[i]=='.') { ++ /* the last 4 bytes may be written as IPv4 address */ ++ i=ip4_scan((char*)s,ip+12); ++ if (i) ++ return i+len; ++ else ++ return 0; ++ } ++ ip[prefixlen++] = (u >> 8); ++ ip[prefixlen++] = (u & 255); ++ s += i; len += i; ++ if (prefixlen==16) ++ return len; ++ } ++ ++/* part 2, after "::" */ ++ for (;;) { ++ if (*s == ':') { ++ if (suffixlen==0) ++ break; ++ s++; ++ len++; ++ } else if (suffixlen!=0) ++ break; ++ i = scan_xlong((char*)s,&u); ++ if (!i) { ++ len--; ++ break; ++ } ++ if (suffixlen+prefixlen<=12 && s[i]=='.') { ++ int j=ip4_scan((char*)s,suffix+suffixlen); ++ if (j) { ++ suffixlen+=4; ++ len+=j; ++ break; ++ } else ++ prefixlen=12-suffixlen; /* make end-of-loop test true */ ++ } ++ suffix[suffixlen++] = (u >> 8); ++ suffix[suffixlen++] = (u & 255); ++ s += i; len += i; ++ if (prefixlen+suffixlen==16) ++ break; ++ } ++ for (i=0; i='0' && c<='9') ++ return c-'0'; ++ else if (c>='A' && c<='F') ++ return c-'A'+10; ++ else if (c>='a' && c<='f') ++ return c-'a'+10; ++ return -1; ++} ++ ++unsigned int scan_xlong(char *src,unsigned long *dest) { ++ register const char *tmp=src; ++ register int l=0; ++ register unsigned char c; ++ while ((c=fromhex(*tmp))<16) { ++ l=(l<<4)+c; ++ ++tmp; ++ } ++ *dest=l; ++ return tmp-src; ++} +diff -uNr ucspi-tcp-0.88.orig/socket.h ucspi-tcp-0.88/socket.h +--- ucspi-tcp-0.88.orig/socket.h 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/socket.h 2009-08-04 17:45:59.000000000 -0500 +@@ -2,21 +2,52 @@ + #define SOCKET_H + + #include "uint16.h" ++#include "uint32.h" + + extern int socket_tcp(void); + extern int socket_udp(void); ++extern int socket_tcp6(void); ++extern int socket_udp6(void); + +-extern int socket_connect4(int,char *,uint16); ++extern int socket_connect4(int,const char *,uint16); ++extern int socket_connect6(int s,const char *ip,uint16 port,uint32 scope_id); + extern int socket_connected(int); +-extern int socket_bind4(int,char *,uint16); +-extern int socket_bind4_reuse(int,char *,uint16); ++extern int socket_bind4(int,const char *,uint16); ++extern int socket_bind4_reuse(int,const char *,uint16); ++extern int socket_bind6(int s,const char *ip,uint16 port,uint32 scope_id); ++extern int socket_bind6_reuse(int s,const char *ip,uint16 port,uint32 scope_id); + extern int socket_listen(int,int); + extern int socket_accept4(int,char *,uint16 *); ++extern int socket_accept6(int s,char *ip,uint16 *port,uint32 *scope_id); + extern int socket_recv4(int,char *,int,char *,uint16 *); +-extern int socket_send4(int,char *,int,char *,uint16); ++extern int socket_send4(int,const char *,int,const char *,uint16); ++extern int socket_recv6(int s,char *buf,unsigned int len,char *ip,uint16 *port,uint32 *scope_id); ++extern int socket_send6(int s,const char *buf,unsigned int len,const char *ip,uint16 port,uint32 scope_id); + extern int socket_local4(int,char *,uint16 *); + extern int socket_remote4(int,char *,uint16 *); ++extern int socket_local6(int s,char *ip,uint16 *port,uint32 *scope_id); ++extern int socket_remote6(int s,char *ip,uint16 *port,uint32 *scope_id); ++ ++/* enable sending udp packets to the broadcast address */ ++extern int socket_broadcast(int); ++/* join a multicast group on the given interface */ ++extern int socket_mcjoin4(int,char *,char *); ++extern int socket_mcjoin6(int,char *,int); ++/* leave a multicast group on the given interface */ ++extern int socket_mcleave4(int,char *); ++extern int socket_mcleave6(int,char *); ++/* set multicast TTL/hop count for outgoing packets */ ++extern int socket_mcttl4(int,char); ++extern int socket_mcttl6(int,char); ++/* enable multicast loopback */ ++extern int socket_mcloop4(int,char); ++extern int socket_mcloop6(int,char); ++ ++extern const char* socket_getifname(uint32 interface); ++extern uint32 socket_getifidx(const char *ifname); + + extern void socket_tryreservein(int,int); + ++extern int noipv6; ++ + #endif +diff -uNr ucspi-tcp-0.88.orig/socket_accept6.c ucspi-tcp-0.88/socket_accept6.c +--- ucspi-tcp-0.88.orig/socket_accept6.c 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/socket_accept6.c 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,44 @@ ++#include ++#include ++#include ++#include ++#include "byte.h" ++#include "socket.h" ++#include "ip6.h" ++#include "haveip6.h" ++#include "error.h" ++ ++int socket_accept6(int s,char ip[16],uint16 *port,uint32 *scope_id) ++{ ++#ifdef LIBC_HAS_IP6 ++ struct sockaddr_in6 sa; ++#else ++ struct sockaddr_in sa; ++#endif ++ unsigned int dummy = sizeof sa; ++ int fd; ++ ++ fd = accept(s,(struct sockaddr *) &sa,&dummy); ++ if (fd == -1) return -1; ++ ++#ifdef LIBC_HAS_IP6 ++ if (sa.sin6_family==AF_INET) { ++ struct sockaddr_in *sa4=(struct sockaddr_in*)&sa; ++ byte_copy(ip,12,V4mappedprefix); ++ byte_copy(ip+12,4,(char *) &sa4->sin_addr); ++ uint16_unpack_big((char *) &sa4->sin_port,port); ++ return fd; ++ } ++ byte_copy(ip,16,(char *) &sa.sin6_addr); ++ uint16_unpack_big((char *) &sa.sin6_port,port); ++ if (scope_id) *scope_id=sa.sin6_scope_id; ++ ++ return fd; ++#else ++ byte_copy(ip,12,V4mappedprefix); ++ byte_copy(ip+12,4,(char *) &sa.sin_addr); ++ uint16_unpack_big((char *) &sa.sin_port,port); ++ if (scope_id) *scope_id=0; ++ return fd; ++#endif ++} +diff -uNr ucspi-tcp-0.88.orig/socket_bind.c ucspi-tcp-0.88/socket_bind.c +--- ucspi-tcp-0.88.orig/socket_bind.c 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/socket_bind.c 2009-08-04 17:45:59.000000000 -0500 +@@ -5,7 +5,7 @@ + #include "byte.h" + #include "socket.h" + +-int socket_bind4(int s,char ip[4],uint16 port) ++int socket_bind4(int s,const char ip[4],uint16 port) + { + struct sockaddr_in sa; + +@@ -17,7 +17,7 @@ + return bind(s,(struct sockaddr *) &sa,sizeof sa); + } + +-int socket_bind4_reuse(int s,char ip[4],uint16 port) ++int socket_bind4_reuse(int s,const char ip[4],uint16 port) + { + int opt = 1; + setsockopt(s,SOL_SOCKET,SO_REUSEADDR,&opt,sizeof opt); +diff -uNr ucspi-tcp-0.88.orig/socket_bind6.c ucspi-tcp-0.88/socket_bind6.c +--- ucspi-tcp-0.88.orig/socket_bind6.c 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/socket_bind6.c 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,45 @@ ++#include ++#include ++#include ++#include ++#include "byte.h" ++#include "socket.h" ++#include "ip6.h" ++#include "haveip6.h" ++#include "error.h" ++ ++int socket_bind6(int s,const char ip[16],uint16 port,uint32 scope_id) ++{ ++#ifdef LIBC_HAS_IP6 ++ struct sockaddr_in6 sa; ++ ++ if (noipv6) { ++#endif ++ int i; ++ for (i=0; i<16; i++) ++ if (ip[i]!=0) break; ++ if (i==16 || ip6_isv4mapped(ip)) ++ return socket_bind4(s,ip+12,port); ++#ifdef LIBC_HAS_IP6 ++ } ++ byte_zero(&sa,sizeof sa); ++ sa.sin6_family = AF_INET6; ++ uint16_pack_big((char *) &sa.sin6_port,port); ++/* implicit: sa.sin6_flowinfo = 0; */ ++ byte_copy((char *) &sa.sin6_addr,16,ip); ++ sa.sin6_scope_id=scope_id; ++ ++ return bind(s,(struct sockaddr *) &sa,sizeof sa); ++#else ++ errno=error_proto; ++ return -1; ++#endif ++} ++ ++int socket_bind6_reuse(int s,const char ip[16],uint16 port,uint32 scope_id) ++{ ++ int opt = 1; ++ setsockopt(s,SOL_SOCKET,SO_REUSEADDR,&opt,sizeof opt); ++ return socket_bind6(s,ip,port,scope_id); ++} ++ +diff -uNr ucspi-tcp-0.88.orig/socket_conn.c ucspi-tcp-0.88/socket_conn.c +--- ucspi-tcp-0.88.orig/socket_conn.c 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/socket_conn.c 2009-08-04 17:45:59.000000000 -0500 +@@ -6,7 +6,7 @@ + #include "byte.h" + #include "socket.h" + +-int socket_connect4(int s,char ip[4],uint16 port) ++int socket_connect4(int s,const char ip[4],uint16 port) + { + struct sockaddr_in sa; + +diff -uNr ucspi-tcp-0.88.orig/socket_conn6.c ucspi-tcp-0.88/socket_conn6.c +--- ucspi-tcp-0.88.orig/socket_conn6.c 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/socket_conn6.c 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,38 @@ ++#include ++#include ++#include ++#include ++#include ++#include "byte.h" ++#include "socket.h" ++#include "ip6.h" ++#include "haveip6.h" ++#include "uint32.h" ++#include "ip4.h" ++ ++int socket_connect6(int s,const char ip[16],uint16 port,uint32 scope_id) ++{ ++#ifdef LIBC_HAS_IP6 ++ struct sockaddr_in6 sa; ++ ++ if (noipv6) { ++#endif ++ if (ip6_isv4mapped(ip)) ++ return socket_connect4(s,ip+12,port); ++ if (byte_equal(ip,16,V6loopback)) ++ return socket_connect4(s,ip4loopback,port); ++#ifdef LIBC_HAS_IP6 ++ } ++ byte_zero(&sa,sizeof sa); ++ sa.sin6_family = PF_INET6; ++ uint16_pack_big((char *) &sa.sin6_port,port); ++ sa.sin6_flowinfo = 0; ++ sa.sin6_scope_id = scope_id; ++ byte_copy((char *) &sa.sin6_addr,16,ip); ++ ++ return connect(s,(struct sockaddr *) &sa,sizeof sa); ++#else ++ errno=EPROTONOSUPPORT; ++ return -1; ++#endif ++} +diff -uNr ucspi-tcp-0.88.orig/socket_getifidx.c ucspi-tcp-0.88/socket_getifidx.c +--- ucspi-tcp-0.88.orig/socket_getifidx.c 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/socket_getifidx.c 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,8 @@ ++#include ++#include ++#include ++#include "socket.h" ++ ++uint32 socket_getifidx(const char* ifname) { ++ return if_nametoindex(ifname); ++} +diff -uNr ucspi-tcp-0.88.orig/socket_getifname.c ucspi-tcp-0.88/socket_getifname.c +--- ucspi-tcp-0.88.orig/socket_getifname.c 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/socket_getifname.c 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,14 @@ ++#include ++#include ++#include ++#include "socket.h" ++ ++static char ifname[IFNAMSIZ]; ++ ++const char* socket_getifname(uint32 interface) { ++ char *tmp=if_indextoname(interface,ifname); ++ if (tmp) ++ return tmp; ++ else ++ return "[unknown]"; ++} +diff -uNr ucspi-tcp-0.88.orig/socket_ip4loopback.c ucspi-tcp-0.88/socket_ip4loopback.c +--- ucspi-tcp-0.88.orig/socket_ip4loopback.c 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/socket_ip4loopback.c 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,2 @@ ++ ++const char ip4loopback[4] = {127,0,0,1}; +diff -uNr ucspi-tcp-0.88.orig/socket_local6.c ucspi-tcp-0.88/socket_local6.c +--- ucspi-tcp-0.88.orig/socket_local6.c 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/socket_local6.c 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,39 @@ ++#include ++#include ++#include ++#include ++#include "byte.h" ++#include "socket.h" ++#include "ip6.h" ++#include "haveip6.h" ++#include "error.h" ++ ++int socket_local6(int s,char ip[16],uint16 *port,uint32 *scope_id) ++{ ++#ifdef LIBC_HAS_IP6 ++ struct sockaddr_in6 sa; ++#else ++ struct sockaddr_in sa; ++#endif ++ unsigned int dummy = sizeof sa; ++ ++ if (getsockname(s,(struct sockaddr *) &sa,&dummy) == -1) return -1; ++#ifdef LIBC_HAS_IP6 ++ if (sa.sin6_family==AF_INET) { ++ struct sockaddr_in *sa4=(struct sockaddr_in*)&sa; ++ byte_copy(ip,12,V4mappedprefix); ++ byte_copy(ip+12,4,(char *) &sa4->sin_addr); ++ uint16_unpack_big((char *) &sa4->sin_port,port); ++ return 0; ++ } ++ byte_copy(ip,16,(char *) &sa.sin6_addr); ++ uint16_unpack_big((char *) &sa.sin6_port,port); ++ if (scope_id) *scope_id=sa.sin6_scope_id; ++#else ++ byte_copy(ip,12,V4mappedprefix); ++ byte_copy(ip+12,4,(char *) &sa.sin_addr); ++ uint16_unpack_big((char *) &sa.sin_port,port); ++ if (scope_id) *scope_id=0; ++#endif ++ return 0; ++} +diff -uNr ucspi-tcp-0.88.orig/socket_recv6.c ucspi-tcp-0.88/socket_recv6.c +--- ucspi-tcp-0.88.orig/socket_recv6.c 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/socket_recv6.c 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,44 @@ ++#include ++#include ++#include ++#include ++#include "byte.h" ++#include "socket.h" ++#include "ip6.h" ++#include "haveip6.h" ++#include "error.h" ++ ++int socket_recv6(int s,char *buf,unsigned int len,char ip[16],uint16 *port,uint32 *scope_id) ++{ ++#ifdef LIBC_HAS_IP6 ++ struct sockaddr_in6 sa; ++#else ++ struct sockaddr_in sa; ++#endif ++ unsigned int dummy = sizeof sa; ++ int r; ++ ++ byte_zero(&sa,dummy); ++ r = recvfrom(s,buf,len,0,(struct sockaddr *) &sa,&dummy); ++ if (r == -1) return -1; ++ ++#ifdef LIBC_HAS_IP6 ++ if (noipv6) { ++ struct sockaddr_in *sa4=(struct sockaddr_in *)&sa; ++ byte_copy(ip,12,V4mappedprefix); ++ byte_copy(ip+12,4,(char *) &sa4->sin_addr); ++ uint16_unpack_big((char *) &sa4->sin_port,port); ++ return r; ++ } ++ byte_copy(ip,16,(char *) &sa.sin6_addr); ++ uint16_unpack_big((char *) &sa.sin6_port,port); ++ if (scope_id) *scope_id=sa.sin6_scope_id; ++#else ++ byte_copy(ip,12,(char *)V4mappedprefix); ++ byte_copy(ip+12,4,(char *) &sa.sin_addr); ++ uint16_unpack_big((char *) &sa.sin_port,port); ++ if (scope_id) *scope_id=0; ++#endif ++ ++ return r; ++} +diff -uNr ucspi-tcp-0.88.orig/socket_remote6.c ucspi-tcp-0.88/socket_remote6.c +--- ucspi-tcp-0.88.orig/socket_remote6.c 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/socket_remote6.c 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,39 @@ ++#include ++#include ++#include ++#include ++#include "byte.h" ++#include "socket.h" ++#include "ip6.h" ++#include "haveip6.h" ++#include "error.h" ++ ++int socket_remote6(int s,char ip[16],uint16 *port,uint32 *scope_id) ++{ ++#ifdef LIBC_HAS_IP6 ++ struct sockaddr_in6 sa; ++#else ++ struct sockaddr_in sa; ++#endif ++ unsigned int dummy = sizeof sa; ++ ++ if (getpeername(s,(struct sockaddr *) &sa,&dummy) == -1) return -1; ++#ifdef LIBC_HAS_IP6 ++ if (sa.sin6_family==AF_INET) { ++ struct sockaddr_in *sa4=(struct sockaddr_in*)&sa; ++ byte_copy(ip,12,V4mappedprefix); ++ byte_copy(ip+12,4,(char *) &sa4->sin_addr); ++ uint16_unpack_big((char *) &sa4->sin_port,port); ++ return 0; ++ } ++ byte_copy(ip,16,(char *) &sa.sin6_addr); ++ uint16_unpack_big((char *) &sa.sin6_port,port); ++ if (scope_id) *scope_id=sa.sin6_scope_id; ++#else ++ byte_copy(ip,12,V4mappedprefix); ++ byte_copy(ip+12,4,(char *) &sa.sin_addr); ++ uint16_unpack_big((char *) &sa.sin_port,port); ++ if (scope_id) *scope_id=0; ++#endif ++ return 0; ++} +diff -uNr ucspi-tcp-0.88.orig/socket_send6.c ucspi-tcp-0.88/socket_send6.c +--- ucspi-tcp-0.88.orig/socket_send6.c 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/socket_send6.c 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,40 @@ ++#include ++#include ++#include ++#include ++#include "byte.h" ++#include "socket.h" ++#include "ip4.h" ++#include "ip6.h" ++#include "haveip6.h" ++#include "error.h" ++ ++int socket_send6(int s,const char *buf,unsigned int len,const char ip[16],uint16 port,uint32 scope_id) ++{ ++#ifdef LIBC_HAS_IP6 ++ struct sockaddr_in6 sa; ++#else ++ struct sockaddr_in sa; ++#endif ++ ++ byte_zero(&sa,sizeof sa); ++#ifdef LIBC_HAS_IP6 ++ if (noipv6) { ++#endif ++ if (ip6_isv4mapped(ip)) ++ return socket_send4(s,buf,len,ip+12,port); ++ if (byte_equal(ip,16,V6loopback)) ++ return socket_send4(s,buf,len,ip4loopback,port); ++#ifdef LIBC_HAS_IP6 ++ errno=error_proto; ++ return -1; ++ } ++ sa.sin6_family = AF_INET6; ++ uint16_pack_big((char *) &sa.sin6_port,port); ++ byte_copy((char *) &sa.sin6_addr,16,ip); ++ return sendto(s,buf,len,0,(struct sockaddr *) &sa,sizeof sa); ++#else ++ errno=error_proto; ++ return -1; ++#endif ++} +diff -uNr ucspi-tcp-0.88.orig/socket_tcp6.c ucspi-tcp-0.88/socket_tcp6.c +--- ucspi-tcp-0.88.orig/socket_tcp6.c 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/socket_tcp6.c 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,44 @@ ++#include ++#include ++#include ++#include ++#include ++#include "ndelay.h" ++#include "socket.h" ++#include "haveip6.h" ++#include "error.h" ++ ++#ifdef LIBC_HAS_IP6 ++int noipv6=0; ++#else ++int noipv6=1; ++#endif ++ ++int socket_tcp6(void) ++{ ++#ifdef LIBC_HAS_IP6 ++ int s; ++ ++ if (noipv6) goto compat; ++ s = socket(PF_INET6,SOCK_STREAM,0); ++ if (s == -1) { ++ if (errno == EINVAL || errno == EAFNOSUPPORT) { ++compat: ++ s=socket(AF_INET,SOCK_STREAM,0); ++ noipv6=1; ++ if (s==-1) return -1; ++ } else ++ return -1; ++ } ++ if (ndelay_on(s) == -1) { close(s); return -1; } ++#ifdef IPV6_V6ONLY ++ { ++ int zero=0; ++ setsockopt(s,IPPROTO_IPV6,IPV6_V6ONLY,(void*)&zero,sizeof(zero)); ++ } ++#endif ++ return s; ++#else ++ return socket_tcp(); ++#endif ++} +diff -uNr ucspi-tcp-0.88.orig/socket_udp6.c ucspi-tcp-0.88/socket_udp6.c +--- ucspi-tcp-0.88.orig/socket_udp6.c 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/socket_udp6.c 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,38 @@ ++#include ++#include ++#include ++#include ++#include "haveip6.h" ++#include "socket.h" ++ ++#ifndef EAFNOSUPPORT ++#define EAFNOSUPPORT EINVAL ++#endif ++ ++int socket_udp6(void) ++{ ++#ifdef LIBC_HAS_IP6 ++ int s; ++ ++ if (noipv6) goto compat; ++ s = socket(PF_INET6,SOCK_DGRAM,0); ++ if (s == -1) { ++ if (errno == EINVAL || errno == EAFNOSUPPORT) { ++compat: ++ s=socket(AF_INET,SOCK_DGRAM,0); ++ noipv6=1; ++ if (s==-1) return -1; ++ } else ++ return -1; ++ } ++#ifdef IPV6_V6ONLY ++ { ++ int zero=0; ++ setsockopt(s,IPPROTO_IPV6,IPV6_V6ONLY,(void*)&zero,sizeof(zero)); ++ } ++#endif ++ return s; ++#else ++ return socket_udp(); ++#endif ++} +diff -uNr ucspi-tcp-0.88.orig/socket_v4mappedprefix.c ucspi-tcp-0.88/socket_v4mappedprefix.c +--- ucspi-tcp-0.88.orig/socket_v4mappedprefix.c 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/socket_v4mappedprefix.c 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,2 @@ ++ ++const unsigned char V4mappedprefix[12]={0,0,0,0,0,0,0,0,0,0,0xff,0xff}; +diff -uNr ucspi-tcp-0.88.orig/socket_v6any.c ucspi-tcp-0.88/socket_v6any.c +--- ucspi-tcp-0.88.orig/socket_v6any.c 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/socket_v6any.c 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,2 @@ ++ ++const unsigned char V6any[16]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; +diff -uNr ucspi-tcp-0.88.orig/socket_v6loopback.c ucspi-tcp-0.88/socket_v6loopback.c +--- ucspi-tcp-0.88.orig/socket_v6loopback.c 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/socket_v6loopback.c 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,2 @@ ++ ++const unsigned char V6loopback[16]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}; +diff -uNr ucspi-tcp-0.88.orig/str.h ucspi-tcp-0.88/str.h +--- ucspi-tcp-0.88.orig/str.h 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/str.h 2009-08-04 17:45:59.000000000 -0500 +@@ -1,13 +1,13 @@ + #ifndef STR_H + #define STR_H + +-extern unsigned int str_copy(char *,char *); +-extern int str_diff(char *,char *); +-extern int str_diffn(char *,char *,unsigned int); +-extern unsigned int str_len(char *); +-extern unsigned int str_chr(char *,int); +-extern unsigned int str_rchr(char *,int); +-extern int str_start(char *,char *); ++extern unsigned int str_copy(char *,const char *); ++extern int str_diff(const char *,const char *); ++extern int str_diffn(const char *,const char *,unsigned int); ++extern unsigned int str_len(const char *); ++extern unsigned int str_chr(const char *,int); ++extern unsigned int str_rchr(const char *,int); ++extern int str_start(const char *,const char *); + + #define str_equal(s,t) (!str_diff((s),(t))) + +diff -uNr ucspi-tcp-0.88.orig/str_chr.c ucspi-tcp-0.88/str_chr.c +--- ucspi-tcp-0.88.orig/str_chr.c 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/str_chr.c 2009-08-04 17:45:59.000000000 -0500 +@@ -1,9 +1,9 @@ + #include "str.h" + +-unsigned int str_chr(register char *s,int c) ++unsigned int str_chr(register const char *s,int c) + { + register char ch; +- register char *t; ++ register const char *t; + + ch = c; + t = s; +diff -uNr ucspi-tcp-0.88.orig/str_diff.c ucspi-tcp-0.88/str_diff.c +--- ucspi-tcp-0.88.orig/str_diff.c 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/str_diff.c 2009-08-04 17:45:59.000000000 -0500 +@@ -1,6 +1,6 @@ + #include "str.h" + +-int str_diff(register char *s,register char *t) ++int str_diff(register const char *s,register const char *t) + { + register char x; + +diff -uNr ucspi-tcp-0.88.orig/str_len.c ucspi-tcp-0.88/str_len.c +--- ucspi-tcp-0.88.orig/str_len.c 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/str_len.c 2009-08-04 17:45:59.000000000 -0500 +@@ -1,8 +1,8 @@ + #include "str.h" + +-unsigned int str_len(char *s) ++unsigned int str_len(const char *s) + { +- register char *t; ++ register const char *t; + + t = s; + for (;;) { +diff -uNr ucspi-tcp-0.88.orig/str_start.c ucspi-tcp-0.88/str_start.c +--- ucspi-tcp-0.88.orig/str_start.c 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/str_start.c 2009-08-04 17:45:59.000000000 -0500 +@@ -1,6 +1,6 @@ + #include "str.h" + +-int str_start(register char *s,register char *t) ++int str_start(register const char *s,register const char *t) + { + register char x; + +diff -uNr ucspi-tcp-0.88.orig/stralloc.h ucspi-tcp-0.88/stralloc.h +--- ucspi-tcp-0.88.orig/stralloc.h 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/stralloc.h 2009-08-04 17:45:59.000000000 -0500 +@@ -9,18 +9,20 @@ + extern int stralloc_readyplus(stralloc *,unsigned int); + extern int stralloc_copy(stralloc *,stralloc *); + extern int stralloc_cat(stralloc *,stralloc *); +-extern int stralloc_copys(stralloc *,char *); +-extern int stralloc_cats(stralloc *,char *); +-extern int stralloc_copyb(stralloc *,char *,unsigned int); +-extern int stralloc_catb(stralloc *,char *,unsigned int); ++extern int stralloc_copys(stralloc *,const char *); ++extern int stralloc_cats(stralloc *,const char *); ++extern int stralloc_copyb(stralloc *,const char *,unsigned int); ++extern int stralloc_catb(stralloc *,const char *,unsigned int); + extern int stralloc_append(stralloc *,char *); /* beware: this takes a pointer to 1 char */ +-extern int stralloc_starts(stralloc *,char *); ++extern int stralloc_starts(stralloc *,const char *); + + #define stralloc_0(sa) stralloc_append(sa,"") + + extern int stralloc_catulong0(stralloc *,unsigned long,unsigned int); + extern int stralloc_catlong0(stralloc *,long,unsigned int); + ++extern void stralloc_free(stralloc *); ++ + #define stralloc_catlong(sa,l) (stralloc_catlong0((sa),(l),0)) + #define stralloc_catuint0(sa,i,n) (stralloc_catulong0((sa),(i),(n))) + #define stralloc_catint0(sa,i,n) (stralloc_catlong0((sa),(i),(n))) +diff -uNr ucspi-tcp-0.88.orig/stralloc_catb.c ucspi-tcp-0.88/stralloc_catb.c +--- ucspi-tcp-0.88.orig/stralloc_catb.c 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/stralloc_catb.c 2009-08-04 17:45:59.000000000 -0500 +@@ -1,7 +1,7 @@ + #include "stralloc.h" + #include "byte.h" + +-int stralloc_catb(stralloc *sa,char *s,unsigned int n) ++int stralloc_catb(stralloc *sa,const char *s,unsigned int n) + { + if (!sa->s) return stralloc_copyb(sa,s,n); + if (!stralloc_readyplus(sa,n + 1)) return 0; +diff -uNr ucspi-tcp-0.88.orig/stralloc_cats.c ucspi-tcp-0.88/stralloc_cats.c +--- ucspi-tcp-0.88.orig/stralloc_cats.c 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/stralloc_cats.c 2009-08-04 17:45:59.000000000 -0500 +@@ -2,7 +2,7 @@ + #include "str.h" + #include "stralloc.h" + +-int stralloc_cats(stralloc *sa,char *s) ++int stralloc_cats(stralloc *sa,const char *s) + { + return stralloc_catb(sa,s,str_len(s)); + } +diff -uNr ucspi-tcp-0.88.orig/stralloc_opyb.c ucspi-tcp-0.88/stralloc_opyb.c +--- ucspi-tcp-0.88.orig/stralloc_opyb.c 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/stralloc_opyb.c 2009-08-04 17:45:59.000000000 -0500 +@@ -1,7 +1,7 @@ + #include "stralloc.h" + #include "byte.h" + +-int stralloc_copyb(stralloc *sa,char *s,unsigned int n) ++int stralloc_copyb(stralloc *sa,const char *s,unsigned int n) + { + if (!stralloc_ready(sa,n + 1)) return 0; + byte_copy(sa->s,n,s); +diff -uNr ucspi-tcp-0.88.orig/stralloc_opys.c ucspi-tcp-0.88/stralloc_opys.c +--- ucspi-tcp-0.88.orig/stralloc_opys.c 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/stralloc_opys.c 2009-08-04 17:45:59.000000000 -0500 +@@ -2,7 +2,7 @@ + #include "str.h" + #include "stralloc.h" + +-int stralloc_copys(stralloc *sa,char *s) ++int stralloc_copys(stralloc *sa,const char *s) + { + return stralloc_copyb(sa,s,str_len(s)); + } +diff -uNr ucspi-tcp-0.88.orig/tcp-environ.5 ucspi-tcp-0.88/tcp-environ.5 +--- ucspi-tcp-0.88.orig/tcp-environ.5 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/tcp-environ.5 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,66 @@ ++.TH tcp-environ 5 ++.SH NAME ++tcp-environ \- TCP-related environment variables ++.SH DESCRIPTION ++The following environment variables ++describe a TCP connection. ++They are set up by ++.BR tcp-env , ++.BR tcpclient , ++and ++.BR tcpserver . ++Note that ++.BR TCPLOCALHOST , ++.BR TCPREMOTEHOST , ++and ++.B TCPREMOTEINFO ++can contain arbitrary characters. ++.TP 5 ++PROTO ++The string ++.BR TCP . ++.TP 5 ++TCPLOCALHOST ++The domain name of the local host, ++with uppercase letters converted to lowercase. ++If there is no currently available domain name ++for the local IP address, ++.B TCPLOCALHOST ++is not set. ++.TP 5 ++TCPLOCALIP ++The IP address of the local host, in dotted-decimal form. ++.TP 5 ++TCPLOCALPORT ++The local TCP port number, in decimal. ++.TP 5 ++TCPREMOTEHOST ++The domain name of the remote host, ++with uppercase letters converted to lowercase. ++If there is no currently available domain name ++for the remote IP address, ++.B TCPREMOTEHOST ++is not set. ++.TP 5 ++TCPREMOTEINFO ++A connection-specific string, perhaps a username, ++supplied by the remote host ++via 931/1413/IDENT/TAP. ++If the remote host did not supply connection information, ++.B TCPREMOTEINFO ++is not set. ++.TP 5 ++TCPREMOTEIP ++The IP address of the remote host. ++.TP 5 ++TCPREMOTEPORT ++The remote TCP port number. ++.TP 5 ++TCPINTERFACE ++The interface name ("eth0") for IPv6 connections using link-local ++addresses. ++.SH "SEE ALSO" ++tcpclient(1), ++tcpserver(1), ++tcp-env(1), ++tcp(4) +diff -uNr ucspi-tcp-0.88.orig/tcpcat.1 ucspi-tcp-0.88/tcpcat.1 +--- ucspi-tcp-0.88.orig/tcpcat.1 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/tcpcat.1 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,20 @@ ++.TH tcpcat 1 ++.SH NAME ++tcpcat \- print data from a TCP port ++.SH SYNTAX ++.B tcpcat ++.I host ++.I port ++.SH DESCRIPTION ++.B tcpcat ++connects to ++.I port ++on ++.I host ++and prints any data it receives. ++ ++.B tcpcat ++can be used to transfer binary data. ++It does no conversions. ++.SH "SEE ALSO" ++tcpclient(1) +diff -uNr ucspi-tcp-0.88.orig/tcpclient.1 ucspi-tcp-0.88/tcpclient.1 +--- ucspi-tcp-0.88.orig/tcpclient.1 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/tcpclient.1 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,173 @@ ++.TH tcpclient 1 ++.SH NAME ++tcpclient \- create an outgoing TCP connection ++.SH SYNOPSIS ++.B tcpclient ++[ ++.B \-46hHrRdDqQv ++] ++[ ++.B \-i\fIlocalip ++] ++[ ++.B \-p\fIlocalport ++] ++[ ++.B \-T\fItimeoutconn ++] ++[ ++.B \-l\fIlocalname ++] ++[ ++.B \-t\fItimeoutinfo ++] ++[ ++.B \-I\fIinterface ++] ++.I host ++.I port ++.I program ++[ ++.I arg ... ++] ++.SH DESCRIPTION ++.B tcpclient ++attempts to connect to a TCP server. ++If it is successful, it runs ++.I program ++with the given arguments, ++with descriptor 6 reading from the network ++and descriptor 7 writing to the network. ++ ++The server's address is given by ++.I host ++and ++.IR port . ++.I host ++may be 0, referring to the local machine, ++or a dotted-decimal IP address, ++or a host name; ++if a host has several IP addresses, ++.B tcpclient ++tries each in turn. ++.I port ++may be a numeric port number ++or a port name. ++ ++.B tcpclient ++sets up several environment variables, ++as described in ++.B tcp-environ(5). ++.SH OPTIONS ++.TP ++.B \-i\fIlocalip ++Use ++.I localip ++as the IP address for the local side of the connection; ++quit if ++.I localip ++is not available. ++.TP ++.B \-p\fIlocalport ++Use ++.I localport ++as the port number for the local side of the connection; ++quit if ++.I localport ++is not available. ++.TP ++.B \-I\fIinterface ++Use ++.I interface ++as the local network interface. This is only defined for IPv6 sockets ++and needed if you use link-local IPv6 addresses. ++.TP ++.B \-T\fItimeoutconn ++Give up on the ++connection attempt ++after ++.I timeoutconn ++seconds. Default: 60. ++This timeout applies to each IP address tried. ++.TP ++.B \-d ++(Default.) ++Delay sending data for a fraction of a second whenever the ++remote host is responding slowly, ++to make better use of the network. ++.TP ++.B \-D ++Never delay sending data; ++enable TCP_NODELAY. ++This is appropriate for interactive connections. ++.TP ++.B \-q ++Quiet. ++Do not print any messages. ++.TP ++.B \-Q ++(Default.) ++Print error messages. ++.TP ++.B \-v ++Verbose. ++Print all available messages. ++.SH "DATA-GATHERING OPTIONS" ++.TP ++.B \-h ++(Default.) ++Look up the remote host name for ++.BR TCPREMOTEHOST . ++.TP ++.B \-H ++Do not look up the remote host name; ++unset ++.BR TCPREMOTEHOST . ++.TP ++.B \-l\fIlocalname ++Do not look up the local host name; ++use ++.I localname ++for ++.BR TCPLOCALHOST . ++.TP ++.B \-r ++(Default.) ++Attempt to obtain ++.B TCPREMOTEINFO ++from the remote host. ++.TP ++.B \-R ++Do not attempt to obtain ++.B TCPREMOTEINFO ++from the remote host. ++.TP ++.B \-t\fItimeoutinfo ++Give up on the ++.B TCPREMOTEINFO ++connection attempt ++after ++.I timeoutinfo ++seconds. Default: 26. ++.TP ++.B \-4 ++Fall back to IPv4 sockets. This is necessary for terminally broken ++systems like OpenBSD which will not let IPv6 sockets connect to ++V4-mapped IPv6 addresses. Please note that this also applies to DNS ++lookups, so you will have to use an DNS resolver with an IPv6 address to ++connect to IPv6 systems. Use \fBDNSCACHEIP\fR to set the DNS resolver ++IP dynamically. ++.TP ++.B \-6 ++Force IPv6 mode in UCSPI environment variables, even for ++IPv4 connections. This will set \fB$PROTO\fR to \fBTCP6\fR and put ++IPv4-mapped IPv6 addresses in \fBTCPLOCALIP\fR and \fBTCPREMOTEIP\fR. ++.SH "SEE ALSO" ++date@(1), ++finger@(1), ++http@(1), ++mconnect(1), ++tcpcat(1), ++tcpserver(1), ++who@(1), ++tcp-environ(5) +diff -uNr ucspi-tcp-0.88.orig/tcpclient.c ucspi-tcp-0.88/tcpclient.c +--- ucspi-tcp-0.88.orig/tcpclient.c 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/tcpclient.c 2009-08-04 17:45:59.000000000 -0500 +@@ -9,6 +9,7 @@ + #include "scan.h" + #include "str.h" + #include "ip4.h" ++#include "ip6.h" + #include "uint16.h" + #include "socket.h" + #include "fd.h" +@@ -20,6 +21,7 @@ + #include "timeoutconn.h" + #include "remoteinfo.h" + #include "dns.h" ++#include "byte.h" + + #define FATAL "tcpclient: fatal: " + #define CONNECT "tcpclient: unable to connect to " +@@ -31,27 +33,30 @@ + void usage(void) + { + strerr_die1x(100,"tcpclient: usage: tcpclient \ +-[ -hHrRdDqQv ] \ ++[ -46hHrRdDqQv ] \ + [ -i localip ] \ + [ -p localport ] \ + [ -T timeoutconn ] \ + [ -l localname ] \ + [ -t timeoutinfo ] \ ++[ -I interface ] \ + host port program"); + } + ++int forcev6 = 0; + int verbosity = 1; + int flagdelay = 1; + int flagremoteinfo = 1; + int flagremotehost = 1; + unsigned long itimeout = 26; + unsigned long ctimeout[2] = { 2, 58 }; ++uint32 netif = 0; + +-char iplocal[4] = { 0,0,0,0 }; ++char iplocal[16] = { 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0 }; + uint16 portlocal = 0; + char *forcelocal = 0; + +-char ipremote[4]; ++char ipremote[16]; + uint16 portremote; + + char *hostname; +@@ -61,12 +66,13 @@ + static stralloc tmp; + static stralloc fqdn; + char strnum[FMT_ULONG]; +-char ipstr[IP4_FMT]; ++char ipstr[IP6_FMT]; + + char seed[128]; + + main(int argc,char **argv) + { ++ int fakev4=0; + unsigned long u; + int opt; + char *x; +@@ -80,8 +86,10 @@ + close(7); + sig_ignore(sig_pipe); + +- while ((opt = getopt(argc,argv,"dDvqQhHrRi:p:t:T:l:")) != opteof) ++ while ((opt = getopt(argc,argv,"46dDvqQhHrRi:p:t:T:l:I:")) != opteof) + switch(opt) { ++ case '4': noipv6 = 1; break; ++ case '6': forcev6 = 1; break; + case 'd': flagdelay = 1; break; + case 'D': flagdelay = 0; break; + case 'v': verbosity = 2; break; +@@ -97,7 +105,8 @@ + if (optarg[j] == '+') ++j; + scan_ulong(optarg + j,&ctimeout[1]); + break; +- case 'i': if (!ip4_scan(optarg,iplocal)) usage(); break; ++ case 'i': if (!scan_ip6(optarg,iplocal)) usage(); break; ++ case 'I': netif=socket_getifidx(optarg); break; + case 'p': scan_ulong(optarg,&u); portlocal = u; break; + default: usage(); + } +@@ -108,8 +117,8 @@ + + hostname = *argv; + if (!hostname) usage(); +- if (str_equal(hostname,"")) hostname = "127.0.0.1"; +- if (str_equal(hostname,"0")) hostname = "127.0.0.1"; ++ if (!hostname[0] || str_equal(hostname,"0")) ++ hostname = (noipv6?"127.0.0.1":"::1"); + + x = *++argv; + if (!x) usage(); +@@ -127,33 +136,36 @@ + if (!*++argv) usage(); + + if (!stralloc_copys(&tmp,hostname)) nomem(); +- if (dns_ip4_qualify(&addresses,&fqdn,&tmp) == -1) ++ if (dns_ip6_qualify(&addresses,&fqdn,&tmp) == -1) + strerr_die4sys(111,FATAL,"temporarily unable to figure out IP address for ",hostname,": "); +- if (addresses.len < 4) ++ if (addresses.len < 16) + strerr_die3x(111,FATAL,"no IP address for ",hostname); + +- if (addresses.len == 4) { ++ if (addresses.len == 16) { + ctimeout[0] += ctimeout[1]; + ctimeout[1] = 0; + } + + for (cloop = 0;cloop < 2;++cloop) { + if (!stralloc_copys(&moreaddresses,"")) nomem(); +- for (j = 0;j + 4 <= addresses.len;j += 4) { +- s = socket_tcp(); ++ for (j = 0;j + 16 <= addresses.len;j += 4) { ++ s = socket_tcp6(); + if (s == -1) + strerr_die2sys(111,FATAL,"unable to create socket: "); +- if (socket_bind4(s,iplocal,portlocal) == -1) ++ if (socket_bind6(s,iplocal,portlocal,netif) == -1) + strerr_die2sys(111,FATAL,"unable to bind socket: "); +- if (timeoutconn(s,addresses.s + j,portremote,ctimeout[cloop]) == 0) ++ if (timeoutconn6(s,addresses.s + j,portremote,ctimeout[cloop],netif) == 0) + goto CONNECTED; + close(s); + if (!cloop && ctimeout[1] && (errno == error_timeout)) { +- if (!stralloc_catb(&moreaddresses,addresses.s + j,4)) nomem(); ++ if (!stralloc_catb(&moreaddresses,addresses.s + j,16)) nomem(); + } + else { + strnum[fmt_ulong(strnum,portremote)] = 0; +- ipstr[ip4_fmt(ipstr,addresses.s + j)] = 0; ++ if (ip6_isv4mapped(addresses.s+j)) ++ ipstr[ip4_fmt(ipstr,addresses.s + j + 12)] = 0; ++ else ++ ipstr[ip6_fmt(ipstr,addresses.s + j)] = 0; + strerr_warn5(CONNECT,ipstr," port ",strnum,": ",&strerr_sys); + } + } +@@ -169,37 +181,46 @@ + if (!flagdelay) + socket_tcpnodelay(s); /* if it fails, bummer */ + +- if (!pathexec_env("PROTO","TCP")) nomem(); +- +- if (socket_local4(s,iplocal,&portlocal) == -1) ++ if (socket_local6(s,iplocal,&portlocal,&netif) == -1) + strerr_die2sys(111,FATAL,"unable to get local address: "); + ++ if (!forcev6 && (ip6_isv4mapped(iplocal) || byte_equal(iplocal,16,V6any))) ++ fakev4=1; ++ ++ if (!pathexec_env("PROTO",fakev4?"TCP":"TCP6")) nomem(); ++ + strnum[fmt_ulong(strnum,portlocal)] = 0; + if (!pathexec_env("TCPLOCALPORT",strnum)) nomem(); +- ipstr[ip4_fmt(ipstr,iplocal)] = 0; ++ if (fakev4) ++ ipstr[ip4_fmt(ipstr,iplocal+12)] = 0; ++ else ++ ipstr[ip6_fmt(ipstr,iplocal)] = 0; + if (!pathexec_env("TCPLOCALIP",ipstr)) nomem(); + + x = forcelocal; + if (!x) +- if (dns_name4(&tmp,iplocal) == 0) { ++ if (dns_name6(&tmp,iplocal) == 0) { + if (!stralloc_0(&tmp)) nomem(); + x = tmp.s; + } + if (!pathexec_env("TCPLOCALHOST",x)) nomem(); + +- if (socket_remote4(s,ipremote,&portremote) == -1) ++ if (socket_remote6(s,ipremote,&portremote,&netif) == -1) + strerr_die2sys(111,FATAL,"unable to get remote address: "); + + strnum[fmt_ulong(strnum,portremote)] = 0; + if (!pathexec_env("TCPREMOTEPORT",strnum)) nomem(); +- ipstr[ip4_fmt(ipstr,ipremote)] = 0; ++ if (fakev4) ++ ipstr[ip4_fmt(ipstr,ipremote+12)] = 0; ++ else ++ ipstr[ip6_fmt(ipstr,ipremote)] = 0; + if (!pathexec_env("TCPREMOTEIP",ipstr)) nomem(); + if (verbosity >= 2) + strerr_warn4("tcpclient: connected to ",ipstr," port ",strnum,0); + + x = 0; + if (flagremotehost) +- if (dns_name4(&tmp,ipremote) == 0) { ++ if (dns_name6(&tmp,ipremote) == 0) { + if (!stralloc_0(&tmp)) nomem(); + x = tmp.s; + } +@@ -207,7 +228,7 @@ + + x = 0; + if (flagremoteinfo) +- if (remoteinfo(&tmp,ipremote,portremote,iplocal,portlocal,itimeout) == 0) { ++ if (remoteinfo6(&tmp,ipremote,portremote,iplocal,portlocal,itimeout,netif) == 0) { + if (!stralloc_0(&tmp)) nomem(); + x = tmp.s; + } +diff -uNr ucspi-tcp-0.88.orig/tcprules.1 ucspi-tcp-0.88/tcprules.1 +--- ucspi-tcp-0.88.orig/tcprules.1 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/tcprules.1 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,221 @@ ++.TH tcprules 1 ++.SH NAME ++tcprules \- compile rules for tcpserver ++.SH SYNOPSIS ++.B tcprules ++.I rules.cdb ++.I rules.tmp ++.SH OVERVIEW ++.B tcpserver ++optionally follows rules to decide whether a TCP connection is acceptable. ++For example, a rule of ++ ++.EX ++ 18.23.0.32:deny ++.EE ++ ++prohibits connections from IP address 18.23.0.32. ++ ++.B tcprules ++reads rules from its standard input ++and writes them into ++.I rules.cdb ++in a binary format suited ++for quick access by ++.BR tcpserver . ++ ++.B tcprules ++can be used while ++.B tcpserver ++is running: ++it ensures that ++.I rules.cdb ++is updated atomically. ++It does this by first writing the rules to ++.I rules.tmp ++and then moving ++.I rules.tmp ++on top of ++.IR rules.cdb . ++If ++.I rules.tmp ++already exists, it is destroyed. ++The directories containing ++.I rules.cdb ++and ++.I rules.tmp ++must be writable to ++.BR tcprules ; ++they must also be on the same filesystem. ++ ++If there is a problem with the input, ++.B tcprules ++complains and leaves ++.I rules.cdb ++alone. ++ ++The binary ++.I rules.cdb ++format is portable across machines. ++.SH "RULE FORMAT" ++A rule takes up one line. ++A file containing rules ++may also contain comments: lines beginning with # are ignored. ++ ++Each rule contains an ++.BR address , ++a colon, ++and a list of ++.BR instructions , ++with no extra spaces. ++When ++.B tcpserver ++receives a connection from that address, ++it follows the instructions. ++.SH "ADDRESSES" ++.B tcpserver ++starts by looking for a rule with address ++.IR TCPREMOTEINFO\fB@\fITCPREMOTEIP . ++If it doesn't find one, or if ++.I TCPREMOTEINFO ++is not set, it tries the address ++.IR TCPREMOTEIP . ++If that doesn't work, it tries shorter and shorter prefixes of ++.I TCPREMOTEIP ++ending with a dot. ++If none of them work, it tries the empty string. ++ ++For example, here are some rules: ++ ++.EX ++ joe@127.0.0.1:first ++.br ++ 18.23.0.32:second ++.br ++ 127.:third ++.br ++ :fourth ++.br ++ ::1:fifth ++.EE ++ ++If ++.I TCPREMOTEIP ++is ++.BR 10.119.75.38 , ++.B tcpserver ++will follow the ++.B fourth ++instructions. ++ ++If ++.I TCPREMOTEIP ++is ++.BR ::1 , ++.B tcpserver ++will follow the ++.B fifth ++instructions. Note that you cannot detect IPv4 mapped addresses by ++matching "::ffff", as those addresses will be converted to IPv4 before ++looking at the rules. ++ ++If ++.I TCPREMOTEIP ++is ++.BR 18.23.0.32 , ++.B tcpserver ++will follow the ++.B second ++instructions. ++ ++If ++.I TCPREMOTEINFO ++is ++.B bill ++and ++.I TCPREMOTEIP ++is ++.BR 127.0.0.1 , ++.B tcpserver ++will follow the ++.B third ++instructions. ++ ++If ++.I TCPREMOTEINFO ++is ++.B joe ++and ++.I TCPREMOTEIP ++is ++.BR 127.0.0.1 , ++.B tcpserver ++will follow the ++.B first ++instructions. ++.SH "ADDRESS RANGES" ++.B tcprules ++treats ++.B 1.2.3.37-53:ins ++as an abbreviation ++for the rules ++.BR 1.2.3.37:ins , ++.BR 1.2.3.38:ins , ++and so on up through ++.BR 1.2.3.53:ins . ++Similarly, ++.BR 10.2-3.:ins ++is an abbreviation for ++.B 10.2.:ins ++and ++.BR 10.3.:ins . ++.SH "INSTRUCTIONS" ++The instructions in a rule must begin with either ++.B allow ++or ++.BR deny . ++.B deny ++tells ++.B tcpserver ++to drop the connection without running anything. ++For example, the rule ++ ++.EX ++ :deny ++.EE ++ ++tells ++.B tcpserver ++to drop all connections that aren't handled by more specific rules. ++ ++The instructions may continue with some environment variables, ++in the format ++.IR ,VAR="VALUE" . ++.B tcpserver ++adds ++.I VAR=VALUE ++to the current environment. ++For example, ++ ++.EX ++ 10.0.:allow,RELAYCLIENT="@fix.me" ++.EE ++ ++adds ++.B RELAYCLIENT=@fix.me ++to the environment. ++The quotes here may be replaced by any repeated character: ++ ++.EX ++ 10.0.:allow,RELAYCLIENT=/@fix.me/ ++.EE ++ ++Any number of variables may be listed: ++ ++.EX ++ 127.0.0.1:allow,RELAYCLIENT="",TCPLOCALHOST="movie.edu" ++.EE ++.SH "SEE ALSO" ++tcprulescheck(1), ++tcpserver(1), ++tcp-environ(5) +diff -uNr ucspi-tcp-0.88.orig/tcprules.c ucspi-tcp-0.88/tcprules.c +--- ucspi-tcp-0.88.orig/tcprules.c 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/tcprules.c 2009-08-04 17:45:59.000000000 -0500 +@@ -123,8 +123,15 @@ + } + line.len = len; /* for die_bad() */ + +- colon = byte_chr(x,len,':'); +- if (colon == len) continue; ++ colon = 0; ++ for (;;) { ++ int tmp; ++ tmp = byte_chr(x + colon,len - colon,':'); ++ colon += tmp; ++ if (colon == len) continue; ++ if (byte_equal(x+colon+1,4,"deny") || byte_equal(x+colon+1,5,"allow")) break; ++ ++colon; ++ } + + if (!stralloc_copyb(&address,x,colon)) nomem(); + if (!stralloc_copys(&data,"")) nomem(); +diff -uNr ucspi-tcp-0.88.orig/tcprulescheck.1 ucspi-tcp-0.88/tcprulescheck.1 +--- ucspi-tcp-0.88.orig/tcprulescheck.1 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/tcprulescheck.1 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,25 @@ ++.TH tcprulescheck 1 ++.SH NAME ++tcprulescheck \- try out rules for tcpserver ++.SH SYNTAX ++.B tcprulescheck ++.I rules.cdb ++.I tcpremoteip ++[ ++.I tcpremoteinfo ++] ++.SH DESCRIPTION ++.B tcprulescheck ++says what ++.B tcpserver ++will do with a connection from ++IP address ++.IR tcpremoteip , ++following the rules compiled into ++.I rules.cdb ++by ++.BR tcprules . ++.SH "SEE ALSO" ++tcprules(1), ++tcpserver(1), ++tcp-environ(5) +diff -uNr ucspi-tcp-0.88.orig/tcpserver.1 ucspi-tcp-0.88/tcpserver.1 +--- ucspi-tcp-0.88.orig/tcpserver.1 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/tcpserver.1 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,266 @@ ++.TH tcpserver 1 ++.SH NAME ++tcpserver \- accept incoming TCP connections ++.SH SYNOPSIS ++.B tcpserver ++[ ++.B \-146jpPhHrRoOdDqQv ++] ++[ ++.B \-c\fIlimit ++] ++[ ++.B \-x\fIrules.cdb ++] ++[ ++.B \-B\fIbanner ++] ++[ ++.B \-g\fIgid ++] ++[ ++.B \-u\fIuid ++] ++[ ++.B \-b\fIbacklog ++] ++[ ++.B \-l\fIlocalname ++] ++[ ++.B \-t\fItimeout ++] ++[ ++.B \-I\fIinterface ++] ++.I host ++.I port ++.I program ++[ ++.I arg ... ++] ++.SH DESCRIPTION ++.B tcpserver ++waits for connections from TCP clients. ++For each connection, it runs ++.I program ++with the given arguments, ++with descriptor 0 reading from the network ++and descriptor 1 writing to the network. ++ ++The server's address is given by ++.I host ++and ++.IR port . ++.I host ++can be 0, allowing connections from any host; ++or a particular IP address, ++allowing connections only to that address; ++or a host name, allowing connections to the first IP address ++for that host. ++.I port ++may be a numeric port number ++or a port name. ++If ++.I port ++is 0, ++.B tcpserver ++will choose a free port. ++ ++.B tcpserver ++sets up several environment variables, ++as described in ++.B tcp-environ(5). ++ ++.B tcpserver ++exits when it receives SIGTERM. ++.SH "OPTIONS" ++.TP ++.B \-c\fIlimit ++Do not handle more than ++.I limit ++simultaneous connections. ++If there are ++.I limit ++simultaneous copies of ++.I program ++running, defer acceptance of a new connection ++until one copy finishes. ++.I limit ++must be a positive integer. ++Default: 40. ++.TP ++.B \-x\fIrules.cdb ++Follow the rules compiled into ++.I rules.cdb ++by ++.BR tcprules . ++These rules may specify setting environment variables ++or rejecting connections from bad sources. ++ ++.B tcpserver ++does not read ++.I rules.cdb ++into memory; ++you can rerun ++.B tcprules ++to change ++.BR tcpserver 's ++behavior on the fly. ++.TP ++.B \-B\fIbanner ++Write ++.I banner ++to the network immediately after each connection is made. ++.B tcpserver ++writes ++.I banner ++before looking up ++.BR TCPREMOTEHOST , ++before looking up ++.BR TCPREMOTEINFO , ++and before checking ++.IR rules.cdb . ++ ++This feature can be used to reduce latency in protocols ++where the client waits for a greeting from the server. ++.TP ++.B \-g\fIgid ++Switch group ID to ++.I gid ++after preparing to receive connections. ++.I gid ++must be a positive integer. ++.TP ++.B \-u\fIuid ++Switch user ID to ++.I uid ++after preparing to receive connections. ++.I uid ++must be a positive integer. ++.TP ++.B \-1 ++After preparing to receive connections, ++print the local port number to standard output. ++.TP ++.B \-4 ++Fall back to IPv4 sockets. This is necessary for terminally broken ++systems like OpenBSD which will not let IPv6 sockets connect to ++V4-mapped IPv6 addresses. Please note that this also applies to DNS ++lookups, so you will have to use an DNS resolver with an IPv6 address to ++accept IPv6 connections. Use \fBDNSCACHEIP\fR to set the DNS resolver ++IP dynamically. ++.TP ++.B \-6 ++Force IPv6 mode in UCSPI environment variables, even for ++IPv4 connections. This will set \fB$PROTO\fR to \fBTCP6\fR and put ++IPv4-mapped IPv6 addresses in \fBTCPLOCALIP\fR and \fBTCPREMOTEIP\fR. ++.TP ++.B \-I\fIinterface ++Bind to the network interface ++.I interface ++("eth0" on Linux, for example). This is only defined and needed for ++IPv6 link-local addresses. ++.TP ++.B \-b\fIbacklog ++Allow up to ++.I backlog ++simultaneous SYN_RECEIVEDs. ++Default: 20. ++On some systems, ++.I backlog ++is silently limited to 5. ++See ++.BR listen (2) ++for more details. ++.TP ++.B \-o ++Leave IP options alone. ++If the client is sending packets along an IP source route, ++send packets back along the same route. ++.TP ++.B \-O ++(Default.) ++Kill IP options. ++A client can still use source routing to connect and to send data, ++but packets will be sent back along the default route. ++.TP ++.B \-d ++(Default.) ++Delay sending data for a fraction of a second whenever the ++remote host is responding slowly, ++to make better use of the network. ++.TP ++.B \-D ++Never delay sending data; ++enable TCP_NODELAY. ++This is appropriate for interactive connections. ++.TP ++.B \-q ++Quiet. ++Do not print any messages. ++.TP ++.B \-Q ++(Default.) ++Print error messages. ++.TP ++.B \-v ++Verbose. ++Print all available messages. ++.SH "DATA-GATHERING OPTIONS" ++.TP ++.B \-p ++Paranoid. ++After looking up the remote host name, ++look up the IP addresses for that name, ++and make sure one of them matches ++.BR TCPREMOTEIP . ++If none of them do, ++unset ++.BR TCPREMOTEHOST . ++.TP ++.B \-P ++(Default.) ++Not paranoid. ++.TP ++.B \-h ++(Default.) ++Look up the remote host name and set ++.BR TCPREMOTEHOST . ++.TP ++.B \-H ++Do not look up the remote host name. ++.TP ++.B \-l\fIlocalname ++Do not look up the local host name; ++use ++.I localname ++for ++.BR TCPLOCALHOST . ++.TP ++.B \-r ++(Default.) ++Attempt to obtain ++.B TCPREMOTEINFO ++from the remote host. ++.TP ++.B \-R ++Do not attempt to obtain ++.B TCPREMOTEINFO ++from the remote host. ++.TP ++.B \-t\fItimeout ++Give up on the ++.B TCPREMOTEINFO ++connection attempt ++after ++.I timeout ++seconds. Default: 26. ++.SH "SEE ALSO" ++argv0(1), ++fixcr(1), ++recordio(1), ++tcpclient(1), ++tcprules(1), ++listen(2), ++tcp-environ(5) +diff -uNr ucspi-tcp-0.88.orig/tcpserver.c ucspi-tcp-0.88/tcpserver.c +--- ucspi-tcp-0.88.orig/tcpserver.c 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/tcpserver.c 2009-08-04 17:45:59.000000000 -0500 +@@ -7,6 +7,7 @@ + #include "fmt.h" + #include "scan.h" + #include "ip4.h" ++#include "ip6.h" + #include "fd.h" + #include "exit.h" + #include "env.h" +@@ -28,6 +29,7 @@ + #include "sig.h" + #include "dns.h" + ++int forcev6 = 0; + int verbosity = 1; + int flagkillopts = 1; + int flagdelay = 1; +@@ -36,20 +38,21 @@ + int flagremotehost = 1; + int flagparanoid = 0; + unsigned long timeout = 26; ++uint32 netif = 0; + + static stralloc tcpremoteinfo; + + uint16 localport; + char localportstr[FMT_ULONG]; +-char localip[4]; +-char localipstr[IP4_FMT]; ++char localip[16]; ++char localipstr[IP6_FMT]; + static stralloc localhostsa; + char *localhost = 0; + + uint16 remoteport; + char remoteportstr[FMT_ULONG]; +-char remoteip[4]; +-char remoteipstr[IP4_FMT]; ++char remoteip[16]; ++char remoteipstr[IP6_FMT]; + static stralloc remotehostsa; + char *remotehost = 0; + +@@ -96,12 +99,12 @@ + if (ch < 33) ch = '?'; + if (ch > 126) ch = '?'; + if (ch == '%') ch = '?'; /* logger stupidity */ +- if (ch == ':') ch = '?'; ++/* if (ch == ':') ch = '?'; */ + append(&ch); + } + cats("..."); + } +-void env(char *s,char *t) ++void env(const char *s,const char *t) + { + if (!pathexec_env(s,t)) drop_nomem(); + } +@@ -135,9 +138,16 @@ + + void doit(int t) + { ++ int fakev4=0; + int j; ++ uint32 scope_id; + +- remoteipstr[ip4_fmt(remoteipstr,remoteip)] = 0; ++ if (!forcev6 && ip6_isv4mapped(remoteip)) ++ fakev4=1; ++ if (fakev4) ++ remoteipstr[ip4_fmt(remoteipstr,remoteip+12)] = 0; ++ else ++ remoteipstr[ip6_fmt(remoteipstr,remoteip)] = 0; + + if (verbosity >= 2) { + strnum[fmt_ulong(strnum,getpid())] = 0; +@@ -155,30 +165,40 @@ + strerr_die2sys(111,DROP,"unable to print banner: "); + } + +- if (socket_local4(t,localip,&localport) == -1) ++ if (socket_local6(t,localip,&localport,&scope_id) == -1) + strerr_die2sys(111,DROP,"unable to get local address: "); + +- localipstr[ip4_fmt(localipstr,localip)] = 0; ++ if (fakev4) ++ localipstr[ip4_fmt(localipstr,localip+12)] = 0; ++ else ++ localipstr[ip6_fmt(localipstr,localip)] = 0; + remoteportstr[fmt_ulong(remoteportstr,remoteport)] = 0; + + if (!localhost) +- if (dns_name4(&localhostsa,localip) == 0) ++ if (dns_name6(&localhostsa,localip) == 0) + if (localhostsa.len) { + if (!stralloc_0(&localhostsa)) drop_nomem(); + localhost = localhostsa.s; + } +- env("PROTO","TCP"); ++ env("PROTO",fakev4?"TCP":"TCP6"); + env("TCPLOCALIP",localipstr); ++ localipstr[ip6_fmt(localipstr,localip)]=0; ++ env("TCP6LOCALIP",localipstr); ++ + env("TCPLOCALPORT",localportstr); ++ env("TCP6LOCALPORT",localportstr); + env("TCPLOCALHOST",localhost); ++ env("TCP6LOCALHOST",localhost); ++ if (!fakev4 && scope_id) ++ env("TCP6INTERFACE",socket_getifname(scope_id)); + + if (flagremotehost) +- if (dns_name4(&remotehostsa,remoteip) == 0) ++ if (dns_name6(&remotehostsa,remoteip) == 0) + if (remotehostsa.len) { + if (flagparanoid) +- if (dns_ip4(&tmp,&remotehostsa) == 0) +- for (j = 0;j + 4 <= tmp.len;j += 4) +- if (byte_equal(remoteip,4,tmp.s + j)) { ++ if (dns_ip6(&tmp,&remotehostsa) == 0) ++ for (j = 0;j + 16 <= tmp.len;j += 16) ++ if (byte_equal(remoteip,16,tmp.s + j)) { + flagparanoid = 0; + break; + } +@@ -188,15 +208,20 @@ + } + } + env("TCPREMOTEIP",remoteipstr); ++ remoteipstr[ip6_fmt(remoteipstr,remoteip)]=0; ++ env("TCP6REMOTEIP",remoteipstr); + env("TCPREMOTEPORT",remoteportstr); ++ env("TCP6REMOTEPORT",remoteportstr); + env("TCPREMOTEHOST",remotehost); ++ env("TCP6REMOTEHOST",remotehost); + + if (flagremoteinfo) { +- if (remoteinfo(&tcpremoteinfo,remoteip,remoteport,localip,localport,timeout) == -1) ++ if (remoteinfo6(&tcpremoteinfo,remoteip,remoteport,localip,localport,timeout,netif) == -1) + flagremoteinfo = 0; + if (!stralloc_0(&tcpremoteinfo)) drop_nomem(); + } + env("TCPREMOTEINFO",flagremoteinfo ? tcpremoteinfo.s : 0); ++ env("TCP6REMOTEINFO",flagremoteinfo ? tcpremoteinfo.s : 0); + + if (fnrules) { + int fdrules; +@@ -206,7 +231,15 @@ + if (!flagallownorules) drop_rules(); + } + else { +- if (rules(found,fdrules,remoteipstr,remotehost,flagremoteinfo ? tcpremoteinfo.s : 0) == -1) drop_rules(); ++ int fakev4=0; ++ char* temp; ++ if (!forcev6 && ip6_isv4mapped(remoteip)) ++ fakev4=1; ++ if (fakev4) ++ temp=remoteipstr+7; ++ else ++ temp=remoteipstr; ++ if (rules(found,fdrules,temp,remotehost,flagremoteinfo ? tcpremoteinfo.s : 0) == -1) drop_rules(); + close(fdrules); + } + } +@@ -240,7 +273,7 @@ + { + strerr_warn1("\ + tcpserver: usage: tcpserver \ +-[ -1UXpPhHrRoOdDqQv ] \ ++[ -461UXpPhHrRoOdDqQv ] \ + [ -c limit ] \ + [ -x rules.cdb ] \ + [ -B banner ] \ +@@ -249,6 +282,7 @@ + [ -b backlog ] \ + [ -l localname ] \ + [ -t timeout ] \ ++[ -I interface ] \ + host port program",0); + _exit(100); + } +@@ -299,8 +333,8 @@ + unsigned long u; + int s; + int t; +- +- while ((opt = getopt(argc,argv,"dDvqQhHrR1UXx:t:u:g:l:b:B:c:pPoO")) != opteof) ++ ++ while ((opt = getopt(argc,argv,"46dDvqQhHrR1UXx:t:u:g:l:b:B:c:I:pPoO")) != opteof) + switch(opt) { + case 'b': scan_ulong(optarg,&backlog); break; + case 'c': scan_ulong(optarg,&limit); break; +@@ -325,7 +359,10 @@ + x = env_get("GID"); if (x) scan_ulong(x,&gid); break; + case 'u': scan_ulong(optarg,&uid); break; + case 'g': scan_ulong(optarg,&gid); break; ++ case 'I': netif=socket_getifidx(optarg); break; + case '1': flag1 = 1; break; ++ case '4': noipv6 = 1; break; ++ case '6': forcev6 = 1; break; + case 'l': localhost = optarg; break; + default: usage(); + } +@@ -337,8 +374,7 @@ + + hostname = *argv++; + if (!hostname) usage(); +- if (str_equal(hostname,"")) hostname = "0.0.0.0"; +- if (str_equal(hostname,"0")) hostname = "0.0.0.0"; ++ if (str_equal(hostname,"")) hostname = "0"; + + x = *argv++; + if (!x) usage(); +@@ -348,7 +384,7 @@ + se = getservbyname(x,"tcp"); + if (!se) + strerr_die3x(111,FATAL,"unable to figure out port number for ",x); +- localport = ntohs(se->s_port); ++ uint16_unpack_big((char*)&se->s_port,&localport); + } + + if (!*argv) usage(); +@@ -358,20 +394,26 @@ + sig_catch(sig_term,sigterm); + sig_ignore(sig_pipe); + +- if (!stralloc_copys(&tmp,hostname)) +- strerr_die2x(111,FATAL,"out of memory"); +- if (dns_ip4_qualify(&addresses,&fqdn,&tmp) == -1) +- strerr_die4sys(111,FATAL,"temporarily unable to figure out IP address for ",hostname,": "); +- if (addresses.len < 4) +- strerr_die3x(111,FATAL,"no IP address for ",hostname); +- byte_copy(localip,4,addresses.s); ++ if (str_equal(hostname,"0")) { ++ byte_zero(localip,sizeof localip); ++ } else { ++ if (!stralloc_copys(&tmp,hostname)) ++ strerr_die2x(111,FATAL,"out of memory"); ++ if (dns_ip6_qualify(&addresses,&fqdn,&tmp) == -1) ++ strerr_die4sys(111,FATAL,"temporarily unable to figure out IP address for ",hostname,": "); ++ if (addresses.len < 16) ++ strerr_die3x(111,FATAL,"no IP address for ",hostname); ++ byte_copy(localip,16,addresses.s); ++ if (ip6_isv4mapped(localip)) ++ noipv6=1; ++ } + +- s = socket_tcp(); ++ s = socket_tcp6(); + if (s == -1) + strerr_die2sys(111,FATAL,"unable to create socket: "); +- if (socket_bind4_reuse(s,localip,localport) == -1) ++ if (socket_bind6_reuse(s,localip,localport,netif) == -1) + strerr_die2sys(111,FATAL,"unable to bind: "); +- if (socket_local4(s,localip,&localport) == -1) ++ if (socket_local6(s,localip,&localport,&netif) == -1) + strerr_die2sys(111,FATAL,"unable to get local address: "); + if (socket_listen(s,backlog) == -1) + strerr_die2sys(111,FATAL,"unable to listen: "); +@@ -399,7 +441,7 @@ + while (numchildren >= limit) sig_pause(); + + sig_unblock(sig_child); +- t = socket_accept4(s,remoteip,&remoteport); ++ t = socket_accept6(s,remoteip,&remoteport,&netif); + sig_block(sig_child); + + if (t == -1) continue; +diff -uNr ucspi-tcp-0.88.orig/timeoutconn.h ucspi-tcp-0.88/timeoutconn.h +--- ucspi-tcp-0.88.orig/timeoutconn.h 2009-08-04 15:19:16.000000000 -0500 ++++ ucspi-tcp-0.88/timeoutconn.h 2009-08-04 17:45:59.000000000 -0500 +@@ -2,7 +2,9 @@ + #define TIMEOUTCONN_H + + #include "uint16.h" ++#include "uint32.h" + + extern int timeoutconn(int,char *,uint16,unsigned int); ++extern int timeoutconn6(int,char *,uint16,unsigned int,uint32); + + #endif +diff -uNr ucspi-tcp-0.88.orig/timeoutconn6.c ucspi-tcp-0.88/timeoutconn6.c +--- ucspi-tcp-0.88.orig/timeoutconn6.c 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/timeoutconn6.c 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,34 @@ ++#include "ndelay.h" ++#include "socket.h" ++#include "iopause.h" ++#include "error.h" ++#include "timeoutconn.h" ++ ++int timeoutconn6(int s,char ip[16],uint16 port,unsigned int timeout,uint32 netif) ++{ ++ struct taia now; ++ struct taia deadline; ++ iopause_fd x; ++ ++ if (socket_connect6(s,ip,port,netif) == -1) { ++ if ((errno != error_wouldblock) && (errno != error_inprogress)) return -1; ++ x.fd = s; ++ x.events = IOPAUSE_WRITE; ++ taia_now(&now); ++ taia_uint(&deadline,timeout); ++ taia_add(&deadline,&now,&deadline); ++ for (;;) { ++ taia_now(&now); ++ iopause(&x,1,&deadline,&now); ++ if (x.revents) break; ++ if (taia_less(&deadline,&now)) { ++ errno = error_timeout; /* note that connect attempt is continuing */ ++ return -1; ++ } ++ } ++ if (!socket_connected(s)) return -1; ++ } ++ ++ if (ndelay_off(s) == -1) return -1; ++ return 0; ++} +diff -uNr ucspi-tcp-0.88.orig/tryip6.c ucspi-tcp-0.88/tryip6.c +--- ucspi-tcp-0.88.orig/tryip6.c 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/tryip6.c 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,8 @@ ++#include ++#include ++#include ++ ++main() { ++ struct sockaddr_in6 sa; ++ sa.sin6_family = PF_INET6; ++} +diff -uNr ucspi-tcp-0.88.orig/usr/local/man/man1/tcpclient.1 ucspi-tcp-0.88/usr/local/man/man1/tcpclient.1 +--- ucspi-tcp-0.88.orig/usr/local/man/man1/tcpclient.1 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/usr/local/man/man1/tcpclient.1 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,173 @@ ++.TH tcpclient 1 ++.SH NAME ++tcpclient \- create an outgoing TCP connection ++.SH SYNOPSIS ++.B tcpclient ++[ ++.B \-46hHrRdDqQv ++] ++[ ++.B \-i\fIlocalip ++] ++[ ++.B \-p\fIlocalport ++] ++[ ++.B \-T\fItimeoutconn ++] ++[ ++.B \-l\fIlocalname ++] ++[ ++.B \-t\fItimeoutinfo ++] ++[ ++.B \-I\fIinterface ++] ++.I host ++.I port ++.I program ++[ ++.I arg ... ++] ++.SH DESCRIPTION ++.B tcpclient ++attempts to connect to a TCP server. ++If it is successful, it runs ++.I program ++with the given arguments, ++with descriptor 6 reading from the network ++and descriptor 7 writing to the network. ++ ++The server's address is given by ++.I host ++and ++.IR port . ++.I host ++may be 0, referring to the local machine, ++or a dotted-decimal IP address, ++or a host name; ++if a host has several IP addresses, ++.B tcpclient ++tries each in turn. ++.I port ++may be a numeric port number ++or a port name. ++ ++.B tcpclient ++sets up several environment variables, ++as described in ++.B tcp-environ(5). ++.SH OPTIONS ++.TP ++.B \-i\fIlocalip ++Use ++.I localip ++as the IP address for the local side of the connection; ++quit if ++.I localip ++is not available. ++.TP ++.B \-p\fIlocalport ++Use ++.I localport ++as the port number for the local side of the connection; ++quit if ++.I localport ++is not available. ++.TP ++.B \-I\fIinterface ++Use ++.I interface ++as the local network interface. This is only defined for IPv6 sockets ++and needed if you use link-local IPv6 addresses. ++.TP ++.B \-T\fItimeoutconn ++Give up on the ++connection attempt ++after ++.I timeoutconn ++seconds. Default: 60. ++This timeout applies to each IP address tried. ++.TP ++.B \-d ++(Default.) ++Delay sending data for a fraction of a second whenever the ++remote host is responding slowly, ++to make better use of the network. ++.TP ++.B \-D ++Never delay sending data; ++enable TCP_NODELAY. ++This is appropriate for interactive connections. ++.TP ++.B \-q ++Quiet. ++Do not print any messages. ++.TP ++.B \-Q ++(Default.) ++Print error messages. ++.TP ++.B \-v ++Verbose. ++Print all available messages. ++.SH "DATA-GATHERING OPTIONS" ++.TP ++.B \-h ++(Default.) ++Look up the remote host name for ++.BR TCPREMOTEHOST . ++.TP ++.B \-H ++Do not look up the remote host name; ++unset ++.BR TCPREMOTEHOST . ++.TP ++.B \-l\fIlocalname ++Do not look up the local host name; ++use ++.I localname ++for ++.BR TCPLOCALHOST . ++.TP ++.B \-r ++(Default.) ++Attempt to obtain ++.B TCPREMOTEINFO ++from the remote host. ++.TP ++.B \-R ++Do not attempt to obtain ++.B TCPREMOTEINFO ++from the remote host. ++.TP ++.B \-t\fItimeoutinfo ++Give up on the ++.B TCPREMOTEINFO ++connection attempt ++after ++.I timeoutinfo ++seconds. Default: 26. ++.TP ++.B \-4 ++Fall back to IPv4 sockets. This is necessary for terminally broken ++systems like OpenBSD which will not let IPv6 sockets connect to ++V4-mapped IPv6 addresses. Please note that this also applies to DNS ++lookups, so you will have to use an DNS resolver with an IPv6 address to ++connect to IPv6 systems. Use \fBDNSCACHEIP\fR to set the DNS resolver ++IP dynamically. ++.TP ++.B \-6 ++Force IPv6 mode in UCSPI environment variables, even for ++IPv4 connections. This will set \fB$PROTO\fR to \fBTCP6\fR and put ++IPv4-mapped IPv6 addresses in \fBTCPLOCALIP\fR and \fBTCPREMOTEIP\fR. ++.SH "SEE ALSO" ++date@(1), ++finger@(1), ++http@(1), ++mconnect(1), ++tcpcat(1), ++tcpserver(1), ++who@(1), ++tcp-environ(5) +diff -uNr ucspi-tcp-0.88.orig/usr/local/man/man1/tcpserver.1 ucspi-tcp-0.88/usr/local/man/man1/tcpserver.1 +--- ucspi-tcp-0.88.orig/usr/local/man/man1/tcpserver.1 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/usr/local/man/man1/tcpserver.1 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,266 @@ ++.TH tcpserver 1 ++.SH NAME ++tcpserver \- accept incoming TCP connections ++.SH SYNOPSIS ++.B tcpserver ++[ ++.B \-146jpPhHrRoOdDqQv ++] ++[ ++.B \-c\fIlimit ++] ++[ ++.B \-x\fIrules.cdb ++] ++[ ++.B \-B\fIbanner ++] ++[ ++.B \-g\fIgid ++] ++[ ++.B \-u\fIuid ++] ++[ ++.B \-b\fIbacklog ++] ++[ ++.B \-l\fIlocalname ++] ++[ ++.B \-t\fItimeout ++] ++[ ++.B \-I\fIinterface ++] ++.I host ++.I port ++.I program ++[ ++.I arg ... ++] ++.SH DESCRIPTION ++.B tcpserver ++waits for connections from TCP clients. ++For each connection, it runs ++.I program ++with the given arguments, ++with descriptor 0 reading from the network ++and descriptor 1 writing to the network. ++ ++The server's address is given by ++.I host ++and ++.IR port . ++.I host ++can be 0, allowing connections from any host; ++or a particular IP address, ++allowing connections only to that address; ++or a host name, allowing connections to the first IP address ++for that host. ++.I port ++may be a numeric port number ++or a port name. ++If ++.I port ++is 0, ++.B tcpserver ++will choose a free port. ++ ++.B tcpserver ++sets up several environment variables, ++as described in ++.B tcp-environ(5). ++ ++.B tcpserver ++exits when it receives SIGTERM. ++.SH "OPTIONS" ++.TP ++.B \-c\fIlimit ++Do not handle more than ++.I limit ++simultaneous connections. ++If there are ++.I limit ++simultaneous copies of ++.I program ++running, defer acceptance of a new connection ++until one copy finishes. ++.I limit ++must be a positive integer. ++Default: 40. ++.TP ++.B \-x\fIrules.cdb ++Follow the rules compiled into ++.I rules.cdb ++by ++.BR tcprules . ++These rules may specify setting environment variables ++or rejecting connections from bad sources. ++ ++.B tcpserver ++does not read ++.I rules.cdb ++into memory; ++you can rerun ++.B tcprules ++to change ++.BR tcpserver 's ++behavior on the fly. ++.TP ++.B \-B\fIbanner ++Write ++.I banner ++to the network immediately after each connection is made. ++.B tcpserver ++writes ++.I banner ++before looking up ++.BR TCPREMOTEHOST , ++before looking up ++.BR TCPREMOTEINFO , ++and before checking ++.IR rules.cdb . ++ ++This feature can be used to reduce latency in protocols ++where the client waits for a greeting from the server. ++.TP ++.B \-g\fIgid ++Switch group ID to ++.I gid ++after preparing to receive connections. ++.I gid ++must be a positive integer. ++.TP ++.B \-u\fIuid ++Switch user ID to ++.I uid ++after preparing to receive connections. ++.I uid ++must be a positive integer. ++.TP ++.B \-1 ++After preparing to receive connections, ++print the local port number to standard output. ++.TP ++.B \-4 ++Fall back to IPv4 sockets. This is necessary for terminally broken ++systems like OpenBSD which will not let IPv6 sockets connect to ++V4-mapped IPv6 addresses. Please note that this also applies to DNS ++lookups, so you will have to use an DNS resolver with an IPv6 address to ++accept IPv6 connections. Use \fBDNSCACHEIP\fR to set the DNS resolver ++IP dynamically. ++.TP ++.B \-6 ++Force IPv6 mode in UCSPI environment variables, even for ++IPv4 connections. This will set \fB$PROTO\fR to \fBTCP6\fR and put ++IPv4-mapped IPv6 addresses in \fBTCPLOCALIP\fR and \fBTCPREMOTEIP\fR. ++.TP ++.B \-I\fIinterface ++Bind to the network interface ++.I interface ++("eth0" on Linux, for example). This is only defined and needed for ++IPv6 link-local addresses. ++.TP ++.B \-b\fIbacklog ++Allow up to ++.I backlog ++simultaneous SYN_RECEIVEDs. ++Default: 20. ++On some systems, ++.I backlog ++is silently limited to 5. ++See ++.BR listen (2) ++for more details. ++.TP ++.B \-o ++Leave IP options alone. ++If the client is sending packets along an IP source route, ++send packets back along the same route. ++.TP ++.B \-O ++(Default.) ++Kill IP options. ++A client can still use source routing to connect and to send data, ++but packets will be sent back along the default route. ++.TP ++.B \-d ++(Default.) ++Delay sending data for a fraction of a second whenever the ++remote host is responding slowly, ++to make better use of the network. ++.TP ++.B \-D ++Never delay sending data; ++enable TCP_NODELAY. ++This is appropriate for interactive connections. ++.TP ++.B \-q ++Quiet. ++Do not print any messages. ++.TP ++.B \-Q ++(Default.) ++Print error messages. ++.TP ++.B \-v ++Verbose. ++Print all available messages. ++.SH "DATA-GATHERING OPTIONS" ++.TP ++.B \-p ++Paranoid. ++After looking up the remote host name, ++look up the IP addresses for that name, ++and make sure one of them matches ++.BR TCPREMOTEIP . ++If none of them do, ++unset ++.BR TCPREMOTEHOST . ++.TP ++.B \-P ++(Default.) ++Not paranoid. ++.TP ++.B \-h ++(Default.) ++Look up the remote host name and set ++.BR TCPREMOTEHOST . ++.TP ++.B \-H ++Do not look up the remote host name. ++.TP ++.B \-l\fIlocalname ++Do not look up the local host name; ++use ++.I localname ++for ++.BR TCPLOCALHOST . ++.TP ++.B \-r ++(Default.) ++Attempt to obtain ++.B TCPREMOTEINFO ++from the remote host. ++.TP ++.B \-R ++Do not attempt to obtain ++.B TCPREMOTEINFO ++from the remote host. ++.TP ++.B \-t\fItimeout ++Give up on the ++.B TCPREMOTEINFO ++connection attempt ++after ++.I timeout ++seconds. Default: 26. ++.SH "SEE ALSO" ++argv0(1), ++fixcr(1), ++recordio(1), ++tcpclient(1), ++tcprules(1), ++listen(2), ++tcp-environ(5) +diff -uNr ucspi-tcp-0.88.orig/who@.1 ucspi-tcp-0.88/who@.1 +--- ucspi-tcp-0.88.orig/who@.1 1969-12-31 18:00:00.000000000 -0600 ++++ ucspi-tcp-0.88/who@.1 2009-08-04 17:45:59.000000000 -0500 +@@ -0,0 +1,32 @@ ++.TH who@ 1 ++.SH NAME ++who@ \- print list of active users on a host ++.SH SYNTAX ++.B who@ ++[ ++.I host ++] ++.SH DESCRIPTION ++.B who@ ++connects to TCP port 11 (Systat) on ++.I host ++and prints any data it receives. ++It removes CR and converts unprintable characters to a visible format. ++ ++If ++.I host ++is not supplied, ++.B who@ ++connects to the local host. ++ ++Some computers respond to port 11 with a list of active users. ++For example, they may be running ++ ++.EX ++ tcpserver 0 11 who & ++.EE ++.SH "SEE ALSO" ++cat(1), ++delcr(1), ++tcpclient(1), ++tcpserver(1) diff --git a/talimatname/genel/u/udevil/talimat b/talimatname/genel/u/udevil/talimat new file mode 100644 index 000000000..05d291e1c --- /dev/null +++ b/talimatname/genel/u/udevil/talimat @@ -0,0 +1,18 @@ +# Tanım: Çıkarılabilir aygıtları,ISO dosyalarını,nfs://, smb://, ftp://, ssh:// ve WebDAV URL'lerini ve tmpfs/ramfs dosya sistemlerini bağlayın ve çıkarın. +# URL: http://ignorantguru.github.com/udevil +# Paketçi: milisarge +# Gerekler: glib intltool + +isim=udevil +surum=0.4.4 +devir=2 +kaynak=(https://github.com/IgnorantGuru/$isim/archive/$surum.tar.gz::$isim-$surum.tar.gz) +derle() { + cd udevil-$surum + ./configure --prefix=/usr \ + --disable-systemd \ + --with-setfacl-prog=/bin/setfacl + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share +} diff --git a/talimatname/genel/u/udisks/talimat b/talimatname/genel/u/udisks/talimat new file mode 100644 index 000000000..9a04c870c --- /dev/null +++ b/talimatname/genel/u/udisks/talimat @@ -0,0 +1,20 @@ +# Tanım: Disk Yönetimi Hizmeti +# URL: http://www.freedesktop.org/wiki/Software/udisks +# Paketçi: milisarge +# Gerekler: acl libgudev dbus-glib libatasmart lvm2 parted polkit sg3-utils docbook-xsl + +isim=udisks +surum=1.0.5 +devir=2 + +kaynak=( http://hal.freedesktop.org/releases/$isim-$surum.tar.gz) + +derle() { +cd udisks-$surum +./configure --prefix=/usr \ +--sysconfdir=/etc \ +--localstatedir=/var \ +--libexecdir=/usr/lib/udisks +make +make DESTDIR=$PKG profiledir=/etc/bash_completion.d install +} diff --git a/talimatname/genel/u/udisks2/talimat b/talimatname/genel/u/udisks2/talimat new file mode 100644 index 000000000..f1135694b --- /dev/null +++ b/talimatname/genel/u/udisks2/talimat @@ -0,0 +1,22 @@ +# Tanım: Diskler ve depolama aygıtlarına erişmek ve bunları değiştirmek için uygulama, araçlar ve kitaplıklar. +# URL: http://www.freedesktop.org/wiki/Software/udisks +# Paketçi: milisarge +# Gerekler: acl libgudev expat libatasmart libxslt polkit gobject-introspection docbook-xsl + +isim=udisks2 +surum=2.1.6 +devir=1 + +kaynak=(http://udisks.freedesktop.org/releases/udisks-$surum.tar.bz2 + udisk2-2.1.5-policy-1.patch) + +derle() { +cd udisks-$surum +patch -Np1 -i ../udisk2-2.1.5-policy-1.patch +./configure --prefix=/usr \ +--sysconfdir=/etc \ +--localstatedir=/var \ +--disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/u/udisks2/udisk2-2.1.5-policy-1.patch b/talimatname/genel/u/udisks2/udisk2-2.1.5-policy-1.patch new file mode 100644 index 000000000..d49b3ce68 --- /dev/null +++ b/talimatname/genel/u/udisks2/udisk2-2.1.5-policy-1.patch @@ -0,0 +1,76 @@ +diff -Naur udisks-2.1.5/data/org.freedesktop.udisks2.policy.in udisks-2.1.5-new/data/org.freedesktop.udisks2.policy.in +--- udisks-2.1.5/data/org.freedesktop.udisks2.policy.in 2015-02-11 06:13:54.000000000 +0000 ++++ udisks-2.1.5-new/data/org.freedesktop.udisks2.policy.in 2015-05-16 19:27:42.510039412 +0000 +@@ -16,8 +16,8 @@ + <_description>Mount a filesystem + <_message>Authentication is required to mount the filesystem + +- auth_admin +- auth_admin ++ yes ++ no + yes + + +@@ -27,9 +27,9 @@ + <_description>Mount a filesystem on a system device + <_message>Authentication is required to mount the filesystem + +- auth_admin +- auth_admin +- auth_admin_keep ++ yes ++ no ++ yes + + + +@@ -38,9 +38,9 @@ + <_description>Mount a filesystem from a device plugged into another seat + <_message>Authentication is required to mount the filesystem + +- auth_admin ++ yes + auth_admin +- auth_admin_keep ++ yes + + + +@@ -49,9 +49,9 @@ + <_description>Mount/unmount filesystems defined in the fstab file with the x-udisks-auth option + <_message>Authentication is required to mount/unmount the filesystem + +- auth_admin +- auth_admin +- auth_admin_keep ++ yes ++ no ++ yes + + + +@@ -98,9 +98,9 @@ + <_description>Unlock an encrypted device plugged into another seat + <_message>Authentication is required to unlock an encrypted device + +- auth_admin +- auth_admin +- auth_admin_keep ++ yes ++ no ++ yes + + + +@@ -258,8 +258,8 @@ + <_description>Eject media + <_message>Authentication is required to eject media + +- auth_admin +- auth_admin ++ yes ++ no + yes + + diff --git a/talimatname/genel/u/ufsutils/talimat b/talimatname/genel/u/ufsutils/talimat new file mode 100644 index 000000000..a81ffc8ec --- /dev/null +++ b/talimatname/genel/u/ufsutils/talimat @@ -0,0 +1,32 @@ +# Tanım: UFS dosya sistemini yönetmek için kullanılan yardımcı programlar, çoğunlukla BSD'de veya türemiş işletim sistemlerinde kullanılır. +# URL: https://packages.debian.org/sid/ufsutils +# Paketçi: milisarge +# Gerekler: libbsd libedit + +isim=ufsutils +surum=8.2 +devir=1 +kaynak=(https://mirrors.kernel.org/debian/pool/main/u/ufsutils/ufsutils_8.2.orig.tar.gz + https://mirrors.kernel.org/debian/pool/main/u/ufsutils/ufsutils_8.2-3.debian.tar.gz) + +derle() { +unset MAKEFLAGS +cd ${isim}-${surum} + for i in ../debian/patches/*.patch;do patch -p1 -i ${i};done + + sed -e "s:sbin/growfs::" -i Makefile + sed -e "s:^\(prefix = \)\(.*\):\1${EPREFIX}usr:" \ + -e "s:^\(libdir = \$(exec_prefix)\/\)\(.*\):\1$(get_libdir):" \ + -i "Makefile.common" + make -C ../${isim}-${surum} + + install -d ${PKG}/usr/bin + install -d ${PKG}/usr/lib + install -d ${PKG}/usr/share/man/man8 + install -d ${PKG}/usr/share/licenses/${isim} + install -d ${PKG}/usr/share/doc/${isim} + make DESTDIR=${PKG} prefix=/usr sbindir=/usr/bin install + install -Dm644 ../debian/copyright ${PKG}/usr/share/licenses/${isim}/COPYRIGHT + install -m644 ../debian/TODO ${PKG}/usr/share/doc/${isim} + install -Dm644 ../debian/changelog ${PKG}/usr/share/doc/${isim}/ChangeLog +} diff --git a/talimatname/genel/u/uget/talimat b/talimatname/genel/u/uget/talimat new file mode 100644 index 000000000..8a1156f5a --- /dev/null +++ b/talimatname/genel/u/uget/talimat @@ -0,0 +1,17 @@ +# Tanım: UGet, Linux için En İyi İndirme Yöneticisi. +# URL: http://ugetdm.com/ +# Paketçi: milisarge +# Gerekler: libnotify gtk3 gstreamer1 curl hicolor-icon-theme xdg-utils + +isim=uget +surum=2.0.9 +devir=1 + +kaynak=(http://downloads.sourceforge.net/urlget/$isim-$surum.tar.gz) +derle() { + cd $isim-$surum + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/u/uhttpmock/talimat b/talimatname/genel/u/uhttpmock/talimat new file mode 100644 index 000000000..3ab3758e1 --- /dev/null +++ b/talimatname/genel/u/uhttpmock/talimat @@ -0,0 +1,18 @@ +# Tanım: Uhttpmock paketi, HTTP veya HTTPS kullanan web hizmeti API'larını alay etmek için bir kütüphane içerir. +# URL: https://github.com/Distrotech/uhttpmock +# Paketçi: yasarciv67@gmail.com +# Gerekler: libsoup gobject-introspection vala gtk-doc + +isim=uhttpmock +surum=0.5.0 +devir=1 + +kaynak=(http://tecnocode.co.uk/downloads/$isim/$isim-$surum.tar.xz) + +derle() { + cd ${isim}-$surum + ./configure --prefix=/usr \ + --disable-static + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/u/ulib/talimat b/talimatname/genel/u/ulib/talimat new file mode 100644 index 000000000..4e82a5f29 --- /dev/null +++ b/talimatname/genel/u/ulib/talimat @@ -0,0 +1,27 @@ +# Tanım: Sade ve hızlı c++ uygulama geliştirme çatısı +# URL: https://github.com/stefanocasazza/ULib +# Paketçi: milisarge +# Gerekler: sqlite libzip + +isim=ulib +surum=1.4.2 +devir=1 +kaynak=(https://github.com/stefanocasazza/ULib/archive/v$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd "${SRC}/ULib-${surum}" + ./configure \ + --enable-debug \ + --with-sqlite3 \ + --with-ipv6 \ + --with-userver-ipc \ + --with-userver-udp \ + --enable-HPS \ + --enable-load-balance \ + --enable-zip \ + --enable-http2 \ + --sysconfdir=/etc \ + --prefix=/usr + make + make DESTDIR="${PKG}" install +} diff --git a/talimatname/genel/u/umurmur/talimat b/talimatname/genel/u/umurmur/talimat new file mode 100644 index 000000000..e1c6443d9 --- /dev/null +++ b/talimatname/genel/u/umurmur/talimat @@ -0,0 +1,28 @@ +# Tanım: Minimalist Mumble sunucusu +# URL: https://github.com/umurmur/umurmur +# Paketçi: Cihan_Alkan +# Gerekler: mbedtls libconfig protobuf-c cmake +# Grup: ağ + +isim=umurmur +surum=0.2.17 +devir=1 + +kaynak=(https://github.com/umurmur/umurmur/archive/${surum}.tar.gz::$isim-$surum.tar.gz + umurmur.sysusers) + +derle() { + cd $isim-$surum + mkdir build + cd build + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DSSL=mbedtls + make + cd $SRC/${isim}-${surum} + make -C build DESTDIR="${PKG}" install + install -Dm 644 "${PKG}/usr/etc/umurmur.conf" -t "${PKG}/etc/umurmur" + rm -r "${PKG}/usr/etc" + install -Dm 644 LICENSE -t "${PKG}/usr/share/licenses/${isim}" + install -Dm 644 "${SRC}/umurmur.sysusers" "${PKG}/usr/lib/sysusers.d/umurmur.conf" +} diff --git a/talimatname/genel/u/umurmur/umurmur.sysusers b/talimatname/genel/u/umurmur/umurmur.sysusers new file mode 100644 index 000000000..1d5cd511d --- /dev/null +++ b/talimatname/genel/u/umurmur/umurmur.sysusers @@ -0,0 +1 @@ +u umurmur - - - diff --git a/talimatname/genel/u/unco/talimat b/talimatname/genel/u/unco/talimat new file mode 100644 index 000000000..74a387299 --- /dev/null +++ b/talimatname/genel/u/unco/talimat @@ -0,0 +1,27 @@ +# Tanım: verilen komutları geri işletme-tarihçe +# URL: https://github.com/kazuho/unco +# Paketçi: milisarge +# Gerekler: cmake + +isim=unco +hesap=kazuho +surum=0.2.0 +devir=1 +kaynak=() + +derle() { + + if [ ! -d $DERLEME_KAYNAKDIZIN/$isim ];then + git clone https://github.com/$hesap/$isim $DERLEME_KAYNAKDIZIN/$isim + else + cd $DERLEME_KAYNAKDIZIN/$isim + git pull + cd - + fi + cp -r $DERLEME_KAYNAKDIZIN/$isim $SRC/ + cd $SRC/$isim + + cmake -DCMAKE_INSTALL_PREFIX=/usr . + make + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/u/unison/talimat b/talimatname/genel/u/unison/talimat new file mode 100644 index 000000000..36b841495 --- /dev/null +++ b/talimatname/genel/u/unison/talimat @@ -0,0 +1,28 @@ +# Tanım: Dosya Yedekleme-Eşitleme Uygulaması +# URL: http://www.cis.upenn.edu/~bcpierce/unison/ +# Paketçi: milisarge +# Gerekler: ocaml + +isim=unison +surum=git +devir=1 +kaynak=() + +derle() { + cd $DERLEME_KAYNAKDIZIN + + if cd $isim; then + git pull + make clean + else + git clone git://github.com/bcpierce00/$isim $isim + cd $isim + fi + + cd src + + CFLAGS="" + make -j1 THREADS=true + install -Dm755 unison $PKG/usr/bin/unison + install -Dm755 unison-fsmonitor $PKG/usr/bin/unison-fsmonitor +} diff --git a/talimatname/genel/u/unixodbc/talimat b/talimatname/genel/u/unixodbc/talimat new file mode 100644 index 000000000..6f92aedb1 --- /dev/null +++ b/talimatname/genel/u/unixodbc/talimat @@ -0,0 +1,22 @@ +# Tanım: Uygulama geliştiricilerine Veri Kaynaklarına erişmek için öngörülebilir bir API sağlama +# URL: http://www.unixodbc.org/ +# Paketçi: milisarge +# Gerekler: + +isim=unixodbc +surum=2.3.4 +devir=1 + +kaynak=(ftp://ftp.unixodbc.org/pub/unixODBC/unixODBC-$surum.tar.gz) +derle() { +cd unixODBC-$surum +./configure --prefix=/usr --sysconfdir=/etc/unixODBC \ +--enable-gui=no +make +make DESTDIR=$PKG install +find doc -name "Makefile*" -delete +chmod 644 doc/{lst,ProgrammerManual/Tutorial}/* + +install -m755 -d /usr/share/doc/unixODBC-$surum +cp -R doc/* /usr/share/doc/unixODBC-$surum +} diff --git a/talimatname/genel/u/unpaper/talimat b/talimatname/genel/u/unpaper/talimat new file mode 100644 index 000000000..3ffcdf548 --- /dev/null +++ b/talimatname/genel/u/unpaper/talimat @@ -0,0 +1,20 @@ +# Tanım: Taranmış sayfalar için post-processing aracı +# URL: https://github.com/Flameeyes/unpaper +# Paketçi: Cihan_Alkan +# Gerekler: ffmpeg libxslt +# Grup: ofis_duzenleyici + +isim=unpaper +surum=6.1 +devir=1 +kaynak=(https://github.com/Flameeyes/unpaper/archive/unpaper-$surum.tar.gz) + +derle() { + cd unpaper-unpaper-$surum + aclocal + automake --add-missing + autoconf + ./configure --prefix=/usr + make + make install DESTDIR="$PKG" +} diff --git a/talimatname/genel/u/unrar/talimat b/talimatname/genel/u/unrar/talimat new file mode 100644 index 000000000..5921c4723 --- /dev/null +++ b/talimatname/genel/u/unrar/talimat @@ -0,0 +1,23 @@ +# Tanım: RAR arşivlerinden dosyaları ayıklamak için kullanılan RAR çıkarma yardımcı programı. +# URL: http://www.rarlab.com/ +# Paketçi: milisarge +# Gerekler: + +isim=unrar +surum=5.3.9 +devir=1 + +kaynak=( +http://www.rarlab.com/rar/unrarsrc-$surum.tar.gz +) + +derle() { +cd $isim +make -f makefile +install -Dm755 unrar $PKG/usr/bin/unrar + +# doc & license +mkdir -p $PKG/usr/share/doc/$isim-$surum +install -m644 {license.txt,readme.txt} \ +$PKG/usr/share/doc/$isim-$surum +} diff --git a/talimatname/genel/u/unshield/talimat b/talimatname/genel/u/unshield/talimat new file mode 100644 index 000000000..6908218db --- /dev/null +++ b/talimatname/genel/u/unshield/talimat @@ -0,0 +1,22 @@ +# Tanım: InstallShield yükleyicilerinden CAB dosyalarını ayıklar +# URL: https://github.com/twogood/unshield +# Paketçi: Cihan_Alkan +# Gerekler: cmake +# Grup: sistem + +isim=unshield +surum=1.4.2 +devir=1 +kaynak=(https://github.com/twogood/unshield/archive/$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + + cd "$SRC"/${isim}-${surum} + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + . + make + make DESTDIR="$PKG" install + install -D -m644 LICENSE "$PKG"/usr/share/licenses/unshield/LICENSE +} diff --git a/talimatname/genel/u/unzip/talimat b/talimatname/genel/u/unzip/talimat new file mode 100644 index 000000000..6e6ad268a --- /dev/null +++ b/talimatname/genel/u/unzip/talimat @@ -0,0 +1,28 @@ +# Tanım: PKZIP tarafından yapılanlar gibi .zip arşivlerini açar. +# URL: http://www.info-zip.org +# Paketçi: milisarge +# Gerekler: + +isim=unzip +surum=6.0 +devir=1 + +kaynak=(http://downloads.sourceforge.net/infozip/unzip60.tar.gz) + + +derle() { + cd $isim${version/./} + export CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -DACORN_FTYPE_NFS \ + -DWILD_STOP_AT_DIR -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT \ + -DUNICODE_WCHAR -DUTF8_MAYBE_NATIVE -DNO_LCHMOD -DDATE_FORMAT=DF_YMD \ + -DUSE_BZIP2 -DNATIVE" + case `uname -m` in + x86_64) + make -f unix/Makefile LOCAL_UNZIP="$CFLAGS" prefix=/usr \ + LF2="" D_USE_BZ2=-DUSE_BZIP2 L_BZ2=-lbz2 unzips;; + i?86) + make -f unix/Makefile \ + LOCAL_UNZIP=-D_FILE_OFFSET_BITS=64 linux;; + esac + make -f unix/Makefile prefix=$PKG/usr MANDIR=$PKG/usr/share/man/man1 install +} diff --git a/talimatname/genel/u/upower/fix-critical-action.patch b/talimatname/genel/u/upower/fix-critical-action.patch new file mode 100644 index 000000000..6afe9b7a9 --- /dev/null +++ b/talimatname/genel/u/upower/fix-critical-action.patch @@ -0,0 +1,28 @@ +From 28cee8e2845b094488c337c4ecfa84ada0b6be60 Mon Sep 17 00:00:00 2001 +From: Martin Pitt +Date: Tue, 23 Feb 2016 09:51:07 +0100 +Subject: daemon: fix get_critical_action() + +Fix copy&paste error from e7e9156f that called the wrong _complete_ function +for up_daemon_get_critical_action(). + +https://bugs.freedesktop.org/show_bug.cgi?id=94262 + +diff --git a/src/up-daemon.c b/src/up-daemon.c +index be14cbe..e95f904 100644 +--- a/src/up-daemon.c ++++ b/src/up-daemon.c +@@ -435,8 +435,8 @@ up_daemon_get_critical_action (UpExportedDaemon *skeleton, + GDBusMethodInvocation *invocation, + UpDaemon *daemon) + { +- up_exported_daemon_complete_get_display_device (skeleton, invocation, +- up_backend_get_critical_action (daemon->priv->backend)); ++ up_exported_daemon_complete_get_critical_action (skeleton, invocation, ++ up_backend_get_critical_action (daemon->priv->backend)); + return TRUE; + } + +-- +cgit v0.10.2 + diff --git a/talimatname/genel/u/upower/talimat b/talimatname/genel/u/upower/talimat new file mode 100644 index 000000000..04ca13efc --- /dev/null +++ b/talimatname/genel/u/upower/talimat @@ -0,0 +1,22 @@ +# Tanım: UPower, güç aygıtlarını numaralandırmak, aygıt olaylarını dinlemek ve geçmişi ve istatistikleri sorgulamak için bir soyutlamadır. +# URL: http://upower.freedesktop.org +# Paketçi: yasarciv milisarge +# Gerekler: dbus-glib libusb intltool polkit gobject-introspection libgudev pm-utils + +isim=upower +surum=0.99.4 +devir=1 +kaynak=(http://$isim.freedesktop.org/releases/$isim-$surum.tar.xz + fix-critical-action.patch) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --enable-deprecated \ + --localstatedir=/var \ + --disable-static + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/u/urbanterror/talimat b/talimatname/genel/u/urbanterror/talimat new file mode 100644 index 000000000..f41cee4c4 --- /dev/null +++ b/talimatname/genel/u/urbanterror/talimat @@ -0,0 +1,41 @@ +# Tanım: Quake 3 Motoruna dayalı bir takım tabanlı taktik atıcı +# URL: http://www.urbanterror.info +# Paketçi: Cihan_Alkan +# Gerekler: sdl openal xorg-mesa +# Grup: oyun + +isim=urbanterror +surum=4.3.2 +devir=1 +kaynak=(http://www.happyurtday.com/releases/4x/UrbanTerror${surum//.}_full.zip + https://github.com/Barbatos/ioq3-for-UrbanTerror-4/releases/download/release-4.3.2-hotfix/Quake3-UrT-Ded.x86_64 + https://github.com/Barbatos/ioq3-for-UrbanTerror-4/releases/download/release-4.3.2-hotfix/Quake3-UrT.x86_64 + urbanterror.sh + urbanterror-server.sh + urbanterror.desktop + urbanterror.png) + +derle() { + + install -d "${PKG}/opt/urbanterror" + + cd "${PKG}/opt/urbanterror" + + # Copy patched binaries. + install -m755 "${SRC}/Quake3-UrT.x86_64" urbanterror + install -m755 "${SRC}/Quake3-UrT-Ded.x86_64" urbanterror-ded + + # Copy data + cp -r "${SRC}/UrbanTerror43/q3ut4" "${PKG}/opt/urbanterror/q3ut4" + install -Dm644 "${SRC}/UrbanTerror43/q3ut4/readme43.txt" "${PKG}/usr/share/licenses/${isim}/LICENSE" + echo -e "\nseta cl_cURLLib \"/usr/lib/libcurl.so.4\"" >> "${PKG}/opt/urbanterror/q3ut4/autoexec.cfg" + + # Copy desktop launcher. + install -Dm644 "${SRC}/urbanterror.desktop" "${PKG}/usr/share/applications/urbanterror.desktop" + install -Dm644 "${SRC}/urbanterror.png" "${PKG}/usr/share/pixmaps/urbanterror.png" + + # Copy launch scripts. + install -Dm755 "${SRC}/urbanterror.sh" "${PKG}/usr/bin/urbanterror" + install -Dm755 "${SRC}/urbanterror-server.sh" "${PKG}/usr/bin/urbanterror-server" + +} diff --git a/talimatname/genel/u/urbanterror/urbanterror-server.sh b/talimatname/genel/u/urbanterror/urbanterror-server.sh new file mode 100644 index 000000000..8d3f14959 --- /dev/null +++ b/talimatname/genel/u/urbanterror/urbanterror-server.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +cd /opt/urbanterror/ +exec ./urbanterror-ded "$@" diff --git a/talimatname/genel/u/urbanterror/urbanterror.desktop b/talimatname/genel/u/urbanterror/urbanterror.desktop new file mode 100644 index 000000000..f4d359dfa --- /dev/null +++ b/talimatname/genel/u/urbanterror/urbanterror.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Name=Urban Terror +Type=Application +Categories=Game; +Terminal=false +Exec=urbanterror +Icon=urbanterror diff --git a/talimatname/genel/u/urbanterror/urbanterror.png b/talimatname/genel/u/urbanterror/urbanterror.png new file mode 100644 index 000000000..df596c29b Binary files /dev/null and b/talimatname/genel/u/urbanterror/urbanterror.png differ diff --git a/talimatname/genel/u/urbanterror/urbanterror.sh b/talimatname/genel/u/urbanterror/urbanterror.sh new file mode 100644 index 000000000..65c222b4a --- /dev/null +++ b/talimatname/genel/u/urbanterror/urbanterror.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +cd /opt/urbanterror/ +exec ./urbanterror "$@" diff --git a/talimatname/genel/u/urho3d/talimat b/talimatname/genel/u/urho3d/talimat new file mode 100644 index 000000000..6fc841400 --- /dev/null +++ b/talimatname/genel/u/urho3d/talimat @@ -0,0 +1,23 @@ +# Tanım: c++ kullanan hafif 2D ve 3D oyun makinesi +# URL: http://www.rhythmbox.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: cmake xorg-libx11 xorg-glu xorg-libxrandr + +isim=urho3d +surum=1.6 +devir=1 + +kaynak=(https://github.com/urho3d/Urho3D/archive/1.6.tar.gz::Urho3D-1.6.tar.gz) + +derle() { + cd Urho3D-1.6 + mkdir -p "$SRC/Urho3D-$surum/build" + cd "$SRC/Urho3D-$surum/build" + cmake "$SRC/Urho3D-$surum/" -DCMAKE_INSTALL_PREFIX="/usr" -DURHO3D_USE_LIB_DEB=1 -DURHO3D_SAMPLES=1 + make + cd "$SRC/Urho3D-$surum/build" + make DESTDIR="$PKG/" install + cd "$PKG/usr/bin" + mv "./Editor.sh" "./urho3d-editor.sh" + rm lua luac +} diff --git a/talimatname/genel/u/urlmatch/talimat b/talimatname/genel/u/urlmatch/talimat new file mode 100644 index 000000000..a0ab03f87 --- /dev/null +++ b/talimatname/genel/u/urlmatch/talimat @@ -0,0 +1,16 @@ +# Tanım: Hızlı URL eşleştirici kitaplığı +# URL: https://github.com/clbr/urlmatch +# Paketçi: milisarge +# Gerekler: + +isim=urlmatch +surum=1.0 +devir=1 + +kaynak=(https://github.com/clbr/urlmatch/archive/v$surum.tar.gz) + +derle() { + cd "${isim}-$surum" + make + make install DESTDIR="${PKG}" +} diff --git a/talimatname/genel/u/urweb/talimat b/talimatname/genel/u/urweb/talimat new file mode 100644 index 000000000..5e8798f11 --- /dev/null +++ b/talimatname/genel/u/urweb/talimat @@ -0,0 +1,19 @@ +# Tanım: Ur/Web: web framework için saf fonksiyonel dil +# URL: http://www.impredicative.com/ur/ +# Paketçi: milisarge +# Gerekler: mlton sqlite uthash + +isim=urweb +surum=20170720 +devir=1 +kaynak=(http://www.impredicative.com/ur/urweb-$surum.tgz + use-system-uthash.patch) + +derle() { + cd "$isim-$surum" + patch -p1 -i "$SRC/use-system-uthash.patch" + ./configure --prefix=/usr + make + make -k check + make DESTDIR="$PKG/" install +} diff --git a/talimatname/genel/u/urweb/use-system-uthash.patch b/talimatname/genel/u/urweb/use-system-uthash.patch new file mode 100644 index 000000000..270bf553f --- /dev/null +++ b/talimatname/genel/u/urweb/use-system-uthash.patch @@ -0,0 +1,993 @@ +From: Benjamin Barenblat +Subject: Use Debian’s uthash +Forwarded: no + +Remove upstream’s vendored copy of uthash. +--- a/include/urweb/types_cpp.h ++++ b/include/urweb/types_cpp.h +@@ -123,7 +123,7 @@ typedef struct { + // Caching + + #include +-#include "uthash.h" ++#include + + typedef struct uw_Sqlcache_Value { + char *result; +--- a/src/c/urweb.c ++++ b/src/c/urweb.c +@@ -22,7 +22,7 @@ + + #include "types.h" + +-#include "uthash.h" ++#include + + uw_unit uw_unit_v = 0; + +--- a/include/urweb/uthash.h ++++ /dev/null +@@ -1,963 +0,0 @@ +-/* +-Copyright (c) 2003-2014, Troy D. Hanson http://troydhanson.github.com/uthash/ +-All rights reserved. +- +-Redistribution and use in source and binary forms, with or without +-modification, are permitted provided that the following conditions are met: +- +- * Redistributions of source code must retain the above copyright +- notice, this list of conditions and the following disclaimer. +- +-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "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 COPYRIGHT OWNER +-OR CONTRIBUTORS 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. +-*/ +- +-#ifndef UTHASH_H +-#define UTHASH_H +- +-#include /* memcmp,strlen */ +-#include /* ptrdiff_t */ +-#include /* exit() */ +- +-/* These macros use decltype or the earlier __typeof GNU extension. +- As decltype is only available in newer compilers (VS2010 or gcc 4.3+ +- when compiling c++ source) this code uses whatever method is needed +- or, for VS2008 where neither is available, uses casting workarounds. */ +-#if defined(_MSC_VER) /* MS compiler */ +-#if _MSC_VER >= 1600 && defined(__cplusplus) /* VS2010 or newer in C++ mode */ +-#define DECLTYPE(x) (decltype(x)) +-#else /* VS2008 or older (or VS2010 in C mode) */ +-#define NO_DECLTYPE +-#define DECLTYPE(x) +-#endif +-#elif defined(__BORLANDC__) || defined(__LCC__) || defined(__WATCOMC__) +-#define NO_DECLTYPE +-#define DECLTYPE(x) +-#else /* GNU, Sun and other compilers */ +-#define DECLTYPE(x) (__typeof(x)) +-#endif +- +-#ifdef NO_DECLTYPE +-#define DECLTYPE_ASSIGN(dst,src) \ +-do { \ +- char **_da_dst = (char**)(&(dst)); \ +- *_da_dst = (char*)(src); \ +-} while(0) +-#else +-#define DECLTYPE_ASSIGN(dst,src) \ +-do { \ +- (dst) = DECLTYPE(dst)(src); \ +-} while(0) +-#endif +- +-/* a number of the hash function use uint32_t which isn't defined on Pre VS2010 */ +-#if defined (_WIN32) +-#if defined(_MSC_VER) && _MSC_VER >= 1600 +-#include +-#elif defined(__WATCOMC__) +-#include +-#else +-typedef unsigned int uint32_t; +-typedef unsigned char uint8_t; +-#endif +-#else +-#include +-#endif +- +-#define UTHASH_VERSION 1.9.9 +- +-#ifndef uthash_fatal +-#define uthash_fatal(msg) exit(-1) /* fatal error (out of memory,etc) */ +-#endif +-#ifndef uthash_malloc +-#define uthash_malloc(sz) malloc(sz) /* malloc fcn */ +-#endif +-#ifndef uthash_free +-#define uthash_free(ptr,sz) free(ptr) /* free fcn */ +-#endif +- +-#ifndef uthash_noexpand_fyi +-#define uthash_noexpand_fyi(tbl) /* can be defined to log noexpand */ +-#endif +-#ifndef uthash_expand_fyi +-#define uthash_expand_fyi(tbl) /* can be defined to log expands */ +-#endif +- +-/* initial number of buckets */ +-#define HASH_INITIAL_NUM_BUCKETS 32U /* initial number of buckets */ +-#define HASH_INITIAL_NUM_BUCKETS_LOG2 5U /* lg2 of initial number of buckets */ +-#define HASH_BKT_CAPACITY_THRESH 10U /* expand when bucket count reaches */ +- +-/* calculate the element whose hash handle address is hhe */ +-#define ELMT_FROM_HH(tbl,hhp) ((void*)(((char*)(hhp)) - ((tbl)->hho))) +- +-#define HASH_FIND(hh,head,keyptr,keylen,out) \ +-do { \ +- out=NULL; \ +- if (head != NULL) { \ +- unsigned _hf_bkt,_hf_hashv; \ +- HASH_FCN(keyptr,keylen, (head)->hh.tbl->num_buckets, _hf_hashv, _hf_bkt); \ +- if (HASH_BLOOM_TEST((head)->hh.tbl, _hf_hashv) != 0) { \ +- HASH_FIND_IN_BKT((head)->hh.tbl, hh, (head)->hh.tbl->buckets[ _hf_bkt ], \ +- keyptr,keylen,out); \ +- } \ +- } \ +-} while (0) +- +-#ifdef HASH_BLOOM +-#define HASH_BLOOM_BITLEN (1UL << HASH_BLOOM) +-#define HASH_BLOOM_BYTELEN (HASH_BLOOM_BITLEN/8UL) + (((HASH_BLOOM_BITLEN%8UL)!=0UL) ? 1UL : 0UL) +-#define HASH_BLOOM_MAKE(tbl) \ +-do { \ +- (tbl)->bloom_nbits = HASH_BLOOM; \ +- (tbl)->bloom_bv = (uint8_t*)uthash_malloc(HASH_BLOOM_BYTELEN); \ +- if (!((tbl)->bloom_bv)) { uthash_fatal( "out of memory"); } \ +- memset((tbl)->bloom_bv, 0, HASH_BLOOM_BYTELEN); \ +- (tbl)->bloom_sig = HASH_BLOOM_SIGNATURE; \ +-} while (0) +- +-#define HASH_BLOOM_FREE(tbl) \ +-do { \ +- uthash_free((tbl)->bloom_bv, HASH_BLOOM_BYTELEN); \ +-} while (0) +- +-#define HASH_BLOOM_BITSET(bv,idx) (bv[(idx)/8U] |= (1U << ((idx)%8U))) +-#define HASH_BLOOM_BITTEST(bv,idx) (bv[(idx)/8U] & (1U << ((idx)%8U))) +- +-#define HASH_BLOOM_ADD(tbl,hashv) \ +- HASH_BLOOM_BITSET((tbl)->bloom_bv, (hashv & (uint32_t)((1ULL << (tbl)->bloom_nbits) - 1U))) +- +-#define HASH_BLOOM_TEST(tbl,hashv) \ +- HASH_BLOOM_BITTEST((tbl)->bloom_bv, (hashv & (uint32_t)((1ULL << (tbl)->bloom_nbits) - 1U))) +- +-#else +-#define HASH_BLOOM_MAKE(tbl) +-#define HASH_BLOOM_FREE(tbl) +-#define HASH_BLOOM_ADD(tbl,hashv) +-#define HASH_BLOOM_TEST(tbl,hashv) (1) +-#define HASH_BLOOM_BYTELEN 0U +-#endif +- +-#define HASH_MAKE_TABLE(hh,head) \ +-do { \ +- (head)->hh.tbl = (UT_hash_table*)uthash_malloc( \ +- sizeof(UT_hash_table)); \ +- if (!((head)->hh.tbl)) { uthash_fatal( "out of memory"); } \ +- memset((head)->hh.tbl, 0, sizeof(UT_hash_table)); \ +- (head)->hh.tbl->tail = &((head)->hh); \ +- (head)->hh.tbl->num_buckets = HASH_INITIAL_NUM_BUCKETS; \ +- (head)->hh.tbl->log2_num_buckets = HASH_INITIAL_NUM_BUCKETS_LOG2; \ +- (head)->hh.tbl->hho = (char*)(&(head)->hh) - (char*)(head); \ +- (head)->hh.tbl->buckets = (UT_hash_bucket*)uthash_malloc( \ +- HASH_INITIAL_NUM_BUCKETS*sizeof(struct UT_hash_bucket)); \ +- if (! (head)->hh.tbl->buckets) { uthash_fatal( "out of memory"); } \ +- memset((head)->hh.tbl->buckets, 0, \ +- HASH_INITIAL_NUM_BUCKETS*sizeof(struct UT_hash_bucket)); \ +- HASH_BLOOM_MAKE((head)->hh.tbl); \ +- (head)->hh.tbl->signature = HASH_SIGNATURE; \ +-} while(0) +- +-#define HASH_ADD(hh,head,fieldname,keylen_in,add) \ +- HASH_ADD_KEYPTR(hh,head,&((add)->fieldname),keylen_in,add) +- +-#define HASH_REPLACE(hh,head,fieldname,keylen_in,add,replaced) \ +-do { \ +- replaced=NULL; \ +- HASH_FIND(hh,head,&((add)->fieldname),keylen_in,replaced); \ +- if (replaced!=NULL) { \ +- HASH_DELETE(hh,head,replaced); \ +- } \ +- HASH_ADD(hh,head,fieldname,keylen_in,add); \ +-} while(0) +- +-#define HASH_ADD_KEYPTR(hh,head,keyptr,keylen_in,add) \ +-do { \ +- unsigned _ha_bkt; \ +- (add)->hh.next = NULL; \ +- (add)->hh.key = (char*)(keyptr); \ +- (add)->hh.keylen = (unsigned)(keylen_in); \ +- if (!(head)) { \ +- head = (add); \ +- (head)->hh.prev = NULL; \ +- HASH_MAKE_TABLE(hh,head); \ +- } else { \ +- (head)->hh.tbl->tail->next = (add); \ +- (add)->hh.prev = ELMT_FROM_HH((head)->hh.tbl, (head)->hh.tbl->tail); \ +- (head)->hh.tbl->tail = &((add)->hh); \ +- } \ +- (head)->hh.tbl->num_items++; \ +- (add)->hh.tbl = (head)->hh.tbl; \ +- HASH_FCN(keyptr,keylen_in, (head)->hh.tbl->num_buckets, \ +- (add)->hh.hashv, _ha_bkt); \ +- HASH_ADD_TO_BKT((head)->hh.tbl->buckets[_ha_bkt],&(add)->hh); \ +- HASH_BLOOM_ADD((head)->hh.tbl,(add)->hh.hashv); \ +- HASH_EMIT_KEY(hh,head,keyptr,keylen_in); \ +- HASH_FSCK(hh,head); \ +-} while(0) +- +-#define HASH_TO_BKT( hashv, num_bkts, bkt ) \ +-do { \ +- bkt = ((hashv) & ((num_bkts) - 1U)); \ +-} while(0) +- +-/* delete "delptr" from the hash table. +- * "the usual" patch-up process for the app-order doubly-linked-list. +- * The use of _hd_hh_del below deserves special explanation. +- * These used to be expressed using (delptr) but that led to a bug +- * if someone used the same symbol for the head and deletee, like +- * HASH_DELETE(hh,users,users); +- * We want that to work, but by changing the head (users) below +- * we were forfeiting our ability to further refer to the deletee (users) +- * in the patch-up process. Solution: use scratch space to +- * copy the deletee pointer, then the latter references are via that +- * scratch pointer rather than through the repointed (users) symbol. +- */ +-#define HASH_DELETE(hh,head,delptr) \ +-do { \ +- struct UT_hash_handle *_hd_hh_del; \ +- if ( ((delptr)->hh.prev == NULL) && ((delptr)->hh.next == NULL) ) { \ +- uthash_free((head)->hh.tbl->buckets, \ +- (head)->hh.tbl->num_buckets*sizeof(struct UT_hash_bucket) ); \ +- HASH_BLOOM_FREE((head)->hh.tbl); \ +- uthash_free((head)->hh.tbl, sizeof(UT_hash_table)); \ +- head = NULL; \ +- } else { \ +- unsigned _hd_bkt; \ +- _hd_hh_del = &((delptr)->hh); \ +- if ((delptr) == ELMT_FROM_HH((head)->hh.tbl,(head)->hh.tbl->tail)) { \ +- (head)->hh.tbl->tail = \ +- (UT_hash_handle*)((ptrdiff_t)((delptr)->hh.prev) + \ +- (head)->hh.tbl->hho); \ +- } \ +- if ((delptr)->hh.prev != NULL) { \ +- ((UT_hash_handle*)((ptrdiff_t)((delptr)->hh.prev) + \ +- (head)->hh.tbl->hho))->next = (delptr)->hh.next; \ +- } else { \ +- DECLTYPE_ASSIGN(head,(delptr)->hh.next); \ +- } \ +- if (_hd_hh_del->next != NULL) { \ +- ((UT_hash_handle*)((ptrdiff_t)_hd_hh_del->next + \ +- (head)->hh.tbl->hho))->prev = \ +- _hd_hh_del->prev; \ +- } \ +- HASH_TO_BKT( _hd_hh_del->hashv, (head)->hh.tbl->num_buckets, _hd_bkt); \ +- HASH_DEL_IN_BKT(hh,(head)->hh.tbl->buckets[_hd_bkt], _hd_hh_del); \ +- (head)->hh.tbl->num_items--; \ +- } \ +- HASH_FSCK(hh,head); \ +-} while (0) +- +- +-/* convenience forms of HASH_FIND/HASH_ADD/HASH_DEL */ +-#define HASH_FIND_STR(head,findstr,out) \ +- HASH_FIND(hh,head,findstr,(unsigned)strlen(findstr),out) +-#define HASH_ADD_STR(head,strfield,add) \ +- HASH_ADD(hh,head,strfield[0],(unsigned int)strlen(add->strfield),add) +-#define HASH_REPLACE_STR(head,strfield,add,replaced) \ +- HASH_REPLACE(hh,head,strfield[0],(unsigned)strlen(add->strfield),add,replaced) +-#define HASH_FIND_INT(head,findint,out) \ +- HASH_FIND(hh,head,findint,sizeof(int),out) +-#define HASH_ADD_INT(head,intfield,add) \ +- HASH_ADD(hh,head,intfield,sizeof(int),add) +-#define HASH_REPLACE_INT(head,intfield,add,replaced) \ +- HASH_REPLACE(hh,head,intfield,sizeof(int),add,replaced) +-#define HASH_FIND_PTR(head,findptr,out) \ +- HASH_FIND(hh,head,findptr,sizeof(void *),out) +-#define HASH_ADD_PTR(head,ptrfield,add) \ +- HASH_ADD(hh,head,ptrfield,sizeof(void *),add) +-#define HASH_REPLACE_PTR(head,ptrfield,add,replaced) \ +- HASH_REPLACE(hh,head,ptrfield,sizeof(void *),add,replaced) +-#define HASH_DEL(head,delptr) \ +- HASH_DELETE(hh,head,delptr) +- +-/* HASH_FSCK checks hash integrity on every add/delete when HASH_DEBUG is defined. +- * This is for uthash developer only; it compiles away if HASH_DEBUG isn't defined. +- */ +-#ifdef HASH_DEBUG +-#define HASH_OOPS(...) do { fprintf(stderr,__VA_ARGS__); exit(-1); } while (0) +-#define HASH_FSCK(hh,head) \ +-do { \ +- struct UT_hash_handle *_thh; \ +- if (head) { \ +- unsigned _bkt_i; \ +- unsigned _count; \ +- char *_prev; \ +- _count = 0; \ +- for( _bkt_i = 0; _bkt_i < (head)->hh.tbl->num_buckets; _bkt_i++) { \ +- unsigned _bkt_count = 0; \ +- _thh = (head)->hh.tbl->buckets[_bkt_i].hh_head; \ +- _prev = NULL; \ +- while (_thh) { \ +- if (_prev != (char*)(_thh->hh_prev)) { \ +- HASH_OOPS("invalid hh_prev %p, actual %p\n", \ +- _thh->hh_prev, _prev ); \ +- } \ +- _bkt_count++; \ +- _prev = (char*)(_thh); \ +- _thh = _thh->hh_next; \ +- } \ +- _count += _bkt_count; \ +- if ((head)->hh.tbl->buckets[_bkt_i].count != _bkt_count) { \ +- HASH_OOPS("invalid bucket count %u, actual %u\n", \ +- (head)->hh.tbl->buckets[_bkt_i].count, _bkt_count); \ +- } \ +- } \ +- if (_count != (head)->hh.tbl->num_items) { \ +- HASH_OOPS("invalid hh item count %u, actual %u\n", \ +- (head)->hh.tbl->num_items, _count ); \ +- } \ +- /* traverse hh in app order; check next/prev integrity, count */ \ +- _count = 0; \ +- _prev = NULL; \ +- _thh = &(head)->hh; \ +- while (_thh) { \ +- _count++; \ +- if (_prev !=(char*)(_thh->prev)) { \ +- HASH_OOPS("invalid prev %p, actual %p\n", \ +- _thh->prev, _prev ); \ +- } \ +- _prev = (char*)ELMT_FROM_HH((head)->hh.tbl, _thh); \ +- _thh = ( _thh->next ? (UT_hash_handle*)((char*)(_thh->next) + \ +- (head)->hh.tbl->hho) : NULL ); \ +- } \ +- if (_count != (head)->hh.tbl->num_items) { \ +- HASH_OOPS("invalid app item count %u, actual %u\n", \ +- (head)->hh.tbl->num_items, _count ); \ +- } \ +- } \ +-} while (0) +-#else +-#define HASH_FSCK(hh,head) +-#endif +- +-/* When compiled with -DHASH_EMIT_KEYS, length-prefixed keys are emitted to +- * the descriptor to which this macro is defined for tuning the hash function. +- * The app can #include to get the prototype for write(2). */ +-#ifdef HASH_EMIT_KEYS +-#define HASH_EMIT_KEY(hh,head,keyptr,fieldlen) \ +-do { \ +- unsigned _klen = fieldlen; \ +- write(HASH_EMIT_KEYS, &_klen, sizeof(_klen)); \ +- write(HASH_EMIT_KEYS, keyptr, (unsigned long)fieldlen); \ +-} while (0) +-#else +-#define HASH_EMIT_KEY(hh,head,keyptr,fieldlen) +-#endif +- +-/* default to Jenkin's hash unless overridden e.g. DHASH_FUNCTION=HASH_SAX */ +-#ifdef HASH_FUNCTION +-#define HASH_FCN HASH_FUNCTION +-#else +-#define HASH_FCN HASH_JEN +-#endif +- +-/* The Bernstein hash function, used in Perl prior to v5.6. Note (x<<5+x)=x*33. */ +-#define HASH_BER(key,keylen,num_bkts,hashv,bkt) \ +-do { \ +- unsigned _hb_keylen=(unsigned)keylen; \ +- const unsigned char *_hb_key=(const unsigned char*)(key); \ +- (hashv) = 0; \ +- while (_hb_keylen-- != 0U) { \ +- (hashv) = (((hashv) << 5) + (hashv)) + *_hb_key++; \ +- } \ +- bkt = (hashv) & (num_bkts-1U); \ +-} while (0) +- +- +-/* SAX/FNV/OAT/JEN hash functions are macro variants of those listed at +- * http://eternallyconfuzzled.com/tuts/algorithms/jsw_tut_hashing.aspx */ +-#define HASH_SAX(key,keylen,num_bkts,hashv,bkt) \ +-do { \ +- unsigned _sx_i; \ +- const unsigned char *_hs_key=(const unsigned char*)(key); \ +- hashv = 0; \ +- for(_sx_i=0; _sx_i < keylen; _sx_i++) { \ +- hashv ^= (hashv << 5) + (hashv >> 2) + _hs_key[_sx_i]; \ +- } \ +- bkt = hashv & (num_bkts-1U); \ +-} while (0) +-/* FNV-1a variation */ +-#define HASH_FNV(key,keylen,num_bkts,hashv,bkt) \ +-do { \ +- unsigned _fn_i; \ +- const unsigned char *_hf_key=(const unsigned char*)(key); \ +- hashv = 2166136261U; \ +- for(_fn_i=0; _fn_i < keylen; _fn_i++) { \ +- hashv = hashv ^ _hf_key[_fn_i]; \ +- hashv = hashv * 16777619U; \ +- } \ +- bkt = hashv & (num_bkts-1U); \ +-} while(0) +- +-#define HASH_OAT(key,keylen,num_bkts,hashv,bkt) \ +-do { \ +- unsigned _ho_i; \ +- const unsigned char *_ho_key=(const unsigned char*)(key); \ +- hashv = 0; \ +- for(_ho_i=0; _ho_i < keylen; _ho_i++) { \ +- hashv += _ho_key[_ho_i]; \ +- hashv += (hashv << 10); \ +- hashv ^= (hashv >> 6); \ +- } \ +- hashv += (hashv << 3); \ +- hashv ^= (hashv >> 11); \ +- hashv += (hashv << 15); \ +- bkt = hashv & (num_bkts-1U); \ +-} while(0) +- +-#define HASH_JEN_MIX(a,b,c) \ +-do { \ +- a -= b; a -= c; a ^= ( c >> 13 ); \ +- b -= c; b -= a; b ^= ( a << 8 ); \ +- c -= a; c -= b; c ^= ( b >> 13 ); \ +- a -= b; a -= c; a ^= ( c >> 12 ); \ +- b -= c; b -= a; b ^= ( a << 16 ); \ +- c -= a; c -= b; c ^= ( b >> 5 ); \ +- a -= b; a -= c; a ^= ( c >> 3 ); \ +- b -= c; b -= a; b ^= ( a << 10 ); \ +- c -= a; c -= b; c ^= ( b >> 15 ); \ +-} while (0) +- +-#define HASH_JEN(key,keylen,num_bkts,hashv,bkt) \ +-do { \ +- unsigned _hj_i,_hj_j,_hj_k; \ +- unsigned const char *_hj_key=(unsigned const char*)(key); \ +- hashv = 0xfeedbeefu; \ +- _hj_i = _hj_j = 0x9e3779b9u; \ +- _hj_k = (unsigned)(keylen); \ +- while (_hj_k >= 12U) { \ +- _hj_i += (_hj_key[0] + ( (unsigned)_hj_key[1] << 8 ) \ +- + ( (unsigned)_hj_key[2] << 16 ) \ +- + ( (unsigned)_hj_key[3] << 24 ) ); \ +- _hj_j += (_hj_key[4] + ( (unsigned)_hj_key[5] << 8 ) \ +- + ( (unsigned)_hj_key[6] << 16 ) \ +- + ( (unsigned)_hj_key[7] << 24 ) ); \ +- hashv += (_hj_key[8] + ( (unsigned)_hj_key[9] << 8 ) \ +- + ( (unsigned)_hj_key[10] << 16 ) \ +- + ( (unsigned)_hj_key[11] << 24 ) ); \ +- \ +- HASH_JEN_MIX(_hj_i, _hj_j, hashv); \ +- \ +- _hj_key += 12; \ +- _hj_k -= 12U; \ +- } \ +- hashv += (unsigned)(keylen); \ +- switch ( _hj_k ) { \ +- case 11: hashv += ( (unsigned)_hj_key[10] << 24 ); /* FALLTHROUGH */ \ +- case 10: hashv += ( (unsigned)_hj_key[9] << 16 ); /* FALLTHROUGH */ \ +- case 9: hashv += ( (unsigned)_hj_key[8] << 8 ); /* FALLTHROUGH */ \ +- case 8: _hj_j += ( (unsigned)_hj_key[7] << 24 ); /* FALLTHROUGH */ \ +- case 7: _hj_j += ( (unsigned)_hj_key[6] << 16 ); /* FALLTHROUGH */ \ +- case 6: _hj_j += ( (unsigned)_hj_key[5] << 8 ); /* FALLTHROUGH */ \ +- case 5: _hj_j += _hj_key[4]; /* FALLTHROUGH */ \ +- case 4: _hj_i += ( (unsigned)_hj_key[3] << 24 ); /* FALLTHROUGH */ \ +- case 3: _hj_i += ( (unsigned)_hj_key[2] << 16 ); /* FALLTHROUGH */ \ +- case 2: _hj_i += ( (unsigned)_hj_key[1] << 8 ); /* FALLTHROUGH */ \ +- case 1: _hj_i += _hj_key[0]; \ +- } \ +- HASH_JEN_MIX(_hj_i, _hj_j, hashv); \ +- bkt = hashv & (num_bkts-1U); \ +-} while(0) +- +-/* The Paul Hsieh hash function */ +-#undef get16bits +-#if (defined(__GNUC__) && defined(__i386__)) || defined(__WATCOMC__) \ +- || defined(_MSC_VER) || defined (__BORLANDC__) || defined (__TURBOC__) +-#define get16bits(d) (*((const uint16_t *) (d))) +-#endif +- +-#if !defined (get16bits) +-#define get16bits(d) ((((uint32_t)(((const uint8_t *)(d))[1])) << 8) \ +- +(uint32_t)(((const uint8_t *)(d))[0]) ) +-#endif +-#define HASH_SFH(key,keylen,num_bkts,hashv,bkt) \ +-do { \ +- unsigned const char *_sfh_key=(unsigned const char*)(key); \ +- uint32_t _sfh_tmp, _sfh_len = (uint32_t)keylen; \ +- \ +- unsigned _sfh_rem = _sfh_len & 3U; \ +- _sfh_len >>= 2; \ +- hashv = 0xcafebabeu; \ +- \ +- /* Main loop */ \ +- for (;_sfh_len > 0U; _sfh_len--) { \ +- hashv += get16bits (_sfh_key); \ +- _sfh_tmp = ((uint32_t)(get16bits (_sfh_key+2)) << 11) ^ hashv; \ +- hashv = (hashv << 16) ^ _sfh_tmp; \ +- _sfh_key += 2U*sizeof (uint16_t); \ +- hashv += hashv >> 11; \ +- } \ +- \ +- /* Handle end cases */ \ +- switch (_sfh_rem) { \ +- case 3: hashv += get16bits (_sfh_key); \ +- hashv ^= hashv << 16; \ +- hashv ^= (uint32_t)(_sfh_key[sizeof (uint16_t)]) << 18; \ +- hashv += hashv >> 11; \ +- break; \ +- case 2: hashv += get16bits (_sfh_key); \ +- hashv ^= hashv << 11; \ +- hashv += hashv >> 17; \ +- break; \ +- case 1: hashv += *_sfh_key; \ +- hashv ^= hashv << 10; \ +- hashv += hashv >> 1; \ +- } \ +- \ +- /* Force "avalanching" of final 127 bits */ \ +- hashv ^= hashv << 3; \ +- hashv += hashv >> 5; \ +- hashv ^= hashv << 4; \ +- hashv += hashv >> 17; \ +- hashv ^= hashv << 25; \ +- hashv += hashv >> 6; \ +- bkt = hashv & (num_bkts-1U); \ +-} while(0) +- +-#ifdef HASH_USING_NO_STRICT_ALIASING +-/* The MurmurHash exploits some CPU's (x86,x86_64) tolerance for unaligned reads. +- * For other types of CPU's (e.g. Sparc) an unaligned read causes a bus error. +- * MurmurHash uses the faster approach only on CPU's where we know it's safe. +- * +- * Note the preprocessor built-in defines can be emitted using: +- * +- * gcc -m64 -dM -E - < /dev/null (on gcc) +- * cc -## a.c (where a.c is a simple test file) (Sun Studio) +- */ +-#if (defined(__i386__) || defined(__x86_64__) || defined(_M_IX86)) +-#define MUR_GETBLOCK(p,i) p[i] +-#else /* non intel */ +-#define MUR_PLUS0_ALIGNED(p) (((unsigned long)p & 3UL) == 0UL) +-#define MUR_PLUS1_ALIGNED(p) (((unsigned long)p & 3UL) == 1UL) +-#define MUR_PLUS2_ALIGNED(p) (((unsigned long)p & 3UL) == 2UL) +-#define MUR_PLUS3_ALIGNED(p) (((unsigned long)p & 3UL) == 3UL) +-#define WP(p) ((uint32_t*)((unsigned long)(p) & ~3UL)) +-#if (defined(__BIG_ENDIAN__) || defined(SPARC) || defined(__ppc__) || defined(__ppc64__)) +-#define MUR_THREE_ONE(p) ((((*WP(p))&0x00ffffff) << 8) | (((*(WP(p)+1))&0xff000000) >> 24)) +-#define MUR_TWO_TWO(p) ((((*WP(p))&0x0000ffff) <<16) | (((*(WP(p)+1))&0xffff0000) >> 16)) +-#define MUR_ONE_THREE(p) ((((*WP(p))&0x000000ff) <<24) | (((*(WP(p)+1))&0xffffff00) >> 8)) +-#else /* assume little endian non-intel */ +-#define MUR_THREE_ONE(p) ((((*WP(p))&0xffffff00) >> 8) | (((*(WP(p)+1))&0x000000ff) << 24)) +-#define MUR_TWO_TWO(p) ((((*WP(p))&0xffff0000) >>16) | (((*(WP(p)+1))&0x0000ffff) << 16)) +-#define MUR_ONE_THREE(p) ((((*WP(p))&0xff000000) >>24) | (((*(WP(p)+1))&0x00ffffff) << 8)) +-#endif +-#define MUR_GETBLOCK(p,i) (MUR_PLUS0_ALIGNED(p) ? ((p)[i]) : \ +- (MUR_PLUS1_ALIGNED(p) ? MUR_THREE_ONE(p) : \ +- (MUR_PLUS2_ALIGNED(p) ? MUR_TWO_TWO(p) : \ +- MUR_ONE_THREE(p)))) +-#endif +-#define MUR_ROTL32(x,r) (((x) << (r)) | ((x) >> (32 - (r)))) +-#define MUR_FMIX(_h) \ +-do { \ +- _h ^= _h >> 16; \ +- _h *= 0x85ebca6bu; \ +- _h ^= _h >> 13; \ +- _h *= 0xc2b2ae35u; \ +- _h ^= _h >> 16; \ +-} while(0) +- +-#define HASH_MUR(key,keylen,num_bkts,hashv,bkt) \ +-do { \ +- const uint8_t *_mur_data = (const uint8_t*)(key); \ +- const int _mur_nblocks = (int)(keylen) / 4; \ +- uint32_t _mur_h1 = 0xf88D5353u; \ +- uint32_t _mur_c1 = 0xcc9e2d51u; \ +- uint32_t _mur_c2 = 0x1b873593u; \ +- uint32_t _mur_k1 = 0; \ +- const uint8_t *_mur_tail; \ +- const uint32_t *_mur_blocks = (const uint32_t*)(_mur_data+(_mur_nblocks*4)); \ +- int _mur_i; \ +- for(_mur_i = -_mur_nblocks; _mur_i!=0; _mur_i++) { \ +- _mur_k1 = MUR_GETBLOCK(_mur_blocks,_mur_i); \ +- _mur_k1 *= _mur_c1; \ +- _mur_k1 = MUR_ROTL32(_mur_k1,15); \ +- _mur_k1 *= _mur_c2; \ +- \ +- _mur_h1 ^= _mur_k1; \ +- _mur_h1 = MUR_ROTL32(_mur_h1,13); \ +- _mur_h1 = (_mur_h1*5U) + 0xe6546b64u; \ +- } \ +- _mur_tail = (const uint8_t*)(_mur_data + (_mur_nblocks*4)); \ +- _mur_k1=0; \ +- switch((keylen) & 3U) { \ +- case 3: _mur_k1 ^= (uint32_t)_mur_tail[2] << 16; /* FALLTHROUGH */ \ +- case 2: _mur_k1 ^= (uint32_t)_mur_tail[1] << 8; /* FALLTHROUGH */ \ +- case 1: _mur_k1 ^= (uint32_t)_mur_tail[0]; \ +- _mur_k1 *= _mur_c1; \ +- _mur_k1 = MUR_ROTL32(_mur_k1,15); \ +- _mur_k1 *= _mur_c2; \ +- _mur_h1 ^= _mur_k1; \ +- } \ +- _mur_h1 ^= (uint32_t)(keylen); \ +- MUR_FMIX(_mur_h1); \ +- hashv = _mur_h1; \ +- bkt = hashv & (num_bkts-1U); \ +-} while(0) +-#endif /* HASH_USING_NO_STRICT_ALIASING */ +- +-/* key comparison function; return 0 if keys equal */ +-#define HASH_KEYCMP(a,b,len) memcmp(a,b,(unsigned long)(len)) +- +-/* iterate over items in a known bucket to find desired item */ +-#define HASH_FIND_IN_BKT(tbl,hh,head,keyptr,keylen_in,out) \ +-do { \ +- if (head.hh_head != NULL) { DECLTYPE_ASSIGN(out,ELMT_FROM_HH(tbl,head.hh_head)); } \ +- else { out=NULL; } \ +- while (out != NULL) { \ +- if ((out)->hh.keylen == (keylen_in)) { \ +- if ((HASH_KEYCMP((out)->hh.key,keyptr,keylen_in)) == 0) { break; } \ +- } \ +- if ((out)->hh.hh_next != NULL) { DECLTYPE_ASSIGN(out,ELMT_FROM_HH(tbl,(out)->hh.hh_next)); } \ +- else { out = NULL; } \ +- } \ +-} while(0) +- +-/* add an item to a bucket */ +-#define HASH_ADD_TO_BKT(head,addhh) \ +-do { \ +- head.count++; \ +- (addhh)->hh_next = head.hh_head; \ +- (addhh)->hh_prev = NULL; \ +- if (head.hh_head != NULL) { (head).hh_head->hh_prev = (addhh); } \ +- (head).hh_head=addhh; \ +- if ((head.count >= ((head.expand_mult+1U) * HASH_BKT_CAPACITY_THRESH)) \ +- && ((addhh)->tbl->noexpand != 1U)) { \ +- HASH_EXPAND_BUCKETS((addhh)->tbl); \ +- } \ +-} while(0) +- +-/* remove an item from a given bucket */ +-#define HASH_DEL_IN_BKT(hh,head,hh_del) \ +- (head).count--; \ +- if ((head).hh_head == hh_del) { \ +- (head).hh_head = hh_del->hh_next; \ +- } \ +- if (hh_del->hh_prev) { \ +- hh_del->hh_prev->hh_next = hh_del->hh_next; \ +- } \ +- if (hh_del->hh_next) { \ +- hh_del->hh_next->hh_prev = hh_del->hh_prev; \ +- } +- +-/* Bucket expansion has the effect of doubling the number of buckets +- * and redistributing the items into the new buckets. Ideally the +- * items will distribute more or less evenly into the new buckets +- * (the extent to which this is true is a measure of the quality of +- * the hash function as it applies to the key domain). +- * +- * With the items distributed into more buckets, the chain length +- * (item count) in each bucket is reduced. Thus by expanding buckets +- * the hash keeps a bound on the chain length. This bounded chain +- * length is the essence of how a hash provides constant time lookup. +- * +- * The calculation of tbl->ideal_chain_maxlen below deserves some +- * explanation. First, keep in mind that we're calculating the ideal +- * maximum chain length based on the *new* (doubled) bucket count. +- * In fractions this is just n/b (n=number of items,b=new num buckets). +- * Since the ideal chain length is an integer, we want to calculate +- * ceil(n/b). We don't depend on floating point arithmetic in this +- * hash, so to calculate ceil(n/b) with integers we could write +- * +- * ceil(n/b) = (n/b) + ((n%b)?1:0) +- * +- * and in fact a previous version of this hash did just that. +- * But now we have improved things a bit by recognizing that b is +- * always a power of two. We keep its base 2 log handy (call it lb), +- * so now we can write this with a bit shift and logical AND: +- * +- * ceil(n/b) = (n>>lb) + ( (n & (b-1)) ? 1:0) +- * +- */ +-#define HASH_EXPAND_BUCKETS(tbl) \ +-do { \ +- unsigned _he_bkt; \ +- unsigned _he_bkt_i; \ +- struct UT_hash_handle *_he_thh, *_he_hh_nxt; \ +- UT_hash_bucket *_he_new_buckets, *_he_newbkt; \ +- _he_new_buckets = (UT_hash_bucket*)uthash_malloc( \ +- 2UL * tbl->num_buckets * sizeof(struct UT_hash_bucket)); \ +- if (!_he_new_buckets) { uthash_fatal( "out of memory"); } \ +- memset(_he_new_buckets, 0, \ +- 2UL * tbl->num_buckets * sizeof(struct UT_hash_bucket)); \ +- tbl->ideal_chain_maxlen = \ +- (tbl->num_items >> (tbl->log2_num_buckets+1U)) + \ +- (((tbl->num_items & ((tbl->num_buckets*2U)-1U)) != 0U) ? 1U : 0U); \ +- tbl->nonideal_items = 0; \ +- for(_he_bkt_i = 0; _he_bkt_i < tbl->num_buckets; _he_bkt_i++) \ +- { \ +- _he_thh = tbl->buckets[ _he_bkt_i ].hh_head; \ +- while (_he_thh != NULL) { \ +- _he_hh_nxt = _he_thh->hh_next; \ +- HASH_TO_BKT( _he_thh->hashv, tbl->num_buckets*2U, _he_bkt); \ +- _he_newbkt = &(_he_new_buckets[ _he_bkt ]); \ +- if (++(_he_newbkt->count) > tbl->ideal_chain_maxlen) { \ +- tbl->nonideal_items++; \ +- _he_newbkt->expand_mult = _he_newbkt->count / \ +- tbl->ideal_chain_maxlen; \ +- } \ +- _he_thh->hh_prev = NULL; \ +- _he_thh->hh_next = _he_newbkt->hh_head; \ +- if (_he_newbkt->hh_head != NULL) { _he_newbkt->hh_head->hh_prev = \ +- _he_thh; } \ +- _he_newbkt->hh_head = _he_thh; \ +- _he_thh = _he_hh_nxt; \ +- } \ +- } \ +- uthash_free( tbl->buckets, tbl->num_buckets*sizeof(struct UT_hash_bucket) ); \ +- tbl->num_buckets *= 2U; \ +- tbl->log2_num_buckets++; \ +- tbl->buckets = _he_new_buckets; \ +- tbl->ineff_expands = (tbl->nonideal_items > (tbl->num_items >> 1)) ? \ +- (tbl->ineff_expands+1U) : 0U; \ +- if (tbl->ineff_expands > 1U) { \ +- tbl->noexpand=1; \ +- uthash_noexpand_fyi(tbl); \ +- } \ +- uthash_expand_fyi(tbl); \ +-} while(0) +- +- +-/* This is an adaptation of Simon Tatham's O(n log(n)) mergesort */ +-/* Note that HASH_SORT assumes the hash handle name to be hh. +- * HASH_SRT was added to allow the hash handle name to be passed in. */ +-#define HASH_SORT(head,cmpfcn) HASH_SRT(hh,head,cmpfcn) +-#define HASH_SRT(hh,head,cmpfcn) \ +-do { \ +- unsigned _hs_i; \ +- unsigned _hs_looping,_hs_nmerges,_hs_insize,_hs_psize,_hs_qsize; \ +- struct UT_hash_handle *_hs_p, *_hs_q, *_hs_e, *_hs_list, *_hs_tail; \ +- if (head != NULL) { \ +- _hs_insize = 1; \ +- _hs_looping = 1; \ +- _hs_list = &((head)->hh); \ +- while (_hs_looping != 0U) { \ +- _hs_p = _hs_list; \ +- _hs_list = NULL; \ +- _hs_tail = NULL; \ +- _hs_nmerges = 0; \ +- while (_hs_p != NULL) { \ +- _hs_nmerges++; \ +- _hs_q = _hs_p; \ +- _hs_psize = 0; \ +- for ( _hs_i = 0; _hs_i < _hs_insize; _hs_i++ ) { \ +- _hs_psize++; \ +- _hs_q = (UT_hash_handle*)((_hs_q->next != NULL) ? \ +- ((void*)((char*)(_hs_q->next) + \ +- (head)->hh.tbl->hho)) : NULL); \ +- if (! (_hs_q) ) { break; } \ +- } \ +- _hs_qsize = _hs_insize; \ +- while ((_hs_psize > 0U) || ((_hs_qsize > 0U) && (_hs_q != NULL))) {\ +- if (_hs_psize == 0U) { \ +- _hs_e = _hs_q; \ +- _hs_q = (UT_hash_handle*)((_hs_q->next != NULL) ? \ +- ((void*)((char*)(_hs_q->next) + \ +- (head)->hh.tbl->hho)) : NULL); \ +- _hs_qsize--; \ +- } else if ( (_hs_qsize == 0U) || (_hs_q == NULL) ) { \ +- _hs_e = _hs_p; \ +- if (_hs_p != NULL){ \ +- _hs_p = (UT_hash_handle*)((_hs_p->next != NULL) ? \ +- ((void*)((char*)(_hs_p->next) + \ +- (head)->hh.tbl->hho)) : NULL); \ +- } \ +- _hs_psize--; \ +- } else if (( \ +- cmpfcn(DECLTYPE(head)(ELMT_FROM_HH((head)->hh.tbl,_hs_p)), \ +- DECLTYPE(head)(ELMT_FROM_HH((head)->hh.tbl,_hs_q))) \ +- ) <= 0) { \ +- _hs_e = _hs_p; \ +- if (_hs_p != NULL){ \ +- _hs_p = (UT_hash_handle*)((_hs_p->next != NULL) ? \ +- ((void*)((char*)(_hs_p->next) + \ +- (head)->hh.tbl->hho)) : NULL); \ +- } \ +- _hs_psize--; \ +- } else { \ +- _hs_e = _hs_q; \ +- _hs_q = (UT_hash_handle*)((_hs_q->next != NULL) ? \ +- ((void*)((char*)(_hs_q->next) + \ +- (head)->hh.tbl->hho)) : NULL); \ +- _hs_qsize--; \ +- } \ +- if ( _hs_tail != NULL ) { \ +- _hs_tail->next = ((_hs_e != NULL) ? \ +- ELMT_FROM_HH((head)->hh.tbl,_hs_e) : NULL); \ +- } else { \ +- _hs_list = _hs_e; \ +- } \ +- if (_hs_e != NULL) { \ +- _hs_e->prev = ((_hs_tail != NULL) ? \ +- ELMT_FROM_HH((head)->hh.tbl,_hs_tail) : NULL); \ +- } \ +- _hs_tail = _hs_e; \ +- } \ +- _hs_p = _hs_q; \ +- } \ +- if (_hs_tail != NULL){ \ +- _hs_tail->next = NULL; \ +- } \ +- if ( _hs_nmerges <= 1U ) { \ +- _hs_looping=0; \ +- (head)->hh.tbl->tail = _hs_tail; \ +- DECLTYPE_ASSIGN(head,ELMT_FROM_HH((head)->hh.tbl, _hs_list)); \ +- } \ +- _hs_insize *= 2U; \ +- } \ +- HASH_FSCK(hh,head); \ +- } \ +-} while (0) +- +-/* This function selects items from one hash into another hash. +- * The end result is that the selected items have dual presence +- * in both hashes. There is no copy of the items made; rather +- * they are added into the new hash through a secondary hash +- * hash handle that must be present in the structure. */ +-#define HASH_SELECT(hh_dst, dst, hh_src, src, cond) \ +-do { \ +- unsigned _src_bkt, _dst_bkt; \ +- void *_last_elt=NULL, *_elt; \ +- UT_hash_handle *_src_hh, *_dst_hh, *_last_elt_hh=NULL; \ +- ptrdiff_t _dst_hho = ((char*)(&(dst)->hh_dst) - (char*)(dst)); \ +- if (src != NULL) { \ +- for(_src_bkt=0; _src_bkt < (src)->hh_src.tbl->num_buckets; _src_bkt++) { \ +- for(_src_hh = (src)->hh_src.tbl->buckets[_src_bkt].hh_head; \ +- _src_hh != NULL; \ +- _src_hh = _src_hh->hh_next) { \ +- _elt = ELMT_FROM_HH((src)->hh_src.tbl, _src_hh); \ +- if (cond(_elt)) { \ +- _dst_hh = (UT_hash_handle*)(((char*)_elt) + _dst_hho); \ +- _dst_hh->key = _src_hh->key; \ +- _dst_hh->keylen = _src_hh->keylen; \ +- _dst_hh->hashv = _src_hh->hashv; \ +- _dst_hh->prev = _last_elt; \ +- _dst_hh->next = NULL; \ +- if (_last_elt_hh != NULL) { _last_elt_hh->next = _elt; } \ +- if (dst == NULL) { \ +- DECLTYPE_ASSIGN(dst,_elt); \ +- HASH_MAKE_TABLE(hh_dst,dst); \ +- } else { \ +- _dst_hh->tbl = (dst)->hh_dst.tbl; \ +- } \ +- HASH_TO_BKT(_dst_hh->hashv, _dst_hh->tbl->num_buckets, _dst_bkt); \ +- HASH_ADD_TO_BKT(_dst_hh->tbl->buckets[_dst_bkt],_dst_hh); \ +- (dst)->hh_dst.tbl->num_items++; \ +- _last_elt = _elt; \ +- _last_elt_hh = _dst_hh; \ +- } \ +- } \ +- } \ +- } \ +- HASH_FSCK(hh_dst,dst); \ +-} while (0) +- +-#define HASH_CLEAR(hh,head) \ +-do { \ +- if (head != NULL) { \ +- uthash_free((head)->hh.tbl->buckets, \ +- (head)->hh.tbl->num_buckets*sizeof(struct UT_hash_bucket)); \ +- HASH_BLOOM_FREE((head)->hh.tbl); \ +- uthash_free((head)->hh.tbl, sizeof(UT_hash_table)); \ +- (head)=NULL; \ +- } \ +-} while(0) +- +-#define HASH_OVERHEAD(hh,head) \ +- ((head != NULL) ? ( \ +- (size_t)(((head)->hh.tbl->num_items * sizeof(UT_hash_handle)) + \ +- ((head)->hh.tbl->num_buckets * sizeof(UT_hash_bucket)) + \ +- sizeof(UT_hash_table) + \ +- (HASH_BLOOM_BYTELEN))) : 0U) +- +-#ifdef NO_DECLTYPE +-#define HASH_ITER(hh,head,el,tmp) \ +-for(((el)=(head)), ((*(char**)(&(tmp)))=(char*)((head!=NULL)?(head)->hh.next:NULL)); \ +- (el) != NULL; ((el)=(tmp)), ((*(char**)(&(tmp)))=(char*)((tmp!=NULL)?(tmp)->hh.next:NULL))) +-#else +-#define HASH_ITER(hh,head,el,tmp) \ +-for(((el)=(head)), ((tmp)=DECLTYPE(el)((head!=NULL)?(head)->hh.next:NULL)); \ +- (el) != NULL; ((el)=(tmp)), ((tmp)=DECLTYPE(el)((tmp!=NULL)?(tmp)->hh.next:NULL))) +-#endif +- +-/* obtain a count of items in the hash */ +-#define HASH_COUNT(head) HASH_CNT(hh,head) +-#define HASH_CNT(hh,head) ((head != NULL)?((head)->hh.tbl->num_items):0U) +- +-typedef struct UT_hash_bucket { +- struct UT_hash_handle *hh_head; +- unsigned count; +- +- /* expand_mult is normally set to 0. In this situation, the max chain length +- * threshold is enforced at its default value, HASH_BKT_CAPACITY_THRESH. (If +- * the bucket's chain exceeds this length, bucket expansion is triggered). +- * However, setting expand_mult to a non-zero value delays bucket expansion +- * (that would be triggered by additions to this particular bucket) +- * until its chain length reaches a *multiple* of HASH_BKT_CAPACITY_THRESH. +- * (The multiplier is simply expand_mult+1). The whole idea of this +- * multiplier is to reduce bucket expansions, since they are expensive, in +- * situations where we know that a particular bucket tends to be overused. +- * It is better to let its chain length grow to a longer yet-still-bounded +- * value, than to do an O(n) bucket expansion too often. +- */ +- unsigned expand_mult; +- +-} UT_hash_bucket; +- +-/* random signature used only to find hash tables in external analysis */ +-#define HASH_SIGNATURE 0xa0111fe1u +-#define HASH_BLOOM_SIGNATURE 0xb12220f2u +- +-typedef struct UT_hash_table { +- UT_hash_bucket *buckets; +- unsigned num_buckets, log2_num_buckets; +- unsigned num_items; +- struct UT_hash_handle *tail; /* tail hh in app order, for fast append */ +- ptrdiff_t hho; /* hash handle offset (byte pos of hash handle in element */ +- +- /* in an ideal situation (all buckets used equally), no bucket would have +- * more than ceil(#items/#buckets) items. that's the ideal chain length. */ +- unsigned ideal_chain_maxlen; +- +- /* nonideal_items is the number of items in the hash whose chain position +- * exceeds the ideal chain maxlen. these items pay the penalty for an uneven +- * hash distribution; reaching them in a chain traversal takes >ideal steps */ +- unsigned nonideal_items; +- +- /* ineffective expands occur when a bucket doubling was performed, but +- * afterward, more than half the items in the hash had nonideal chain +- * positions. If this happens on two consecutive expansions we inhibit any +- * further expansion, as it's not helping; this happens when the hash +- * function isn't a good fit for the key domain. When expansion is inhibited +- * the hash will still work, albeit no longer in constant time. */ +- unsigned ineff_expands, noexpand; +- +- uint32_t signature; /* used only to find hash tables in external analysis */ +-#ifdef HASH_BLOOM +- uint32_t bloom_sig; /* used only to test bloom exists in external analysis */ +- uint8_t *bloom_bv; +- uint8_t bloom_nbits; +-#endif +- +-} UT_hash_table; +- +-typedef struct UT_hash_handle { +- struct UT_hash_table *tbl; +- void *prev; /* prev element in app order */ +- void *next; /* next element in app order */ +- struct UT_hash_handle *hh_prev; /* previous hh in bucket order */ +- struct UT_hash_handle *hh_next; /* next hh in bucket order */ +- void *key; /* ptr to enclosing struct's key */ +- unsigned keylen; /* enclosing struct's key len */ +- unsigned hashv; /* result of hash-fcn(key) */ +-} UT_hash_handle; +- +-#endif /* UTHASH_H */ diff --git a/talimatname/genel/u/usbutils/talimat b/talimatname/genel/u/usbutils/talimat new file mode 100644 index 000000000..28df24ca1 --- /dev/null +++ b/talimatname/genel/u/usbutils/talimat @@ -0,0 +1,22 @@ +# Tanım: USB Aygıt Yardımcı Programları +# URL: http://downloads.sourceforge.net/linux-usb/ +# Paketçi: milisarge +# Gerekler: libusb-compat + +isim=usbutils +surum=008 +devir=1 + +kaynak=(http://www.kernel.org/pub/linux/utils/usb/usbutils/usbutils-$surum.tar.xz) + +derle() { +cd $isim-$surum +sed -i '/^usbids/ s:usb.ids:hwdata/&:' lsusb.py +./configure --prefix=/usr \ +--datadir=/usr/share/hwdata \ +--disable-zlib \ +--datadir=/usr/share/misc +mkdir -p $PKG/usr/share/hwdata +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/u/usbutils/usbutils.kur-kos b/talimatname/genel/u/usbutils/usbutils.kur-kos new file mode 100644 index 000000000..64b2dc56f --- /dev/null +++ b/talimatname/genel/u/usbutils/usbutils.kur-kos @@ -0,0 +1 @@ +wget http://www.linux-usb.org/usb.ids -O usr/share/hwdata/usb.ids diff --git a/talimatname/genel/u/uthash/talimat b/talimatname/genel/u/uthash/talimat new file mode 100644 index 000000000..53a59c3c2 --- /dev/null +++ b/talimatname/genel/u/uthash/talimat @@ -0,0 +1,17 @@ +# Tanım: Karma tabloların ve bağlı bir listenin C önişlemci uygulamaları +# URL: https://troydhanson.github.io/uthash/ +# Paketçi: milisarge +# Gerekler: + +isim=uthash +surum=2.0.2 +devir=1 +kaynak=(https://github.com/troydhanson/uthash/archive/v$surum.tar.gz) + +derle() { + cd "${SRC}/${isim}-${surum}/src" + install -dm755 "${PKG}"/usr/include/ + for h in *.h; do + install -m 644 ${h} "${PKG}"/usr/include/ + done +} diff --git a/talimatname/genel/u/utox/talimat b/talimatname/genel/u/utox/talimat new file mode 100644 index 000000000..ba4d70375 --- /dev/null +++ b/talimatname/genel/u/utox/talimat @@ -0,0 +1,16 @@ +# Tanım: Hafif Tox istemcisi +# URL: https://github.com/GrayHatter/uTox +# Paketçi: milisarge +# Gerekler: gtk3 toxcore openal v4l-utils xorg-libxrender dbus hicolor-icon-theme xorg-fontconfig desktop-file-utils xorg-libxext xorg-libxrender filter_audio + +isim=utox +_isim=uTox +surum=0.9.4 +devir=1 +kaynak=(https://github.com/GrayHatter/$_name/archive/v$surum/$isim-$surum.tar.gz) + +derle() { + cd $_name-$surum + make + make PREFIX=/usr DESTDIR=$PKG install +} diff --git a/talimatname/genel/u/uwebsockets/talimat b/talimatname/genel/u/uwebsockets/talimat new file mode 100644 index 000000000..5bbcb7703 --- /dev/null +++ b/talimatname/genel/u/uwebsockets/talimat @@ -0,0 +1,18 @@ +# Tanım: uWS etkin,hafif websocket kütüphanesi +# URL: https://github.com/uWebSockets/uWebSockets +# Paketçi: milisarge +# Gerekler: + +isim=uwebsockets +surum=0.14.6 +devir=1 +kaynak=(https://github.com/uNetworking/uWebSockets/archive/v${surum}.tar.gz::uWebSockets-${surum}.tar.gz) + +derle() { + cd uWebSockets-${surum} + make + mkdir -p "${PKG}/usr/lib" + mv "${SRC}/uWebSockets-${surum}/libuWS.so" "${PKG}/usr/lib" + mkdir -p "${PKG}/usr/include/uWS" + mv "${SRC}/uWebSockets-${surum}/src/"*.h "${PKG}/usr/include/uWS" +} diff --git a/talimatname/genel/u/uyap/product_logo_32.xpm b/talimatname/genel/u/uyap/product_logo_32.xpm new file mode 100644 index 000000000..cd43fd6db --- /dev/null +++ b/talimatname/genel/u/uyap/product_logo_32.xpm @@ -0,0 +1,209 @@ +/* XPM */ +static char *product_logo___[] = { +/* columns rows colors chars-per-pixel */ +"32 32 171 2", +" c #171615", +". c #222120", +"X c #292827", +"o c #2B2A29", +"O c #373635", +"+ c #3F3E3D", +"@ c #434342", +"# c #484746", +"$ c #494847", +"% c #4C4C4B", +"& c #525250", +"* c #585756", +"= c #5E5D5C", +"- c #605F5F", +"; c #61605F", +": c #636261", +"> c #6C6B6B", +", c #706F6E", +"< c #70706F", +"1 c #727271", +"2 c #7C7B7B", +"3 c #851C1A", +"4 c #8A1E1C", +"5 c #911F1D", +"6 c #9E1D1B", +"7 c #A20504", +"8 c #AB0606", +"9 c #A60D0C", +"0 c #AC1615", +"q c #A31C1A", +"w c #AC1C1C", +"e c #B31D1E", +"r c #B81F1F", +"t c #9A211F", +"y c #A3201F", +"u c #AB201F", +"i c #B41F20", +"p c #BA1E20", +"a c #A32220", +"s c #AA2220", +"d c #B32121", +"f c #BB2022", +"g c #BB2929", +"h c #B53232", +"j c #BA3636", +"k c #BD3E3E", +"l c #C31618", +"z c #C01B1D", +"x c #CF1B1F", +"c c #C21E21", +"v c #CC1F23", +"b c #D31F23", +"n c #C32022", +"m c #CB2023", +"M c #D52427", +"N c #D82228", +"B c #D22F33", +"V c #C53A3C", +"C c #DB3E42", +"Z c #B14443", +"A c #BD4242", +"S c #BF4F4F", +"D c #BF4F53", +"F c #BB5C5B", +"G c #BD6D6F", +"H c #DB494C", +"J c #C95656", +"K c #C45D5D", +"L c #CD5B5C", +"P c #DF5255", +"I c #D45458", +"U c #DA5458", +"Y c #D25B5D", +"T c #E04C51", +"R c #E15559", +"E c #E3595E", +"W c #D05F60", +"Q c #E55D61", +"! c #C56464", +"~ c #C96464", +"^ c #C56A68", +"/ c #CD686A", +"( c #D36364", +") c #D66769", +"_ c #D76D6E", +"` c #DD6C6E", +"' c #C57474", +"] c #CE7374", +"[ c #D17777", +"{ c #D97374", +"} c #DC7A7B", +"| c #E66165", +" . c #EA6165", +".. c #E56568", +"X. c #E96A6E", +"o. c #E66E72", +"O. c #EB6D71", +"+. c #EA7176", +"@. c #EC767A", +"#. c #E37B7D", +"$. c #EC7A7E", +"%. c #F07A7D", +"&. c #D67F81", +"*. c #E57E80", +"=. c #ED7D81", +"-. c #868585", +";. c #898787", +":. c #888887", +">. c #8C8B8B", +",. c #908F8F", +"<. c #8F908F", +"1. c #8F9190", +"2. c #949494", +"3. c #9C9D9C", +"4. c #A5A5A4", +"5. c #A8A8A7", +"6. c #A6A9A9", +"7. c #ADACAB", +"8. c #AFB1B0", +"9. c #B4B3B3", +"0. c #B8B7B7", +"q. c #B7BAB9", +"w. c #BEBEBD", +"e. c #CD8280", +"r. c #D28080", +"t. c #DB8284", +"y. c #DB8788", +"u. c #D78C8C", +"i. c #DA8B8B", +"p. c #D69B9A", +"a. c #E38285", +"s. c #EF8386", +"d. c #E78B8E", +"f. c #EC8A8D", +"g. c #F18689", +"h. c #F28A8D", +"j. c #E98F92", +"k. c #F38D91", +"l. c #EF9396", +"z. c #E99698", +"x. c #E79899", +"c. c #F19093", +"v. c #E89FA0", +"b. c #DFA8A8", +"n. c #C0BFBF", +"m. c #EFA2A4", +"M. c #EDA6A8", +"N. c #F1A3A6", +"B. c #E5B5B5", +"V. c #ECB6B7", +"C. c #E4BFBF", +"Z. c #ECBFBF", +"A. c #F3B1B3", +"S. c #C2C1C1", +"D. c #C9C9C8", +"F. c #CED0D0", +"G. c #DADADA", +"H. c #EAC5C4", +"J. c #F5C2C3", +"K. c #F4DADA", +"L. c #F9DDDE", +"P. c #E3E3E3", +"I. c #F5E3E3", +"U. c #FAE7E8", +"Y. c #F6EBEB", +"T. c #FBEDED", +"R. c #F6F6F6", +"E. c #FAF5F6", +"W. c #F7F8F8", +"Q. c #FEFEFE", +"!. c None", +/* pixels */ +"!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.", +"!.!.!.!.!.!.!.!.!.!.!.!.!.!.} *.#.{ !.!.!.!.!.!.!.!.!.!.!.!.!.!.", +"!.!.!.!.!.!.!.!.!.!.!.t.k.h.g.s.=.%.%.%.) !.!.!.!.!.!.!.!.!.!.!.", +"!.!.!.!.!.!.!.!.' d.f.f.s.=.$.$.$.@.+.+.O.X...D !.!.!.!.!.!.!.!.", +"!.!.!.!.!.!.!.t.c.f.l.N.A.J.J.N.l.=.X.X.X...| .I !.!.!.!.!.!.!.", +"!.!.!.!.!.!.d.f.f.L.E.Q.Q.Q.Q.Q.Q.T.J.| ..| Q E E C !.!.!.!.!.!.", +"!.!.!.!.!.d.f.m.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.L.o.E E R T N b !.!.!.!.!.", +"!.!.!.!.&.f.M.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.T...R P M b b c !.!.!.!.", +"!.!.!.G f.j.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.K.H M b b b b w !.!.!.", +"!.!.!.a.a.U.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.M.x b b b b v !.!.!.", +"!.!.!.a.z.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.U.B v v v v v !.!.!.", +"!.!.] #.V.8.G.Q.Q.9.7.7.>.>.>.P.Q.Q.9.> : - 3.U v v v v v p !.!.", +"!.!.#.` I.>.D.Q.Q.2.>.:., 2.-.# P.2.@ > > > 6.` v v v v v m !.!.", +"!.!.} ( Q.:.D.Q.Q.2.;.-.;.Q.Q.2 1 + 4.3.>.;.q.x.l n n n n m !.!.", +"!.! { Y Q.-.n.Q.Q.>.-.>.<.Q.Q.1 % O 5.> = = 3.v.l n n n n n e !.", +"!./ _ Y E.3.1 9.5.& S.w.7.9.2. S.; @ 5.7.7.F.} z n n n n n p !.", +"!.~ ) Y Z.Q.,.< 1 0.Q.:.= # $ 4.Q.Q.: $ # @ 1.Y c n n n n n p !.", +"!.F ( Y y.Q.Q.R.W.Q.Q.W.R.W.W.Q.Q.Q.Q.W.W.W.Y.V f f f f f f i !.", +"!.!.W L ( T.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.H.f f f f f f f i !.", +"!.!.L J J i.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.g r f f f f f f d !.", +"!.!.Z k d 8 B.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.J r r e e d d d d s !.", +"!.!.!.d d d d B.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.~ d e j i.[ 0 e d d s !.", +"!.!.!.s d d d 8 r.Y.Q.Q.Q.Q.Q.Q.Q.Q.K.k w w ] Q.Q.Q.W.A e d s !.", +"!.!.!.!.d s s s w h K b.E.Q.Q.I.u.S d w w ! Q.G.* < Q.E.9 s s !.", +"!.!.!.!.6 s s s s s u 0 7 7 7 9 w s s s w H.W.# o . 2 Q.! w y !.", +"!.!.!.!.!.y s s s s s s s s s s s s s s u H.R.# o X : Q.^ w y !.", +"!.!.!.!.!.!.y s s s s s s s s s s s s s q e.Q.7.% % Q.Q.q s y !.", +"!.!.!.!.!.!.!.t s a a a a a a a a a a a a q p.Q.W.Q.Q.F q a t !.", +"!.!.!.!.!.!.!.!.3 t a a a a a a a a a a a a q ' C.B.Z q a a !.!.", +"!.!.!.!.!.!.!.!.!.!.!.5 a a a a a a a a a a a 6 6 6 y a a 5 !.!.", +"!.!.!.!.!.!.!.!.!.!.!.!.!.!.5 t t t t t t t t t t t t t 4 !.!.!.", +"!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!.!." +}; diff --git a/talimatname/genel/u/uyap/talimat b/talimatname/genel/u/uyap/talimat new file mode 100644 index 000000000..fddf149c0 --- /dev/null +++ b/talimatname/genel/u/uyap/talimat @@ -0,0 +1,92 @@ +# Tanım: Uyap Belge Düzenleyici +# URL: uyap.gov.tr +# Paketçi: Cihan_Alkan +# Gerekler: openjdk akiskart opensc innoextract + +isim=uyap +surum=4.1.10 +devir=1 +kaynak=(http://www.uyap.gov.tr/destek/uyap.zip::${isim}-${surum}.zip + uyap-editor.png + product_logo_32.xpm) + +derle() { + +innoextract $SRC/UKI_V4.1.10/UKI_V4.1.10.exe + + mkdir -p $PKG/opt/uki + cp -r app/*.jar /$PKG/opt/uki/ + +# Başlatıcı +mkdir -pv $PKG/usr/share/applications && +cat > $PKG/usr/share/applications/$isim.desktop << "EOF" && +[Desktop Entry] +Version=1.0 +Type=Application +Name=Uyap Document Editor +Name[tr]=Uyap Belge Düzenleyici +Comment=Uyap Document Editor +Comment[tr]=Uyap Belge Düzenleyici +GenericName=Metin Düzenleyici +TryExec=uyap +Exec=uyap %U +Terminal=false +Icon=uyap-editor +Categories=TextEditor;Office; +StartupNotify=true +Actions=Window;Document; +MimeType=application/udf; +EOF + +# Bin Dosyası +mkdir -pv $PKG/usr/bin && +cat > $PKG/usr/bin/$isim << "EOF" && +java -Xmx512m -Duser.language=tr -Duser.region=TR -cp .:/opt/uki/editor_lib2.jar:/opt/uki/editor_lib.jar:/opt/uki/editor_laf.jar:/opt/uki/jai_hvl.jar:/opt/uki/editor_utility.jar:/opt/uki/jdom.jar:/opt/uki/updater.jar tr.com.havelsan.uyap.system.editor.common.WPAppManager "getNewWPInstance" "EDITOR_TYPE_DOCUMENT" "$1" "$2" +EOF + +# Uyap Menü +mkdir -pv $PKG/usr/share/menu && +cat > $PKG/usr/share/menu/$isim.menu << "EOF" && +?package(uyap):needs="x11" \ + section="Office" \ + hints="Metin Düzenleyici" \ + title="Uyap Belge Düzenleyici" \ + icon="/opt/uki/product_logo_32.xpm" \ + command="/usr/bin/uyap" +EOF + +# Uyap Mime +mkdir -pv $PKG/usr/share/mime/packages && +cat > $PKG/usr/share/mime/packages/udf.xml << "EOF" && + + + + Uyap Document File + Uyap Belge Dosyası + UDF + Uyap Document File + + + + + + Uyap Template File + Uyap Şablon Dosyası + USF + Uyap Template File + + + + +EOF + + # Icon Stuff + SRC_LOC="$SRC/" + DEST_LOC="$PKG/usr/share/icons/hicolor" + for i in 16 32 48 128 256 + do + install -Dm644 "$SRC_LOC"/uyap-editor.png "$DEST_LOC/${i}x${i}/apps/uyap-editor.png" + done + install -m644 "$SRC/product_logo_32.xpm" "$PKG/opt/uki/product_logo_32.xpm" + chmod +x $PKG/usr/bin/uyap +} diff --git a/talimatname/genel/u/uyap/uyap-editor.png b/talimatname/genel/u/uyap/uyap-editor.png new file mode 100644 index 000000000..66b016750 Binary files /dev/null and b/talimatname/genel/u/uyap/uyap-editor.png differ diff --git a/talimatname/genel/v/v4l-utils/talimat b/talimatname/genel/v/v4l-utils/talimat new file mode 100644 index 000000000..d7bf8250a --- /dev/null +++ b/talimatname/genel/v/v4l-utils/talimat @@ -0,0 +1,19 @@ +# Tanım: Video 4 Linux için kullanıcı alanı araçları ve dönüştürme kütüphanesi +# URL: http://freshmeat.net/projects/libv4l +# Paketçi: milisarge +# Gerekler: libjpeg-turbo + +isim=v4l-utils +surum=1.12.5 +devir=1 + +kaynak=(http://linuxtv.org/downloads/v4l-utils/$isim-$surum.tar.bz2) + +derle() { + cd "${SRC}/${isim}-${surum}" + ./configure --prefix=/usr --sysconfdir=/etc + MAKEFLAGS="-j1" make install DESTDIR=$PKG + rm -f $PKG/usr/bin/ivtv-ctl + mv $PKG/lib/udev $PKG/usr/lib/ + rm -rf $PKG/lib +} diff --git a/talimatname/genel/v/vala/talimat b/talimatname/genel/v/vala/talimat new file mode 100644 index 000000000..13ddcb582 --- /dev/null +++ b/talimatname/genel/v/vala/talimat @@ -0,0 +1,18 @@ +# Tanım: GObject türü sistem için derleyici +# URL: http://live.gnome.org/Vala +# Paketçi: milisarge +# Gerekler: glib graphviz + +isim=vala +surum=0.38.5 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/vala/${surum%.*}/$isim-$surum.tar.xz ) + +derle() { +cd $isim-* +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/v/vala/vala.kos-sil b/talimatname/genel/v/vala/vala.kos-sil new file mode 100644 index 000000000..b38e018ad --- /dev/null +++ b/talimatname/genel/v/vala/vala.kos-sil @@ -0,0 +1,10 @@ +#!/bin/sh +for _kurtar in \ +'/usr/share/vala' ; \ +do + +#sed -i '\|'\'$_kurtar\''|d' /var/lib/pkg/DB/cups/kurulan +# -sz ve -g den sonra /tmp/$paket.sil dikkate alınır +sed -i '\|'\'$_kurtar\''|d' /tmp/vala.sil + +done diff --git a/talimatname/genel/v/valgrind/talimat b/talimatname/genel/v/valgrind/talimat new file mode 100644 index 000000000..07ebf1f49 --- /dev/null +++ b/talimatname/genel/v/valgrind/talimat @@ -0,0 +1,18 @@ +# Tanım: Dinamik analiz araçları oluşturmak için bir alet çerçevesi. +# URL: http://valgrind.org +# Paketçi: milisarge +# Gerekler: boost llvm gdb libxslt + +isim=valgrind +surum=3.13.0 +devir=1 +kaynak=(ftp://sourceware.org/pub/valgrind/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + sed -i 's|/doc/valgrind||' docs/Makefile.in + ./configure --prefix=/usr \ + --datadir=/usr/share/doc/$isim-$surum + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/v/vamp-plugin-sdk/talimat b/talimatname/genel/v/vamp-plugin-sdk/talimat new file mode 100644 index 000000000..e22ec453f --- /dev/null +++ b/talimatname/genel/v/vamp-plugin-sdk/talimat @@ -0,0 +1,19 @@ +# Tanım: Vamp ses analizi eklentisi sistemi +# URL: http://www.vamp-plugins.org/ +# Paketçi: milisarge +# Gerekler: libsndfile + +isim=vamp-plugin-sdk +surum=2.6 +devir=1 + +kaynak=(https://code.soundsoftware.ac.uk/attachments/download/1520/$isim-$surum.tar.gz) + +derle() { +cd $SRC/$isim-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install + +install -Dm644 COPYING $PKG/usr/share/licenses/$pkgname/COPYING +} diff --git a/talimatname/genel/v/varnish/talimat b/talimatname/genel/v/varnish/talimat new file mode 100644 index 000000000..4c47d493f --- /dev/null +++ b/talimatname/genel/v/varnish/talimat @@ -0,0 +1,24 @@ +# Tanım: Varnish bir web uygulaması hızlandırıcısıdır. +# URL: http://www.varnish-cache.org/ +# Paketçi: milisarge +# Gerekler: libedit pcre python-docutils + +isim=varnish +surum=4.0.3 +devir=1 + +kaynak=( +http://repo.varnish-cache.org/source/$isim-$surum.tar.gz +varnish.service) + +derle(){ + cd $isim-$surum + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var/lib + make + make DESTDIR=$PKG install + + # install the varnish init script + install -Dm755 $SRC/$isim.service $PKG/etc/rc.d/init.d/$isim +} diff --git a/talimatname/genel/v/varnish/varnish.service b/talimatname/genel/v/varnish/varnish.service new file mode 100755 index 000000000..fbf760bbc --- /dev/null +++ b/talimatname/genel/v/varnish/varnish.service @@ -0,0 +1,92 @@ +#!/bin/sh +######################################################################## +# Begin scriptname +# +# Tanım: Varnish init script +# +# Authors : alienus at nutyx dot org +# +# Version : LFS 7.5 +# +# Notes : NuTyX Saravane +# +######################################################################## + +### BEGIN INIT INFO +# Provides: varnish init script +# Required-Start: +# Should-Start: +# Required-Stop: +# Should-Stop: +# Default-Start: +# Default-Stop: +# Short-Tanım: +# Tanım: +# X-LFS-Provided-By: +### END INIT INFO + +. /lib/lsb/init-functions + +BIN='/usr/sbin/varnishd' +CONF='/etc/varnish/default.vcl' +PID='/var/run/varnish.pid' + +# +# Change thoses vars to fit your need +# +BACKING_FILE='/var/lib/varnish' +ADMIN_IP='127.0.0.1' +ADMIN_PORT=8001 +HTTP_IP='0.0.0.0' +HTTP_PORT=80 +CACHE_SIZE='1g' +# ttl assigned to objects without ttl values (default 120s) +DEFAULT_TTL=604800 # 7 days +FILE_DESCRIPTORS=131072 +MIN_THREADS=5 +MAX_THREADS=500 +THREAD_TIMEOUT=300 +# maximum number of http headers (default is 64) +HTTP_HEADERS=384 +# connection timout for backend (default is 0.4s) +CONNECT_TIMEOUT='4.0' + +VARNISH_OPTS="-f $CONF \ + -s file,${BACKING_FILE},$CACHE_SIZE \ + -T $ADMIN_IP:${ADMIN_PORT} \ + -a $HTTP_IP:${HTTP_PORT} \ + -t $DEFAULT_TTL \ + -w${MIN_THREADS},${MAX_THREADS},${THREAD_TIMEOUT} \ + -P $PID" + +VARNISH_PARAMS="-p http_headers=$HTTP_HEADERS \ + -p connect_timeout=$CONNECT_TIMEOUT" + + +case "${1}" in + start) + log_info_msg "Starting..." + ulimit -n $FILE_DESCRIPTORS + start_daemon $BIN $VARNISH_OPTS $VARNISH_PARAMS + ;; + + stop) + log_info_msg "Stopping..." + killproc $BIN + ;; + + restart) + ${0} stop + sleep 1 + ${0} start + ;; + + *) + echo "Usage: ${0} {start|stop|restart}" + exit 1 + ;; +esac + +exit 0 + +# End scriptname diff --git a/talimatname/genel/v/vcdimager/talimat b/talimatname/genel/v/vcdimager/talimat new file mode 100644 index 000000000..feff8c2a9 --- /dev/null +++ b/talimatname/genel/v/vcdimager/talimat @@ -0,0 +1,23 @@ +# Tanım: Video CD'leri ve Süper Video CD'leri geliştirme, ayrıştırma ve analiz etme için tam özellikli bir mastering paketidir +# URL: http://www.vcdimager.org/ +# Paketçi: milisarge +# Gerekler: libcdio libxml2 + +isim=vcdimager +surum=0.7.24 +devir=1 + +kaynak=(http://ftp.twaren.net/Unix/GNU/gnu/$isim/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --with-xml-prefix=/usr \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info + make + make DESTDIR=$PKG install + rm $PKG/usr/share/info/dir +} + + diff --git a/talimatname/genel/v/vdrift/talimat b/talimatname/genel/v/vdrift/talimat new file mode 100644 index 000000000..4ec41df90 --- /dev/null +++ b/talimatname/genel/v/vdrift/talimat @@ -0,0 +1,46 @@ +# Tanım: Sürükleyici yarış ile akıllıca yapılan açık kaynak sürüş simülasyonu +# URL: http://vdrift.net/ +# Paketçi: Cihan Alkan +# Gerekler: bullet curl sdl2-image glew libvorbis hicolor-icon-theme libarchive scons xorg-mesa + +isim=vdrift +surum=2014.10.20 +devir=1 + +kaynak=(http://downloads.sourceforge.net/sourceforge/$isim/$isim-${surum//./-}.tar.bz2 + vdrift-gcc6.patch + vdrift-sconstruct.patch + vdrift-sconscript.patch) + +derle() { + cd vdrift + + # Fix build with GCC 6 (Fedora) + patch -p1 -i ../vdrift-gcc6.patch + + # Patch SConstruct and SConscript for SCons 3.0 compatibility + patch -p1 -i ../vdrift-sconstruct.patch + patch -p1 -i ../vdrift-sconscript.patch + + # build and install + scons $MAKEFLAGS \ + "destdir"="$PKG" \ + "release"=1 \ + "force_feedback"=1 \ + "prefix"=/usr \ + "datadir"=share/$isim/ \ + "extbullet"=1 + + scons install + + # .desktop dosyası kur + install -Dm644 $isim.desktop "$PKG"/usr/share/applications/$isim.desktop + sed -i '1 s/^\xef\xbb\xbf//' "$PKG"/usr/share/applications/$isim.desktop # remove BOM (WHY IS THERE?) + + # simgeleri kur + install -Dm644 data/textures/icons/vdrift-16x16.png "$PKG"/usr/share/icons/hicolor/16x16/apps/vdrift.png + install -Dm644 data/textures/icons/vdrift-32x32.png "$PKG"/usr/share/icons/hicolor/32x32/apps/vdrift.png + install -Dm644 data/textures/icons/vdrift-64x64.png "$PKG"/usr/share/icons/hicolor/64x64/apps/vdrift.png + install -Dm644 data/textures/icons/vdrift-64x64.png "$PKG/usr/share/pixmaps/$isim.png" +} + diff --git a/talimatname/genel/v/vdrift/vdrift-gcc6.patch b/talimatname/genel/v/vdrift/vdrift-gcc6.patch new file mode 100644 index 000000000..0c846fdb6 --- /dev/null +++ b/talimatname/genel/v/vdrift/vdrift-gcc6.patch @@ -0,0 +1,12 @@ +diff -up ./src/graphics/model_obj.cpp.gcc6 ./src/graphics/model_obj.cpp +--- ./src/graphics/model_obj.cpp.gcc6 2016-02-09 19:02:50.282554264 -0500 ++++ ./src/graphics/model_obj.cpp 2016-02-09 19:03:10.566308088 -0500 +@@ -221,7 +221,7 @@ bool ModelObj::Save(const std::string & + std::ofstream f(strFileName.c_str()); + if (!f) + { +- error_output << "Error opening file for writing: " << error_output << endl; ++ error_output << "Error opening file for writing: " << strFileName << endl; + return false; + } + diff --git a/talimatname/genel/v/vdrift/vdrift-sconscript.patch b/talimatname/genel/v/vdrift/vdrift-sconscript.patch new file mode 100644 index 000000000..b0ac4d326 --- /dev/null +++ b/talimatname/genel/v/vdrift/vdrift-sconscript.patch @@ -0,0 +1,11 @@ +--- ./src/SConscript.orig 2014-09-04 16:06:21.000000000 -0400 ++++ ./src/SConscript 2017-10-15 11:22:06.536446627 -0400 +@@ -151,7 +151,7 @@ src = Split(""" + utils.cpp + window.cpp""") + +-src.sort(lambda x, y: cmp(x.lower(),y.lower())) ++src.sort(key=lambda x: x.lower()) + + #------------------------# + # Copy Build Environment # diff --git a/talimatname/genel/v/vdrift/vdrift-sconstruct.patch b/talimatname/genel/v/vdrift/vdrift-sconstruct.patch new file mode 100644 index 000000000..4a2cdaf1f --- /dev/null +++ b/talimatname/genel/v/vdrift/vdrift-sconstruct.patch @@ -0,0 +1,59 @@ +--- ./SConstruct.orig 2014-08-04 08:43:04.000000000 -0400 ++++ ./SConstruct 2017-10-15 11:18:01.792656230 -0400 +@@ -92,9 +92,9 @@ elif sys.platform == 'darwin': + + for a in env['universal']: + if not sdk_path: +- print 'Building a universal binary require access to an ' + \ ++ print ('Building a universal binary require access to an ' + \ + 'SDK that has universal \nbinary support.If you know ' + \ +- 'the location of such an SDK, specify it using the \n"SDK" option' ++ 'the location of such an SDK, specify it using the \n"SDK" option') + Exit(1) + env.Append( CCFLAGS = ['-arch', a], LINKFLAGS = ['-arch', a] ) + +@@ -141,11 +141,11 @@ else: + CC = 'gcc', CXX = 'g++', + options = opts) + # Take environment variables into account +- if os.environ.has_key('CXX'): ++ if 'CXX' in os.environ: + env['CXX'] = os.environ['CXX'] +- if os.environ.has_key('CXXFLAGS'): ++ if 'CXXFLAGS' in os.environ: + env['CXXFLAGS'] += SCons.Util.CLVar(os.environ['CXXFLAGS']) +- if os.environ.has_key('LDFLAGS'): ++ if 'LDFLAGS' in os.environ: + env['LINKFLAGS'] += SCons.Util.CLVar(os.environ['LDFLAGS']) + check_headers = ['GL/gl.h', 'SDL2/SDL.h', 'SDL2/SDL_image.h', 'vorbis/vorbisfile.h', 'curl/curl.h', 'bullet/btBulletCollisionCommon.h', 'bullet/btBulletDynamicsCommon.h'] + check_libs = [] +@@ -232,7 +232,7 @@ def distcopy (target, source, env): + def tarballer (target, source, env): + cmd = 'tar -jcf "%s" -C "%s" .' % ( str(target[0]), str(source[0]) ) + #cmd = 'tar -jcf ' + str (target[0]) + ' ' + str(source[0]) + " --exclude '*~' " +- print 'running ', cmd, ' ... ' ++ print ('running ', cmd, ' ... ') + p = os.popen (cmd) + return p.close () + +@@ -362,11 +362,11 @@ env.ParseConfig('pkg-config bullet --lib + conf = Configure(env) + for header in check_headers: + if not conf.CheckCXXHeader(header): +- print 'You do not have the %s headers installed. Exiting.' % header ++ print ('You do not have the %s headers installed. Exiting.' % header) + Exit(1) + for lib in check_libs: + if not conf.CheckLibWithHeader(lib[0], lib[1], 'C', lib[2]): +- print lib[3] ++ print (lib[3]) + Exit(1) + + env = conf.Finish() +@@ -535,4 +535,5 @@ if 'data-package' in COMMAND_LINE_TARGET + if 'autopackage' in COMMAND_LINE_TARGETS: + os.system("CXX1=g++-3.4 CXX2=g++-4.1 APBUILD_CXX1=g++-3.4 APBUILD_NO_STATIC_X=1 VDRIFT_VERSION=%s VDRIFT_MINIMAL=%d VDRIFT_RELEASE=%d makepackage tools/autopackage/vdrift.apspec" % (version, env['minimal'], env['release'])) + +-SConscript('src/SConscript', variant_dir = build_dir, duplicate = 0) ++VariantDir(build_dir, '.', duplicate = 0) ++SConscript('src/SConscript') diff --git a/talimatname/genel/v/vice/icons.tar.gz b/talimatname/genel/v/vice/icons.tar.gz new file mode 100644 index 000000000..bd4c8e556 Binary files /dev/null and b/talimatname/genel/v/vice/icons.tar.gz differ diff --git a/talimatname/genel/v/vice/talimat b/talimatname/genel/v/vice/talimat new file mode 100644 index 000000000..369ddc348 --- /dev/null +++ b/talimatname/genel/v/vice/talimat @@ -0,0 +1,54 @@ +# Tanım: VICE Commodore emülatörü +# URL: http://www.viceteam.org/ +# Paketçi: milisarge +# Gerekler: gtk2 giflib lame libpng libjpeg-turbo xorg-libxdamage xorg-libsm vte xorg-libxxf86vm xorg-fontconfig xorg-font-util libpcap libnet sdl xmlto texi2html zlib + +isim=vice +surum=2.4 +devir=2 +kaynak=(http://downloads.sourceforge.net/project/vice-emu/releases/vice-$surum.tar.gz + vice-2.4-no-fc-cache.patch + vice-2.4-64bit.patch + vice-2.4-giflib.patch + vice-2.4-x11video.patch + vice-2.4-zlib-1.2.7.patch + vice-2.4-texi2html.patch + vice-2.4-vice.texi.patch + vice.desktop + icons.tar.gz + vice) + +derle() { + cd vice-$surum + patch -p1 < $SRC/vice-2.4-no-fc-cache.patch || return + patch -p1 < $SRC/vice-2.4-64bit.patch || return + patch -p1 < $SRC/vice-2.4-giflib.patch || return + patch -p1 < $SRC/vice-2.4-x11video.patch || return + patch -p1 < $SRC/vice-2.4-zlib-1.2.7.patch || return + patch -p1 < $SRC/vice-2.4-vice.texi.patch || return + patch -p1 < $SRC/vice-2.4-texi2html.patch || exit + + ./configure \ + --prefix=/usr \ + --enable-ethernet \ + --enable-fullscreen \ + --disable-ffmpeg \ + --with-sdlsound + + make + + mkdir -p $PKG/usr/bin + cp $SRC/vice $PKG/usr/bin + chmod a+x $PKG/usr/bin/vice + mkdir -p $PKG/usr/share/applications + cp $SRC/vice.desktop $PKG/usr/share/applications/ + ICONSIZES="48 32 24 22 16" + for i in $ICONSIZES; do + mkdir -p $PKG/usr/share/icons/hicolor/$i\x$i/apps; + cp $SRC/$isim-$i.png $PKG/usr/share/icons/hicolor/$i\x$i/apps; + done; + cp $SRC/$isim.png $PKG/usr/share/applications/ + + + make DESTDIR=$PKG install + } diff --git a/talimatname/genel/v/vice/vice b/talimatname/genel/v/vice/vice new file mode 100644 index 000000000..dd98d21f4 --- /dev/null +++ b/talimatname/genel/v/vice/vice @@ -0,0 +1,28 @@ +#!/bin/sh + +dialog --title "VICE" \ + --menu "VICE is an emulator for Commodore\n\ +computers. It emulates the C64, the C128,\n\ +the VIC20, almost all PET models, the PLUS4\n\ +and the CBM-II.\n\\n\ +Choose the emulator you like to run:" 24 60 6 \ + "x64" "- C64 emulator" \ + "x64dtv" "- C64 Direct-to-TV (DTV) emulator" \ + "x128" "- C128 emulator" \ + "xvic" "- VIC20 emulator" \ + "xpet" "- PET emulator" \ + "xplus4" "- PLUS4 emulator" \ + "xcbm2" "- CBM-II emulator" 2> /tmp/menu.tmp.$$ + +retval=$? +choice=`cat /tmp/menu.tmp.$$` +rm -f /tmp/menu.tmp.$$ + +case $retval in + 0) + $choice;; + 1) + ;; + 255) + ;; +esac diff --git a/talimatname/genel/v/vice/vice-2.4-64bit.patch b/talimatname/genel/v/vice/vice-2.4-64bit.patch new file mode 100644 index 000000000..b78ea51bc --- /dev/null +++ b/talimatname/genel/v/vice/vice-2.4-64bit.patch @@ -0,0 +1,129 @@ +diff -Naur vice-2.3.21.orig/doc/vice.guide vice-2.3.21/doc/vice.guide +--- vice-2.3.21.orig/doc/vice.guide 2012-08-06 00:41:54.000000000 +0200 ++++ vice-2.3.21/doc/vice.guide 2012-08-06 09:44:36.288562655 +0200 +@@ -1292,7 +1292,7 @@ + `Directory' resource, which is a colon (`:')-separated search path + list, like the UNIX `PATH' environment variable. The default value is + +- PREFIX/lib/vice/EMU:$HOME/.vice/EMU:BOOTPATH/EMU ++ PREFIX/lib64/vice/EMU:$HOME/.vice/EMU:BOOTPATH/EMU + + Where `PREFIX' is the installation prefix (usually `/usr/local'), `EMU' + is the name of the emulated machine (`C64', `C64DTV', `C128', `PET', +@@ -1306,12 +1306,12 @@ + + then the value will be + +- /usr/local/lib/vice/C64:$HOME/.vice/C64:/usr/local/bin/C64 ++ /usr/local/lib64/vice/C64:$HOME/.vice/C64:/usr/local/bin/C64 + + And system files will be searched for under the following directories, + in the specified order: + +- 1. `/usr/local/lib/VICE/C64' ++ 1. `/usr/local/lib64/VICE/C64' + + 2. `$HOME/.vice/C64' + +@@ -4010,7 +4010,7 @@ + where: + + * `LIBDIR' is the VICE installation directory (usually +- `/usr/local/lib/vice', `/usr/lib/vice' or `/opt/vice/lib'); ++ `/usr/local/lib64/vice', `/usr/lib64/vice' or `/opt/vice/lib'); + + * `EMUID' is the emulation identification string (`C64', + `C128', `VIC20' or `PET'); +diff -Naur vice-2.3.21.orig/doc/vice.texi vice-2.3.21/doc/vice.texi +--- vice-2.3.21.orig/doc/vice.texi 2012-07-24 04:08:09.000000000 +0200 ++++ vice-2.3.21/doc/vice.texi 2012-08-06 09:44:36.291562619 +0200 +@@ -1364,7 +1364,7 @@ + default value is + + @example +-PREFIX/lib/vice/EMU:$HOME/.vice/EMU:BOOTPATH/EMU ++PREFIX/lib64/vice/EMU:$HOME/.vice/EMU:BOOTPATH/EMU + @end example + + Where @code{PREFIX} is the installation prefix (usually +@@ -1383,7 +1383,7 @@ + then the value will be + + @example +-/usr/local/lib/vice/C64:$HOME/.vice/C64:/usr/local/bin/C64 ++/usr/local/lib64/vice/C64:$HOME/.vice/C64:/usr/local/bin/C64 + @end example + + And system files will be searched for under the following directories, +@@ -1391,7 +1391,7 @@ + + @enumerate 1 + @item +-@code{/usr/local/lib/VICE/C64} ++@code{/usr/local/lib64/VICE/C64} + @item + @code{$HOME/.vice/C64} + @item +diff -Naur vice-2.3.21.orig/doc/vice.txt vice-2.3.21/doc/vice.txt +--- vice-2.3.21.orig/doc/vice.txt 2012-08-06 02:23:21.000000000 +0200 ++++ vice-2.3.21/doc/vice.txt 2012-08-06 09:44:36.296562563 +0200 +@@ -1056,7 +1056,7 @@ + `Directory' resource, which is a colon (`:')-separated search path + list, like the UNIX `PATH' environment variable. The default value is + +-PREFIX/lib/vice/EMU:$HOME/.vice/EMU:BOOTPATH/EMU ++PREFIX/lib64/vice/EMU:$HOME/.vice/EMU:BOOTPATH/EMU + + Where `PREFIX' is the installation prefix (usually `/usr/local'), `EMU' + is the name of the emulated machine (`C64', `C64DTV', `C128', `PET', +@@ -1070,12 +1070,12 @@ + + then the value will be + +-/usr/local/lib/vice/C64:$HOME/.vice/C64:/usr/local/bin/C64 ++/usr/local/lib64/vice/C64:$HOME/.vice/C64:/usr/local/bin/C64 + + And system files will be searched for under the following directories, + in the specified order: + +-1. `/usr/local/lib/VICE/C64' ++1. `/usr/local/lib64/VICE/C64' + + 2. `$HOME/.vice/C64' + +diff -Naur vice-2.3.21.orig/INSTALL vice-2.3.21/INSTALL +--- vice-2.3.21.orig/INSTALL 2011-01-29 14:17:50.000000000 +0100 ++++ vice-2.3.21/INSTALL 2012-08-06 09:44:36.299562529 +0200 +@@ -301,7 +301,7 @@ + + make install + +- The binaries and support files will all go under PREFIX/lib/vice. ++ The binaries and support files will all go under PREFIX/lib64/vice. + You must of course have write permissions for the directories where + VICE is to be installed. Normally only the system administrator + has write access to /usr/local, the default PREFIX. Either ask +diff -Naur vice-2.3.21.orig/src/arch/sdl/archdep_unix.h vice-2.3.21/src/arch/sdl/archdep_unix.h +--- vice-2.3.21.orig/src/arch/sdl/archdep_unix.h 2011-07-21 05:10:28.000000000 +0200 ++++ vice-2.3.21/src/arch/sdl/archdep_unix.h 2012-08-06 09:42:11.970323196 +0200 +@@ -88,7 +88,7 @@ + #ifdef __NetBSD__ + #define LIBDIR PREFIX "/share/vice" + #else +-#define LIBDIR PREFIX "/lib/vice" ++#define LIBDIR PREFIX "/lib64/vice" + #endif + + #if defined(__FreeBSD__) || defined(__NetBSD__) +diff -Naur vice-2.3.21.orig/src/arch/unix/archdep.h vice-2.3.21/src/arch/unix/archdep.h +--- vice-2.3.21.orig/src/arch/unix/archdep.h 2010-10-06 18:17:43.000000000 +0200 ++++ vice-2.3.21/src/arch/unix/archdep.h 2012-08-06 09:42:46.474902531 +0200 +@@ -127,7 +127,7 @@ + #ifdef __NetBSD__ + #define LIBDIR PREFIX "/share/vice" + #else +-#define LIBDIR PREFIX "/lib/vice" ++#define LIBDIR PREFIX "/lib64/vice" + #endif + + #if defined(__FreeBSD__) || defined(__NetBSD__) diff --git a/talimatname/genel/v/vice/vice-2.4-giflib.patch b/talimatname/genel/v/vice/vice-2.4-giflib.patch new file mode 100644 index 000000000..939060232 --- /dev/null +++ b/talimatname/genel/v/vice/vice-2.4-giflib.patch @@ -0,0 +1,38 @@ +--- a/src/gfxoutputdrv/gifdrv.c 2012-07-25 23:46:05.000000000 +0000 ++++ b/src/gfxoutputdrv/gifdrv.c 2014-06-01 11:48:40.493722851 +0000 +@@ -114,7 +114,7 @@ static int gifdrv_open(screenshot_t *scr + if (EGifPutScreenDesc(sdata->fd, screenshot->width, screenshot->height, 8, 0, gif_colors) == GIF_ERROR || + EGifPutImageDesc(sdata->fd, 0, 0, screenshot->width, screenshot->height, 0, NULL) == GIF_ERROR) + { +- EGifCloseFile(sdata->fd); ++ EGifCloseFile(sdata->fd, NULL); + VICE_FreeMapObject(gif_colors); + lib_free(sdata->data); + lib_free(sdata->ext_filename); +@@ -145,7 +145,7 @@ static int gifdrv_close(screenshot_t *sc + + sdata = screenshot->gfxoutputdrv_data; + +- EGifCloseFile(sdata->fd); ++ EGifCloseFile(sdata->fd, NULL); + VICE_FreeMapObject(gif_colors); + + /* for some reason giflib will create a file with unexpected +@@ -184,7 +184,7 @@ static char *gifdrv_memmap_ext_filename; + + static int gifdrv_close_memmap(void) + { +- EGifCloseFile(gifdrv_memmap_fd); ++ EGifCloseFile(gifdrv_memmap_fd, NULL); + VICE_FreeMapObject(gif_colors); + lib_free(gifdrv_memmap_ext_filename); + +@@ -231,7 +231,7 @@ static int gifdrv_open_memmap(const char + if (EGifPutScreenDesc(gifdrv_memmap_fd, x_size, y_size, 8, 0, gif_colors) == GIF_ERROR || + EGifPutImageDesc(gifdrv_memmap_fd, 0, 0, x_size, y_size, 0, NULL) == GIF_ERROR) + { +- EGifCloseFile(gifdrv_memmap_fd); ++ EGifCloseFile(gifdrv_memmap_fd, NULL); + VICE_FreeMapObject(gif_colors); + lib_free(gifdrv_memmap_ext_filename); + return -1; diff --git a/talimatname/genel/v/vice/vice-2.4-no-fc-cache.patch b/talimatname/genel/v/vice/vice-2.4-no-fc-cache.patch new file mode 100644 index 000000000..b7a6babeb --- /dev/null +++ b/talimatname/genel/v/vice/vice-2.4-no-fc-cache.patch @@ -0,0 +1,15 @@ +--- a/configure.in 2011-02-19 23:07:05.000000000 +0100 ++++ b/configure.in 2012-08-06 13:18:46.000000000 +0200 +@@ -1990,12 +1990,7 @@ + + fi + +-AC_PATH_PROGS(FCCACHE, fc-cache, false) +-if test x"$FCCACHE" = "xfalse"; then + AM_CONDITIONAL(HAVE_FC_CACHE, false) +-else +- AM_CONDITIONAL(HAVE_FC_CACHE, true) +-fi + + if test x"$is_amigaos4" = "xyes"; then + if test x"$enable_sdlui" != "xyes"; then diff --git a/talimatname/genel/v/vice/vice-2.4-notexi-notxt.patch b/talimatname/genel/v/vice/vice-2.4-notexi-notxt.patch new file mode 100644 index 000000000..58121b702 --- /dev/null +++ b/talimatname/genel/v/vice/vice-2.4-notexi-notxt.patch @@ -0,0 +1,28 @@ +--- a/doc/Makefile.am 2012-10-20 01:32:30.000000000 +0200 ++++ b/doc/Makefile.am 2012-11-03 18:29:03.000000000 +0100 +@@ -79,19 +79,6 @@ + $(srcdir)/fixdox.sh txt $(builddir)/vice.txt + rm -f vicetmp.txt + +-$(builddir)/vice.pdf: $(srcdir)/vice.texi +-if BUILD_PDF +- sed 's/@heading NO WARRANTY/@center NO WARRANTY/g' <$(srcdir)/vice.texi >vicepdf.texi +- $(TEXI2DVI) -q --clean --pdf -o $(builddir)/vice.pdf vicepdf.texi +- rm -f vicepdf.texi +- +-PDF_DEPS=$(builddir)/vice.pdf +-else +- touch $(builddir)/vice.pdf +- +-PDF_DEPS= +-endif +- + $(builddir)/vice.guide: $(srcdir)/vice.texi + if BUILD_AMIGAGUIDE + $(srcdir)/texi2guide.sh $(MAKEGUIDE) $(builddir)/vice.guide $(srcdir)/vice.texi +@@ -148,4 +135,4 @@ + touch $(builddir)/vice.info + $(MAKEINFO) -o $(builddir)/vice.info --no-split $(srcdir)/vice.texi + +-INFO_DEPS = $(builddir)/vice.txt $(builddir)/vice.info $(PDF_DEPS) $(GUIDE_DEPS) $(HLP_DEPS) $(CHM_DEPS) $(IPF_DEPS) ++INFO_DEPS = $(builddir)/vice.info $(PDF_DEPS) $(GUIDE_DEPS) $(HLP_DEPS) $(CHM_DEPS) $(IPF_DEPS) diff --git a/talimatname/genel/v/vice/vice-2.4-texi2html.patch b/talimatname/genel/v/vice/vice-2.4-texi2html.patch new file mode 100644 index 000000000..c5f7276a5 --- /dev/null +++ b/talimatname/genel/v/vice/vice-2.4-texi2html.patch @@ -0,0 +1,22 @@ +--- a/doc/html/texi2html 2015-11-10 12:22:49.310067806 -0800 ++++ b/doc/html/texi2html 2015-11-10 12:22:18.750067582 -0800 +@@ -1557,17 +1557,13 @@ + $level--; # here we start at 0 + if ($isim =~ /^appendix/) { + # appendix style +- if (defined(@appendix_sec_num)) { +- &incr_sec_num($level, @appendix_sec_num); +- } else { ++ { + @appendix_sec_num = ('A', 0, 0, 0); + } + return(join('.', @appendix_sec_num[0..$level])); + } else { + # normal style +- if (defined(@normal_sec_num)) { +- &incr_sec_num($level, @normal_sec_num); +- } else { ++ { + @normal_sec_num = (1, 0, 0, 0); + } + return(join('.', @normal_sec_num[0..$level])); diff --git a/talimatname/genel/v/vice/vice-2.4-vice.texi.patch b/talimatname/genel/v/vice/vice-2.4-vice.texi.patch new file mode 100644 index 000000000..4a1cf5f83 --- /dev/null +++ b/talimatname/genel/v/vice/vice-2.4-vice.texi.patch @@ -0,0 +1,10 @@ +--- a/doc/vice.texi 2015-11-12 10:36:35.670036048 -0800 ++++ b/doc/vice.texi 2015-11-12 10:36:17.240035913 -0800 +@@ -8243,6 +8243,7 @@ + @item -Crtcextpal + Use an external palette (file) + @cindex -Crtcpalette ++@item -Crtcpalette + @itemx -Crtcpalette NAME + Specify @code{NAME} as the palette file (@code{CrtcPaletteFile}). + @cindex -Crtcfulldevice diff --git a/talimatname/genel/v/vice/vice-2.4-x11video.patch b/talimatname/genel/v/vice/vice-2.4-x11video.patch new file mode 100644 index 000000000..423688ba9 --- /dev/null +++ b/talimatname/genel/v/vice/vice-2.4-x11video.patch @@ -0,0 +1,11 @@ +--- a/src/arch/unix/x11/xaw/x11video.c 2012-10-28 22:26:24.000000000 +0100 ++++ b/src/arch/unix/x11/xaw/x11video.c 2012-11-03 18:54:08.000000000 +0100 +@@ -60,6 +60,8 @@ + #include + #include + #include ++#include ++#include + + #include + #include diff --git a/talimatname/genel/v/vice/vice-2.4-zlib-1.2.7.patch b/talimatname/genel/v/vice/vice-2.4-zlib-1.2.7.patch new file mode 100644 index 000000000..f41c8afc5 --- /dev/null +++ b/talimatname/genel/v/vice/vice-2.4-zlib-1.2.7.patch @@ -0,0 +1,37 @@ +--- a/src/zfile.c 2012-10-13 14:53:16.000000000 +0200 ++++ b/src/zfile.c 2012-11-03 18:47:40.000000000 +0100 +@@ -198,10 +198,10 @@ + do { + char buf[256]; + +- len = gzread(fdsrc, (void *)buf, 256); ++ len = gzread((gzFile)fdsrc, (void *)buf, 256); + if (len > 0) { + if (fwrite((void *)buf, 1, (size_t)len, fddest) < len) { +- gzclose(fdsrc); ++ gzclose((gzFile)fdsrc); + fclose(fddest); + ioutil_remove(tmp_name); + lib_free(tmp_name); +@@ -210,7 +210,7 @@ + } + } while (len > 0); + +- gzclose(fdsrc); ++ gzclose((gzFile)fdsrc); + fclose(fddest); + + return tmp_name; +@@ -779,10 +779,10 @@ + char buf[256]; + len = fread((void *)buf, 256, 1, fdsrc); + if (len > 0) +- gzwrite(fddest, (void *)buf, (unsigned int)len); ++ gzwrite((gzFile)fddest, (void *)buf, (unsigned int)len); + } while (len > 0); + +- gzclose(fddest); ++ gzclose((gzFile)fddest); + fclose(fdsrc); + + archdep_file_set_gzip(dest); diff --git a/talimatname/genel/v/vice/vice.desktop b/talimatname/genel/v/vice/vice.desktop new file mode 100644 index 000000000..129049fd2 --- /dev/null +++ b/talimatname/genel/v/vice/vice.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=VICE +Comment=Emulator for Commodore's 8-bit computers +Exec=vice +Terminal=true +Type=Application +Categories=Game;Emulator; +Icon=/usr/share/applications/vice.png diff --git a/talimatname/genel/v/vid-stab/talimat b/talimatname/genel/v/vid-stab/talimat new file mode 100644 index 000000000..8727a442f --- /dev/null +++ b/talimatname/genel/v/vid-stab/talimat @@ -0,0 +1,23 @@ +# Tanım: Video dengeleme kitaplığı +# URL: http://public.hronopik.de/vid.stab +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: cmake git + +isim=vid-stab +surum=1.1 +devir=1 + +kaynak=() + +derle() { + + git clone https://github.com/georgmartius/vid.stab.git + + cd vid.stab + mkdir build + cd build + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/v/viewnior/talimat b/talimatname/genel/v/viewnior/talimat new file mode 100644 index 000000000..8a4a1dc66 --- /dev/null +++ b/talimatname/genel/v/viewnior/talimat @@ -0,0 +1,17 @@ +# Tanım: Hızlı ve basit GTK+ resim görüntüleyici +# URL: http://xsisqox.github.io/Viewnior/ +# Paketçi: milisarge +# Gerekler: glib gtk2 gnome-common shared-mime-info exiv2 + +isim=viewnior +surum=1.6 +devir=1 +kaynak=(https://github.com/xsisqox/Viewnior/archive/$isim-$surum.tar.gz) + +derle() { + cd Viewnior-$isim-$surum + ./autogen.sh + ./configure + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/v/vile/talimat b/talimatname/genel/v/vile/talimat new file mode 100644 index 000000000..0cf896c27 --- /dev/null +++ b/talimatname/genel/v/vile/talimat @@ -0,0 +1,16 @@ +# Tanım: VI Emacs gibi - başka bir tam özellikli vi klonu +# URL: http://invisible-island.net/vile/ +# Paketçi: milisarge +# Gerekler: reflex + +isim=vile +surum=9.8 +devir=1 +kaynak=(ftp://invisible-island.net/vile/$isim.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --with-perl + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/v/vim/talimat b/talimatname/genel/v/vim/talimat new file mode 100644 index 000000000..526d45480 --- /dev/null +++ b/talimatname/genel/v/vim/talimat @@ -0,0 +1,46 @@ +# Tanım: The Vim package contains a powerful text editor. +# URL: http://www.vim.org/ +# Paketçi: milisarge +# Gerekler: + +isim=vim +surum=7.4 +devir=1 + +kaynak=(ftp://ftp.vim.org/pub/vim/unix/vim-$surum.tar.bz2 + vim-7.4-locale-1.patch) +derle() +{ +vimv="vim${version/./}" +cd $vimv +patch -Np1 -i $SRC/vim-7.4-locale-1.patch +echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h + +./configure --prefix=/usr --enable-multibyte \ + --enable-gui=no --with-x=no \ + --disable-gpm + +make +mkdir -p $PKG/usr/share/locale + +make DESTDIR=$PKG DEST_HELP=$PKG/usr/share/doc/vim-$surum \ +LANGSUBLOC=/usr/share/locale install + +ln -sv vim $PKG/usr/bin/vi +for L in $PKG/usr/share/man/{,*/}man1/vim.1; do + ln -sv vim.1 $(dirname $L)/vi.1 +done + +mkdir $PKG/etc + +cat > $PKG/etc/vimrc << "EOF" +" Begin /etc/vimrc +set background=dark +set ruler +set nocompatible +set backspace=2 +syntax on + +" End /etc/vimrc +EOF +} diff --git a/talimatname/genel/v/vim/vim-7.4-locale-1.patch b/talimatname/genel/v/vim/vim-7.4-locale-1.patch new file mode 100644 index 000000000..c77e86628 --- /dev/null +++ b/talimatname/genel/v/vim/vim-7.4-locale-1.patch @@ -0,0 +1,11 @@ +--- vim74/src/main.c.original 2014-06-17 17:24:55.000000000 +0200 ++++ vim74/src/main.c 2014-06-17 17:25:44.000000000 +0200 +@@ -1563,7 +1563,7 @@ + if (p != NULL && *p != NUL) + { + vim_snprintf((char *)NameBuff, MAXPATHL, "%s/lang", p); +- bindtextdomain(VIMPACKAGE, (char *)NameBuff); ++ bindtextdomain(VIMPACKAGE, "/usr/share/locale"); + } + if (mustfree) + vim_free(p); diff --git a/talimatname/genel/v/vimb/talimat b/talimatname/genel/v/vimb/talimat new file mode 100644 index 000000000..55d984301 --- /dev/null +++ b/talimatname/genel/v/vimb/talimat @@ -0,0 +1,17 @@ +# Tanım: Vim benzeri tarayıcı +# URL: http://fanglingsu.github.io/vimb +# Paketçi: Cihan_Alkan +# Gerekler: webkit2gtk3 +# Grup: ağ + +isim=vimb +surum=3.1.0 +devir=1 +kaynak=(https://github.com/fanglingsu/vimb/archive/3.1.0.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + make DEXTENSIONDIR=/usr/lib/vimb V=1 DESTDIR="$PKG" PREFIX="/usr" + make DEXTENSIONDIR=/usr/lib/vimb V=1 DESTDIR="$PKG" PREFIX="/usr" install + install -Dm644 LICENSE "$PKG/usr/share/licenses/$isim/LICENSE" +} diff --git a/talimatname/genel/v/vino/talimat b/talimatname/genel/v/vino/talimat new file mode 100644 index 000000000..1c96fdebb --- /dev/null +++ b/talimatname/genel/v/vino/talimat @@ -0,0 +1,17 @@ +# Tanım: GNOME masaüstü için bir VNC sunucusu +# URL: http://www.gnome.org +# Paketçi: yasarciv67@gmail.com +# Gerekler: gconf libsoup telepathy-glib desktop-file-utils libnotify desktop-file-utils + +isim=vino +surum=3.22.0 +devir=1 + +kaynak=(http://download.gnome.org/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum +./configure --prefix=/usr --sysconfdir=/etc + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/v/vino/vino.kur-kos b/talimatname/genel/v/vino/vino.kur-kos new file mode 100644 index 000000000..7b04491d7 --- /dev/null +++ b/talimatname/genel/v/vino/vino.kur-kos @@ -0,0 +1,2 @@ +glib-compile-schemas /usr/share/glib-2.0/schemas +update-desktop-database -q diff --git a/talimatname/genel/v/virtualbox-cli/talimat b/talimatname/genel/v/virtualbox-cli/talimat new file mode 100644 index 000000000..51a441551 --- /dev/null +++ b/talimatname/genel/v/virtualbox-cli/talimat @@ -0,0 +1,49 @@ +# Tanım: VirtualBox, güçlü bir 32 ve 64 bit sanallaştırma ürünüdür +# URL: http://virtualbox.org +# Paketçi: milisarge +# Gerekler: + +builddevir=104815 +isim=virtualbox-cli +surum=5.0.12 +devir=1 + +[ "`uname -m`" == "i686" ] && _ARCH=x86 +[ "`uname -m`" == "x86_64" ] && _ARCH=amd64 + +kaynak=(http://download.virtualbox.org/virtualbox/${surum}/VirtualBox-${surum}-${buildrelease}-Linux_${_ARCH}.run) + +derle() { +sh VirtualBox-${surum}-${buildrelease}-Linux_${_ARCH}.run --target vb --keep --noexec +cd vb +tar xfj VirtualBox.tar.bz2 +cd src/vboxhost/ + +KERNELRELEASE=`uname -r` + +KERN_DIR=/usr/src/linux-${KERNELRELEASE%.*} make + +mkdir -p $PKG/lib/modules/${KERNELRELEASE}/kernel/drivers/zzzz +for i in *.ko +do + install -D -m0644 $i \ + $PKG/lib/modules/${KERNELRELEASE}/kernel/drivers/zzzz/$i +done +mkdir -p $PKG/etc/sysconfig/modules.d +cat > $PKG/etc/sysconfig/modules.d/virtualbox.conf << "EOF" +vboxdrv +vboxnetadp +vboxnetflt +vboxpci +EOF +# post-install autogen +cat > $PKGMK_ROOT/$isim.post-install << "EOF" +. lib/lsb/init-functions +log_success_msg "update modules population" +EOF +echo "depmod $KERNELRELEASE" >> $PKGMK_ROOT/$isim.post-install +cat >> $PKGMK_ROOT/$isim.post-install << "EOF" +log_warning_msg "${WARNING}Check the file /etc/sysconfig/modules.d/virtualbox.conf ${NORMAL}" +log_warning_msg "${WARNING}Reboot if you want the modules being automatically loaded${NORMAL}" +EOF +} diff --git a/talimatname/genel/v/virtualbox-cli/talimat~ b/talimatname/genel/v/virtualbox-cli/talimat~ new file mode 100644 index 000000000..5b172a8e3 --- /dev/null +++ b/talimatname/genel/v/virtualbox-cli/talimat~ @@ -0,0 +1,48 @@ +# Tanım: VirtualBox is a powerfull 32 and 64 bits virtualization product +# URL: http://virtualbox.org +# Paketçi: tnut at nutyx dot org + +builddevir=102546 +isim=virtualbox-cli +surum=5.0.4 +devir=2 + +[ "`uname -m`" == "i686" ] && _ARCH=x86 +[ "`uname -m`" == "x86_64" ] && _ARCH=amd64 + +kaynak=(http://download.virtualbox.org/virtualbox/${surum}/VirtualBox-${surum}-${buildrelease}-Linux_${_ARCH}.run) + +derle() { +sh VirtualBox-${surum}-${buildrelease}-Linux_${_ARCH}.run --target vb --keep --noexec +cd vb +tar xfj VirtualBox.tar.bz2 +cd src/vboxhost/ + +KERNELRELEASE=`uname -r` + +KERN_DIR=/usr/src/linux-${KERNELRELEASE%.*} make + +mkdir -p $PKG/lib/modules/${KERNELRELEASE}/kernel/drivers/zzzz +for i in *.ko +do + install -D -m0644 $i \ + $PKG/lib/modules/${KERNELRELEASE}/kernel/drivers/zzzz/$i +done +mkdir -p $PKG/etc/sysconfig/modules.d +cat > $PKG/etc/sysconfig/modules.d/virtualbox.conf << "EOF" +vboxdrv +vboxnetadp +vboxnetflt +vboxpci +EOF +# post-install autogen +cat > $PKGMK_ROOT/$isim.post-install << "EOF" +. lib/lsb/init-functions +log_success_msg "update modules population" +EOF +echo "depmod $KERNELRELEASE" >> $PKGMK_ROOT/$isim.post-install +cat >> $PKGMK_ROOT/$isim.post-install << "EOF" +log_warning_msg "${WARNING}Check the file /etc/modprobe.d/virtualbox.conf ${NORMAL}" +log_warning_msg "${WARNING}Reboot if you want the modules being automatically loaded${NORMAL}" +EOF +} diff --git a/talimatname/genel/v/virtualbox-cli/virtualbox-cli.kos-kur b/talimatname/genel/v/virtualbox-cli/virtualbox-cli.kos-kur new file mode 100644 index 000000000..c345d6f32 --- /dev/null +++ b/talimatname/genel/v/virtualbox-cli/virtualbox-cli.kos-kur @@ -0,0 +1,5 @@ +. lib/lsb/init-functions +if [ -z "`cards list|grep kernel-lts\ `" ]; then + log_warning_msg "${WARNING}kernel-lts${NORMAL} is not installed" + log_warning_msg "${WARNING}Either recompile the 'virtualbox-cli' package with your kernel, either using the kernel 'kernel-LTS" +fi diff --git a/talimatname/genel/v/virtualbox/talimat b/talimatname/genel/v/virtualbox/talimat new file mode 100644 index 000000000..d7e25f18a --- /dev/null +++ b/talimatname/genel/v/virtualbox/talimat @@ -0,0 +1,58 @@ +# Tanım: VirtualBox, güçlü bir 32 ve 64 bit sanallaştırma ürünüdür +# URL: http://virtualbox.org +# Paketçi: milisarge +# Gerekler: virtualbox-cli sdl + +isim=virtualbox +surum=5.0.12 +devir=1 +_isim=Oracle_VM_VirtualBox_Extension_Pack +_devir=104815 + +DOSYAIZLEME_YOKSAY="evet" +MD5SUM_YOKSAY="evet" + + +[ "`uname -m`" == "i686" ] && _ARCH=x86 +[ "`uname -m`" == "x86_64" ] && _ARCH=amd64 + +kaynak=(http://download.virtualbox.org/virtualbox/$surum/VirtualBox-${surum}-${_release}-Linux_${_ARCH}.run + http://download.virtualbox.org/virtualbox/$surum/${_name}-${surum}-${_release}.vbox-extpack + virtualbox.60-vboxdrv.rules) + +derle() { + sh VirtualBox-${surum}-${_release}-Linux_${_ARCH}.run --keep --noexec --target $SRC/ + mkdir -p $PKG/opt/VirtualBox $PKG/etc/vbox $PKG/usr/bin $PKG/etc/udev/rules.d/ \ + $PKG/usr/share/applications/ $PKG/usr/share/pixmaps/ + cd $PKG/opt/VirtualBox + tar xfj $SRC/VirtualBox.tar.bz2 + rm -Rf $PKG/opt/VirtualBox/sdk + for i in VirtualBox VBoxManage VBoxSDL VBoxHeadless + do ln -s /opt/VirtualBox/VBox.sh $PKG/usr/bin/$i + done + cd components + for i in VBoxDDU.so VBoxREM.so VBoxRT.so VBoxVMM.so VBoxXPCOM.so + do ln -s ../$i . + done + ln -s /opt/VirtualBox/rdesktop-vrdp $PKG/usr/bin/rdesktop-vrdp + mv $PKG/opt/VirtualBox/VBox.png $PKG/usr/share/pixmaps/VBox.png + mv $PKG/opt/VirtualBox/virtualbox.desktop $PKG/usr/share/applications/virtualbox.desktop + chmod +s $PKG/opt/VirtualBox/{VirtualBox,VBoxSDL,VBoxHeadless} + + mkdir -p $PKG/etc/udev/rules.d + cp $SRC/virtualbox.60-vboxdrv.rules $PKG/etc/udev/rules.d/60-vboxdrv.rules + + echo "# VirtualBox installation directory" > \ + $PKG/etc/vbox/vbox.cfg + echo "INSTALL_DIR="\"/opt/VirtualBox\" >> \ + $PKG/etc/vbox/vbox.cfg + + install -D -m 644 $SRC/${_name}-$surum-${_release}.vbox-extpack \ + $PKG/opt/VirtualBox/ExtensionPacks/${_name}-$surum-${_release}.vbox-extpack + mkdir -p $PKG/etc/ld.so.conf.d + echo /opt/VirtualBox > $PKG/etc/ld.so.conf.d/virtualbox.conf + # Icon + ln -s VBox.png $PKG/usr/share/pixmaps/virtualbox.png + # Source code files obsolet + rm -r $PKG/opt/VirtualBox/src +} diff --git a/talimatname/genel/v/virtualbox/virtualbox.60-vboxdrv.rules b/talimatname/genel/v/virtualbox/virtualbox.60-vboxdrv.rules new file mode 100644 index 000000000..f8b7cdf0a --- /dev/null +++ b/talimatname/genel/v/virtualbox/virtualbox.60-vboxdrv.rules @@ -0,0 +1,8 @@ +KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="root", MODE="0600" +KERNEL=="vboxdrvu", NAME="vboxdrvu", OWNER="root", GROUP="root", MODE="0666" +KERNEL=="vboxnetctl", NAME="vboxnetctl", OWNER="root", GROUP="root", MODE="0600" + +SUBSYSTEM=="usb_device", ACTION=="add", RUN+="/opt/VirtualBox/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass} vboxusers" +SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", RUN+="/opt/VirtualBox/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass} vboxusers" +SUBSYSTEM=="usb_device", ACTION=="remove", RUN+="/opt/VirtualBox/VBoxCreateUSBNode.sh --remove $major $minor" +SUBSYSTEM=="usb", ACTION=="remove", ENV{DEVTYPE}=="usb_device", RUN+="/opt/VirtualBox/VBoxCreateUSBNode.sh --remove $major $minor" diff --git a/talimatname/genel/v/virtualbox/virtualbox.kur-kos b/talimatname/genel/v/virtualbox/virtualbox.kur-kos new file mode 100644 index 000000000..0dd5c32c5 --- /dev/null +++ b/talimatname/genel/v/virtualbox/virtualbox.kur-kos @@ -0,0 +1,13 @@ +echo "For USB 2.0 facility, on the console: + +# VBoxManage extpack install /opt/VirtualBox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack-* + +To remove USB 2.0 Oracle extensions before an update: + +# VBoxManage list extpacks +# VBoxManage extpack uninstall "Oracle VM VirtualBox Extension Pack" +# VBoxManage extpack cleanup + +Then you can install the new version as above. No need to reboot. + +Enjoy it :)" diff --git a/talimatname/genel/v/virtualbox/virtualbox.okubeni b/talimatname/genel/v/virtualbox/virtualbox.okubeni new file mode 100644 index 000000000..c877dd8a9 --- /dev/null +++ b/talimatname/genel/v/virtualbox/virtualbox.okubeni @@ -0,0 +1,13 @@ +For USB 2.0 facility, on the console: + +# VBoxManage extpack install /opt/VirtualBox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack-* + +To remove USB 2.0 Oracle extensions before an update: + +# VBoxManage list extpacks +# VBoxManage extpack uninstall "Oracle VM VirtualBox Extension Pack" +# VBoxManage extpack cleanup + +Then you can install the new version as above. No need to reboot. + +Enjoy it :) diff --git a/talimatname/genel/v/virtualgl/talimat b/talimatname/genel/v/virtualgl/talimat new file mode 100644 index 000000000..81472b981 --- /dev/null +++ b/talimatname/genel/v/virtualgl/talimat @@ -0,0 +1,28 @@ +# Tanım: opengl kullanan bir uygulamadan opengl ekran kartına 3d komut iletir +# URL: http://virtualgl.org +# Paketçi: milisarge +# Gerekler: xorg-libxv xorg-glu libjpeg-turbo xorg-xcb-util-keysyms + +isim=virtualgl +surum=2.5.2 +devir=1 +kaynak=(https://github.com/VirtualGL/$isim/archive/$surum.tar.gz) + +derle() { + cd $isim-$surum + + cmake . \ + -DCMAKE_BINARY_DIR=/usr \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_DEFAULT_LIBDIR=lib \ + -DCMAKE_SYSTEM_PROCESSOR=x86_64 + + make + make DESTDIR=$PKG install + + rm -rf $PKG/usr/share + + rm -rf $PKG/usr/bin/.vglrun.vars64 + + mv $PKG/usr/bin/glxinfo $PKG/usr/bin/vglxinfo +} diff --git a/talimatname/genel/v/vlc/lua53_compat.patch b/talimatname/genel/v/vlc/lua53_compat.patch new file mode 100644 index 000000000..aeff7b2fd --- /dev/null +++ b/talimatname/genel/v/vlc/lua53_compat.patch @@ -0,0 +1,30 @@ +commit 41caaa08cde60c4fec4bf2e5f9610e2a1b9e6a23 +Author: Vinson Lee +Date: Thu Feb 5 14:48:53 2015 -0800 + + lua: Define LUA_COMPAT_APIINTCASTS for Lua >= 5.3.0 compatibility. + + In Lua 5.3.0, luaL_checkint was deprecated. + + This patch fixes this build error with Lua 5.3.0. + + lua/demux.c: In function ‘vlclua_demux_peek’: + lua/demux.c:55:5: error: implicit declaration of function ‘luaL_checkint’ [-Werror=implicit-function-declaration] + int n = luaL_checkint( L, 1 ); + ^ + + Signed-off-by: Vinson Lee + Signed-off-by: Jean-Baptiste Kempf + +diff --git a/modules/lua/vlc.h b/modules/lua/vlc.h +index efd94f1..85c7fc1 100644 +--- a/modules/lua/vlc.h ++++ b/modules/lua/vlc.h +@@ -38,6 +38,7 @@ + #include + #include + ++#define LUA_COMPAT_APIINTCASTS + #define LUA_COMPAT_MODULE + #include /* Low level lua C API */ + #include /* Higher level C API */ diff --git a/talimatname/genel/v/vlc/talimat b/talimatname/genel/v/vlc/talimat new file mode 100644 index 000000000..51e2dc1c5 --- /dev/null +++ b/talimatname/genel/v/vlc/talimat @@ -0,0 +1,56 @@ +# Tanım: VLC, özgür ve açık kaynak kodlu, platformlar arası, bir ortam oynatıcı ve çatıdır. +# URL: http://www.videolan.org/vlc/ +# Paketçi: milisarge +# Gerekler: opus libssh2 qt5 x264 flac libmad glib dbus libupnp libvlc libidn librsvg alsa-lib xorg-libxinerama xorg-libxpm libvpx libcdio vcdimager live libdvdcss libdvdread libdvdnav libogg libtheora lame faac libvorbis ffmpeg28 faad2 liba52 libmpeg2 libmpcdec fribidi lua libdv speex + +isim=vlc +surum=2.2.8 +devir=1 + +kaynak=(https://download.videolan.org/${isim}/${surum}/${isim}-${surum}.tar.xz + lua53_compat.patch) + +derle() { + + cd $isim-$surum + sed -i -e 's:truetype/freefont:TTF:g' modules/text_renderer/freetype.c + sed -i -e 's:truetype/ttf-dejavu:TTF:g' modules/visualization/projectm.cpp + patch -p1 < "${SRC}/lua53_compat.patch" + + sed -i 's/^Exec=/Name[tr]=VLC Medya Oynatıcı \ +GenericName[tr]=Medya Oynatıcı \ +Comment[tr]=Multimedya akışlarınızı okur,yakalar,yayınlar \ +&/' $SRC/$isim-$surum/share/vlc.desktop.in + + sed -i '/seems to be moved/s/^/#/' autotools/ltmain.sh + export PKG_CONFIG_PATH="/usr/lib/ffmpeg2.8/pkgconfig" + export CXXFLAGS+=" -std=c++11" + export LUAC=/usr/bin/luac + export LUA_LIBS="`pkg-config --libs lua`" + export RCC=/usr/bin/rcc-qt5 + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --disable-rpath \ + --enable-faad \ + --enable-nls \ + --enable-lirc \ + --enable-ncurses \ + --enable-realrtsp \ + --enable-aa \ + --enable-vcdx \ + --enable-upnp \ + --enable-bluray \ + --enable-opus \ + --enable-sftp + sed -i '/354/s/.*/#define QT_XMAS_JOKE_DAY 666/' $SRC/$isim-$surum/modules/gui/qt4/qt4.hpp + sed -i -e 's/\'--owner=root'\>//g' share/Makefile + sed -i -e 's/\'--group=root'\>//g' share/Makefile + make + make DESTDIR=$PKG install + for res in 16 32 48 128; do + install -Dm 644 "${SRC}/vlc-${surum}/share/icons/${res}x${res}/vlc.png" \ + "${PKG}/usr/share/icons/hicolor/${res}x${res}/apps/vlc.png" + done + +} diff --git a/talimatname/genel/v/vlc/vlc.kur-kos b/talimatname/genel/v/vlc/vlc.kur-kos new file mode 100644 index 000000000..91f401b98 --- /dev/null +++ b/talimatname/genel/v/vlc/vlc.kur-kos @@ -0,0 +1,9 @@ +xdg-icon-resource forceupdate --theme hicolor &> /dev/null +/usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins + +cp /usr/bin/vlc /usr/bin/vlc-backup + +needle=$(objdump -d /usr/bin/vlc | grep euid | tail -1 | awk '{print "\\x"$2"\\x"$3"\\x"$4"\\x"$5"\\x"$6;}') + +sed -ir "s/$needle/\xb8\x01\x00\x00\x00/" /usr/bin/vlc + diff --git a/talimatname/genel/v/vmware/Makefile b/talimatname/genel/v/vmware/Makefile new file mode 100644 index 000000000..4b5899215 --- /dev/null +++ b/talimatname/genel/v/vmware/Makefile @@ -0,0 +1,24 @@ +#!/usr/bin/make -f + +MODULES = \ + vmmon \ + vmnet \ + #vmblock \ + #vmci \ + #vsock + +all: $(foreach m, $(MODULES), $m.ko) + +%.ko: % + $(MAKE) KVERSION=$(KVERSION) VM_KBUILD=yes -C $*-only + +$(MODULES): %: + cp -r $(SRCDIR)/$*-only $*-only + +vsock.ko: vmci.ko + +clean: + rm -rf $(MODULES) + rm -rf $(foreach m, $(MODULES), $m-only) + rm -f $(foreach m, $(MODULES), $m.ko) + rm -f $(foreach m, $(MODULES), $m.o) diff --git a/talimatname/genel/v/vmware/bootstrap b/talimatname/genel/v/vmware/bootstrap new file mode 100644 index 000000000..981b82191 --- /dev/null +++ b/talimatname/genel/v/vmware/bootstrap @@ -0,0 +1,11 @@ +PREFIX="/usr" +BINDIR="/usr/bin" +SBINDIR="/usr/sbin" +LIBDIR="/usr/lib" +DATADIR="/usr/share" +SYSCONFDIR="/etc" +DOCDIR="/usr/share/doc" +MANDIR="/usr/share/man" +INCLUDEDIR="/usr/include" +INITDIR="" +INITSCRIPTDIR="/usr/lib/systemd/scripts" diff --git a/talimatname/genel/v/vmware/config b/talimatname/genel/v/vmware/config new file mode 100644 index 000000000..cab1f3338 --- /dev/null +++ b/talimatname/genel/v/vmware/config @@ -0,0 +1,25 @@ +.encoding = "UTF-8" +VMCI_CONFED = "yes" +NETWORKING = "yes" +VMBLOCK_CONFED = "yes" +authd.fullpath = "/usr/bin/vmware-authd" +gksu.rootMethod = "su" +VSOCK_CONFED = "yes" +libdir = "/usr/lib/vmware" +bindir = "/usr/bin" +vmware.fullpath = "/usr/bin/vmware" +vix.libdir = "/usr/lib/vmware-vix" +installerDefaults.componentDownloadEnabled = "no" +installerDefaults.autoSoftwareUpdateEnabled.epoch = "4641104763" +vix.config.version = "1" +player.product.version = "14.0.0" +installerDefaults.dataCollectionEnabled.epoch = "7910652514" +installerDefaults.dataCollectionEnabled = "no" +installerDefaults.transferVersion = "1" +installerDefaults.autoSoftwareUpdateEnabled = "no" +product.buildNumber = "6661328" +authd.client.port = "902" +authd.proxy.nfc = "vmware-hostd:ha-nfc" +product.version = "14.0.0" +workstation.product.version = "14.0.0" +product.name = "VMware Workstation" diff --git a/talimatname/genel/v/vmware/config.xml b/talimatname/genel/v/vmware/config.xml new file mode 100644 index 000000000..68f851ad7 --- /dev/null +++ b/talimatname/genel/v/vmware/config.xml @@ -0,0 +1,880 @@ + + + + + ./ + + + /etc/vmware/ + + + /usr/lib/vmware + + + + + + + + + + + + + + + + + + + + + + + + 32 + + + ws + + + + false + + 128 + + + + + + + + + /var/log/vmware/ + + + hostd + + + true + + + false + + + + + + + + Hostd + + + local4 + + + /var/run/vmware/hostdLogHeader.txt + + + + + + + + + + + verbose + + + + + + + + + + + + + false + + + + SoapAdapter.HTTPService + info + false + + + + TCP + error + false + + + + + + + + + + + /etc/vmware/ssl/rui.key + + + /etc/vmware/ssl/rui.crt + + + + + + + /vmimages + + + + + + + + + + + + + + + + + + + + ./ + + + 2 + 32 + 2 + 12 + 2048 + 8 + 600 + 256 + hostd + + + + + + + + + + + + + + + + + + + + + false + /usr/lib/vmware + + + + + + + + + + + + + + + 128 + + + + + + + + + + + + + true + + + false + + + + + + + + 104857600 + + 524288 + + 1000 + + + + + + + + + + + + + + + + /etc/vmware/hostd/dispatcher.xml + + + /etc/vmware/hostd/tagExtractor.xml + + + + + libvimsvc.so + + + + + + + + + + + + true + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + true + + hostsvc solo + + + + libhostsvc.so + + + vfc + 0 + 30 + + + + + + + + + + + + + + + + + false + + + /etc/vmware/hostd/mockup-host-config.xml + + /etc/vmware/hostd/vmResources.xml + + + + + + + + + /etc/vmware/service/ + + + + + + + + + + + + + + + 120 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + /etc/vmware/netmap.conf + + + + + false + 5 + 100 + 30 + + + + libvmsvc.so + + false + + false + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + + vimsvc + + + + libvcsvc.so + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + hostsvc + + + + libsolo.so + + false + + + + /etc/vmware/hostd/environments.xml + + + /etc/vmware/hostd/vmInventory.xml + + + + + + + + + /etc/vmware/hostd/env/provisioningPolicy.xml + + + /etc/vmware/hostd/hwInfo.xml + + + + + + + + + + + + + + + + + + 8307 + + + + + + + false + + + + + + + + + verbose + + + + + + + + + + + + + disklib + 0 + + + + + + + + + + + + /usr/lib/vmware/hostd/docroot/ + /usr/lib/vmware/hostd/cgi-bin/ + + + + + + + + + + + false + + + true + ha-dynamic-type-manager-python + soap-stdio + + /usr/bin/sh + -l + -c + /usr/bin/python -m PyVmomiServer -g --loglevel info -s PyVmomiServer + + + + + false + ha-dynamic-type-manager-vapi + soap-http + + 8088 + /usr/bin/sh + -l + -c + /sbin/vapid -s vapid + + + + + true + ha-dynamic-type-manager-local-cli + vmware-cli + + /usr/lib/vmware/esxcli + + + + + + + + + + hostsvc + + + + + libproxysvc.so + + + /etc/vmware/hostd/proxy.xml + + /etc/vmware/rhttpproxy/endpoints.conf + hostsvc + + + + + libstatssvc.so + false + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + libpartitionsvc.so + false + + + + libinternalsvc.so + hostsvc + + + + + libnfcsvc.so + true + + false + + + + + false + libsnmpsvc.so + + + + libblklistsvc.so + false + + + + + + libcimsvc.so + false + 40 + 90 + + + + libdirectorysvc.so + false + + false + + + + + libvdisksvc.so + false + + false + + + + + libvslmsvc.so + false + + false + + + + + libhttpnfcsvc.so + false + + false + + proxysvc + + + + libovfmgrsvc.so + true + + + + libdynsvc.so + false + true + + + + libguestsvc.so + false + + + + libhbrsvc.so + false + + + false + + vmsvc + + + + libcbrcsvc.so + false + + + + libhostspecsvc.so + false + + + + + + + + + + + \ No newline at end of file diff --git a/talimatname/genel/v/vmware/datastores.xml b/talimatname/genel/v/vmware/datastores.xml new file mode 100644 index 000000000..a457a9524 --- /dev/null +++ b/talimatname/genel/v/vmware/datastores.xml @@ -0,0 +1,16 @@ + + + <_length>1 + <_type>hostd.host.LocalDatastoreEntry[] + + <_type>hostd.host.LocalDatastoreEntry + 1 + standard + /var/lib/vmware/Shared VMs + + + + <_length>0 + <_type>hostd.host.NasDatastoreEntry[] + + \ No newline at end of file diff --git a/talimatname/genel/v/vmware/environments.xml b/talimatname/genel/v/vmware/environments.xml new file mode 100644 index 000000000..57a099d3a --- /dev/null +++ b/talimatname/genel/v/vmware/environments.xml @@ -0,0 +1,46 @@ + + + /etc/vmware/hostd/env/ws-hw3.xml + /etc/vmware/hostd/env/vmconfigoption-ws-hw3.xml + + + /etc/vmware/hostd/env/ws-hw4.xml + /etc/vmware/hostd/env/vmconfigoption-ws-hw4.xml + + + /etc/vmware/hostd/env/ws-hw6.xml + /etc/vmware/hostd/env/vmconfigoption-ws-hw6.xml + + + /etc/vmware/hostd/env/ws-hw7.xml + /etc/vmware/hostd/env/vmconfigoption-ws-hw7.xml + + + /etc/vmware/hostd/env/ws-hw8.xml + /etc/vmware/hostd/env/vmconfigoption-ws-hw8.xml + + + /etc/vmware/hostd/env/ws-hw9.xml + /etc/vmware/hostd/env/vmconfigoption-ws-hw9.xml + + + /etc/vmware/hostd/env/ws-hw10.xml + /etc/vmware/hostd/env/vmconfigoption-ws-hw10.xml + + + /etc/vmware/hostd/env/ws-hw11.xml + /etc/vmware/hostd/env/vmconfigoption-ws-hw11.xml + + + /etc/vmware/hostd/env/ws-hw12.xml + /etc/vmware/hostd/env/vmconfigoption-ws-hw12.xml + + + /etc/vmware/hostd/env/ws-hw13.xml + /etc/vmware/hostd/env/vmconfigoption-ws-hw13.xml + + + /etc/vmware/hostd/env/ws-hw14.xml + /etc/vmware/hostd/env/vmconfigoption-ws-hw14.xml + + diff --git a/talimatname/genel/v/vmware/pam.d-vmware-authd b/talimatname/genel/v/vmware/pam.d-vmware-authd new file mode 100644 index 000000000..44391264e --- /dev/null +++ b/talimatname/genel/v/vmware/pam.d-vmware-authd @@ -0,0 +1,5 @@ +#%PAM-1.0 +auth required pam_unix.so +account required pam_unix.so +password required pam_permit.so +session required pam_unix.so diff --git a/talimatname/genel/v/vmware/proxy.xml b/talimatname/genel/v/vmware/proxy.xml new file mode 100644 index 000000000..d9ab50398 --- /dev/null +++ b/talimatname/genel/v/vmware/proxy.xml @@ -0,0 +1,50 @@ + + -1 + 443 + + <_length>7 + <_type>vim.ProxyService.EndpointSpec[] + + <_type>vim.ProxyService.NamedPipeServiceSpec + httpAndHttps + /var/run/vmware/proxy-webserver + / + + + <_type>vim.ProxyService.LocalServiceSpec + httpsWithRedirect + 8307 + /sdk + + + <_type>vim.ProxyService.LocalServiceSpec + httpsWithRedirect + 8308 + /ui + + + <_type>vim.ProxyService.NamedPipeServiceSpec + httpsOnly + /var/run/vmware/proxy-vpxa + /vpxa + + + <_type>vim.ProxyService.NamedPipeServiceSpec + httpsWithRedirect + /var/run/vmware/proxy-mob + /mob + + + <_type>vim.ProxyService.LocalServiceSpec + httpAndHttps + 12001 + /ha-nfc + + + <_type>vim.ProxyService.LocalServiceSpec + httpAndHttps + 12000 + /nfc + + + diff --git a/talimatname/genel/v/vmware/talimat b/talimatname/genel/v/vmware/talimat new file mode 100644 index 000000000..152e1d98d --- /dev/null +++ b/talimatname/genel/v/vmware/talimat @@ -0,0 +1,234 @@ +# Tanım: Vmware sanal makine uygulaması +# URL: https://www.vmware.com/products/workstation-for-linux.html +# Paketçi: milisarge +# Gerekler: sqlite3 xorg-app +# Grup: sistem + +isim=vmware +surum=14.1.1 +devir=1 +_derlemeno=7528167 +_surum=${surum}_${_derlemeno} +kaynak=(https://download3.vmware.com/software/wkst/file/VMware-Workstation-Full-${_surum/_/-}.x86_64.bundle + vmware-vix-bootstrap + config + bootstrap + pam.d-vmware-authd + vmware-environment.sh + config.xml + datastores.xml + environments.xml + proxy.xml + Makefile + vmmon.patch + vmnet.patch) + +derle() { + extracted_dir="$SRC/extracted" + + [[ -d "$extracted_dir" ]] && rm -r "$extracted_dir" + + bash $(readlink -f "$SRC/VMware-Workstation-Full-${_surum/_/-}.x86_64.bundle") --extract "$extracted_dir" + local vmware_installer_version=$(cat "$SRC/extracted/vmware-installer/manifest.xml" | grep -oPm1 "(?<=)[^<]+") + + mkdir -p \ + "$PKG/etc"/{cups,pam.d,modprobe.d,profile.d,thnuclnt,vmware} \ + "$PKG/usr"/{share,bin} \ + "$PKG/usr/include/vmware-vix" \ + "$PKG/usr/lib"/{vmware/{setup,lib/libvmware-vim-cmd.so},vmware-vix,vmware-ovftool,vmware-installer/"$vmware_installer_version",cups/filter,modules-load.d} \ + "$PKG/usr/share"/{doc/vmware-vix,licenses/"$isim"} \ + "$PKG/var/lib/vmware/Shared VMs" + + cd "$SRC/extracted" + + cp -r \ + vmware-workstation/share/* \ + vmware-workstation/man \ + vmware-network-editor-ui/share/* \ + vmware-player-app/share/* \ + "$PKG/usr/share" + + cp -r \ + vmware-workstation/bin/* \ + vmware-vmx/{,s}bin/* \ + vmware-vix-core/bin/* \ + vmware-vprobe/bin/* \ + vmware-workstation-server/{vmware-hostd,vmware-vim-cmd,vmware-wssc-adminTool} \ + vmware-network-editor-ui/bin/* \ + vmware-player-app/bin/* \ + "$PKG/usr/bin" + + cp -r \ + vmware-workstation/lib/* \ + vmware-player-app/lib/* \ + vmware-vmx/{lib/*,roms} \ + vmware-vprobe/lib/* \ + vmware-workstation-server/{bin,lib,hostd} \ + vmware-usbarbitrator/bin \ + vmware-network-editor/lib \ + "$PKG/usr/lib/vmware" + + cp -r \ + vmware-player-setup/vmware-config \ + "$PKG/usr/lib/vmware/setup" + + cp -rL \ + vmware-workstation-server/config/etc/vmware/* \ + vmware-workstation-server/etc/vmware/* \ + "$SRC"/{bootstrap,config} \ + "$PKG/etc/vmware" + + cp -r \ + vmware-vix-lib-Workstation1400/lib/Workstation-14.0.0 \ + vmware-vix-core/{lib/*,vixwrapper-config.txt} \ + "$PKG/usr/lib/vmware-vix" + cp vmware-vix-core/vix-perl.tar.nogz "$PKG/usr/lib/vmware-vix/vix-perl.tar.gz" + + cp -r \ + vmware-vix-core/doc/* \ + "$PKG/usr/share/doc/vmware-vix" + + cp -r \ + vmware-ovftool/* \ + "$PKG/usr/lib/vmware-ovftool" + + cp -r \ + vmware-installer/{python,sopython,vmis,vmis-launcher,vmware-installer,vmware-installer.py} \ + "$PKG/usr/lib/vmware-installer/$vmware_installer_version" + + cp -r \ + vmware-player-app/etc/cups/* \ + "$PKG/etc/cups" + cp -r \ + vmware-player-app/extras/.thnumod \ + "$PKG/etc/thnuclnt" + cp -r \ + vmware-player-app/extras/thnucups \ + "$PKG/usr/lib/cups/filter" + + cp -r \ + vmware-vix-core/include/* \ + "$PKG/usr/include/vmware-vix" + + install -Dm 644 "vmware-workstation/doc/EULA" "$PKG/usr/share/licenses/$isim/VMware Workstation - EULA.txt" + install -Dm 644 "vmware-workstation/doc"/*open_source_licenses.txt "$PKG/usr/share/licenses/$isim" + mv "$PKG/usr/lib/vmware-ovftool/vmware.eula" "$PKG/usr/share/licenses/$isim/VMware OVF Tool component for Linux - EULA.txt" + rm "$PKG/usr/lib/vmware-ovftool"/{vmware-eula.rtf,open_source_licenses.txt,manifest.xml} + + install -Dm 644 "vmware-vmx/etc/modprobe.d/modprobe-vmware-fuse.conf" "$PKG/etc/modprobe.d/vmware-fuse.conf" + + install -Dm 644 vmware-player-app/lib/isoimages/tools-key.pub "$PKG/usr/lib/vmware/isoimages/tools-key.pub" + + install -Dm 644 vmware-vmx/extra/modules.xml "$PKG/usr/lib/vmware/modules/modules.xml" + install -Dm 644 vmware-installer/bootstrap "$PKG/etc/vmware-installer/bootstrap" + install -Dm 644 "$SRC/vmware-vix-bootstrap" "$PKG/etc/vmware-vix/bootstrap" + + for hostd_file in config datastores environments proxy; do + install -Dm 644 "$SRC/$hostd_file.xml" "$PKG/etc/vmware/hostd/$hostd_file.xml" + done + + install -Dm 644 "$SRC/pam.d-vmware-authd" "$PKG/etc/pam.d/vmware-authd" + + echo -e "vmw_vmci\nvmmon" > "$PKG/usr/lib/modules-load.d/vmware.conf" + + chmod +x \ + "$PKG/usr/bin"/* \ + "$PKG/usr/lib/vmware/bin"/* \ + "$PKG/usr/lib/vmware/setup"/* \ + "$PKG/usr/lib/vmware/lib"/libvmware-gksu.so/gksu-run-helper \ + "$PKG/usr/lib/vmware-ovftool"/{ovftool,ovftool.bin} \ + "$PKG/usr/lib/vmware-installer/$vmware_installer_version"/{vmware-installer,vmis-launcher} \ + "$PKG/usr/lib/cups/filter"/* \ + "$PKG/usr/lib/vmware-vix/setup"/* \ + "$PKG/etc/thnuclnt/.thnumod" + + chmod -R 600 "$PKG/etc/vmware/ssl" + chmod +s \ + "$PKG/usr/bin"/vmware-authd \ + "$PKG/usr/lib/vmware/bin"/{vmware-vmx,vmware-vmx-debug,vmware-vmx-stats} + + # Add symlinks the installer would create. + + for link in \ + licenseTool \ + vmplayer \ + vmware \ + vmware-app-control \ + vmware-enter-serial \ + vmware-fuseUI \ + vmware-gksu \ + vmware-hostd \ + vmware-modconfig \ + vmware-modconfig-console \ + vmware-mount \ + vmware-netcfg \ + vmware-tray \ + vmware-vim-cmd \ + vmware-vmblock-fuse \ + vmware-vprobe \ + vmware-wssc-adminTool \ + vmware-zenity + do + ln -s /usr/lib/vmware/bin/appLoader "$PKG/usr/lib/vmware/bin/$link" + done + + for link in \ + vmware-mount \ + vmware-usbarbitrator + do + ln -s /usr/lib/vmware/bin/$link "$PKG/usr/bin/$link" + done + + ln -s /usr/lib/vmware/icu "$PKG/etc/vmware/icu" + ln -s /usr/lib/vmware/lib/diskLibWrapper.so/diskLibWrapper.so "$PKG/usr/lib/diskLibWrapper.so" + ln -s /usr/lib/vmware/lib/libvmware-hostd.so/libvmware-hostd.so "$PKG/usr/lib/vmware/lib/libvmware-vim-cmd.so/libvmware-vim-cmd.so" + ln -s /usr/lib/vmware-ovftool/ovftool "$PKG/usr/bin/ovftool" + ln -s /usr/lib/vmware-vix/libvixAllProducts.so "$PKG/usr/lib/libvixAllProducts.so" + + # Replace placeholder "variables" with real paths. + + for file in \ + gtk-3.0/gdk-pixbuf.loaders + do + sed -i 's,@@LIBCONF_DIR@@,/usr/lib/vmware/libconf,g' "$PKG/usr/lib/vmware/libconf/etc/$file" + done + + sed -i 's,@@BINARY@@,/usr/bin/vmware,' "$PKG/usr/share/applications/vmware-workstation.desktop" + sed -i 's,@@BINARY@@,/usr/bin/vmplayer,' "$PKG/usr/share/applications/vmware-player.desktop" + sed -i 's,@@BINARY@@,/usr/bin/vmware-netcfg,' "$PKG/usr/share/applications/vmware-netcfg.desktop" + + sed -i 's,@@AUTHD_PORT@@,902,' "$PKG/usr/lib/vmware/hostd/docroot/client/clients.xml" + + sed \ + -e "s/@@VERSION@@/$vmware_installer_version/" \ + -e "s,@@VMWARE_INSTALLER@@,/usr/lib/vmware-installer/$vmware_installer_version," \ + -i "$PKG/etc/vmware-installer/bootstrap" + + # Patch up the VMware kernel sources + + dkms_dir="$PKG/usr/src/$isim-$_surum" + + install -Dm 644 "$SRC/Makefile" "$dkms_dir/Makefile" + + for module in vmmon vmnet; do # vmblock vmci vsock + tar -xf "vmware-vmx/lib/modules/source/$module.tar" -C "$dkms_dir" + patch -p2 --read-only=ignore --directory="$dkms_dir/$module-only" < "$SRC/$module.patch" + done + + rm -r "$PKG/usr/lib/vmware/modules/source" + + local database_filename="$PKG/etc/vmware-installer/database" + echo -n "" > "$database_filename" + + sqlite3 "$database_filename" "CREATE TABLE settings(key VARCHAR PRIMARY KEY, value VARCHAR NOT NULL, component_name VARCHAR NOT NULL);" + sqlite3 "$database_filename" "INSERT INTO settings(key,value,component_name) VALUES('db.schemaVersion','2','vmware-installer');" + sqlite3 "$database_filename" "CREATE TABLE components(id INTEGER PRIMARY KEY, name VARCHAR NOT NULL, version VARCHAR NOT NULL, buildNumber INTEGER NOT NULL, component_core_id INTEGER NOT NULL, longName VARCHAR NOT NULL, description VARCHAR, type INTEGER NOT NULL);" + + # Define some environment variables for VMware and remove the tests about kernel modules + install -Dm 644 "$SRC/vmware-environment.sh" "$PKG/etc/conf.d/vmware" + for program in vmware vmplayer vmware-netcfg vmware-tray; do + sed -e '/export PRODUCT_NAME/asource /etc/conf.d/vmware' \ + -e 's/if "$BINDIR"\/vmware-modconfig --appname=.*/if true ||/' \ + -i "$PKG/usr/bin/$program" + done +} diff --git a/talimatname/genel/v/vmware/vmmon.patch b/talimatname/genel/v/vmware/vmmon.patch new file mode 100644 index 000000000..d69f3135c --- /dev/null +++ b/talimatname/genel/v/vmware/vmmon.patch @@ -0,0 +1,16 @@ +diff --git a/vmmon/Makefile b/vmmon/Makefile +index de8162e..6124a71 100644 +--- a/vmmon/Makefile ++++ b/vmmon/Makefile +@@ -43,7 +43,11 @@ INCLUDE += -I$(SRCROOT)/shared + endif + + ++ifdef KVERSION ++VM_UNAME = $(KVERSION) ++else + VM_UNAME = $(shell uname -r) ++endif + + # Header directory for the running kernel + ifdef LINUXINCLUDE diff --git a/talimatname/genel/v/vmware/vmnet.patch b/talimatname/genel/v/vmware/vmnet.patch new file mode 100644 index 000000000..d2c620705 --- /dev/null +++ b/talimatname/genel/v/vmware/vmnet.patch @@ -0,0 +1,16 @@ +diff --git a/vmnet/Makefile b/vmnet/Makefile +index 459846e..cd29652 100644 +--- a/vmnet/Makefile ++++ b/vmnet/Makefile +@@ -43,7 +43,11 @@ INCLUDE += -I$(SRCROOT)/shared + endif + + ++ifdef KVERSION ++VM_UNAME = $(KVERSION) ++else + VM_UNAME = $(shell uname -r) ++endif + + # Header directory for the running kernel + ifdef LINUXINCLUDE diff --git a/talimatname/genel/v/vmware/vmware-environment.sh b/talimatname/genel/v/vmware/vmware-environment.sh new file mode 100644 index 000000000..a6f550a61 --- /dev/null +++ b/talimatname/genel/v/vmware/vmware-environment.sh @@ -0,0 +1,9 @@ +# Uncomment the line below if you have a problem of incompatible libraries +#export VMWARE_USE_SHIPPED_LIBS=yes + +# Uncomment and fill the line below to change GTK theme +#export GTK_THEME="" + + +# Avoid an issue with some keyboard layouts using iBus +export GTK_IM_MODULE_FILE=/dev/null diff --git a/talimatname/genel/v/vmware/vmware-vix-bootstrap b/talimatname/genel/v/vmware/vmware-vix-bootstrap new file mode 100644 index 000000000..425074de8 --- /dev/null +++ b/talimatname/genel/v/vmware/vmware-vix-bootstrap @@ -0,0 +1,2 @@ +BINDIR="/usr/bin" + diff --git a/talimatname/genel/v/vmware/vmware.kur-kos b/talimatname/genel/v/vmware/vmware.kur-kos new file mode 100644 index 000000000..011454eda --- /dev/null +++ b/talimatname/genel/v/vmware/vmware.kur-kos @@ -0,0 +1,16 @@ +#!/bin/sh +mkdir -p /lib/modules/$(uname -r)/extra +[ -f /sources/milis.git/ayarlar/moduller/vmci.ko ] && cp /sources/milis.git/ayarlar/moduller/vmci.ko /lib/modules/$(uname -r)/extra/ +cd /usr/src/vmware-14* +[ -f /usr/src/linux-$(uname -r)/vmlinux ] && mv /usr/src/linux-$(uname -r)/vmlinux /opt +make KVERSION=$(uname -r) VM_KBUILD=yes -C vmmon-only +cp vmmon-only/vmmon.ko /lib/modules/$(uname -r)/extra/ + +make KVERSION=$(uname -r) VM_KBUILD=yes -C vmnet-only +cp vmnet-only/vmnet.ko /lib/modules/$(uname -r)/extra/ + +[ -f /opt/vmlinux ] && mv /opt/vmlinux /usr/src/linux-$(uname -r)/ +depmod +modprobe vmmon +modprobe vmnet +[ -f /lib/modules/$(uname -r)/extra/vmci.ko ] && modprobe vmci diff --git a/talimatname/genel/v/vokoscreen/desktop_file.patch b/talimatname/genel/v/vokoscreen/desktop_file.patch new file mode 100644 index 000000000..88541c0c0 --- /dev/null +++ b/talimatname/genel/v/vokoscreen/desktop_file.patch @@ -0,0 +1,15 @@ +--- a/applications/vokoscreen.desktop 2015-05-27 12:13:34.206233690 -0500 ++++ b/applications/vokoscreen.desktop 2015-05-27 12:16:02.223851764 -0500 +@@ -1,10 +1,10 @@ + [Desktop Entry] +-Comment=screencast ++Comment=An easy to use screencast creator + Exec=vokoscreen + Icon=vokoscreen + Name=vokoscreen + StartupNotify=false + Terminal=false + Type=Application +-Categories=AudioVideo;Recorder; ++Categories=AudioVideo;Recorder;Qt; + Keywords=Audio;Video;Recorder;Screencast; diff --git a/talimatname/genel/v/vokoscreen/fix_lrelease.patch b/talimatname/genel/v/vokoscreen/fix_lrelease.patch new file mode 100644 index 000000000..462bb819c --- /dev/null +++ b/talimatname/genel/v/vokoscreen/fix_lrelease.patch @@ -0,0 +1,12 @@ +diff -uprNEBZ --suppress-blank-empty a/vokoscreen.pro b/vokoscreen.pro +--- a/vokoscreen.pro 2016-04-19 04:48:55.000000000 -0500 ++++ b/vokoscreen.pro 2016-04-21 15:56:08.404677703 -0500 +@@ -27,7 +27,7 @@ TRANSLATIONS = $$files(language/vokoscre + !isEmpty(TRANSLATIONS) { + isEmpty(QMAKE_LRELEASE) { + win32: QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\lrelease.exe +- else: QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease-qt5 ++ else: QMAKE_LRELEASE = $$[QT_INSTALL_PREFIX]/bin/lrelease-qt5 + } + isEmpty(TS_DIR):TS_DIR = language + TSQM.name = lrelease-qt5 ${QMAKE_FILE_IN} diff --git a/talimatname/genel/v/vokoscreen/talimat b/talimatname/genel/v/vokoscreen/talimat new file mode 100644 index 000000000..94fd548d9 --- /dev/null +++ b/talimatname/genel/v/vokoscreen/talimat @@ -0,0 +1,37 @@ +# Tanım: Kolay ekran çekim uygulaması +# URL: http://linuxecke.volkoh.de/vokoscreen/vokoscreen.html +# Paketçi: milisarge +# Gerekler: xorg-libxrandr v4l-utils qt5 ffmpeg lame lsof pulseaudio xdg-utils +# Grup: medya + +isim=vokoscreen +_surum=2.5.7-beta +surum=${_surum/-/.} +devir=1 + +kaynak=(https://github.com/vkohaupt/${isim}/archive/${_surum}.tar.gz::$isim-$surum.tar.gz + desktop_file.patch + fix_lrelease.patch) + +derle() { + + cd "${SRC}"/${isim}-${_surum} + + patch -Np1 < ../fix_lrelease.patch + patch -Np1 < ../desktop_file.patch + + sed -i 's/^Exec=/Name[tr]=Vokoscreen \ +GenericName[tr]=Ekran Kaydedici \ +Comment[tr]=Kullanımı kolay bir ekran kaydedici \ +&/' applications/$isim.desktop + + mkdir -p "${SRC}"/build + cd "${SRC}"/build + qmake-qt5 ../${isim}-${_surum} \ + QMAKE_CFLAGS="${CFLAGS}" \ + QMAKE_CXXFLAGS="${CXXFLAGS}" \ + CONFIG+=release \ + CONFIG+=c++14 + make + make INSTALL_ROOT="${PKG}" install +} diff --git a/talimatname/genel/v/vpnc/talimat b/talimatname/genel/v/vpnc/talimat new file mode 100644 index 000000000..a790cdb3e --- /dev/null +++ b/talimatname/genel/v/vpnc/talimat @@ -0,0 +1,17 @@ +# Tanım: Cisco vpn konsantratörü için istemci +# URL: https://www.unix-ag.uni-kl.de/~massar/vpnc/ +# Paketçi: milisarge +# Gerekler: libgcrypt + +isim=vpnc +surum=0.5.3 +devir=1 +kaynak=(https://www.unix-ag.uni-kl.de/~massar/$isim/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + + make + make DESTDIR=$PKG PREFIX=/usr MANDIR=/usr/share/man install + install -Dm755 vpnc-script $PKG/etc/vpnc/vpnc-script +} diff --git a/talimatname/genel/v/vte/talimat b/talimatname/genel/v/vte/talimat new file mode 100644 index 000000000..07a11f90e --- /dev/null +++ b/talimatname/genel/v/vte/talimat @@ -0,0 +1,21 @@ +# Tanım: Vte, GTK+ 2 için bir terminal emülatörü widget'ı uygulayan bir kitaplık (libvte) +# URL: http://developer.gnome.org/arch/gnome/widgets/vte.html +# Paketçi: milisarge +# Gerekler: gtk2 intltool gobject-introspection + +isim=vte +surum=0.28.2 +devir=1 + +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { +# build package +cd $isim-$surum +./configure --prefix=/usr \ +--libexecdir=/usr/libexec/vte \ +--disable-static +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/v/vte3/talimat b/talimatname/genel/v/vte3/talimat new file mode 100644 index 000000000..4cc19f9c6 --- /dev/null +++ b/talimatname/genel/v/vte3/talimat @@ -0,0 +1,24 @@ +# Tanım: Vte GTK+3 için bir terminal emülatörü widget'ı uygulayan bir kitaplıktır +# URL: http://developer.gnome.org/arch/gnome/widgets/vte.html +# Paketçi: milisarge +# Gerekler: gtk3 perl-xml-parser python-gtk gobject-introspection pcre2 +# GRup: kütüphane + +isim=vte3 +surum=0.52.2 +devir=1 +_isim=vte +kaynak=(http://ftp.gnome.org/pub/gnome/sources/${_isim}/${surum%.*}/${_isim}-$surum.tar.xz) + +derle() { + cd ${_isim}-$surum + ./configure --prefix=/usr\ + --sysconfdir=/etc \ + --libexecdir=/usr/lib/$isim \ + --enable-introspection \ + --with-xft2 \ + --with-pangox + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/gtk-doc +} diff --git a/talimatname/genel/v/vue/talimat b/talimatname/genel/v/vue/talimat new file mode 100644 index 000000000..3290d8c45 --- /dev/null +++ b/talimatname/genel/v/vue/talimat @@ -0,0 +1,48 @@ +# Tanım: Görsel Kavram Ortamı +# URL: https://github.com/VUE/VUE +# Paketçi: Cihan Alkan +# Gerekler: desktop-file-utils openjdk +# Grup: bilimsel + +isim=vue +surum=3.3.0 +devir=1 + +kaynak=(https://github.com/VUE/VUE/releases/download/$surum/VUE.jar +https://aur.archlinux.org/cgit/aur.git/plain/vue.png?h=vue) + +derle() { +install -Dm755 VUE.jar $PKG/opt/$isim/VUE.jar + +# Bin Dosyası +mkdir -pv $PKG/usr/bin && +cat > $PKG/usr/bin/vue << "EOF" && +#!/bin/sh + +exec java -jar /opt/vue/VUE.jar +EOF + +chmod 755 $PKG/usr/bin/vue +chmod +x $PKG/usr/bin/vue + +# desktop Dosyası +mkdir -pv $PKG/usr/share/applications && +cat > $PKG/usr/share/applications/vue.desktop << "EOF" && +[Desktop Entry] +Type=Application +Encoding=UTF-8 +Name=VUE +Comment=Görsel Kavram Ortamı +Exec=vue +Icon=/opt/vue/vue.png +Categories=Office; +Terminal=false + +EOF + + + install -Dm644 vue.png?h=vue $PKG/opt/$isim/vue.png + + update-desktop-database -q + +} diff --git a/talimatname/genel/v/vuurmuur/talimat b/talimatname/genel/v/vuurmuur/talimat new file mode 100644 index 000000000..c3a27bc17 --- /dev/null +++ b/talimatname/genel/v/vuurmuur/talimat @@ -0,0 +1,178 @@ +# Tanım: iptables ayarlamaları için güçlü bir arayüz uygulaması +# URL: http://www.vuurmuur.org +# Paketçi: milisarge +# Gerekler: libnetfilter_log iptables libjpeg-turbo + +isim=vuurmuur +_isim=Vuurmuur +surum=0.8rc2 +devir=1 +kaynak=(ftp://ftp.vuurmuur.org/releases/$surum/$_name-$surum.tar.gz) + +derle() { + + + cd Vuurmuur-$surum + chown -R root:root . + for file in libvuurmuur vuurmuur vuurmuur_conf ; do + tar xfvz $file-$surum.tar.gz + done + chown -R root:root . + CFLAGS="$SLKCFLAGS" \ + cd libvuurmuur-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc + make + mkdir -p $PKG/usr/lib + ( cd src/.libs/ + for file in libvuurmuur.a libvuurmuur.so.0.6.0 ; do + cat $file > $PKG/usr/lib/$file + done + ) + #replace "installed=no" "installed=yes" -- $PKG/usr/lib/libvuurmuur.la + mkdir -p $PKG/usr/include + ( cd src + #strip --strip-unneeded vuurmuur.h + cat vuurmuur.h > $PKG/usr/include/vuurmuur.h + ) + + cd $PKG/usr/lib + ln -s libvuurmuur.so.0.6.0 libvuurmuur.so.0 + ln -s libvuurmuur.so.0.6.0 libvuurmuur.so + + + + cd $SRC/Vuurmuur-$surum/vuurmuur-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --with-libvuurmuur-includes=$PKG/usr/include \ + --with-libvuurmuur-libraries=$PKG/usr/lib + make + mkdir -p $PKG/usr/bin + for file in vuurmuur vuurmuur_log vuurmuur_script ; do + ( cd $file + strip --strip-unneeded $file + cat $file > $PKG/usr/bin/$file + chmod 755 $PKG/usr/bin/$file + ) + done + mkdir -p $PKG/etc/rc.d/init.d + mkdir -p $PKG/etc/logrotate.d + ( cd scripts + cat rc.vuurmuur > $PKG/etc/rc.d/init.d/vuurmuur + cat vuurmuur-logrotate > $PKG/etc/logrotate.d/vuurmuur + ) + #replace "VUURMUUR_LOCATION=/usr/local/bin" "VUURMUUR_LOCATION=/usr/bin" -- $PKG/etc/rc.d/init.d/vuurmuur + chmod +x $PKG/etc/rc.d/init.d/vuurmuur + + mkdir -p $PKG/usr/man/ru/man8 + mkdir -p $PKG/usr/man/man8 + ( cd man/en + for file in vuurmuur.8 vuurmuur_log.8 vuurmuur_script.8 ; do + cat $file > $PKG/usr/man/man8/$file + done + ) + ( cd man/ru + for file in vuurmuur.8 vuurmuur_log.8 vuurmuur_script.8 ; do + cat $file > $PKG/usr/man/ru/man8/$file + done + ) + mkdir -p $PKG/usr/share/vuurmuur/scripts + ( cd scripts + cat vuurmuur-config-setup.sh > $PKG/usr/share/vuurmuur/scripts/vuurmuur-config-setup.sh + chmod 755 $PKG/usr/share/vuurmuur/scripts/vuurmuur-config-setup.sh + ) + mkdir -p $PKG/usr/share/vuurmuur/config + mkdir -p -m 700 $PKG/etc/vuurmuur + ( cd config + cat config.conf.sample > $PKG/usr/share/vuurmuur/config/config.conf.sample + cat config.conf.sample > $PKG/etc/vuurmuur/config.conf + chmod 600 $PKG/etc/vuurmuur/config.conf + ) + + mkdir -p $PKG/usr/share/vuurmuur/services + mkdir -p -m 700 $PKG/etc/vuurmuur/textdir/services + ( cd services ; + LIST=" cvs imaps pop3 smtp upnp + dns irc msn pop3s socks usermin + ftp jabber mysql pptp squid-proxy vnc + http ldap news razor ssh webmin + https lisa ntp rdp syslog whois + ident pcanywhere rsync telnet windowsmedia + imap ping samba traceroute" + for file in $LIST ; do + cat $file > $PKG/usr/share/vuurmuur/services/$file + cat $file > $PKG/etc/vuurmuur/textdir/services/$file + chmod 600 $PKG/etc/vuurmuur/textdir/services/$file + done + ) + + + + cd $SRC/Vuurmuur-$surum/vuurmuur_conf-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --with-libvuurmuur-includes=$PKG/usr/include \ + --with-libvuurmuur-libraries=$PKG/usr/lib + make + mkdir -p $PKG/usr/bin + ( cd src + cat vuurmuur_conf > $PKG/usr/bin/vuurmuur_conf + chmod 755 $PKG/usr/bin/vuurmuur_conf + ) + ( cd po + for lang in de fr nb nl no ru en@boldquot pt_BR en@quot ; do + mkdir -p $PKG/usr/share/locale/$lang/LC_MESSAGES + cat $lang.gmo > $PKG/usr/share/locale/$lang/LC_MESSAGES/vuurmuur_conf.mo + done + ) + mkdir -p $PKG/usr/share/vuurmuur/help + ( cd help + for file in vuurmuur-fr.hlp vuurmuur-ru.UTF-8.hlp vuurmuur-ru.hlp vuurmuur.hlp ; do + cat $file > $PKG/usr/share/vuurmuur/help/$file + done + ) + ( cd man/en + for file in vuurmuur_conf.8 ; do + cat $file > $PKG/usr/man/man8/$file + done + ) + ( cd man/ru + for file in vuurmuur_conf.8 ; do + cat $file > $PKG/usr/man/ru/man8/$file + done + ) + mkdir -p $PKG/usr/share/vuurmuur/scripts + ( cd scripts + cat vuurmuur-searchlog.sh > $PKG/usr/share/vuurmuur/scripts/vuurmuur-searchlog.sh + chmod 755 $PKG/usr/share/vuurmuur/scripts/vuurmuur-searchlog.sh + ) + mkdir -p $PKG/usr/share/vuurmuur/config + mkdir -p -m 700 $PKG/etc/vuurmuur + ( cd config + cat vuurmuur_conf.conf.sample > $PKG/usr/share/vuurmuur/config/vuurmuur_conf.conf.sample + cat vuurmuur_conf.conf.sample > $PKG/etc/vuurmuur/vuurmuur_conf.conf + ) + + + cd $SRC/Vuurmuur-$surum/installer/zones + ( for zone in dmz inet lan vpn ; do + mkdir -p -m 700 $PKG/etc/vuurmuur/textdir/zones/$zone/networks + cat $SRC/Vuurmuur-$surum/installer/zones/$zone/zone.config > $PKG/etc/vuurmuur/textdir/zones/$zone/zone.config + done + ) + mkdir -p -m 700 $PKG/etc/vuurmuur/textdir/zones/inet/networks/internet/groups + mkdir -p -m 700 $PKG/etc/vuurmuur/textdir/zones/inet/networks/internet/hosts + cat $SRC/Vuurmuur-$surum/installer/zones/inet/networks/internet/network.config > $PKG/etc/vuurmuur/textdir/zones/inet/networks/internet/network.config + mkdir -p -m 700 $PKG/etc/vuurmuur/plugins + touch $PKG/etc/vuurmuur/plugins/textdir.conf + chmod 600 $PKG/etc/vuurmuur/plugins/textdir.conf + echo "LOCATION=\"/etc/vuurmuur/textdir\"" > $PKG/etc/vuurmuur/plugins/textdir.conf + mkdir -p -m 700 $PKG/etc/vuurmuur/textdir/zones + mkdir -p -m 700 $PKG/etc/vuurmuur/textdir/interfaces + mkdir -p -m 700 $PKG/etc/vuurmuur/textdir/rules + +} diff --git a/talimatname/genel/w/w3af/talimat b/talimatname/genel/w/w3af/talimat new file mode 100644 index 000000000..ff9340b2c --- /dev/null +++ b/talimatname/genel/w/w3af/talimat @@ -0,0 +1,44 @@ +# Tanım: Web Uygulama Atak ve Denetim Aracı. +# URL: http://w3af.sourceforge.net/ +# Paketçi: yakar (aydin@komutan.org) +# Gerekler: python-pip python-gtksourceview2 python-yaml python-gtk gtk2 sqlite libxml2 libxslt yaml + +isim=w3af +surum=1.6.54 +devir=1 +kaynak=(https://github.com/andresriancho/w3af/archive/${surum}.tar.gz + w3af.desktop) + + +derle() { + cd "$SRC/w3af-$surum" + + # Enforce python2 + sed -i -e 's|#!\s*/usr/bin/python[^\d.]*$|#!/usr/bin/python2|' \ + -e 's|#!\s*/usr/bin/env python[^\d.]*$|#!/usr/bin/env python2|' \ + $(find . -name '*.py') w3af_{console,gui} + + # Remove dependency checks. + sed -i 's/dependency_check()/#&/' w3af_{console,gui} + + mkdir -p "$PKG/usr/bin" + mkdir -p "$PKG/usr/share/w3af" + mkdir -p "$PKG/usr/share/applications" + + cp --no-preserve=ownership -a * "$PKG/usr/share/w3af" + + install -Dm644 "$SRC/w3af.desktop" "$PKG/usr/share/applications" + + cat > "$PKG/usr/bin/w3af" << EOF +#!/bin/sh +exec python2 /usr/share/w3af/w3af_console "\$@" +EOF + + cat > "$PKG/usr/bin/w3af-gui" << EOF +#!/bin/sh +exec python2 /usr/share/w3af/w3af_gui "\$@" +EOF + + chmod +x "$PKG/usr/share/w3af"/w3af_{console,gui} \ + "$PKG/usr/bin"/{w3af,w3af-gui} +} diff --git a/talimatname/genel/w/w3af/w3af.desktop b/talimatname/genel/w/w3af/w3af.desktop new file mode 100644 index 000000000..75ffd3aea --- /dev/null +++ b/talimatname/genel/w/w3af/w3af.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Encoding=UTF-8 +Exec=/usr/bin/w3af-gui +Icon=/usr/share/w3af/core/ui/gui/data/w3af_icon.png +Type=Application +Terminal=false +MultipleArgs=false +Name=w3af +GenericName=w3af +StartupNotify=false +Categories=Application;Network; diff --git a/talimatname/genel/w/w3af/w3af.kur-kos b/talimatname/genel/w/w3af/w3af.kur-kos new file mode 100644 index 000000000..e0b367596 --- /dev/null +++ b/talimatname/genel/w/w3af/w3af.kur-kos @@ -0,0 +1,3 @@ +#!/bin/sh + +pip2 install -r /usr/share/w3af/w3af/tests/requirements.txt \ No newline at end of file diff --git a/talimatname/genel/w/w3m/talimat b/talimatname/genel/w/w3m/talimat new file mode 100644 index 000000000..de38a72df --- /dev/null +++ b/talimatname/genel/w/w3m/talimat @@ -0,0 +1,31 @@ +# Tanım: w3m öncelikli olarak bir sayfalıyıcıdır. Ayrıca konsol tabanlı tarayıcı altyapılarında kullanılabilir. +# URL: http://w3m.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: gc imlib2 gtk2 gdk-pixbuf + +isim=w3m +surum=0.5.3 +devir=1 +kaynak=(http://downloads.sourceforge.net/w3m/w3m-0.5.3.tar.gz + http://www.linuxfromscratch.org/patches/downloads/w3m/w3m-0.5.3-bdwgc72-1.patch ) + +derle() { + +cd $isim-$surum + +patch -Np1 -i $SRC/w3m-0.5.3-bdwgc72-1.patch +sed -i 's/file_handle/file_foo/' istream.{c,h} +sed -i 's#gdk-pixbuf-xlib-2.0#& x11#' configure + +./configure --prefix=/usr --sysconfdir=/etc + +make + +make DESTDIR=$PKG install +install -v -m644 -D doc/keymap.default $PKG/etc/w3m/keymap +install -v -m644 doc/menu.default $PKG/etc/w3m/menu +install -v -m755 -d $PKG/usr/share/doc/w3m-0.5.3 +install -v -m644 doc/{HISTORY,READ*,keymap.*,menu.*,*.html} \ + $PKG/usr/share/doc/w3m-0.5.3 + +} diff --git a/talimatname/genel/w/wavpack/talimat b/talimatname/genel/w/wavpack/talimat new file mode 100644 index 000000000..a61a483ba --- /dev/null +++ b/talimatname/genel/w/wavpack/talimat @@ -0,0 +1,20 @@ +# Tanım: Kayıpsız, kayıplı ve melez sıkıştırma modlu ses sıkıştırma formatı +# URL: http://www.wavpack.com/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: + +isim=wavpack +surum=4.75.0 +devir=1 + +kaynak=(http://www.wavpack.com/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--enable-mmx \ +--enable-static=no +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/w/wayland-protocols/talimat b/talimatname/genel/w/wayland-protocols/talimat new file mode 100644 index 000000000..05d100956 --- /dev/null +++ b/talimatname/genel/w/wayland-protocols/talimat @@ -0,0 +1,19 @@ +# Tanım: Genişletilmiş Wayland protokollerinin özellikleri +# URL: https://wayland.freedesktop.org/ +# Paketçi: Cihan Alkan +# Gerekler: wayland +# Grup: kütüphane + +isim=wayland-protocols +surum=1.12 +devir=1 +kaynak=(https://wayland.freedesktop.org/releases/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + + ./configure --prefix=/usr + make + make DESTDIR="$PKG" install + install -Dm 644 COPYING "$PKG/usr/share/licenses/$isim/COPYING" +} diff --git a/talimatname/genel/w/wayland/talimat b/talimatname/genel/w/wayland/talimat new file mode 100644 index 000000000..05b8b83c3 --- /dev/null +++ b/talimatname/genel/w/wayland/talimat @@ -0,0 +1,18 @@ +# Tanım: Bir bilgisayar görüntüleme sunucusu protokolü +# URL: http://wayland.freedesktop.org/ +# Paketçi: milisarge +# Gerekler: libffi doxygen xmlto docbook-xml libxslt + +isim=wayland +devir=1 +surum=1.14.0 +kaynak=( http://wayland.freedesktop.org/releases/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ + --disable-static \ + --disable-documentation +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/w/wbar/talimat b/talimatname/genel/w/wbar/talimat new file mode 100644 index 000000000..4e43837a9 --- /dev/null +++ b/talimatname/genel/w/wbar/talimat @@ -0,0 +1,21 @@ +# Tanım: Basit ve son derece özelleştirilebilir hızlı başlatma aracı. +# URL: http://code.google.com/p/wbar +# Paketçi: milisarge +# Gerekler: libglade imlib2 + +isim=wbar +surum=2.3.4 +devir=1 + +kaynak=(https://wbar.googlecode.com/files/wbar-$surum.tgz ) + +derle() { + cd $isim-$surum + + ./configure --prefix=/usr \ + --exec_prefix=/usr \ + --sysconfdir=/etc + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/w/wcgbrowser/talimat b/talimatname/genel/w/wcgbrowser/talimat new file mode 100644 index 000000000..630e7e8d3 --- /dev/null +++ b/talimatname/genel/w/wcgbrowser/talimat @@ -0,0 +1,29 @@ +# Tanım: Kiosk sistemleri için bir web tarayıcısı. +# URL: http://www.alandmoore.com/wcgbrowser/wcgbrowser.html +# Paketçi: Cihan_Alkan +# Gerekler: python3-yaml python3-qt5 qt5-webkit +# Grup: ağ + +isim=wcgbrowser +surum=0.2 +devir=1 +kaynak=() + +derle() { + adres="https://github.com/alandmoore/wcgbrowser" + git_indir ${adres} ${isim} + cd $SRC/${isim} + + # Wcgbrowser başlatma komut dosyasındaki yolu düzeltin + sed -i 's|/usr/local|/usr|' wcgbrowser + + # Dizinleri oluştur + install -dm755 "${PKG}"/usr/share/doc/"${isim}"/examples + + # Dosyaları kopyala + install -D -m644 browser.py "${PKG}"/usr/share/"${isim}"/browser.py + install -D -m755 wcgbrowser "${PKG}"/usr/bin/wcgbrowser + install -D -m644 wcgbrowser.yaml "${PKG}"/etc/wcgbrowser.yaml + install -D -m644 README.rst "${PKG}"/usr/share/doc/"${isim}"/README.rst + install -m644 examples/* "${PKG}"/usr/share/doc/"${isim}"/examples/ +} diff --git a/talimatname/genel/w/weather/talimat b/talimatname/genel/w/weather/talimat new file mode 100644 index 000000000..1104c95ae --- /dev/null +++ b/talimatname/genel/w/weather/talimat @@ -0,0 +1,38 @@ +# Tanım: METAR verilerinden hava durumu tahminlerini gösteren CLI aracı +# URL: http://fungi.yuggoth.org/weather/ +# Paketçi: milisarge +# Gerekler: python + +isim=weather +surum=2.0 +devir=1 + +kaynak=(http://fungi.yuggoth.org/weather/src/$isim-$surum.tar.gz) + +derle() { + cd "$isim-$surum" + sed -i 's|env python|env python2|' * + + # set up correlation sets + sed -i 's| else: default_setpath = ".:~/.weather|&:/usr/share/weather-util|' weather.py + + install -Dm644 airports "$PKG/usr/share/weather-util/airports" + install -Dm644 places "$PKG/usr/share/weather-util/places" + install -Dm644 stations "$PKG/usr/share/weather-util/stations" + install -Dm644 zctas "$PKG/usr/share/weather-util/zctas" + install -Dm644 zones "$PKG/usr/share/weather-util/zones" + + _python_path=$(python2 -c "import sys ; print [p for p in sys.path if p.startswith('/usr/lib/python2.')][0]") + install -Dm755 weather "$PKG/usr/bin/weather-report" + install -Dm644 weather.py "$PKG/$_python_path/weather.py" + + install -Dm644 weatherrc "$PKG/etc/weatherrc" + + install -Dm644 weather.1 "$PKG/usr/share/man/man1/weather.1" + install -Dm644 weatherrc.5 "$PKG/usr/share/man/man5/weatherrc.5" + + install -Dm644 LICENSE "$PKG/usr/share/licenses/$isim/BSD2" +} + + + diff --git a/talimatname/genel/w/webkit2gtk3/talimat b/talimatname/genel/w/webkit2gtk3/talimat new file mode 100644 index 000000000..e53cbc322 --- /dev/null +++ b/talimatname/genel/w/webkit2gtk3/talimat @@ -0,0 +1,31 @@ +# Tanım: Taşınabilir web oluşturma motoru WebKit'in GTK+ 2 ve 3 platformlarına bağlantı noktası. +# URL: http://webkitgtk.org/ +# Paketçi: milisarge +# Gerekler: enchant cmake gstreamer1-plugins-base xorg-libxt gtk2 gtk3 hunspell icu libgudev libsecret libsoup libwebp xorg-mesa ruby sqlite geoclue gobject-introspection hicolor-icon-theme llvm harfbuzz libnotify + +isim=webkit2gtk3 +surum=2.17.4 +devir=2 + +kaynak=(http://webkitgtk.org/releases/webkitgtk-$surum.tar.xz) +derle() { +cd webkitgtk-$surum +sed -e 's/“/\"/' -e 's/”/\"/' \ + -i Source/WebCore/xml/XMLViewer.{css,js} + +mkdir -vp build +cd build + +cmake -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_SKIP_RPATH=ON \ + -DPORT=GTK \ + -DUSE_LIBHYPHEN=OFF \ + -DLIB_INSTALL_DIR=/usr/lib \ + -DENABLE_MINIBROWSER=ON \ + -Wno-dev .. + +make || make -j1 +make DESTDIR=$PKG install || make -j1 DESTDIR=$PKG install + +} diff --git a/talimatname/genel/w/webkitfltk/talimat b/talimatname/genel/w/webkitfltk/talimat new file mode 100644 index 000000000..631195c91 --- /dev/null +++ b/talimatname/genel/w/webkitfltk/talimat @@ -0,0 +1,25 @@ +# Tanım: Webkit Portu, Fltk 1.3'e +# URL: https://github.com/clbr/webkitfltk +# Paketçi: milisarge +# Gerekler: zlib libpng libjpeg-turbo libxml2 sqlite freetype xorg-fontconfig xorg-libxcursor cairo openssl curl icu harfbuzz fltk1 git ruby + +isim=webkitfltk +surum=0.5.1 +devir=1 + +kaynak=(https://sourceforge.net/projects/fifth-browser/files/v0.5/${isim}-${surum}.txz + https://github.com/clbr/webkitfltk/commit/6db7be57eb6f633d63fb90397adb21c6247ab410.patch + https://github.com/clbr/webkitfltk/commit/83626b77fc7d8fae005fd4575dd85dbb0f243081.patch) + +derle() { + cd "${isim}-${surum}" + patch -p1 -i $SRC/6db7be57eb6f633d63fb90397adb21c6247ab410.patch + patch -p1 -i $SRC/83626b77fc7d8fae005fd4575dd85dbb0f243081.patch + make -j1 -C Source/bmalloc/bmalloc + make -j1 -C Source/WTF/wtf + make -j1 -C Source/JavaScriptCore gen + make -j1 -C Source/JavaScriptCore + make -j1 -C Source/WebCore + make -j1 -C Source/WebKit/fltk + make -C Source/WebKit/fltk install DESTDIR="${PKG}" +} diff --git a/talimatname/genel/w/webkitgtk2/icu59.patch b/talimatname/genel/w/webkitgtk2/icu59.patch new file mode 100644 index 000000000..39ff89ee6 --- /dev/null +++ b/talimatname/genel/w/webkitgtk2/icu59.patch @@ -0,0 +1,38 @@ +--- webkitgtk-2.16.1/Source/JavaScriptCore/API/JSStringRef.h.orig 2017-02-20 17:20:08.000000000 +0100 ++++ webkitgtk-2.16.1/Source/JavaScriptCore/API/JSStringRef.h 2017-04-22 14:35:00.926530142 +0200 +@@ -32,6 +32,7 @@ + #include + #endif + #include /* for size_t */ ++#include + + #ifdef __cplusplus + extern "C" { +@@ -46,7 +47,7 @@ + character. As with all scalar types, endianness depends on the underlying + architecture. + */ +- typedef unsigned short JSChar; ++ typedef char16_t JSChar; + #else + typedef wchar_t JSChar; + #endif +--- webkitgtk-2.16.1/Source/WebKit2/Shared/API/c/WKString.h.orig 2017-02-20 17:20:17.000000000 +0100 ++++ webkitgtk-2.16.1/Source/WebKit2/Shared/API/c/WKString.h 2017-04-22 14:35:56.853196170 +0200 +@@ -28,6 +28,7 @@ + + #include + #include ++#include + + #ifndef __cplusplus + #include +@@ -39,7 +40,7 @@ + + #if !defined(WIN32) && !defined(_WIN32) \ + && !((defined(__CC_ARM) || defined(__ARMCC__)) && !defined(__linux__)) /* RVCT */ +- typedef unsigned short WKChar; ++ typedef char16_t WKChar; + #else + typedef wchar_t WKChar; + #endif diff --git a/talimatname/genel/w/webkitgtk2/talimat b/talimatname/genel/w/webkitgtk2/talimat new file mode 100644 index 000000000..eab17a41d --- /dev/null +++ b/talimatname/genel/w/webkitgtk2/talimat @@ -0,0 +1,39 @@ +# Tanım: WebKitGTK+, WebKit rendering motorunun tam özellikli bir portudur +# URL: http://webkitgtk.org/ +# Paketçi: milisarge +# Gerekler: libwebp libsecret geoclue gperf gtk2 dbus gstreamer1-plugins-base icu enchant libsoup libxslt xorg-libxt ruby + +isim=webkitgtk2 +surum=2.4.11 +devir=2 +kaynak=(http://webkitgtk.org/releases/webkitgtk-$surum.tar.xz + webkitgtk-2.4.9-abs.patch + icu59.patch) + +derle() { + cd webkitgtk-$surum + patch -Np1 -i ../webkitgtk-2.4.9-abs.patch + patch -Np1 -i ../icu59.patch + install -d build + cd build + CXXFLAGS+=" -fno-delete-null-pointer-checks" + CFLAGS+=" -fno-delete-null-pointer-checks" + + ../configure \ + --prefix=/usr \ + --disable-geolocation \ + --disable-gtk-doc-html \ + --disable-silent-rules \ + --enable-video \ + --enable-jit \ + --libexecdir=/usr/lib/webkitgtk2 \ + --with-gtk=2.0 \ + --disable-webkit2 \ + --disable-gtk-doc + + sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + + make + make -j1 DESTDIR=$PKG install + rm -rf $PKG/usr/share/gtk-doc +} diff --git a/talimatname/genel/w/webkitgtk2/webkitgtk-2.4.9-abs.patch b/talimatname/genel/w/webkitgtk2/webkitgtk-2.4.9-abs.patch new file mode 100644 index 000000000..9a1c5f990 --- /dev/null +++ b/talimatname/genel/w/webkitgtk2/webkitgtk-2.4.9-abs.patch @@ -0,0 +1,26 @@ +diff -Nur webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/GtkClickCounter.cpp webkitgtk-2.4.9/Source/WebCore/platform/gtk/GtkClickCounter.cpp +--- webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/GtkClickCounter.cpp 2015-05-20 03:03:24.000000000 -0600 ++++ webkitgtk-2.4.9/Source/WebCore/platform/gtk/GtkClickCounter.cpp 2016-02-07 11:30:42.392686308 -0700 +@@ -85,8 +85,8 @@ + guint32 eventTime = getEventTime(event); + + if ((event->type == GDK_2BUTTON_PRESS || event->type == GDK_3BUTTON_PRESS) +- || ((abs(buttonEvent->x - m_previousClickPoint.x()) < doubleClickDistance) +- && (abs(buttonEvent->y - m_previousClickPoint.y()) < doubleClickDistance) ++ || ((fabs(buttonEvent->x - m_previousClickPoint.x()) < doubleClickDistance) ++ && (fabs(buttonEvent->y - m_previousClickPoint.y()) < doubleClickDistance) + && (eventTime - m_previousClickTime < static_cast(doubleClickTime)) + && (buttonEvent->button == m_previousClickButton))) + m_currentClickCount++; +diff -Nur webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp webkitgtk-2.4.9/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp +--- webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp 2015-05-20 03:03:24.000000000 -0600 ++++ webkitgtk-2.4.9/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp 2016-02-07 11:49:36.384691005 -0700 +@@ -659,7 +659,7 @@ + if (!std::isfinite(time)) + return String::fromUTF8(_("indefinite time")); + +- int seconds = static_cast(abs(time)); ++ int seconds = static_cast(fabs(time)); + int days = seconds / (60 * 60 * 24); + int hours = seconds / (60 * 60); + int minutes = (seconds / 60) % 60; diff --git a/talimatname/genel/w/webkitgtk3/icu59.patch b/talimatname/genel/w/webkitgtk3/icu59.patch new file mode 100644 index 000000000..39ff89ee6 --- /dev/null +++ b/talimatname/genel/w/webkitgtk3/icu59.patch @@ -0,0 +1,38 @@ +--- webkitgtk-2.16.1/Source/JavaScriptCore/API/JSStringRef.h.orig 2017-02-20 17:20:08.000000000 +0100 ++++ webkitgtk-2.16.1/Source/JavaScriptCore/API/JSStringRef.h 2017-04-22 14:35:00.926530142 +0200 +@@ -32,6 +32,7 @@ + #include + #endif + #include /* for size_t */ ++#include + + #ifdef __cplusplus + extern "C" { +@@ -46,7 +47,7 @@ + character. As with all scalar types, endianness depends on the underlying + architecture. + */ +- typedef unsigned short JSChar; ++ typedef char16_t JSChar; + #else + typedef wchar_t JSChar; + #endif +--- webkitgtk-2.16.1/Source/WebKit2/Shared/API/c/WKString.h.orig 2017-02-20 17:20:17.000000000 +0100 ++++ webkitgtk-2.16.1/Source/WebKit2/Shared/API/c/WKString.h 2017-04-22 14:35:56.853196170 +0200 +@@ -28,6 +28,7 @@ + + #include + #include ++#include + + #ifndef __cplusplus + #include +@@ -39,7 +40,7 @@ + + #if !defined(WIN32) && !defined(_WIN32) \ + && !((defined(__CC_ARM) || defined(__ARMCC__)) && !defined(__linux__)) /* RVCT */ +- typedef unsigned short WKChar; ++ typedef char16_t WKChar; + #else + typedef wchar_t WKChar; + #endif diff --git a/talimatname/genel/w/webkitgtk3/talimat b/talimatname/genel/w/webkitgtk3/talimat new file mode 100644 index 000000000..f32b441b4 --- /dev/null +++ b/talimatname/genel/w/webkitgtk3/talimat @@ -0,0 +1,38 @@ +# Tanım: Web Tarayıcıları için küçük, verimli ve hızlı render motoru. +# URL: http://www.webkitgtk.org/ +# Paketçi: milisarge +# Gerekler: libwebp libsecret geoclue gperf gtk2 gtk3 curl dbus gstreamer1-plugins-base icu enchant libsoup libxslt xorg-libxt ruby + +isim=webkitgtk3 +surum=2.4.11 +devir=2 +kaynak=(http://webkitgtk.org/releases/webkitgtk-$surum.tar.xz + webkitgtk-2.4.9-abs.patch + icu59.patch) + +derle() { + cd webkitgtk-$surum + patch -Np1 -i ../webkitgtk-2.4.9-abs.patch + patch -Np1 -i ../icu59.patch + install -d build + cd build + CXXFLAGS+=" -fno-delete-null-pointer-checks" + CFLAGS+=" -fno-delete-null-pointer-checks" + + ../configure \ + --prefix=/usr \ + --disable-geolocation \ + --disable-gtk-doc-html \ + --disable-silent-rules \ + --enable-video \ + --enable-jit \ + --libexecdir=/usr/lib/webkitgtk3 \ + --enable-introspection \ + --disable-gtk-doc + + sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + + make + make -j1 DESTDIR=$PKG install + rm -rf $PKG/usr/share/gtk-doc +} diff --git a/talimatname/genel/w/webkitgtk3/webkitgtk-2.4.9-abs.patch b/talimatname/genel/w/webkitgtk3/webkitgtk-2.4.9-abs.patch new file mode 100644 index 000000000..9a1c5f990 --- /dev/null +++ b/talimatname/genel/w/webkitgtk3/webkitgtk-2.4.9-abs.patch @@ -0,0 +1,26 @@ +diff -Nur webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/GtkClickCounter.cpp webkitgtk-2.4.9/Source/WebCore/platform/gtk/GtkClickCounter.cpp +--- webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/GtkClickCounter.cpp 2015-05-20 03:03:24.000000000 -0600 ++++ webkitgtk-2.4.9/Source/WebCore/platform/gtk/GtkClickCounter.cpp 2016-02-07 11:30:42.392686308 -0700 +@@ -85,8 +85,8 @@ + guint32 eventTime = getEventTime(event); + + if ((event->type == GDK_2BUTTON_PRESS || event->type == GDK_3BUTTON_PRESS) +- || ((abs(buttonEvent->x - m_previousClickPoint.x()) < doubleClickDistance) +- && (abs(buttonEvent->y - m_previousClickPoint.y()) < doubleClickDistance) ++ || ((fabs(buttonEvent->x - m_previousClickPoint.x()) < doubleClickDistance) ++ && (fabs(buttonEvent->y - m_previousClickPoint.y()) < doubleClickDistance) + && (eventTime - m_previousClickTime < static_cast(doubleClickTime)) + && (buttonEvent->button == m_previousClickButton))) + m_currentClickCount++; +diff -Nur webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp webkitgtk-2.4.9/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp +--- webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp 2015-05-20 03:03:24.000000000 -0600 ++++ webkitgtk-2.4.9/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp 2016-02-07 11:49:36.384691005 -0700 +@@ -659,7 +659,7 @@ + if (!std::isfinite(time)) + return String::fromUTF8(_("indefinite time")); + +- int seconds = static_cast(abs(time)); ++ int seconds = static_cast(fabs(time)); + int days = seconds / (60 * 60 * 24); + int hours = seconds / (60 * 60); + int minutes = (seconds / 60) % 60; diff --git a/talimatname/genel/w/websocketd/talimat b/talimatname/genel/w/websocketd/talimat new file mode 100644 index 000000000..390485646 --- /dev/null +++ b/talimatname/genel/w/websocketd/talimat @@ -0,0 +1,16 @@ +# Tanım: Inetd gibi ama WebSockets için. STDIO / STDOUT kullanan herhangi bir uygulamayı bir WebSocket sunucusuna çevirin. +# URL: https://github.com/joewalnes/websocketd +# Paketçi: Cihan_Alkan +# Gerekler: +# Grup: + + +isim=websocketd +surum=0.2.12 +devir=1 +kaynak=(https://github.com/joewalnes/websocketd/releases/download/v${surum}/websocketd-${surum}-linux_amd64.zip) + +derle() { + install -Dm755 "${isim}" "${PKG}/usr/bin/${isim}" + install -Dm644 LICENSE "${PKG}/usr/share/licenses/${isim}/LICENSE" +} diff --git a/talimatname/genel/w/websocketpp/talimat b/talimatname/genel/w/websocketpp/talimat new file mode 100644 index 000000000..055bdc812 --- /dev/null +++ b/talimatname/genel/w/websocketpp/talimat @@ -0,0 +1,21 @@ +# Tanım: C ++/Boost Asio tabanlı websocket istemcisi/sunucu kitaplığı +# URL: http://www.zaphoyd.com/websocketpp/ +# Paketçi: milisarge +# Gerekler: cmake boost scons + +isim=websocketpp +surum=0.7.0 +devir=1 +kaynak=(https://github.com/zaphoyd/${isim}/archive/${surum}.tar.gz::${isim}-${surum}.tar.gz) + +derle() { + cd ${isim}-${surum} + WSPP_ENABLE_CPP11=1 \ + BOOST_LIBS=/usr/lib \ + BOOST_INCLUDES=/usr/include/boost \ + scons "${MAKEFLAGS}" + (cd build + cmake -DCMAKE_INSTALL_PREFIX=/usr .. + ) + make -C build DESTDIR="${PKG}" install +} diff --git a/talimatname/genel/w/webtorrent-desktop/talimat b/talimatname/genel/w/webtorrent-desktop/talimat new file mode 100644 index 000000000..a98decbd9 --- /dev/null +++ b/talimatname/genel/w/webtorrent-desktop/talimat @@ -0,0 +1,23 @@ +# Tanım: Torrent istemci tarayıcısı +# URL: https://webtorrent.io/desktop +# Paketçi: Cihan_Alkan +# Gerekler: gconf +# Grup: ağ + +isim=webtorrent-desktop +surum=0.18.0 +devir=1 +kaynak=(https://github.com/feross/${isim}/releases/download/v${surum}/WebTorrent-v${surum}-linux.zip + ${isim}.desktop) + +derle() { + install -dm755 "${PKG}/usr/share" + install -dm755 "${PKG}/usr/bin" + + cp -a "WebTorrent-linux-x64" "${PKG}/usr/share/${isim}" + ln -s "/usr/share/${isim}/WebTorrent" "${PKG}/usr/bin/${isim}" + + install -Dm644 "${isim}.desktop" "${PKG}/usr/share/applications/${isim}.desktop" + install -Dm644 "WebTorrent-linux-x64/resources/app.asar.unpacked/static/WebTorrent.png" "${PKG}/usr/share/icons/hicolor/256x256/apps/${isim}.png" + install -Dm644 "WebTorrent-linux-x64/LICENSE" "${PKG}/usr/share/licenses/${isim}/LICENSE" +} diff --git a/talimatname/genel/w/webtorrent-desktop/webtorrent-desktop.desktop b/talimatname/genel/w/webtorrent-desktop/webtorrent-desktop.desktop new file mode 100644 index 000000000..8c010a542 --- /dev/null +++ b/talimatname/genel/w/webtorrent-desktop/webtorrent-desktop.desktop @@ -0,0 +1,33 @@ +[Desktop Entry] +Name=WebTorrent +Version=1.0 +GenericName=BitTorrent Client +X-GNOME-FullName=WebTorrent +Comment=BitTorrent üzerinden dosyaları indirin ve paylaşın +Encoding=UTF-8 +Type=Application +Icon=webtorrent-desktop +Terminal=false +Path=/usr/share/webtorrent-desktop +Exec=/usr/bin/webtorrent-desktop %U +TryExec=/usr/bin/webtorrent-desktop +StartupNotify=false +Categories=Network;FileTransfer;P2P; +MimeType=application/x-bittorrent;x-scheme-handler/magnet;x-scheme-handler/stream-magnet; + +Actions=CreateNewTorrent;OpenTorrentFile;OpenTorrentAddress; + +[Desktop Action CreateNewTorrent] +Name=Yeni Torrent Oluştur... +Exec=/usr/bin/webtorrent-desktop -n +Path=/usr/share/webtorrent-desktop + +[Desktop Action OpenTorrentFile] +Name=Torrent Dosyası Aç... +Exec=/usr/bin/webtorrent-desktop -o +Path=/usr/share/webtorrent-desktop + +[Desktop Action OpenTorrentAddress] +Name=Torrent Adresi Aç... +Exec=/usr/bin/webtorrent-desktop -u +Path=/usr/share/webtorrent-desktop diff --git a/talimatname/genel/w/weechat/talimat b/talimatname/genel/w/weechat/talimat new file mode 100644 index 000000000..ae381e474 --- /dev/null +++ b/talimatname/genel/w/weechat/talimat @@ -0,0 +1,23 @@ +# Tanım: Hızlı, hafif ve genişletilebilir IRC istemcisi (curses UI) +# URL: http://www.weechat.org/ +# Paketçi: Cihan_Alkan +# Gerekler: gnutls libgcrypt asciidoc highlight cmake python lua tcl ruby aspell +# Grup: ağ + +isim=weechat +surum=2.0.1 +devir=1 +kaynak=(https://www.weechat.org/files/src/$isim-$surum.tar.xz) + +derle() { + mkdir build + cd build + cmake -Wno-dev "${SRC}/$isim-$surum" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DPYTHON_EXECUTABLE=/usr/bin/python2 \ + -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so \ + -DENABLE_MAN=ON \ + -DENABLE_DOC=ON + make + make DESTDIR="${PKG}" install +} diff --git a/talimatname/genel/w/weka/talimat b/talimatname/genel/w/weka/talimat new file mode 100644 index 000000000..f4c6c0bc6 --- /dev/null +++ b/talimatname/genel/w/weka/talimat @@ -0,0 +1,26 @@ +# Tanım: A collection of machine learning algorithms for data mining tasks +# URL: http://www.cs.waikato.ac.nz/ml/weka/ +# Paketçi: milisarge +# Gerekler: openjdk unzip +# Grup: geliştirme + +isim=weka +surum=3.8.2 +devir=1 +kaynak=(http://downloads.sourceforge.net/sourceforge/weka/weka-${surum//./-}.zip + weka.sh + weka.desktop) + +derle() { + cd $SRC/$isim-${surum//./-} + unzip weka.jar -d $SRC/$isim-${surum//./-} + # install jar file + mkdir -p $PKG/usr/share/java/$isim + install -m644 weka.jar $PKG/usr/share/java/$isim/weka.jar + # setup for freedesktop icons and shell script + mkdir -p $PKG/usr/share/{applications,pixmaps} + mkdir -p $PKG/usr/bin + install -m644 weka/gui/weka_icon_new_48.png $PKG/usr/share/pixmaps/weka.png + install -m644 $SRC/weka.desktop $PKG/usr/share/applications/weka.desktop + install -m755 $SRC/weka.sh $PKG/usr/bin/weka +} diff --git a/talimatname/genel/w/weka/weka.desktop b/talimatname/genel/w/weka/weka.desktop new file mode 100644 index 000000000..8162dedee --- /dev/null +++ b/talimatname/genel/w/weka/weka.desktop @@ -0,0 +1,19 @@ +[Desktop Entry] +Encoding=UTF-8 +Categories=Development;Science;Math;Database;Java; +Name=Weka +Comment=A data mining and machine learning toolkit +Comment[de]=Werkzeuge für Datenfilterung und Lernen durch Maschine +Comment[en]=A data mining and machine learning toolkit +Comment[es]=Herramientas para minería de datos y aprendizaje de máquinas +Comment[fr]=Outils pour l'extraction de connaissances a partir des données +Comment[it]=Attrezzi per l'estrazione di dati ed imparare di macchina +Comment[pt]=Ferramentas para a extração de dados e a aprendizagem de máquina +Comment[tr]=Veri Madenciliği ve Makina Öğrenme Aracı +Icon=weka.png +TryExec=/usr/bin/weka +Exec=/usr/bin/weka +URL=http://www.cs.waikato.ac.nz/ml/weka/ +StartupNotify=false +Terminal=false +Type=Application diff --git a/talimatname/genel/w/weka/weka.sh b/talimatname/genel/w/weka/weka.sh new file mode 100644 index 000000000..d18250d94 --- /dev/null +++ b/talimatname/genel/w/weka/weka.sh @@ -0,0 +1,16 @@ +#! /bin/sh + +# Note: the '-Xmx2g' flag is used to set the maximum memory that the java +# program is allowed. When working with large data sets, this number may need +# to be increased based on how much memory you wish to allow weka to have. +# Specifying command line arguments will override the defaults shown here. +# Example: '-Xmx4g' +DEFAULT_ARGS='-Xms32m -Xmx2g' + +if [ $# -gt 0 ]; then + ARGS="$@" +else + ARGS="$DEFAULT_ARGS" +fi + +java $ARGS -jar /usr/share/java/weka/weka.jar diff --git a/talimatname/genel/w/wfuzz/talimat b/talimatname/genel/w/wfuzz/talimat new file mode 100644 index 000000000..dec193d18 --- /dev/null +++ b/talimatname/genel/w/wfuzz/talimat @@ -0,0 +1,31 @@ +# Tanım: Web uygulamalarındaki link verilmeyen kaynakları deneme/yanılma (fuzzer) yolu ile bulan araç. +# URL: https://github.com/xmendez/wfuzz +# Paketçi: ayakar +# Gerekler: python-pip python-pyxml python-lxml + +isim=wfuzz +surum=2.1.5 +devir=1 +kaynak=(https://github.com/xmendez/$isim/archive/v$surum.tar.gz) + +derle() { + cd "$SRC/$isim-$surum" + + mkdir -p "$PKG/usr/bin" + mkdir -p "$PKG/usr/share/$isim" + + install -Dm644 README "$PKG/usr/share/doc/$isim/README" + install -Dm644 LICENSE "$PKG/usr/share/licenses/$isim/LICENSE" + + rm LICENSE README README.md setup.py + + cp -a * "$PKG/usr/share/$isim" + + cat > "$PKG/usr/bin/$isim" << EOF +#!/bin/sh +cd /usr/share/$isim +exec python2 $isim.py "\$@" +EOF + + chmod a+x $PKG/usr/bin/$isim +} diff --git a/talimatname/genel/w/whatsapp-desktop/talimat b/talimatname/genel/w/whatsapp-desktop/talimat new file mode 100644 index 000000000..34638b483 --- /dev/null +++ b/talimatname/genel/w/whatsapp-desktop/talimat @@ -0,0 +1,25 @@ +# Tanım: Resmi olmayan whatsapp web masaüstü istemcisi. Elektron ile inşa edildi. +# URL: https://github.com/Enrico204/Whatsapp-Desktop +# Paketçi: Cihan Alkan +# Gerekler: libnotify gconf gtk2 +# Grup: ağ + + +isim=whatsapp-desktop +surum=0.4.0 +devir=1 +kaynak=(https://github.com/Enrico204/Whatsapp-Desktop/releases/download/v0.4.0/WhatsApp-linux-x64.tar.gz + whatsapp-desktop.desktop + whatsapp-desktop.png) + +derle() { + install -d "$PKG"/opt + cp -R "$SRC"/WhatsApp-linux-x64 "$PKG"/opt/Whatsapp + + install -d "$PKG"/usr/bin + ln -sf ../../opt/Whatsapp/WhatsApp "$PKG"/usr/bin/Whatsapp + + install -D -m644 "./whatsapp-desktop.desktop" "${PKG}/usr/share/applications/whatsapp-desktop.desktop" + install -D -m644 "./whatsapp-desktop.png" "${PKG}/usr/share/pixmaps/whatsapp-desktop.png" +} + diff --git a/talimatname/genel/w/whatsapp-desktop/whatsapp-desktop.desktop b/talimatname/genel/w/whatsapp-desktop/whatsapp-desktop.desktop new file mode 100644 index 000000000..a54879087 --- /dev/null +++ b/talimatname/genel/w/whatsapp-desktop/whatsapp-desktop.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Name=WhatsApp Desktop +Icon=whatsapp-desktop +Exec=Whatsapp +Comment=WhatsApp for Desktop +Name[tr]=WhatsApp Masaüstü Uygulaması +Comment[tr]=Bilgisayarlar için WhatsApp +Categories=Network;Chat; +Terminal=false +StartupNotify=true diff --git a/talimatname/genel/w/whatsapp-desktop/whatsapp-desktop.png b/talimatname/genel/w/whatsapp-desktop/whatsapp-desktop.png new file mode 100644 index 000000000..5a8f90613 Binary files /dev/null and b/talimatname/genel/w/whatsapp-desktop/whatsapp-desktop.png differ diff --git a/talimatname/genel/w/whatsie/talimat b/talimatname/genel/w/whatsie/talimat new file mode 100644 index 000000000..a0a3fee16 --- /dev/null +++ b/talimatname/genel/w/whatsie/talimat @@ -0,0 +1,21 @@ +# Tanım: A simple & beautiful desktop client for WhatsApp Web. +# URL: https://github.com/gsantner/whatsie +# Paketçi: kadanur +# Gerekler: desktop-file-utils gconf gtk2 gvfs hicolor-icon-theme libgcrypt libgudev libnotify xorg-libxtst nss python xdg-utils + +isim=whatsie +surum=2.1.0 +devir=1 +kaynak=(https://github.com/gsantner/whatsie/releases/download/v2.1.0/$isim-$surum-linux-amd64.deb) + +derle() { + ar x $isim-$surum-linux-amd64.deb + bsdtar -xf data.tar.gz -C "$PKG/" + mkdir -p "$PKG/usr/bin/" + ln -s /opt/$isim/$isim "$PKG/usr/bin/$isim" + cd $PKG + for d in $(find . -type d); do + chmod 755 $d + done + +} diff --git a/talimatname/genel/w/whois/talimat b/talimatname/genel/w/whois/talimat new file mode 100644 index 000000000..e9a2a08ef --- /dev/null +++ b/talimatname/genel/w/whois/talimat @@ -0,0 +1,19 @@ +# Tanım: Dizin hizmetini sorgulayan istemci tarafı uygulaması +# URL: http://ftp.debian.org/debian/pool/main/w/whois +# Paketçi: milisarge +# Gerekler: + +isim=whois +surum=5.2.16 +devir=1 + +kaynak=(ftp://ftp.debian.org/debian/pool/main/w/$isim/${isim}_$surum.tar.xz) + + +derle() { +cd $isim-$surum +make prefix=/usr +make prefix=/usr BASEDIR=$PKG install-whois +make prefix=/usr BASEDIR=$PKG install-mkpasswd +make prefix=/usr BASEDIR=$PKG install-pos +} diff --git a/talimatname/genel/w/wicd/talimat b/talimatname/genel/w/wicd/talimat new file mode 100644 index 000000000..8f6fe4726 --- /dev/null +++ b/talimatname/genel/w/wicd/talimat @@ -0,0 +1,36 @@ +# Tanım: Linux için kablolu ve kablosuz ağ yöneticisi +# URL: http://wicd.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: python-gtk wpa-supplicant dbus-python wireless-tools dhcpcd + +isim=wicd +surum=1.7.2.4 +devir=1 + +kaynak=( http://launchpad.net/wicd/1.7/$surum/+download/$isim-$surum.tar.gz \ + http://downloads.nutyx.org/files/patchs/$isim/dbus_string_fix.patch wicd.rc) +derle() { +unset MAKEFLAGS +cd $isim-$surum +patch -Np0 -i ../dbus_string_fix.patch +sed -i '/wpath.logrotate\|wpath.systemd/d' setup.py +python setup.py configure --no-install-kde \ + --no-install-acpi \ + --no-install-pmutils \ + --no-install-init \ + --no-install-docs + +# Hack sinon les locales s'installent pas +mkdir -p translations/ast/LC_MESSAGES +for i in zh_CN zh_HK zh_TW bg ca da de cs \ +el fa en eo es fi et eu fr gl he id hr hu \ +ja it ka kk ko lt lv ml nb nl nn pl pt ro \ +ru sk sl te sr sv tr uk vi ast ar_EG pt_BR +do msgfmt po/$i.po -o translations/$i/LC_MESSAGES/wicd.mo +done + +python setup.py install --optimize=1 --root=$PKG +cp scripts/wicd $PKG/usr/bin/wicd +install -m 0744 -D $SRC/wicd.rc $PKG/etc/rc.d/wicd +echo "NotShowIn=KDE" >> $PKG/etc/xdg/autostart/wicd-tray.desktop +} diff --git a/talimatname/genel/w/wicd/wicd.rc b/talimatname/genel/w/wicd/wicd.rc new file mode 100644 index 000000000..60ce6fd34 --- /dev/null +++ b/talimatname/genel/w/wicd/wicd.rc @@ -0,0 +1,23 @@ +#!/bin/sh +# +# /etc/rc.d/wicd: start/stop wicd daemon +# + +case $1 in +start) + /usr/bin/wicd + ;; +stop) + kill $(cat /var/run/wicd/wicd.pid) + ;; +restart) + $0 stop + $0 start + ;; +*) + echo "usage: $0 [start|stop|restart]" + exit 1 + ;; +esac + +# End of file diff --git a/talimatname/genel/w/widgetci/talimat b/talimatname/genel/w/widgetci/talimat new file mode 100644 index 000000000..e13711cb4 --- /dev/null +++ b/talimatname/genel/w/widgetci/talimat @@ -0,0 +1,35 @@ +# Tanım: Bir Widget Yönetimi Uygulaması +# URL: https://github.com/eminfedar/widgetci +# Paketçi: Cihan_Alkan +# Gerekler: qt5 +# Grup: geliştirme + +isim=widgetci +surum=1.0.0 +devir=1 +kaynak=(https://github.com/eminfedar/widgetci/archive/v$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum/$isim + qmake-qt5 Widgetci.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug + make + mkdir -p $PKG/usr/bin + mkdir -p $PKG/usr/share/applications + mkdir -p $PKG/usr/share/pixmaps + # mkdir -p $PKG/usr/share/$isim/locale + +# Başlatıcı +cat > $PKG/usr/share/applications/$isim.desktop << "EOF" && +[Desktop Entry] +Name=Widgetçi +Comment=Widget Yönetimi Uygulaması +Exec=Widgetci +Icon=widgetci +NoDisplay=false +Categories=System;MX-Maintenance; +Type=Application +EOF + + mv Widgetci $PKG/usr/bin/ + mv img/icon.png $PKG/usr/share/pixmaps/$isim.png +} diff --git a/talimatname/genel/w/wifite/talimat b/talimatname/genel/w/wifite/talimat new file mode 100644 index 000000000..0a5129660 --- /dev/null +++ b/talimatname/genel/w/wifite/talimat @@ -0,0 +1,15 @@ +# Tanım: Aynı anda birden fazla WEP ve WPA şifreli ağa saldırmak için kullanılan bir araç +# URL: https://github.com/derv82/wifite +# Paketçi: milisarge +# Gerekler: python aircrack-ng + +isim=wifite +surum=git +devir=1 +kaynak=(https://raw.github.com/derv82/wifite/master/wifite.py) + +derle() { + sed -e 's|usr/bin/python$|/usr/bin/env python2|g' -i wifite.py + chmod +x wifite.py + install -Dm 755 wifite.py $PKG/usr/bin/$isim +} diff --git a/talimatname/genel/w/wildmidi/talimat b/talimatname/genel/w/wildmidi/talimat new file mode 100644 index 000000000..26516eec2 --- /dev/null +++ b/talimatname/genel/w/wildmidi/talimat @@ -0,0 +1,20 @@ +# Tanım: Açık Kaynaklı MIDI Synthesizer +# URL: https://www.mindwerks.net/projects/wildmidi/ +# Paketçi: Cihan_Alkan +# Gerekler: alsa-lib cmake +# Grup: + + +isim=wildmidi +surum=0.4.2 +devir=1 +kaynak=(https://github.com/psi29a/wildmidi/archive/wildmidi-${surum}.tar.gz) + +derle() { + + mkdir build + cd build + cmake -D CMAKE_INSTALL_PREFIX=/usr ../$isim-$isim-$surum + make + make DESTDIR="${PKG}" install +} diff --git a/talimatname/genel/w/wireguard-kernel/talimat b/talimatname/genel/w/wireguard-kernel/talimat new file mode 100644 index 000000000..dcb1f330f --- /dev/null +++ b/talimatname/genel/w/wireguard-kernel/talimat @@ -0,0 +1,26 @@ +# Tanım: Kernel modül destekli ileri seviye güvenli vpn uygulaması +# URL: https://www.wireguard.com +# Paketçi: milisarge +# Gerekler: libmnl kernel +# Grup: güvenlik + +isim=wireguard-kernel +surum=0.0.20180531 +devir=1 +kaynak=(https://git.zx2c4.com/WireGuard/snapshot/WireGuard-$surum.tar.xz::WireGuard-$surum.tar.xz) + +kernel_surum=$(ls /lib/modules/) +derle() { + cd "WireGuard-$surum" + unset LDFLAGS + mv /lib/modules/${kernel_surum}/build/vmlinux /lib/modules/${kernel_surum}/build/vmlinux.tmp + make -C src/ \ + KERNELDIR=/lib/modules/${kernel_surum}/build module + cd "src" + local module + for module in *.ko; do + install -v -D -m644 ${module} \ + "$PKG/lib/modules/$kernel_surum/extra/${module}" + done + mv /lib/modules/${kernel_surum}/build/vmlinux.tmp /lib/modules/${kernel_surum}/build/vmlinux +} diff --git a/talimatname/genel/w/wireguard-kernel/wireguard-kernel.hash b/talimatname/genel/w/wireguard-kernel/wireguard-kernel.hash new file mode 100644 index 000000000..9e50f3983 --- /dev/null +++ b/talimatname/genel/w/wireguard-kernel/wireguard-kernel.hash @@ -0,0 +1 @@ +c3a394256cf3cc2dce75dcb299f54969f74d4076a351b61972f10fb3e69191756c0c32552a5acc7e0cd5919c248f12035e6a33f15e43fdad64c6cf1230511ee3 WireGuard-0.0.20171101.tar.xz diff --git a/talimatname/genel/w/wireguard-kernel/wireguard-kernel.kur-kos b/talimatname/genel/w/wireguard-kernel/wireguard-kernel.kur-kos new file mode 100644 index 000000000..aa02caad3 --- /dev/null +++ b/talimatname/genel/w/wireguard-kernel/wireguard-kernel.kur-kos @@ -0,0 +1,2 @@ +depmod +modprobe wireguard diff --git a/talimatname/genel/w/wireguard-tools/talimat b/talimatname/genel/w/wireguard-tools/talimat new file mode 100644 index 000000000..deccbe9c2 --- /dev/null +++ b/talimatname/genel/w/wireguard-tools/talimat @@ -0,0 +1,23 @@ +# Tanım: Kernel modül destekli ileri seviye güvenli vpn uygulaması araçları +# URL: https://www.wireguard.com +# Paketçi: milisarge +# Gerekler: libmnl +# Grup: güvenlik + +isim=wireguard-tools +surum=0.0.20180531 +devir=1 +kaynak=(https://git.zx2c4.com/WireGuard/snapshot/WireGuard-$surum.tar.xz::WireGuard-$surum.tar.xz) + +derle() { + cd "WireGuard-$surum" + mkdir -p "$PKG"/usr/share/wireguard + make -C src/tools \ + DESTDIR="$PKG" \ + WITH_BASHCOMPLETION=yes \ + WITH_WGQUICK=yes \ + WITH_SYSTEMDUNITS=no \ + install + find contrib/examples -name '.gitignore' -delete + cp -rf $SRC/WireGuard-$surum/contrib/examples "$PKG"/usr/share/wireguard/ +} diff --git a/talimatname/genel/w/wireguard-tools/wireguard-tools.hash b/talimatname/genel/w/wireguard-tools/wireguard-tools.hash new file mode 100644 index 000000000..9e50f3983 --- /dev/null +++ b/talimatname/genel/w/wireguard-tools/wireguard-tools.hash @@ -0,0 +1 @@ +c3a394256cf3cc2dce75dcb299f54969f74d4076a351b61972f10fb3e69191756c0c32552a5acc7e0cd5919c248f12035e6a33f15e43fdad64c6cf1230511ee3 WireGuard-0.0.20171101.tar.xz diff --git a/talimatname/genel/w/wireless-tools/talimat b/talimatname/genel/w/wireless-tools/talimat new file mode 100644 index 000000000..bc93b93b3 --- /dev/null +++ b/talimatname/genel/w/wireless-tools/talimat @@ -0,0 +1,17 @@ +# Tanım: Kablosuz Uzantıları değiştirmeye izin veren araçlar +# URL: http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html +# Paketçi: milisarge@gmail.com +# Gerekler: + +isim=wireless-tools +surum=29 +devir=1 + +kaynak=( http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/wireless_tools.$surum.tar.gz) + +derle() { +cd wireless_tools.$surum +make +mkdir -p $PKG/usr/{sbin,lib,include,share/man} +make PREFIX=$PKG/usr INSTALL_MAN=$PKG/usr/share/man install +} diff --git a/talimatname/genel/w/wireshark/talimat b/talimatname/genel/w/wireshark/talimat new file mode 100644 index 000000000..aa9a62a45 --- /dev/null +++ b/talimatname/genel/w/wireshark/talimat @@ -0,0 +1,31 @@ +# Tanım: Wireshark dünyanın önde gelen ve yaygın olarak kullanılan ağ protokol analizörüdür. +# URL: http://www.wireshark.org +# Paketçi: milisarge +# Gerekler: gtk3 libpcap pcre +# Grup : güvenlik + +isim=wireshark +surum=2.5.1 +devir=1 +kaynak=(http://www.$isim.org/download/src/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --mandir=/usr/man \ + --with-plugins=/usr/lib/$isim/plugins \ + --enable-snmp \ + --disable-gcry \ + --without-krb5 \ + --with-qt4=no \ + --with-gtk=3 + + make + make DESTDIR=$PKG install + + chown -v root:wireshark $PKG/usr/bin/{tshark,dumpcap} && + chmod -v 6550 $PKG/usr/bin/{tshark,dumpcap} + + install -Dm755 $SRC/$isim-$surum/.libs/wireshark-gtk ${PKG}/usr/bin/wireshark-gtk + install -Dm644 wireshark-gtk.desktop ${PKG}/usr/share/applications/wireshark-gtk.desktop +} diff --git a/talimatname/genel/w/wireshark/wireshark.kur-kos b/talimatname/genel/w/wireshark/wireshark.kur-kos new file mode 100644 index 000000000..ada543c14 --- /dev/null +++ b/talimatname/genel/w/wireshark/wireshark.kur-kos @@ -0,0 +1,16 @@ +xdg-icon-resource forceupdate --theme hicolor &> /dev/null +update-mime-database usr/share/mime &>/dev/null + + +getent group wireshark >/dev/null 2>&1 || groupadd -g 150 wireshark &>/dev/null + + setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/dumpcap + echo "NOTE: Wiresharkı normal kullanıcı olarak çalıştırmak için wireshark grubuna kendiniz girmelisiniz" + +getent group wireshark >/dev/null 2>&1 || groupadd -g 150 wireshark &>/dev/null + + setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/dumpcap + +if getent group wireshark >/dev/null 2>&1; then + groupdel wireshark + fi diff --git a/talimatname/genel/w/wmctrl/talimat b/talimatname/genel/w/wmctrl/talimat new file mode 100644 index 000000000..ef2c5a95c --- /dev/null +++ b/talimatname/genel/w/wmctrl/talimat @@ -0,0 +1,20 @@ +# Tanım: EWMH uyumlu pencere yöneticisi yönetimi +# URL: http://tripie.sweb.cz/utils/wmctrl/ +# Paketçi: milisarge +# Gerekler: glib xorg-libxmu +# Grup: sistem + +isim=wmctrl +surum=1.07 +devir=1 +kaynak=(http://tripie.sweb.cz/utils/wmctrl/dist/wmctrl-1.07.tar.gz + http://archive.debian.org/debian/pool/main/w/wmctrl/wmctrl_1.07-6.diff.gz) + +derle() { + cd $isim-$surum + gunzip $SRC/wmctrl_$surum-6.diff.gz + patch -p1 -i "$SRC/wmctrl_$surum-6.diff" + ./configure --bindir="$PKG/usr/bin" --mandir="$PKG/usr/share/man" + make + make install +} diff --git a/talimatname/genel/w/wmfs2/talimat b/talimatname/genel/w/wmfs2/talimat new file mode 100644 index 000000000..596500ff4 --- /dev/null +++ b/talimatname/genel/w/wmfs2/talimat @@ -0,0 +1,26 @@ +# Tanım: X için hafif ve son derece yapılandırılabilir döşeme penceresi yöneticisi +# URL: http://wmfs.info/ +# Paketçi: milisarge +# Gerekler: xorg-libxft, xorg-libx11, imlib2, + +isim=wmfs2 +surum=git +devir=1 +kaynak=() + +derle() { + if cd $DERLEME_KAYNAKDIZIN/wmfs ; then + git pull + else + git clone git://github.com/xorg62/wmfs.git $DERLEME_KAYNAKDIZIN/wmfs + fi + + cp -r $DERLEME_KAYNAKDIZIN/wmfs $SRC/ && cd $SRC/wmfs + + ./configure --prefix /usr \ + --xdg-config-dir /etc/xdg \ + --man-prefix /usr/share/man \ + --without-xinerama + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/w/woeusb/talimat b/talimatname/genel/w/woeusb/talimat new file mode 100644 index 000000000..6bae014ce --- /dev/null +++ b/talimatname/genel/w/woeusb/talimat @@ -0,0 +1,28 @@ +# Tanım: Windows DVD'sinden veya bir iso dosyasından Windows USB bellek kurulum aracı oluşturma programı +# URL: https://github.com/slacka/WoeUSB +# Paketçi: Cihan_Alkan +# Gerekler: wxgtk grub libnotify parted ntfs-3g p7zip +# Grup: + +isim=woeusb +surum=3.2.1 +devir=1 + +kaynak=(trad.mo) + + +derle() { + git_indir https://github.com/slacka/WoeUSB.git $isim +cd $isim + autoreconf --force --install + autoconf + ./configure + make + make DESTDIR="$PKG/" prefix="/usr/" install +mkdir $PKG/usr/share/woeusb/locale/tr +mkdir $PKG/usr/share/woeusb/locale/tr/LC_MESSAGES + +cp $SRC/trad.mo $PKG/usr/share/woeusb/locale/tr/LC_MESSAGES/ +echo "Comment[tr_TR]=Windows DVD'sinden veya bir iso dosyasından Windows USB bellek kurulum aracı oluşturma programı" >> $PKG/usr/share//applications/woeusbgui.desktop + +} diff --git a/talimatname/genel/w/woeusb/trad.mo b/talimatname/genel/w/woeusb/trad.mo new file mode 100644 index 000000000..7804067aa Binary files /dev/null and b/talimatname/genel/w/woeusb/trad.mo differ diff --git a/talimatname/genel/w/worker/ornek-ayar_by_frusen b/talimatname/genel/w/worker/ornek-ayar_by_frusen new file mode 100644 index 000000000..4329914a9 --- /dev/null +++ b/talimatname/genel/w/worker/ornek-ayar_by_frusen @@ -0,0 +1,6841 @@ +workerconfig 3.8.2; +global { + lang = "builtin"; + rows = 4; + columns = 7; + cachesize = 50; + listersets { + left { + hbartop = false; + hbarheight = 12; + vbarleft = false; + vbarwidth = 12; + showheader = true; + displaysets { + permission; + size; + name; + type; + owner; + modtime; + destination; + } + } + right { + hbartop = false; + hbarheight = 12; + vbarleft = true; + vbarwidth = 12; + showheader = true; + displaysets { + permission; + size; + name; + type; + owner; + modtime; + destination; + } + } + } + terminal = "xterm -e %s"; + ownerstyle = style1; + usestringfordirsize = false; + timesets { + date = style1; + datestring = "%d %b %Y"; + datesubstitution = true; + time = style1; + timestring = "%H:%M:%S"; + datebeforetime = true; + } + palette { + 0 = 200,198,193; + 1 = 0,0,0; + 2 = 255,255,255; + 3 = 0,85,187; + 4 = 204,34,0; + 5 = 50,180,20; + 6 = 119,0,119; + 7 = 238,170,68; + } + layout { + buttonsvertical = false; + listviewsvertical = false; + listviewweight = 5; + weighttoactive = false; + } + mouseconf { + selectbutton = 1; + activatebutton = 2; + scrollbutton = 3; + activatemod { + } + scrollmod { + mod = shift; + } + contextmod { + } + selectmethod = normal; + } + saveworkerstateonexit = true; + volumemanager { + mountcommand = ""; + unmountcommand = ""; + fstabfile = ""; + mtabfile = ""; + partfile = ""; + requestaction = true; + ejectcommand = ""; + closetraycommand = ""; + } + useversionstringcompare = true; + useextendedregex = true; +} +colors { + statebar = 2,3; + sellvbar = 2,4; + unsellvbar = 1,0; + seldir = 2,3; + unseldir = 3,2; + selfile = 2,1; + unselfile = 1,2; + clockbar = 1,0; + selactdir = 2,7; + unselactdir = 1,7; + selactfile = 2,7; + unselactfile = 1,7; + requester = 1,0; + lvheader = 1,0; + lvbg = 2; + labelcolors { + color { + name = "1"; + normal = 4,2; + active = 4,7; + } + color { + name = "2"; + normal = 5,2; + active = 5,7; + } + color { + name = "3"; + normal = 6,2; + active = 6,7; + } + color { + name = "marked"; + normal = 4,2; + active = 4,7; + } + } + faces { + face { + name = "textview-bg"; + color = 2; + } + face { + name = "textview-fg"; + color = 1; + } + face { + name = "textview-highlight-bg"; + color = 0; + } + } +} +startup { + left = "."; + right = ""; +} +fonts { + globalfont = "fixed"; + buttonfont = "fixed"; + leftfont = "fixed"; + rightfont = "fixed"; + textviewfont = "fixed"; +} +xftfonts { + globalfont = "Sans-10"; + buttonfont = "Sans-10"; + leftfont = "Sans-10"; + rightfont = "Sans-10"; + textviewfont = "Sans-10"; +} +clockbarsets { + modus = timespace; + updatetime = 1; + program = ""; +} +pathjumpallowdirs { +} +paths { + path { + position = 0; + title = "$HOME"; + color = 1,0; + path = "$HOME"; + shortkeys { + normal { + key = "1"; + } + } + } + path { + position = 1; + title = "/"; + color = 1,0; + path = "/"; + shortkeys { + normal { + key = "2"; + } + } + } + path { + position = 2; + title = "/tmp"; + color = 1,0; + path = "/tmp"; + shortkeys { + normal { + key = "3"; + } + } + } +} +hotkeys { + hotkey { + title = "Parent"; + shortkeys { + normal { + key = "Left"; + } + } + commands { + ParentDirOp { + } + } + } + hotkey { + title = "GoDir"; + shortkeys { + normal { + key = "Right"; + } + } + commands { + EnterDirOp { + dir = ""; + mode = active; + } + } + } + hotkey { + title = "Up"; + shortkeys { + normal { + key = "Up"; + } + } + commands { + RowUp { + } + } + } + hotkey { + title = "Down"; + shortkeys { + normal { + key = "Down"; + } + } + commands { + RowDown { + } + } + } + hotkey { + title = "Top"; + shortkeys { + normal { + key = "Home"; + } + } + commands { + FirstRow { + } + } + } + hotkey { + title = "End"; + shortkeys { + normal { + key = "End"; + } + } + commands { + LastRow { + } + } + } + hotkey { + title = "Page up"; + shortkeys { + normal { + key = "Prior"; + } + } + commands { + PageUp { + } + } + } + hotkey { + title = "Page down"; + shortkeys { + normal { + key = "Next"; + } + } + commands { + PageDown { + } + } + } + hotkey { + title = "Select"; + shortkeys { + normal { + key = "Insert"; + } + } + commands { + SelectOp { + } + } + } + hotkey { + title = "Main"; + shortkeys { + normal { + key = "Return"; + } + } + commands { + SimDDOp { + } + } + } + hotkey { + title = "LeftListerOptions"; + shortkeys { + normal { + key = "F1"; + mod = mod1; + } + } + commands { + ChangeListerSetOp { + mode = left; + } + } + } + hotkey { + title = "RightListerOptions"; + shortkeys { + normal { + key = "F2"; + mod = mod1; + } + } + commands { + ChangeListerSetOp { + mode = right; + } + } + } + hotkey { + title = "ListerToLeft"; + shortkeys { + normal { + key = "Left"; + mod = control; + } + } + commands { + ScrollListerOp { + mode = left; + } + } + } + hotkey { + title = "ListerToRight"; + shortkeys { + normal { + key = "Right"; + mod = control; + } + } + commands { + ScrollListerOp { + mode = right; + } + } + } + hotkey { + title = "Start"; + shortkeys { + double { + key = "x"; + mod = control; + key = "x"; + mod = control; + } + } + commands { + StartProgOp { + start = terminalwait; + viewstr = ""; + global = true; + inbackground = false; + dontcd = false; + } + } + } + hotkey { + title = "Search entry"; + shortkeys { + normal { + key = "s"; + mod = control; + } + } + commands { + SearchEntryOp { + ignorecase = true; + reversesearch = false; + } + } + } + hotkey { + title = "Edit path"; + shortkeys { + normal { + key = "Return"; + mod = control; + } + } + commands { + EnterPathOp { + mode = current; + } + } + } + hotkey { + title = "Edit other path"; + shortkeys { + normal { + key = "Return"; + mod = control; + mod = shift; + } + } + commands { + EnterPathOp { + mode = other; + } + } + } + hotkey { + title = "Switch"; + shortkeys { + normal { + key = "Tab"; + } + } + commands { + SwitchListerOp { + } + } + } + hotkey { + title = "image mode"; + shortkeys { + normal { + key = "b"; + mod = control; + } + } + commands { + ToggleListermodeOp { + mode = "ShowImageMode"; + } + } + } + hotkey { + title = "info mode"; + shortkeys { + normal { + key = "i"; + mod = control; + } + } + commands { + ToggleListermodeOp { + mode = "InformationMode"; + } + } + } + hotkey { + title = "Hidden"; + shortkeys { + normal { + key = "asciicircum"; + } + } + commands { + ChangeHiddenFlag { + hiddenfiles = toggle; + } + } + } + hotkey { + title = "pattern unselect"; + shortkeys { + normal { + key = "KP_Divide"; + mod = shift; + } + } + commands { + FilterUnSelectOp { + filter = "*"; + } + } + } + hotkey { + title = "Enter VFS"; + shortkeys { + normal { + key = "Return"; + mod = shift; + } + } + commands { + EnterDirOp { + dir = "{F}#"; + mode = special; + } + } + } + hotkey { + title = "Open context menu"; + shortkeys { + normal { + key = "space"; + mod = control; + } + } + commands { + OpenContextMenuOp { + } + } + } + hotkey { + title = "Change file label"; + shortkeys { + normal { + key = "l"; + mod = mod1; + } + } + commands { + ChangeLabelOp { + askforlabel = true; + label = "marked"; + } + } + } + hotkey { + title = "New tab"; + shortkeys { + normal { + key = "t"; + mod = control; + } + } + commands { + ModifyTabsOp { + tabaction = newtab; + } + } + } + hotkey { + title = "Close tab"; + shortkeys { + normal { + key = "w"; + mod = control; + } + } + commands { + ModifyTabsOp { + tabaction = closecurrenttab; + } + } + } + hotkey { + title = "Next tab"; + shortkeys { + normal { + key = "Next"; + mod = control; + } + } + commands { + ModifyTabsOp { + tabaction = nexttab; + } + } + } + hotkey { + title = "Prev tab"; + shortkeys { + normal { + key = "Prior"; + mod = control; + } + } + commands { + ModifyTabsOp { + tabaction = prevtab; + } + } + } + hotkey { + title = "80% Layout"; + shortkeys { + double { + key = "l"; + mod = control; + key = "1"; + } + } + commands { + ChangeLayoutOp { + buttonsvertical = false; + listviewsvertical = false; + listviewweight = 8; + weighttoactive = false; + } + } + } + hotkey { + title = "Horizontal layout"; + shortkeys { + double { + key = "l"; + mod = control; + key = "2"; + } + } + commands { + ChangeLayoutOp { + buttonsvertical = false; + listviewsvertical = true; + listviewweight = 5; + weighttoactive = false; + statebar; + listviews; + buttons; + listviews; + clockbar; + } + } + } + hotkey { + title = "Path->other side in new tab"; + shortkeys { + normal { + key = "o"; + mod = mod1; + } + } + commands { + SwitchListerOp { + } + ModifyTabsOp { + tabaction = newtab; + } + EnterDirOp { + dir = "{p}"; + mode = special; + } + SwitchListerOp { + } + } + } + hotkey { + title = "active entry->other side in new tab"; + shortkeys { + normal { + key = "O"; + mod = shift; + mod = mod1; + } + } + commands { + SwitchListerOp { + } + ModifyTabsOp { + tabaction = newtab; + } + SwitchListerOp { + } + EnterDirOp { + dir = ""; + mode = active2other; + } + } + } + hotkey { + title = "Volume manager"; + shortkeys { + normal { + key = "v"; + mod = mod1; + } + } + commands { + VolumeManagerOp { + } + } + } + hotkey { + title = "Text view mode"; + shortkeys { + normal { + key = "v"; + mod = control; + } + } + commands { + ToggleListermodeOp { + mode = "TextViewMode"; + } + } + } + hotkey { + title = "Path jump"; + shortkeys { + normal { + key = "slash"; + } + normal { + key = "slash"; + mod = shift; + } + } + commands { + PathJumpOp { + } + } + } + hotkey { + title = "Center active row"; + shortkeys { + double { + key = "l"; + mod = control; + key = "l"; + mod = control; + } + } + commands { + ScriptOp { + type = evalcommand; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + commandstring = "recenter_top_bottom"; + } + } + } + hotkey { + title = "Command menu"; + shortkeys { + normal { + key = "F1"; + } + } + commands { + CommandMenuOp { + } + } + } + hotkey { + title = "select pagedown"; + shortkeys { + normal { + key = "Next"; + mod = shift; + } + } + commands { + ScriptOp { + type = evalcommand; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + commandstring = "selectentry pagedown"; + } + } + } + hotkey { + title = "select pageup"; + shortkeys { + normal { + key = "Prior"; + mod = shift; + } + } + commands { + ScriptOp { + type = evalcommand; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + commandstring = "selectentry -p"; + } + } + } + hotkey { + title = "select 1 up"; + shortkeys { + normal { + key = "Up"; + mod = shift; + } + } + commands { + ScriptOp { + type = evalcommand; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + commandstring = "selectentry -1"; + } + } + } + hotkey { + title = "select 1 down"; + shortkeys { + normal { + key = "Down"; + mod = shift; + } + } + commands { + ScriptOp { + type = evalcommand; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + commandstring = "selectentry 1"; + } + } + } +} +buttons { + button { + position = 0; + title = "F3 - View"; + color = 1,0; + shortkeys { + normal { + key = "F3"; + } + } + commands { + ShowAction { + } + } + } + button { + position = 1; + title = "Show pics"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = normal; + com = "display {a}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 2; + title = "F4 - Edit"; + color = 1,0; + shortkeys { + normal { + key = "F4"; + } + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = normal; + com = "{scripts}/xeditor {A}"; + viewstr = ""; + inbackground = true; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 3; + title = "HexEdit"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = normal; + com = "khexedit {f}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 4; + title = "F5 - Copy"; + color = 1,0; + shortkeys { + normal { + key = "F5"; + } + } + commands { + CopyOp { + followsymlinks = false; + move = false; + rename = false; + samedir = false; + requestdest = false; + requestflags = false; + overwrite = normal; + preserveattr = true; + } + } + } + button { + position = 5; + title = "Copy++"; + color = 1,0; + shortkeys { + normal { + key = "F5"; + mod = shift; + } + } + commands { + CopyOp { + followsymlinks = false; + move = false; + rename = false; + samedir = false; + requestdest = false; + requestflags = true; + overwrite = normal; + preserveattr = true; + } + } + } + button { + position = 6; + title = "F6 - Move"; + color = 1,0; + shortkeys { + normal { + key = "F6"; + } + } + commands { + CopyOp { + followsymlinks = false; + move = true; + rename = false; + samedir = false; + requestdest = false; + requestflags = false; + overwrite = normal; + preserveattr = true; + } + } + } + button { + position = 7; + title = "Move++"; + color = 1,0; + shortkeys { + normal { + key = "F6"; + mod = shift; + } + } + commands { + CopyOp { + followsymlinks = false; + move = true; + rename = false; + samedir = false; + requestdest = false; + requestflags = true; + overwrite = normal; + preserveattr = true; + } + } + } + button { + position = 8; + title = "Rename"; + color = 1,0; + shortkeys { + } + commands { + RenameOp { + } + } + } + button { + position = 9; + title = "Ptrn Rename"; + color = 1,0; + shortkeys { + } + commands { + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 1; + pushstring = "{Rs{Enter a Match *[Pattern]* for Renaming.|The leading or trailing * wild card portions of|file names will be retained and the matching literal|string portion of *[Pattern]* will be replaced:}{*{uf}*}}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "isEmpty(1)"; + iflabel = "CANCEL"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 2; + pushstring = "{Rs{Enter Replacement [*]String[*] for \"{top 1}\":}{{top 1}}}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "isEmpty(2)"; + iflabel = "CANCEL"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + OwnOp { + separateeachentry = false; + recursive = false; + start = terminalwait; + com = "{scripts}/aa.pattern_rename.sh {p} {top 1} {top 2} {uA}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = false; + } + ScriptOp { + type = end; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "CANCEL"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + OwnOp { + separateeachentry = false; + recursive = false; + start = terminalwait; + com = "echo \"-- Pattern Rename Cancelled --\""; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ScriptOp { + type = end; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + } + } + button { + position = 10; + title = "F7 - New dir"; + color = 1,0; + shortkeys { + normal { + key = "F7"; + } + } + commands { + MakeDirOp { + } + } + } + button { + position = 12; + title = "F8 - DELETE"; + color = 1,0; + shortkeys { + normal { + key = "Delete"; + } + normal { + key = "F8"; + } + } + commands { + DeleteOp { + alsoactive = false; + } + } + } + button { + position = 14; + title = "All"; + color = 1,0; + shortkeys { + normal { + key = "KP_Add"; + } + } + commands { + SelectAllOp { + } + } + } + button { + position = 15; + title = "None"; + color = 1,0; + shortkeys { + normal { + key = "KP_Subtract"; + } + } + commands { + SelectNoneOp { + } + } + } + button { + position = 16; + title = "Invert selection"; + color = 1,0; + shortkeys { + normal { + key = "KP_Multiply"; + } + } + commands { + FilterSelectOp { + filter = "*"; + } + } + } + button { + position = 17; + title = "Pattern select"; + color = 1,0; + shortkeys { + normal { + key = "KP_Divide"; + } + } + commands { + FilterSelectOp { + filter = "*"; + } + } + } + button { + position = 18; + title = "Start prog"; + color = 1,0; + shortkeys { + } + commands { + StartProgOp { + start = normal; + viewstr = ""; + global = false; + inbackground = false; + dontcd = false; + } + } + } + button { + position = 19; + title = "Start prog++"; + color = 1,0; + shortkeys { + } + commands { + StartProgOp { + start = normal; + viewstr = ""; + global = false; + inbackground = false; + dontcd = false; + } + } + } + button { + position = 20; + title = "Duplicate"; + color = 1,0; + shortkeys { + } + commands { + CopyOp { + followsymlinks = false; + move = false; + rename = true; + samedir = true; + requestdest = false; + requestflags = false; + overwrite = normal; + preserveattr = true; + } + } + } + button { + position = 22; + title = "Reload"; + color = 1,0; + shortkeys { + normal { + key = "r"; + mod = control; + } + } + commands { + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = true; + } + } + } + button { + position = 23; + title = "Full reload"; + color = 1,0; + shortkeys { + } + commands { + ReloadOp { + mode = current; + resetdirsizes = true; + keepfiletypes = false; + } + } + } + button { + position = 24; + title = "Find file"; + color = 1,0; + shortkeys { + normal { + key = "f"; + mod = control; + } + normal { + key = "question"; + mod = control; + mod = shift; + } + normal { + key = "question"; + mod = shift; + mod = mod1; + } + normal { + key = "question"; + mod = shift; + } + } + commands { + SearchOp { + editcommand = "{scripts}/xeditor -line {l} {f}"; + showprevresults = false; + } + } + } + button { + position = 25; + title = "Find History"; + color = 1,0; + shortkeys { + normal { + key = "h"; + mod = control; + } + } + commands { + SearchOp { + editcommand = "{scripts}/xeditor -line {l} {f}"; + showprevresults = true; + } + } + } + button { + position = 26; + title = "Dirsize"; + color = 1,0; + shortkeys { + } + commands { + DirSizeOp { + } + } + } + button { + position = 28; + title = "change filter"; + color = 1,0; + shortkeys { + } + commands { + SetFilterOp { + requestflags = true; + mode = include; + filter = "*"; + bookmarklabel = ""; + bookmarkfilter = showall; + optionmode = set; + changefilters = true; + changebookmarks = false; + querylabel = false; + } + } + } + button { + position = 29; + title = "Toggle bookmark filter"; + color = 1,0; + shortkeys { + normal { + key = "d"; + mod = control; + } + } + commands { + SetFilterOp { + requestflags = false; + mode = include; + filter = ""; + bookmarklabel = ""; + bookmarkfilter = showall; + optionmode = invert; + changefilters = false; + changebookmarks = true; + querylabel = true; + } + } + } + button { + position = 30; + title = "Hidden"; + color = 1,0; + shortkeys { + } + commands { + ChangeHiddenFlag { + hiddenfiles = toggle; + } + } + } + button { + position = 32; + title = "Symlink"; + color = 1,0; + shortkeys { + double { + key = "x"; + mod = control; + key = "s"; + } + } + commands { + CreateSymlinkOp { + samedir = false; + relative = false; + requestflags = true; + } + } + } + button { + position = 33; + title = "Change Symlink"; + color = 1,0; + shortkeys { + double { + key = "x"; + mod = control; + key = "s"; + mod = control; + } + } + commands { + ChangeSymlinkOp { + } + } + } + button { + position = 34; + title = "CHMOD"; + color = 1,0; + shortkeys { + double { + key = "x"; + mod = control; + key = "c"; + } + } + commands { + ChModOp { + onfiles = true; + ondirs = true; + recursive = false; + requestflags = true; + } + } + } + button { + position = 35; + title = "CHOWN"; + color = 1,0; + shortkeys { + double { + key = "x"; + mod = control; + key = "o"; + } + } + commands { + ChOwnOp { + onfiles = true; + ondirs = true; + recursive = false; + requestflags = true; + } + } + } + button { + position = 36; + title = "Bookmarks"; + color = 1,0; + shortkeys { + normal { + key = "b"; + mod = mod1; + } + normal { + key = "backslash"; + mod = control; + } + } + commands { + DirBookmarkOp { + } + } + } + button { + position = 37; + title = "Path jump"; + color = 1,0; + shortkeys { + } + commands { + PathJumpOp { + } + } + } + button { + position = 38; + title = "XTerm"; + color = 1,0; + shortkeys { + normal { + key = "e"; + mod = control; + } + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = normal; + com = "lxterminal"; + viewstr = ""; + inbackground = true; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 40; + title = "Quit"; + color = 1,0; + shortkeys { + normal { + key = "q"; + mod = mod1; + } + } + commands { + QuitOp { + mode = quick; + } + } + } + button { + position = 48; + title = "Change time"; + color = 1,0; + shortkeys { + } + commands { + ChTimeOp { + onfiles = true; + ondirs = false; + recursive = false; + requestflags = true; + } + } + } + button { + position = 56; + title = "create TAR->"; + color = 2,3; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = terminalwait; + com = "tar -cvf \"{op}/{Rs{Enter archive name:|(will be created in the other side)}}\" {a}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = other; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 57; + title = "unpack TAR->"; + color = 2,3; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = terminalwait; + com = "tar -xvf {F} -C {op}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = other; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 58; + title = "unpack TGZ->"; + color = 1,7; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = terminalwait; + com = "gzip -cd {F} | tar -xvf - -C {op}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = other; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 59; + title = "unpack TBZ2->"; + color = 1,7; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = terminalwait; + com = "bzip2 -cd {F} | tar -xvf - -C {op}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = other; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 60; + title = "create RAR->"; + color = 2,3; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = terminalwait; + com = "rar a -r -m5 {op}/{Rs{Enter archive name:|(will be created in the other side)}{.rar}} {a}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = other; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 61; + title = "test RAR"; + color = 2,3; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = terminalwait; + com = "rar t {F}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 62; + title = "create ZIP->"; + color = 1,7; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = terminalwait; + com = "zip -r -9 {op}/{Rs{Enter archive name:|(will be created in the other side)}{.zip}} {a}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = other; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 63; + title = "test ZIP"; + color = 1,7; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = terminalwait; + com = "unzip -t {F}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 64; + title = "create LHA->"; + color = 2,3; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = terminalwait; + com = "lha a \"{op}/{Rs{Enter archive name:|(will be created in the other side)}}\" {a}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = other; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 65; + title = "test LHA"; + color = 2,3; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = terminalwait; + com = "lha t {F}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = other; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 66; + title = "create 7ZIP->"; + color = 1,7; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = terminalwait; + com = "7za a -ms=on {op}/{Rs{Enter archive name:|(will be created in the other side)}{{ufE}.7z}} {a}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = other; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 67; + title = "test 7ZIP"; + color = 1,7; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = terminalwait; + com = "7za t {F}"; + viewstr = ""; + inbackground = true; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 68; + title = "GZIP"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = terminalwait; + com = "gzip -v {F}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 69; + title = "GUNZIP"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = terminalwait; + com = "gunzip -v {F}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 70; + title = "show TAR"; + color = 2,3; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = terminalwait; + com = "tar -tvf {F}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = other; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 72; + title = "show TGZ"; + color = 1,7; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = terminalwait; + com = "gzip -cd {F} | tar -tvf -"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = other; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 73; + title = "show TBZ2"; + color = 1,7; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = terminalwait; + com = "bzip2 -cd {F} | tar -tvf -"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = other; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 74; + title = "unpack RAR->"; + color = 2,3; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = terminalwait; + com = "rar x {F} {op}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = other; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 75; + title = "show RAR"; + color = 2,3; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = terminalwait; + com = "rar l {F}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 76; + title = "unpack ZIP->"; + color = 1,7; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = terminalwait; + com = "unzip {F} -d {op}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = other; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 77; + title = "show ZIP"; + color = 1,7; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = terminalwait; + com = "unzip -l {F}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 78; + title = "unpack LHA->"; + color = 2,3; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = terminalwait; + com = "lha xw={op} {F}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = other; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 79; + title = "show LHA"; + color = 2,3; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = terminalwait; + com = "lha l {F}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = other; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 80; + title = "unpack 7ZIP->"; + color = 1,7; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = terminalwait; + com = "7za x -o \"{op}\" {F}"; + viewstr = ""; + inbackground = true; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = other; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 81; + title = "show 7ZIP"; + color = 1,7; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = terminalwait; + com = "7za l {F}"; + viewstr = ""; + inbackground = true; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 82; + title = "BZIP2"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = terminalwait; + com = "bzip2 -v {F}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 83; + title = "BUNZIP2"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = terminalwait; + com = "bunzip2 -v {F}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 84; + title = "EasyArchive"; + color = 2,3; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = terminalwait; + com = "tar -cvf {p}/{uf}.tar {a}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 85; + title = "EasyArchive->"; + color = 2,3; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = terminalwait; + com = "tar -cvf \"{op}/{uf}.tar\" {a}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = other; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 86; + title = "TGZ->SubDir"; + color = 1,7; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = normal; + com = "mkdir \"{p}/{ufE}\""; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + OwnOp { + separateeachentry = true; + recursive = false; + start = terminalwait; + com = "gzip -cd {uF} | tar -xvf - -C \"{p}/{fE}\""; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = true; + } + } + } + button { + position = 87; + title = "TBZ2->SubDir"; + color = 1,7; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = normal; + com = "mkdir \"{p}/{ufE}\""; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + OwnOp { + separateeachentry = true; + recursive = false; + start = terminalwait; + com = "bzip2 -cd {uF} | tar -xvf - -C \"{p}/{fE}\""; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = true; + } + } + } + button { + position = 88; + title = "RAR->SubDir"; + color = 2,3; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = normal; + com = "mkdir \"{p}/{ufE}\""; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + OwnOp { + separateeachentry = true; + recursive = false; + start = terminalwait; + com = "rar x {uF} {p}/{fE}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = true; + } + } + } + button { + position = 90; + title = "ZIP->SubDir"; + color = 1,7; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = normal; + com = "mkdir \"{p}/{ufE}\""; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + OwnOp { + separateeachentry = true; + recursive = false; + start = terminalwait; + com = "unzip \"{uf}\" -d \"{p}/{fE}\""; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = true; + } + } + } + button { + position = 92; + title = "LHA->SubDir"; + color = 2,3; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = normal; + com = "mkdir \"{p}/{ufE}\""; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + OwnOp { + separateeachentry = true; + recursive = false; + start = terminalwait; + com = "lha xw=\"{p}/{ufE}\" \"{f}\""; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = true; + } + } + } + button { + position = 94; + title = "create T7Z->"; + color = 1,7; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = terminalwait; + com = "tar cvf - {a} | 7za a -si -ms=on \"{op}/{Rs{Enter archive name:|(will be created in the other side)}{.tar.7z}}\""; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = other; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 95; + title = "unpack T7Z->"; + color = 1,7; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = terminalwait; + com = "7za x -so {F} | tar vxf - -C {op}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = other; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 96; + title = "clone GZ->BZ2"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = terminalwait; + com = "gunzip -c {uF} | bzip2 > {FE}.bz2"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 97; + title = "clone BZ2->GZ"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = terminalwait; + com = "bunzip2 -c {uF} | gzip > {FE}.gz"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 112; + title = "Edit (MC)"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = terminal; + com = "mcedit {F}"; + viewstr = ""; + inbackground = true; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 114; + title = "Edit new file"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = normal; + com = "{scripts}/xeditor {Rs{Enter filename:}{}}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 116; + title = "DirCacheList"; + color = 1,0; + shortkeys { + normal { + key = "Return"; + mod = mod1; + } + } + commands { + ShowDirCacheOp { + } + } + } + button { + position = 118; + title = "Path->Other side"; + color = 1,0; + shortkeys { + normal { + key = "o"; + mod = control; + } + } + commands { + Path2OSideOp { + } + } + } + button { + position = 119; + title = "Active->Other side"; + color = 1,0; + shortkeys { + normal { + key = "O"; + mod = control; + mod = shift; + } + } + commands { + EnterDirOp { + dir = ""; + mode = active2other; + } + } + } + button { + position = 120; + title = "Panel 1 vs 2"; + color = 1,0; + shortkeys { + normal { + key = "u"; + mod = control; + } + } + commands { + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 1; + pushstring = "{p}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 2; + pushstring = "{op}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + EnterDirOp { + dir = "{top 2}"; + mode = special; + } + SwitchListerOp { + } + EnterDirOp { + dir = "{top 1}"; + mode = special; + } + } + } + button { + position = 122; + title = "Flatten Dir"; + color = 1,0; + shortkeys { + } + commands { + ScriptOp { + type = evalcommand; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + commandstring = "flatten_dir"; + } + } + } + button { + position = 124; + title = "Worker"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = normal; + com = "worker {lp} {rp}"; + viewstr = ""; + inbackground = true; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 125; + title = "rootWorker"; + color = 2,4; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = terminalwait; + com = "su -c worker"; + viewstr = ""; + inbackground = true; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 126; + title = "FTP"; + color = 1,0; + shortkeys { + } + commands { + GoFTPOp { + requestflags = true; + dontenterftp = false; + hostname = ""; + username = ""; + password = ""; + alwaysstorepw = false; + avfsmodule = "ftp"; + } + } + } + button { + position = 128; + title = "GIMP"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = normal; + com = "gimp {a}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 130; + title = "ShortkeyList"; + color = 1,0; + shortkeys { + } + commands { + ShortkeyFromListOp { + } + } + } + button { + position = 136; + title = "Sizesort"; + color = 1,0; + shortkeys { + } + commands { + SetSortmodeOp { + sortby = size; + sortflag = reverse; + } + } + } + button { + position = 137; + title = "Typesort"; + color = 1,0; + shortkeys { + } + commands { + SetSortmodeOp { + sortby = type; + } + } + } + button { + position = 138; + title = "Namesort"; + color = 1,0; + shortkeys { + normal { + key = "n"; + mod = mod1; + } + } + commands { + SetSortmodeOp { + sortby = name; + } + } + } + button { + position = 139; + title = "Timesort"; + color = 1,0; + shortkeys { + normal { + key = "t"; + mod = mod1; + } + } + commands { + SetSortmodeOp { + sortby = modtime; + sortflag = reverse; + } + } + } + button { + position = 140; + title = "Symlink abs"; + color = 1,0; + shortkeys { + } + commands { + ChangeSymlinkOp { + mode = makeabsolute; + } + } + } + button { + position = 141; + title = "Symlink rel"; + color = 1,0; + shortkeys { + } + commands { + ChangeSymlinkOp { + mode = makerelative; + } + } + } + button { + position = 144; + title = "Volume manager"; + color = 1,0; + shortkeys { + } + commands { + VolumeManagerOp { + } + } + } + button { + position = 146; + title = "Go Symlink"; + color = 1,0; + shortkeys { + } + commands { + ScriptOp { + type = push; + pushuseoutput = true; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + pushstring = "echo {F} | python -c \"import os,sys; print os.path.realpath( sys.stdin.readlines()[0].rstrip( '\\\\n' ) )\""; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + EnterDirOp { + dir = "{pop 0}"; + mode = special; + } + } + } + button { + position = 150; + title = "Selected to vdir"; + color = 1,0; + shortkeys { + } + commands { + ScriptOp { + type = evalcommand; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + commandstring = "vdir_from_selected"; + } + } + } + button { + position = 152; + title = "Add from other side"; + color = 1,0; + shortkeys { + } + commands { + ScriptOp { + type = evalcommand; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + commandstring = "vdir_add_selected_from_other_side"; + } + } + } + button { + position = 168; + title = "git clone"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = terminalwait; + com = "git clone {uf} {f}-cloned"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 169; + title = "bare clone"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = terminalwait; + com = "git clone --bare {uf} {f}-cloned"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 170; + title = "mark4commit"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = terminalwait; + com = "git update-index {f}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 171; + title = "add"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = terminalwait; + com = "git add {a}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 172; + title = "status"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = terminalwait; + com = "git status"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 173; + title = "branch"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = terminalwait; + com = "git branch"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 174; + title = "DIFF"; + color = 2,3; + shortkeys { + } + commands { + } + } + button { + position = 180; + title = "Check gpg signature"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = terminalwait; + com = "gpg --verify {uf} {fE}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 182; + title = "git gui"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = normal; + com = "git gui"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 184; + title = "commit"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = terminalwait; + com = "git commit"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 185; + title = "commit -a"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = terminalwait; + com = "git commit -a"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 188; + title = "diff other"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = terminalwait; + com = "diff -u {uF} {op}/{f}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 189; + title = "diff othersel"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = terminalwait; + com = "diff -u {f} {oF}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 196; + title = "gitk"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = normal; + com = "gitk"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 197; + title = "gitk --all"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = normal; + com = "gitk --all"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 198; + title = "diff"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = terminal; + com = "git diff 2>&1 | less"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 199; + title = "diff entry"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = terminal; + com = "git diff {f} 2>&1 | less"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 202; + title = "Dir-diff other"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = terminalwait; + com = "diff -upNr {uf} {op}/{f}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 203; + title = "Dir-diff othersel"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = terminalwait; + com = "diff -upNr {f} {oF}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + } + } + button { + position = 224; + title = "to lower"; + color = 1,0; + shortkeys { + } + commands { + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "collect"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "filelistEmpty(0) == true"; + iflabel = "prestart"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + pushstring = "{f}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = goto; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "collect"; + iftest = "true"; + iflabel = "collect"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "prestart"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 2; + pushstring = "0"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 3; + pushstring = "{size 0}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = window; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = open; + changeprogress = true; + changetext = true; + progressuseoutput = false; + wintextuseoutput = false; + progress = "0"; + wintext = "Changing filenames to lower"; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "start"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = true; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 2; + pushstring = "expr {pop 2} + 1"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "isEmpty(0) == true"; + iflabel = "end"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = window; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = leave; + changeprogress = true; + changetext = false; + progressuseoutput = true; + wintextuseoutput = true; + progress = "expr {top 2} \\\\* 100 / {top 3}"; + } + ScriptOp { + type = push; + pushuseoutput = true; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 1; + pushstring = "echo {top 0} | tr [A-Z] [a-z]"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "( \"{top 0}\" != \"{top 1}\" ) && ( ?{test -e \"{p}/{top 1}\"} != 0 )"; + iflabel = "rename"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = pop; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = pop; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 1; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = goto; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "start"; + iftest = "true"; + iflabel = "start"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "rename"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + OwnOp { + separateeachentry = false; + recursive = false; + start = normal; + com = "mv {pop 0} {pop 1}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ScriptOp { + type = goto; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "start"; + iftest = "true"; + iflabel = "start"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "end"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 225; + title = "to lower (rec)"; + color = 1,0; + shortkeys { + } + commands { + ScriptOp { + type = settings; + pushuseoutput = false; + dodebug = false; + wpurecursive = true; + wputakedirs = false; + stacknr = 0; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "collect"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "filelistEmpty(0) == true"; + iflabel = "prestart"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + pushstring = "{F}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = goto; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "collect"; + iftest = "true"; + iflabel = "collect"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "prestart"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 2; + pushstring = "0"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 3; + pushstring = "{size 0}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = window; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = open; + changeprogress = true; + changetext = true; + progressuseoutput = false; + wintextuseoutput = false; + progress = "0"; + wintext = "Changing filenames to lower"; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "start"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = true; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 2; + pushstring = "expr {pop 2} + 1"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "isEmpty(0) == true"; + iflabel = "end"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = window; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = leave; + changeprogress = true; + changetext = false; + progressuseoutput = true; + wintextuseoutput = true; + progress = "expr {top 2} \\\\* 100 / {top 3}"; + } + ScriptOp { + type = push; + pushuseoutput = true; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 1; + pushstring = "dirname {top 0} | tr -d '\\\\n' ; echo -n / ; basename {top 0} | tr [A-Z] [a-z]"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "( \"{top 0}\" != \"{top 1}\" ) && ( ?{test -e {top 1}} != 0 )"; + iflabel = "rename"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = pop; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = pop; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 1; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = goto; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "start"; + iftest = "true"; + iflabel = "start"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "rename"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + OwnOp { + separateeachentry = false; + recursive = false; + start = normal; + com = "mv {pop 0} {pop 1}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ScriptOp { + type = goto; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "start"; + iftest = "true"; + iflabel = "start"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "end"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 226; + title = "to upper"; + color = 1,0; + shortkeys { + } + commands { + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "collect"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "filelistEmpty(0) == true"; + iflabel = "prestart"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + pushstring = "{f}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = goto; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "collect"; + iftest = "true"; + iflabel = "collect"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "prestart"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 2; + pushstring = "0"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 3; + pushstring = "{size 0}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = window; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = open; + changeprogress = true; + changetext = true; + progressuseoutput = false; + wintextuseoutput = false; + progress = "0"; + wintext = "Changing filenames to upper"; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "start"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = true; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 2; + pushstring = "expr {pop 2} + 1"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "isEmpty(0) == true"; + iflabel = "end"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = window; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = leave; + changeprogress = true; + changetext = false; + progressuseoutput = true; + wintextuseoutput = true; + progress = "expr {top 2} \\\\* 100 / {top 3}"; + } + ScriptOp { + type = push; + pushuseoutput = true; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 1; + pushstring = "echo {top 0} | tr [a-z] [A-Z]"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "( \"{top 0}\" != \"{top 1}\" ) && ( ?{test -e \"{p}/{top 1}\"} != 0 )"; + iflabel = "rename"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = pop; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = pop; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 1; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = goto; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "start"; + iftest = "true"; + iflabel = "start"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "rename"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + OwnOp { + separateeachentry = false; + recursive = false; + start = normal; + com = "mv {pop 0} {pop 1}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ScriptOp { + type = goto; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "start"; + iftest = "true"; + iflabel = "start"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "end"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 227; + title = "to upper (rec)"; + color = 1,0; + shortkeys { + } + commands { + ScriptOp { + type = settings; + pushuseoutput = false; + dodebug = false; + wpurecursive = true; + wputakedirs = false; + stacknr = 0; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "collect"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "filelistEmpty(0) == true"; + iflabel = "prestart"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + pushstring = "{F}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = goto; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "collect"; + iftest = "true"; + iflabel = "collect"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "prestart"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 2; + pushstring = "0"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 3; + pushstring = "{size 0}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = window; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = open; + changeprogress = true; + changetext = true; + progressuseoutput = false; + wintextuseoutput = false; + progress = "0"; + wintext = "Changing filenames to upper"; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "start"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = true; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 2; + pushstring = "expr {pop 2} + 1"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "isEmpty(0) == true"; + iflabel = "end"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = window; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = leave; + changeprogress = true; + changetext = false; + progressuseoutput = true; + wintextuseoutput = true; + progress = "expr {top 2} \\\\* 100 / {top 3}"; + } + ScriptOp { + type = push; + pushuseoutput = true; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 1; + pushstring = "dirname {top 0} | tr -d '\\\\n' ; echo -n / ; basename {top 0} | tr [a-z] [A-Z]"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "( \"{top 0}\" != \"{top 1}\" ) && ( ?{test -e {top 1}} != 0 )"; + iflabel = "rename"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = pop; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = pop; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 1; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = goto; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "start"; + iftest = "true"; + iflabel = "start"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "rename"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + OwnOp { + separateeachentry = false; + recursive = false; + start = normal; + com = "mv {pop 0} {pop 1}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ScriptOp { + type = goto; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "start"; + iftest = "true"; + iflabel = "start"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "end"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 230; + title = "JPEGOptim"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = true; + start = terminalwait; + com = "jpegoptim -t {A}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 231; + title = "JPEGOptim variable"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = true; + start = terminalwait; + com = "jpegoptim -t -m{Rs{Quality:|0-100}{75}} {A}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 232; + title = "Go to prev dir"; + color = 1,0; + shortkeys { + normal { + key = "BackSpace"; + } + } + commands { + ScriptOp { + type = evalcommand; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + commandstring = "go_to_previous_dir"; + } + } + } + button { + position = 234; + title = "CD->ogg"; + color = 4,2; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = terminalwait; + com = "{scripts}/cd2ogg.sh {Rs{Insert AudioCd tracks to be converted to ogg format||The volume will be normalized||Example: \"1 3 6\" to rip-normalize-encode tracks 1,3,6}{}}"; + viewstr = ""; + inbackground = true; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 236; + title = "CD->mp3"; + color = 4,2; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = terminalwait; + com = "{scripts}/cd2mp3.sh {Rs{Insert AudioCd tracks to be converted to mp3 format||The bitrate is 256kb|The volume will be normalized|Example: \"1 3 6\" to rip-normalize-encode tracks 1,3,6}{}}"; + viewstr = ""; + inbackground = true; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 238; + title = "Change extension"; + color = 1,0; + shortkeys { + } + commands { + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 4; + pushstring = "{Rs{Enter new extension (without dot):}{}}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "isEmpty(4) == true"; + iflabel = "end"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "collect"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "filelistEmpty(0) == true"; + iflabel = "prestart"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + pushstring = "{uf}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 1; + pushstring = "{fE}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = goto; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "collect"; + iftest = "true"; + iflabel = "collect"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "prestart"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 2; + pushstring = "0"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 3; + pushstring = "{size 0}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = window; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = open; + changeprogress = true; + changetext = true; + progressuseoutput = false; + wintextuseoutput = false; + progress = "0"; + wintext = "Changing suffix"; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "start"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = true; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 2; + pushstring = "expr {pop 2} + 1"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "isEmpty(0) == true"; + iflabel = "end"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = window; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = leave; + changeprogress = true; + changetext = false; + progressuseoutput = true; + wintextuseoutput = true; + progress = "expr {top 2} \\\\* 100 / {top 3}"; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "( \"{top 0}\" != \"{top 1}\" ) && ( ?{test -e \"{p}/{top 1}.{top 4}\"} != 0 )"; + iflabel = "rename"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = pop; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = pop; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 1; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = goto; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "start"; + iftest = "true"; + iflabel = "start"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "rename"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + OwnOp { + separateeachentry = false; + recursive = false; + start = normal; + com = "mv {pop 0} {pop 1}.{top 4}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ScriptOp { + type = goto; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "start"; + iftest = "true"; + iflabel = "start"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "end"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 240; + title = "Numbering"; + color = 1,0; + shortkeys { + } + commands { + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 4; + pushstring = "{Rs{Begin of numbering:}{1}}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "\"{top 4}\" == \"\""; + iflabel = "end"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 5; + pushstring = "{Rs{String between filename and numbering:}{}}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "collect"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "filelistEmpty(0) == true"; + iflabel = "prestart"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 1; + pushstring = "{f}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = goto; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "collect"; + iftest = "true"; + iflabel = "collect"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "prestart"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "isEmpty(1) == true"; + iflabel = "realstart"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + pushstring = "{pop 1}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = goto; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "prestart"; + iftest = "true"; + iflabel = "prestart"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "realstart"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 2; + pushstring = "0"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 3; + pushstring = "{size 0}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = window; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = open; + changeprogress = true; + changetext = true; + progressuseoutput = false; + wintextuseoutput = false; + progress = "0"; + wintext = "Enumerate"; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "start"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = true; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 2; + pushstring = "expr {pop 2} + 1"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "isEmpty(0) == true"; + iflabel = "end"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = window; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = leave; + changeprogress = true; + changetext = false; + progressuseoutput = true; + wintextuseoutput = true; + progress = "expr {top 2} \\\\* 100 / {top 3}"; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "findnext"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "?{test -e \"{p}/{top 0}{top 5}{top 4}\"} != 0"; + iflabel = "rename"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = true; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 4; + pushstring = "expr {pop 4} + 1"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = goto; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "findnext"; + iftest = "true"; + iflabel = "findnext"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "rename"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + OwnOp { + separateeachentry = false; + recursive = false; + start = normal; + com = "mv {top 0} {pop 0}{top 5}{top 4}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ScriptOp { + type = push; + pushuseoutput = true; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 4; + pushstring = "expr {pop 4} + 1"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = goto; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "start"; + iftest = "true"; + iflabel = "start"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "end"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 244; + title = "Image->png"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = terminalwait; + com = "convert -quality 100 {uf} {fE}.png"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 245; + title = "Image->jpg"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = terminalwait; + com = "convert {uf} {fE}.jpg"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 248; + title = "CD->wav"; + color = 4,2; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = terminalwait; + com = "{scripts}/cd2wav.sh {Rs{Insert AudioCd tracks to be converted to wav format||The volume will be normalized||Example: \"1 3 6\" to rip-normalize-encode tracks 1,3,6}{}}"; + viewstr = ""; + inbackground = true; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 250; + title = "CD->flac"; + color = 4,2; + shortkeys { + } + commands { + OwnOp { + separateeachentry = false; + recursive = false; + start = terminalwait; + com = "{scripts}/cd2flac.sh {Rs{Insert AudioCd tracks to be converted to flac format||The volume will be normalized||Example: \"1 3 6\" to rip-normalize-encode tracks 1,3,6}{}}"; + viewstr = ""; + inbackground = true; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 252; + title = "Num New Name/Same Ext/fix decimal"; + color = 1,0; + shortkeys { + } + commands { + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 4; + pushstring = "{Rs{Begin of numbering:}{1}}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "\"{top 4}\" == \"\""; + iflabel = "end"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 9; + pushstring = "{Rs{decimal count:}{3}}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "\"{top 9}\" == \"\""; + iflabel = "end"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 5; + pushstring = "{Rs{Prefix:}{pre-}}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "collect"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "filelistEmpty(0) == true"; + iflabel = "prestart"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 1; + pushstring = "{f}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = goto; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "collect"; + iftest = "true"; + iflabel = "collect"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "prestart"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "isEmpty(1) == true"; + iflabel = "realstart"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + pushstring = "{pop 1}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = goto; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "prestart"; + iftest = "true"; + iflabel = "prestart"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "realstart"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 2; + pushstring = "0"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 3; + pushstring = "{size 0}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = window; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = open; + changeprogress = true; + changetext = true; + progressuseoutput = false; + wintextuseoutput = false; + progress = "0"; + wintext = "Enumerate"; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "start"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = true; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 2; + pushstring = "expr {pop 2} + 1"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "isEmpty(0) == true"; + iflabel = "end"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = window; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = leave; + changeprogress = true; + changetext = false; + progressuseoutput = true; + wintextuseoutput = true; + progress = "expr {top 2} \\\\* 100 / {top 3}"; + } + ScriptOp { + type = push; + pushuseoutput = true; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 6; + pushstring = "echo {top 0} | sed -n s/'.*\\\\.\\\\([^\\\\.]*$\\\\)'/'\\\\.\\\\1'/p"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "findnext"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 7; + pushstring = "{top 4}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 8; + pushstring = "1"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "countdecimal"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "\"{top 7}\" < 10"; + iflabel = "buildnum1"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = true; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 8; + pushstring = "expr {pop 8} + 1"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = true; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 7; + pushstring = "expr {pop 7} / 10"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = goto; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "countdecimal"; + iftest = "true"; + iflabel = "counddecimal"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "buildnum1"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 10; + pushstring = "{top 4}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "buildnum2"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "toNum( \"{top 8}\" ) >= \"{top 9}\""; + iflabel = "etest"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 10; + pushstring = "0{top 10}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = true; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 8; + pushstring = "expr {pop 8} + 1"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = goto; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "buildnum2"; + iftest = "true"; + iflabel = "buildnum2"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "etest"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "?{test -e \"{p}/{top 5}{top 10}{top 6}\"} != 0"; + iflabel = "rename"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = true; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 4; + pushstring = "expr {pop 4} + 1"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = goto; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "findnext"; + iftest = "true"; + iflabel = "findnext"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "rename"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + OwnOp { + separateeachentry = false; + recursive = false; + start = normal; + com = "mv {pop 0} {top 5}{top 10}{pop 6}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ScriptOp { + type = push; + pushuseoutput = true; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 4; + pushstring = "expr {pop 4} + 1"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = goto; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "start"; + iftest = "true"; + iflabel = "start"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "end"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 254; + title = "Num New Name/Same Extension"; + color = 1,0; + shortkeys { + } + commands { + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 4; + pushstring = "{Rs{Begin of numbering:}{1}}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "\"{top 4}\" == \"\""; + iflabel = "end"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 5; + pushstring = "{Rs{Prefix:}{pre-}}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "collect"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "filelistEmpty(0) == true"; + iflabel = "prestart"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 1; + pushstring = "{f}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = goto; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "collect"; + iftest = "true"; + iflabel = "collect"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "prestart"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "isEmpty(1) == true"; + iflabel = "realstart"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + pushstring = "{pop 1}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = goto; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "prestart"; + iftest = "true"; + iflabel = "prestart"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "realstart"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 2; + pushstring = "0"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 3; + pushstring = "{size 0}"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = window; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = open; + changeprogress = true; + changetext = true; + progressuseoutput = false; + wintextuseoutput = false; + progress = "0"; + wintext = "Enumerate"; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "start"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = true; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 2; + pushstring = "expr {pop 2} + 1"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "isEmpty(0) == true"; + iflabel = "end"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = window; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + wintype = leave; + changeprogress = true; + changetext = false; + progressuseoutput = true; + wintextuseoutput = true; + progress = "expr {top 2} \\\\* 100 / {top 3}"; + } + ScriptOp { + type = push; + pushuseoutput = true; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 6; + pushstring = "echo {top 0} | sed -n s/'.*\\\\.\\\\([^\\\\.]*$\\\\)'/'\\\\.\\\\1'/p"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "findnext"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = if; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + iftest = "?{test -e \"{p}/{top 5}{top 4}{top 6}\"} != 0"; + iflabel = "rename"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = push; + pushuseoutput = true; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 4; + pushstring = "expr {pop 4} + 1"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = goto; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "findnext"; + iftest = "true"; + iflabel = "findnext"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "rename"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + OwnOp { + separateeachentry = false; + recursive = false; + start = normal; + com = "mv {pop 0} {top 5}{top 4}{pop 6}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ScriptOp { + type = push; + pushuseoutput = true; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 4; + pushstring = "expr {pop 4} + 1"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = goto; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "start"; + iftest = "true"; + iflabel = "start"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ScriptOp { + type = label; + pushuseoutput = false; + dodebug = false; + wpurecursive = false; + wputakedirs = false; + stacknr = 0; + label = "end"; + wintype = leave; + changeprogress = false; + changetext = false; + progressuseoutput = false; + wintextuseoutput = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 258; + title = "convert image"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = terminalwait; + com = "convert {uf} {fE}.{Rs{Enter type as extension (without .):}{jpg}}"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = false; + } + } + } + button { + position = 262; + title = "8Bit-Wave -> 16Bit"; + color = 1,0; + shortkeys { + } + commands { + OwnOp { + separateeachentry = true; + recursive = false; + start = terminalwait; + com = "sox {uF} -sw {FE}2.wav"; + viewstr = ""; + inbackground = false; + takedirs = false; + dontcd = false; + } + ReloadOp { + mode = current; + resetdirsizes = false; + keepfiletypes = false; + } + } + } +} +filetypes { + filetype { + title = "Dir"; + pattern = ""; + usepattern = false; + usecontent = false; + content { + } + type = dir; + patternignorecase = false; + patternuseregexp = false; + patternusefullname = false; + extcond = ""; + useextcond = false; + ftcommands { + } + subtype { + } + colormode = default; + unselectcolor = 1,0; + selectcolor = 1,0; + unselectactivecolor = 1,0; + selectactivecolor = 1,0; + } + filetype { + title = "NoSelect type"; + pattern = ""; + usepattern = false; + usecontent = false; + content { + } + type = noselect; + patternignorecase = false; + patternuseregexp = false; + patternusefullname = false; + extcond = ""; + useextcond = false; + ftcommands { + } + subtype { + } + colormode = default; + unselectcolor = 1,0; + selectcolor = 1,0; + unselectactivecolor = 1,0; + selectactivecolor = 1,0; + } + filetype { + title = "Not yet checked"; + pattern = ""; + usepattern = false; + usecontent = false; + content { + } + type = notyetchecked; + patternignorecase = false; + patternuseregexp = false; + patternusefullname = false; + extcond = ""; + useextcond = false; + ftcommands { + } + subtype { + } + colormode = default; + unselectcolor = 1,0; + selectcolor = 1,0; + unselectactivecolor = 1,0; + selectactivecolor = 1,0; + } + filetype { + title = "Unknown file type"; + pattern = ""; + usepattern = false; + usecontent = false; + content { + } + type = unknown; + patternignorecase = false; + patternuseregexp = false; + patternusefullname = false; + extcond = ""; + useextcond = false; + ftcommands { + } + subtype { + } + colormode = default; + unselectcolor = 1,0; + selectcolor = 1,0; + unselectactivecolor = 1,0; + selectactivecolor = 1,0; + } + ignoredirs { + } + dontcheckvirtual = true; +} diff --git a/talimatname/genel/w/worker/talimat b/talimatname/genel/w/worker/talimat new file mode 100644 index 000000000..14eb168b6 --- /dev/null +++ b/talimatname/genel/w/worker/talimat @@ -0,0 +1,16 @@ +# Tanım: Hızlı,fonksiyonel X dosya yöneticisi +# URL: http://www.boomerangsworld.de/cms/worker/ +# Paketçi: milisarge@gmail.com +# Gerekler: xorg-libx11 xorg-libxft +isim=worker +surum=3.8.2 +devir=1 + +kaynak=(http://www.boomerangsworld.de/cms/$isim/downloads/$isim-$surum.tar.gz) +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--enable-xft +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/w/wpa-supplicant/talimat b/talimatname/genel/w/wpa-supplicant/talimat new file mode 100644 index 000000000..1c4ad5633 --- /dev/null +++ b/talimatname/genel/w/wpa-supplicant/talimat @@ -0,0 +1,54 @@ +# Tanım: WPA kablosuz ağlar için anahtar müzakeresi sağlayan bir yardımcı program +# URL: http://hostap.epitest.fi/wpa_supplicant +# Paketçi: milisarge +# Gerekler: libnl dbus libxml2 + +isim=wpa-supplicant +surum=2.5 +devir=1 + +kaynak=(http://hostap.epitest.fi/releases/wpa_supplicant-$surum.tar.gz) + +derle() { +cd wpa_supplicant-$surum +cat > wpa_supplicant/.config << "EOF" +CONFIG_BACKEND=file +CONFIG_CTRL_IFACE=y +CONFIG_DEBUG_FILE=y +CONFIG_DEBUG_SYSLOG=y +CONFIG_DEBUG_SYSLOG_FACILITY=LOG_DAEMON +CONFIG_DRIVER_NL80211=y +CONFIG_DRIVER_WEXT=y +CONFIG_DRIVER_WIRED=y +CONFIG_EAP_GTC=y +CONFIG_EAP_LEAP=y +CONFIG_EAP_MD5=y +CONFIG_EAP_MSCHAPV2=y +CONFIG_EAP_OTP=y +CONFIG_EAP_PEAP=y +CONFIG_EAP_TLS=y +CONFIG_EAP_TTLS=y +CONFIG_IEEE8021X_EAPOL=y +CONFIG_IPV6=y +CONFIG_LIBNL32=y +CONFIG_PEERKEY=y +CONFIG_PKCS12=y +CONFIG_READLINE=y +CONFIG_SMARTCARD=y +CONFIG_WPS=y +CFLAGS += -I/usr/include/libnl3 +CONFIG_CTRL_IFACE_DBUS=y +CONFIG_CTRL_IFACE_DBUS_NEW=y +CONFIG_CTRL_IFACE_DBUS_INTRO=y +EOF +cd wpa_supplicant && +make BINDIR=/sbin LIBDIR=/lib +mkdir -p $PKG/{etc/dbus-1/system.d,sbin,usr/share/{dbus-1/system-services,man/man{5,8}}} +install -v -m755 wpa_{cli,passphrase,supplicant} $PKG/sbin +install -v -m644 doc/docbook/wpa_supplicant.conf.5 $PKG/usr/share/man/man5 +install -v -m644 doc/docbook/wpa_{cli,passphrase,supplicant}.8 $PKG/usr/share/man/man8 +install -v -m644 dbus/fi.{epitest.hostap.WPASupplicant,w1.wpa_supplicant1}.service \ +$PKG/usr/share/dbus-1/system-services +install -v -m644 dbus/dbus-wpa_supplicant.conf \ +$PKG/etc/dbus-1/system.d/wpa_supplicant.conf +} diff --git a/talimatname/genel/w/wpa-supplicant/wpa-supplicant.okubeni b/talimatname/genel/w/wpa-supplicant/wpa-supplicant.okubeni new file mode 100644 index 000000000..0b8c04e8d --- /dev/null +++ b/talimatname/genel/w/wpa-supplicant/wpa-supplicant.okubeni @@ -0,0 +1,38 @@ +Assurez-vous des options du kernel: +[*] Networking support ---> + [*] Wireless ---> + [*] cfg80211 - wireless configuration API + [*] cfg80211 wireless extensions compatibility + [*] Generic IEEE 802.11 Networking Stack (mac80211) + +Device Drivers ---> + [*] Network device support ---> + [*] Wireless LAN ---> + +********************************** +Exemple de configuration manuelle: +********************************** +Dans cette exemple: + +la carte reseau wifi s'appelle: wlan0 +Le nom du reseau wifi (ESSID) s'appelle: reseau_maison +La passphrase est "ceci est un exemple de passphrase" + +1. On configure le fichier /etc/wpa_supplicant.conf avec la commande wpa_passphrase + +wpa_passphrase reseau_maison "ceci est un exemple de passphrase" + +2. On établie wifi avec la commande wpa_supplicant en spécifiant le mode démon (-B), +le fichier de configuration /etc/wpa_supplicant.conf (-c/etc/wpa_supplicant.conf), +la carte wlan0 (-iwlan0) + +wpa_supplicant -B -c/etc/wpa_supplicant.conf -iwlan0 + +3. eventuellement on attend 2 secondes + +sleep 2 + +4. on lance le service dhcpcd + +dhcpcd + diff --git a/talimatname/genel/w/wps-office/WEBDINGS.ttf b/talimatname/genel/w/wps-office/WEBDINGS.ttf new file mode 100644 index 000000000..b9b7441ae Binary files /dev/null and b/talimatname/genel/w/wps-office/WEBDINGS.ttf differ diff --git a/talimatname/genel/w/wps-office/WINGDNG2.ttf b/talimatname/genel/w/wps-office/WINGDNG2.ttf new file mode 100644 index 000000000..e36d7f631 Binary files /dev/null and b/talimatname/genel/w/wps-office/WINGDNG2.ttf differ diff --git a/talimatname/genel/w/wps-office/WINGDNG3.ttf b/talimatname/genel/w/wps-office/WINGDNG3.ttf new file mode 100644 index 000000000..a6f6b3252 Binary files /dev/null and b/talimatname/genel/w/wps-office/WINGDNG3.ttf differ diff --git a/talimatname/genel/w/wps-office/mtextra.ttf b/talimatname/genel/w/wps-office/mtextra.ttf new file mode 100644 index 000000000..5dfa24df5 Binary files /dev/null and b/talimatname/genel/w/wps-office/mtextra.ttf differ diff --git a/talimatname/genel/w/wps-office/symbol.ttf b/talimatname/genel/w/wps-office/symbol.ttf new file mode 100644 index 000000000..fd1c03374 Binary files /dev/null and b/talimatname/genel/w/wps-office/symbol.ttf differ diff --git a/talimatname/genel/w/wps-office/talimat b/talimatname/genel/w/wps-office/talimat new file mode 100644 index 000000000..7fe8ebe82 --- /dev/null +++ b/talimatname/genel/w/wps-office/talimat @@ -0,0 +1,48 @@ +# Tanım: WPS Office Türkçe +# URL: http://wps-community.org/ +# Paketçi: Cihan Alkan +# Gerekler: libpng12 xorg-fontconfig pango libxml2 xorg-libsm xorg-libxext xorg-libxrender xorg-glu + +isim=wps-office +surum=10.1.0.5707 +_surum=10.1.0.5707~a21 +devir=2 +kaynak=(https://sourceforge.net/projects/mebis/files/Programlar/wps-office-$surum-x86_64.tar.xz + WEBDINGS.ttf + WINGDNG2.ttf + WINGDNG3.ttf + symbol.ttf + mtextra.ttf + wingding.ttf) + +derle() { + #cd wps-office_${_version}_x86_64 + sed -i 's|/opt/kingsoft/wps-office|/usr/lib|' wps wpp et + sed -i 's|/office6/${gApp} ${gOptExt}|/office6/${gApp} -style gtk+ ${gOptExt}|' wps + sed -i 's|/office6/${gApp} ${gOptExt}|/office6/${gApp} -style gtk+ ${gOptExt}|' wpp et + + + install -d $PKG/usr/lib + cp -r office6 $PKG/usr/lib + + install -d $PKG/usr/bin + install -m755 wps wpp et $PKG/usr/bin + + install -d $PKG/usr/share/applications + cp -r resource/applications/* $PKG/usr/share/applications + + install -d $PKG/usr/share/icons + cp -r resource/icons/* $PKG/usr/share/icons + + install -d $PKG/usr/share/mime + cp -r resource/mime/* $PKG/usr/share/mime + + #cp -r $SRC/usr/share $PKG/usr/ + + install -d $PKG/usr/share/fonts/wps-office + cp -r fonts/* $PKG/usr/share/fonts/wps-office + cp -r $SRC/*.ttf $PKG/usr/share/fonts/wps-office + + + install -Dm644 office6/mui/default/EULA.txt $PKG/usr/share/licenses/$isim/EULA.txt +} diff --git a/talimatname/genel/w/wps-office/wingding.ttf b/talimatname/genel/w/wps-office/wingding.ttf new file mode 100644 index 000000000..e8c4b9506 Binary files /dev/null and b/talimatname/genel/w/wps-office/wingding.ttf differ diff --git a/talimatname/genel/w/wpscan/talimat b/talimatname/genel/w/wpscan/talimat new file mode 100644 index 000000000..1ec2a38ab --- /dev/null +++ b/talimatname/genel/w/wpscan/talimat @@ -0,0 +1,29 @@ +# Tanım: WordPress zafiyet tarayıcısı +# URL: http://wpscan.org +# Paketçi: yakar (aydin@komutan.org) +# Gerekler: ruby-bundler libxslt yaml curl + +isim=wpscan +surum=2.9.2 +devir=1 +kaynak=(https://github.com/wpscanteam/wpscan/archive/${surum}.tar.gz https://github.com/wpscanteam/wpscan/commit/f6644eebf95baea3356290ecd6364f0a4a456406.patch) + +derle() { + cd $SRC/${isim}-${surum} + bundle config build.nokogiri --use-system-libraries + echo 2.3.3 > .ruby-version + patch -p1 < ../f6644eebf95baea3356290ecd6364f0a4a456406.patch + + install -d "${PKG}/opt/${isim}" + cp -ra --no-preserve=owner . "${PKG}/opt/${isim}" + + install -d "${PKG}/usr/bin" + cat > "${PKG}/usr/bin/${isim}" << EOF +#!/bin/sh +BUNDLE_GEMFILE=/opt/${isim}/Gemfile bundle exec ruby /opt/${isim}/${isim}.rb "\$@" +EOF + chmod 755 "${PKG}/usr/bin/${isim}" + + install -Dm 644 LICENSE -t "${PKG}/usr/share/licenses/${isim}" + install -Dm 644 CHANGELOG.md DISCLAIMER.txt README.md -t "${PKG}/usr/share/doc/${isim}" +} diff --git a/talimatname/genel/w/wpscan/wpscan.kur-kos b/talimatname/genel/w/wpscan/wpscan.kur-kos new file mode 100644 index 000000000..22c573b36 --- /dev/null +++ b/talimatname/genel/w/wpscan/wpscan.kur-kos @@ -0,0 +1,6 @@ +#!/bin/sh + +cd /opt/wpscan +bundler install + +/usr/bin/wpscan --update >/dev/null 2>&1 diff --git a/talimatname/genel/w/wren/talimat b/talimatname/genel/w/wren/talimat new file mode 100644 index 000000000..13a955840 --- /dev/null +++ b/talimatname/genel/w/wren/talimat @@ -0,0 +1,31 @@ +# Tanım: Küçük,hızlı ve sınıf bazlı script dili +# URL: http://wren.io/ +# Paketçi: milisarge +# Gerekler: python +# Grup: geliştirme + +isim=wren +surum=0.1.0 +devir=1 +kaynak=() + +derle() { + + if [ ! -d $DERLEME_KAYNAKDIZIN/$isim ];then + git clone https://github.com/munificent/wren $DERLEME_KAYNAKDIZIN/$isim + else + cd $DERLEME_KAYNAKDIZIN/$isim + git pull + cd - + fi + cp -r $DERLEME_KAYNAKDIZIN/$isim $SRC/ + cd $SRC/$isim + make + install -d "$PKG/usr/bin" + install -d "$PKG/usr/lib" + install -d "$PKG/usr/include" + install -Dm755 "$SRC/$isim/bin/wren" "$PKG/usr/bin/wren" + install -Dm755 "$SRC/$isim/lib/libwren.a" "$PKG/usr/lib/libwren.a" + #install -Dm755 "$SRC/$isim/lib/libwren.so" "$PKG/usr/lib/libwren.so" + install -Dm755 "$SRC/$isim/src/include/wren.h" "$PKG/usr/include/wren.h" +} diff --git a/talimatname/genel/w/wv/talimat b/talimatname/genel/w/wv/talimat new file mode 100644 index 000000000..2e9705481 --- /dev/null +++ b/talimatname/genel/w/wv/talimat @@ -0,0 +1,16 @@ +# Tanım: MSWord kitaplığı, Word 2000, 97, 95 ve 6 dosya formatlarını yükleyebilir ve ayrıştırabilir +# URL: http://wvware.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: libgsf libpng + +isim=wv +surum=1.2.9 +devir=1 + +kaynak=(http://www.abiword.com/downloads/$isim/$surum/$isim-$surum.tar.gz) +derle() { +cd $isim-$surum +./configure --prefix=/usr --mandir=/usr/share/man +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/w/wxgtk/make-abicheck-non-fatal.patch b/talimatname/genel/w/wxgtk/make-abicheck-non-fatal.patch new file mode 100644 index 000000000..851afe5c0 --- /dev/null +++ b/talimatname/genel/w/wxgtk/make-abicheck-non-fatal.patch @@ -0,0 +1,14 @@ +diff -up wxGTK-2.8.12/src/common/appbase.cpp.abicheck wxGTK-2.8.12/src/common/appbase.cpp +--- wxGTK-2.8.12/src/common/appbase.cpp.abicheck 2015-03-12 17:15:18.000000000 +0100 ++++ wxGTK-2.8.12/src/common/appbase.cpp 2015-03-12 17:15:57.000000000 +0100 +@@ -424,10 +424,7 @@ bool wxAppConsole::CheckBuildOptions(con + msg.Printf(_T("Mismatch between the program and library build versions detected.\nThe library used %s,\nand %s used %s."), + lib.c_str(), progName.c_str(), prog.c_str()); + +- wxLogFatalError(msg.c_str()); +- +- // normally wxLogFatalError doesn't return +- return false; ++ wxLogWarning(msg.c_str()); + } + #undef wxCMP diff --git a/talimatname/genel/w/wxgtk/talimat b/talimatname/genel/w/wxgtk/talimat new file mode 100644 index 000000000..23dca07d8 --- /dev/null +++ b/talimatname/genel/w/wxgtk/talimat @@ -0,0 +1,43 @@ +# Tanım: GUI için GTK+ wxWidgets API'sının uygulanması +# URL: http://wxwidgets.org +# Paketçi: milisarge +# Gerekler: gtk2 gstreamer-plugins-base xorg-mesa xorg-libsm xorg-libxxf86vm sdl +# Grup: geliştirme + +isim=wxgtk +surum=3.0.3.1 +devir=1 + +kaynak=(https://github.com/wxWidgets/wxWidgets/archive/v$surum.tar.gz::wxWidgets-$surum.tar.bz2 + https://github.com/wxWidgets/wxWidgets/commit/ec6e54bc.patch::wxgtk-webkit2gtk.patch + https://github.com/wxWidgets/wxWidgets/commit/fd247cca.patch::wxgtk2-fix-webview.patch + https://github.com/wxWidgets/wxWidgets/commit/ce1dce11.patch::wxgtk-filezilla-assert.patch + make-abicheck-non-fatal.patch + wxgtk-webkit-infinite-loop.patch) + +derle() { + + cd wxWidgets-$surum + # C++ ABI check is too strict and breaks with GCC 5.1 + # https://bugzilla.redhat.com/show_bug.cgi?id=1200611 + patch -Np1 -i ../make-abicheck-non-fatal.patch + + # Support webkit2gtk + #sed -e 's|setup0.h|setup.h|g' -i ../wxgtk-webkit2gtk.patch + patch -p1 -i ../wxgtk-webkit2gtk.patch + # fix webview after webkit2gtk port + patch -p1 -i ../wxgtk2-fix-webview.patch + # fix assert in FileZilla + patch -p1 -i ../wxgtk-filezilla-assert.patch + # fix infinite loop in webkit + patch -p1 -i ../wxgtk-webkit-infinite-loop.patch + + ./autogen.sh + ./configure --prefix=/usr --libdir=/usr/lib --with-gtk=2 --with-gtk=3 --with-opengl --enable-unicode \ + --enable-graphics_ctx --enable-mediactrl --enable-webview --with-regex=builtin \ + --with-libpng=sys --with-libxpm=sys --with-libjpeg=sys --with-libtiff=sys \ + --disable-precomp-headers + make + make -C locale allmo + make DESTDIR="${PKG}" install +} diff --git a/talimatname/genel/w/wxgtk/wxgtk-webkit-infinite-loop.patch b/talimatname/genel/w/wxgtk/wxgtk-webkit-infinite-loop.patch new file mode 100644 index 000000000..67d97e663 --- /dev/null +++ b/talimatname/genel/w/wxgtk/wxgtk-webkit-infinite-loop.patch @@ -0,0 +1,36 @@ +From 572fe37898f8d4f8664849ec76483dd63ea13a13 Mon Sep 17 00:00:00 2001 +From: Paul Cornett +Date: Sat, 6 Jan 2018 11:07:11 -0800 +Subject: [PATCH] Avoid calling default "key-press-event" handler + +We have already done everything it does, and doing it again seems to +cause an infinite loop with WebKitGTK. See #17932 +--- + src/gtk/toplevel.cpp | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/src/gtk/toplevel.cpp b/src/gtk/toplevel.cpp +index f63fdd3e463..ae825d40396 100644 +--- a/src/gtk/toplevel.cpp ++++ b/src/gtk/toplevel.cpp +@@ -227,15 +227,15 @@ wxgtk_tlw_key_press_event(GtkWidget *widget, GdkEventKey *event) + // GTK+ gtk_window_key_press_event() handler. + + if ( gtk_window_propagate_key_event(window, event) ) +- return TRUE; ++ return true; + + if ( gtk_window_activate_key(window, event) ) +- return TRUE; ++ return true; + +- if (GTK_WIDGET_GET_CLASS(widget)->key_press_event(widget, event)) +- return TRUE; ++ GTK_WIDGET_GET_CLASS(widget)->key_press_event(widget, event); + +- return FALSE; ++ // Avoid calling the default handler, we have already done everything it does ++ return true; + } + } + diff --git a/talimatname/genel/w/wxgtk28/make-abicheck-non-fatal.patch b/talimatname/genel/w/wxgtk28/make-abicheck-non-fatal.patch new file mode 100644 index 000000000..851afe5c0 --- /dev/null +++ b/talimatname/genel/w/wxgtk28/make-abicheck-non-fatal.patch @@ -0,0 +1,14 @@ +diff -up wxGTK-2.8.12/src/common/appbase.cpp.abicheck wxGTK-2.8.12/src/common/appbase.cpp +--- wxGTK-2.8.12/src/common/appbase.cpp.abicheck 2015-03-12 17:15:18.000000000 +0100 ++++ wxGTK-2.8.12/src/common/appbase.cpp 2015-03-12 17:15:57.000000000 +0100 +@@ -424,10 +424,7 @@ bool wxAppConsole::CheckBuildOptions(con + msg.Printf(_T("Mismatch between the program and library build versions detected.\nThe library used %s,\nand %s used %s."), + lib.c_str(), progName.c_str(), prog.c_str()); + +- wxLogFatalError(msg.c_str()); +- +- // normally wxLogFatalError doesn't return +- return false; ++ wxLogWarning(msg.c_str()); + } + #undef wxCMP diff --git a/talimatname/genel/w/wxgtk28/talimat b/talimatname/genel/w/wxgtk28/talimat new file mode 100644 index 000000000..e1bff8060 --- /dev/null +++ b/talimatname/genel/w/wxgtk28/talimat @@ -0,0 +1,25 @@ +# Tanım: GUI için GTK+ wxWidgets API'sının uygulanması +# URL: http://wxwidgets.org +# Paketçi: milisarge +# Gerekler: gtk2 gstreamer-plugins-base xorg-mesa xorg-libsm xorg-libxxf86vm sdl + +isim=wxgtk28 +surum=2.8.12.1 +devir=1 + +kaynak=(http://downloads.sourceforge.net/wxpython/wxPython-src-${surum}.tar.bz2 + make-abicheck-non-fatal.patch wxGTK-collision.patch configure_in.diff) +derle() { +cd wx*-$surum + +patch -p1 -i ../wxGTK-collision.patch +patch -Np1 -i ../make-abicheck-non-fatal.patch +sed -i '/^SEARCH_INCLUDE="\\/s|\\|/usr/lib \\|' configure +./configure --prefix=/usr --libdir=/usr/lib --with-gtk=2 --with-opengl --enable-unicode \ +--enable-graphics_ctx --enable-mediactrl --enable-webview --with-regex=builtin \ +--with-libpng=sys --with-libxpm=sys --with-libjpeg=sys --with-libtiff=sys \ +--disable-precomp-headers +make +make -C locale allmo +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/w/wxgtk28/wxGTK-collision.patch b/talimatname/genel/w/wxgtk28/wxGTK-collision.patch new file mode 100644 index 000000000..36d8acf26 --- /dev/null +++ b/talimatname/genel/w/wxgtk28/wxGTK-collision.patch @@ -0,0 +1,81 @@ +diff -Naur wxPython-src-2.8.12.1.orig/build/bakefiles/wx.bkl wxPython-src-2.8.12.1/build/bakefiles/wx.bkl +--- wxPython-src-2.8.12.1.orig/build/bakefiles/wx.bkl 2014-01-04 22:28:16.491774907 -0500 ++++ wxPython-src-2.8.12.1/build/bakefiles/wx.bkl 2014-01-04 22:37:39.610020870 -0500 +@@ -128,7 +128,7 @@ + + + $(SRCDIR)/locale +- wxstd ++ wxstd$(WX_RELEASE_NODOT) + + ca cs da de el es fi fr hu id it ja nl pl ru sl sv tr uk + zh zh_CN zh_TW +diff -Naur wxPython-src-2.8.12.1.orig/Makefile.in wxPython-src-2.8.12.1/Makefile.in +--- wxPython-src-2.8.12.1.orig/Makefile.in 2014-01-04 22:28:16.545107766 -0500 ++++ wxPython-src-2.8.12.1/Makefile.in 2014-01-04 22:40:27.191813403 -0500 +@@ -11695,9 +11695,11 @@ + + install: $(__install_wxregex___depname) $(__install_wxzlib___depname) $(__install_wxpng___depname) $(__install_wxjpeg___depname) $(__install_wxtiff___depname) $(__install_wxodbc___depname) $(__install_wxexpat___depname) $(__install_monodll___depname) $(__install_monolib___depname) $(__install_basedll___depname) $(__install_baselib___depname) $(__install_netdll___depname) $(__install_netlib___depname) $(__install_coredll___depname) $(__install_corelib___depname) $(__install_advdll___depname) $(__install_advlib___depname) $(__install_mediadll___depname) $(__install_medialib___depname) $(__install_odbcdll___depname) $(__install_odbclib___depname) $(__install_dbgriddll___depname) $(__install_dbgridlib___depname) $(__install_htmldll___depname) $(__install_htmllib___depname) $(__install_qadll___depname) $(__install_qalib___depname) $(__install_xmldll___depname) $(__install_xmllib___depname) $(__install_xrcdll___depname) $(__install_xrclib___depname) $(__install_auidll___depname) $(__install_auilib___depname) $(__install_richtextdll___depname) $(__install_richtextlib___depname) $(__install_gldll___depname) $(__install_gllib___depname) $(__install_sound_sdl___depname) $(__install_wxrc___depname) install-wxconfig locale_install locale_msw_install $(__cocoa_res_install___depname) + $(INSTALL_DIR) $(DESTDIR)$(datadir)/aclocal +- (cd $(srcdir) ; $(INSTALL_DATA) wxwin.m4 $(DESTDIR)$(datadir)/aclocal) ++ (cd $(srcdir) ; $(INSTALL_DATA) wxwin.m4 $(DESTDIR)$(datadir)/aclocal/wxwin2.8.m4) + $(INSTALL_DIR) $(DESTDIR)$(datadir)/bakefile/presets +- (cd $(srcdir)/build/bakefiles/wxpresets/presets ; $(INSTALL_DATA) wx.bkl wx_unix.bkl wx_win32.bkl $(DESTDIR)$(datadir)/bakefile/presets) ++ (cd $(srcdir)/build/bakefiles/wxpresets/presets ; \ ++ for i in wx.bkl wx_unix.bkl wx_win32.bkl ; do \ ++ $(INSTALL_DATA) $$i $(DESTDIR)$(datadir)/bakefile/presets/wx$(WX_RELEASE_NODOT)$${i##wx} ; done) + $(INSTALL_DIR) $(DESTDIR)$(libdir)/wx/include/$(TOOLCHAIN_FULLNAME)/wx + for f in setup.h $(RCDEFS_H); do \ + if test ! -d $(DESTDIR)$(libdir)/wx/include/$(TOOLCHAIN_FULLNAME)/wx/`dirname $$f` ; then \ +@@ -12455,7 +12456,8 @@ + $(INSTALL_DIR) $(DESTDIR)$(bindir) + $(INSTALL_DIR) $(DESTDIR)$(libdir)/wx/config + $(INSTALL_PROGRAM) lib/wx/config/$(TOOLCHAIN_FULLNAME) $(DESTDIR)$(libdir)/wx/config +- (cd $(DESTDIR)$(bindir) && rm -f wx-config && $(LN_S) $(libdir)/wx/config/$(TOOLCHAIN_FULLNAME) wx-config) ++ (cd $(DESTDIR)$(bindir) && rm -f wx-config-$(WX_RELEASE) \ ++ && $(LN_S) ../lib/wx/config/$(TOOLCHAIN_FULLNAME) wx-config-$(WX_RELEASE)) + + locale_install: + $(INSTALL_DIR) $(DESTDIR)$(datadir)/locale +@@ -12463,7 +12465,8 @@ + $(INSTALL_DIR) $(DESTDIR)$(datadir)/locale/$$l ; \ + $(INSTALL_DIR) $(DESTDIR)$(datadir)/locale/$$l/LC_MESSAGES ; \ + if test -f $(srcdir)/locale/$$l.mo ; then \ +- $(INSTALL_DATA) $(srcdir)/locale/$$l.mo $(DESTDIR)$(datadir)/locale/$$l/LC_MESSAGES/wxstd.mo ; \ ++ $(INSTALL_DATA) $(srcdir)/locale/$$l.mo \ ++ $(DESTDIR)$(datadir)/locale/$$l/LC_MESSAGES/wxstd$(WX_RELEASE_NODOT).mo ; \ + fi ; \ + done + +@@ -12480,7 +12483,7 @@ + $(INSTALL_DIR) $(DESTDIR)$(datadir)/locale/$$l ; \ + $(INSTALL_DIR) $(DESTDIR)$(datadir)/locale/$$l/LC_MESSAGES ; \ + if test -f $(srcdir)/locale/msw/$$l.mo ; then \ +- $(INSTALL_DATA) $(srcdir)/locale/msw/$$l.mo $(DESTDIR)$(datadir)/locale/$$l/LC_MESSAGES/wxmsw.mo ; \ ++ $(INSTALL_DATA) $(srcdir)/locale/msw/$$l.mo $(DESTDIR)$(datadir)/locale/$$l/LC_MESSAGES/wxmsw$(WX_RELEASE_NODOT).mo ; \ + fi ; \ + done + +diff -Naur wxPython-src-2.8.12.1.orig/src/common/intl.cpp wxPython-src-2.8.12.1/src/common/intl.cpp +--- wxPython-src-2.8.12.1.orig/src/common/intl.cpp 2014-01-04 22:28:16.675106608 -0500 ++++ wxPython-src-2.8.12.1/src/common/intl.cpp 2014-01-04 22:47:49.523526232 -0500 +@@ -1597,7 +1597,7 @@ + bool bOk = true; + if ( bLoadDefault ) + { +- bOk = AddCatalog(wxT("wxstd")); ++ bOk = AddCatalog(wxT("wxstd" wxSTRINGIZE(wxMAJOR_VERSION) wxSTRINGIZE(wxMINOR_VERSION))); + + // there may be a catalog with toolkit specific overrides, it is not + // an error if this does not exist +diff -Naur wxPython-src-2.8.12.1.orig/utils/wxrc/Makefile.in wxPython-src-2.8.12.1/utils/wxrc/Makefile.in +--- wxPython-src-2.8.12.1.orig/utils/wxrc/Makefile.in 2014-01-04 22:28:16.335109635 -0500 ++++ wxPython-src-2.8.12.1/utils/wxrc/Makefile.in 2014-01-04 22:37:34.410068493 -0500 +@@ -120,7 +120,6 @@ + @COND_USE_XRC_1@ rm -f $(DESTDIR)$(bindir)/wxrc$(EXEEXT) $(DESTDIR)$(bindir)/wxrc-$(WX_RELEASE) + @COND_USE_XRC_1@ $(INSTALL_PROGRAM) wxrc$(EXEEXT) $(DESTDIR)$(bindir) + @COND_USE_XRC_1@ mv -f $(DESTDIR)$(bindir)/wxrc$(EXEEXT) $(DESTDIR)$(bindir)/wxrc-$(WX_RELEASE) +-@COND_USE_XRC_1@ (cd $(DESTDIR)$(bindir) && $(LN_S) wxrc-$(WX_RELEASE) wxrc$(EXEEXT)) + + @COND_USE_XRC_1@uninstall_wxrc: + @COND_USE_XRC_1@ rm -f $(DESTDIR)$(bindir)/wxrc$(EXEEXT) diff --git a/talimatname/genel/w/wxpython/talimat b/talimatname/genel/w/wxpython/talimat new file mode 100644 index 000000000..1ad139507 --- /dev/null +++ b/talimatname/genel/w/wxpython/talimat @@ -0,0 +1,38 @@ +# Tanım: Python için bir wxWidgets GUI araç seti +# URL: https://www.wxpython.org +# Paketçi: Cihan_Alkan +# Gerekler: wxgtk libnotify python xorg-mesa xorg-glu gtk3 +# Gruplar: kütüphane + +isim=wxpython +surum=3.0.2.0 +devir=2 + +kaynak=(https://downloads.sourceforge.net/wxpython/wxPython-src-${surum}.tar.bz2) + +derle() { + cd wxPython-src-${surum} + #patch -Np1 -i ../fix-plot.patch + CFLAGS="$CFLAGS `wx-config --cflags --libs`" \ + LDFLAGS="`wx-config --libs` $LDFLAGS" \ + ./configure \ + --prefix=/usr \ + --libdir=/usr/lib \ + --includedir=/usr/include \ + --with-gtk=3 \ + --with-opengl \ + --enable-unicode \ + --enable-graphics_ctx \ + --disable-precomp-headers \ + --with-regex=sys \ + --with-libpng=sys \ + --with-libxpm=sys \ + --with-libjpeg=sys \ + --with-libtiff=sys \ + --with-wx-config=/usr/bin/wx-config + cd wxPython + python2 setup.py WX_CONFIG=/usr/bin/wx-config WXPORT=gtk3 UNICODE=1 build + python2 setup.py WX_CONFIG=/usr/bin/wx-config WXPORT=gtk3 UNICODE=1 install --root="${PKG}" --optimize=1 + for file in "${PKG}"/usr/bin/*; do mv "${file}" "${file}2"; done + install -Dm644 ../docs/licence.txt "${PKG}"/usr/share/licenses/${isim}/LICENSE +} diff --git a/talimatname/genel/x/x11vnc/talimat b/talimatname/genel/x/x11vnc/talimat new file mode 100644 index 000000000..a9fb7cb41 --- /dev/null +++ b/talimatname/genel/x/x11vnc/talimat @@ -0,0 +1,20 @@ +# Tanım: Gerçek X ekranları için VNC sunucusu +# URL: http://www.karlrunge.com/x11vnc/ +# Paketçi: milisarge +# Gerekler: libjpeg-turbo xorg-libxdamage xorg-libxinerama xorg-libxrandr xorg-libxtst + +isim=x11vnc +surum=0.9.13 +devir=1 +kaynak=(http://prdownloads.sf.net/libvncserver/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + CONFIG_SHELL=/bin/bash \ + ./configure --prefix=/usr \ + --disable-nls \ + --mandir=$PKG/usr/man + make + make prefix=$PKG/usr install + rm -rf $PKG/usr/{include,share} +} diff --git a/talimatname/genel/x/x264/talimat b/talimatname/genel/x/x264/talimat new file mode 100644 index 000000000..fbc93af19 --- /dev/null +++ b/talimatname/genel/x/x264/talimat @@ -0,0 +1,21 @@ +# Tanım: H264/AVC video akışlarını kodlayan kütüphane +# URL: http://www.videolan.org/developers/x264.html +# Paketçi: milisarge +# Gerekler: yasm + +isim=x264 +surum=20150908.2245 +devir=1 + +kaynak=(http://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-${version/./-}-stable.tar.bz2) + +derle() { +cd x264-snapshot-${version/./-}-stable +./configure \ +--prefix=/usr \ +--enable-pic \ +--enable-shared + +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/x265/talimat b/talimatname/genel/x/x265/talimat new file mode 100644 index 000000000..e589e59a5 --- /dev/null +++ b/talimatname/genel/x/x265/talimat @@ -0,0 +1,22 @@ +# Tanım: Açık Kaynaklı H265/HEVC video kodlayıcı. +# URL: https://bitbucket.org/multicoreware/x265/wiki/Home +# Paketçi: milisarge +# Gerekler: yasm cmake + +isim=x265 +surum=1.8 +devir=1 +kaynak=(https://bitbucket.org/multicoreware/x265/get/$surum.tar.bz2 + http://www.linuxfromscratch.org/patches/downloads/x265/x265_1.8-enable_static-1.patch) + +derle() { + cd multicoreware-$isim-* + patch -Np1 -i ../x265_1.8-enable_static-1.patch + mkdir bld + cd bld + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DENABLE_STATIC=OFF \ + ../source + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xapian/talimat b/talimatname/genel/x/xapian/talimat new file mode 100644 index 000000000..cef562c2b --- /dev/null +++ b/talimatname/genel/x/xapian/talimat @@ -0,0 +1,18 @@ +# Tanım: Xapian, açık kaynak kodlu bir arama motoru kütüphanesi. +# URL: http://oligarchy.co.uk/xapian.html +# Paketçi: milisarge +# Gerekler: + +isim=xapian +surum=1.2.22 +devir=1 + +kaynak=( http://oligarchy.co.uk/xapian/$surum/xapian-core-$surum.tar.xz) +derle() { +cd $isim-core-$surum +./configure --prefix=/usr \ +--disable-static \ +--docdir=/usr/share/doc/xapian-core-$surum +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xapps/talimat b/talimatname/genel/x/xapps/talimat new file mode 100644 index 000000000..194e78fe4 --- /dev/null +++ b/talimatname/genel/x/xapps/talimat @@ -0,0 +1,22 @@ +# Tanımlar: X-Apps projesi için ortak kütüphane +# URL: https://github.com/linuxmint/xapps +# Paketçi: Cihan_Alkan +# Gerekler: libgnomekbd python gnome-common gobject-introspection gtk-doc gtk3 +# Grup: cinnamon + +isim=xapps +surum=1.2.1 +devir=1 +kaynak=(https://github.com/linuxmint/$isim/archive/$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd + mkdir -p "${SRC}"/$isim-$surum/build + cd "${SRC}"/${isim}-${surum}/build + + meson --prefix=/usr --libdir=/usr/lib --buildtype=plain .. + ninja + DESTDIR="${PKG}" ninja install + # rm useless scripts + rm -r "${PKG}"/usr/bin +} diff --git a/talimatname/genel/x/xarchiver/talimat b/talimatname/genel/x/xarchiver/talimat new file mode 100644 index 000000000..cb7793b6c --- /dev/null +++ b/talimatname/genel/x/xarchiver/talimat @@ -0,0 +1,22 @@ +# Tanım: Xarchiver, GTK + 2 araç seti ile inşa edilmiş hafif, masaüstü bağımsız bir arşiv yöneticisidir. +# URL: http://xarchiver.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: gtk2 intltool xorg-libxcursor xorg-libxdamage xorg-libxrandr xorg-libxinerama unzip p7zip lzop unrar + +isim=xarchiver +surum=0.5.4.11 +devir=1 + +kaynak=(https://github.com/ib/xarchiver/archive/$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib/xfce4 \ + --localstatedir=/var \ + --disable-static + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/x/xcb-proto/talimat b/talimatname/genel/x/xcb-proto/talimat new file mode 100644 index 000000000..a3c25eb13 --- /dev/null +++ b/talimatname/genel/x/xcb-proto/talimat @@ -0,0 +1,19 @@ +# Tanım: XCB X protokol açıklamaları +# URL: http://xcb.freedesktop.org +# Paketçi: milisarge +# Gerekler: python + +isim=xcb-proto +surum=1.12 +devir=1 + +kaynak=(http://xcb.freedesktop.org/dist/xcb-proto-$surum.tar.bz2) + +derle() { + cd xcb-proto-$surum + + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xcb-util-cursor/talimat b/talimatname/genel/x/xcb-util-cursor/talimat new file mode 100644 index 000000000..a17eeee49 --- /dev/null +++ b/talimatname/genel/x/xcb-util-cursor/talimat @@ -0,0 +1,17 @@ +# Tanım: XCB imleç kitaplığı +# URL: http://cgit.freedesktop.org/xcb/util-cursor: +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: libxcb xcb-util-renderutil xcb-util-image + +isim=xcb-util-cursor +surum=0.1.3 +devir=1 + +kaynak=(http://xcb.freedesktop.org/dist/xcb-util-cursor-$surum.tar.bz2) + +derle() { +cd $isim-* +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xcb-util-image/talimat b/talimatname/genel/x/xcb-util-image/talimat new file mode 100644 index 000000000..7d6fa8fc4 --- /dev/null +++ b/talimatname/genel/x/xcb-util-image/talimat @@ -0,0 +1,19 @@ +# Tanım: XCB yardımcı programları kitaplığı +# URL: http://xcb.freedesktop.org +# Paketçi: milisarge +# Gerekler: libxcb xcb-util xorg-util-macros + +isim=xcb-util-image +surum=0.4.0 +devir=1 + +kaynak=(http://xcb.freedesktop.org/dist/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xcb-util-keysyms/talimat b/talimatname/genel/x/xcb-util-keysyms/talimat new file mode 100644 index 000000000..e8ab80456 --- /dev/null +++ b/talimatname/genel/x/xcb-util-keysyms/talimat @@ -0,0 +1,18 @@ +# Tanım: Standart X anahtar sabitleri ve tuş kodlarına / anahtar kodlarına dönüşüm +# URL: http://xcb.freedesktop.org +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: libxcb xorg-util-macros + +isim=xcb-util-keysyms +surum=0.4.0 +devir=1 + +kaynak=(http://xcb.freedesktop.org/dist/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/x/xcb-util-renderutil/talimat b/talimatname/genel/x/xcb-util-renderutil/talimat new file mode 100644 index 000000000..aac619436 --- /dev/null +++ b/talimatname/genel/x/xcb-util-renderutil/talimat @@ -0,0 +1,19 @@ +# Tanım: XCB yardımcı programları kitaplığı +# URL: http://xcb.freedesktop.org +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: libxcb xorg-util-macros + +isim=xcb-util-renderutil +surum=0.3.9 +devir=1 + +kaynak=(http://xcb.freedesktop.org/dist/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xcb-util-wm/talimat b/talimatname/genel/x/xcb-util-wm/talimat new file mode 100644 index 000000000..56f6e1f57 --- /dev/null +++ b/talimatname/genel/x/xcb-util-wm/talimat @@ -0,0 +1,18 @@ +# Tanım: XCB yardımcı programları kitaplığı +# URL: http://xcb.freedesktop.org +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: libxcb xcb-util xorg-util-macros + +isim=xcb-util-wm +surum=0.4.1 +devir=1 + +kaynak=(http://xcb.freedesktop.org/dist/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/x/xcb-util-xrm/talimat b/talimatname/genel/x/xcb-util-xrm/talimat new file mode 100644 index 000000000..b27b6d593 --- /dev/null +++ b/talimatname/genel/x/xcb-util-xrm/talimat @@ -0,0 +1,17 @@ +# Tanım: X kaynak yönetimi için xcb yardımcı araç kütüphanesi +# URL: https://github.com/Airblader/xcb-util-xrm +# Paketçi: milisarge +# Gerekler: xorg-util-macros xorg-libx11 xcb-util + +isim=xcb-util-xrm +_isim=util-xrm +surum=1.2 +devir=1 +kaynak=(https://github.com/Airblader/xcb-util-xrm/releases/download/v${surum}/xcb-util-xrm-${surum}.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd "$isim-$surum" + ./configure --prefix=/usr + make + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/x/xcb-util/talimat b/talimatname/genel/x/xcb-util/talimat new file mode 100644 index 000000000..fdbe725e3 --- /dev/null +++ b/talimatname/genel/x/xcb-util/talimat @@ -0,0 +1,19 @@ +# Tanım: XCB yardımcı programları kitaplığı +# URL: http://xcb.freedesktop.org +# Paketçi: milisarge +# Gerekler: libxcb xorg-util-macros + +isim=xcb-util +surum=0.4.0 +devir=1 + +kaynak=(http://xcb.freedesktop.org/dist/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xcfa/talimat b/talimatname/genel/x/xcfa/talimat new file mode 100644 index 000000000..757e9502c --- /dev/null +++ b/talimatname/genel/x/xcfa/talimat @@ -0,0 +1,18 @@ +# Tanım: Ses dosyası dönüştür +# URL: http://www.xcfa.tuxfamily.org/ +# Paketçi: Cihan_Alkan +# Gerekler: taglib alsa-lib vte3 +# Grup: medya + +isim=xcfa +surum=5.0.2 +devir=1 +kaynak=(http://download.tuxfamily.org/xcfaudio/xcfa_download/src/${isim}-${surum}.tar.gz) + +derle() { + cd ${isim}-${surum} + ./configure --prefix=/usr + make + make check + make DESTDIR="${PKG}" install +} diff --git a/talimatname/genel/x/xchat/talimat b/talimatname/genel/x/xchat/talimat new file mode 100644 index 000000000..9e3731c73 --- /dev/null +++ b/talimatname/genel/x/xchat/talimat @@ -0,0 +1,19 @@ +# Tanım: Bir GTK+ tabanlı IRC istemcisi +# URL: http://www.xchat.org/ +# Paketçi: milisarge +# Gerekler: shared-mime-info gtk2 enchant dbus-glib + +isim=xchat +surum=2.8.8 +devir=2 + +kaynak=(http://www.xchat.org/files/source/${surum%.*}/$isim-$surum.tar.xz + http://www.linuxfromscratch.org/patches/blfs/svn/xchat-2.8.8-glib-2.31-1.patch) +derle() { +cd $isim-$surum +patch -Np1 -i ../xchat-2.8.8-glib-2.31-1.patch +LIBS+="-lgmodule-2.0" ./configure --prefix=/usr \ +--sysconfdir=/etc --enable-shm +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xclip/talimat b/talimatname/genel/x/xclip/talimat new file mode 100644 index 000000000..4a8ba09af --- /dev/null +++ b/talimatname/genel/x/xclip/talimat @@ -0,0 +1,18 @@ +# Tanım: X11 panosuna komut satırı arayüzü +# URL: https://github.com/astrand/xclip +# Paketçi: milisarge +# Gerekler: xorg-libxmu + +isim=xclip +surum=0.12 +devir=1 +kaynak=(http://downloads.sourceforge.net/$isim/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + + ./configure --prefix=/usr \ + --mandir=/usr/man + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xcompmgr/fix_broken_shadows.diff b/talimatname/genel/x/xcompmgr/fix_broken_shadows.diff new file mode 100644 index 000000000..39b8ac725 --- /dev/null +++ b/talimatname/genel/x/xcompmgr/fix_broken_shadows.diff @@ -0,0 +1,28 @@ +--- xcompmgr.c 2011-11-19 01:49:52.000000000 -0600 ++++ xcompmgr.c 2012-08-11 21:58:58.000000000 -0500 +@@ -1028,7 +1028,6 @@ + { + w->borderClip = XFixesCreateRegion (dpy, NULL, 0); + XFixesCopyRegion (dpy, w->borderClip, region); +- XFixesIntersectRegion(dpy, w->borderClip, w->borderClip, w->borderSize); + } + w->prev_trans = t; + t = w; +@@ -1080,6 +1079,8 @@ + if (w->mode == WINDOW_TRANS) + { + int x, y, wid, hei; ++ XFixesIntersectRegion(dpy, w->borderClip, w->borderClip, w->borderSize); ++ XFixesSetPictureClipRegion(dpy, rootBuffer, 0, 0, w->borderClip); + #if HAS_NAME_WINDOW_PIXMAP + x = w->a.x; + y = w->a.y; +@@ -1099,6 +1100,8 @@ + else if (w->mode == WINDOW_ARGB) + { + int x, y, wid, hei; ++ XFixesIntersectRegion(dpy, w->borderClip, w->borderClip, w->borderSize); ++ XFixesSetPictureClipRegion(dpy, rootBuffer, 0, 0, w->borderClip); + #if HAS_NAME_WINDOW_PIXMAP + x = w->a.x; + y = w->a.y; diff --git a/talimatname/genel/x/xcompmgr/talimat b/talimatname/genel/x/xcompmgr/talimat new file mode 100644 index 000000000..be0e91c69 --- /dev/null +++ b/talimatname/genel/x/xcompmgr/talimat @@ -0,0 +1,21 @@ +# Tanım: X.org için Bileşik Pencere efektleri yöneticisi +# URL: http://xorg.freedesktop.org/ +# Paketçi: milisarge +# Gerekler: xorg-libxcomposite xorg-libxdamage xorg-libxrender xorg-libxext + +isim=xcompmgr +surum=1.1.7 +devir=1 + +kaynak=(http://xorg.freedesktop.org/releases/individual/app/${isim}-${surum}.tar.bz2 fix_broken_shadows.diff) + +derle() { + cd ${isim}-${surum} + patch -Np0 -i ${SRC}/fix_broken_shadows.diff + ./configure --prefix=/usr + make + + make DESTDIR="${PKG}" install + install -m755 -d "${PKG}/usr/share/licenses/${isim}" + install -m644 COPYING "${PKG}/usr/share/licenses/${isim}/" +} diff --git a/talimatname/genel/x/xdg-user-dirs/talimat b/talimatname/genel/x/xdg-user-dirs/talimat new file mode 100644 index 000000000..6c4a06569 --- /dev/null +++ b/talimatname/genel/x/xdg-user-dirs/talimat @@ -0,0 +1,18 @@ +# Tanım: ~ / Masaüstü ve ~ / Müzik gibi kullanıcı dizinlerini yönetme +# Url: http://www.freedesktop.org/wiki/Software/xdg-user-dirs +# Paketçi: milisarge +# Gerekler: libxslt docbook-xsl + +isim=xdg-user-dirs +surum=0.15 +devir=2 +kaynak=(http://user-dirs.freedesktop.org/releases/$isim-$surum.tar.gz + xdg-user-dirs-src) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --sysconfdir=/etc + make + make DESTDIR=$PKG install + install -D ../$isim-src $PKG/etc/X11/xinit/xinitrc.d/xdg-user-dirs +} diff --git a/talimatname/genel/x/xdg-user-dirs/xdg-user-dirs-src b/talimatname/genel/x/xdg-user-dirs/xdg-user-dirs-src new file mode 100644 index 000000000..dbe8abb48 --- /dev/null +++ b/talimatname/genel/x/xdg-user-dirs/xdg-user-dirs-src @@ -0,0 +1,4 @@ +#!/bin/sh + +# Set up user directories like ~/Desktop and ~/Music +[ -x /usr/bin/xdg-user-dirs-update ] && /usr/bin/xdg-user-dirs-update diff --git a/talimatname/genel/x/xdg-user-dirs/xdg-user-dirs.kur-kos b/talimatname/genel/x/xdg-user-dirs/xdg-user-dirs.kur-kos new file mode 100644 index 000000000..70c9e319e --- /dev/null +++ b/talimatname/genel/x/xdg-user-dirs/xdg-user-dirs.kur-kos @@ -0,0 +1 @@ +xdg-user-dirs-update diff --git a/talimatname/genel/x/xdg-utils/talimat b/talimatname/genel/x/xdg-utils/talimat new file mode 100644 index 000000000..5efa80ea4 --- /dev/null +++ b/talimatname/genel/x/xdg-utils/talimat @@ -0,0 +1,18 @@ +# Tanım: Çeşitli masaüstü entegrasyon görevleriyle uygulamalara yardımcı olan komut satırı araçları. +# URL: http://portland.freedesktop.org/wiki/ +# Paketçi: milisarge +# Gerekler: links xmlto xorg-app + +isim=xdg-utils +surum=1.1.0.rc3 +devir=2 +_surum=1.1.0-rc3 +kaynak=(http://people.freedesktop.org/~rdieter/$isim/$isim-${_version}.tar.gz) + +derle() { +cd $isim-${_version} +./configure --prefix=/usr \ +--mandir=/usr/share/man +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xdialog/talimat b/talimatname/genel/x/xdialog/talimat new file mode 100644 index 000000000..db4ebcf0b --- /dev/null +++ b/talimatname/genel/x/xdialog/talimat @@ -0,0 +1,19 @@ +# Tanım: dialog ve cdialog un geliştirilmiş sürümü +# URL: http://xdialog.dyns.net/ +# Paketçi: milisarge +# Gerekler: gtk2 + +isim=xdialog +surum=2.3.1 +devir=1 +kaynak=(http://xdialog.free.fr/Xdialog-$surum.tar.bz2) + +derle() { + cd Xdialog-$surum + ./configure --prefix=/usr \ + --disable-gtktest \ + --with-gtk2 + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share +} diff --git a/talimatname/genel/x/xdotool/talimat b/talimatname/genel/x/xdotool/talimat new file mode 100644 index 000000000..4abfd934c --- /dev/null +++ b/talimatname/genel/x/xdotool/talimat @@ -0,0 +1,23 @@ +# Tanım: fare ve klavye tuş sinyalleri göndermeye yarayan konsol uygulaması +# URL: http://www.semicomplete.com/projects/xdotool +# Paketçi: milisarge +# Gerekler: xorg-libxtst xorg-libxinerama libxkbcommon + +isim=xdotool +surum=3.2 +devir=1 +kaynak=(https://github.com/jordansissel/xdotool/archive/v3.20160805.1.tar.gz::$isim-$surum.tar.gz) + + +derle() { + cd ${isim}-3.20160805.1 + + # Build + make PREFIX=/usr DESTDIR=${PKG} + make PREFIX=/usr DESTDIR=${PKG} \ + pre-install \ + installlib \ + installprog \ + installman \ + installheader +} diff --git a/talimatname/genel/x/xed/talimat b/talimatname/genel/x/xed/talimat new file mode 100644 index 000000000..c99918e57 --- /dev/null +++ b/talimatname/genel/x/xed/talimat @@ -0,0 +1,19 @@ +# Tanım: Küçük ve hafif metin düzenleyici +# URL: https://github.com/linuxmint/xed +# Paketçi: Cihan Alkan +# Gerekler: gspell libpeas xapps gtksourceview3 gobject-introspection desktop-file-utils xorg-libsm enchant2 gnome-common yelp-tools iso-codes + +isim=xed +surum=1.8.1 +devir=1 +kaynak=(https://github.com/linuxmint/$isim/archive/$surum.tar.gz) + +derle() { + cd $isim-$surum + sed -i 's/, enchant/, enchant-2/' configure.ac + ./autogen.sh --with-gtk=3.0 --prefix="/usr" \ + --localstatedir="/var" \ + --libexecdir="/usr/lib/xed" + make CFLAGS='-w -O2' + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xed/xed.kur-kos b/talimatname/genel/x/xed/xed.kur-kos new file mode 100644 index 000000000..088752e4d --- /dev/null +++ b/talimatname/genel/x/xed/xed.kur-kos @@ -0,0 +1 @@ +/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas diff --git a/talimatname/genel/x/xf86-video-openchrome/talimat b/talimatname/genel/x/xf86-video-openchrome/talimat new file mode 100644 index 000000000..f74d6a442 --- /dev/null +++ b/talimatname/genel/x/xf86-video-openchrome/talimat @@ -0,0 +1,25 @@ +# Tanım: X.Org Openchrome sürücüsü +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg xorg-libdrm xorg-libxvmc + +isim=xf86-video-openchrome +surum=0.6.164 +devir=1 + +kaynak=() + +derle() { + if [ ! -d $DERLEME_KAYNAKDIZIN/$isim ];then + git clone https://anongit.freedesktop.org/git/openchrome/xf86-video-openchrome.git $DERLEME_KAYNAKDIZIN/$isim + else + cd $DERLEME_KAYNAKDIZIN/$isim + git pull + cd - + fi + cp -r $DERLEME_KAYNAKDIZIN/$isim $SRC/ + cd $SRC/$isim + ./autogen.sh --prefix=/usr --enable-debug --enable-xv-debug + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xfce-theme-blackbird/talimat b/talimatname/genel/x/xfce-theme-blackbird/talimat new file mode 100644 index 000000000..54df2f2a4 --- /dev/null +++ b/talimatname/genel/x/xfce-theme-blackbird/talimat @@ -0,0 +1,16 @@ +# Tanım: Siyah Xfce teması, +# URL: http://shimmerproject.org/projects/blackbird/ +# Paketçi: Cihan_Alkan +# Gerekler: gtk-engine-murrine +# Grup: xfce4 + +isim=xfce-theme-blackbird +surum=0.4 +devir=1 +kaynak=(https://github.com/shimmerproject/Blackbird/archive/v$surum.tar.gz::Blackbird-$surum.tar.gz) + +derle() { + install -d "$PKG"/usr/share/themes/ + cp -rf Blackbird-$surum/ "$PKG"/usr/share/themes/Blackbird/ + rm "$PKG"/usr/share/themes/Blackbird/.gitignore +} diff --git a/talimatname/genel/x/xfce-theme-bluebird/talimat b/talimatname/genel/x/xfce-theme-bluebird/talimat new file mode 100644 index 000000000..2ac08706b --- /dev/null +++ b/talimatname/genel/x/xfce-theme-bluebird/talimat @@ -0,0 +1,16 @@ +# Tanım: Açık mavi Xfce teması, +# URL: http://shimmerproject.org/projects/bluebird/ +# Paketçi: Cihan_Alkan +# Gerekler: gtk-engine-murrine +# Grup: xfce4 + +isim=xfce-theme-bluebird +surum=1.2 +devir=1 +kaynak=(https://github.com/shimmerproject/Bluebird/archive/v$surum.tar.gz::Bluebird-$surum.tar.gz) + +derle() { + install -d "$PKG"/usr/share/themes/ + cp -rf Bluebird-$surum/ "$PKG"/usr/share/themes/Bluebird/ + rm "$PKG"/usr/share/themes/Bluebird/.gitignore +} diff --git a/talimatname/genel/x/xfce-theme-graybird/talimat b/talimatname/genel/x/xfce-theme-graybird/talimat new file mode 100644 index 000000000..823c66703 --- /dev/null +++ b/talimatname/genel/x/xfce-theme-graybird/talimat @@ -0,0 +1,16 @@ +# Tanım: Gri Xfce teması, +# URL: http://shimmerproject.org/projects/graybird/ +# Paketçi: Cihan_Alkan +# Gerekler: gtk-engine-murrine +# Grup: xfce4 + +isim=xfce-theme-graybird +surum=3.22.5 +devir=1 +kaynak=(https://github.com/shimmerproject/Greybird/archive/v$surum.tar.gz::Greybird-$surum.tar.gz) + +derle() { + install -d "$PKG"/usr/share/themes/ + cp -rf Greybird-$surum/ "$PKG"/usr/share/themes/Greybird/ + rm "$PKG"/usr/share/themes/Greybird/.gitignore +} diff --git a/talimatname/genel/x/xfce4-appfinder/appfinder-preferences-ui.h b/talimatname/genel/x/xfce4-appfinder/appfinder-preferences-ui.h new file mode 100644 index 000000000..2d4bfdccf --- /dev/null +++ b/talimatname/genel/x/xfce4-appfinder/appfinder-preferences-ui.h @@ -0,0 +1,334 @@ +/* automatically generated from appfinder-preferences.glade */ +#ifdef __SUNPRO_C +#pragma align 4 (appfinder_preferences_ui) +#endif +#ifdef __GNUC__ +static const char appfinder_preferences_ui[] __attribute__ ((__aligned__ (4))) = +#else +static const char appfinder_preferences_ui[] = +#endif +{ + "PrefixRegular ExpressionVery Small" + "SmallerSmallNormalLargeLarger<" + "/row>Very LargeTrueFalsegtk-clearFalseApplication Finder385425gtk-prefere" + "ncesdialogTrueFals" + "e2TrueFalseendgtk-closeFals" + "eTrueTrueTrueTrueFalseFalse0gtk-helpFalseTrueTrueFalseTrueFalseFalse0TrueFalseTrueend0TrueTrue6Tr" + "ueFalse66<" + "child>TrueFalse0none" + "TrueFals" + "e12TrueFalse66Remember last _selected categoryFalseTrueTrueFalseTrueTrueTrueTrue0Always c_ent" + "er the windowFalse<" + "/property>TrueTrueFalseCenter the w" + "indow on startup.TrueTrueTrueTrue<" + "/property>1Keep running _instance in the backgro" + "undFalse" + "True" + "TrueFalseInstead of quitting th" + "e application when the last window is closed, keep a running instance t" + "o speed up opening new windows. You might want to disable this to reduc" + "e memory usage.TrueTrueTrueTrue<" + "/property>True2<" + "child type=\"label\">TrueFalseBehaviour<" + "/object>FalseTrue0TrueFalse0noneTrue<" + "property isim=\"can_focus\">False12TrueFalse" + "642126<" + "/property>_View items as iconsFalseTrueTrueFalseTrueTrue2" + "Text besi_de " + "iconsFalseTrueTrueFalseTrueTrue21TrueFalse0Ite_m icon size:Tru" + "eitem-icon-size23GTK_FIL" + "LTrueFalse0Categ_ory icon size:Truecategory-icon-size34GTK_FILLTrueFalse<" + "property isim=\"model\">icon-sizes01223TrueFalseicon-sizes01234TrueFalseAppearanceTrueTrueTrue1TrueFalse0noneTrueFalse600012<" + "object class=\"GtkButton\" id=\"button-clear\">C_lear Custom Command HistoryFalseTrueTrueTrueima" + "ge3True" + "TrueFalseHistoryFalseTrue2TrueFalse_GeneralTrueFalseTrueFalse66TrueFalse6TrueTrueauto" + "maticautomaticetched-inT" + "rueTrueactions-storeFalseTrueFalse0Pattern0TrueTrue0TrueFalse000TrueFals" + "e6FalseTrueTrueT" + "rueAdd " + "a new custom action.TrueFalsegtk-addTrueTrue0FalseTrueTr" + "ueTrueRemove the currently sele" + "cted action." + "True" + "Falsegtk-delete" + "TrueTrue1FalseTrue1TrueTrue<" + "/property>0TrueFalse42126TrueTrue<" + "/property>If the t" + "ype is set to prefix, %s will be replaced with the string after the pat" + "tern, %S with the complete entry text. For regular expressions you can " + "use \\0 and \\<num>." + "\342\200\242TrueFalseFalseTrueTrue1223TrueTrue\342\200\242TrueFalseFalseTrueTr" + "ue1212TrueFalse0Co_mmand:Tr" + "uecommand23GTK_FILL" + "True" + "False0Patte_rn:Truepattern12" + "GTK_FILLTrueFalse0_Type:TruetypeGTK_FILL" + "TrueFalse00TrueFalseaction-types01" + "2_Save match in command history<" + "property isim=\"use_action_appearance\">FalseTrueTrue" + "FalseTrueTrue12" + "34FalseTrue11Tr" + "ueFalseCustom _ActionsTrue1FalseTrueTrue1<" + "/property>button-closebutton-help" +}; + +static const unsigned appfinder_preferences_ui_length = 21594u; + diff --git a/talimatname/genel/x/xfce4-appfinder/talimat b/talimatname/genel/x/xfce4-appfinder/talimat new file mode 100644 index 000000000..71354c663 --- /dev/null +++ b/talimatname/genel/x/xfce4-appfinder/talimat @@ -0,0 +1,34 @@ +# Tanım: Xfce için bir uygulama bulucu +# URL: http://http://www.xfce.org/projects/xfce4-appfinder/ +# Paketçi: milisarge +# Gerekler: xfce4-libui xfce4-garcon xfce4-dev-tools +# Grup: xfce4 + +isim=xfce4-appfinder +source /root/talimatname/genel/x/xfce4/surumler +surum="${xfce4_appfinder_surum}";[ -z ${xfce4_appfinder_surum} ] && \ +surum=4.12.0 +devir=3 + +kaynak=(http://archive.xfce.org/src/xfce/$isim/${surum%.*}/$isim-$surum.tar.bz2 + appfinder-preferences-ui.h) + +derle() { + cd $isim-master + cp $SRC/appfinder-preferences-ui.h src/ + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-static \ + --disable-gtk-doc-html \ + --disable-debug + make + make DESTDIR=$PKG install + + for i in /usr/bin/xfrun4 + do rm $PKG/$i + done + rm -rf $PKG/usr/share/man +} diff --git a/talimatname/genel/x/xfce4-appfinder/xfce4-appfinder.kur-kos b/talimatname/genel/x/xfce4-appfinder/xfce4-appfinder.kur-kos new file mode 100644 index 000000000..b12d3f529 --- /dev/null +++ b/talimatname/genel/x/xfce4-appfinder/xfce4-appfinder.kur-kos @@ -0,0 +1 @@ +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor \ No newline at end of file diff --git a/talimatname/genel/x/xfce4-artwork/talimat b/talimatname/genel/x/xfce4-artwork/talimat new file mode 100644 index 000000000..1e19ef4c9 --- /dev/null +++ b/talimatname/genel/x/xfce4-artwork/talimat @@ -0,0 +1,19 @@ +# Tanım: Xfce4 masaüstü için arka plan resimleri +# URL: http://goodies.xfce.org/projects/artwork/xfce4-artwork +# Paketçi: yasarciv67@gmail.com +# Gerekler: + +isim=xfce4-artwork +surum=0.1.1 +_debian_surum=0.1.1a~git+20110420 +devir=1 +kaynak=(http://ftp.debian.org/debian/pool/main/x/$isim/${isim}_$_debian_version.orig.tar.gz) + +derle() { + cd "$SRC/$isim-0.1.1a" + + ./configure --prefix=/usr + make + make backdropsdir="$PKG/usr/share/backgrounds/xfce" install +} + diff --git a/talimatname/genel/x/xfce4-battery-plugin/talimat b/talimatname/genel/x/xfce4-battery-plugin/talimat new file mode 100644 index 000000000..acc9be353 --- /dev/null +++ b/talimatname/genel/x/xfce4-battery-plugin/talimat @@ -0,0 +1,27 @@ +# Tanım: Xfce paneli için pil durumunu görüntüleme eklentisi +# URL: http://goodies.xfce.org/projects/panel-plugins/xfce4-battery-plugin +# Paketçi: milisarge +# Gerekler: xfce4-panel +# Grup: xfce4 + +isim=xfce4-battery-plugin +source /root/talimatname/genel/x/xfce4/surumler +surum="${xfce4_battery_plugin_surum}";[ -z ${xfce4_battery_plugin_surum} ] && \ +surum=1.0.5 +devir=2 + +kaynak=(http://archive.xfce.org/src/panel-plugins/$isim/${surum%.*}/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-static \ + --disable-debug + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/man +} diff --git a/talimatname/genel/x/xfce4-battery-plugin/xfce4-battery-plugin.kur-kos b/talimatname/genel/x/xfce4-battery-plugin/xfce4-battery-plugin.kur-kos new file mode 100644 index 000000000..0fd2e1c87 --- /dev/null +++ b/talimatname/genel/x/xfce4-battery-plugin/xfce4-battery-plugin.kur-kos @@ -0,0 +1 @@ +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor diff --git a/talimatname/genel/x/xfce4-burn/talimat b/talimatname/genel/x/xfce4-burn/talimat new file mode 100644 index 000000000..d44b07f38 --- /dev/null +++ b/talimatname/genel/x/xfce4-burn/talimat @@ -0,0 +1,19 @@ +# Tanım: Bilgisayarınızdaki dosyalardan CD veya DVD'leri veya başka yerlerden indirilen ISO görüntülerini yakın. +# URL: http://www.xfce.org/projects/xfburn/ +# Paketçi: milisarge +# Gerekler: gstreamer-plugins-base exo libisoburn xorg-pixman startup-notification gstreamer-plugins-good + +_isim=xfburn +isim=xfce4-burn +surum=0.5.4 +devir=3 + +kaynak=(http://archive.xfce.org/src/apps/xfburn/${surum%.*}/xfburn-$surum.tar.bz2) + +derle() { +cd ${_name}-$surum +./configure --prefix=/usr \ +--enable-gstreamer +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xfce4-burn/xfce4-burn.kur-kos b/talimatname/genel/x/xfce4-burn/xfce4-burn.kur-kos new file mode 100644 index 000000000..35d3191c5 --- /dev/null +++ b/talimatname/genel/x/xfce4-burn/xfce4-burn.kur-kos @@ -0,0 +1,2 @@ +update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor \ No newline at end of file diff --git a/talimatname/genel/x/xfce4-calculator-plugin/talimat b/talimatname/genel/x/xfce4-calculator-plugin/talimat new file mode 100644 index 000000000..1e5f4d533 --- /dev/null +++ b/talimatname/genel/x/xfce4-calculator-plugin/talimat @@ -0,0 +1,23 @@ +# Tanım: Xfce4 paneli için bir hesap makinesi eklentisidir. +# URL: http://goodies.xfce.org/projects/panel-plugins/xfce4-calculator-plugin +# Paketçi: Cihan_Alkan +# Gerekler: xfce4-panel +# Grup: xfce4 + +isim=xfce4-calculator-plugin +surum=0.6.0 +devir=1 +kaynak=(http://archive.xfce.org/src/panel-plugins/$isim/0.6/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-static \ + --disable-debug +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xfce4-clipman-plugin/talimat b/talimatname/genel/x/xfce4-clipman-plugin/talimat new file mode 100644 index 000000000..cec9eec70 --- /dev/null +++ b/talimatname/genel/x/xfce4-clipman-plugin/talimat @@ -0,0 +1,26 @@ +# Tanım: Xfce4 paneli için bir pano eklentisi +# URL: http://goodies.xfce.org/projects/panel-plugins/xfce4-clipman-plugin +# Paketçi: milisarge +# Gerekler: xfce4-panel libunique1 xorg-libxtst qrencode +# Grup: xfce4 + +isim=xfce4-clipman-plugin +source /root/talimatname/genel/x/xfce4/surumler +surum="${xfce4_clipman_plugin_surum}";[ -z ${xfce4_clipman_plugin_surum} ] && \ +surum=1.4.2 +devir=1 + +kaynak=(http://archive.xfce.org/src/panel-plugins/$isim/${surum%.*}/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-debug + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/man +} diff --git a/talimatname/genel/x/xfce4-clipman-plugin/xfce4-clipman-plugin.kur-kos b/talimatname/genel/x/xfce4-clipman-plugin/xfce4-clipman-plugin.kur-kos new file mode 100644 index 000000000..0fd2e1c87 --- /dev/null +++ b/talimatname/genel/x/xfce4-clipman-plugin/xfce4-clipman-plugin.kur-kos @@ -0,0 +1 @@ +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor diff --git a/talimatname/genel/x/xfce4-conf/talimat b/talimatname/genel/x/xfce4-conf/talimat new file mode 100644 index 000000000..cb99803c4 --- /dev/null +++ b/talimatname/genel/x/xfce4-conf/talimat @@ -0,0 +1,30 @@ +# Tanım: Xfconf, Xfce için yapılandırma depolama sistemidir. +# URL: http://wiki.xfce.org/releng/4.6/general-info +# Paketçi: milisarge +# Gerekler: xfce4-libutil dbus-glib perl-glib +# Grup: xfce4 + +_isim=xfconf +isim=xfce4-conf +source /root/talimatname/genel/x/xfce4/surumler +surum="${xfce4_conf_surum}";[ -z ${xfce4_conf_surum} ] && \ +surum=4.12.0 +devir=1 + +kaynak=(http://archive.xfce.org/src/xfce/${_isim}/${surum%.*}/$_isim-$surum.tar.bz2) + +derle() { + cd ${_isim}-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib/xfce4 \ + --localstatedir=/var \ + --disable-static \ + --disable-debug + make + make DESTDIR=$PKG install + rm -r $PKG/usr/share/gtk-doc + rm -r $PKG/usr/share/man + find $PKG -name perllocal.pod -exec rm {} \; +} diff --git a/talimatname/genel/x/xfce4-cpufreq-plugin/talimat b/talimatname/genel/x/xfce4-cpufreq-plugin/talimat new file mode 100644 index 000000000..c7bedbe58 --- /dev/null +++ b/talimatname/genel/x/xfce4-cpufreq-plugin/talimat @@ -0,0 +1,24 @@ +# Tanım: Xfce4 paneli için CPU frekansı eklentisi +# URL: http://goodies.xfce.org/projects/panel-plugins/xfce4-cpufreq-plugin +# Paketçi: milisarge +# Gerekler: xfce4-panel + +isim=xfce4-cpufreq-plugin +surum=1.1.2 +devir=1 + +kaynak=(http://archive.xfce.org/src/panel-plugins/$isim/${surum%.*}/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-static \ + --disable-debug + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/x/xfce4-cpufreq-plugin/xfce4-cpufreq-plugin.kur-kos b/talimatname/genel/x/xfce4-cpufreq-plugin/xfce4-cpufreq-plugin.kur-kos new file mode 100644 index 000000000..0fd2e1c87 --- /dev/null +++ b/talimatname/genel/x/xfce4-cpufreq-plugin/xfce4-cpufreq-plugin.kur-kos @@ -0,0 +1 @@ +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor diff --git a/talimatname/genel/x/xfce4-cpugraph-plugin/talimat b/talimatname/genel/x/xfce4-cpugraph-plugin/talimat new file mode 100644 index 000000000..e444c9325 --- /dev/null +++ b/talimatname/genel/x/xfce4-cpugraph-plugin/talimat @@ -0,0 +1,24 @@ +# Tanım: Bu panel eklentisi, sistemin geçerli CPU yükünü göstermek için birden fazla ekran modu (LED, gradyan, yangın vb.) sunar. +# URL: http://goodies.xfce.org/projects/panel-plugins/xfce4-cpugraph-plugin +# Paketçi: milisarge +# Gerekler: xfce4-panel + +isim=xfce4-cpugraph-plugin +surum=1.0.5 +devir=2 + +kaynak=(http://archive.xfce.org/src/panel-plugins/$isim/1.0/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-static \ + --disable-debug + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/x/xfce4-cpugraph-plugin/xfce4-cpugraph-plugin.kur-kos b/talimatname/genel/x/xfce4-cpugraph-plugin/xfce4-cpugraph-plugin.kur-kos new file mode 100644 index 000000000..0fd2e1c87 --- /dev/null +++ b/talimatname/genel/x/xfce4-cpugraph-plugin/xfce4-cpugraph-plugin.kur-kos @@ -0,0 +1 @@ +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor diff --git a/talimatname/genel/x/xfce4-datetime-plugin/talimat b/talimatname/genel/x/xfce4-datetime-plugin/talimat new file mode 100644 index 000000000..a0273ae42 --- /dev/null +++ b/talimatname/genel/x/xfce4-datetime-plugin/talimat @@ -0,0 +1,27 @@ +# Tanım: Xfce paneli için tarih ve saat görüntüleme eklentisi +# URL: http://goodies.xfce.org/projects/panel-plugins/xfce4-datetime-plugin +# Paketçi: milisarge +# Gerekler: xfce4-panel +# Grup: xfce4 + +isim=xfce4-datetime-plugin +source /root/talimatname/genel/x/xfce4/surumler +surum="${xfce4_datetime_plugin_surum}";[ -z ${xfce4_datetime_plugin_surum} ] && \ +surum=0.6.2 +devir=2 + +kaynak=(http://archive.xfce.org/src/panel-plugins/$isim/${surum%.*}/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-static \ + --disable-debug + make + make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/x/xfce4-desktop/talimat b/talimatname/genel/x/xfce4-desktop/talimat new file mode 100644 index 000000000..c8c43f743 --- /dev/null +++ b/talimatname/genel/x/xfce4-desktop/talimat @@ -0,0 +1,36 @@ +# Tanım: Xfdesktop masa yoneticisi xfce4 için. +# URL: http://www.xfce.org +# Paketçi: milisarge +# Gerekler: exo libwnck xfce4-libui thunar xfce4-garcon +# Grup: xfce4 + +_isim=xfdesktop +isim=xfce4-desktop +source /root/talimatname/genel/x/xfce4/surumler +surum="${xfce4_desktop_surum}";[ -z ${xfce4_desktop_surum} ] && \ +surum=4.12.3 +devir=1 + +kaynak=(http://archive.xfce.org/src/xfce/${_isim}/${surum%.*}/${_isim}-$surum.tar.bz2) + +derle() { + cd ${_isim}-$surum + #duvar kagidi yuklemek icin + #sed -i "s/xfce-blue.jpg/milis.jpg/" common/xfdesktop-common.h + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-static \ + --enable-gio-unix \ + --enable-thunarx \ + --enable-notifications \ + --disable-debug + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/man + #duvar kagidi yuklemek icin + #install -D -m644 ../milis.jpg \ + #$PKG/usr/share/backgrounds/xfce/milis.jpg +} diff --git a/talimatname/genel/x/xfce4-desktop/xfce4-desktop.kur-kos b/talimatname/genel/x/xfce4-desktop/xfce4-desktop.kur-kos new file mode 100644 index 000000000..0fd2e1c87 --- /dev/null +++ b/talimatname/genel/x/xfce4-desktop/xfce4-desktop.kur-kos @@ -0,0 +1 @@ +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor diff --git a/talimatname/genel/x/xfce4-dev-tools/talimat b/talimatname/genel/x/xfce4-dev-tools/talimat new file mode 100644 index 000000000..7dfb5885c --- /dev/null +++ b/talimatname/genel/x/xfce4-dev-tools/talimat @@ -0,0 +1,16 @@ +# Tanım: xfce4 geliştirme araçları +# URL: http://thunar.xfce.org +# Paketçi: milisarge +# Gerekler: + +isim=xfce4-dev-tools +surum=4.12.0 +devir=1 +kaynak=(http://archive.xfce.org/xfce/4.12/src/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xfce4-diskperf-plugin/talimat b/talimatname/genel/x/xfce4-diskperf-plugin/talimat new file mode 100644 index 000000000..7985eeaae --- /dev/null +++ b/talimatname/genel/x/xfce4-diskperf-plugin/talimat @@ -0,0 +1,23 @@ +# Tanım: Bu eklenti anlık disk / bölüm performansını görüntüler (saniyede bayt aktarılır). +# URL: http://goodies.xfce.org/projects/panel-plugins/xfce4-diskperf-plugin +# Paketçi: milisarge +# Gerekler: xfce4-panel + +isim=xfce4-diskperf-plugin +surum=2.5.5 +devir=2 + +kaynak=(http://archive.xfce.org/src/panel-plugins/$isim/2.5/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-static \ + --disable-debug + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xfce4-elementary-icon-theme/talimat b/talimatname/genel/x/xfce4-elementary-icon-theme/talimat new file mode 100644 index 000000000..7c38ab7af --- /dev/null +++ b/talimatname/genel/x/xfce4-elementary-icon-theme/talimat @@ -0,0 +1,18 @@ +# Tanım: Elementary simge teması +# URL: https://github.com/shimmerproject/elementary-xfce +# Paketçi: milisarge +# Gerekler: +# Grup: xfce4 + +isim=xfce4-elementary-icon-theme +source /root/talimatname/genel/x/xfce4/surumler +surum="${xfce4_elementary_icon_theme_surum}";[ -z ${xfce4_elementary_icon_theme_surum} ] && \ +surum=0.8 +devir=1 + +kaynak=(https://github.com/shimmerproject/elementary-xfce/archive/v$surum.tar.gz) + +derle() { + install -d -m 0755 $PKG//usr/share/icons + mv elementary-xfce-$surum/elementary-xfce{,-dark,-darker} $PKG//usr/share/icons +} diff --git a/talimatname/genel/x/xfce4-elementary-icon-theme/xfce4-elementary-icon-theme.kur-kos b/talimatname/genel/x/xfce4-elementary-icon-theme/xfce4-elementary-icon-theme.kur-kos new file mode 100644 index 000000000..3f8a7efcb --- /dev/null +++ b/talimatname/genel/x/xfce4-elementary-icon-theme/xfce4-elementary-icon-theme.kur-kos @@ -0,0 +1,6 @@ +gtk-update-icon-cache /usr/share/icons/elementary-xfce +[ -d ~/.icons ] && gtk-update-icon-cache ~/.icons/elementary-xfce-dark +gtk-update-icon-cache /usr/share/icons/elementary-xfce-dark +[ -d ~/.icons ] && gtk-update-icon-cache ~/.icons/elementary-xfce-dark +gtk-update-icon-cache /usr/share/icons/elementary-xfce-darker +[ -d ~/.icons ] && gtk-update-icon-cache ~/.icons/elementary-xfce-dark diff --git a/talimatname/genel/x/xfce4-fsguard-plugin/talimat b/talimatname/genel/x/xfce4-fsguard-plugin/talimat new file mode 100644 index 000000000..e3dd7332d --- /dev/null +++ b/talimatname/genel/x/xfce4-fsguard-plugin/talimat @@ -0,0 +1,22 @@ +# Tanım: Bu eklenti, boş disk alanı için seçilen bağlantı noktasını denetler. +# URL: http://goodies.xfce.org/projects/panel-plugins/xfce4-fsguard-plugin +# Paketçi: milisarge +# Gerekler: xfce4-panel + +isim=xfce4-fsguard-plugin +surum=1.0.2 +devir=2 + +kaynak=(http://archive.xfce.org/src/panel-plugins/$isim/1.0/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-static \ + --disable-debug + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xfce4-fsguard-plugin/xfce4-fsguard-plugin.kur-kos b/talimatname/genel/x/xfce4-fsguard-plugin/xfce4-fsguard-plugin.kur-kos new file mode 100644 index 000000000..0fd2e1c87 --- /dev/null +++ b/talimatname/genel/x/xfce4-fsguard-plugin/xfce4-fsguard-plugin.kur-kos @@ -0,0 +1 @@ +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor diff --git a/talimatname/genel/x/xfce4-garcon/talimat b/talimatname/genel/x/xfce4-garcon/talimat new file mode 100644 index 000000000..eecda8e95 --- /dev/null +++ b/talimatname/genel/x/xfce4-garcon/talimat @@ -0,0 +1,27 @@ +# Tanım: Garcon, GLib ve GIO'ya dayalı bir freedesktop.org uyumlu menü uygulamasıdır. +# URL: http://wiki.xfce.org/releng/4.6/general-info +# Paketçi: milisarge +# Gerekler: gtk3 xfce4-libui xfce4-libutil +# Grup: xfce4 + +_isim=garcon +isim=xfce4-garcon +source /root/talimatname/genel/x/xfce4/surumler +surum="${xfce4_garcon_surum}";[ -z ${xfce4_garcon_surum} ] && \ +surum=0.5.0 +devir=2 + +kaynak=(http://archive.xfce.org/src/xfce/${_isim}/${surum%.*}/$_isim-$surum.tar.bz2) + +derle() { + cd ${_isim}-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-static \ + --disable-debug + make + make DESTDIR=$PKG install + rm -r $PKG/usr/share/gtk-doc +} diff --git a/talimatname/genel/x/xfce4-gtk-engine/talimat b/talimatname/genel/x/xfce4-gtk-engine/talimat new file mode 100644 index 000000000..526361fa2 --- /dev/null +++ b/talimatname/genel/x/xfce4-gtk-engine/talimat @@ -0,0 +1,22 @@ +# Tanım: GTK Xfce Engine paketi, onları görüntülemek için gereken birkaç GTK+ 2 ve GTK+ 3 temasını ve kütüphanelerini içerir. +# URL: http://www.xfce.org +# Paketçi: milisarge +# Gerekler: gtk2 gtk3 +# Grup: xfce4 + +_isim=gtk-xfce-engine +isim=xfce4-gtk-engine +source /root/talimatname/genel/x/xfce4/surumler +surum="${xfce4_gtk_engine_surum}";[ -z ${xfce4_gtk_engine_surum} ] && \ +surum=3.2.0 +devir=2 + +kaynak=(http://archive.xfce.org/src/xfce/${_name}/${surum%.*}-$surum.tar.bz2) + +derle() { +cd ${_name}-$surum + ./configure --prefix=/usr \ + --enable-gtk3 + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xfce4-hardware-monitor-plugin/talimat b/talimatname/genel/x/xfce4-hardware-monitor-plugin/talimat new file mode 100644 index 000000000..bbae1cf3b --- /dev/null +++ b/talimatname/genel/x/xfce4-hardware-monitor-plugin/talimat @@ -0,0 +1,22 @@ +# Tanım: CPU kullanımı, ağ bant genişliği vb. Izlemenizi sağlayan Xfce4 paneli için eklenti +# URL: http://git.xfce.org/panel-plugins/xfce4-hardware-monitor-plugin/ +# Paketçi: yasarciv67@gmail.com +# Gerekler: autoconf-archive intltool xfce4-dev-tools lm-sensors gtkmm libglademm libgnomecanvasmm libgtop xfce4-libui xfce4-panel + +isim=xfce4-hardware-monitor-plugin +surum=1.5.0 +devir=1. +kaynak=(https://git.xfce.org/panel-plugins/xfce4-hardware-monitor-plugin/snapshot/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + sed -i '/c++11/d' configure.ac + sed -i '/gnu++11/d' configure.ac + sed -i 's/AM_PROG_AR/AM_PROG_AR\nAX_CHECK_COMPILE_FLAG([-std=c++11], [CXXFLAGS="$CXXFLAGS -std=c++11"])/' configure.ac + sed -i 's/AM_PROG_AR/AM_PROG_AR\nAX_CHECK_COMPILE_FLAG([-std=gnu++11], [CXXFLAGS="$CXXFLAGS -std=gnu++11"])/' configure.ac + ./autogen.sh + ./configure --prefix=/usr + make + make DESTDIR=$PKG install + +} \ No newline at end of file diff --git a/talimatname/genel/x/xfce4-indicator-plugin/talimat b/talimatname/genel/x/xfce4-indicator-plugin/talimat new file mode 100644 index 000000000..1e0feac33 --- /dev/null +++ b/talimatname/genel/x/xfce4-indicator-plugin/talimat @@ -0,0 +1,19 @@ +# Tanım: Xfce4 panelindeki uygulamalardan bilgi görüntülemek için eklenti +# URL: http://goodies.xfce.org/projects/panel-plugins/xfce4-indicator-plugin +# Paketçi: yasarciv67@gmail.com +# Gerekler: intltool xfce4-dev-tools hicolor-icon-theme ido libindicator libindicator-gtk2 libindicator xfce4-panel xdg-utils + +isim=xfce4-indicator-plugin +surum=2.3.3 +devir=1 +kaynak=(http://archive.xfce.org/src/panel-plugins/$isim/${surum%.*}/$isim-$surum.tar.bz2 +) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib --disable-static + + make + make DESTDIR="$PKG/" install + +} \ No newline at end of file diff --git a/talimatname/genel/x/xfce4-libui/talimat b/talimatname/genel/x/xfce4-libui/talimat new file mode 100644 index 000000000..20351e525 --- /dev/null +++ b/talimatname/genel/x/xfce4-libui/talimat @@ -0,0 +1,32 @@ +# Tanım: Libxfce4ui paketi, diğer Xfce uygulamaları tarafından kullanılan GTK+ 2 widget'larını içerir. +# URL: http://www.xfce.org/projects/libraries/ +# Paketçi: milisarge +# Gerekler: gtk2 gtk3 startup-notification xfce4-conf +# Grup: xfce4 + +_isim=libxfce4ui +isim=xfce4-libui +source /root/talimatname/genel/x/xfce4/surumler +surum="${xfce4_libui_surum}";[ -z ${xfce4_libui_surum} ] && \ +surum=4.12.1 +devir=2 + +kaynak=(http://archive.xfce.org/src/xfce/${_isim}/${surum%.*}/$_isim-$surum.tar.bz2) + +derle() { + cd ${_isim}-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-static \ + --disable-debug + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/gtk-doc + + for i in usr/bin/xfce4-about usr/share/applications/xfce4-about.desktop usr/share/icons/hicolor/48x48/apps/xfce4-logo.png + do rm $PKG/$i + done +} diff --git a/talimatname/genel/x/xfce4-libui/xfce4-libui.kos-kur b/talimatname/genel/x/xfce4-libui/xfce4-libui.kos-kur new file mode 100644 index 000000000..957916f7e --- /dev/null +++ b/talimatname/genel/x/xfce4-libui/xfce4-libui.kos-kur @@ -0,0 +1 @@ +mkdir -p /etc/xdg/xfce4/xfconf diff --git a/talimatname/genel/x/xfce4-libui/xfce4-libui.kos-sil b/talimatname/genel/x/xfce4-libui/xfce4-libui.kos-sil new file mode 100644 index 000000000..6fd32ab78 --- /dev/null +++ b/talimatname/genel/x/xfce4-libui/xfce4-libui.kos-sil @@ -0,0 +1,11 @@ +#!/bin/sh +_paket=xfce4-libui +for _kurtar in \ +'/etc/xdg/xfce4' \ +'/etc/xdg/xfce4/xfconf'; \ +do + +# -sz ve -g den sonra /tmp/$paket.sil dikkate alınır +sed -i '\|'\'$_kurtar\''|d' /tmp/$_paket.sil + +done diff --git a/talimatname/genel/x/xfce4-libutil/talimat b/talimatname/genel/x/xfce4-libutil/talimat new file mode 100644 index 000000000..a5f385fad --- /dev/null +++ b/talimatname/genel/x/xfce4-libutil/talimat @@ -0,0 +1,28 @@ +# Tanım: Libxfce4util paketi Xfce masaüstü ortamı için temel bir yardımcı program kütüphanesi. +# URL: http://ww.xfce.org/projects/libraries/ +# Paketçi: milisarge +# Gerekler: glib intltool +# Grup: xfce4 + +_isim=libxfce4util +isim=xfce4-libutil +source /root/talimatname/genel/x/xfce4/surumler +surum="${xfce4_libutil_surum}";[ -z ${xfce4_libutil_surum} ] && \ +surum=4.12.1 +devir=1 + +kaynak=(http://archive.xfce.org/src/xfce/${_isim}/${surum%.*}/$_isim-$surum.tar.bz2) +derle() { + cd ${_isim}-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --sbindir=/usr/bin \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-static \ + --disable-debug + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/gtk-doc +} diff --git a/talimatname/genel/x/xfce4-libutil/xfce4-libutil.kos-sil b/talimatname/genel/x/xfce4-libutil/xfce4-libutil.kos-sil new file mode 100644 index 000000000..21fa698f4 --- /dev/null +++ b/talimatname/genel/x/xfce4-libutil/xfce4-libutil.kos-sil @@ -0,0 +1,12 @@ +#!/bin/sh +_paket=xfce4-libutil +for _kurtar in \ +'/usr/share/locale/ur_PK/LC_MESSAGES' \ +'/usr/share/gir-1.0' \ +'/usr/share/locale/ur_PK'; \ +do + +# -sz ve -g den sonra /tmp/$paket.sil dikkate alınır +sed -i '\|'\'$_kurtar\''|d' /tmp/$_paket.sil + +done diff --git a/talimatname/genel/x/xfce4-linelight-plugin/talimat b/talimatname/genel/x/xfce4-linelight-plugin/talimat new file mode 100644 index 000000000..4c12f8d84 --- /dev/null +++ b/talimatname/genel/x/xfce4-linelight-plugin/talimat @@ -0,0 +1,20 @@ +# Tanım: linelight, arama için basit bir ön uçtur. +# URL: http://goodies.xfce.org/projects/panel-plugins/xfce4-linelight-plugin +# Paketçi: Cihan_Alkan +# Gerekler: xfce4-panel libxfcegui4 +# Grup: xfce4 + +isim=xfce4-linelight-plugin +surum=0.1.7 +devir=1 +kaynak=(http://ftp.de.debian.org/debian/pool/main/x/${isim}/${isim}_${surum}.orig.tar.bz2 + http://lionel.lefolgoc.net/misc/01_port-to-xfcerc.patch) + +derle() { + patch -p0 -i 01_port-to-xfcerc.patch + cd $isim-$surum + ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/ \ + --localstatedir=/var --disable-static + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xfce4-mailwatch-plugin/talimat b/talimatname/genel/x/xfce4-mailwatch-plugin/talimat new file mode 100644 index 000000000..45e566812 --- /dev/null +++ b/talimatname/genel/x/xfce4-mailwatch-plugin/talimat @@ -0,0 +1,23 @@ +# Tanım: Periyodik olarak postaları kontrol etmek için konforlu, çok parçacıklı, çoklu posta kutusu, çok protokollü eklenti. +# URL: http://goodies.xfce.org/projects/panel-plugins/xfce4-mailwatch-plugin +# Paketçi: milisarge +# Gerekler: xfce4-panel gnutls libgcrypt intltool perl-xml-parser xfce4-libui + +isim=xfce4-mailwatch-plugin +surum=1.2.0 +devir=1 + +kaynak=(http://archive.xfce.org/src/panel-plugins/$isim/${surum%.*}/$isim-$surum.tar.bz2) + +derle() { + cd "$SRC/$isim-$surum" + + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-debug + make + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/x/xfce4-mixer/talimat b/talimatname/genel/x/xfce4-mixer/talimat new file mode 100644 index 000000000..1b9e99c28 --- /dev/null +++ b/talimatname/genel/x/xfce4-mixer/talimat @@ -0,0 +1,22 @@ +# Tanım: Xfce4 Mixer, GStreamer tabanlı Xfce masaüstü için bir ses denetimi uygulamasıdır. +# URL: http://www.xfce.org/projects/xfce4-mixer/ +# Paketçi: milisarge +# Gerekler: gstreamer-plugins-base libunique1 xfce4-libutil xfce4-panel + +isim=xfce4-mixer +surum=4.11.0 +devir=2 + +kaynak=(http://archive.xfce.org/src/apps/$isim/${surum%.*}/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-static + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xfce4-mixer/xfce4-mixer.kur-kos b/talimatname/genel/x/xfce4-mixer/xfce4-mixer.kur-kos new file mode 100644 index 000000000..0fd2e1c87 --- /dev/null +++ b/talimatname/genel/x/xfce4-mixer/xfce4-mixer.kur-kos @@ -0,0 +1 @@ +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor diff --git a/talimatname/genel/x/xfce4-netload-plugin/talimat b/talimatname/genel/x/xfce4-netload-plugin/talimat new file mode 100644 index 000000000..d19e5f63c --- /dev/null +++ b/talimatname/genel/x/xfce4-netload-plugin/talimat @@ -0,0 +1,22 @@ +# Tanım: Bu eklenti, panelde seçtiğiniz ağ arabirimlerinin güncel yükünü görüntüler. +# URL: http://goodies.xfce.org/projects/panel-plugins/xfce4-netload-plugin +# Paketçi: milisarge +# Gerekler: xfce4-panel + +isim=xfce4-netload-plugin +surum=1.2.4 +devir=2 + +kaynak=(http://archive.xfce.org/src/panel-plugins/$isim/1.2/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-debug + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xfce4-netload-plugin/xfce4-netload-plugin.kur-kos b/talimatname/genel/x/xfce4-netload-plugin/xfce4-netload-plugin.kur-kos new file mode 100644 index 000000000..23b174fbd --- /dev/null +++ b/talimatname/genel/x/xfce4-netload-plugin/xfce4-netload-plugin.kur-kos @@ -0,0 +1 @@ +gtk-update-icon-cache -q -t -f usr/share/icons/hicolor diff --git a/talimatname/genel/x/xfce4-notes-plugin/talimat b/talimatname/genel/x/xfce4-notes-plugin/talimat new file mode 100644 index 000000000..e620b6a7f --- /dev/null +++ b/talimatname/genel/x/xfce4-notes-plugin/talimat @@ -0,0 +1,22 @@ +# Tanım: Xfce4 panel için not eklentisi +# URL: http://goodies.xfce.org/projects/panel-plugins/xfce4-notes-plugin +# Paketçi: milisarge +# Gerekler: intltool xfce4-panel libunique1 hicolor-icon-theme + +isim=xfce4-notes-plugin +surum=1.8.1 +devir=1 +kaynak=(http://archive.xfce.org/src/panel-plugins/xfce4-notes-plugin/${surum%.*}/xfce4-notes-plugin-$surum.tar.bz2) + +derle() { + cd "$SRC/$isim-$surum" + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-static \ + --disable-debug + make + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/x/xfce4-notifyd/talimat b/talimatname/genel/x/xfce4-notifyd/talimat new file mode 100644 index 000000000..d46a2aa02 --- /dev/null +++ b/talimatname/genel/x/xfce4-notifyd/talimat @@ -0,0 +1,27 @@ +# Tanım: Freedesktop masaüstü bildirimleri belirtiminin "sunucu tarafı" kısmı. +# URL: http://git.xfce.org/kelnos/xfce4-notifyd/ +# Paketçi: milisarge +# Gerekler: xfce4-libui libnotify +# Grup: xfce4 + +isim=xfce4-notifyd +source /root/talimatname/genel/x/xfce4/surumler +surum="${xfce4_notifyd_surum}";[ -z ${xfce4_notifyd_surum} ] && \ +surum=0.3.6 +devir=4 + +kaynak=(http://archive.xfce.org/src/apps/$isim/${surum%.*}/$isim-$surum.tar.bz2) +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-static \ + --disable-debug + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/lib/systemd + rm -rf $PKG/usr/share/man +} diff --git a/talimatname/genel/x/xfce4-notifyd/xfce4-notifyd.kur-kos b/talimatname/genel/x/xfce4-notifyd/xfce4-notifyd.kur-kos new file mode 100644 index 000000000..0fd2e1c87 --- /dev/null +++ b/talimatname/genel/x/xfce4-notifyd/xfce4-notifyd.kur-kos @@ -0,0 +1 @@ +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor diff --git a/talimatname/genel/x/xfce4-panel/talimat b/talimatname/genel/x/xfce4-panel/talimat new file mode 100644 index 000000000..2c23cdbfb --- /dev/null +++ b/talimatname/genel/x/xfce4-panel/talimat @@ -0,0 +1,29 @@ +# Tanım: Bu paket Xfce4 Paneli'ni içerir. +# URL: http://www.xfce.org/projects/xfce4-panel/ +# Paketçi: milisarge +# Gerekler: exo xfce4-garcon libwnck xfce4-libui gtk3 hicolor-icon-theme desktop-file-utils vim +# Grup: xfce4 + +isim=xfce4-panel +source /root/talimatname/genel/x/xfce4/surumler +surum="${xfce4_panel_surum}";[ -z ${xfce4_panel_surum} ] && \ +surum=4.12.1 +devir=1 + +kaynak=(http://archive.xfce.org/src/xfce/$isim/${surum%.*}/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-static \ + --enable-gio-unix \ + --enable-gtk3 \ + --disable-debug + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/gtk-doc +} diff --git a/talimatname/genel/x/xfce4-panel/xfce4-panel.kos-sil b/talimatname/genel/x/xfce4-panel/xfce4-panel.kos-sil new file mode 100644 index 000000000..8598aec26 --- /dev/null +++ b/talimatname/genel/x/xfce4-panel/xfce4-panel.kos-sil @@ -0,0 +1,12 @@ +#!/bin/sh +_paket=xfce4-panel +for _kurtar in \ +'/etc/xdg/xfce4' \ +'/usr/lib/xfce4/panel' \ +'/usr/lib/xfce4/panel/plugins'; \ +do + +# -sz ve -g den sonra /tmp/$paket.sil dikkate alınır +sed -i '\|'\'$_kurtar\''|d' /tmp/$_paket.sil + +done diff --git a/talimatname/genel/x/xfce4-panel/xfce4-panel.kur-kos b/talimatname/genel/x/xfce4-panel/xfce4-panel.kur-kos new file mode 100644 index 000000000..614d576b9 --- /dev/null +++ b/talimatname/genel/x/xfce4-panel/xfce4-panel.kur-kos @@ -0,0 +1,2 @@ +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor +update-desktop-database -q \ No newline at end of file diff --git a/talimatname/genel/x/xfce4-places-plugin/mounts.patch b/talimatname/genel/x/xfce4-places-plugin/mounts.patch new file mode 100644 index 000000000..44e5e0368 --- /dev/null +++ b/talimatname/genel/x/xfce4-places-plugin/mounts.patch @@ -0,0 +1,12 @@ +diff -Nur original/panel-plugin/model_volumes.c modified/panel-plugin/model_volumes.c +--- original/panel-plugin/model_volumes.c 2013-12-28 11:30:18.000000000 +0000 ++++ modified/panel-plugin/model_volumes.c 2015-06-25 09:59:34.324437370 +0100 +@@ -380,7 +380,7 @@ + g_object_unref(mount); + } + +- return has_media && !is_shadowed; ++ return /*has_media &&*/ !is_shadowed; + } + + static inline gboolean diff --git a/talimatname/genel/x/xfce4-places-plugin/talimat b/talimatname/genel/x/xfce4-places-plugin/talimat new file mode 100644 index 000000000..c6944b69e --- /dev/null +++ b/talimatname/genel/x/xfce4-places-plugin/talimat @@ -0,0 +1,34 @@ +# Tanım: Xfce paneli için Yerler Menüsü eklentisi +# URL: http://goodies.xfce.org/projects/panel-plugins/xfce4-places-plugin +# Paketçi: yasarciv67@gmail.com +# Gerekler: intltool libnotify xfce4-panel + +isim=xfce4-places-plugin +surum=1.7.0 +devir=1 +kaynak=(http://archive.xfce.org/src/panel-plugins/$isim/${surum%.*}/$isim-$surum.tar.bz2 +mounts.patch +undefined-symbol.patch +) + +derle() { + cd "$isim-$surum" + # Disk olmayan diğer bağları göster (örn. NFS) + + patch -Np1 -i "${SRC}/mounts.patch" + + # Bug 11939 + + patch -Np1 -i "${SRC}/undefined-symbol.patch" + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-static \ + --disable-debug + + make + make DESTDIR="$PKG" install + +} \ No newline at end of file diff --git a/talimatname/genel/x/xfce4-places-plugin/undefined-symbol.patch b/talimatname/genel/x/xfce4-places-plugin/undefined-symbol.patch new file mode 100644 index 000000000..3fe7be23d --- /dev/null +++ b/talimatname/genel/x/xfce4-places-plugin/undefined-symbol.patch @@ -0,0 +1,65 @@ +From 94d583d0ba257cdc96cde5794ebb7d38001ae3a5 Mon Sep 17 00:00:00 2001 +From: Andrzej +Date: Tue, 7 Jul 2015 22:26:51 +0100 +Subject: Bug 11939: xfce4-places-plugin 1.7.0 crashes with undefined symbol + +Patch from Fedora. Submitted by Kevin Fenzi. + +diff --git a/panel-plugin/model.h b/panel-plugin/model.h +index 06d9d6f..043e391 100644 +--- a/panel-plugin/model.h ++++ b/panel-plugin/model.h +@@ -36,13 +36,13 @@ struct _PlacesBookmarkAction + void (*finalize) (PlacesBookmarkAction *self); + }; + +-inline PlacesBookmarkAction* ++extern inline PlacesBookmarkAction* + places_bookmark_action_create(gchar *label); + +-inline void ++extern inline void + places_bookmark_action_destroy(PlacesBookmarkAction*); + +-inline void ++extern inline void + places_bookmark_action_call(PlacesBookmarkAction*); + + /* Places Bookmark */ +@@ -70,10 +70,10 @@ struct _PlacesBookmark + void (*finalize) (PlacesBookmark *self); + }; + +-inline PlacesBookmark* ++extern inline PlacesBookmark* + places_bookmark_create(gchar *label); + +-inline void ++extern inline void + places_bookmark_destroy(PlacesBookmark *bookmark); + + /* Places Bookmark Group */ +@@ -86,16 +86,16 @@ struct _PlacesBookmarkGroup + gpointer priv; + }; + +-inline GList* ++extern inline GList* + places_bookmark_group_get_bookmarks(PlacesBookmarkGroup*); + +-inline gboolean ++extern inline gboolean + places_bookmark_group_changed(PlacesBookmarkGroup*); + +-inline PlacesBookmarkGroup* ++extern inline PlacesBookmarkGroup* + places_bookmark_group_create(); + +-inline void ++extern inline void + places_bookmark_group_destroy(PlacesBookmarkGroup*); + + #endif +-- +cgit v0.10.1 + diff --git a/talimatname/genel/x/xfce4-power-manager/talimat b/talimatname/genel/x/xfce4-power-manager/talimat new file mode 100644 index 000000000..c4d05b27d --- /dev/null +++ b/talimatname/genel/x/xfce4-power-manager/talimat @@ -0,0 +1,22 @@ +# Tanım: Xfce masaüstü için güç yöneticisi. +# URL: http://goodies.xfce.org/projects/applications/xfce4-power-manager +# Paketçi: milisarge +# Gerekler: dbus-glib xorg-app libnotify xfce4-panel upower udisks +# Grup: xfce4 + +isim=xfce4-power-manager +source /root/talimatname/genel/x/xfce4/surumler +surum="${xfce4_power_manager_surum}";[ -z ${xfce4_power_manager_surum} ] && \ +surum=1.4.4 +devir=2 + +kaynak=(http://archive.xfce.org/src/xfce/$isim/${surum%.*}/$isim-$surum.tar.bz2) +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/man +} diff --git a/talimatname/genel/x/xfce4-power-manager/xfce4-power-manager.kos-sil b/talimatname/genel/x/xfce4-power-manager/xfce4-power-manager.kos-sil new file mode 100644 index 000000000..334ace824 --- /dev/null +++ b/talimatname/genel/x/xfce4-power-manager/xfce4-power-manager.kos-sil @@ -0,0 +1,13 @@ +#!/bin/sh +_paket=xfce4-power-manager +for _kurtar in \ +'/usr/share/xfce4/panel/plugins' \ +'/usr/share/xfce4/panel' \ +'/usr/share/xfce4/panel' \ +'/usr/lib/xfce4/panel'; \ +do + +# -sz ve -g den sonra /tmp/$paket.sil dikkate alınır +sed -i '\|'\'$_kurtar\''|d' /tmp/$_paket.sil + +done diff --git a/talimatname/genel/x/xfce4-power-manager/xfce4-power-manager.kur-kos b/talimatname/genel/x/xfce4-power-manager/xfce4-power-manager.kur-kos new file mode 100644 index 000000000..b12d3f529 --- /dev/null +++ b/talimatname/genel/x/xfce4-power-manager/xfce4-power-manager.kur-kos @@ -0,0 +1 @@ +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor \ No newline at end of file diff --git a/talimatname/genel/x/xfce4-pulseaudio-plugin/talimat b/talimatname/genel/x/xfce4-pulseaudio-plugin/talimat new file mode 100644 index 000000000..49ce955b2 --- /dev/null +++ b/talimatname/genel/x/xfce4-pulseaudio-plugin/talimat @@ -0,0 +1,27 @@ +# Tanım: Xfce4 paneli için pulseaudio eklentisi +# URL: http://xfce.org/ +# Paketçi: milisarge +# Gerekler: xfce4-panel pulseaudio gtk-update-icon-cache libnotify intltool dbus-glib pavucontrol xfce4-dev-tools +# Grup: xfce4 + +isim=xfce4-pulseaudio-plugin +source /root/talimatname/genel/x/xfce4/surumler +surum="${xfce4_pulseaudio_plugin_surum}";[ -z ${xfce4_pulseaudio_plugin_surum} ] && \ +surum=0.3.3 +devir=1 +kaynak=(http://archive.xfce.org/src/panel-plugins/$isim/${surum%.*}/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --enable-keybinder \ + --enable-libnotify \ + --enable-maintainer-mode + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/man +} diff --git a/talimatname/genel/x/xfce4-screenshooter/talimat b/talimatname/genel/x/xfce4-screenshooter/talimat new file mode 100644 index 000000000..b1f0dadfb --- /dev/null +++ b/talimatname/genel/x/xfce4-screenshooter/talimat @@ -0,0 +1,28 @@ +# Tanım: Bu, çeşitli seçeneklerle ekran görüntüleri almak için bir eklentidir. +# URL: http://goodies.xfce.org/projects/panel-plugins/xfce4-screenshooter-plugin +# Paketçi: milisarge +# Gerekler: xfce4-panel libsoup p11-kit +# Grup: xfce4 + +isim=xfce4-screenshooter +source /root/talimatname/genel/x/xfce4/surumler +surum="${xfce4_screenshooter_surum}";[ -z ${xfce4_screenshooter_surum} ] && \ +surum=1.8.2 +devir=1 + +kaynak=(http://archive.xfce.org/src/apps/$isim/${surum%.*}/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-static \ + --disable-debug + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/man +} + diff --git a/talimatname/genel/x/xfce4-screenshooter/xfce4-screenshooter.kur-kos b/talimatname/genel/x/xfce4-screenshooter/xfce4-screenshooter.kur-kos new file mode 100644 index 000000000..0fd2e1c87 --- /dev/null +++ b/talimatname/genel/x/xfce4-screenshooter/xfce4-screenshooter.kur-kos @@ -0,0 +1 @@ +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor diff --git a/talimatname/genel/x/xfce4-sensors-plugin/talimat b/talimatname/genel/x/xfce4-sensors-plugin/talimat new file mode 100644 index 000000000..ad498c336 --- /dev/null +++ b/talimatname/genel/x/xfce4-sensors-plugin/talimat @@ -0,0 +1,25 @@ +# Tanım: Xfce paneli için bir lm_sensors eklentisi. +# URL: http://goodies.xfce.org/projects/panel-plugins/start +# Paketçi: milisarge +# Gerekler: xfce4-panel lm-sensors libnotify hicolor-icon-theme + +isim=xfce4-sensors-plugin +surum=1.2.6 +devir=1 + +kaynak=(http://archive.xfce.org/src/panel-plugins/$isim/1.2/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --datadir=/usr/share \ + --datarootdir=/usr/share \ + --disable-static + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xfce4-sensors-plugin/xfce4-sensors-plugin.kur-kos b/talimatname/genel/x/xfce4-sensors-plugin/xfce4-sensors-plugin.kur-kos new file mode 100644 index 000000000..0fd2e1c87 --- /dev/null +++ b/talimatname/genel/x/xfce4-sensors-plugin/xfce4-sensors-plugin.kur-kos @@ -0,0 +1 @@ +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor diff --git a/talimatname/genel/x/xfce4-session/0001-Pass-VT-number-to-xinit-if-XDG_VTNR-is-set.patch b/talimatname/genel/x/xfce4-session/0001-Pass-VT-number-to-xinit-if-XDG_VTNR-is-set.patch new file mode 100644 index 000000000..828015318 --- /dev/null +++ b/talimatname/genel/x/xfce4-session/0001-Pass-VT-number-to-xinit-if-XDG_VTNR-is-set.patch @@ -0,0 +1,27 @@ +From e740aad5d6761ce9a9df48a3d87ff29240433d19 Mon Sep 17 00:00:00 2001 +From: Evangelos Foutras +Date: Tue, 24 Mar 2015 10:09:33 +0200 +Subject: [PATCH] Pass VT number to xinit if XDG_VTNR is set + +--- + scripts/startxfce4.in | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/scripts/startxfce4.in b/scripts/startxfce4.in +index d0a74a9..bf3201b 100644 +--- a/scripts/startxfce4.in ++++ b/scripts/startxfce4.in +@@ -92,6 +92,10 @@ if test "x$DISPLAY" = "x" + then + echo "$0: Starting X server" + prog=xinit ++ ++ if test ! "x$XDG_VTNR" = "x"; then ++ SERVERRC="vt$XDG_VTNR $SERVERRC" ++ fi + else + echo "$0: X server already running on display $DISPLAY" + prog=/bin/sh +-- +2.3.4 + diff --git a/talimatname/genel/x/xfce4-session/talimat b/talimatname/genel/x/xfce4-session/talimat new file mode 100644 index 000000000..4c556085e --- /dev/null +++ b/talimatname/genel/x/xfce4-session/talimat @@ -0,0 +1,32 @@ +# Tanım: Xfce4-session, Xfce için bir oturum yöneticisi +# URL: http://www.xfce.org +# Paketçi: milisarge +# Gerekler: gnupg polkit consolekit2 udisks upower xorg-libxres libwnck xfce4-libui xorg-app xlockmore +# Grup: xfce4 + +isim=xfce4-session +source /root/talimatname/genel/x/xfce4/surumler +surum="${xfce4_session_surum}";[ -z ${xfce4_session_surum} ] && \ +surum=4.12.1 +devir=3 + +kaynak=(http://archive.xfce.org/src/xfce/$isim/${surum%.*}/$isim-$surum.tar.bz2 +0001-Pass-VT-number-to-xinit-if-XDG_VTNR-is-set.patch + xfce-polkit-gnome-authentication-agent-1.desktop) + +derle() { + cd $isim-$surum + patch -Np1 -i ../0001-Pass-VT-number-to-xinit-if-XDG_VTNR-is-set.patch + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-static \ + --disable-debug \ + --disable-legacy-sm + make + make DESTDIR=$PKG install + install -d $PKG/etc/xdg/autostart + cp $SRC/xfce-polkit-gnome-authentication-agent-1.desktop $PKG/etc/xdg/autostart/ +} diff --git a/talimatname/genel/x/xfce4-session/xfce-polkit-gnome-authentication-agent-1.desktop b/talimatname/genel/x/xfce4-session/xfce-polkit-gnome-authentication-agent-1.desktop new file mode 100644 index 000000000..028aad946 --- /dev/null +++ b/talimatname/genel/x/xfce4-session/xfce-polkit-gnome-authentication-agent-1.desktop @@ -0,0 +1,87 @@ +[Desktop Entry] +Name=PolicyKit Authentication Agent +Name[ar]=مدير الاستيثاق PolicyKit +Name[be]=PolicyKit - аґент аўтэнтыфікацыі +Name[bn_IN]=PolicyKit অনুমোদনের এজেন্ট +Name[ca]=Agent d'autenticació del PolicyKit +Name[cs]=Ověřovací agent PolicyKit +Name[da]=Godkendelsesprogrammet PolicyKit +Name[de]=Legitimationsdienst von PolicyKit +Name[el]=Πράκτορας πιστοποίησης PolicyKit +Name[en_GB]=PolicyKit Authentication Agent +Name[es]=Agente de autenticación de PolicyKit +Name[eu]=PolicyKit autentifikatzeko agentea +Name[fi]=PolicytKit-tunnistautumisohjelma +Name[fr]=Agent d'authentification de PolicyKit +Name[gl]=Axente de autenticación PolicyKit +Name[gu]=PolicyKit સત્તાધિકરણ એજન્ટ +Name[hi]=PolicyKit प्रमाणीकरण प्रतिनिधि +Name[hu]=PolicyKit hitelesítési ügynök +Name[it]=Agente di autenticazione per PolicyKit +Name[ja]=PolicyKit 認証エージェント +Name[kn]=PolicyKit ದೃಢೀಕರಣ ಮಧ್ಯವರ್ತಿ +Name[lt]=PolicyKit tapatybės nustatymo agentas +Name[ml]=പോളിസിക്കിറ്റ് ഓഥന്റിക്കേഷന്‍ ഏജന്റ് +Name[mr]=PolicyKit ऑथेंटीकेशन एजेंट +Name[or]=PolicyKit ବୈଧିକରଣ ସଦସ୍ୟ +Name[pa]=ਪਾਲਸੀਕਿੱਟ ਪਰਮਾਣਕਿਤਾ ਏਜੰਟ +Name[pl]=Agent uwierzytelniania PolicyKit +Name[pt]=Agente de Autenticação PolicyKit +Name[pt_BR]=Agente de autenticação PolicyKit +Name[ro]=Agent de autentificare PolicyKit +Name[sk]=Agent PolicyKit na overovanie totožnosti +Name[sl]=PolicyKit program overjanja +Name[sv]=Autentiseringsagent för PolicyKit +Name[ta]=PolicyKit அங்கீகார முகவர் +Name[te]=పాలసీకిట్ ధృవీకరణ ప్రతినిధి +Name[th]=ตัวกลางสำหรับยืนยันตัวบุคคล PolicyKit +Name[uk]=Агент автентифікації PolicyKit +Name[zh_CN]=PolicyKit 认证代理 +Name[zh_HK]=PolicyKit 驗證代理程式 +Name[zh_TW]=PolicyKit 驗證代理程式 +Comment=PolicyKit Authentication Agent +Comment[ar]=مدير الاستيثاق PolicyKit +Comment[be]=PolicyKit - аґент аўтэнтыфікацыі +Comment[bn_IN]=PolicyKit অনুমোদনের এজেন্ট +Comment[ca]=Agent d'autenticació del PolicyKit +Comment[cs]=Ověřovací agent PolicyKit +Comment[da]=Godkendelsesprogrammet PolicyKit +Comment[de]=Legitimationsdienst von PolicyKit +Comment[el]=Πράκτορας πιστοποίησης PolicyKit +Comment[en_GB]=PolicyKit Authentication Agent +Comment[es]=Agente de autenticación de PolicyKit +Comment[eu]=PolicyKit autentifikatzeko agentea +Comment[fi]=PolicytKit-tunnistautumisohjelma +Comment[fr]=Agent d'authentification de PolicyKit +Comment[gl]=Axente de autenticación PolicyKit +Comment[gu]=PolicyKit સત્તાધિકરણ એજન્ટ +Comment[hi]=PolicyKit प्रमाणीकरण प्रतिनिधि +Comment[hu]=PolicyKit hitelesítési ügynök +Comment[it]=Agente di autenticazione per PolicyKit +Comment[ja]=PolicyKit 認証エージェント +Comment[kn]=PolicyKit ದೃಢೀಕರಣ ಮಧ್ಯವರ್ತಿ +Comment[lt]=PolicyKit tapatybės nustatymo agentas +Comment[ml]=പോളിസിക്കിറ്റ് ഓഥന്റിക്കേഷന്‍ ഏജന്റ് +Comment[mr]=PolicyKit ऑथेंटीकेशन एजेंट +Comment[or]=PolicyKit ବୈଧିକରଣ ସଦସ୍ୟ +Comment[pa]=ਪਾਲਸੀਕਿੱਟ ਪਰਮਾਣਕਿਤਾ ਏਜੰਟ +Comment[pl]=Agent uwierzytelniania PolicyKit +Comment[pt]=Agente de Autenticação PolicyKit +Comment[pt_BR]=Agente de autenticação PolicyKit +Comment[ro]=Agent de autentificare PolicyKit +Comment[sk]=Agent PolicyKit na overovanie totožnosti +Comment[sl]=PolicyKit program overjanja +Comment[sv]=Autentiseringsagent för PolicyKit +Comment[ta]=PolicyKit அங்கீகார முகவர் +Comment[te]=పాలసీకిట్ ధృవీకరణ ప్రతినిధి +Comment[th]=ตัวกลางสำหรับยืนยันตัวบุคคล PolicyKit +Comment[uk]=Агент автентифікації PolicyKit +Comment[zh_CN]=PolicyKit 认证代理 +Comment[zh_HK]=PolicyKit 驗證代理程式 +Comment[zh_TW]=PolicyKit 驗證代理程式 +Exec=/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 +Terminal=false +Type=Application +Categories= +NoDisplay=true +OnlyShowIn=XFCE; \ No newline at end of file diff --git a/talimatname/genel/x/xfce4-session/xfce4-session.kur-kos b/talimatname/genel/x/xfce4-session/xfce4-session.kur-kos new file mode 100644 index 000000000..0fd2e1c87 --- /dev/null +++ b/talimatname/genel/x/xfce4-session/xfce4-session.kur-kos @@ -0,0 +1 @@ +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor diff --git a/talimatname/genel/x/xfce4-settings/talimat b/talimatname/genel/x/xfce4-settings/talimat new file mode 100644 index 000000000..07220dae4 --- /dev/null +++ b/talimatname/genel/x/xfce4-settings/talimat @@ -0,0 +1,32 @@ +# Tanım: Xfce4 ayar uygulamaları. +# URL: http://wiki.xfce.org/releng +# Paketçi: milisarge +# Gerekler: exo xfce4-libui xfce4-garcon xorg-libxklavier xorg-libxkbfile libcanberra gnome-icon-theme +# Grup: xfce4 + +isim=xfce4-settings +source /root/talimatname/genel/x/xfce4/surumler +surum="${xfce4_settings_surum}";[ -z ${xfce4_settings_surum} ] && \ +surum=4.12.0 +devir=3 + +kaynak=(http://archive.xfce.org/src/xfce/${isim}/${surum%.*}/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-static \ + --enable-xrandr \ + --enable-xcursor \ + --enable-libnotify \ + --enable-libxklavier \ + --enable-pluggable-dialogs \ + --enable-sound-settings \ + --disable-upower-glib \ + --disable-debug + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xfce4-settings/xfce4-settings.kur-kos b/talimatname/genel/x/xfce4-settings/xfce4-settings.kur-kos new file mode 100644 index 000000000..0fd2e1c87 --- /dev/null +++ b/talimatname/genel/x/xfce4-settings/xfce4-settings.kur-kos @@ -0,0 +1 @@ +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor diff --git a/talimatname/genel/x/xfce4-statusnotifier-plugin/talimat b/talimatname/genel/x/xfce4-statusnotifier-plugin/talimat new file mode 100644 index 000000000..0c850ce32 --- /dev/null +++ b/talimatname/genel/x/xfce4-statusnotifier-plugin/talimat @@ -0,0 +1,24 @@ +# Tanım: Xfce4 panelindeki durum bildirim göstergelerine eklenti +# URL: http://goodies.xfce.org/projects/panel-plugins/xfce4-statusnotifier-plugin +# Paketçi: yasarciv67@gmail.com +# Gerekler: intltool python3 xfce4-panel libdbusmenu-gtk3 + +isim=xfce4-statusnotifier-plugin +surum=0.2.0 +devir=1 +kaynak=(http://archive.xfce.org/src/panel-plugins/$isim/${surum%.*}/$isim-$surum.tar.bz2) + +derle() { + cd "${isim}-${surum}" + + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --libexecdir=/usr/lib \ + --disable-static + + make + make DESTDIR="${PKG}" install + +} diff --git a/talimatname/genel/x/xfce4-systemload-plugin/talimat b/talimatname/genel/x/xfce4-systemload-plugin/talimat new file mode 100644 index 000000000..eba58ed61 --- /dev/null +++ b/talimatname/genel/x/xfce4-systemload-plugin/talimat @@ -0,0 +1,21 @@ +# Tanım: Panel için monitör sistemi +# URL: http://goodies.xfce.org/projects/panel-plugins/start +# Paketçi: milisarge +# Gerekler: xfce4-panel + +isim=xfce4-systemload-plugin +surum=1.1.2 +devir=2 + +kaynak=(http://archive.xfce.org/src/panel-plugins/$isim/1.1/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-static + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xfce4-systemload-plugin/xfce4-systemload-plugin.kur-kos b/talimatname/genel/x/xfce4-systemload-plugin/xfce4-systemload-plugin.kur-kos new file mode 100644 index 000000000..0fd2e1c87 --- /dev/null +++ b/talimatname/genel/x/xfce4-systemload-plugin/xfce4-systemload-plugin.kur-kos @@ -0,0 +1 @@ +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor diff --git a/talimatname/genel/x/xfce4-taskmanager/talimat b/talimatname/genel/x/xfce4-taskmanager/talimat new file mode 100644 index 000000000..5ab206357 --- /dev/null +++ b/talimatname/genel/x/xfce4-taskmanager/talimat @@ -0,0 +1,22 @@ +# Tanım: Xfce için görev yöneticisi +# URL: http://goodies.xfce.org/projects/applications/xfce4-taskmanager +# Paketçi: milisarge +# Gerekler: gtk2 libwnck +# Grup: xfce4 + +isim=xfce4-taskmanager +surum=1.2.0 +devir=1 + +kaynak=(http://archive.xfce.org/src/apps/$isim/${surum%.*}/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-static + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xfce4-terminal/talimat b/talimatname/genel/x/xfce4-terminal/talimat new file mode 100644 index 000000000..b8123b004 --- /dev/null +++ b/talimatname/genel/x/xfce4-terminal/talimat @@ -0,0 +1,26 @@ +# Tanım: Xfce4 Terminal, bir GTK + 2 terminal emülatörüdür. +# URL: http://wiki.xfce.org +# Paketçi: milisarge +# Gerekler: exo vte vte3 +# Grup: xfce4 + +isim=xfce4-terminal +source /root/talimatname/genel/x/xfce4/surumler +surum="${xfce4_terminal_surum}";[ -z ${xfce4_terminal_surum} ] && \ +surum=0.8.6 +devir=1 + +kaynak=(http://archive.xfce.org/src/apps/${isim}/${surum%.*}/$isim-$surum.tar.bz2 ) + +derle() { + cd $isim-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-static \ + --disable-debug + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xfce4-terminal/xfce4-terminal.kur-kos b/talimatname/genel/x/xfce4-terminal/xfce4-terminal.kur-kos new file mode 100644 index 000000000..b12d3f529 --- /dev/null +++ b/talimatname/genel/x/xfce4-terminal/xfce4-terminal.kur-kos @@ -0,0 +1 @@ +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor \ No newline at end of file diff --git a/talimatname/genel/x/xfce4-verve-plugin/talimat b/talimatname/genel/x/xfce4-verve-plugin/talimat new file mode 100644 index 000000000..2e2e5ac66 --- /dev/null +++ b/talimatname/genel/x/xfce4-verve-plugin/talimat @@ -0,0 +1,18 @@ +# Tanım: Xfce4 paneli için komut satırı eklentisi. +# URL: http://goodies.xfce.org/projects/panel-plugins/xfce4-verve-plugin +# Paketçi: milisarge +# Gerekler: xfce4-panel + +isim=xfce4-verve-plugin +surum=1.1.0 +devir=1 + +kaynak=(http://archive.xfce.org/src/panel-plugins/$isim/${surum%.*}/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--disable-debug +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xfce4-volumed-pulse/talimat b/talimatname/genel/x/xfce4-volumed-pulse/talimat new file mode 100644 index 000000000..0de23fc13 --- /dev/null +++ b/talimatname/genel/x/xfce4-volumed-pulse/talimat @@ -0,0 +1,21 @@ +# Tanım: Xfce için pulseaudio kullanan bir ses tuşları kontrol programı +# URL: https://git.xfce.org/apps/xfce4-volumed-pulse +# Paketçi: milisarge +# Gerekler: libnotify pulseaudio keybinder xfce4-conf + +isim=xfce4-volumed-pulse +surum=0.2.2 +devir=1 +kaynak=(http://archive.xfce.org/src/apps/$isim/${surum%.*}/$isim-$surum.tar.bz2 +) + +derle() { + + cd $isim-$surum + ./configure --prefix=/usr --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var + make + make DESTDIR="$PKG" install + +} diff --git a/talimatname/genel/x/xfce4-volumed/talimat b/talimatname/genel/x/xfce4-volumed/talimat new file mode 100644 index 000000000..321622e15 --- /dev/null +++ b/talimatname/genel/x/xfce4-volumed/talimat @@ -0,0 +1,23 @@ +# Tanım: XF86 Ses tuşlarını etkinleştiren ve senkronize sesli uyarıları destekleyen temel hizmet programı +# URL: http://xfce.org/ +# Paketçi: milisarge +# Gerekler: gstreamer-plugins-base keybinder xfce4-conf glib +# Grup: xfce4 + +isim=xfce4-volumed +source /root/talimatname/genel/x/xfce4/surumler +surum="${xfce4_volumed_surum}";[ -z ${xfce4_volumed_surum} ] && \ +surum=0.1.13 +devir=2 + +kaynak=(http://archive.xfce.org/src/apps/$isim/${surum::3}/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --libexecdir=/usr/lib/$isim \ + --sysconfdir=/etc + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/man +} diff --git a/talimatname/genel/x/xfce4-weather-plugin/talimat b/talimatname/genel/x/xfce4-weather-plugin/talimat new file mode 100644 index 000000000..2396a69a5 --- /dev/null +++ b/talimatname/genel/x/xfce4-weather-plugin/talimat @@ -0,0 +1,24 @@ +# Tanım: Bu panel eklentisi, xoap.weather.com tarafından sağlanan hava verileri kullanılarak, mevcut sıcaklık ve hava durumunu gösterir. +# URL: http://goodies.xfce.org/projects/panel-plugins/xfce4-weather-plugin +# Paketçi: milisarge +# Gerekler: libsoup xfce4-panel + +isim=xfce4-weather-plugin +surum=0.8.6 +devir=2 + +kaynak=(http://archive.xfce.org/src/panel-plugins/xfce4-weather-plugin/0.8/$isim-$surum.tar.bz2) + +derle() { +cd $isim-$surum +./configure \ +--prefix=/usr \ +--sysconfdir=/etc \ +--libexecdir=/usr/lib \ +--localstatedir=/var \ +--disable-static \ +--disable-debug \ +--disable-upower +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xfce4-weather-plugin/xfce4-weather-plugin.kur-kos b/talimatname/genel/x/xfce4-weather-plugin/xfce4-weather-plugin.kur-kos new file mode 100644 index 000000000..0fd2e1c87 --- /dev/null +++ b/talimatname/genel/x/xfce4-weather-plugin/xfce4-weather-plugin.kur-kos @@ -0,0 +1 @@ +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor diff --git a/talimatname/genel/x/xfce4-whiskermenu-plugin/talimat b/talimatname/genel/x/xfce4-whiskermenu-plugin/talimat new file mode 100644 index 000000000..ecc88c50c --- /dev/null +++ b/talimatname/genel/x/xfce4-whiskermenu-plugin/talimat @@ -0,0 +1,27 @@ +# Tanım: Xfce4 için alternatif menü +# URL: http://gottcode.org/xfce4-whiskermenu-plugin/ +# Paketçi: milisarge +# Gerekler: cmake xfce4-panel exo ninja +# Grup: xfce4 + +isim=xfce4-whiskermenu-plugin +source /root/talimatname/genel/x/xfce4/surumler +surum="${xfce4_whiskermenu_plugin_surum}";[ -z ${xfce4_whiskermenu_plugin_surum} ] && \ +surum=2.1.3 +devir=1 + +kaynak=(https://github.com/gottcode/xfce4-whiskermenu-plugin/archive/v$surum.tar.gz::$isim-$surum.tar.gz) +derle() { + +cd $isim-$surum + mkdir -p build + cd build + cmake "$SRC/$isim-$surum" \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -GNinja + ninja + DESTDIR="$PKG" ninja -C $SRC/$isim-$surum/build install + rm -rf $PKG/usr/share/man +} diff --git a/talimatname/genel/x/xfce4-whiskermenu-plugin/xfce4-whiskermenu-plugin.kur-kos b/talimatname/genel/x/xfce4-whiskermenu-plugin/xfce4-whiskermenu-plugin.kur-kos new file mode 100644 index 000000000..0fd2e1c87 --- /dev/null +++ b/talimatname/genel/x/xfce4-whiskermenu-plugin/xfce4-whiskermenu-plugin.kur-kos @@ -0,0 +1 @@ +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor diff --git a/talimatname/genel/x/xfce4-whiskermenu-plugin/xfce4-whiskermenu-plugin.sil-kos b/talimatname/genel/x/xfce4-whiskermenu-plugin/xfce4-whiskermenu-plugin.sil-kos new file mode 100644 index 000000000..f38600c2d --- /dev/null +++ b/talimatname/genel/x/xfce4-whiskermenu-plugin/xfce4-whiskermenu-plugin.sil-kos @@ -0,0 +1 @@ +[ -f /usr/lib/xfce4/panel/plugins/libwhiskermenu.so ] && rm -rf /usr/lib/xfce4/panel/plugins/libwhiskermenu.so diff --git a/talimatname/genel/x/xfce4-windowck-plugin/talimat b/talimatname/genel/x/xfce4-windowck-plugin/talimat new file mode 100644 index 000000000..e7d5690c9 --- /dev/null +++ b/talimatname/genel/x/xfce4-windowck-plugin/talimat @@ -0,0 +1,21 @@ +# Tanım: Xfce panel eklentisi, panelde simge durumuna küçültülmüş pencere başlığını ve düğmelerini koymaya olanak tanır.. +# URL: https://github.com/cedl38/xfce4-windowck-plugin +# Paketçi: yasarciv67@gmail.com +# Gerekler: intltool xfce4-dev-tools python3 imagemagick xfce4-panel graphite2 + +isim=xfce4-windowck-plugin +surum=0.4.4 +devir=1 +kaynak=(https://github.com/cedl38/xfce4-windowck-plugin/archive/v0.4.4.tar.gz +https://github.com/yasarciv/xfce4-windowck-plugin/raw/master/po/tr.po) + +derle() { + cd "$isim-$surum" +cp ../tr.po $SRC/$isim-$surum/po/ + + ./autogen.sh \ + --prefix=/usr + make + make DESTDIR="$PKG" install + +} \ No newline at end of file diff --git a/talimatname/genel/x/xfce4-windowck-plugin/xfce4-windowck-plugin.kur-kos b/talimatname/genel/x/xfce4-windowck-plugin/xfce4-windowck-plugin.kur-kos new file mode 100644 index 000000000..8e5463385 --- /dev/null +++ b/talimatname/genel/x/xfce4-windowck-plugin/xfce4-windowck-plugin.kur-kos @@ -0,0 +1 @@ +gtk-update-icon-cache -t -f /usr/share/icons/hicolor \ No newline at end of file diff --git a/talimatname/genel/x/xfce4-wm/talimat b/talimatname/genel/x/xfce4-wm/talimat new file mode 100644 index 000000000..59e6472e2 --- /dev/null +++ b/talimatname/genel/x/xfce4-wm/talimat @@ -0,0 +1,32 @@ +# Tanım: Xfwm4, Xfce için pencere yöneticisi. +# URL: http://www.xfce.org/projects/xfwm4/ +# Paketçi: milisarge +# Gerekler: xorg-libxres libwnck xfce4-libui xfce4-libutil startup-notification +# Grup: xfce4 + +_isim=xfwm4 +isim=xfce4-wm +source /root/talimatname/genel/x/xfce4/surumler +surum="${xfce4_wm_surum}";[ -z ${xfce4_wm_surum} ] && \ +surum=4.12.3 +devir=1 + +kaynak=(http://archive.xfce.org/src/xfce/${_isim}/${surum%.*}/$_isim-$surum.tar.bz2) + +derle() { + cd ${_isim}-$surum + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --localstatedir=/var \ + --disable-static \ + --enable-startup-notification \ + --enable-randr \ + --enable-compositor \ + --enable-xsync \ + --disable-debugr + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/gtk-doc +} diff --git a/talimatname/genel/x/xfce4-wm/xfce4-wm.kur-kos b/talimatname/genel/x/xfce4-wm/xfce4-wm.kur-kos new file mode 100644 index 000000000..0fd2e1c87 --- /dev/null +++ b/talimatname/genel/x/xfce4-wm/xfce4-wm.kur-kos @@ -0,0 +1 @@ +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor diff --git a/talimatname/genel/x/xfce4-xkb-plugin/talimat b/talimatname/genel/x/xfce4-xkb-plugin/talimat new file mode 100644 index 000000000..600047cbb --- /dev/null +++ b/talimatname/genel/x/xfce4-xkb-plugin/talimat @@ -0,0 +1,22 @@ +# Tanım: Bu eklenti,birden fazla klavye düzenlerini kurmanıza ve kullanmanıza olanak tanır. +# URL: http://goodies.xfce.org/projects/panel-plugins/xfce4-xkb-plugin +# Paketçi: milisarge +# Gerekler: librsvg xorg-libxklavier xfce4-panel libwnck3 +# Grup: xfce4 + +isim=xfce4-xkb-plugin +source /root/talimatname/genel/x/xfce4/surumler +surum="${xfce4_xkb_plugin_surum}";[ -z ${xfce4_xkb_plugin_surum} ] && \ +surum=0.7.1 +devir=1 + +kaynak=(http://archive.xfce.org/src/panel-plugins/$isim/${surum%.*}/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --disable-debug + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/man +} diff --git a/talimatname/genel/x/xfce4/surumler b/talimatname/genel/x/xfce4/surumler new file mode 100644 index 000000000..ae6c5d7e5 --- /dev/null +++ b/talimatname/genel/x/xfce4/surumler @@ -0,0 +1,28 @@ +#!/usr/bin/env bash +# xfce4 grubu sürüm takibi + +#xfce4_libutil_surum="4.12.1" +#xfce4_conf_surum="4.12.1" +#xfce4_libui_surum="4.12.1" +#xfce4_settings_surum="4.12.1" +#xfce4_session_surum="4.12.1" +#xfce4_desktop_surum="4.12.4" +#xfce4_panel_surum="4.12.2" +#xfce4_wm_surum="4.12.4" +#xfce4_appfinder_surum="4.12.0" +#thunar_surum="1.7.0" +#xfce4_notifyd_surum="0.4.1" +#xfce4_power_manager_surum="1.6.1" +#xfce4_xkb_plugin_surum="0.8.1" +#xfce4_terminal_surum="0.8.6" +#xfce4_garcon_surum="0.6.1" +#xfce4_clipman_plugin_surum="1.4.2" +#xfce4_volumed_surum="0.1.13" +#xfce4_gtk_engine_surum="3.2.0" +#xfce4_battery_plugin_surum="1.1.0" +#xfce4_datetime_plugin_surum="0.7.0" +#xfce4_elementary_icon_theme_surum="0.9" +#tumbler_surum="0.2.0" +#xfce4_screenshooter_surum="1.9.1" +#xfce4_whiskermenu_plugin_surum="2.1.5" +#xfce4_pulseaudio_plugin_surum="0.3.4" diff --git a/talimatname/genel/x/xfce4/surumler_test b/talimatname/genel/x/xfce4/surumler_test new file mode 100644 index 000000000..57e0af50b --- /dev/null +++ b/talimatname/genel/x/xfce4/surumler_test @@ -0,0 +1,28 @@ +#!/usr/bin/env bash +# xfce4 grubu sürüm takibi + +xfce4_libutil_surum="4.12.1" +xfce4_conf_surum="4.12.1" +xfce4_libui_surum="4.12.1" +xfce4_settings_surum="4.12.1" +xfce4_session_surum="4.12.1" +xfce4_desktop_surum="4.12.4" +xfce4_panel_surum="4.12.2" +xfce4_wm_surum="4.12.4" +xfce4_appfinder_surum="4.12.0" +thunar_surum="1.7.0" +xfce4_notifyd_surum="0.4.1" +xfce4_power_manager_surum="1.6.1" +xfce4_xkb_plugin_surum="0.8.1" +xfce4_terminal_surum="0.8.6" +xfce4_garcon_surum="0.6.1" +xfce4_clipman_plugin_surum="1.4.2" +xfce4_volumed_surum="0.1.13" +xfce4_gtk_engine_surum="3.2.0" +xfce4_battery_plugin_surum="1.1.0" +xfce4_datetime_plugin_surum="0.7.0" +xfce4_elementary_icon_theme_surum="0.9" +tumbler_surum="0.2.0" +xfce4_screenshooter_surum="1.9.1" +xfce4_whiskermenu_plugin_surum="2.1.3" +xfce4_pulseaudio_plugin_surum="0.3.4" diff --git a/talimatname/genel/x/xfce4/talimat b/talimatname/genel/x/xfce4/talimat new file mode 100644 index 000000000..3cb53965b --- /dev/null +++ b/talimatname/genel/x/xfce4/talimat @@ -0,0 +1,14 @@ +# Tanım: sistem +# URL: sistem +# Paketçi: milisarge +# Gerekler: xorg xfce4-desktop xfce4-session xfce4-settings xfce4-notifyd xfce4-panel xfce4-wm xfce4-power-manager xfce4-xkb-plugin xfce4-terminal xfce4-libui xfce4-libutil xfce4-garcon xfce4-clipman-plugin xfce4-gtk-engine xfce4-appfinder xfce4-battery-plugin xfce4-conf xfce4-datetime-plugin xfce4-elementary-icon-theme tumbler xfce4-screenshooter xfce4-whiskermenu-plugin xfce4-pulseaudio-plugin dejavu-ttf + +isim=xfce4-sistem +surum=1 +devir=1 + +kaynak=() + +derle() { + echo "xfce4 sistem" +} diff --git a/talimatname/genel/x/xfdashboard/talimat b/talimatname/genel/x/xfdashboard/talimat new file mode 100644 index 000000000..a39d4c56a --- /dev/null +++ b/talimatname/genel/x/xfdashboard/talimat @@ -0,0 +1,23 @@ +# Tanım: Belki Xfce için bir kontrol paneli gibi bir Gnome kabuğu +# URL: http://goodies.xfce.org/projects/applications/xfdashboard/start +# Paketçi: yasarciv67@gmail.com +# Gerekler: xfce4-dev-tools libwnck3 clutter xfce4-garcon + +isim=xfdashboard +surum=0.7.3 +devir=1 +kaynak=(https://github.com/gmc-holle/xfdashboard/archive/0.7.3.tar.gz +) + +derle() { + cd $isim-$surum + ./autogen.sh --prefix=/usr --sysconfdir=/etc --disable-dependency-tracking + + # -Wl,--as-needed should come before all libraries + + sed -i -e '/\$CC/s/-shared/\0 -Wl,--as-needed/' libtool + + make + make DESTDIR=${PKG} install + +} diff --git a/talimatname/genel/x/xfe/talimat b/talimatname/genel/x/xfe/talimat new file mode 100644 index 000000000..93c6930d3 --- /dev/null +++ b/talimatname/genel/x/xfe/talimat @@ -0,0 +1,20 @@ +# Tanım: MS-Explorer veya Commander, X için dosya yöneticisi gibi. +# URL: http://roland65.free.fr/xfe +# Paketçi: milisarge +# Gerekler: freetype fox libpng libjpeg-turbo libtiff expat intltool + +isim=xfe +surum=1.42 +devir=1 +kaynak=(http://downloads.sourceforge.net/$isim/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + export CFLAGS="$CFLAGS `pkg-config --cflags freetype2`" + aclocal + automake --add-missing + autoreconf + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xfsprogs/talimat b/talimatname/genel/x/xfsprogs/talimat new file mode 100644 index 000000000..6c3526522 --- /dev/null +++ b/talimatname/genel/x/xfsprogs/talimat @@ -0,0 +1,27 @@ +# Tanım: XFS filesystem utilities +# URL: http://oss.sgi.com/projects/xfs/ +# Paketçi: milisarge +# Gerekler: + +isim=xfsprogs +surum=4.3.0 +devir=1 + +kaynak=(ftp://oss.sgi.com/projects/xfs/cmd_tars/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum +make DEBUG=-DNDEBUG INSTALL_USER=root INSTALL_GROUP=root \ + LOCAL_CONFIGURE_OPTIONS="--enable-readline" + +make DIST_ROOT=$PKG install +make DIST_ROOT=$PKG install-dev +if [ "`uname -m `" == "x86_64" ];then + LIB="lib64" +else + LIB="lib" +fi + rm -rfv $PKG/$LIB/libhandle.{a,la,so} + ln -sfv ../../$LIB/libhandle.so.1 $PKG/usr/$LIB/libhandle.so + sed -i "s@libdir='/$LIB@libdir='/usr/$LIB@g" $PKG/usr/$LIB/libhandle.la +} diff --git a/talimatname/genel/x/xine-lib/talimat b/talimatname/genel/x/xine-lib/talimat new file mode 100644 index 000000000..8c7b6a8e4 --- /dev/null +++ b/talimatname/genel/x/xine-lib/talimat @@ -0,0 +1,20 @@ +# Tanım: Xine kütüphanesini içeriyor +# URL: http://xinehq.de/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: xorg-mesa xorg-libxvmc libxcb faad2 speex libmng libvorbis flac libtheora sdl ffmpeg samba librsvg imagemagick + +isim=xine-lib +surum=1.2.6 +devir=1 + +kaynak=(http://downloads.sourceforge.net/xine/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--disable-vcd \ +--disable-modplug \ +--docdir=/usr/share/doc/$isim-$surum +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xine-ui/talimat b/talimatname/genel/x/xine-ui/talimat new file mode 100644 index 000000000..f3ba18498 --- /dev/null +++ b/talimatname/genel/x/xine-ui/talimat @@ -0,0 +1,22 @@ +# Tanım: Unix için ücretsiz video oynatıcı +# URL: http://www.xine-project.org +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: xine-lib curl xorg-libxft xorg-libxxf86vm xdg-utils shared-mime-info hicolor-icon-theme desktop-file-utils + +isim=xine-ui +surum=0.99.9 +devir=1 + +kaynak=(http://downloads.sourceforge.net/xine/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --with-x \ + --disable-lirc \ + --without-aalib \ + --enable-debug + make + make DESTDIR=$PKG desktopdir=/usr/share/applications install +} diff --git a/talimatname/genel/x/xinetd/chargen b/talimatname/genel/x/xinetd/chargen new file mode 100644 index 000000000..f805f0a59 --- /dev/null +++ b/talimatname/genel/x/xinetd/chargen @@ -0,0 +1,25 @@ +# Begin /etc/xinetd.d/chargen + +service chargen +{ + disable = yes + type = INTERNAL + id = chargen-stream + socket_type = stream + protocol = tcp + user = root + wait = no +} + +service chargen +{ + disable = yes + type = INTERNAL + id = chargen-dgram + socket_type = dgram + protocol = udp + user = root + wait = yes +} + +# End /etc/xinetd.d/chargen diff --git a/talimatname/genel/x/xinetd/daytime b/talimatname/genel/x/xinetd/daytime new file mode 100644 index 000000000..a13de6d6f --- /dev/null +++ b/talimatname/genel/x/xinetd/daytime @@ -0,0 +1,25 @@ +# Begin /etc/xinetd.d/daytime + +service daytime +{ + disable = yes + type = INTERNAL + id = daytime-stream + socket_type = stream + protocol = tcp + user = root + wait = no +} + +service daytime +{ + disable = yes + type = INTERNAL + id = daytime-dgram + socket_type = dgram + protocol = udp + user = root + wait = yes +} + +# End /etc/xinetd.d/daytime diff --git a/talimatname/genel/x/xinetd/echo b/talimatname/genel/x/xinetd/echo new file mode 100644 index 000000000..69d8cc740 --- /dev/null +++ b/talimatname/genel/x/xinetd/echo @@ -0,0 +1,25 @@ +# Begin /etc/xinetd.d/echo + +service echo +{ + disable = yes + type = INTERNAL + id = echo-stream + socket_type = stream + protocol = tcp + user = root + wait = no +} + +service echo +{ + disable = yes + type = INTERNAL + id = echo-dgram + socket_type = dgram + protocol = udp + user = root + wait = yes +} + +# End /etc/xinetd.d/echo diff --git a/talimatname/genel/x/xinetd/systat b/talimatname/genel/x/xinetd/systat new file mode 100644 index 000000000..b37baa5fc --- /dev/null +++ b/talimatname/genel/x/xinetd/systat @@ -0,0 +1,15 @@ +# Begin /etc/xinetd.d/systat + +service systat +{ + disable = yes + socket_type = stream + wait = no + user = nobody + server = /bin/ps + server_args = -auwwx + only_from = 128.138.209.0 + log_on_success = HOST +} + +# End /etc/xinetd.d/systat diff --git a/talimatname/genel/x/xinetd/talimat b/talimatname/genel/x/xinetd/talimat new file mode 100644 index 000000000..2a1167660 --- /dev/null +++ b/talimatname/genel/x/xinetd/talimat @@ -0,0 +1,50 @@ +# Tanım: Xinetd, * inetd * için güvenli bir değiştirme olan, genişletilmiş InterNET hizmetleri arka plan programıdır. +# URL: ftp://anduin.linuxfromscratch.org/BLFS/xinetd/xinetd-2.3.15.tar.gz +# Paketçi: milisarge +# Gerekler: + +isim=xinetd +surum=2.3.15 +devir=1 +kaynak=(ftp://anduin.linuxfromscratch.org/BLFS/xinetd/$isim-$surum.tar.gz + xinetd.conf chargen daytime echo systat xined_time ) + +derle() { + +cd $isim-$surum + +source /etc/blfs-bootscripts +wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2 +tar xvf $scripts-$scriptsversion.tar.bz2 + + +sed -i -e "s/exec_server/child_process/" xinetd/builtins.c +sed -i -e "/register unsigned count/s/register//" xinetd/itox.c +./configure --prefix=/usr --mandir=/usr/share/man --with-loadavg + +make + +make DESTDIR=$PKG install + +install -v -m755 -d $PKG/etc +cp -v $SRC/xinetd.conf $PKG/etc + +install -v -m755 -d $PKG/etc/xinetd.d +cp -v $SRC/chargen $PKG/etc/xinetd.d + +install -v -m755 -d $PKG/etc/xinetd.d +cp -v $SRC/daytime $PKG/etc/xinetd.d + +install -v -m755 -d $PKG/etc/xinetd.d +cp -v $SRC/echo $PKG/etc/xinetd.d + +install -v -m755 -d $PKG/etc/xinetd.d +cp -v $SRC/systat $PKG/etc/xinetd.d + +install -v -m755 -d $PKG/etc/xinetd.d +cp -v $SRC/xined_time $PKG/etc/xinetd.d/time + +cd $scripts-$scriptsversion +make DESTDIR=$PKG install-xinetd + +} diff --git a/talimatname/genel/x/xinetd/xined_time b/talimatname/genel/x/xinetd/xined_time new file mode 100644 index 000000000..30084abbf --- /dev/null +++ b/talimatname/genel/x/xinetd/xined_time @@ -0,0 +1,25 @@ +# Begin /etc/xinetd.d/time + +service time +{ + disable = yes + type = INTERNAL + id = time-stream + socket_type = stream + protocol = tcp + user = root + wait = no +} + +service time +{ + disable = yes + type = INTERNAL + id = time-dgram + socket_type = dgram + protocol = udp + user = root + wait = yes +} + +# End /etc/xinetd.d/time diff --git a/talimatname/genel/x/xinetd/xinetd.conf b/talimatname/genel/x/xinetd/xinetd.conf new file mode 100644 index 000000000..c9a470137 --- /dev/null +++ b/talimatname/genel/x/xinetd/xinetd.conf @@ -0,0 +1,17 @@ +# Begin /etc/xinetd +# Configuration file for xinetd + +defaults +{ + instances = 60 + log_type = SYSLOG daemon + log_on_success = HOST PID USERID + log_on_failure = HOST USERID + cps = 25 30 +} + +# All service files are stored in the /etc/xinetd.d directory + +includedir /etc/xinetd.d + +# End /etc/xinetd diff --git a/talimatname/genel/x/xli/talimat b/talimatname/genel/x/xli/talimat new file mode 100644 index 000000000..6c241e90f --- /dev/null +++ b/talimatname/genel/x/xli/talimat @@ -0,0 +1,22 @@ +# Tanım: X için ekran görüntüleri sağlar +# URL: +# Paketçi: milisarge +# Gerekler: xorg-libxext libpng libjpeg-turbo + +isim=xli +surum=1 +devir=1 + +kaynak=(ftp://ftp.x.org/contrib/applications/xli.1.16.tar.gz + http://downloads.nutyx.org/files/patchs/$isim/xli-1.16-makefile-1.patch) +derle() { +sed -i "s/varargs/stdarg/" rlelib.c +mv Makefile{.std,} +patch -Np0 -i xli-1.16-makefile-1.patch +make +mkdir -p $PKG/usr{/bin,/lib/X11,/share/man/man3} +make DESTDIR=$PKG/usr install +for MANUAL in xli xliguide xlito + do install -m644 $MANUAL.man $PKG/usr/share/man/man3/$MANUAL.3 +done +} diff --git a/talimatname/genel/x/xli/xli.okubeni b/talimatname/genel/x/xli/xli.okubeni new file mode 100644 index 000000000..54c6a027c --- /dev/null +++ b/talimatname/genel/x/xli/xli.okubeni @@ -0,0 +1,204 @@ +XLI - X11 Image Loading Utility + +WHAT IS IT? + +xli is a version of xloadimage. + +This utility will view several types of images under X11, or load +images onto the X11 root window. xli can also be used on some (32 bit) +MSDOS systems. The current version (1.16) supports: + + CMU Window Manager raster files + Faces Project images + Fuzzy Bitmap (.fbm) images + GEM bit images + GIF images (Including GIF89a compatibility) + G3 FAX images + JFIF style jpeg images + McIDAS areafiles + MacPaint images +-> Windows, OS/2 BMP Image + Monochrome PC Paintbrush (.pcx) images +-> Photograph on CD Image + Portable Bitmap (.pbm, .pgm, .ppm) images + Sun monochrome rasterfiles + Sun color RGB rasterfiles + Targa (.tga) files + Utah Raster Toolkit (.rle) files + X pixmap (.xpm) files (Version 1, 2C and 3) + X10 bitmap files + X11 bitmap files + X Window Dump (except TrueColor and DirectColor) + +A variety of options are available to modify images prior to viewing. +These options include clipping, dithering, depth reduction, zoom +(either X or Y axis independently or both at once), brightening or +darkening, input gamma correction, and image merging. When applicable, +these options are done automatically (eg. a color image to be displayed +on a monochrome screen will be dithered automatically). A utility (xlito) +is provided that allows these viewing options to be appended to the image +files. + +CHANGES FROM XLI 1.15 + + Added BMP (MS Windows, OS/2) file format loader. + + Added PCD (PhotoCD) file format loader. + + Bowed to the pressure of the number of JPEGs that are gamma + corrected. JPEG images now are assumed to have a gamma of 2.2. + + Fixed bug in gif loader (files with local colormaps came out black) + + Improved the quality of color quantization. + + Added an -expand option that forces the image to be expanded + to 24 bit. + + Added a -title option. + + Added interactive image rotation using the 'l' and 'r' keys. + + Numerous bug fixes. + + (See the patches file for more details and credits) + +HOW IS XLI RELATED TO XLOADIMAGE ? + + xli version 1.00 was based on xloadimage version 3.01. + xli version 1.16 has many improvements over xli 1.00. + + xloadimage is maintained by Jim Frost - jimf@saber.com + + xli is maintained by Graeme Gill - graeme@labtam.oz.au + + Please read the README.orig file, which is the original xloadimage README + file for xloadimage info and credits. + +WHERE CAN I GET IT ? + + Two files: + xli.README + xli.1.16.tar.gz + on + ftp.x.org + in + /contrib/applications, and mirrors of this archive. + + Note that ftp.x.org will recompress as .Z on the fly. + +COMPILING + + There are a variety of ways to compile xli, depending on what + environment you have. + + The easiest way of compiling it is to use the Imakefile. Simply + run 'xmkmf' (which should be in your systems /usr/bin/X11 or + somewhere equivalent), which should make a Makefile suitable + for your system. Type 'make' to then build xli. It can be + installed in the standard place (along with its aliases xview + and xsetbg) by typing 'make install'. The manual entry can + be installed using 'make install.man'. + + If using the Imakefile is not possible, then you can try using + Makefile.std. Choose your target from + + std BSD environment + sysv SYSV environment + gcc BSD using gcc + sysv-gcc SYSV using older gcc + + and use something like: + + make -f Makefile.std target + + Makefile.std can also be used to re-make the Imakefile, Makefile.dos, + the tar archive, or a DOS ready .zip archive. + + There are a few compilation flags that you may need/want to change. + This can be done in the Makefile.std file. The defines are: + + -DHAVE_GUNZIP if you want to use gunzip rather than uncompress on .Z files + -DNO_UNCOMPRESS if you system doesn't have uncompress or gunzip. + The JPEG code needs a compilation flag that tells it whether right + shift (>>) is signed or unsigned on your machine. If it's unsigned, add + -DRIGHT_SHIFT_IS_UNSIGNED + + The defines should be added to the MISC_DEFINES= line in the Makefile.std + file. After doing this you may need to re-bulild the Imakefile or + Makefile.dos if you are using them. You can do this using: + + make -f Makefile.std Imakefile + or + make -f Makefile.std Makefile.dos + +COMPILING FOR DOS USING DJGPP 1.11 + + xli can be used on 32 bit 80x86 systems running MSDOS if + compiled using djgpp version 1.11. Since it has to run without + the aid of a windowing system or window manager, the user interface + leaves a lot to be desired, but it does work. It is important to + check that your video card is supported by the djgpp go32 environment, + and that it is configured appropriately. + + Assuming that you have unpacked the tar archive on a UNIX system, + and have the zip utility in your path, the first step is to + create xli.zip: + + make -f Makefile.std zip + + This can then be transfered to the MSDOS system and unpacked + in a suitable directory using unzip or pkunzip. Assuming the djgpp + compiling environment is set up suitably, xli can be compiled using + ndmake: + + ndmake -f Makefile.dos + + xlito now seems to work with djgpp 1.11 (it didn't + under version 1.09) + + xli can then be run as usual. + + For details on setting up djgpp, please read the djgpp docs. + + There is an optional compile flag -DDO_ARG_EXP that can be added + to the MISC_DEFINES in Makefile.std, or to DEFINES in Makefile.dos + that turns on argument expansion processing within xli. This + is somewhat more powerful than that provided by go32, but to get + it to work fully you will have to turn off the go32 argument expansion + by setting the appropriate go32 options. + + Please note that this DOS release probably has several undiscovered + bugs, as it has not been as extensively tested as the X11 version. + +OTHER NOTES + + The file build-jpeg is intended to aid those who want to port + the latest Independent JPEG Group's JPEG software to xli. + It semi-automatically creates the jpeglib.h and jpeglib.c files + used by xli. Note that future versions of the jpeg library + may be require updating of the xli specific jpeg.h and jpeg.c + files. Note that one change was made to the file jmemnobs.c, + "methods" was renamed to "smethods" so as to avoid clashing + with the variable of the same name in jmemmgr.c + + Please also note that the JPEG library README file is included at + the top of jpeglib.c, and gives distribution and copyright + information for this library. + +PRAISE, SUGGESTIONS AND BUG REPORTS + + xli has been developed in a fairly limited hardware environment, and + not all combinations of displays and/or image formats and options + have been tested. xli is useful to me, and maybe it will be + useful to you. + + Praise, suggestions, and bug reports should go to: + + Graeme Gill + graeme@labtam.oz.au + + [I may not be able to respond promptly to mail during the period + 94/7/30 to 94/8/15] + + diff --git a/talimatname/genel/x/xlockmore/talimat b/talimatname/genel/x/xlockmore/talimat new file mode 100644 index 000000000..ce7235116 --- /dev/null +++ b/talimatname/genel/x/xlockmore/talimat @@ -0,0 +1,22 @@ +# Tanım: X Pencere Sistem Kilidi Ekranı +# URL: http://www.tux.org/~bagleyd/xlockmore.html +# Paketçi: milisarge +# Gerekler: gtk2 fortune + +isim=xlockmore +surum=5.49 +devir=1 +kaynak=(http://sillycycle.com/xlock/recent-releases/xlockmore-$surum.tar.xz) + +derle(){ + cd $isim-$surum + ./configure --prefix=/usr --enable-vtlock --enable-syslog \ + --enable-multiple-user --enable-multiple-root \ + --without-motif --with-opengl --without-esound + make + make prefix=$PKG/usr xapploaddir=$PKG/etc/X11/app-defaults install + if [ -d $PKG/usr/lib ]; then + rm -rf $PKG/usr/lib + fi + mv $PKG/usr/share/man $PKG/usr +} diff --git a/talimatname/genel/x/xmlsec/talimat b/talimatname/genel/x/xmlsec/talimat new file mode 100644 index 000000000..6f312e229 --- /dev/null +++ b/talimatname/genel/x/xmlsec/talimat @@ -0,0 +1,20 @@ +# Tanım: XML Güvenlik Kütüphanesi LibXML2 tabanlı bir C kütüphanesi +# URL: https://www.aleksey.com/xmlsec/index.html +# Paketçi: Cihan Alkan +# Gerekler: libxslt nss + +isim=xmlsec +surum=1.2.24 +devir=1 +kaynak=(https://www.aleksey.com/xmlsec/download/xmlsec1-$surum.tar.gz) + +derle() { + cd xmlsec1-$surum + ./configure --prefix=/usr --disable-static + make + + make DESTDIR=$PKG install + install -dm755 "$PKG"/usr/share/licenses/$isim + install -m644 COPYING $PKG/usr/share/licenses/$isim/ + +} diff --git a/talimatname/genel/x/xmlto/talimat b/talimatname/genel/x/xmlto/talimat new file mode 100644 index 000000000..ee67b9b1f --- /dev/null +++ b/talimatname/genel/x/xmlto/talimat @@ -0,0 +1,18 @@ +# Tanım: Xml'yi diğer birçok biçime dönüştürün +# URL: http://cyberelk.net/tim/software/xmlto/ +# Paketçi: milisarge +# Gerekler: libxslt docbook-xsl docbook-xml + +isim=xmlto +surum=0.0.26 +devir=1 + +kaynak=(https://fedorahosted.org/releases/x/m/xmlto/$isim-$surum.tar.bz2) + +derle() { +unset MAKEFLAGS +cd $isim-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xmoto/lua52_compat.patch b/talimatname/genel/x/xmoto/lua52_compat.patch new file mode 100644 index 000000000..54aaf20d6 --- /dev/null +++ b/talimatname/genel/x/xmoto/lua52_compat.patch @@ -0,0 +1,45 @@ +diff --git a/configure.in b/configure.in +index 452f196..dbceb05 100644 +--- a/configure.in ++++ b/configure.in +@@ -157,8 +157,8 @@ AM_CONDITIONAL([USE_SDLGFX], test "$USE_SDLGFX" = "1") + # m + AC_CHECK_LIB(m, floor, , AC_MSG_ERROR(No math library found)) + +-AC_SEARCH_LIBS(lua_pushboolean,lua lua5.1 lua50, [], [AC_MSG_ERROR(liblua5.1, liblua50, or liblua required)]) +-AC_SEARCH_LIBS(luaopen_math,lualib lualib5.1 lualib50, [], [AC_MSG_ERROR(liblualib5.1, liblualib50, or liblualib required)]) ++AC_SEARCH_LIBS(lua_pushboolean,lua lua5.2 lua5.1 lua50, [], [AC_MSG_ERROR(liblua5.2 liblua5.1, liblua50, or liblua required)]) ++AC_SEARCH_LIBS(luaopen_math,lualib liblua5.2 lualib5.1 lualib50, [], [AC_MSG_ERROR(liblualib5.2 liblualib5.1, liblualib50, or liblualib required)]) + + dnl ***** Check lua headers, as they are prone to be located random places on random systems! ***** + dnl The following three lines where suggested by Eric Piel, but they don't seem to work on my system +@@ -174,6 +174,8 @@ AC_CHECK_HEADER(lua/lua.h, AC_DEFINE(HAVE_LUA_LUA_H) [USE_LUA_VERSION="unkn + AC_CHECK_HEADER(lua50/lua.h, AC_DEFINE(HAVE_LUA50_LUA_H) [USE_LUA_VERSION="5.0"]) + AC_CHECK_HEADER(lua51/lua.h, AC_DEFINE(HAVE_LUA51_LUA_H) [USE_LUA_VERSION="5.1"]) + AC_CHECK_HEADER(lua5.1/lua.h, AC_DEFINE(HAVE_LUA5_1_LUA_H)[USE_LUA_VERSION="5.1"]) ++AC_CHECK_HEADER(lua52/lua.h, AC_DEFINE(HAVE_LUA52_LUA_H) [USE_LUA_VERSION="5.2"]) ++AC_CHECK_HEADER(lua5.2/lua.h, AC_DEFINE(HAVE_LUA5_2_LUA_H)[USE_LUA_VERSION="5.2"]) + AC_DEFINE(LUA_COMPAT_MODULE, 1) + + AC_LANG_PUSH([C++]) +diff --git a/src/include/xm_lua.h b/src/include/xm_lua.h +index 8a2cc17..f470de2 100644 +--- a/src/include/xm_lua.h ++++ b/src/include/xm_lua.h +@@ -4,7 +4,15 @@ extern "C" { + #include "lauxlib.h" + #include "lualib.h" + #else +- #if defined(HAVE_LUA5_1_LUA_H) ++ #if defined(HAVE_LUA5_2_LUA_H) ++ #include ++ #include ++ #include ++ #elif defined(HAVE_LUA52_LUA_H) ++ #include ++ #include ++ #include ++ #elif defined(HAVE_LUA5_1_LUA_H) + #include + #include + #include diff --git a/talimatname/genel/x/xmoto/talimat b/talimatname/genel/x/xmoto/talimat new file mode 100644 index 000000000..3b9c5d277 --- /dev/null +++ b/talimatname/genel/x/xmoto/talimat @@ -0,0 +1,31 @@ +# Tanım: Zorlu bir 2D motocross platform oyunu, burada fizik oyunda önemli bir rol oynamaktadır +# URL: http://xmoto.tuxfamily.org +# Paketçi: milisarge +# Gerekler: desktop-file-utils libxdg-basedir xorg-glu libmikmod libjpeg-turbo lua51 lua52 ode sdl-mixer sdl-net sdl-ttf + +isim=xmoto +surum=0.5.11 +devir=1 +kaynak=(http://download.tuxfamily.org/$isim/$isim/$surum/$isim-$surum-src.tar.gz + lua52_compat.patch ) + +derle() { + cd $isim-$surum + patch -Np1 -i "${SRC}/lua52_compat.patch" + ./bootstrap + rm -r src/ode + CPPFLAGS+=' -D_GLIBCXX_USE_CXX11_ABI=0' + + ./configure --prefix=/usr --disable-sdltest + make + make DESTDIR=$PKG install + + # Masaüstü dosyasını yükle + install -Dm0644 "${SRC}/xmoto-0.5.11/extra/xmoto.desktop" \ + "${PKG}/usr/share/applications/xmoto.desktop" + + # Masaüstü dosyası için simge yükle. + install -Dm0644 "${SRC}/xmoto-0.5.11/extra/xmoto.xpm" \ + "${PKG}/usr/share/pixmaps/xmoto.xpm" + #rm -rf $PKG/usr/share/doc +} diff --git a/talimatname/genel/x/xneur/talimat b/talimatname/genel/x/xneur/talimat new file mode 100644 index 000000000..087bb001e --- /dev/null +++ b/talimatname/genel/x/xneur/talimat @@ -0,0 +1,19 @@ +# Tanım: X Neural Değiştirici girdi dilini algılar ve gerekirse klavye düzenini düzeltir +# URL: http://www.xneur.ru +# Paketçi: Cihan Alkan +# Gerekler: gstreamer enchant libnotify gtk2 xorg-proto + +isim=xneur +surum=0.20.0 +devir=1 +kaynak=(https://raw.githubusercontent.com/AndrewCrewKuznetsov/xneur-devel/master/dists/$surum/xneur_$surum.orig.tar.gz) + +derle() { + + cd $SRC/$isim-$surum + ./configure --prefix=/usr --sysconfdir=/etc \ + --without-xosd \ + --with-gtk=gtk2 # Because gxneur still doesn't supports gtk3 + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xnviewmp/talimat b/talimatname/genel/x/xnviewmp/talimat new file mode 100644 index 000000000..9c6e20ea5 --- /dev/null +++ b/talimatname/genel/x/xnviewmp/talimat @@ -0,0 +1,28 @@ +# Tanım: Etkili bir multimedya görüntüleyici,tarayıcı ve dönüştürücü. +# URL: http://www.xnview.com/en/xnviewmp/ +# Paketçi: Cihan_Alkan +# Gerekler: qt5 desktop-file-utils +# Grup: medya + +isim=xnviewmp +surum=0.89 +devir=1 +kaynak=(http://download.xnview.com/XnViewMP-linux-x64.tgz + xnviewmp.desktop) + +derle() { + install -d -m755 "${PKG}/opt/${isim}" + install -d -m755 "${PKG}/usr/bin" + install -d -m755 "${PKG}/usr/share/applications" + + cp -a "${SRC}/XnView"/* "${PKG}/opt/${isim}" + ln -s "/opt/${isim}/xnview.sh" "${PKG}/usr/bin/${isim}" + + install -m644 "${SRC}/${isim}.desktop" "${PKG}/usr/share/applications/${isim}.desktop" + install -D -m644 "${SRC}/XnView/license.txt" "${PKG}/usr/share/licenses/${isim}/LICENSE" + + # Clean up + rm "${PKG}/opt/${isim}/XnView.desktop"{,~} + chmod -x "${PKG}/opt/${isim}/xnview.png" +} + diff --git a/talimatname/genel/x/xnviewmp/xnviewmp.desktop b/talimatname/genel/x/xnviewmp/xnviewmp.desktop new file mode 100644 index 000000000..850cb932a --- /dev/null +++ b/talimatname/genel/x/xnviewmp/xnviewmp.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Encoding=UTF-8 +Terminal=0 +Exec=/usr/bin/xnviewmp %F +Icon=/opt/xnviewmp/xnview.png +Type=Application +Categories=Graphics; +StartupNotify=true +Name=XnView Multi Platform +GenericName=XnViewMP +MimeType=image/bmp;image/gif;image/x-portable-bitmap;image/x-portable-pixmap;image/x-psd;image/x-tga;image/x-xbitmap;image/tiff;image/jpeg;image/x-psd;image/png;image/x-icon;image/x-xpixmap;image/svg+xml; diff --git a/talimatname/genel/x/xombrero/talimat b/talimatname/genel/x/xombrero/talimat new file mode 100644 index 000000000..d99e3377d --- /dev/null +++ b/talimatname/genel/x/xombrero/talimat @@ -0,0 +1,21 @@ +# Tanım: Gtk temelli ve webkit motorunu kullanan basit tarayıcı +# URL: https://opensource.conformal.com/wiki/xombrero +# Paketçi: milisarge +# Gerekler: libbsd libsoup gnutls gtk3 webkitgtk3 + +isim=xombrero +surum=1.6.3 +devir=1 + +kaynak=(https://opensource.conformal.com/snapshots/xombrero/xombrero-$surum.tgz) +derle() { +cd $isim-$surum +sed -i 's|/usr/local/share/|/usr/share/|' {unix.c,xombrero.conf,xombrero.h} + +make PREFIX="/usr" -C linux +mkdir -p $PKG/usr/share/applications + +make DESTDIR=$PKG PREFIX="/usr" -C linux install +install -Dm644 xombrero.conf $PKG/etc/skel/.xombrero.conf +install -Dm755 config-checker.pl $PKG/usr/bin/config-checker.pl +} diff --git a/talimatname/genel/x/xonotic/talimat b/talimatname/genel/x/xonotic/talimat new file mode 100644 index 000000000..9840ff836 --- /dev/null +++ b/talimatname/genel/x/xonotic/talimat @@ -0,0 +1,20 @@ +# Tanım: Xonotic, net hareket ve geniş bir silah yelpazesine sahip, bağımlılık yaratan, arena tarzı bir birinci şahıs nişancılık oyunudur. +# URL: https://xonotic.org +# Paketçi: milisarge +# Gerekler: alsa-lib libjpeg-turbo libmodplug libvorbis xorg-libxpm xorg-libxxf86dga xorg-libxxf86vm libpng xorg-mesa + +isim=xonotic +surum=0.8.2 +devir=1 +kaynak=(https://dl.xonotic.org/$isim-$surum.zip) + +derle() { + cd Xonotic + + make -C source/darkplaces CPUOPTIMIZATIONS="${CFLAGS}" DP_FS_BASEDIR=/usr/share/xonotic/ DP_LINK_TO_LIBJPEG=1 cl-release + install -Dm755 source/darkplaces/darkplaces-glx $PKG/usr/bin/xonotic-glx + + mkdir -p $PKG/usr/share/xonotic/ + mv data $PKG/usr/share/xonotic/ + install -Dm644 key_0.d0pk $PKG/usr/share/xonotic/key_0.d0pk +} diff --git a/talimatname/genel/x/xorg-app/talimat b/talimatname/genel/x/xorg-app/talimat new file mode 100644 index 000000000..1b9b0fb73 --- /dev/null +++ b/talimatname/genel/x/xorg-app/talimat @@ -0,0 +1,86 @@ +# Tanım: X pencere uygulamalarında kullanılabilen uygulamaları sağlar. +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: harfbuzz libpng xorg-mesa xorg-glu xcb-util xorg-libx11 xorg-libxinerama xorg-libxt xorg-libxfont xorg-libxkbfile xorg-libxmu xorg-libxrender xorg-libxrandr xorg-libxcursor xorg-libxtst xorg-libxxf86vm xorg-libxaw xorg-xbitmaps xorg-libxv xorg-libdmx xorg-libxt + +isim=xorg-app +surum=7.8 +devir=1 +section=app +kaynak=() + +derle() { +unset MAKEFLAGS +cat > list.md5 << "EOF" +53a48e1fdfec29ab2e89f86d4b7ca902 bdftopcf-1.0.5.tar.bz2 +25dab02f8e40d5b71ce29a07dc901b8c iceauth-1.0.7.tar.bz2 +c4a3664e08e5a47c120ff9263ee2f20c luit-1.1.1.tar.bz2 +18c429148c96c2079edda922a2b67632 mkfontdir-1.0.7.tar.bz2 +9bdd6ebfa62b1bbd474906ac86a40fd8 mkfontscale-1.1.2.tar.bz2 +e238c89dabc566e1835e1ecb61b605b9 sessreg-1.1.0.tar.bz2 +2c47a1b8e268df73963c4eb2316b1a89 setxkbmap-1.3.1.tar.bz2 +3a93d9f0859de5d8b65a68a125d48f6a smproxy-1.0.6.tar.bz2 +f0b24e4d8beb622a419e8431e1c03cd7 x11perf-1.6.0.tar.bz2 +7d6003f32838d5b688e2c8a131083271 xauth-1.0.9.tar.bz2 +0066f23f69ca3ef62dcaeb74a87fdc48 xbacklight-1.2.1.tar.bz2 +9956d751ea3ae4538c3ebd07f70736a0 xcmsdb-1.0.5.tar.bz2 +b58a87e6cd7145c70346adad551dba48 xcursorgen-1.0.6.tar.bz2 +8809037bd48599af55dad81c508b6b39 xdpyinfo-1.3.2.tar.bz2 +fceddaeb08e32e027d12a71490665866 xdriinfo-1.0.5.tar.bz2 +249bdde90f01c0d861af52dc8fec379e xev-1.2.2.tar.bz2 +90b4305157c2b966d5180e2ee61262be xgamma-1.0.6.tar.bz2 +f5d490738b148cb7f2fe760f40f92516 xhost-1.0.7.tar.bz2 +6a889412eff2e3c1c6bb19146f6fe84c xinput-1.6.2.tar.bz2 +a4d8353daf6cb0a9c47379b7413c42c6 xkbcomp-1.3.1.tar.bz2 +c747faf1f78f5a5962419f8bdd066501 xkbevd-1.1.4.tar.bz2 +502b14843f610af977dffc6cbf2102d5 xkbutils-1.0.4.tar.bz2 +0ae6bc2a8d3af68e9c76b1a6ca5f7a78 xkill-1.0.4.tar.bz2 +5dcb6e6c4b28c8d7aeb45257f5a72a7d xlsatoms-1.1.2.tar.bz2 +9fbf6b174a5138a61738a42e707ad8f5 xlsclients-1.1.3.tar.bz2 +2dd5ae46fa18abc9331bc26250a25005 xmessage-1.0.4.tar.bz2 +723f02d3a5f98450554556205f0a9497 xmodmap-1.0.9.tar.bz2 +6101f04731ffd40803df80eca274ec4b xpr-1.0.4.tar.bz2 +fae3d2fda07684027a643ca783d595cc xprop-1.2.2.tar.bz2 +441fdb98d2abc6051108b7075d948fc7 xrandr-1.4.3.tar.bz2 +b54c7e3e53b4f332d41ed435433fbda0 xrdb-1.1.0.tar.bz2 +a896382bc53ef3e149eaf9b13bc81d42 xrefresh-1.0.5.tar.bz2 +dcd227388b57487d543cab2fd7a602d7 xset-1.2.3.tar.bz2 +7211b31ec70631829ebae9460999aa0b xsetroot-1.1.1.tar.bz2 +558360176b718dee3c39bc0648c0d10c xvinfo-1.1.3.tar.bz2 +6b5d48464c5f366e91efd08b62b12d94 xwd-1.0.6.tar.bz2 +b777bafb674555e48fd8437618270931 xwininfo-1.1.3.tar.bz2 +3025b152b4f13fdffd0c46d0be587be6 xwud-1.0.4.tar.bz2 +EOF +for paket in $(grep -v '^#' list.md5 |cut -d " " -f 3) + do + cd $DERLEME_KAYNAKDIZIN/ + #agdan ceker + if [ ! -f $DERLEME_KAYNAKDIZIN/$paket ];then + wget http://mirror.switch.ch/ftp/mirror/X11/pub/individual/${section}/$paket + fi + + grep $paket $SRC/list.md5 |md5sum -c - + paketdizini=$(echo $paket | sed 's/.tar.bz2//') + cd - + tar -xf $DERLEME_KAYNAKDIZIN/$paket + + pushd $paketdizini + case $paketdizini in + luit-[0-9]* ) + line1="#ifdef _XOPEN_SOURCE" + line2="# undef _XOPEN_SOURCE" + line3="# define _XOPEN_SOURCE 600" + line4="#endif" + sed -i -e "s@#ifdef HAVE_CONFIG_H@$line1\n$line2\n$line3\n$line4\n\n&@" sys.c + unset line1 line2 line3 line4 + ;; + sessreg-* ) + sed -e 's/\$(CPP) \$(DEFS)/$(CPP) -P $(DEFS)/' -i man/Makefile.in + ;; + esac + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var + make + make DESTDIR=$PKG install + popd + done +} diff --git a/talimatname/genel/x/xorg-cf-files/talimat b/talimatname/genel/x/xorg-cf-files/talimat new file mode 100644 index 000000000..6f96d33c9 --- /dev/null +++ b/talimatname/genel/x/xorg-cf-files/talimat @@ -0,0 +1,16 @@ +# Tanım: xorg ayar dosyaları +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-util-macros + +isim=xorg-cf-files +surum=1.0.6 +devir=1 +kaynak=(http://xorg.freedesktop.org/releases/individual/util/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-compositeproto/talimat b/talimatname/genel/x/xorg-compositeproto/talimat new file mode 100644 index 000000000..debae581d --- /dev/null +++ b/talimatname/genel/x/xorg-compositeproto/talimat @@ -0,0 +1,20 @@ +# Tanım: Bileşik uzatma protokolü belirtimi ve üstbilgi dosyaları +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: + +isim=xorg-compositeproto +surum=0.4.2 +devir=1 +kaynak=(http://xorg.freedesktop.org/releases/individual/proto/compositeproto-$surum.tar.bz2) + +derle() { + cd compositeproto-$surum + + ./configure --prefix=/usr + + make + make DESTDIR=$PKG install + + rm -rf $PKG/usr/share +} diff --git a/talimatname/genel/x/xorg-dri2proto/talimat b/talimatname/genel/x/xorg-dri2proto/talimat new file mode 100644 index 000000000..10b7897a2 --- /dev/null +++ b/talimatname/genel/x/xorg-dri2proto/talimat @@ -0,0 +1,18 @@ +# Tanım: X DRI2 protocol headers +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: + +isim=xorg-dri2proto +surum=2.8 +devir=1 +kaynak=(http://xorg.freedesktop.org/releases/individual/proto/dri2proto-$surum.tar.bz2) + +derle() { + cd dri2proto-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install + rm -f $PKG/usr/share/doc/dri2proto/dri2proto.txt + rmdir $PKG/usr/share/{doc/dri2proto,doc,} +} diff --git a/talimatname/genel/x/xorg-encodings/talimat b/talimatname/genel/x/xorg-encodings/talimat new file mode 100644 index 000000000..63217da35 --- /dev/null +++ b/talimatname/genel/x/xorg-encodings/talimat @@ -0,0 +1,20 @@ +# Tanım: X.Org yazı tipi kodlamaları +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-util-macros xorg-app + +_isim=encodings +isim=xorg-encodings +surum=1.0.4 +devir=1 + +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/font/${_name}-$surum.tar.bz2) + +derle() { + cd ${_name}-$surum + + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-font-util/talimat b/talimatname/genel/x/xorg-font-util/talimat new file mode 100644 index 000000000..4f0d20207 --- /dev/null +++ b/talimatname/genel/x/xorg-font-util/talimat @@ -0,0 +1,19 @@ +# Tanım: X.Org yazı tipi araçları. +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: + +_isim=font-util +isim=xorg-font-util +surum=1.3.0 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/font/${_name}-$surum.tar.bz2) + +derle() { + cd ${_name}-$surum + + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-font/talimat b/talimatname/genel/x/xorg-font/talimat new file mode 100644 index 000000000..70c8f106d --- /dev/null +++ b/talimatname/genel/x/xorg-font/talimat @@ -0,0 +1,77 @@ +# Tanım: Xorg font paketleri, Xorg uygulamalarına gerekli yazı tiplerini sağlar. +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-font-util xorg-encodings xorg-xcursor-themes xorg-fontconfig + +isim=xorg-font +surum=7.7 +devir=3 +section="font" + +kaynak=() + +derle() { +unset MAKEFLAGS +cat > $section-$surum-$devir.md5 << "EOF" +23756dab809f9ec5011bb27fb2c3c7d6 font-util-1.3.1.tar.bz2 +0f2d6546d514c5cc4ecf78a60657a5c1 encodings-1.0.4.tar.bz2 +1347c3031b74c9e91dc4dfa53b12f143 font-adobe-100dpi-1.0.3.tar.bz2 +6c9f26c92393c0756f3e8d614713495b font-adobe-75dpi-1.0.3.tar.bz2 +66fb6de561648a6dce2755621d6aea17 font-adobe-utopia-100dpi-1.0.4.tar.bz2 +e99276db3e7cef6dccc8a57bc68aeba7 font-adobe-utopia-75dpi-1.0.4.tar.bz2 +fcf24554c348df3c689b91596d7f9971 font-adobe-utopia-type1-1.0.4.tar.bz2 +6d25f64796fef34b53b439c2e9efa562 font-alias-1.0.3.tar.bz2 +cc0726e4a277d6ed93b8e09c1f195470 font-arabic-misc-1.0.3.tar.bz2 +9f11ade089d689b9d59e0f47d26f39cd font-bh-100dpi-1.0.3.tar.bz2 +565494fc3b6ac08010201d79c677a7a7 font-bh-75dpi-1.0.3.tar.bz2 +c8b73a53dcefe3e8d3907d3500e484a9 font-bh-lucidatypewriter-100dpi-1.0.3.tar.bz2 +f6d65758ac9eb576ae49ab24c5e9019a font-bh-lucidatypewriter-75dpi-1.0.3.tar.bz2 +e8ca58ea0d3726b94fe9f2c17344be60 font-bh-ttf-1.0.3.tar.bz2 +53ed9a42388b7ebb689bdfc374f96a22 font-bh-type1-1.0.3.tar.bz2 +6b223a54b15ecbd5a1bc52312ad790d8 font-bitstream-100dpi-1.0.3.tar.bz2 +d7c0588c26fac055c0dd683fdd65ac34 font-bitstream-75dpi-1.0.3.tar.bz2 +5e0c9895d69d2632e2170114f8283c11 font-bitstream-type1-1.0.3.tar.bz2 +e452b94b59b9cfd49110bb49b6267fba font-cronyx-cyrillic-1.0.3.tar.bz2 +3e0069d4f178a399cffe56daa95c2b63 font-cursor-misc-1.0.3.tar.bz2 +0571bf77f8fab465a5454569d9989506 font-daewoo-misc-1.0.3.tar.bz2 +6e7c5108f1b16d7a1c7b2c9760edd6e5 font-dec-misc-1.0.3.tar.bz2 +bfb2593d2102585f45daa960f43cb3c4 font-ibm-type1-1.0.3.tar.bz2 +a2401caccbdcf5698e001784dbd43f1a font-isas-misc-1.0.3.tar.bz2 +cb7b57d7800fd9e28ec35d85761ed278 font-jis-misc-1.0.3.tar.bz2 +143c228286fe9c920ab60e47c1b60b67 font-micro-misc-1.0.3.tar.bz2 +96109d0890ad2b6b0e948525ebb0aba8 font-misc-cyrillic-1.0.3.tar.bz2 +6306c808f7d7e7d660dfb3859f9091d2 font-misc-ethiopic-1.0.3.tar.bz2 +e3e7b0fda650adc7eb6964ff3c486b1c font-misc-meltho-1.0.3.tar.bz2 +c88eb44b3b903d79fb44b860a213e623 font-misc-misc-1.1.2.tar.bz2 +56b0296e8862fc1df5cdbb4efe604e86 font-mutt-misc-1.0.3.tar.bz2 +e805feb7c4f20e6bfb1118d19d972219 font-schumacher-misc-1.1.2.tar.bz2 +6f3fdcf2454bf08128a651914b7948ca font-screen-cyrillic-1.0.4.tar.bz2 +beef61a9b0762aba8af7b736bb961f86 font-sony-misc-1.0.3.tar.bz2 +948f2e07810b4f31195185921470f68d font-sun-misc-1.0.3.tar.bz2 +829a3159389b7f96f629e5388bfee67b font-winitzki-cyrillic-1.0.3.tar.bz2 +3eeb3fb44690b477d510bbd8f86cf5aa font-xfree86-type1-1.0.4.tar.bz2 +EOF +for package in $(grep -v '^#' ${section}-${surum}-${devir}.md5 |cut -d " " -f 3) + do + wget http://mirror.switch.ch/ftp/mirror/X11/pub/individual/${section}/$package + grep $package $section-$surum-$devir.md5 |md5sum -c - + packagedir=$(echo $package | sed 's/.tar.bz2//') + tar -xf $package + + pushd $packagedir + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + --with-fontrootdir=/usr/share/fonts + make + make DESTDIR=$PKG install + popd + done +for FILE in usr/bin/bdftruncate \ +usr/bin/ucs2any \ +usr/share/aclocal/fontutil.m4 \ +usr/lib/pkgconfig/fontutil.pc \ +usr/share/man/man1/bdftruncate.1 \ +usr/share/man/man1/ucs2any.1 +do + rm $PKG/$FILE +done +} diff --git a/talimatname/genel/x/xorg-font/xorg-font.kur-kos b/talimatname/genel/x/xorg-font/xorg-font.kur-kos new file mode 100644 index 000000000..16fc29713 --- /dev/null +++ b/talimatname/genel/x/xorg-font/xorg-font.kur-kos @@ -0,0 +1,6 @@ +fc-cache -f -s > /dev/null +for i in 100dpi 75dpi cyrillic misc OTF TTF Type1 +do + mkfontscale /usr/share/fonts/$i + mkfontdir /usr/share/fonts/$i +done diff --git a/talimatname/genel/x/xorg-fontconfig/talimat b/talimatname/genel/x/xorg-fontconfig/talimat new file mode 100644 index 000000000..f71e05cc7 --- /dev/null +++ b/talimatname/genel/x/xorg-fontconfig/talimat @@ -0,0 +1,23 @@ +# Tanım: Fontconfig, erişim kitaplığı ve ilkelerin yapılandırması +# URL: http://xorg-fontconfig.org/wiki/ +# Paketçi: milisarge +# Gerekler: freetype expat libpng +# Grup: kütüphane + +_isim=fontconfig +isim=xorg-fontconfig +surum=2.13.0 +devir=1 +kaynak=( http://fontconfig.org/release/${_isim}-$surum.tar.gz) + +derle() { + cd ${_isim}-$surum + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --docdir=/usr/share/doc/$isim-$surum \ + --disable-docs --disable-static + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/doc +} diff --git a/talimatname/genel/x/xorg-fontconfig/xorg-fontconfig.kos-sil.kos-sil b/talimatname/genel/x/xorg-fontconfig/xorg-fontconfig.kos-sil.kos-sil new file mode 100644 index 000000000..8bbd3ccf9 --- /dev/null +++ b/talimatname/genel/x/xorg-fontconfig/xorg-fontconfig.kos-sil.kos-sil @@ -0,0 +1,11 @@ +#!/bin/sh +for _kurtar in \ +'/etc/conf.d' \ +'/etc/conf.avail' ;\ +do + +#sed -i '\|'\'$_kurtar\''|d' /var/lib/pkg/DB/cups/kurulan +# -sz ve -g den sonra /tmp/$paket.sil dikkate alınır +sed -i '\|'\'$_kurtar\''|d' /tmp/xorg-fontconfig.sil + +done diff --git a/talimatname/genel/x/xorg-gccmakedep/talimat b/talimatname/genel/x/xorg-gccmakedep/talimat new file mode 100644 index 000000000..efe22679c --- /dev/null +++ b/talimatname/genel/x/xorg-gccmakedep/talimat @@ -0,0 +1,16 @@ +# Tanım: creates dependencies in Makefiles +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: + +isim=xorg-gccmakedep +surum=1.0.3 +devir=2 +kaynak=(http://xorg.freedesktop.org/releases/individual/util/gccmakedep-$surum.tar.bz2) + +derle() { + cd gccmakedep-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-glu/talimat b/talimatname/genel/x/xorg-glu/talimat new file mode 100644 index 000000000..3df9881bc --- /dev/null +++ b/talimatname/genel/x/xorg-glu/talimat @@ -0,0 +1,16 @@ +# Tanım: OpenGL Yardımcı Program Kütüphanesi +# URL: http://www.xorg-mesa3d.org +# Paketçi: milisarge +# Gerekler: xorg-mesa + +_isim=glu +isim=xorg-glu +surum=9.0.0 +devir=1 +kaynak=(ftp://ftp.freedesktop.org/pub/mesa/${_name}/${_name}-$surum.tar.bz2) + +derle() { +cd ${_name}-$surum +./configure --prefix=/usr --disable-static +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-imake/talimat b/talimatname/genel/x/xorg-imake/talimat new file mode 100644 index 000000000..ebb3dc7b1 --- /dev/null +++ b/talimatname/genel/x/xorg-imake/talimat @@ -0,0 +1,16 @@ +# Tanım: imake derleme sistemi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-proto xorg-cf-files + +isim=xorg-imake +surum=1.0.7 +devir=1 +kaynak=(http://xorg.freedesktop.org/releases/individual/util/imake-$surum.tar.bz2) + +derle() { + cd imake-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libdmx/talimat b/talimatname/genel/x/xorg-libdmx/talimat new file mode 100644 index 000000000..44930fb32 --- /dev/null +++ b/talimatname/genel/x/xorg-libdmx/talimat @@ -0,0 +1,16 @@ +# Tanım: X.Org icin dmx kutuphanesi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-libx11 xorg-libxext + +isim=xorg-libdmx +surum=1.1.3 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/libdmx-$surum.tar.bz2) + +derle() { + cd libdmx-$surum + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libdrm/talimat b/talimatname/genel/x/xorg-libdrm/talimat new file mode 100644 index 000000000..251ae0d48 --- /dev/null +++ b/talimatname/genel/x/xorg-libdrm/talimat @@ -0,0 +1,23 @@ +# Tanım: Çekirdek DRM servislerine kullanıcı alanı arayüzü. +# URL: http://dri.freedesktop.org/ +# Paketçi: milisarge +# Gerekler: docbook-xsl libxslt xorg-util-macros xorg-libpciaccess + +_isim=libdrm +isim=xorg-libdrm +surum=2.4.83 +devir=1 +kaynak=( http://dri.freedesktop.org/${_name}/${_name}-$surum.tar.bz2) + +derle() { + cd $_name-$surum + + ./configure \ + --prefix=/usr \ + --disable-manpages \ + --disable-valgrind \ + --disable-cairo-tests + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libfontenc/talimat b/talimatname/genel/x/xorg-libfontenc/talimat new file mode 100644 index 000000000..77121430f --- /dev/null +++ b/talimatname/genel/x/xorg-libfontenc/talimat @@ -0,0 +1,17 @@ +# Tanım: X.Org icin fontenc kutuphanesi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-proto + +_isim=libfontenc +isim=xorg-libfontenc +surum=1.1.3 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/${_name}-$surum.tar.bz2) + +derle() { +cd ${_name}-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libfs/talimat b/talimatname/genel/x/xorg-libfs/talimat new file mode 100644 index 000000000..a97e63370 --- /dev/null +++ b/talimatname/genel/x/xorg-libfs/talimat @@ -0,0 +1,16 @@ +# Tanım: X Font Servisi icin FS kutuphanesi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-proto xorg-xtrans + +isim=xorg-libfs +surum=1.0.7 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/libFS-$surum.tar.bz2) + +derle() { +cd libFS-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libice/talimat b/talimatname/genel/x/xorg-libice/talimat new file mode 100644 index 000000000..d12f88002 --- /dev/null +++ b/talimatname/genel/x/xorg-libice/talimat @@ -0,0 +1,18 @@ +# Tanım: X.Org ICE kutuphanesi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-proto xorg-xtrans + +isim=xorg-libice +surum=1.0.9 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/libICE-$surum.tar.bz2) + +derle() { + cd libICE-$surum + + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libpciaccess/talimat b/talimatname/genel/x/xorg-libpciaccess/talimat new file mode 100644 index 000000000..f8efa37a4 --- /dev/null +++ b/talimatname/genel/x/xorg-libpciaccess/talimat @@ -0,0 +1,19 @@ +# Tanım: X.Org PCI erisim kutuphanesi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: + +_isim=libpciaccess +isim=xorg-libpciaccess +surum=0.13.4 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/${_name}-$surum.tar.bz2) + +derle() { + cd ${_name}-$surum + + ./configure --prefix=/usr + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libsm/talimat b/talimatname/genel/x/xorg-libsm/talimat new file mode 100644 index 000000000..68ccec36d --- /dev/null +++ b/talimatname/genel/x/xorg-libsm/talimat @@ -0,0 +1,16 @@ +# Tanım: X.Org icin oturum yonetimi kutuphanesi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-libice xorg-proto xorg-xtrans + +isim=xorg-libsm +surum=1.2.2 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/libSM-$surum.tar.bz2) + +derle() { +cd libSM-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libx11/talimat b/talimatname/genel/x/xorg-libx11/talimat new file mode 100644 index 000000000..286556882 --- /dev/null +++ b/talimatname/genel/x/xorg-libx11/talimat @@ -0,0 +1,16 @@ +# Tanım: X Pencere Sistemi icin X11 kutuphanesi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: libxcb xorg-proto xorg-xtrans + +isim=xorg-libx11 +surum=1.6.3 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/libX11-$surum.tar.bz2) + +derle() { +cd libX11-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libxau/talimat b/talimatname/genel/x/xorg-libxau/talimat new file mode 100644 index 000000000..f6833a484 --- /dev/null +++ b/talimatname/genel/x/xorg-libxau/talimat @@ -0,0 +1,18 @@ +# Tanım: X Sahiplik rutinleri +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-proto + +isim=xorg-libxau +surum=1.0.8 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/libXau-$surum.tar.bz2) + +derle() { + cd libXau-$surum + + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libxaw/talimat b/talimatname/genel/x/xorg-libxaw/talimat new file mode 100644 index 000000000..d1c094128 --- /dev/null +++ b/talimatname/genel/x/xorg-libxaw/talimat @@ -0,0 +1,16 @@ +# Tanım: Athena Widget araclari +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-proto xorg-libx11 xorg-libxext xorg-libxt xorg-libxmu xorg-libxpm xorg-libxau + +isim=xorg-libxaw +surum=1.0.13 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/libXaw-$surum.tar.bz2) + +derle() { +cd libXaw-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libxaw3d/talimat b/talimatname/genel/x/xorg-libxaw3d/talimat new file mode 100644 index 000000000..6aed3afa7 --- /dev/null +++ b/talimatname/genel/x/xorg-libxaw3d/talimat @@ -0,0 +1,16 @@ +# Tanım: 3-D icin Athena uygulama araclari +# URL: URL: http://directory.fsf.org/project/xaw3d/ +# Paketçi: milisarge +# Gerekler: xorg-proto xorg-libxmu xorg-util-macros + +isim=xorg-libxaw3d +surum=1.6.2 +devir=1 +kaynak=(http://xorg.freedesktop.org/archive/individual/lib/libXaw3d-$surum.tar.bz2) + +derle() { +cd libXaw3d-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libxcomposite/talimat b/talimatname/genel/x/xorg-libxcomposite/talimat new file mode 100644 index 000000000..cf45e07b2 --- /dev/null +++ b/talimatname/genel/x/xorg-libxcomposite/talimat @@ -0,0 +1,16 @@ +# Tanım: X.Org icin Xcomposite kutuphanesi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-libx11 xorg-proto xorg-libxfixes xorg-libxext xorg-compositeproto + +isim=xorg-libxcomposite +surum=0.4.4 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/libXcomposite-$surum.tar.bz2) + +derle() { +cd libXcomposite-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libxcursor/talimat b/talimatname/genel/x/xorg-libxcursor/talimat new file mode 100644 index 000000000..9c6f5297e --- /dev/null +++ b/talimatname/genel/x/xorg-libxcursor/talimat @@ -0,0 +1,16 @@ +# Tanım: X.Org icin Xcursor kutuphanesi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-proto xorg-libxrender xorg-libxfixes xorg-libx11 + +isim=xorg-libxcursor +surum=1.1.14 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/libXcursor-$surum.tar.bz2) + +derle() { +cd libXcursor-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libxdamage/talimat b/talimatname/genel/x/xorg-libxdamage/talimat new file mode 100644 index 000000000..a1ff37b7e --- /dev/null +++ b/talimatname/genel/x/xorg-libxdamage/talimat @@ -0,0 +1,16 @@ +# Tanım: X.Org icin Xdamage kutuphanesi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-libx11 xorg-proto xorg-libxfixes + +isim=xorg-libxdamage +surum=1.1.4 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/libXdamage-$surum.tar.bz2) + +derle() { +cd libXdamage-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libxdmcp/talimat b/talimatname/genel/x/xorg-libxdmcp/talimat new file mode 100644 index 000000000..3e6889a17 --- /dev/null +++ b/talimatname/genel/x/xorg-libxdmcp/talimat @@ -0,0 +1,17 @@ +# Tanım: X.Org icin Xdmcp kutuphanesi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-proto + +_isim=libXdmcp +isim=xorg-libxdmcp +surum=1.1.2 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/${_name}-$surum.tar.bz2) + +derle() { +cd ${_name}-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libxext/talimat b/talimatname/genel/x/xorg-libxext/talimat new file mode 100644 index 000000000..cd893da38 --- /dev/null +++ b/talimatname/genel/x/xorg-libxext/talimat @@ -0,0 +1,16 @@ +# Tanım: X.Org icin Xext kutuphanesi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-proto xorg-libx11 + +isim=xorg-libxext +surum=1.3.3 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/libXext-$surum.tar.bz2) + +derle() { +cd libXext-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libxfixes/talimat b/talimatname/genel/x/xorg-libxfixes/talimat new file mode 100644 index 000000000..4cfeca062 --- /dev/null +++ b/talimatname/genel/x/xorg-libxfixes/talimat @@ -0,0 +1,16 @@ +# Tanım: X.Org icin Xfixes kutuphanesi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-libx11 xorg-proto + +isim=xorg-libxfixes +surum=5.0.1 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/libXfixes-$surum.tar.bz2) + +derle() { +cd libXfixes-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libxfont/talimat b/talimatname/genel/x/xorg-libxfont/talimat new file mode 100644 index 000000000..f5f18cf9d --- /dev/null +++ b/talimatname/genel/x/xorg-libxfont/talimat @@ -0,0 +1,16 @@ +# Tanım: X.Org icin Xfont kutuphanesi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: freetype xorg-proto xorg-xtrans xorg-libfontenc + +isim=xorg-libxfont +surum=1.5.1 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/libXfont-$surum.tar.bz2) + +derle() { +cd libXfont-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libxft/talimat b/talimatname/genel/x/xorg-libxft/talimat new file mode 100644 index 000000000..8e88d736a --- /dev/null +++ b/talimatname/genel/x/xorg-libxft/talimat @@ -0,0 +1,16 @@ +# Tanım: X.Org icin Xft kutuphanesi +# URL: http://xorg.freedesktop.org/ +# Paketçi: milisarge +# Gerekler: xorg-libxrender freetype xorg-fontconfig + +isim=xorg-libxft +surum=2.3.2 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/libXft-$surum.tar.bz2) + +derle() { +cd libXft-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libxi/talimat b/talimatname/genel/x/xorg-libxi/talimat new file mode 100644 index 000000000..7c4340a62 --- /dev/null +++ b/talimatname/genel/x/xorg-libxi/talimat @@ -0,0 +1,16 @@ +# Tanım: X.Org Xi kutuphanesi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-proto xorg-libx11 xorg-libxext xorg-libxfixes + +isim=xorg-libxi +surum=1.7.6 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/libXi-$surum.tar.bz2) + +derle() { +cd libXi-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libxinerama/talimat b/talimatname/genel/x/xorg-libxinerama/talimat new file mode 100644 index 000000000..bcc461623 --- /dev/null +++ b/talimatname/genel/x/xorg-libxinerama/talimat @@ -0,0 +1,16 @@ +# Tanım: X.Org Xinerama kutuphanesi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-proto xorg-libx11 xorg-libxext + +isim=xorg-libxinerama +surum=1.1.3 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/libXinerama-$surum.tar.bz2) + +derle() { +cd libXinerama-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libxkbfile/talimat b/talimatname/genel/x/xorg-libxkbfile/talimat new file mode 100644 index 000000000..2fd48d843 --- /dev/null +++ b/talimatname/genel/x/xorg-libxkbfile/talimat @@ -0,0 +1,18 @@ +# Tanım: X.Org xkbfile kutuphanesi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-proto xorg-libx11 + +isim=xorg-libxkbfile +surum=1.0.9 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/libxkbfile-$surum.tar.bz2) + +derle() { + cd libxkbfile-$surum + + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libxklavier/talimat b/talimatname/genel/x/xorg-libxklavier/talimat new file mode 100644 index 000000000..a64193b63 --- /dev/null +++ b/talimatname/genel/x/xorg-libxklavier/talimat @@ -0,0 +1,20 @@ +# Tanım: X ortami icin klavye kutuphanesi +# URL: http://www.freedesktop.org/wiki/Software/LibXklavier +# Paketçi: milisarge +# Gerekler: iso-codes libxml2 xorg-libx11 glib gobject-introspection xorg-libxkbfile + +_isim=libxklavier +isim=xorg-libxklavier +surum=5.4 +devir=1 +kaynak=(http://pkgs.fedoraproject.org/repo/pkgs/libxklavier/${_name}-$surum.tar.bz2/13af74dcb6011ecedf1e3ed122bd31fa/${_name}-$surum.tar.bz2) + + +derle() { +cd ${_name}-$surum +./configure --prefix=/usr \ +--disable-static +make +make DESTDIR=$PKG install +rm -rf $PKG/usr/share/gtk-doc +} diff --git a/talimatname/genel/x/xorg-libxmu/talimat b/talimatname/genel/x/xorg-libxmu/talimat new file mode 100644 index 000000000..f0301cbf6 --- /dev/null +++ b/talimatname/genel/x/xorg-libxmu/talimat @@ -0,0 +1,16 @@ +# Tanım: X.Org xmu kutuphanesi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-libxt xorg-proto xorg-libxext xorg-libx11 + +isim=xorg-libxmu +surum=1.1.2 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/libXmu-$surum.tar.bz2) + +derle() { +cd libXmu-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libxp/talimat b/talimatname/genel/x/xorg-libxp/talimat new file mode 100644 index 000000000..b7fbbffdd --- /dev/null +++ b/talimatname/genel/x/xorg-libxp/talimat @@ -0,0 +1,16 @@ +# Tanım: X.Org icin Xp kutuphanesi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-proto xorg-libx11 xorg-libxext + +isim=xorg-libxp +surum=1.0.3 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/libXp-$surum.tar.bz2) + +derle() { +cd libXp-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libxpm/talimat b/talimatname/genel/x/xorg-libxpm/talimat new file mode 100644 index 000000000..88809c557 --- /dev/null +++ b/talimatname/genel/x/xorg-libxpm/talimat @@ -0,0 +1,16 @@ +# Tanım: X.Org Xpm kutuphanesi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-proto xorg-libx11 xorg-libxt xorg-libxext + +isim=xorg-libxpm +surum=3.5.11 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/libXpm-$surum.tar.bz2) + +derle() { +cd libXpm-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libxrandr/talimat b/talimatname/genel/x/xorg-libxrandr/talimat new file mode 100644 index 000000000..b33d56978 --- /dev/null +++ b/talimatname/genel/x/xorg-libxrandr/talimat @@ -0,0 +1,16 @@ +# Tanım: X.Org yeniden boyutlama, dondurme islemleri kutuphanesi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-proto xorg-libx11 xorg-libxext xorg-libxrender + +isim=xorg-libxrandr +surum=1.5.0 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/libXrandr-$surum.tar.bz2) + +derle() { +cd libXrandr-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libxrender/talimat b/talimatname/genel/x/xorg-libxrender/talimat new file mode 100644 index 000000000..5e3c6b24f --- /dev/null +++ b/talimatname/genel/x/xorg-libxrender/talimat @@ -0,0 +1,16 @@ +# Tanım: X.Org Xrender kutuphanesi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-libx11 xorg-proto + +isim=xorg-libxrender +surum=0.9.9 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/libXrender-$surum.tar.bz2) + +derle() { +cd libXrender-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libxres/talimat b/talimatname/genel/x/xorg-libxres/talimat new file mode 100644 index 000000000..3e3dff720 --- /dev/null +++ b/talimatname/genel/x/xorg-libxres/talimat @@ -0,0 +1,19 @@ +# Tanım: X.Org icin Xres kutuphanesi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-proto xorg-libx11 xorg-libxext +# Grup: xorg + +isim=xorg-libxres +surum=1.2.0 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/libXres-$surum.tar.bz2) + +derle() { + cd libXres-$surum + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/man + rmdir "${PKG}/usr/share" || true +} diff --git a/talimatname/genel/x/xorg-libxscrnsaver/talimat b/talimatname/genel/x/xorg-libxscrnsaver/talimat new file mode 100644 index 000000000..183a6972e --- /dev/null +++ b/talimatname/genel/x/xorg-libxscrnsaver/talimat @@ -0,0 +1,16 @@ +# Tanım: X Ekran Koruyucu icin kutuphane +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-libx11 xorg-proto xorg-libxext + +isim=xorg-libxscrnsaver +surum=1.2.2 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/libXScrnSaver-$surum.tar.bz2) + +derle() { +cd libXScrnSaver-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libxshmfence/talimat b/talimatname/genel/x/xorg-libxshmfence/talimat new file mode 100644 index 000000000..5efb82e34 --- /dev/null +++ b/talimatname/genel/x/xorg-libxshmfence/talimat @@ -0,0 +1,16 @@ +# Tanım: X.Org libxshmfence kutuphanesi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-proto xorg-libx11 + +isim=xorg-libxshmfence +surum=1.2 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/libxshmfence-$surum.tar.bz2) + +derle() { +cd libxshmfence-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libxt/talimat b/talimatname/genel/x/xorg-libxt/talimat new file mode 100644 index 000000000..5d062336b --- /dev/null +++ b/talimatname/genel/x/xorg-libxt/talimat @@ -0,0 +1,17 @@ +# Tanım: X.Org icin Xt kutuphanesi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-libsm xorg-libx11 xorg-proto + +isim=xorg-libxt +surum=1.1.5 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/libXt-$surum.tar.bz2) + +derle() { +cd libXt-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ +--with-appdefaultdir=/etc/X11/app-defaults +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libxtst/talimat b/talimatname/genel/x/xorg-libxtst/talimat new file mode 100644 index 000000000..cdacbcb03 --- /dev/null +++ b/talimatname/genel/x/xorg-libxtst/talimat @@ -0,0 +1,16 @@ +# Tanım:X.Org libXtst kutuphanesi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-proto xorg-libx11 xorg-libxext xorg-libxi + +isim=xorg-libxtst +surum=1.2.2 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/libXtst-$surum.tar.bz2) + +derle() { +cd libXtst-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libxv/talimat b/talimatname/genel/x/xorg-libxv/talimat new file mode 100644 index 000000000..a7c092a93 --- /dev/null +++ b/talimatname/genel/x/xorg-libxv/talimat @@ -0,0 +1,16 @@ +# Tanım: X Video uzantısı istemcisi kitaplığı +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-proto xorg-libx11 xorg-libxext + +isim=xorg-libxv +surum=1.0.10 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/libXv-$surum.tar.bz2) + +derle() { +cd libXv-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libxvmc/talimat b/talimatname/genel/x/xorg-libxvmc/talimat new file mode 100644 index 000000000..02954c975 --- /dev/null +++ b/talimatname/genel/x/xorg-libxvmc/talimat @@ -0,0 +1,16 @@ +# Tanım: X11 Video Motion Compensation uzatma kitaplığı +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-libx11 xorg-libxext xorg-libxv + +isim=xorg-libxvmc +surum=1.0.9 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/libXvMC-$surum.tar.bz2) + +derle() { + cd libXvMC-$surum + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libxxf86dga/talimat b/talimatname/genel/x/xorg-libxxf86dga/talimat new file mode 100644 index 000000000..91213a33c --- /dev/null +++ b/talimatname/genel/x/xorg-libxxf86dga/talimat @@ -0,0 +1,16 @@ +# Tanım: X.Org libXxf86dga kutuphanesi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-proto xorg-libx11 xorg-libxext + +isim=xorg-libxxf86dga +surum=1.1.4 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/libXxf86dga-$surum.tar.bz2) + +derle() { +cd libXxf86dga-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-libxxf86vm/talimat b/talimatname/genel/x/xorg-libxxf86vm/talimat new file mode 100644 index 000000000..48491b6cf --- /dev/null +++ b/talimatname/genel/x/xorg-libxxf86vm/talimat @@ -0,0 +1,16 @@ +# Tanım: X.Org libXxf86vm kutuphanesi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-proto xorg-libx11 xorg-libxext + +isim=xorg-libxxf86vm +surum=1.1.4 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/libXxf86vm-$surum.tar.bz2) + +derle() { +cd libXxf86vm-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-mesa/talimat b/talimatname/genel/x/xorg-mesa/talimat new file mode 100644 index 000000000..186cbac71 --- /dev/null +++ b/talimatname/genel/x/xorg-mesa/talimat @@ -0,0 +1,36 @@ +# Tanım: Acik kaynak kodlu OpenGL uyumlu grafik kutuphanesi +# URL: http://www.xorg-mesa3d.org +# Paketçi: milisarge +# Gerekler: pkg-config libtool wayland xorg-libx11 xorg-libdrm xorg-libxext xorg-libxdamage llvm elfutils xorg-libxshmfence wayland libvdpau + +isim=xorg-mesa +surum=17.1.8 +devir=1 + +kaynak=(ftp://ftp.freedesktop.org/pub/mesa/mesa-$surum.tar.xz) + +derle() { + cd mesa-$surum + + CONFIG_SHELL=/bin/bash \ + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --enable-llvm \ + --enable-gbm \ + --enable-gles1 \ + --enable-gles2 \ + --enable-glx-tls \ + --enable-osmesa \ + --enable-texture-float \ + --enable-xa \ + --enable-vdpau \ + --enable-llvm-shared-libs \ + --disable-dependency-tracking \ + --with-platforms=x11,drm,wayland \ + --with-gallium-drivers=r300,r600,svga,swrast,radeonsi,nouveau \ + --with-vulkan-drivers=intel,radeon + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-pixman/talimat b/talimatname/genel/x/xorg-pixman/talimat new file mode 100644 index 000000000..5ef37a8e3 --- /dev/null +++ b/talimatname/genel/x/xorg-pixman/talimat @@ -0,0 +1,17 @@ +# Tanım: X.org piksel manupulasyonu icin kutuphane +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: libpng + +_isim=pixman +isim=xorg-pixman +surum=0.32.6 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/${_name}-$surum.tar.bz2) + +derle() { +cd ${_name}-$surum +./configure --prefix=/usr --disable-static +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-proto/talimat b/talimatname/genel/x/xorg-proto/talimat new file mode 100644 index 000000000..9203c2ed6 --- /dev/null +++ b/talimatname/genel/x/xorg-proto/talimat @@ -0,0 +1,55 @@ +# Tanım: X11 gelistiricileri icin protokol dosyalari (headers) +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge + +isim=xorg-proto +surum=7.7 +devir=1 + +kaynak=() + +derle() { +unset MAKEFLAGS +cat > list.md5 << "EOF" +99d0e25feea2fead7d8325b7000b41c3 printproto-1.0.5.tar.bz2 +1a05fb01fa1d5198894c931cf925c025 bigreqsproto-1.1.2.tar.bz2 +98482f65ba1e74a08bf5b056a4031ef0 compositeproto-0.4.2.tar.bz2 +998e5904764b82642cc63d97b4ba9e95 damageproto-1.2.1.tar.bz2 +4ee175bbd44d05c34d43bb129be5098a dmxproto-2.3.1.tar.bz2 +b2721d5d24c04d9980a0c6540cb5396a dri2proto-2.8.tar.bz2 +a3d2cbe60a9ca1bf3aea6c93c817fee3 dri3proto-1.0.tar.bz2 +e7431ab84d37b2678af71e29355e101d fixesproto-5.0.tar.bz2 +36934d00b00555eaacde9f091f392f97 fontsproto-2.1.3.tar.bz2 +5565f1b0facf4a59c2778229c1f70d10 glproto-1.4.17.tar.bz2 +6caebead4b779ba031727f66a7ffa358 inputproto-2.3.1.tar.bz2 +94afc90c1f7bef4a27fdd59ece39c878 kbproto-1.0.7.tar.bz2 +2d569c75884455c7148d133d341e8fd6 presentproto-1.0.tar.bz2 +a46765c8dcacb7114c821baf0df1e797 randrproto-1.5.0.tar.bz2 +1b4e5dede5ea51906f1530ca1e21d216 recordproto-1.14.2.tar.bz2 +a914ccc1de66ddeb4b611c6b0686e274 renderproto-0.11.1.tar.bz2 +cfdb57dae221b71b2703f8e2980eaaf4 resourceproto-1.2.0.tar.bz2 +edd8a73775e8ece1d69515dd17767bfb scrnsaverproto-1.2.2.tar.bz2 +e658641595327d3990eab70fdb55ca8b videoproto-2.3.2.tar.bz2 +5f4847c78e41b801982c8a5e06365b24 xcmiscproto-1.2.2.tar.bz2 +70c90f313b4b0851758ef77b95019584 xextproto-7.3.0.tar.bz2 +120e226ede5a4687b25dd357cc9b8efe xf86bigfontproto-1.2.0.tar.bz2 +a036dc2fcbf052ec10621fd48b68dbb1 xf86dgaproto-2.1.tar.bz2 +1d716d0dac3b664e5ee20c69d34bc10e xf86driproto-2.1.1.tar.bz2 +e793ecefeaecfeabd1aed6a01095174e xf86vidmodeproto-2.3.1.tar.bz2 +9959fe0bfb22a0e7260433b8d199590a xineramaproto-1.2.1.tar.bz2 +3ce2f230c5d8fa929f326ad1f0fa40a8 xproto-7.0.28.tar.bz2 +EOF +for package in $(grep -v '^#' list.md5 |cut -d " " -f 3) + do + wget http://mirror.switch.ch/ftp/mirror/X11/pub/individual/${section}/$package + grep $package list.md5 |md5sum -c - + packagedir=$(echo $package | sed 's/.tar.bz2//') + tar -xf $package + + pushd $packagedir + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var + make + make DESTDIR=$PKG install + popd + done +} diff --git a/talimatname/genel/x/xorg-server/talimat b/talimatname/genel/x/xorg-server/talimat new file mode 100644 index 000000000..2b5d602cb --- /dev/null +++ b/talimatname/genel/x/xorg-server/talimat @@ -0,0 +1,32 @@ +# Tanım: X Pencere Sistemi cekirdegi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xcb-util-keysyms libepoxy xcb-util-image xcb-util-renderutil xcb-util-wm xorg-mesa xorg-glu xorg-pixman xorg-libdmx xorg-libxres xorg-font xorg-xkeyboard-config + +isim=xorg-server +surum=1.18.1 +devir=1 +kaynak=(http://www.x.org/releases/individual/xserver/$isim-$surum.tar.bz2 + http://www.linuxfromscratch.org/patches/downloads/xorg-server/$isim-$surum-add_prime_support-1.patch + http://www.linuxfromscratch.org/patches/downloads/xorg-server/$isim-$surum-wayland_190-1.patch) + +derle() { +cd $isim-$surum + +patch -Np1 -i ../$isim-$surum-add_prime_support-1.patch +patch -Np1 -i ../$isim-$surum-wayland_190-1.patch + +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ +--with-xkb-output=/var/lib/xkb \ +--enable-glamor \ +--with-fontrootdir=/usr/share/fonts \ +--enable-install-setuid \ +--disable-systemd-logind \ +--enable-suid-wrapper +make +make DESTDIR=$PKG install +rm -rf $PKG/var + +# glamor module part of xorg-glamor-egl +rm $PKG/usr/lib/xorg/modules/libglamoregl.{la,so} +} diff --git a/talimatname/genel/x/xorg-server/xorg-server.kur-kos b/talimatname/genel/x/xorg-server/xorg-server.kur-kos new file mode 100644 index 000000000..32283fc1a --- /dev/null +++ b/talimatname/genel/x/xorg-server/xorg-server.kur-kos @@ -0,0 +1,6 @@ +if ( ! grep ICE /etc/sysconfig/createfiles > /dev/null );then + echo "/tmp/.ICE-unix dir 1777 root root" >> /etc/sysconfig/createfiles +fi +if ( ! grep X11 /etc/sysconfig/createfiles > /dev/null );then + echo "/tmp/.X11-unix dir 1777 root root" >> /etc/sysconfig/createfiles +fi diff --git a/talimatname/genel/x/xorg-server/xorg-server.okubeni b/talimatname/genel/x/xorg-server/xorg-server.okubeni new file mode 100644 index 000000000..2ebc17b09 --- /dev/null +++ b/talimatname/genel/x/xorg-server/xorg-server.okubeni @@ -0,0 +1,15 @@ +si la souris reste bloquée ou revient toujours au centre de l'écran, installez le +fichier 15-quirks.conf ds le dossier /etc/X11/xorg.conf.d +le contenu de ce fichier ressemble à: + +Section "InputClass" + Identifier "no need Accelerometer in X" + MatchProduct "Accelerometer" + Option "Ignore" "on" +EndSection +Section "InputClass" + Identifier "no need accelerometer in X" + MatchProduct "accelerometer" + Option "Ignore" "on" +EndSection + diff --git a/talimatname/genel/x/xorg-term/talimat b/talimatname/genel/x/xorg-term/talimat new file mode 100644 index 000000000..a0ef83446 --- /dev/null +++ b/talimatname/genel/x/xorg-term/talimat @@ -0,0 +1,39 @@ +# Tanım: X Pencere Sistemi icin terminal emulatoru +# URL: http://invisible-island.net/xorg-term/ +# Paketçi: milisarge +# Gerekler: xorg-app xorg-fontconfig xorg-libxft + +_isim=xterm +isim=xorg-term +surum=322 +devir=1 +kaynak=(ftp://invisible-island.net/${_name}/${_name}-$surum.tgz + $isim.list) + +derle() { +cd ${_name}-* + +sed -i '/v0/{n;s/new:/new:kb=^?:/}' termcap && +printf '\tkbs=\\177,\n' >> terminfo + +TERMINFO=/usr/share/terminfo \ +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ +--with-app-defaults=/etc/X11/app-defaults +make +make DESTDIR=$PKG install +make DESTDIR=$PKG install-ti + +cat >> $PKG/etc/X11/app-defaults/XTerm << "EOF" +*VT100*locale: true +*VT100*faceName: Monospace +*VT100*faceSize: 10 +*backarrowKeyIsErase: true +*ptyInitialErase: true +EOF +install -m755 -d $PKG/usr/share/applications +install -m644 {xterm,uxterm}.desktop $PKG/usr/share/applications/ +for file in `cat $SRC/$isim.list` +do + rm $PKG/$file +done +} diff --git a/talimatname/genel/x/xorg-term/xorg-term.list b/talimatname/genel/x/xorg-term/xorg-term.list new file mode 100644 index 000000000..1142fa037 --- /dev/null +++ b/talimatname/genel/x/xorg-term/xorg-term.list @@ -0,0 +1,40 @@ +/usr/share/terminfo/v/vs100 +/usr/share/terminfo/x/xterm +/usr/share/terminfo/x/xterm+256color +/usr/share/terminfo/x/xterm+app +/usr/share/terminfo/x/xterm+edit +/usr/share/terminfo/x/xterm+kbs +/usr/share/terminfo/x/xterm+noapp +/usr/share/terminfo/x/xterm+pc+edit +/usr/share/terminfo/x/xterm+pcc0 +/usr/share/terminfo/x/xterm+pcc1 +/usr/share/terminfo/x/xterm+pcc2 +/usr/share/terminfo/x/xterm+pcc3 +/usr/share/terminfo/x/xterm+pce2 +/usr/share/terminfo/x/xterm+pcf0 +/usr/share/terminfo/x/xterm+pcf2 +/usr/share/terminfo/x/xterm+pcfkeys +/usr/share/terminfo/x/xterm+tmux +/usr/share/terminfo/x/xterm+vt+edit +/usr/share/terminfo/x/xterm-16color +/usr/share/terminfo/x/xterm-24 +/usr/share/terminfo/x/xterm-256color +/usr/share/terminfo/x/xterm-88color +/usr/share/terminfo/x/xterm-8bit +/usr/share/terminfo/x/xterm-basic +/usr/share/terminfo/x/xterm-bold +/usr/share/terminfo/x/xterm-color +/usr/share/terminfo/x/xterm-hp +/usr/share/terminfo/x/xterm-new +/usr/share/terminfo/x/xterm-noapp +/usr/share/terminfo/x/xterm-old +/usr/share/terminfo/x/xterm-r5 +/usr/share/terminfo/x/xterm-r6 +/usr/share/terminfo/x/xterm-sco +/usr/share/terminfo/x/xterm-sun +/usr/share/terminfo/x/xterm-vt220 +/usr/share/terminfo/x/xterm-vt52 +/usr/share/terminfo/x/xterm-xf86-v44 +/usr/share/terminfo/x/xterm-xfree86 +/usr/share/terminfo/x/xterms + diff --git a/talimatname/genel/x/xorg-twm/talimat b/talimatname/genel/x/xorg-twm/talimat new file mode 100644 index 000000000..ffc24f583 --- /dev/null +++ b/talimatname/genel/x/xorg-twm/talimat @@ -0,0 +1,18 @@ +# Tanım: Minimal boyutta pencere yoneticisi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-server + +_isim=twm +isim=xorg-twm +surum=1.0.9 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/app/${_name}-$surum.tar.bz2) + +derle() { + cd ${_name}-$surum + sed -i -e '/^rcdir =/s,^\(rcdir = \).*,\1/etc/X11/app-defaults,' src/Makefile.in + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-util-macros/talimat b/talimatname/genel/x/xorg-util-macros/talimat new file mode 100644 index 000000000..e514f0709 --- /dev/null +++ b/talimatname/genel/x/xorg-util-macros/talimat @@ -0,0 +1,17 @@ +# Tanım: X.Org X11 Autotools makrolari +# URL: http://www.x.org +# Paketçi: milisarge +# Gerekler: + +_isim=util-macros +isim=xorg-util-macros +surum=1.19.0 +devir=2 + +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/util/${_name}-$surum.tar.bz2) +derle() { +cd ${_name}-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-xauth/talimat b/talimatname/genel/x/xorg-xauth/talimat new file mode 100644 index 000000000..b8ad8c01b --- /dev/null +++ b/talimatname/genel/x/xorg-xauth/talimat @@ -0,0 +1,18 @@ +# Tanım: X sahiplik dosyasi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-server + +isim=xorg-xauth +surum=1.0.9 +devir=2 +kaynak=(http://xorg.freedesktop.org/releases/individual/app/xauth-$surum.tar.bz2) + +derle() { + cd xauth-$surum + + ./configure --prefix=/usr + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-xbitmaps/talimat b/talimatname/genel/x/xorg-xbitmaps/talimat new file mode 100644 index 000000000..80d70f8fc --- /dev/null +++ b/talimatname/genel/x/xorg-xbitmaps/talimat @@ -0,0 +1,17 @@ +# Tanım: X Pencere Sistemi icin statik grafikler +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: + +_isim=xbitmaps +isim=xorg-xbitmaps +surum=1.1.1 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/data/${_name}-$surum.tar.bz2) + +derle() { +cd ${_name}-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-xcb-util-keysyms/talimat b/talimatname/genel/x/xorg-xcb-util-keysyms/talimat new file mode 100644 index 000000000..afc891dc6 --- /dev/null +++ b/talimatname/genel/x/xorg-xcb-util-keysyms/talimat @@ -0,0 +1,18 @@ +# Tanım: XCB araç kütüphanesi +# URL: http://xcb.freedesktop.org +# Paketçi: milisarge +# Gerekler: libxcb + +isim=xorg-xcb-util-keysyms +surum=0.4.0 +devir=1 +kaynak=(http://xcb.freedesktop.org/dist/xcb-util-keysyms-$surum.tar.bz2) + +derle() { + cd xcb-util-keysyms-$surum + + ./configure --prefix=/usr + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-xclock/talimat b/talimatname/genel/x/xorg-xclock/talimat new file mode 100644 index 000000000..a83136a78 --- /dev/null +++ b/talimatname/genel/x/xorg-xclock/talimat @@ -0,0 +1,17 @@ +# Tanım: X için analog saat +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-libxft xorg-server + +_isim=xclock +isim=xorg-xclock +surum=1.0.7 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/app/${_name}-$surum.tar.bz2) + +derle() { + cd ${_name}-$surum + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-xcursor-themes/talimat b/talimatname/genel/x/xorg-xcursor-themes/talimat new file mode 100644 index 000000000..45aef72d8 --- /dev/null +++ b/talimatname/genel/x/xorg-xcursor-themes/talimat @@ -0,0 +1,17 @@ +# Tanım: X Pencere sistemi fare imlecleri icin temalar +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: xorg-app + +_isim=xcursor-themes +isim=xorg-xcursor-themes +surum=1.0.4 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/data/${_name}-$surum.tar.bz2) + +derle() { + cd ${_name}-$surum + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-xinit/talimat b/talimatname/genel/x/xorg-xinit/talimat new file mode 100644 index 000000000..fdf0cb651 --- /dev/null +++ b/talimatname/genel/x/xorg-xinit/talimat @@ -0,0 +1,18 @@ +# Tanım: X Pencere Sistemi icin oturum hazirlayici +# Paketçi: milisarge +# Gerekler: xorg-server desktop-file-utils shared-mime-info + +_isim=xinit +run=(desktop-file-utils shared-mime-info) +isim=xorg-xinit +surum=1.3.4 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/app/${_name}-$surum.tar.bz2) + +derle() { + cd ${_name}-$surum + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + --with-xorg-xinitdir=/etc/X11/app-defaults + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-xkeyboard-config/talimat b/talimatname/genel/x/xorg-xkeyboard-config/talimat new file mode 100644 index 000000000..2c237df93 --- /dev/null +++ b/talimatname/genel/x/xorg-xkeyboard-config/talimat @@ -0,0 +1,17 @@ +# Tanım: X.org icin klavye konfigurasyonu +# URL: http://www.freedesktop.org/wiki/Software_2fXKeyboardConfig +# Paketçi: milisarge +# Gerekler: xorg-app intltool + +_isim=xkeyboard-config +isim=xorg-xkeyboard-config +surum=2.17 +devir=1 +kaynak=( http://xorg.freedesktop.org/archive/individual/data/${_name}/${_name}-$surum.tar.bz2) + +derle() { +cd ${_name}-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-xkb-rules-symlink=xorg +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg-xtrans/talimat b/talimatname/genel/x/xorg-xtrans/talimat new file mode 100644 index 000000000..cb8fcbb2a --- /dev/null +++ b/talimatname/genel/x/xorg-xtrans/talimat @@ -0,0 +1,17 @@ +# Tanım: X.org trans kutuphanesi +# URL: http://xorg.freedesktop.org +# Paketçi: milisarge +# Gerekler: libxcb + +_isim=xtrans +isim=xorg-xtrans +surum=1.3.5 +devir=1 +kaynak=(http://mirror.switch.ch/ftp/mirror/X11/pub/individual/lib/${_name}-$surum.tar.bz2) + +derle() { +cd ${_name}-$surum +./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg/talimat b/talimatname/genel/x/xorg/talimat new file mode 100644 index 000000000..04150452e --- /dev/null +++ b/talimatname/genel/x/xorg/talimat @@ -0,0 +1,67 @@ +# Tanım: xf86-input-evdev, synaptics, vmmouse, wacom, xf86-video-ati, fbdev, intel, nouveau, vmware sürücüleri +# URL: http://ftp.x.org/archive//individual +# Paketçi: milisarge +# Gerekler: mtdev xorg-libxvmc xorg-server xcb-util xorg-xkeyboard-config xorg-twm xorg-term xorg-xclock xorg-xinit libevdev + +isim=xorg +surum=7.8 +devir=1 +section=driver +kaynak=() + +derle() { +cat > list.md5 << "EOF" +0f209d13b39427c1a6d38d70059b1e8f xf86-input-evdev-2.10.4.tar.bz2 +58e5b7722a402114093bf193962d1e3a xf86-input-synaptics-1.9.0.tar.bz2 +85e2e464b7219c495ad3a16465c226ed xf86-input-vmmouse-13.1.0.tar.bz2 +4faa1d4bf6eb74f40dba8c5cb3c9c3e4 xf86-input-wacom-0.33.0.tar.bz2 +f34d04a755e761e03b459155fa3ddcbb xf86-video-ati-7.8.0.tar.bz2 +3931c0e19d441cc576dc088f9eb9fd73 xf86-video-fbdev-0.4.4.tar.bz2 +2d7b2917ef18c6e97a6f3817c3e9387b xf86-video-nouveau-1.0.13.tar.bz2 +316aaf97eb152eef71dac70c349fb8c7 xf86-video-openchrome-0.5.0.tar.bz2 +a893c37c589f7a31cea929a5d896a0e2 xf86-video-vesa-2.3.4.tar.bz2 +4c3912e4d8947f6c2fc1ee9e2f211d74 xf86-video-vmware-13.2.1.tar.bz2 +EOF +unset MAKEFLAGS +for paket in $(grep -v '^#' list.md5 |cut -d " " -f 3) + do + paketdizini=$(echo $paket | sed 's/.tar.bz2//') + paketismi=$(echo $paket | sed 's/.tar.bz2//') + case $paketismi in + xf86-input-wacom-[0-9]*) + wget http://downloads.sourceforge.net/linuxwacom/$paket;; + *) + wget http://ftp.x.org/archive//individual/$section/$paket;; + esac + grep $paket list.md5 |md5sum -c - + tar -xf $paket + + pushd $paketdizini + case $paketismi in + xf86-input-vmmouse-[0-9]*) + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + --with-udev-rules-dir=/lib/udev/rules.d \ + --without-hal-callouts-dir \ + --without-hal-fdi-dir;; + xf86-input-wacom-[0-9]*) + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-systemd-unit-dir=no;; + *) + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var;; + esac + make + make DESTDIR=$PKG install + popd + done + +# Intel is a bit different +wget ftp://anduin.linuxfromscratch.org/BLFS/xf86-video-intel/xf86-video-intel-20160902.tar.bz2 +tar -xf xf86-video-intel-20160902.tar.bz2 +cd xf86-video-intel +./configure --prefix=/usr \ +--sysconfdir=/etc \ +--localstatedir=/var \ +--enable-kms-only \ +--enable-uxa +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xorg/xorg.kur-kos b/talimatname/genel/x/xorg/xorg.kur-kos new file mode 100755 index 000000000..c38c810bc --- /dev/null +++ b/talimatname/genel/x/xorg/xorg.kur-kos @@ -0,0 +1,8 @@ +cat > /usr/share/X11/xorg.conf.d/10-keyboard.conf << "EOF" +Section "InputClass" + Identifier "Keyboard Defaults" + MatchIsKeyboard "yes" + Option "XkbLayout" "tr" +EndSection +EOF +ln -s /usr/share/X11/xorg.conf.d/10-keyboard.conf /etc/X11/xorg.conf.d/ diff --git a/talimatname/genel/x/xorriso/talimat b/talimatname/genel/x/xorriso/talimat new file mode 100644 index 000000000..605944570 --- /dev/null +++ b/talimatname/genel/x/xorriso/talimat @@ -0,0 +1,18 @@ +# Tanım: ISO 9660 image manipulasyon araci +# URL: https://www.gnu.org/software/xorriso/ +# Paketçi: milisarge +# Gerekler: + +isim=xorriso +surum=1.4.4 +devir=1 +kaynak=(https://www.gnu.org/software/$isim/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + + ./configure --prefix=/usr + + make all + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xpad/talimat b/talimatname/genel/x/xpad/talimat new file mode 100644 index 000000000..80bbb56bc --- /dev/null +++ b/talimatname/genel/x/xpad/talimat @@ -0,0 +1,16 @@ +# Tanım: Yapiskan notlar benzeri not alma uygulamasi +# URL: http://mterry.name/xpad/ +# Paketçi: dei +# Gerekler: intltool xorg-libsm gtk3 + +isim=xpad +surum=4.3.1 +devir=2 +kaynak=(http://launchpad.net/xpad/trunk/4.3/+download/xpad-$surum.tar.bz2) + +derle(){ + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install helpdir=$PKG/usr/lib/xpad/help +} diff --git a/talimatname/genel/x/xpdf/talimat b/talimatname/genel/x/xpdf/talimat new file mode 100644 index 000000000..f4b4391e8 --- /dev/null +++ b/talimatname/genel/x/xpdf/talimat @@ -0,0 +1,31 @@ +# Tanım: PDF goruntuleyici +# URL: http://foolabs.com/xpdf +# Paketçi: milisarge +# Gerekler: lesstif + +isim=xpdf +surum=3.04 +devir=1 +kaynak=(ftp://ftp.foolabs.com/pub/xpdf/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + + sed -i 's/\(s = XmStringCreateLocalized(\)/\1(char *)/g' xpdf/XPDFViewer.cc + + ./configure \ + --prefix=/usr \ + --with-Xm-library=/usr/lib \ + --with-Xm-includes=/usr/include/Xm \ + --with-freetype2-includes=/usr/include/freetype2 \ + --sysconfdir=/etc \ + --enable-a4-paper \ + --enable-opi \ + --with-t1-library=no \ + --mandir=/usr/man + + make + make install DESTDIR=$PKG + + find $PKG/usr/bin $PKG/usr/man/man1 -iname 'pdf*' -delete +} diff --git a/talimatname/genel/x/xquisite/talimat b/talimatname/genel/x/xquisite/talimat new file mode 100644 index 000000000..e902b7991 --- /dev/null +++ b/talimatname/genel/x/xquisite/talimat @@ -0,0 +1,14 @@ +# Tanım: XFCE icin xquisite icon temasi +# URL: http://xfce-look.org/content/show.php/Xquisite?content=69735 +# Paketçi: milisarge +# Gerekler: + +isim=xquisite +surum=0.4.6 +devir=1 +kaynak=(http://downloads.nutyx.org/files/$isim-$surum.tar.gz) + +derle() { +mkdir -p $PKG//usr/share/icons/ +cp -a * $PKG//usr/share/icons/ +} diff --git a/talimatname/genel/x/xreader/talimat b/talimatname/genel/x/xreader/talimat new file mode 100644 index 000000000..c6fd08db7 --- /dev/null +++ b/talimatname/genel/x/xreader/talimat @@ -0,0 +1,19 @@ +# Tanım: PDF ve Postscript gibi dosyalar için belge görüntüleyici. X-Apps Projesi. +# URL: https://github.com/linuxmint/xreader +# Paketçi: milisarge yasarciv +# Gerekler: ghostscript poppler-glib djvulibre desktop-file-utils gsettings-desktop-schemas gtk3 gtk2 libsecret mate-common yelp-tools + +isim=xreader +surum=1.6.2 +devir=1 +kaynak=(https://github.com/linuxmint/$isim/archive/$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./autogen.sh --prefix="/usr" \ + --localstatedir="/var" \ + --libexecdir="/usr/lib/$isim" \ + --disable-caja --disable-nemo + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xreader/xreader.kur-kos b/talimatname/genel/x/xreader/xreader.kur-kos new file mode 100644 index 000000000..a96c64f40 --- /dev/null +++ b/talimatname/genel/x/xreader/xreader.kur-kos @@ -0,0 +1,3 @@ +glib-compile-schemas /usr/share/glib-2.0/schemas/ +gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor +update-desktop-database -q diff --git a/talimatname/genel/x/xsane/talimat b/talimatname/genel/x/xsane/talimat new file mode 100644 index 000000000..e8de22f42 --- /dev/null +++ b/talimatname/genel/x/xsane/talimat @@ -0,0 +1,18 @@ +# Tanım: SANE-1.0.24 için ön uç. Görüntü kalitesini ve kullanımı kolaylaştırmak için ek özelliklere sahiptir +# URL: http://www.xsane.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: gtk2 sane lcms gimp libjpeg-turbo + +isim=xsane +surum=0.999 +devir=2 + +kaynak=(http://www.xsane.org/download/xsane-$surum.tar.gz) + +derle() { +cd xsane-$surum +sed -i -e 's/png_ptr->jmpbuf/png_jmpbuf(png_ptr)/' src/xsane-save.c +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xscreensaver/talimat b/talimatname/genel/x/xscreensaver/talimat new file mode 100644 index 000000000..7cb9372ea --- /dev/null +++ b/talimatname/genel/x/xscreensaver/talimat @@ -0,0 +1,30 @@ +# Tanım: X Pencere Yoneticisi icin ekran koruyucu +# URL: http://www.jwz.org/xscreensaver/ +# Paketçi: milisarge +# Gerekler: bc libglade xorg-libxmu xorg-libxt xorg-libxpm +# Grup: sistem + +isim=xscreensaver +surum=5.38 +devir=1 +kaynak=(http://www.jwz.org/xscreensaver/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--libexecdir=/usr/lib \ +--without-gnome +make +make install_prefix=$PKG install +chmod 755 $PKG/usr/bin/xscreensaver +mkdir -p $PKG/etc/pam.d +cat > $PKG/etc/pam.d/xscreensaver << "EOF" +# Begin /etc/pam.d/xscreensaver + +auth include system-auth +account include system-account + +# End /etc/pam.d/xscreensaver +EOF +} + diff --git a/talimatname/genel/x/xtables-addons/talimat b/talimatname/genel/x/xtables-addons/talimat new file mode 100644 index 000000000..de8b3eedb --- /dev/null +++ b/talimatname/genel/x/xtables-addons/talimat @@ -0,0 +1,22 @@ +# Tanım: Xtables-addons patch-o-matic'in (-ng) devamı niteliğindedir. Ana Xtables paketinde kabul edilmeyen uzantılar içeriyor. +# URL: http://xtables-addons.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: iptables libmnl + +isim=xtables-addons +surum=2.10 +devir=1 +kaynak=(http://downloads.sourceforge.net/project/$isim/Xtables-addons/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + + ./configure \ + --prefix=/usr \ + --libexecdir=/usr/lib \ + --mandir=/usr/man \ + --disable-dependency-tracking + + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/x/xulrunner/talimat b/talimatname/genel/x/xulrunner/talimat new file mode 100644 index 000000000..230c0ce35 --- /dev/null +++ b/talimatname/genel/x/xulrunner/talimat @@ -0,0 +1,21 @@ +# Tanım: Mozilla Çalışma Zamanı Ortamı +# URL: http://wiki.mozilla.org/XUL:Xul_Runner +# Paketçi: milisarge +# Gerekler: + +isim=xulrunner +surum=41.0.2 +devir=1 +kaynak=(http://ftp.mozilla.org/pub/xulrunner/releases/$surum/source/$isim-$surum.source.tar.xz) + +derle() { + mkdir ${PKG}/opt/ + + mkdir ${PKG}/usr/ + + mkdir ${PKG}/usr/bin/ + + cp -R "${SRC}/mozilla-release/${isim}" "${PKG}/opt/${isim}" + + ln -s "/opt/${isim}/${isim}" "${PKG}/usr/bin/${isim}" +} diff --git a/talimatname/genel/x/xvid/talimat b/talimatname/genel/x/xvid/talimat new file mode 100644 index 000000000..dfc2104da --- /dev/null +++ b/talimatname/genel/x/xvid/talimat @@ -0,0 +1,23 @@ +# Tanım: Acik kaynak kodlu MPEG-4 kodlayici +# URL: http://xvid.org +# Paketçi: milisarge +# Gerekler: yasm + +isim=xvid +surum=1.3.3 +devir=1 +kaynak=( http://downloads.xvid.org/downloads/xvidcore-$surum.tar.gz ) + +derle() { +cd xvidcore/build/generic +./configure --prefix=/usr +make +make DESTDIR=$PKG install +chmod -v 755 $PKG/usr/lib/libxvidcore.so.4.3 +ln -v -sf libxvidcore.so.4.3 $PKG/usr/lib/libxvidcore.so.4 +ln -v -sf libxvidcore.so.4 $PKG/usr/lib/libxvidcore.so +install -v -m755 -d $PKG/usr/share/doc/xvidcore-$surum/examples +install -v -m644 ../../doc/* $PKG/usr/share/doc/xvidcore-$surum +install -v -m644 ../../examples/* \ +$PKG/usr/share/doc/xvidcore-$surum/examples +} diff --git a/talimatname/genel/x/xviewer/talimat b/talimatname/genel/x/xviewer/talimat new file mode 100644 index 000000000..3f9f06476 --- /dev/null +++ b/talimatname/genel/x/xviewer/talimat @@ -0,0 +1,19 @@ +# Tanım: Basit ve kullanımı kolay bir resim görüntüleyici. +# URL: https://github.com/linuxmint/xviewer +# Paketçi: milisarge +# Gerekler: gnome-common gnome-desktop libglade yelp-tools libpeas + +isim=xviewer +surum=1.6.1 +devir=1 +kaynak=(https://github.com/linuxmint/$isim/archive/$surum.tar.gz::$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + gnome-autogen.sh --prefix="/usr" \ + --localstatedir="/var" \ + --libexecdir="/usr/lib/$isim" + make + make DESTDIR=$PKG install + +} diff --git a/talimatname/genel/x/xviewer/xviewer.kur-kos b/talimatname/genel/x/xviewer/xviewer.kur-kos new file mode 100644 index 000000000..088752e4d --- /dev/null +++ b/talimatname/genel/x/xviewer/xviewer.kur-kos @@ -0,0 +1 @@ +/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas diff --git a/talimatname/genel/x/xzoom/talimat b/talimatname/genel/x/xzoom/talimat new file mode 100644 index 000000000..cf4bb809c --- /dev/null +++ b/talimatname/genel/x/xzoom/talimat @@ -0,0 +1,20 @@ +# Tanım: Ekran Büyüteci +# URL: ftp://sunsite.unc.edu/pub/linux/libs/X/ +# Paketçi: milisarge +# Gerekler: xorg-imake xorg-libxt xorg-libxext xorg-gccmakedep + +isim=xzoom +surum=0.3 +devir=1 +kaynak=(http://webdiis.unizar.es/pub/unix/X11/$isim-$surum.tgz +ftp://ftp.acc.umu.se/mirror/cdimage/snapshot/Debian/pool/main/x/xzoom/xzoom_0.3-23.diff.gz) + +derle() { + cd "$isim-$surum" + gzip -d $SRC/xzoom_0.3-23.diff.gz + patch -Np1 < "$SRC/xzoom_0.3-23.diff" + xmkmf -a + sed -i "s@-O2@$CFLAGS@" ./Makefile + make + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/y/yacy/talimat b/talimatname/genel/y/yacy/talimat new file mode 100644 index 000000000..ce6e69284 --- /dev/null +++ b/talimatname/genel/y/yacy/talimat @@ -0,0 +1,33 @@ +# Tanım: p2p merkezi olmayan arama motoru +# URL: http://yacy.net/ +# Paketçi: milisarge@gmail.com +# Gerekler: openjdk apache-ant + +isim=yacy +surum=1.92 +_surum=20161226_9000 +devir=1 + +kaynak=("http://www.yacy.net/release/yacy_v${surum}_${_surum}.tar.gz" + yacy.rc) + +derle() { + export JAVA_HOME=/opt/jdk + cd "$SRC/$isim" + /opt/ant/bin/ant all + /opt/ant/bin/ant installonlinux -DDESTDIR="$PKG/" + install -d "$PKG"/usr/share/java/yacy + install -t "$PKG"/usr/share/java/yacy/ lib/*.jar + + install -Dm644 "${SRC}/yacy.rc" "${PKG}/etc/rc.d/init.d/yacy" + + # ayar kısayol + ln -s /var/cache/yacy/DATA/SETTINGS/yacy.conf $PKG/etc/yacy/yacy.conf + + # servis dosya + install -d $PKG/usr/bin + install -m 0750 $SRC/$isim/startYACY.sh $PKG/usr/bin/yacy-start + install -m 0750 $SRC/$isim/stopYACY.sh $PKG/usr/bin/yacy-stop + + rm -f "$PKG"/usr/share/yacy/DATA "$PKG"/var/log/yacy +} diff --git a/talimatname/genel/y/yacy/yacy.rc b/talimatname/genel/y/yacy/yacy.rc new file mode 100644 index 000000000..99e82e7c6 --- /dev/null +++ b/talimatname/genel/y/yacy/yacy.rc @@ -0,0 +1,37 @@ +#!/bin/sh +# +# /etc/rc.d/yacy: start/stop yacy daemon +# + +# User settings here +DAEMON=yacy +RUN_AS_USER=yacy +# end of user settings + +RETVAL=0 + +case $1 in + start) + echo -n "Starting $DAEMON..." + su $RUN_AS_USER -c /usr/sbin/$DAEMON-start &> /dev/null & RETVAL=$? + echo " done." + ;; + stop) + echo -n "Shutting down $DAEMON..." + su $RUN_AS_USER -c /usr/sbin/$DAEMON-stop &> /dev/null & RETVAL=$? + echo " done." + ;; + restart) + $0 stop + sleep 20 + $0 start + RETVAL=$? + ;; + *) + echo "usage: $0 [start|stop|restart]" + ;; +esac + +exit $RETVAL + +# End of file diff --git a/talimatname/genel/y/yad/talimat b/talimatname/genel/y/yad/talimat new file mode 100644 index 000000000..1f534b0be --- /dev/null +++ b/talimatname/genel/y/yad/talimat @@ -0,0 +1,16 @@ +# Tanım: shell skriptleri icin dialog penceresi araci +# URL: https://sourceforge.net/projects/yad-dialog/ +# Paketçi: milisarge +# Gerekler: gtk2 webkitgtk2 gtk3 + +isim=yad +surum=0.39.0 +devir=1 +kaynak=(https://sourceforge.net/projects/yad-dialog/files/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/y/yajl/talimat b/talimatname/genel/y/yajl/talimat new file mode 100644 index 000000000..19bc6ce7c --- /dev/null +++ b/talimatname/genel/y/yajl/talimat @@ -0,0 +1,18 @@ +# Tanım: Başka bir JSON Kütüphanesi +# URL: http://lloyd.github.com/yajl +# Paketçi: Cihan_Alkan +# Gerekler: cmake +# Grup: kütüphane + +isim=yajl +surum=2.1.0 +devir=1 +kaynak=(https://github.com/lloyd/yajl/archive/$surum.tar.gz::yajl-$surum.tar.gz) + +derle() { + cd yajl-$surum + cmake -DCMAKE_INSTALL_PREFIX=/usr . + make + make DESTDIR="$PKG" install + install -Dm644 COPYING "$PKG/usr/share/licenses/yajl/LICENSE" +} diff --git a/talimatname/genel/y/yakuake/talimat b/talimatname/genel/y/yakuake/talimat new file mode 100644 index 000000000..948db999b --- /dev/null +++ b/talimatname/genel/y/yakuake/talimat @@ -0,0 +1,20 @@ +# Tanım: KDE konsole temelli aşağı açılan terminal emulatoru +# URL: https://www.kde.org/ +# Paketçi: alihan-ozturk28@hotmail.com +# Gerekler: kf5-extra-cmake-modules konsole kf5-karchive kf5-kconfig kf5-kcoreaddons kf5-kcrash kf5-kdbusaddons kf5-kglobalaccel kf5-ki18n kf5-kiconthemes kf5-kio kf5-knewstuff kf5-knotifications kf5-knotifyconfig kf5-kparts kf5-kwidgetsaddons kf5-kwindowsystem + +isim=yakuake +surum=3.0.2 +devir=1 +kaynak=( http://download.kde.org/stable/$isim/$surum/src/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -Wno-dev + +make +make DESTDIR=$PKG install +} + diff --git a/talimatname/genel/y/yaml-cpp/1f4b6d5c855b59e849b7228090981c520928c2a4.patch b/talimatname/genel/y/yaml-cpp/1f4b6d5c855b59e849b7228090981c520928c2a4.patch new file mode 100644 index 000000000..91ea79eae --- /dev/null +++ b/talimatname/genel/y/yaml-cpp/1f4b6d5c855b59e849b7228090981c520928c2a4.patch @@ -0,0 +1,23 @@ +From 1f4b6d5c855b59e849b7228090981c520928c2a4 Mon Sep 17 00:00:00 2001 +From: Ovidiu-Florin BOGDAN +Date: Fri, 2 Dec 2016 16:51:07 +0200 +Subject: [PATCH] Remove prefix duplication in yaml-cpp.pc.cmake + +--- + yaml-cpp.pc.cmake | 6 ++---- + 1 file changed, 2 insertions(+), 4 deletions(-) + +diff --git a/yaml-cpp.pc.cmake b/yaml-cpp.pc.cmake +index 04d343f..044ef78 100644 +--- a/yaml-cpp.pc.cmake ++++ b/yaml-cpp.pc.cmake +@@ -1,7 +1,5 @@ +-prefix=@CMAKE_INSTALL_PREFIX@ +-exec_prefix=@CMAKE_INSTALL_PREFIX@ +-libdir=${prefix}/@LIB_INSTALL_DIR@ +-includedir=${prefix}/@INCLUDE_INSTALL_ROOT_DIR@ ++libdir=@LIB_INSTALL_DIR@ ++includedir=@INCLUDE_INSTALL_ROOT_DIR@ + + Name: Yaml-cpp + Tanım: A YAML parser and emitter for C++ diff --git a/talimatname/genel/y/yaml-cpp/500db60f899ae6845039d4eca503133d0db81dbd.patch b/talimatname/genel/y/yaml-cpp/500db60f899ae6845039d4eca503133d0db81dbd.patch new file mode 100644 index 000000000..d71375c13 --- /dev/null +++ b/talimatname/genel/y/yaml-cpp/500db60f899ae6845039d4eca503133d0db81dbd.patch @@ -0,0 +1,79 @@ +From 500db60f899ae6845039d4eca503133d0db81dbd Mon Sep 17 00:00:00 2001 +From: Paul Novotny +Date: Wed, 25 Nov 2015 11:33:36 -0500 +Subject: [PATCH] Include cmake files in install + +This adds yaml-cpp-config.cmake, yaml-cpp-config-version.cmake, and +yaml-cpp-targets.cmake to the cmake install. As a result, cmake's +find_package can easily find yaml-cpp for software that depends on +yaml-cpp. + +Add code to install cmake files to $CMAKE_INSTALL_PREFIX/CMake on +Windows, which is the de-facto standard. + +Closes jbeder/yaml-cpp#336 jbeder/yaml-cpp#127 +--- + CMakeLists.txt | 28 +++++++++++++++++++++++----- + 1 file changed, 23 insertions(+), 5 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 5b326a3..cbaad07 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -256,15 +256,15 @@ else() + set(_library_dir lib) + endif() + +-set(INCLUDE_INSTALL_ROOT_DIR include) ++set(INCLUDE_INSTALL_ROOT_DIR ${CMAKE_INSTALL_PREFIX}/include) + + set(INCLUDE_INSTALL_DIR ${INCLUDE_INSTALL_ROOT_DIR}/yaml-cpp) +-set(LIB_INSTALL_DIR "${_library_dir}${LIB_SUFFIX}") ++set(LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/${_library_dir}${LIB_SUFFIX}") + + set(_INSTALL_DESTINATIONS +- RUNTIME DESTINATION bin ++ RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin + LIBRARY DESTINATION ${LIB_INSTALL_DIR} +- ARCHIVE DESTINATION "lib${LIB_SUFFIX}" ++ ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}" + ) + + +@@ -300,7 +300,7 @@ if(MSVC) + endif() + endif() + +-install(TARGETS yaml-cpp ${_INSTALL_DESTINATIONS}) ++install(TARGETS yaml-cpp EXPORT yaml-cpp-targets ${_INSTALL_DESTINATIONS}) + install( + DIRECTORY ${header_directory} + DESTINATION ${INCLUDE_INSTALL_DIR} +@@ -316,9 +316,27 @@ set(EXPORT_TARGETS yaml-cpp CACHE INTERNAL "export targets") + set(CONFIG_INCLUDE_DIRS "${YAML_CPP_SOURCE_DIR}/include") + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/yaml-cpp-config.cmake.in + "${PROJECT_BINARY_DIR}/yaml-cpp-config.cmake" @ONLY) ++ ++if(WIN32 AND NOT CYGWIN) ++ set(INSTALL_CMAKE_DIR ${CMAKE_INSTALL_PREFIX}/CMake) ++else() ++ set(INSTALL_CMAKE_DIR ${LIB_INSTALL_DIR}/cmake/yaml-cpp) ++endif() ++ ++file(RELATIVE_PATH REL_INCLUDE_DIR "${INSTALL_CMAKE_DIR}" "${INCLUDE_INSTALL_ROOT_DIR}") ++set(CONFIG_INCLUDE_DIRS "\${YAML_CPP_CMAKE_DIR}/${REL_INCLUDE_DIR}") ++configure_file(${CMAKE_CURRENT_SOURCE_DIR}/yaml-cpp-config.cmake.in ++ "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/yaml-cpp-config.cmake" @ONLY) ++ + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/yaml-cpp-config-version.cmake.in + "${PROJECT_BINARY_DIR}/yaml-cpp-config-version.cmake" @ONLY) + ++install(FILES ++ "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/yaml-cpp-config.cmake" ++ "${PROJECT_BINARY_DIR}/yaml-cpp-config-version.cmake" ++ DESTINATION "${INSTALL_CMAKE_DIR}" COMPONENT dev) ++install(EXPORT yaml-cpp-targets DESTINATION ${INSTALL_CMAKE_DIR}) ++ + if(UNIX) + set(PC_FILE ${CMAKE_BINARY_DIR}/yaml-cpp.pc) + configure_file("yaml-cpp.pc.cmake" ${PC_FILE} @ONLY) diff --git a/talimatname/genel/y/yaml-cpp/talimat b/talimatname/genel/y/yaml-cpp/talimat new file mode 100644 index 000000000..faa4dd929 --- /dev/null +++ b/talimatname/genel/y/yaml-cpp/talimat @@ -0,0 +1,22 @@ +# Tanım: YAML ayrıştırıcı ve yayıcı C ++, YAML 1.2 spesifikasyonu etrafında yazılmıştır +# URL: https://github.com/jbeder/yaml-cpp +# Paketçi: Cihan Alkan +# Gerekler: boost cmake + +isim=yaml-cpp +surum=0.5.3 +devir=1 + +kaynak=(https://github.com/jbeder/yaml-cpp/archive/release-$surum.tar.gz + 500db60f899ae6845039d4eca503133d0db81dbd.patch + 1f4b6d5c855b59e849b7228090981c520928c2a4.patch) + +derle() { +cd yaml-cpp-release-$surum + patch -Np1 < $SRC/500db60f899ae6845039d4eca503133d0db81dbd.patch + patch -Np1 < $SRC/1f4b6d5c855b59e849b7228090981c520928c2a4.patch + + cmake . -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=ON + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/y/yaml/talimat b/talimatname/genel/y/yaml/talimat new file mode 100644 index 000000000..aa3ae0241 --- /dev/null +++ b/talimatname/genel/y/yaml/talimat @@ -0,0 +1,15 @@ +# Tanım: Ayrıştırma ve YAML yaymak için C kitaplığı (YAML Markup Language değil) +# URL: http://pyyaml.org/ +# Paketçi: milisarge +# Gerekler: doxygen + +isim=yaml +surum=0.1.7 +devir=1 +kaynak=(http://pyyaml.org/download/libyaml/yaml-$surum.tar.gz) + +derle() { + cd yaml-$surum + ./configure --prefix=/usr --disable-static + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/y/yarn/talimat b/talimatname/genel/y/yarn/talimat new file mode 100644 index 000000000..12582986b --- /dev/null +++ b/talimatname/genel/y/yarn/talimat @@ -0,0 +1,24 @@ +# Tanım: Nodejs için hızlı, güvenilir ve güvenli bağımlılık yönetimi +# URL: http://yarnpkg.com +# Paketçi: Cihan_Alkan +# Gerekler: node +# Grup: geliştirme + +isim=yarn +surum=1.3.2 +devir=1 +kaynak=(https://github.com/yarnpkg/yarn/releases/download/v$surum/yarn-v$surum.tar.gz) + +derle() { + + cd yarn-v${surum} + install -dm755 "$PKG"/usr/lib/node_modules/yarn + cp -R * "$PKG"/usr/lib/node_modules/yarn + + install -dm755 "$PKG"/usr/bin + ln -s /usr/lib/node_modules/yarn/bin/yarn.js "$PKG"/usr/bin/yarn + ln -s /usr/lib/node_modules/yarn/bin/yarn.js "$PKG"/usr/bin/yarnpkg + + install -Dm644 LICENSE "$PKG/usr/share/licenses/$isim/LICENSE" + install -Dm644 README.md "$PKG/usr/share/doc/$isim/README.md" +} diff --git a/talimatname/genel/y/yasm/talimat b/talimatname/genel/y/yasm/talimat new file mode 100644 index 000000000..1b507c8ca --- /dev/null +++ b/talimatname/genel/y/yasm/talimat @@ -0,0 +1,19 @@ +# Tanım: Bir cok sentaks ve mimari destekleyen Assembler +# URL: http://www.tortall.net/projects/yasm/ +# Paketçi: milisarge +# Gerekler: + +isim=yasm +surum=1.3.0 +devir=1 +kaynak=(http://www.tortall.net/projects/$isim/releases/$isim-$surum.tar.gz ) + + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/y/yate/talimat b/talimatname/genel/y/yate/talimat new file mode 100644 index 000000000..878b23d30 --- /dev/null +++ b/talimatname/genel/y/yate/talimat @@ -0,0 +1,24 @@ +# Tanım: Yeni nesil telefon motoru +# URL: http://www.yate.ro/ +# Paketçi: milisarge CihanAlkan +# Gerekler: speex gsm postgresql mariadb alsa-lib openssl sqlite qt4 +# Grup: ağ + +isim=yate +surum=6.0.0 +devir=1 +kaynak=(http://yate.null.ro/tarballs/yate6/yate-$surum-1.tar.gz) + +derle() { + cd $SRC/$isim-$surum || cd $SRC/$isim + ./autogen.sh + export LDFLAGS="${LDFLAGS//-Wl,--as-needed}" + export PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --with-libpq \ + --with-mysql \ + --without-openh323 + make -j1 + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/y/yelp-tools/talimat b/talimatname/genel/y/yelp-tools/talimat new file mode 100644 index 000000000..2f5bef3ee --- /dev/null +++ b/talimatname/genel/y/yelp-tools/talimat @@ -0,0 +1,17 @@ +# Tanım: Yelp dokumantasyonu hazirlamak icin araclar +# URL: http://www.gnome.org/ +# Paketçi: milisarge +# Gerekler: libxslt libxml2 yelp-xsl itstool +# Grup: kütüphane + +isim=yelp-tools +surum=3.18.0 +devir=1 +kaynak=(http://download.gnome.org/sources/$isim/${surum:0:4}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/y/yelp-xsl/talimat b/talimatname/genel/y/yelp-xsl/talimat new file mode 100644 index 000000000..2442bd62f --- /dev/null +++ b/talimatname/genel/y/yelp-xsl/talimat @@ -0,0 +1,17 @@ +# Tanım: Yelp icin stil dosyalari +# URL: http://www.gnome.org/ +# Paketçi: milisarge +# Gerekler: itstool libxslt intltool +# Grup: kütüphane + +isim=yelp-xsl +surum=3.27.1 +devir=1 +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${surum:0:4}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/y/yelp/talimat b/talimatname/genel/y/yelp/talimat new file mode 100644 index 000000000..b1c25b449 --- /dev/null +++ b/talimatname/genel/y/yelp/talimat @@ -0,0 +1,17 @@ +# Tanım: Gnome icin yardim dosyalari +# URL: http://www.gnome.org/ +# Paketçi: milisarge +# Gerekler: itstool intltool gtk-doc libxslt hicolor-icon-theme webkit2gtk3 webkitgtk3 yelp-xsl desktop-file-utils +# Grup: kütüphane + +isim=yelp +surum=3.27.1 +devir=1 +kaynak=(http://ftp.gnome.org/pub/gnome/sources/$isim/${surum%.*}/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr --disable-static + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/y/yelp/yelp.kur-kos b/talimatname/genel/y/yelp/yelp.kur-kos new file mode 100644 index 000000000..fe3a6a284 --- /dev/null +++ b/talimatname/genel/y/yelp/yelp.kur-kos @@ -0,0 +1,3 @@ +glib-compile-schemas usr/share/glib-2.0/schemas > /dev/null 2>&1 +[ -f usr/bin/gtk-update-icon-cache ] && gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +[ -f usr/bin/update-desktop-database ] && update-desktop-database -q diff --git a/talimatname/genel/y/you-get/talimat b/talimatname/genel/y/you-get/talimat new file mode 100644 index 000000000..1d634cb7d --- /dev/null +++ b/talimatname/genel/y/you-get/talimat @@ -0,0 +1,16 @@ +# Tanım: Python3 ile yazılmış bir YouTube,Youku,Sohu,Tudou,QQ,Sina,PPTV,Xiami,Vimeo,ifeng,AcFun,bilibili,CNTV video indiricisi. +# URL: http://www.soimort.org/you-get/ +# Paketçi: Cihan Alkan +# Gerekler: python3 python3-setuptools +# Grup: ağ + +isim=you-get +surum=0.4.1011 +devir=1 +kaynak=(https://github.com/soimort/you-get/archive/v$surum.tar.gz::you-get-$surum.tar.gz) + +derle() { + cd ${isim}-${surum} + python3 setup.py build + python3 setup.py install --root="$PKG/" --optimize=1 +} diff --git a/talimatname/genel/y/youtube-dl-gui/talimat b/talimatname/genel/y/youtube-dl-gui/talimat new file mode 100644 index 000000000..5d7f9608e --- /dev/null +++ b/talimatname/genel/y/youtube-dl-gui/talimat @@ -0,0 +1,23 @@ +# Tanım: WxPython'da yazılmış popüler youtube-dl nin çapraz platform arayüzü +# URL: https://github.com/MrS0m30n3/youtube-dl-gui +# Paketçi: Cihan_Alkan +# Gerekler: python wxpython pytwodict gtk-update-icon-cache ffmpeg youtube-dl +# Grup: medya + +isim=youtube-dl-gui +surum=0.4 +devir=1 +kaynak=(https://github.com/MrS0m30n3/youtube-dl-gui/archive/0.4.tar.gz::$isim-$surum.tar.gz + youtube-dl-gui.desktop + youtube_dl_gui.po) + +derle() { + cd $isim-$surum + # ed ile + #printf '%s\n' '/LOCAL_NAMES/a' " ('tr_TR', 'Turkish')," . w | ed -s optionsframe.py + sed -i -e '/LOCALE_NAMES/a \' -e " ('tr_TR', 'Turkish')," youtube_dl_gui//optionsframe.py + install -Dm644 ../youtube_dl_gui.po $SRC/$isim-$surum/youtube_dl_gui/locale/tr_TR/LC_MESSAGES/youtube_dl_gui.po + install -Dm644 ../youtube-dl-gui.desktop "$PKG/usr/share/applications/youtube-dl-gui.desktop" + install -Dm644 LICENSE "$PKG/usr/share/licenses/$isim/LICENSE" + python setup.py install --root="$PKG" --optimize=1 +} diff --git a/talimatname/genel/y/youtube-dl-gui/youtube-dl-gui.desktop b/talimatname/genel/y/youtube-dl-gui/youtube-dl-gui.desktop new file mode 100644 index 000000000..4c11f8cac --- /dev/null +++ b/talimatname/genel/y/youtube-dl-gui/youtube-dl-gui.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=Youtube-dl GUI +Exec=youtube-dl-gui +Icon=youtube-dl-gui +Categories=Network; +Comment=youtube-dl için arayüz diff --git a/talimatname/genel/y/youtube-dl-gui/youtube_dl_gui.po b/talimatname/genel/y/youtube-dl-gui/youtube_dl_gui.po new file mode 100644 index 000000000..95564d3c0 --- /dev/null +++ b/talimatname/genel/y/youtube-dl-gui/youtube_dl_gui.po @@ -0,0 +1,590 @@ +# Youtube-dlG localization file. +# FIRST AUTHOR: Sotiris Papadopoulos , 2015. +# +msgid "" +msgstr "" +"Project-Id-Version: youtube-dlg 0.4\n" +"POT-Creation-Date: 2017-06-15 17:13+EEST\n" +"PO-Revision-Date: 2018-01-03 19:29+0200\n" +"Last-Translator: Cihan Alkan \n" +"Language-Team: tr\n" +"Language: tr_TR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: pygettext.py 1.5\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 2.0.5\n" + +#: youtube_dl_gui/formats.py:9 youtube_dl_gui/formats.py:108 +msgid "ID" +msgstr "ID" + +#: youtube_dl_gui/formats.py:10 youtube_dl_gui/formats.py:109 +#: youtube_dl_gui/mainframe.py:140 +msgid "Title" +msgstr "Başlık" + +#: youtube_dl_gui/formats.py:11 youtube_dl_gui/formats.py:110 +msgid "Title + ID" +msgstr "Başlık + ID" + +#: youtube_dl_gui/formats.py:12 youtube_dl_gui/formats.py:111 +msgid "Title + Quality" +msgstr "Başlık + Kalite" + +#: youtube_dl_gui/formats.py:13 youtube_dl_gui/formats.py:112 +msgid "Title + ID + Quality" +msgstr "Başlık + ID +Kalite" + +#: youtube_dl_gui/formats.py:14 youtube_dl_gui/formats.py:113 +msgid "Custom" +msgstr "Özel" + +#: youtube_dl_gui/formats.py:19 youtube_dl_gui/formats.py:118 +#: youtube_dl_gui/mainframe.py:503 youtube_dl_gui/mainframe.py:506 +msgid "default" +msgstr "Varsayılan" + +#: youtube_dl_gui/mainframe.py:97 +msgid "Enter URLs below" +msgstr "URL'leri aşağıda girin" + +#: youtube_dl_gui/mainframe.py:98 +msgid "Update" +msgstr "Güncelle" + +#: youtube_dl_gui/mainframe.py:99 youtube_dl_gui/optionsframe.py:41 +msgid "Options" +msgstr "Ayarlar" + +#: youtube_dl_gui/mainframe.py:100 youtube_dl_gui/optionsframe.py:589 +msgid "Stop" +msgstr "Dur" + +#: youtube_dl_gui/mainframe.py:101 +msgid "Info" +msgstr "Bilgi" + +#: youtube_dl_gui/mainframe.py:102 +msgid "Welcome" +msgstr "Hoşgeldiniz" + +#: youtube_dl_gui/mainframe.py:103 +msgid "Warning" +msgstr "Uyarı" + +#: youtube_dl_gui/mainframe.py:105 +msgid "Add" +msgstr "Ekle" + +#: youtube_dl_gui/mainframe.py:106 +msgid "Download list" +msgstr "İndirme Listesi" + +#: youtube_dl_gui/mainframe.py:107 youtube_dl_gui/mainframe.py:516 +#: youtube_dl_gui/mainframe.py:534 +msgid "Delete" +msgstr "Sil" + +#: youtube_dl_gui/mainframe.py:108 +msgid "Play" +msgstr "Oynat" + +#: youtube_dl_gui/mainframe.py:109 +msgid "Up" +msgstr "Yukarı" + +#: youtube_dl_gui/mainframe.py:110 +msgid "Down" +msgstr "Aşağı" + +#: youtube_dl_gui/mainframe.py:111 +msgid "Reload" +msgstr "Yeniden Yükle" + +#: youtube_dl_gui/mainframe.py:112 youtube_dl_gui/mainframe.py:448 +#: youtube_dl_gui/mainframe.py:649 +msgid "Pause" +msgstr "Bekle" + +#: youtube_dl_gui/mainframe.py:113 youtube_dl_gui/mainframe.py:865 +#: youtube_dl_gui/mainframe.py:866 youtube_dl_gui/optionsframe.py:587 +msgid "Start" +msgstr "Başlat" + +#: youtube_dl_gui/mainframe.py:114 +msgid "About" +msgstr "Hakkında" + +#: youtube_dl_gui/mainframe.py:115 +msgid "View Log" +msgstr "Günlük Göster" + +#: youtube_dl_gui/mainframe.py:117 +msgid "Successfully downloaded {0} URL(s) in {1} day(s) {2} hour(s) {3} minute(s) {4} second(s)" +msgstr "Başarılı indirmeler {0} URL(s) in {1} gün {2} saat {3} dakika {4} saniye" + +#: youtube_dl_gui/mainframe.py:119 +msgid "Downloads completed" +msgstr "İndirmeler tamamlandı" + +#: youtube_dl_gui/mainframe.py:120 +msgid "Total Progress: {0:.1f}% | Queued ({1}) Paused ({2}) Active ({3}) Completed ({4}) Error ({5})" +msgstr "Toplam İlerleme: {0:.1f}% | Sırada ({1}) Bekleyen ({2}) Aktif ({3}) Tamamlanan ({4}) Hatalı ({5})" + +#: youtube_dl_gui/mainframe.py:121 +msgid "Stopping downloads" +msgstr "İndirmeler durduruluyor" + +#: youtube_dl_gui/mainframe.py:122 +msgid "Downloads stopped" +msgstr "İndirmeler durduruldu" + +#: youtube_dl_gui/mainframe.py:123 +msgid "You need to provide at least one URL" +msgstr "En az bir URL eklemeniz gerekiyor" + +#: youtube_dl_gui/mainframe.py:124 +msgid "Downloads started" +msgstr "İndirmeler başladı" + +#: youtube_dl_gui/mainframe.py:125 +msgid "Choose Directory" +msgstr "Dizin Seçiniz" + +#: youtube_dl_gui/mainframe.py:127 +msgid "Download in progress. Please wait for all downloads to complete" +msgstr "İndirme devam ediyor. Lütfen tüm indirmelerin tamamlanmasını bekleyin" + +#: youtube_dl_gui/mainframe.py:128 +msgid "Update already in progress" +msgstr "Güncelleme zaten devam ediyor" + +#: youtube_dl_gui/mainframe.py:130 +msgid "Downloading latest youtube-dl. Please wait..." +msgstr "En son youtube-dl dosyasını indirmek. Lütfen bekle..." + +#: youtube_dl_gui/mainframe.py:131 +msgid "Youtube-dl download failed [{0}]" +msgstr "Youtube-dl indirilemedi [{0}]" + +#: youtube_dl_gui/mainframe.py:132 +msgid "Successfully downloaded youtube-dl" +msgstr "Youtube-dl başarıyla indirildi" + +#: youtube_dl_gui/mainframe.py:134 +msgid "Unable to open directory: '{dir}'. The specified path does not exist" +msgstr "Dizin açılamıyor: '{dir}'. Belirtilen yol mevcut değil" + +#: youtube_dl_gui/mainframe.py:136 +msgid "Error while shutting down. Make sure you typed the correct password" +msgstr "Kapatılırken hata oluştu. Doğru şifreyi girdiğinizden emin olun" + +#: youtube_dl_gui/mainframe.py:138 +msgid "Shutting down system" +msgstr "Sistemi kapat" + +#: youtube_dl_gui/mainframe.py:141 +msgid "Extension" +msgstr "Uzantı" + +#: youtube_dl_gui/mainframe.py:142 +msgid "Size" +msgstr "Boyut" + +#: youtube_dl_gui/mainframe.py:143 +msgid "Percent" +msgstr "Yüzde" + +#: youtube_dl_gui/mainframe.py:144 +msgid "ETA" +msgstr "" + +#: youtube_dl_gui/mainframe.py:145 +msgid "Speed" +msgstr "Hız" + +#: youtube_dl_gui/mainframe.py:146 +msgid "Status" +msgstr "Durum" + +#: youtube_dl_gui/mainframe.py:235 +msgid "Get URL" +msgstr "URL Al" + +#: youtube_dl_gui/mainframe.py:236 +msgid "Get command" +msgstr "Komut al" + +#: youtube_dl_gui/mainframe.py:237 +msgid "Open destination" +msgstr "Hedefi aç" + +#: youtube_dl_gui/mainframe.py:238 +msgid "Re-enter" +msgstr "Yeniden gir" + +#: youtube_dl_gui/mainframe.py:458 +msgid "Resume" +msgstr "Devam et" + +#: youtube_dl_gui/mainframe.py:480 +msgid "Video" +msgstr "Video" + +#: youtube_dl_gui/mainframe.py:484 +msgid "Audio" +msgstr "Ses" + +#: youtube_dl_gui/mainframe.py:516 +msgid "No items selected. Please pick an action" +msgstr "Hiçbir öğe seçilmedi. Lütfen bir işlem seçin" + +#: youtube_dl_gui/mainframe.py:516 +msgid "Remove all" +msgstr "Tümünü Sil" + +#: youtube_dl_gui/mainframe.py:516 +msgid "Remove completed" +msgstr "Silme tamamlandı" + +#: youtube_dl_gui/mainframe.py:534 +msgid "Are you sure you want to remove selected items?" +msgstr "Seçilen öğeleri kaldırmak istediğinizden emin misiniz?" + +#: youtube_dl_gui/mainframe.py:546 +msgid "Item is active, cannot remove" +msgstr "Öğe aktif, kaldırılamıyor" + +#: youtube_dl_gui/mainframe.py:579 +msgid "Item is not completed" +msgstr "Öğe tamamlanmadı" + +#: youtube_dl_gui/mainframe.py:668 +msgid "Update in progress. Please wait for the update to complete" +msgstr "Güncelleme devam ediyor. Lütfen güncellemenin tamamlanmasını bekleyin" + +#: youtube_dl_gui/mainframe.py:716 +msgid "Logging is disabled" +msgstr "Günlük devre dışı bırakıldı" + +#: youtube_dl_gui/mainframe.py:891 +msgid "Shutdown" +msgstr "Bilgisayarı Kapat" + +#: youtube_dl_gui/mainframe.py:891 +msgid "Shutting down in {0} second(s)" +msgstr "Bilgisayar {0} saniye içinde kapanıyor" + +#: youtube_dl_gui/mainframe.py:980 +msgid "No items to download" +msgstr "İndirilecek öğe yok" + +#: youtube_dl_gui/mainframe.py:1060 +msgid "Are you sure you want to exit?" +msgstr "Çıkmak istediğine emin misin?" + +#: youtube_dl_gui/mainframe.py:1060 +msgid "Exit" +msgstr "Çıkış" + +#: youtube_dl_gui/mainframe.py:1301 youtube_dl_gui/mainframe.py:1451 +msgid "Cancel" +msgstr "İptal" + +#: youtube_dl_gui/mainframe.py:1450 +msgid "OK" +msgstr "Tamam" + +#: youtube_dl_gui/optionsframe.py:65 +msgid "Reset" +msgstr "Sıfırla" + +#: youtube_dl_gui/optionsframe.py:66 +msgid "Close" +msgstr "Kapat" + +#: youtube_dl_gui/optionsframe.py:72 +msgid "General" +msgstr "Genel" + +#: youtube_dl_gui/optionsframe.py:73 +msgid "Formats" +msgstr "Formatlar" + +#: youtube_dl_gui/optionsframe.py:74 +msgid "Downloads" +msgstr "İndirilenler" + +#: youtube_dl_gui/optionsframe.py:75 +msgid "Advanced" +msgstr "Gelişmiş" + +#: youtube_dl_gui/optionsframe.py:76 +msgid "Extra" +msgstr "Diğer" + +#: youtube_dl_gui/optionsframe.py:315 +msgid "Language" +msgstr "Dil" + +#: youtube_dl_gui/optionsframe.py:318 +msgid "Filename format" +msgstr "Dosyaadı biçimi" + +#: youtube_dl_gui/optionsframe.py:323 +msgid "Filename options" +msgstr "Dosya adı ayarları" + +#: youtube_dl_gui/optionsframe.py:324 +msgid "Restrict filenames to ASCII" +msgstr "Dosya adlarını ASCII ile sınırla" + +#: youtube_dl_gui/optionsframe.py:326 +msgid "More options" +msgstr "Daha fazla ayar" + +#: youtube_dl_gui/optionsframe.py:327 +msgid "Confirm on exit" +msgstr "Çıkışı onayla" + +#: youtube_dl_gui/optionsframe.py:328 +msgid "Confirm item deletion" +msgstr "Öğe silme işlemini onayla" + +#: youtube_dl_gui/optionsframe.py:329 +msgid "Inform me on download completion" +msgstr "İndirme tamamlandığını bana bildir" + +#: youtube_dl_gui/optionsframe.py:331 +msgid "Shutdown on download completion" +msgstr "İndirme tamamlandığında kapat" + +#: youtube_dl_gui/optionsframe.py:342 +msgid "SUDO password" +msgstr "SUDO parolası" + +#: youtube_dl_gui/optionsframe.py:420 youtube_dl_gui/optionsframe.py:821 +msgid "In order for the changes to take effect please restart {0}" +msgstr "Değişikliklerin etkili olması için lütfen yeniden başlatın {0}" + +#: youtube_dl_gui/optionsframe.py:421 youtube_dl_gui/optionsframe.py:822 +msgid "Restart" +msgstr "Yeniden başlat" + +#: youtube_dl_gui/optionsframe.py:468 +msgid "high" +msgstr "yüksek" + +#: youtube_dl_gui/optionsframe.py:468 +msgid "low" +msgstr "düşük" + +#: youtube_dl_gui/optionsframe.py:468 +msgid "mid" +msgstr "orta" + +#: youtube_dl_gui/optionsframe.py:473 +msgid "Video formats" +msgstr "Video formatları" + +#: youtube_dl_gui/optionsframe.py:476 +msgid "Audio formats" +msgstr "Ses formatları" + +#: youtube_dl_gui/optionsframe.py:479 +msgid "Post-Process options" +msgstr "İşlem Sonrası Opsiyonları" + +#: youtube_dl_gui/optionsframe.py:480 +msgid "Keep original files" +msgstr "Orijinal dosyaları sakla" + +#: youtube_dl_gui/optionsframe.py:481 +msgid "Extract audio from video file" +msgstr "Video dosyasından ses ayıklayın" + +#: youtube_dl_gui/optionsframe.py:482 +msgid "Embed thumbnail in audio file" +msgstr "Ses dosyasına küçük resim yerleştir" + +#: youtube_dl_gui/optionsframe.py:483 +msgid "Add metadata to file" +msgstr "Dosyaya meta veri ekle" + +#: youtube_dl_gui/optionsframe.py:485 +msgid "Audio quality" +msgstr "Ses kalitesi" + +#: youtube_dl_gui/optionsframe.py:543 +msgid "English" +msgstr "İngilizce" + +#: youtube_dl_gui/optionsframe.py:544 +msgid "French" +msgstr "Fransızca" + +#: youtube_dl_gui/optionsframe.py:545 +msgid "German" +msgstr "Almanca" + +#: youtube_dl_gui/optionsframe.py:546 +msgid "Greek" +msgstr "Yunanca" + +#: youtube_dl_gui/optionsframe.py:547 +msgid "Hebrew" +msgstr "İbranice" + +#: youtube_dl_gui/optionsframe.py:548 +msgid "Italian" +msgstr "İtalyanca" + +#: youtube_dl_gui/optionsframe.py:549 +msgid "Portuguese" +msgstr "Portekizce" + +#: youtube_dl_gui/optionsframe.py:550 +msgid "Russian" +msgstr "Rusça" + +#: youtube_dl_gui/optionsframe.py:551 +msgid "Spanish" +msgstr "İspanyolca" + +#: youtube_dl_gui/optionsframe.py:552 +msgid "Swedish" +msgstr "İsveççe" + +#: youtube_dl_gui/optionsframe.py:553 +msgid "Turkish" +msgstr "Türkçe" + +#: youtube_dl_gui/optionsframe.py:569 +msgid "None" +msgstr "Hiçbiri" + +#: youtube_dl_gui/optionsframe.py:570 +msgid "Automatic subtitles (YOUTUBE ONLY)" +msgstr "Otomatik altyazılar (SADECE YOUTUBE)" + +#: youtube_dl_gui/optionsframe.py:571 +msgid "All available subtitles" +msgstr "Tüm mevcut altyazılar" + +#: youtube_dl_gui/optionsframe.py:572 +msgid "Subtitles by language" +msgstr "Dile göre altyazılar" + +#: youtube_dl_gui/optionsframe.py:578 +msgid "Subtitles" +msgstr "Altyazılar" + +#: youtube_dl_gui/optionsframe.py:582 +msgid "Subtitles options" +msgstr "Altyazı seçenekleri" + +#: youtube_dl_gui/optionsframe.py:583 +msgid "Embed subtitles into video file (mp4 ONLY)" +msgstr "Altyazıları video dosyasına gömün (SADECE mp4)" + +#: youtube_dl_gui/optionsframe.py:585 +msgid "Playlist" +msgstr "Oynatma Listesi" + +#: youtube_dl_gui/optionsframe.py:591 youtube_dl_gui/optionsframe.py:596 +msgid "Max" +msgstr "En çok" + +#: youtube_dl_gui/optionsframe.py:594 +msgid "Filesize" +msgstr "Dosya boyutu" + +#: youtube_dl_gui/optionsframe.py:599 +msgid "Min" +msgstr "En az" + +#: youtube_dl_gui/optionsframe.py:728 +msgid "Retries" +msgstr "" + +#: youtube_dl_gui/optionsframe.py:731 +msgid "Authentication" +msgstr "Doğrulama" + +#: youtube_dl_gui/optionsframe.py:733 +msgid "Username" +msgstr "Kullanıcı Adı" + +#: youtube_dl_gui/optionsframe.py:735 +msgid "Password" +msgstr "Parola" + +#: youtube_dl_gui/optionsframe.py:737 +msgid "Video password" +msgstr "Video parolası" + +#: youtube_dl_gui/optionsframe.py:740 +msgid "Network" +msgstr "Ağ" + +#: youtube_dl_gui/optionsframe.py:742 +msgid "Proxy" +msgstr "" + +#: youtube_dl_gui/optionsframe.py:744 +msgid "User agent" +msgstr "Kullanıcı aracı" + +#: youtube_dl_gui/optionsframe.py:746 +msgid "Referer" +msgstr "" + +#: youtube_dl_gui/optionsframe.py:749 +msgid "Logging" +msgstr "Günlük" + +#: youtube_dl_gui/optionsframe.py:751 +msgid "Enable log" +msgstr "Günlük Aktif" + +#: youtube_dl_gui/optionsframe.py:752 +msgid "View" +msgstr "Görünüm" + +#: youtube_dl_gui/optionsframe.py:753 +msgid "Clear" +msgstr "Temizle" + +#: youtube_dl_gui/optionsframe.py:863 +msgid "Youtube-dl command line options (e.g. --help)" +msgstr "Youtube-dl komut satırı seçenekleri (ör. --help)" + +#: youtube_dl_gui/optionsframe.py:866 +msgid "Extra options" +msgstr "Diğer ayarlar" + +#: youtube_dl_gui/optionsframe.py:868 +msgid "Debug youtube-dl" +msgstr "" + +#: youtube_dl_gui/optionsframe.py:869 +msgid "Ignore errors" +msgstr "" + +#: youtube_dl_gui/optionsframe.py:870 +msgid "Ignore youtube-dl config" +msgstr "" + +#: youtube_dl_gui/optionsframe.py:871 +msgid "No mtime" +msgstr "" + +#: youtube_dl_gui/optionsframe.py:872 +msgid "Prefer native HLS" +msgstr "" + +#: youtube_dl_gui/optionsframe.py:933 +msgid "Log Viewer" +msgstr "Günlük gösterici" diff --git a/talimatname/genel/y/youtube-dl/talimat b/talimatname/genel/y/youtube-dl/talimat new file mode 100644 index 000000000..5a4a334ac --- /dev/null +++ b/talimatname/genel/y/youtube-dl/talimat @@ -0,0 +1,20 @@ +# Tanım: YouTube.com'dan ve birkaç başka siteden videolar indirmek için küçük bir program +# URL: http://rg3.github.io/youtube-dl/ +# Paketçi: Cihan_Alkan +# Gerekler: python python-setuptools +# Grup: medya + +isim=youtube-dl +surum=2017.12.31 +devir=1 +kaynak=(https://github.com/rg3/youtube-dl/archive/$surum.tar.gz::${isim}-${surum}.tar.gz + https://github.com/rst0git/youtube-dl-mp3/raw/master/youtube-dl-mp3) + +derle() { + cd youtube-dl-$surum + sed -i 's|etc/bash_completion.d|share/bash-completion/completions|' setup.py + sed -i 's|etc/fish/completions|share/fish/completions|' setup.py + python setup.py install --root="${PKG}/" --optimize=1 + install -Dm755 ../youtube-dl-mp3 "${PKG}/usr/bin/youtube-dl-mp3" + rm -rf $PKG/usr/share +} diff --git a/talimatname/genel/y/youtube-viewer/gtk-youtube-viewer.desktop b/talimatname/genel/y/youtube-viewer/gtk-youtube-viewer.desktop new file mode 100644 index 000000000..23fa4548e --- /dev/null +++ b/talimatname/genel/y/youtube-viewer/gtk-youtube-viewer.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=GTK Youtube Viewer +Version=1.0 +Comment=MPlayer ile YouTube videolarını arayın ve oynatın. +Exec=gtk-youtube-viewer +Icon=gtk-youtube-viewer +StartupNotify=false +Terminal=false +Type=Application +Categories=AudioVideo; diff --git a/talimatname/genel/y/youtube-viewer/talimat b/talimatname/genel/y/youtube-viewer/talimat new file mode 100644 index 000000000..cf95516af --- /dev/null +++ b/talimatname/genel/y/youtube-viewer/talimat @@ -0,0 +1,19 @@ +# Tanım: YouTube videolarını izlemek için komut satırı yardımcı programı +# URL: https://github.com/trizen/youtube-viewer +# Paketçi: Cihan_Alkan +# Gerekler: perl-data-dump perl-json perl-lwp-protocol-https perl-libwww perl-module-build gtk2-perl perl-try-tiny perl-class-inspector perl-file-sharedir +# Grup: medya + +isim=youtube-viewer +surum=3.3.3 +devir=1 +kaynak=(https://github.com/trizen/youtube-viewer/archive/3.3.3.tar.gz::$isim-$surum.tar.gz) + +derle() { + + cd "$isim-$surum" + perl Build.PL --destdir "$PKG" --installdirs vendor --gtk + ./Build install --install_path script=/usr/bin + install -Dm 644 "$SRC/gtk-youtube-viewer.desktop" "$PKG/usr/share/applications/gtk-youtube-viewer.desktop" + install -Dm 644 "share/icons/gtk-youtube-viewer.png" "$PKG/usr/share/pixmaps/gtk-youtube-viewer.png" +} diff --git a/talimatname/genel/y/yubico-c-client/talimat b/talimatname/genel/y/yubico-c-client/talimat new file mode 100644 index 000000000..97300f782 --- /dev/null +++ b/talimatname/genel/y/yubico-c-client/talimat @@ -0,0 +1,18 @@ +# Tanım: Yubico icin C dili kutuphaneleri +# URL: http://www.yubico.com/ +# Paketçi: - https://github.com/Yubico/yubico-c-client.git +# Gerekler: libyubikey curl + +isim=yubico-c-client +surum=2.9 +devir=1 + +kaynak=(http://yubico-c-client.googlecode.com/files/ykclient-$surum.tar.gz) +derle() +{ +cd ykclient-$surum +./configure --prefix=/usr +make +make DESTDIR="${PKG}/" install +} + diff --git a/talimatname/genel/z/zarith/talimat b/talimatname/genel/z/zarith/talimat new file mode 100644 index 000000000..afe6dfe34 --- /dev/null +++ b/talimatname/genel/z/zarith/talimat @@ -0,0 +1,22 @@ +# Tanım: Rasgele kesinlikli tamsayılar ve rasyonel sayılar üzerinde aritmetik ve mantıksal işlemleri uygular +# URL: https://github.com/ocaml/Zarith +# Paketçi: Cihan_Alkan +# Gerekler: ocaml-findlib ocaml +# Grup: kütüphane + +isim=zarith +surum=1.7 +devir=1 +kaynak=(https://github.com/ocaml/Zarith/archive/release-${surum}.tar.gz::$isim-$surum.tar.gz) + +derle() { + + cd Zarith-release-${surum} + + ./configure -installdir "${PKG}/usr/lib/ocaml/site-lib/" # install ignores DESTDIR + make + + mkdir -p "${PKG}/usr/lib/ocaml/site-lib" + make OCAMLFIND_DESTDIR="${PKG}$(ocamlfind printconf destdir)" install + +} diff --git a/talimatname/genel/z/zenity/talimat b/talimatname/genel/z/zenity/talimat new file mode 100644 index 000000000..d64e22868 --- /dev/null +++ b/talimatname/genel/z/zenity/talimat @@ -0,0 +1,18 @@ +# Tanım: shell script dosyalari icin dialog pencereleri +# URL: http://www.gnome.org/ +# Paketçi: milisarge +# Gerekler: itstool gtk3 libnotify yelp-tools + +isim=zenity +surum=3.28.1 +devir=1 +kaynak=(https://git.gnome.org/browse/zenity/snapshot/zenity-3.28.1.tar.xz) + +derle() { +cd $isim-$surum + NOCONFIGURE=1 ./autogen.sh +./configure --prefix=/usr --sysconfdir=/etc \ + --localstatedir=/var +make +make DESTDIR=$PKG install +} diff --git a/talimatname/genel/z/zeromq/talimat b/talimatname/genel/z/zeromq/talimat new file mode 100644 index 000000000..73dc603af --- /dev/null +++ b/talimatname/genel/z/zeromq/talimat @@ -0,0 +1,28 @@ +# Tanım: Fast messaging system built on sockets. C and C++ bindings. aka 0MQ, ZMQ. +# URL: http://www.zeromq.org +# Paketçi: milisarge +# Gerekler: asciidoc xmlto libsodium libpgm + +isim=zeromq +surum=4.2.2 +devir=1 +kaynak=(https://github.com/zeromq/libzmq/releases/download/v$surum/$isim-$surum.tar.gz + https://raw.githubusercontent.com/zeromq/cppzmq/b0e6d4b/zmq.hpp::zmq.hpp.4.2.2) + +derle() { + + sed -i 's/libzmq_werror="yes"/libzmq_werror="no"/' $isim-$surum/configure + cp zmq.hpp.$surum zmq.hpp + cd "$SRC/$isim-$surum" + ./configure prefix=/usr --with-pgm --with-libsodium \ + --enable-static + + make + #LANG=C gcc -c ../zmq.hpp -L ./.libs/ -I ./include/ -o ./test.o + #rm -f test.o + #return 0 + #make -k check + make DESTDIR="$PKG" install + install -Dm644 "$SRC/zmq.hpp.4.2.2" "$PKG/usr/include/zmq.hpp" + +} diff --git a/talimatname/genel/z/zig/talimat b/talimatname/genel/z/zig/talimat new file mode 100644 index 000000000..0f01aecd9 --- /dev/null +++ b/talimatname/genel/z/zig/talimat @@ -0,0 +1,35 @@ +# Tanım: sağlamlık, optimallik ve netlik öncelik veren bir programlama dili +# URL: http://ziglang.org +# Paketçi: milisarge +# Gerekler: cmake llvm clang lld + +isim=zig +hesap=zig-lang +surum=0.1 +devir=2 +kaynak=() + +derle() { + + if [ ! -d $DERLEME_KAYNAKDIZIN/$isim ];then + git clone https://github.com/$hesap/$isim $DERLEME_KAYNAKDIZIN/$isim + else + cd $DERLEME_KAYNAKDIZIN/$isim + git pull + cd - + fi + cp -r $DERLEME_KAYNAKDIZIN/$isim $SRC/ + cd $SRC/$isim + + mkdir -p build + cd build + cmake .. \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DZIG_LIBC_LIB_DIR=$(dirname $(cc -print-file-isim=crt1.o)) \ + -DZIG_LIBC_INCLUDE_DIR=$(echo -n | cc -E -x c - -v 2>&1 | grep -B1 "End of search list." | head -n1 | cut -c 2- | sed "s/ .*//") \ + -DZIG_LIBC_STATIC_LIB_DIR=$(dirname $(cc -print-file-isim=crtbegin.o)) + + make + make DESTDIR="$PKG" install +} diff --git a/talimatname/genel/z/zile/talimat b/talimatname/genel/z/zile/talimat new file mode 100644 index 000000000..8d56d8551 --- /dev/null +++ b/talimatname/genel/z/zile/talimat @@ -0,0 +1,18 @@ +# Tanım: Zile metin düzenleyici +# URL: http://zile.sf.net +# Paketçi: milisarge +# Gerekler: gc help2man + +isim=zile +surum=2.4.13 +devir=1 +kaynak=(http://ftp.gnu.org/gnu/$isim/$isim-$surum.tar.gz) + +derle() +{ + cd $isim-$surum + ./configure --prefix=/usr + find -name Makefile | xargs -n1 sed -i 's|makeinfo|true|g' + make + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/z/zim/talimat b/talimatname/genel/z/zim/talimat new file mode 100644 index 000000000..091e3d8a4 --- /dev/null +++ b/talimatname/genel/z/zim/talimat @@ -0,0 +1,19 @@ +# Tanım: Wiki kavramını masaüstüne getirmeyi amaçlayan bir WYSIWYG metin editörü. +# URL: http://zim-wiki.org/ +# Paketçi: Cihan Alkan +# Gerekler: python-gtk dejavu-ttf + +isim=zim +surum=0.67 +devir=1 + +kaynak=(http://zim-wiki.org/downloads/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + for file in zim/inc/xdot.py; do + sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' $file + done + sed -i 's|\t\tinstall_class.run(self)|&\n\t\treturn None|' setup.py + python2 setup.py install --root=$PKG --optimize=1 +} diff --git a/talimatname/genel/z/zim/zim.kur-kos b/talimatname/genel/z/zim/zim.kur-kos new file mode 100644 index 000000000..1c7a0f8d7 --- /dev/null +++ b/talimatname/genel/z/zim/zim.kur-kos @@ -0,0 +1,6 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q /usr/share/applications >/dev/null 2>&1 +fi +if [ -x /usr/bin/update-mime-database ]; then + /usr/bin/update-mime-database /usr/share/mime >/dev/null 2>&1 +fi diff --git a/talimatname/genel/z/zimg/talimat b/talimatname/genel/z/zimg/talimat new file mode 100644 index 000000000..a9ea71470 --- /dev/null +++ b/talimatname/genel/z/zimg/talimat @@ -0,0 +1,22 @@ +# Tanım: Ölçeklendirme, renk aralığı dönüşümleri ve renk tezgahı kütüphanesi +# URL: http://forum.doom9.org/showthread.php?t=171334 +# Paketçi: milisarge +# Gerekler: +# Grup: kütüphane + +isim=zimg +surum=2.7.3 +devir=1 +kaynak=(https://github.com/sekrit-twc/zimg/archive/release-$surum.tar.gz) + +derle() { + cd zimg-release-${surum} + + ./autogen.sh + ./configure \ + --prefix='/usr' \ + --enable-x86simd \ + --disable-static + make + make DESTDIR="${PKG}" install +} diff --git a/talimatname/genel/z/zip/talimat b/talimatname/genel/z/zip/talimat new file mode 100644 index 000000000..3c90163df --- /dev/null +++ b/talimatname/genel/z/zip/talimat @@ -0,0 +1,16 @@ +# Tanım: PKZIP uyumlu .zip dosyalari yaratir +# URL: http://infozip.sourceforge.net/Zip.html +# Paketçi: milisarge +# Gerekler: + +isim=zip +surum=3.0 +devir=1 +kaynak=( http://downloads.sourceforge.net/infozip/zip30.tar.gz) + +derle() { + cd ${isim}30 + make -f unix/Makefile prefix=/usr generic_gcc + make prefix=$PKG/usr MANDIR=$PKG/usr/share/man/man1 -f unix/Makefile install + +} diff --git a/talimatname/genel/z/zsh/talimat b/talimatname/genel/z/zsh/talimat new file mode 100644 index 000000000..73c5a1c15 --- /dev/null +++ b/talimatname/genel/z/zsh/talimat @@ -0,0 +1,42 @@ +# Tanım: UNIX için programlanabilir zsh komut arayüzü +# URL: http://www.zsh.org +# Paketçi: milisarge +# Gerekler: pcre +# Grup: sistem + +isim=zsh +surum=5.4.2 +devir=1 +kaynak=(http://www.zsh.org/pub/$isim-$surum.tar.gz) + +derle(){ + cd $isim-$surum + ./configure \ + --prefix=/usr \ + --enable-etcdir=/etc/zsh \ + --enable-zshrc=/etc/zsh/zshrc \ + --enable-zlogin=/etc/zsh/zshlogin \ + --enable-zshenv=/etc/zsh/zshenv \ + --enable-fndir=/usr/share/zsh/$version/functions \ + --enable-site-fndir=/usr/share/zsh/site-functions \ + --enable-maildir-support \ + --enable-function-subdirs \ + --enable-pcre \ + --enable-restricted-r \ + --enable-cap + make + + # fix a bug in recent glibc versions (2.16) + sed -e '/#include "attr.mdh"/d;/#include "attr.pro/d' \ + -e 's|\(#include \)|\1\n#include "attr.mdh"\n#include "attr.pro"|g' \ + -i Src/Modules/attr.c + + make + make DESTDIR=$PKG install + install -d $PKG/bin + ln -s /usr/bin/zsh $PKG/bin + +} + + + diff --git a/talimatname/genel/z/zsh/zsh.kur-kos b/talimatname/genel/z/zsh/zsh.kur-kos new file mode 100644 index 000000000..06542dc50 --- /dev/null +++ b/talimatname/genel/z/zsh/zsh.kur-kos @@ -0,0 +1,3 @@ +cat >> /etc/shells << EOF +/bin/zsh +EOF diff --git a/talimatname/genel/z/zzuf/talimat b/talimatname/genel/z/zzuf/talimat new file mode 100644 index 000000000..06bcb3728 --- /dev/null +++ b/talimatname/genel/z/zzuf/talimat @@ -0,0 +1,17 @@ +# Tanım: Uygulama girdi testi (fuzzing) aracı. +# URL: http://sam.zoy.org/zzuf/ +# Paketçi: yakar (aydin@komutan.org) +# Gerekler: + +isim=zzuf +surum=0.15 +devir=1 +kaynak=(https://github.com/samhocevar/$isim/archive/v$surum.tar.gz) + +derle() { + cd "$SRC/zzuf-$surum" + sh bootstrap + ./configure --prefix=/usr + make + make DESTDIR="$PKG" install +} diff --git a/talimatname/temel/acl/talimat b/talimatname/temel/acl/talimat new file mode 100644 index 000000000..6a3cef8de --- /dev/null +++ b/talimatname/temel/acl/talimat @@ -0,0 +1,33 @@ +# Tanım: POSIX Erişim Kontrol Listelerini Yönetme Komutları +# URL: http://savannah.nongnu.org/projects/acl +# Paketçi: milisarge@gmail.com +# Gerekler: +# Grup: temel + +isim=acl +surum=2.2.52 +devir=1 + +kaynak=( http://download.savannah.gnu.org/releases/$isim/$isim-$surum.src.tar.gz) + +derle() { +cd acl-* + +sed -i -e 's|/@pkg_name@|&-@pkg_version@|' \ +include/builddefs.in + +sed -i -e "/TABS-1;/a if (x > (TABS-1)) x = (TABS-1);" \ +libacl/__acl_to_any_text.c + +INSTALL_USER=root \ +INSTALL_GROUP=root \ +./configure --prefix=/usr --libexecdir=/usr/lib \ +--bindir=/bin +make +make DIST_ROOT=$PKG install install-lib install-dev +chmod -v 755 $PKG/usr/lib/libacl.so +mkdir $PKG/lib +mv -v $PKG/usr/lib/libacl.so.* $PKG/lib +ln -sfv ../../lib/libacl.so.1 \ +$PKG/usr/lib/libacl.so +} diff --git a/talimatname/temel/attr/talimat b/talimatname/temel/attr/talimat new file mode 100644 index 000000000..89cae9b8f --- /dev/null +++ b/talimatname/temel/attr/talimat @@ -0,0 +1,31 @@ +# Tanım: Genişletilmiş öznitelikleri dosya sistemi nesneleri üzerinde yönetmek için kullanılan yardımcı programlar +# URL: http://savannah.nongnu.org/projects/attr +# Paketçi: milisarge@gmail.com +# Gerekler: +# Grup: temel + +isim=attr +surum=2.4.47 +devir=1 + +kaynak=(http://download.savannah.gnu.org/releases/$isim/$isim-$surum.src.tar.gz) + +derle() { +cd attr-$surum + +sed -i -e 's|/@pkg_name@|&-@pkg_version@|' include/builddefs.in + +INSTALL_USER=root \ +INSTALL_GROUP=root \ +./configure --prefix=/usr \ +--bindir=/bin +make +make DIST_ROOT=$PKG install install-lib install-dev +chmod -v 755 $PKG/usr/lib/libattr.so +mkdir $PKG/lib +mv -v $PKG/usr/lib/libattr.so.* $PKG/lib +ln -sfv ../../lib/libattr.so.1 $PKG/usr/lib/libattr.so +rm -r $PKG/usr/share/man/man2 +rm -r $PKG/usr/share/doc +} + diff --git a/talimatname/temel/autoconf/talimat b/talimatname/temel/autoconf/talimat new file mode 100644 index 000000000..cd9b5123e --- /dev/null +++ b/talimatname/temel/autoconf/talimat @@ -0,0 +1,19 @@ +# Tanım: Kaynak kodunu otomatik olarak yapılandırabilen kabuk komut dizileri üretmek için. +# URL: http://www.gnu.org/software/autoconf/ +# Paketçi: milisarge +# Gerekler: +# Grup: temel + +isim=autoconf +surum=2.69 +devir=1 + +kaynak=(http://ftp.gnu.org/gnu/autoconf/autoconf-$surum.tar.xz) +derle() +{ +cd autoconf-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +rm -rf $PKG/usr/share/info/dir +} diff --git a/talimatname/temel/automake/talimat b/talimatname/temel/automake/talimat new file mode 100644 index 000000000..4a4a4967c --- /dev/null +++ b/talimatname/temel/automake/talimat @@ -0,0 +1,20 @@ +# Tanım: Autoconf ile kullanılacak Makefile'leri üretmek için programlar içerir. +# URL: http://www.gnu.org/software/automake/ +# Paketçi: milisarge +# Gerekler: +# Grup: temel + +isim=automake +surum=1.15 +devir=2 + +kaynak=(http://ftp.gnu.org/gnu/$isim/$isim-$surum.tar.xz) +derle() { +cd automake-$surum +sed -i 's:/\\\${:/\\\$\\{:' bin/automake.in +./configure --prefix=/usr \ +--docdir=$PKG/usr/share/doc/automake-$surum +make +make prefix=$PKG/usr install +rm -rf $PKG/usr/share/info/dir +} diff --git a/talimatname/temel/bash/talimat b/talimatname/temel/bash/talimat new file mode 100644 index 000000000..a11af467b --- /dev/null +++ b/talimatname/temel/bash/talimat @@ -0,0 +1,28 @@ +# Tanım: Bash paketi Bourne-Again SHell'i içeriyor. +# Url: http://ftp.gnu.org/gnu/bash/ +# Paketçi: milisarge +# Gerekler: +# Grup: temel + +isim=bash +surum=4.3.30 +devir=3 + +kaynak=(http://ftp.gnu.org/gnu/bash/bash-$surum.tar.gz + http://www.linuxfromscratch.org/patches/downloads/$isim/$isim-$surum-upstream_fixes-2.patch) + +derle() +{ +cd bash-$surum +patch -Np1 -i ../$isim-$surum-upstream_fixes-2.patch +./configure --prefix=/usr --bindir=/bin \ +--htmldir=/usr/share/doc/bash-$surum --without-bash-malloc \ +--with-installed-readline +make + +make DESTDIR=$PKG install + +rm -rf $PKG/usr/share/info/dir + +ln -s bash $PKG/bin/sh +} diff --git a/talimatname/temel/bc/talimat b/talimatname/temel/bc/talimat new file mode 100755 index 000000000..ca054cefe --- /dev/null +++ b/talimatname/temel/bc/talimat @@ -0,0 +1,24 @@ +# Tanım: Bc paketi rasgele sayısal işleme dili içerir. +# URL: http://ftp.gnu.org/gnu/bc/ +# Paketçi: milisarge +# Gerekler: +# Grup: temel + +isim=bc +surum=1.06.95 +devir=1 + +kaynak=(http://alpha.gnu.org/gnu/$isim/$isim-$surum.tar.bz2 + http://www.linuxfromscratch.org/patches/downloads/$isim/$isim-$surum-memory_leak-1.patch) + +derle() { + cd $isim-$surum + patch -Np1 -i ../$isim-$surum-memory_leak-1.patch + ./configure --prefix=/usr --bindir=/bin \ + --with-readline \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/info/dir +} diff --git a/talimatname/temel/binutils/talimat b/talimatname/temel/binutils/talimat new file mode 100644 index 000000000..e3f3f044c --- /dev/null +++ b/talimatname/temel/binutils/talimat @@ -0,0 +1,50 @@ +# Tanım: Bağlayıcı, assembler ve nesne dosyalarını işlemek için kullanılan diğer araçlar. +# URL: http://sources.redhat.com/binutils/ +# Paketçi: milisarge +# Gerekler: +# Grup: temel + +isim=binutils +surum=2.26 +devir=3 + +kaynak=(http://ftp.gnu.org/gnu/binutils/binutils-$surum.tar.bz2 + http://www.linuxfromscratch.org/patches/downloads/binutils//binutils-$surum-upstream_fix-1.patch + http://www.linuxfromscratch.org/patches/downloads/binutils//binutils-$surum-upstream_fix-2.patch) + +derle() { + cd binutils-$surum + + patch -Np1 -i ../binutils-$surum-upstream_fix-1.patch + patch -Np1 -i ../binutils-$surum-upstream_fix-2.patch + + mkdir -v build + cd build + + ../configure \ + --prefix=/usr --includedir=/usr/include \ + --bindir=/bin --sbindir=/sbin \ + --datarootdir=/usr/share \ + --enable-shared --disable-werror + + make tooldir=/ + + # make LDFLAGS="" -k check || true + + # make tooldir=/usr DESTDIR=$PKG install + make tooldir=/usr DESTDIR=$PKG install + + rm -rf $PKG/usr/share/info/dir + rm $PKG/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}.1 + mkdir $PKG/lib + for lib in libopcodes libbfd + do + mv $PKG/usr/lib/$lib-$surum.20160125.so \ + $PKG/lib/$lib-$surum.so + ln -s $lib-$surum.so $PKG/lib/$lib + ln -s ../../lib/$lib-$surum.20160125.so \ + $PKG/usr/lib/$lib-$surum.so + ln -s ../../lib/$lib-$surum.so \ + $PKG/usr/lib/$lib + done +} diff --git a/talimatname/temel/bison/talimat b/talimatname/temel/bison/talimat new file mode 100644 index 000000000..ab02568ba --- /dev/null +++ b/talimatname/temel/bison/talimat @@ -0,0 +1,22 @@ +# Tanım: Bison paketi bir ayrıştırıcı üreteci içerir +# URL: http://www.gnu.org/software/bison/ +# Paketçi: milisarge +# Gerekler: +# Grup: temel + +isim=bison +surum=3.0.4 +devir=2 + +kaynak=(http://ftp.gnu.org/gnu/bison/bison-$surum.tar.xz) + +derle(){ + cd bison-$surum + ./configure --prefix=/usr \ + --docdir=/usr/share/doc/$isim-$surum + make + make check||true + make DESTDIR=$PKG install + rm -r $PKG/usr/share/info $PKG/usr/share/doc/ + rm $PKG/usr/share/bison/README +} diff --git a/talimatname/temel/bzip2/talimat b/talimatname/temel/bzip2/talimat new file mode 100644 index 000000000..39a3e4c25 --- /dev/null +++ b/talimatname/temel/bzip2/talimat @@ -0,0 +1,51 @@ +# Tanım: Dosyaları sıkıştırma ve açma programları. +# URL: http://www.bzip.org/ +# Paketçi: milisarge@gmail.com +# Gerekler: +# Grup: temel + +isim=bzip2 +surum=1.0.6 +devir=1 + +kaynak=(http://www.bzip.org/$surum/bzip2-$surum.tar.gz \ + http://www.linuxfromscratch.org/patches/lfs/development/bzip2-$surum-install_docs-1.patch) + +derle() { + cd bzip2-$surum + + patch -Np1 -i ../bzip2-$surum-install_docs-1.patch + sed -i 's@\(ln -s -f \)/bin/@\1@' Makefile + sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile + + make -f Makefile-libbz2_so + make clean + + make + + make PREFIX=$PKG/usr install + + mkdir -pv $PKG/{bin,lib} + cp -v bzip2-shared $PKG/bin/bzip2 + cp -av libbz2.so* $PKG/lib + ln -sv ../../lib/libbz2.so.1.0 $PKG/usr/lib/libbz2.so + rm -v $PKG/usr/bin/{bunzip2,bzcat,bzip2} + mv -v $PKG/usr/bin/* \ + $PKG/bin + for i in bzegrep bzfgrep + do + ln -svf bzgrep $PKG/bin/$i + done + for i in bunzip2 bzcat + do + ln -svf bzip2 $PKG/bin/$i + done + for i in bzless + do + ln -svf bzmore $PKG/bin/$i + done + for i in bzcmp + do + ln -svf bzdiff $PKG/bin/$i + done +} diff --git a/talimatname/temel/ca-certificates/ca-certificates.kos-kur b/talimatname/temel/ca-certificates/ca-certificates.kos-kur new file mode 100644 index 000000000..1041b7403 --- /dev/null +++ b/talimatname/temel/ca-certificates/ca-certificates.kos-kur @@ -0,0 +1,5 @@ +if [ -f etc/ssl/ca-bundle.crt ]; then + rm etc/ssl/ca-bundle.crt + rm etc/ssl/certs/*.0 + rm etc/ssl/certs/*.pem +fi diff --git a/talimatname/temel/ca-certificates/ca-certificates.okubeni b/talimatname/temel/ca-certificates/ca-certificates.okubeni new file mode 100644 index 000000000..438fe8d0d --- /dev/null +++ b/talimatname/temel/ca-certificates/ca-certificates.okubeni @@ -0,0 +1,22 @@ +Si vous souhaitez faire une mise à jour manuelle des certificats, voici la procédure: + +certhost='http://mxr.mozilla.org' +certdir='/mozilla/source/security/nss/lib/ckfw/builtins' +url="$certhost$certdir/certdata.txt?raw=1" + +wget --output-document certdata.txt $url +unset certhost certdir url +make-ca.sh +remove-expired-certs.sh certs + +SSLDIR=/etc/ssl +if [ ! -d ${SSLDIR}/certs ]; then + install -d ${SSLDIR}/certs +fi +cp -v certs/*.pem ${SSLDIR}/certs +c_rehash +install BLFS-ca-bundle*.crt ${SSLDIR}/ca-bundle.crt +unset SSLDIR + +rm -rf certs +rm -r certdata.txt BLFS-ca-bundle* diff --git a/talimatname/temel/ca-certificates/talimat b/talimatname/temel/ca-certificates/talimat new file mode 100755 index 000000000..b833abdbc --- /dev/null +++ b/talimatname/temel/ca-certificates/talimat @@ -0,0 +1,231 @@ +# Tanım: Sertifika Yetki belgeleri, Ortak Anahtar Altyapısı. +# URL: http://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1 +# Paketçi: milisarge@gmail.com +# Gerekler: +# Grup: temel + +isim=ca-certificates +surum=20160110 +devir=1 + +kaynak=(http://downloads.nutyx.org/files/$isim-$surum.tar.gz) + +derle() { + +mkdir -p $PKG/{bin,etc/ssl} +cp $SRC/ca-bundle.crt $PKG/etc/ssl/ +cp -a $SRC/certs $PKG/etc/ssl/certs + +# script to reformat a certificate into a form needed by openssl. +cat > $PKG/bin/make-cert.pl << "EOF" +#!/usr/bin/perl -w + +# Used to generate PEM encoded files from Mozilla certdata.txt. +# Run as ./mkcrt.pl > certificate.crt +# +# Parts of this script courtesy of RedHat (mkcabundle.pl) +# +# This script modified for use with single file data (tempfile.cer) extracted +# from certdata.txt, taken from the latest version in the Mozilla NSS source. +# mozilla/security/nss/lib/ckfw/builtins/certdata.txt +# +# Authors: DJ Lucas +# Bruce Dubbs +# +# Version 20120211 + +my $certdata = './tempfile.cer'; + +open( IN, "cat $certdata|" ) + || die "could not open $certdata"; + +my $incert = 0; + +while ( ) +{ + if ( /^CKA_VALUE MULTILINE_OCTAL/ ) + { + $incert = 1; + open( OUT, "|openssl x509 -text -inform DER -fingerprint" ) + || die "could not pipe to openssl x509"; + } + + elsif ( /^END/ && $incert ) + { + close( OUT ); + $incert = 0; + print "\n\n"; + } + + elsif ($incert) + { + my @bs = split( /\\/ ); + foreach my $b (@bs) + { + chomp $b; + printf( OUT "%c", oct($b) ) unless $b eq ''; + } + } +} +EOF +chmod +x $PKG/bin/make-cert.pl +# script to creates the certificates and a bundle of all the certificates. +cat > $PKG/bin/make-ca.sh << "EOF" +#!/bin/bash +# Begin make-ca.sh +# Script to populate OpenSSL's CApath from a bundle of PEM formatted CAs +# +# The file certdata.txt must exist in the local directory +# Version number is obtained from the version of the data. +# +# Authors: DJ Lucas +# Bruce Dubbs +# +# Version 20120211 + +certdata="certdata.txt" + +if [ ! -r $certdata ]; then + echo "$certdata must be in the local directory" + exit 1 +fi + +REVISION=$(grep CVS_ID $certdata | cut -f4 -d'$') + +if [ -z "${REVISION}" ]; then + echo "$certfile has no 'Revision' in CVS_ID" + exit 1 +fi + +VERSION=$(echo $REVISION | cut -f2 -d" ") + +TEMPDIR=$(mktemp -d) +TRUSTATTRIBUTES="CKA_TRUST_SERVER_AUTH" +BUNDLE="BLFS-ca-bundle-${VERSION}.crt" +CONVERTSCRIPT="/bin/make-cert.pl" +SSLDIR="/etc/ssl" + +mkdir "${TEMPDIR}/certs" + +# Get a list of staring lines for each cert +CERTBEGINLIST=$(grep -n "^# Certificate" "${certdata}" | cut -d ":" -f1) + +# Get a list of ending lines for each cert +CERTENDLIST=`grep -n "^CKA_TRUST_STEP_UP_APPROVED" "${certdata}" | cut -d ":" -f 1` + +# Start a loop +for certbegin in ${CERTBEGINLIST}; do + for certend in ${CERTENDLIST}; do + if test "${certend}" -gt "${certbegin}"; then + break + fi + done + + # Dump to a temp file with the name of the file as the beginning line number + sed -n "${certbegin},${certend}p" "${certdata}" > "${TEMPDIR}/certs/${certbegin}.tmp" +done + +unset CERTBEGINLIST CERTDATA CERTENDLIST certebegin certend + +mkdir -p certs +rm certs/* # Make sure the directory is clean + +for tempfile in ${TEMPDIR}/certs/*.tmp; do + # Make sure that the cert is trusted... + grep "CKA_TRUST_SERVER_AUTH" "${tempfile}" | \ + egrep "TRUST_UNKNOWN|NOT_TRUSTED" > /dev/null + + if test "${?}" = "0"; then + # Throw a meaningful error and remove the file + cp "${tempfile}" tempfile.cer + perl ${CONVERTSCRIPT} > tempfile.crt + keyhash=$(openssl x509 -noout -in tempfile.crt -hash) + echo "Certificate ${keyhash} is not trusted! Removing..." + rm -f tempfile.cer tempfile.crt "${tempfile}" + continue + fi + + # If execution made it to here in the loop, the temp cert is trusted + # Find the cert data and generate a cert file for it + + cp "${tempfile}" tempfile.cer + perl ${CONVERTSCRIPT} > tempfile.crt + keyhash=$(openssl x509 -noout -in tempfile.crt -hash) + mv tempfile.crt "certs/${keyhash}.pem" + rm -f tempfile.cer "${tempfile}" + echo "Created ${keyhash}.pem" +done + +# Remove blacklisted files +# MD5 Collision Proof of Concept CA +if test -f certs/8f111d69.pem; then + echo "Certificate 8f111d69 is not trusted! Removing..." + rm -f certs/8f111d69.pem +fi + +# Finally, generate the bundle and clean up. +cat certs/*.pem > ${BUNDLE} +rm -r "${TEMPDIR}" +EOF + +chmod +x $PKG/bin/make-ca.sh + +# script to remove expired certificates from a directory +cat > $PKG/bin/remove-expired-certs.sh << "EOF" +#!/bin/bash +# Begin /bin/remove-expired-certs.sh +# +# Version 20120211 + +# Make sure the date is parsed correctly on all systems +function mydate() +{ + local y=$( echo $1 | cut -d" " -f4 ) + local M=$( echo $1 | cut -d" " -f1 ) + local d=$( echo $1 | cut -d" " -f2 ) + local m + + if [ ${d} -lt 10 ]; then d="0${d}"; fi + + case $M in + Jan) m="01";; + Feb) m="02";; + Mar) m="03";; + Apr) m="04";; + May) m="05";; + Jun) m="06";; + Jul) m="07";; + Aug) m="08";; + Sep) m="09";; + Oct) m="10";; + Nov) m="11";; + Dec) m="12";; + esac + + certdate="${y}${m}${d}" +} + +OPENSSL="`which openssl`" +DIR=/etc/ssl/certs + +if [ $# -gt 0 ]; then + DIR="$1" +fi + +certs=$( find ${DIR} -type f -name "*.pem" -o -name "*.crt" ) +today=$( date +%Y%m%d ) + +for cert in $certs; do + notafter=$( $OPENSSL x509 -enddate -in "${cert}" -noout ) + date=$( echo ${notafter} | sed 's/^notAfter=//' ) + mydate "$date" + + if [ ${certdate} -lt ${today} ]; then + echo "${cert} expired on ${certdate}! Removing..." + rm -f "${cert}" + fi +done +EOF + +chmod +x $PKG/bin/remove-expired-certs.sh +} diff --git a/talimatname/temel/coreutils/talimat b/talimatname/temel/coreutils/talimat new file mode 100644 index 000000000..fed7ccac7 --- /dev/null +++ b/talimatname/temel/coreutils/talimat @@ -0,0 +1,49 @@ +# Tanım: Temel sistem özelliklerini göstermek ve ayarlamak için kullanılan yardımcı programlar +# URL: http://www.gnu.org/software/coreutils/ +# Paketçi: milisarge@gmail.com +# Gerekler: +# Grup: temel + +isim=coreutils +surum=8.25 +devir=2 + +kaynak=(http://ftp.gnu.org/gnu/$isim/$isim-$surum.tar.xz + http://www.linuxfromscratch.org/patches/downloads/$isim/$isim-$surum-i18n-2.patch) + +derle() { +cd $isim-$surum + +patch -Np1 -i ../$isim-$surum-i18n-2.patch + +FORCE_UNSAFE_CONFIGURE=1 ./configure --prefix=/usr \ +--libexecdir=/lib --bindir=/bin --sbindir=/sbin \ +--enable-no-install-program=kill,uptime + +FORCE_UNSAFE_CONFIGURE=1 make || FORCE_UNSAFE_CONFIGURE=1 make -j1 +if [ -f /tools/bin/su ];then + make NON_ROOT_USERNAME=nobody check-root + + echo "dummy:x:1000:nobody" >> /etc/group + chown -Rv nobody . + + su-tools nobody -s /bin/bash -c "make -k RUN_EXPENSIVE_TESTS=yes check"||true + + sed -i '/dummy/d' /etc/group +fi +make DESTDIR=$PKG install + +mkdir $PKG/sbin +mkdir -p $PKG/usr/share/man/man8 + +mv -v $PKG/bin/chroot $PKG/sbin + +mv -v $PKG/usr/share/man/man1/chroot.1 $PKG/usr/share/man/man8/chroot.8 +sed -i s/\"1\"/\"8\"/1 $PKG/usr/share/man/man8/chroot.8 + +rm -rf $PKG/usr/share/info/dir + +mkdir -p $PKG/usr/bin +mv $PKG/bin/env $PKG/usr/bin +mv $PKG/bin/install $PKG/usr/bin +} diff --git a/talimatname/temel/cpio/talimat b/talimatname/temel/cpio/talimat new file mode 100644 index 000000000..426c34b0b --- /dev/null +++ b/talimatname/temel/cpio/talimat @@ -0,0 +1,29 @@ +# Tanım: Dosyaları bir cpio veya tar arşivinin içine veya dışına kopyalar. +# URL: http://www.gnu.org/software/cpio/ +# Paketçi: milisarge@gmail.com +# Gerekler: +# Grup: temel + +isim=cpio +surum=2.11 +devir=1 + +kaynak=( http://ftp.gnu.org/gnu/$isim/$isim-$surum.tar.bz2) + +derle() { + cd $isim-$surum + sed -i -e '/gets is a/d' gnu/stdio.in.h + ./configure \ + --prefix=/usr \ + --bindir=/bin \ + --libexecdir=/tmp \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --enable-mt --with-rmt=/usr/sbin/rmt + make + make DESTDIR=$PKG install + if [ -f $PKG/usr/share/info/dir ]; then + rm $PKG/usr/share/info/dir + fi + rm -r $PKG/tmp +} diff --git a/talimatname/temel/curl/talimat b/talimatname/temel/curl/talimat new file mode 100644 index 000000000..3d0614491 --- /dev/null +++ b/talimatname/temel/curl/talimat @@ -0,0 +1,46 @@ +# Tanım: Utility for transferring files with URL syntax to many protocols +# URL: http://curl.haxx.se/ +# Paketçi: milisarge@gmail.com +# Gerekler: +# Grup: temel + +isim=curl +surum=7.47.1 +devir=1 + +kaynak=(http://curl.haxx.se/download/$isim-$surum.tar.lzma) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --bindir=/bin \ + --with-ca-path=/etc/ssl/certs \ + --enable-threaded-resolver + make + make DESTDIR=$PKG install + + find docs \( -name Makefile\* \ + -o -name \*.1 \ + -o -name \*.3 \) \ + -exec rm {} \; + + install -v -d -m755 $PKG/usr/share/doc/curl-$surum + cp -v -R docs/* \ + $PKG/usr/share/doc/curl-$surum + + # reorganise the libs + mkdir $PKG/lib + mv $PKG/usr/lib/libcurl.so.4.4.0 \ + $PKG/lib/ + for LIB in libcurl.so{,.4} + do + ln -sv libcurl.so.4.4.0 $PKG/lib/$LIB + rm $PKG/usr/lib/$LIB + ln -sv ../../lib/libcurl.so.4.4.0 \ + $PKG/usr/lib/$LIB + done + + ln -sv ../../lib/libcurl.so.4.4.0 \ + $PKG/usr/lib/libcurl.so.4.4.0 + +} diff --git a/talimatname/temel/derleme.sira b/talimatname/temel/derleme.sira new file mode 100644 index 000000000..05c43cc5a --- /dev/null +++ b/talimatname/temel/derleme.sira @@ -0,0 +1,79 @@ +glibc +tzdata +zlib +file +binutils +gmp +mpfr +mpc +gcc +bzip2 +pkg-config +ncurses +attr +acl +sed +psmisc +procps-ng +e2fsprogs +iana-etc +m4 +bison +flex +grep +readline +bash +bc +libtool +gdbm +expat +inetutils +perl +autoconf +automake +coreutils +diffutils +gawk +findutils +gettext +gperf +groff +xz +less +gzip +iproute2 +kmod +libpipeline +make +patch +pam +libcap +shadow +sysklogd +sysvinit +tar +texinfo +eudev +util-linux +man-db +nasm +openssl +libarchive +lzip +lz4 +kbd +curl +cpio +pciutils +lzo +lvm2 +wget +rsync +gpm +openssh +dialog +squashfs +dhcpcd +sudo +nano +ca-certificates diff --git a/talimatname/temel/dhcpcd/dhcpcd.kur-kos b/talimatname/temel/dhcpcd/dhcpcd.kur-kos new file mode 100644 index 000000000..73ff1ce8f --- /dev/null +++ b/talimatname/temel/dhcpcd/dhcpcd.kur-kos @@ -0,0 +1 @@ +chmod 1777 /var/tmp diff --git a/talimatname/temel/dhcpcd/talimat b/talimatname/temel/dhcpcd/talimat new file mode 100755 index 000000000..fed09dde1 --- /dev/null +++ b/talimatname/temel/dhcpcd/talimat @@ -0,0 +1,23 @@ +# Tanım: Connect your computer to a network which uses DHCP to assign network addresses. +# URL: http://roy.marples.name/projects/dhcpcd +# Paketçi: milisarge@gmail.com +# Gerekler: +# Grup: temel + +isim=dhcpcd +surum=6.10.1 +devir=1 + +kaynak=(http://roy.marples.name/downloads/$isim/$isim-$surum.tar.xz) + +derle() { + cd $isim-$surum + ./configure --prefix= \ + --libexecdir=/lib/dhcpcd \ + --dbdir=/var/tmp + make + make DESTDIR=$PKG install + sed -i "s;/var/lib;/run;g" dhcpcd-hooks/50-dhcpcd-compat + install -v -m 644 dhcpcd-hooks/50-dhcpcd-compat $PKG/lib/dhcpcd/dhcpcd-hooks/ + rm -r $PKG/var/tmp +} diff --git a/talimatname/temel/dialog/talimat b/talimatname/temel/dialog/talimat new file mode 100644 index 000000000..c74b2f276 --- /dev/null +++ b/talimatname/temel/dialog/talimat @@ -0,0 +1,20 @@ +# Tanım: To create nice user interfaces to shell scripts or other scripting languages. +# URL: http://hightek.org/dialog/ +# Paketçi: milisarge@gmail.com +# Gerekler: + +isim=dialog +surum=1.2.20140911 +devir=1 + +kaynak=(ftp://dickey.his.com/dialog/$isim-1.2-20140911.tgz) + +derle() { + cd $isim-1.2-20140911 + ./configure --prefix=/usr \ + --enable-nls --bindir=/bin \ + --with-ncursesw \ + --mandir=/usr/share/man + make + make DESTDIR=$PKG install +} diff --git a/talimatname/temel/diffutils/talimat b/talimatname/temel/diffutils/talimat new file mode 100644 index 000000000..d039dbc89 --- /dev/null +++ b/talimatname/temel/diffutils/talimat @@ -0,0 +1,20 @@ +# Tanım: Programs that show the differences between files or directories. +# URL: http://www.gnu.org/software/diffutils/ +# Paketçi: milisarge@gmail.com +# Gerekler: + +isim=diffutils +surum=3.3 +devir=1 + +kaynak=( http://ftp.gnu.org/gnu/$isim/diffutils-$surum.tar.xz ) + +derle() { + cd diffutils-$surum + sed -i 's:= @mkdir_p@:= /bin/mkdir -p:' po/Makefile.in.in + ./configure --prefix=/usr \ + --bindir=/bin + make + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/info/dir +} diff --git a/talimatname/temel/e2fsprogs/talimat b/talimatname/temel/e2fsprogs/talimat new file mode 100644 index 000000000..e67f98425 --- /dev/null +++ b/talimatname/temel/e2fsprogs/talimat @@ -0,0 +1,46 @@ +# Tanım: Utilities for handling the ext2,3 and 4 files system. +# URL: http://e2fsprogs.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: + +isim=e2fsprogs +surum=1.42.13 +devir=1 + +kaynak=(http://prdownloads.sourceforge.net/$isim/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum + +sed -e '/int.*old_desc_blocks/s/int/blk64_t/' \ + -e '/if (old_desc_blocks/s/super->s_first_meta_bg/desc_blocks/' \ + -i lib/ext2fs/closefs.c + +mkdir -v build +cd build +LIBS=-L/tools/lib \ +CFLAGS=-I/tools/include \ +PKG_CONFIG_PATH=/tools/lib/pkgconfig \ +../configure --prefix=/usr --with-root-prefix="" --libdir=/lib \ +--bindir=/bin --sbindir=/sbin \ +--enable-elf-shlibs --disable-libblkid --disable-libuuid --disable-uuidd \ +--disable-fsck +make +# somes tests may fails +# make check||true +make DESTDIR=$PKG install install-libs || make -j1 DESTDIR=$PKG install install-libs + +chmod -v u+w $PKG/lib/{libcom_err,libe2p,libext2fs,libss}.a + +gunzip -v $PKG/usr/share/info/libext2fs.info.gz + +makeinfo -o doc/com_err.info ../lib/et/com_err.texinfo + +install -v -m644 doc/com_err.info $PKG/usr/share/info + +rm -rf $PKG/usr/share/info/dir + +mkdir $PKG/usr/lib +mv $PKG/lib/pkgconfig \ +$PKG/usr/lib +} diff --git a/talimatname/temel/eudev/eudev.kos-kur b/talimatname/temel/eudev/eudev.kos-kur new file mode 100644 index 000000000..22e793e5f --- /dev/null +++ b/talimatname/temel/eudev/eudev.kos-kur @@ -0,0 +1 @@ +rm -f /etc/udev/hwdb.bin diff --git a/talimatname/temel/eudev/talimat b/talimatname/temel/eudev/talimat new file mode 100644 index 000000000..d6e675a61 --- /dev/null +++ b/talimatname/temel/eudev/talimat @@ -0,0 +1,64 @@ +# Tanım: The Eudev package contains programs for dynamic creation of device nodes. +# URL: http://www.gentoo.org/proj/en/eudev/ +# Paketçi: milisarge +# Gerekler: + +isim=eudev +surum=3.1.5 +devir=1 + +kaynak=(http://dev.gentoo.org/~blueness/eudev/$isim-$surum.tar.gz + http://anduin.linuxfromscratch.org/sources/other/udev-lfs-20140408.tar.bz2) + +derle() { +cd $isim-$surum +sed -r -i 's|/usr(/bin/test)|\1|' test/udev-test.pl + +if [ -d /tools ];then + cat > config.cache << "EOF" + HAVE_BLKID=1 + BLKID_LIBS="-lblkid" + BLKID_CFLAGS="-I/tools/include" +EOF +fi + +./configure --prefix=/usr --bindir=/sbin \ +--sbindir=/sbin --libdir=/usr/lib \ +--sysconfdir=/etc --libexecdir=/lib \ +--with-rootprefix= \ +--with-rootlibdir=/lib \ +--enable-split-usr \ +--enable-hwdb \ +--disable-introspection \ +--disable-gudev \ +--disable-static \ +--config-cache \ +--disable-gtk-doc-html \ +--with-firmware-path=/lib/firmware +if [ -d /tools ];then + LIBRARY_PATH=/tools/lib make +else + make +fi +mkdir -pv $PKG/lib/{firmware,udev/devices/pts} +mkdir -pv $PKG/lib/udev/rules.d +mkdir -pv $PKG/etc/udev/rules.d +if [ -d /tools ];then + make LD_LIBRARY_PATH=/tools/lib DESTDIR=$PKG install +else + make DESTDIR=$PKG install +fi +# man pages +pushd man +make DESTDIR=$PKG install-man7 install-man8 + +cd $SRC +make -j1 -f udev-lfs-20140408/Makefile.lfs DESTDIR=$PKG install + +# DB +if [ -d /tools ];then + LD_LIBRARY_PATH=/tools/lib $PKG/sbin/udevadm hwdb --update --root=$PKG +else + $PKG/sbin/udevadm hwdb --update --root=$PKG +fi +} diff --git a/talimatname/temel/expat/talimat b/talimatname/temel/expat/talimat new file mode 100644 index 000000000..570b12f8e --- /dev/null +++ b/talimatname/temel/expat/talimat @@ -0,0 +1,17 @@ +# Tanım: The Expat package contains a stream oriented C library for parsing XML. +# URL: http://expat.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: + +isim=expat +surum=2.1.0 +devir=1 + +kaynak=(http://downloads.sourceforge.net/$isim/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/talimatname/temel/file/talimat b/talimatname/temel/file/talimat new file mode 100644 index 000000000..ee738a618 --- /dev/null +++ b/talimatname/temel/file/talimat @@ -0,0 +1,18 @@ +# Tanım: Utility for determining the type of a given file or files. +# URL: ftp://ftp.fu-berlin.de/unix/tools/file/ +# Paketçi: milisarge +# Gerekler: + +isim=file +surum=5.25 +devir=1 + +kaynak=(ftp://ftp.astron.com/pub/file/file-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr + make + make check + make DESTDIR=$PKG install +} diff --git a/talimatname/temel/findutils/talimat b/talimatname/temel/findutils/talimat new file mode 100644 index 000000000..da52cd7df --- /dev/null +++ b/talimatname/temel/findutils/talimat @@ -0,0 +1,26 @@ +# Tanım: GNU utilities to locate files +# URL: http://www.gnu.org/software/findutils/ +# Paketçi: milisarge +# Gerekler: + +isim=findutils +surum=4.6.0 +devir=1 + +kaynak=(http://ftp.gnu.org/gnu/findutils/findutils-$surum.tar.gz) + +derle() +{ + cd findutils-$surum + ./configure --prefix=/usr \ + --libexecdir=/lib/findutils \ + --localstatedir=/var/lib/locate \ + --libdir=/lib --bindir=/bin + + make + # make check + make DESTDIR=$PKG install + + rm -rf $PKG/usr/share/info/dir + sed -i 's/find:=${BINDIR}/find:=\/bin/' $PKG/bin/updatedb +} diff --git a/talimatname/temel/flex/talimat b/talimatname/temel/flex/talimat new file mode 100644 index 000000000..e1dd34434 --- /dev/null +++ b/talimatname/temel/flex/talimat @@ -0,0 +1,36 @@ +# Tanım: A tool for generating text-scanning programs +# URL: http://flex.sourceforge.net +# Paketçi: milisarge +# Gerekler: + +isim=flex +surum=2.5.39 +devir=1 + +kaynak=(http://prdownloads.sourceforge.net/flex/flex-$surum.tar.xz) + +derle() { +cd flex-$surum +sed -i -e '/test-bison/d' tests/Makefile.in + +./configure --prefix=/usr \ +--libdir=/lib --bindir=/bin --sbindir=/sbin \ +--docdir=/usr/share/doc/flex-$surum + +make +make -k check||true + +make DESTDIR=$PKG install + +ln -sv libfl.a $PKG/lib/libl.a +cat > $PKG/bin/lex << "EOF" +#!/bin/sh +# Begin /bin/lex +exec /bin/flex -l "$@" +# End /bin/lex +EOF + +chmod -v 755 $PKG/bin/lex + +rm -r $PKG/usr/share/{info,doc} +} diff --git a/talimatname/temel/gawk/talimat b/talimatname/temel/gawk/talimat new file mode 100644 index 000000000..f389c8513 --- /dev/null +++ b/talimatname/temel/gawk/talimat @@ -0,0 +1,22 @@ +# Tanım: The Gawk package contains programs for manipulating text files. +# URL: http://www.gnu.org/software/gawk/ +# Paketçi: milisarge@gmail.com +# Gerekler: + +isim=gawk +surum=4.1.3 +devir=1 + +kaynak=(http://ftp.gnu.org/gnu/gawk/gawk-$surum.tar.xz) + +derle() { + cd gawk-$surum + ./configure --prefix=/usr + make + # Some checks fails + make check || true + make DESTDIR=$PKG install + rm -rf $PKG/usr/share/info/dir +} + + diff --git a/talimatname/temel/gcc/talimat b/talimatname/temel/gcc/talimat new file mode 100644 index 000000000..6d3b63997 --- /dev/null +++ b/talimatname/temel/gcc/talimat @@ -0,0 +1,101 @@ +# Tanım: GNU compiler collection, which includes the C, C++, fortran and objc compilers. +# URL: http://gcc.gnu.org +# Paketçi: milisarge@gmail.com +# Gerekler: + +isim=gcc +surum=5.3.0 +devir=1 + +kaynak=(http://ftp.gnu.org/gnu/gcc/gcc-$surum/gcc-$surum.tar.bz2) + +derle() +{ +cd gcc-$surum + +mkdir -v ../gcc-build +cd ../gcc-build + +SED=sed \ +../gcc-$surum/configure --prefix=/usr \ + --enable-languages=c,c++,objc,fortran \ + --disable-multilib --disable-bootstrap --with-system-zlib + +make + +make DESTDIR=$PKG install + +mkdir $PKG/lib + +ln -sv ../usr/bin/cpp $PKG/lib/cpp + +ln -sv gcc $PKG/usr/bin/cc + + +install -dm755 $PKG/usr/share/gdb/auto-load/usr/lib +install -dm755 $PKG/usr/lib/bfd-plugins +cd $PKG/usr/lib/bfd-plugins + +case `uname -m` in + i?86) sed -i "s|-L$SRC[^ ]* ||g" \ + $PKG/usr/lib/{libstdc++.la,libsupc++.la} + mv -v $PKG/usr/lib/*gdb.py \ + $PKG/usr/share/gdb/auto-load/usr/lib + ln -sfv ../../libexec/gcc/i686-pc-linux-gnu/$surum/liblto_plugin.so;; + x86_64) + sed -i "s|-L$SRC[^ ]* ||g" \ + $PKG/usr/lib64/{libstdc++.la,libsupc++.la} + mv -v $PKG/usr/lib64/*gdb.py \ + $PKG/usr/share/gdb/auto-load/usr/lib + ln -sfv ../../libexec/gcc/x86_64-unknown-linux-gnu/$surum/liblto_plugin.so;; +esac + +rm -rf $PKG/usr/share/info/dir + + +# Move the needed runtime libraries +case `uname -m` in + i?86) mkdir -pv $PKG/usr/lib + mv -v $PKG/usr/lib/libgfortran.{a,la} \ + $PKG/lib/ + ln -sv ../../lib/libgfortran.{la,a} $PKG/usr/lib + mv -v $PKG/usr/lib/libgfortran.so{,.3,.3.0.0} \ + $PKG/lib/ + ln -svf ../../lib/libgfortran.so{,.3,.3.0.0} $PKG/usr/lib + mv -v $PKG/usr/lib/libgcc_s.so{,.1} \ + $PKG/lib + ln -sv ../../lib/libgcc_s.so{,.1} $PKG/usr/lib + mv -v $PKG/usr/lib/libstdc++.* \ + $PKG/lib/ + mv -v $PKG/usr/lib/libsupc++.{la,a} \ + $PKG/lib + ln -sv ../../lib/libstdc++.so{,.6,.6.0.30} \ + $PKG/usr/lib + ln -sv ../../lib/libstdc++.{a,la} \ + $PKG/usr/lib + ln -sv ../../lib/libsupc++.{la,a} \ + $PKG/usr/lib;; + + x86_64) mkdir -pv $PKG/usr/lib64 + mv -v $PKG/usr/lib64/libgfortran.{a,la} \ + $PKG/lib + ln -sv ../../lib/libgfortran.{la,a} $PKG/usr/lib64 + mv -v $PKG/usr/lib64/libgfortran.so{,.3,.3.0.0} \ + $PKG/lib + ln -sv ../../lib/libgfortran.so{,.3,.3.0.0} $PKG/usr/lib64 + mv -v $PKG/usr/lib64/libgcc_s.so{,.1} \ + $PKG/lib + ln -sv ../../lib/libgcc_s.so{,.1} $PKG/usr/lib64 + mv -v $PKG/usr/lib64/libstdc++.* \ + $PKG/lib + mv -v $PKG/usr/lib64/libsupc++.{la,a} \ + $PKG/lib + ln -sv ../../lib/libstdc++.so{,.6,.6.0.30} \ + $PKG/usr/lib64 + ln -sv ../../lib/libstdc++.{a,la} \ + $PKG/usr/lib64 + ln -sv ../../lib/libsupc++.{la,a} \ + $PKG/usr/lib64;; +esac + +} diff --git a/talimatname/temel/gdbm/talimat b/talimatname/temel/gdbm/talimat new file mode 100644 index 000000000..435e9f76c --- /dev/null +++ b/talimatname/temel/gdbm/talimat @@ -0,0 +1,26 @@ +# Tanım: The GDBM package contains the GNU Database Manager. +# URL: http://www.gnu.org/software/gdbm/gdbm.html +# Paketçi: milisarge +# Gerekler: + +isim=gdbm +surum=1.11 +devir=1 + +kaynak=(http://ftp.gnu.org/gnu/gdbm/gdbm-$surum.tar.gz) + +derle() { +cd gdbm-$surum +./configure --prefix=/usr --libdir=/lib \ +--bindir=/bin --enable-libgdbm-compat + +make + +make check + +make BINOWN=root BINGRP=root prefix=$PKG/usr \ +libdir=$PKG/lib bindir=$PKG/bin install + +rm -rf $PKG/usr/share/info/dir + +} diff --git a/talimatname/temel/gettext/talimat b/talimatname/temel/gettext/talimat new file mode 100644 index 000000000..fbffa7094 --- /dev/null +++ b/talimatname/temel/gettext/talimat @@ -0,0 +1,21 @@ +# Tanım: Utilities for internationalization and localization. +# URL: http://www.gnu.org/software/gettext/ +# Paketçi: milisarge +# Gerekler: + +isim=gettext +surum=0.19.7 +devir=1 + +kaynak=(http://ftp.gnu.org/gnu/gettext/gettext-$surum.tar.xz) +derle() +{ +cd gettext-$surum +./configure --prefix=/usr \ +--docdir=/usr/share/doc/gettext-$surum +make +make check||true +make DESTDIR=$PKG install +rm -rf $PKG/usr/share/info/dir +chmod 0755 $PKG/usr/lib/preloadable_libintl.so +} diff --git a/talimatname/temel/glibc/glibc.locales.supported b/talimatname/temel/glibc/glibc.locales.supported new file mode 100644 index 000000000..6af107094 --- /dev/null +++ b/talimatname/temel/glibc/glibc.locales.supported @@ -0,0 +1,18 @@ +# This file names the currently supported and somewhat tested locales. +# If you have any additions please file a glibc bug report. +SUPPORTED-LOCALES=\ +cs_CZ.UTF-8/UTF-8 \ +de_DE.UTF-8/UTF-8 \ +en_GB.UTF-8/UTF-8 \ +en_HK.UTF-8/UTF-8 \ +en_PH.UTF-8/UTF-8 \ +en_US.UTF-8/UTF-8 \ +es_MX.UTF-8/UTF-8 \ +fa_IR/UTF-8 \ +fr_FR.UTF-8/UTF-8 \ +it_CH.UTF-8/UTF-8 \ +it_IT.UTF-8/UTF-8 \ +ja_JP.EUC-JP/EUC-JP \ +ru_RU/UTF-8 \ +tr_TR.UTF-8/UTF-8 \ +zh_CN.GB18030/GB18030 \ diff --git a/talimatname/temel/glibc/talimat b/talimatname/temel/glibc/talimat new file mode 100644 index 000000000..72393dab8 --- /dev/null +++ b/talimatname/temel/glibc/talimat @@ -0,0 +1,106 @@ +# Tanım: The Glibc package contains the main C library. +# URL: https://www.gnu.org/software/libc/ +# Paketçi: milisarge +# Gerekler: + +kernelsurum=4.4 +isim=glibc +surum=2.23 +devir=1 + +kaynak=(http://www.kernel.org/pub/linux/kernel/v4.x/linux-$kernelversion.tar.xz + http://www.linuxfromscratch.org/patches/downloads/$isim/glibc-$surum-fhs-1.patch + http://ftp.gnu.org/gnu/glibc/glibc-$surum.tar.xz glibc.locales.supported ) + +derle() { + +# Headers +cd linux-$kernelversion +make mrproper +make headers_check +make INSTALL_HDR_PATH=dest headers_install +find dest/include \( -name .install -o -name ..install.cmd \) -delete +mkdir -p $PKG/usr/include +cp -rv dest/include/* $PKG/usr/include + +cd ../glibc-$surum + +patch -Np1 -i ../glibc-$surum-fhs-1.patch + +mkdir -v ../glibc-build +cd ../glibc-build + +../glibc-$surum/configure --prefix=/usr \ +--disable-profile \ +--enable-kernel=2.6.32 \ +--enable-obsolete-rpc + +make || make -j1 + +# make -k check 2>&1 | tee glibc-check-log +# grep Error glibc-check-log + +make install_root=$PKG install +rm -rf $PKG/usr/share/info/dir + +mkdir -p $PKG/etc +cp -v ../glibc-$surum/nscd/nscd.conf $PKG/etc/nscd.conf +mkdir -pv $PKG/var/cache/nscd + +touch $PKG/etc/ld.so.conf + +mkdir -pv $PKG/usr/lib/locale + +cp $SRC/glibc.locales.supported \ +../glibc-$surum/localedata/SUPPORTED + +make install_root=$PKG localedata/install-locales + +cat > $PKG/etc/nsswitch.conf << "EOF" +# Begin /etc/nsswitch.conf + +passwd: files +group: files +shadow: files + +hosts: files dns +networks: files + +protocols: files +services: files +ethers: files +rpc: files + +# End /etc/nsswitch.conf +EOF + + +cat > $PKG/etc/ld.so.conf << "EOF" +# Begin /etc/ld.so.conf +/lib +/lib64 +/usr/lib +/usr/lib64 +/usr/local/lib +/usr/local/lib64 + +# Add an include directory +include /etc/ld.so.conf.d/*.conf +# End of /etc/ld.so.conf +EOF + +if [ "`uname -m`" == "i686" ];then + cat > $PKG/etc/ld.so.conf << "EOF" +# Begin /etc/ld.so.conf +/lib +/usr/lib +/usr/local/lib + +# Add an include directory +include /etc/ld.so.conf.d/*.conf +# End of /etc/ld.so.conf +EOF +fi + +mkdir $PKG/etc/ld.so.conf.d +} diff --git a/talimatname/temel/gmp/talimat b/talimatname/temel/gmp/talimat new file mode 100644 index 000000000..800752e2e --- /dev/null +++ b/talimatname/temel/gmp/talimat @@ -0,0 +1,34 @@ +# Tanım: A free library for arbitrary precision arithmetic. +# URL: http://gmplib.org/ +# Paketçi: milisarge +# Gerekler: + +isim=gmp +surum=6.1.0 +devir=1 + +kaynak=(http://ftp.gnu.org/gnu/$isim/$isim-$surum.tar.xz) + +derle() { + cd gmp-$surum + case `uname -m` in + i?86) + ABI=32 ./configure --build=i686-pc-linux-gnu \ + --prefix=/usr --enable-cxx --libdir=/lib ;; + *) + ./configure --build=x86_64-unknown-linux-gnu \ + --prefix=/usr --enable-cxx --libdir=/lib ;; + esac + make + # make check 2>&1 | tee gmp-check-log + # awk '/tests passed/{total+=$2} ; END{print total}' gmp-check-log + make DESTDIR=$PKG install + + rm -rf $PKG/usr/share/info/dir + + # Documentation + #mkdir -p $PKG/usr/share/doc/gmp-${surum} + + #cp doc/{isa_abi_headache,configuration} doc/*.html \ + #$PKG/usr/share/doc/gmp-${surum} +} diff --git a/talimatname/temel/gperf/talimat b/talimatname/temel/gperf/talimat new file mode 100644 index 000000000..86e736469 --- /dev/null +++ b/talimatname/temel/gperf/talimat @@ -0,0 +1,18 @@ +# Tanım: Gperf generates a perfect hash function from a key set. +# URL: http://www.gnu.org/software/gperf/gperf.html +# Paketçi: milisarge +# Gerekler: + +isim=gperf +surum=3.0.4 +devir=1 + +kaynak=(ftp://ftp.sunet.se/pub/gnu/$isim/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--docdir=/usr/share/doc/$isim-$surum +make +make DESTDIR=$PKG install +} diff --git a/talimatname/temel/gpm/gpm.service.kur-kos b/talimatname/temel/gpm/gpm.service.kur-kos new file mode 100644 index 000000000..11c633cac --- /dev/null +++ b/talimatname/temel/gpm/gpm.service.kur-kos @@ -0,0 +1,4 @@ +if [ ! -f etc/sysconfig/mouse ]; then + echo "MDEVICE=\"/dev/input/mice\" +PROTOCOL=\"imps2\"" > etc/sysconfig/mouse +fi diff --git a/talimatname/temel/gpm/talimat b/talimatname/temel/gpm/talimat new file mode 100644 index 000000000..da52ab97c --- /dev/null +++ b/talimatname/temel/gpm/talimat @@ -0,0 +1,31 @@ +# Tanım: A free library for arbitrary precision arithmetic. +# URL: http://unix.schottelius.org/gpm +# Paketçi: milisarge +# Gerekler: + +isim=gpm +surum=1.20.7 +devir=2 + +kaynak=(http://www.nico.schottelius.org/software/$isim/archives/$isim-$surum.tar.bz2) + +derle() { + source /etc/blfs-bootscripts + wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2 + tar xvf $scripts-$scriptsversion.tar.bz2 + + cd $isim-$surum + ./autogen.sh + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info + LDFLAGS="-lm" make + make ROOT=$PKG install + ln -sv libgpm.so.2.1.0 $PKG/usr/lib/libgpm.so.1 + ln -sv libgpm.so.2.1.0 $PKG/usr/lib/libgpm.so + install -v -m644 conf/gpm-root.conf $PKG/etc + + cd ../$scripts-$scriptsversion + make DESTDIR=$PKG install-gpm +} diff --git a/talimatname/temel/grep/talimat b/talimatname/temel/grep/talimat new file mode 100644 index 000000000..06099cf00 --- /dev/null +++ b/talimatname/temel/grep/talimat @@ -0,0 +1,21 @@ +# Tanım: Searches input(s) file(s) for lines containing a match to a specified pattern. +# URL: http://www.gnu.org/software/grep/ +# Paketçi: milisarge +# Gerekler: + +isim=grep +surum=2.23 +devir=1 + +kaynak=(http://ftp.gnu.org/gnu/grep/grep-$surum.tar.xz) + +derle() +{ +cd grep-$surum + +./configure --prefix=/usr --bindir=/bin +make +make check || true +make DESTDIR=$PKG install +rm -rf $PKG/usr/share/info/dir +} diff --git a/talimatname/temel/groff/talimat b/talimatname/temel/groff/talimat new file mode 100644 index 000000000..83b830e3e --- /dev/null +++ b/talimatname/temel/groff/talimat @@ -0,0 +1,26 @@ +# Tanım: The Groff package contains programs for processing and formatting text. +# URL: http://www.gnu.org/software/groff/ +# Paketçi: milisarge +# Gerekler: + +isim=groff +surum=1.22.3 +devir=1 + +kaynak=(http://ftp.gnu.org/gnu/groff/groff-$surum.tar.gz) + +derle() +{ +cd groff-$surum + +PAGE="A4" ./configure --prefix=/usr + +make || make -j1 + +make prefix=$PKG/usr \ +infodir=$PKG/usr/share/info install + +ln -sv eqn $PKG/usr/bin/geqn +ln -sv tbl $PKG/usr/bin/gtbl +rm -rf $PKG/usr/share/info/dir +} diff --git a/talimatname/temel/gzip/talimat b/talimatname/temel/gzip/talimat new file mode 100644 index 000000000..1c29f7031 --- /dev/null +++ b/talimatname/temel/gzip/talimat @@ -0,0 +1,21 @@ +# Tanım: The Gzip package contains programs for compressing and decompressing files. +# URL: http://www.gzip.org/ +# Paketçi: milisarge +# Gerekler: + +isim=gzip +surum=1.6 +devir=1 + +kaynak=(http://ftp.gnu.org/gnu/gzip/gzip-$surum.tar.xz) + +derle() +{ +cd gzip-$surum +./configure --prefix=/usr \ + --bindir=/bin --libdir=/lib +make +make -k check || true +make DESTDIR=$PKG install +rm -rf $PKG/usr/share/info/dir +} diff --git a/talimatname/temel/iana-etc/talimat b/talimatname/temel/iana-etc/talimat new file mode 100644 index 000000000..80c284e03 --- /dev/null +++ b/talimatname/temel/iana-etc/talimat @@ -0,0 +1,21 @@ +# Tanım: The Iana-Etc package provides data for network services and protocols. +# URL: http://www.sethwklein.net/projects/iana-etc/ +# Paketçi: milisarge +# Gerekler: + +isim=iana-etc +surum=2.30 +devir=1 + +kaynak=(http://sethwklein.net/iana-etc-2.30.tar.bz2) + +derle() +{ +cd iana-etc-$surum + +make + +make DESTDIR=$PKG install + +} + diff --git a/talimatname/temel/inetutils/talimat b/talimatname/temel/inetutils/talimat new file mode 100644 index 000000000..bc4d29d2b --- /dev/null +++ b/talimatname/temel/inetutils/talimat @@ -0,0 +1,31 @@ +# Tanım: The Inetutils package contains programs for basic networking. +# URL: http://www.gnu.org/software/inetutils/ +# Paketçi: milisarge +# Gerekler: + +isim=inetutils +surum=1.9.4 +devir=1 + +kaynak=(http://ftp.gnu.org/gnu/inetutils/inetutils-$surum.tar.xz) + +derle() +{ +cd inetutils-$surum + +./configure --prefix=/usr \ +-libexecdir=/sbin \ +--bindir=/bin \ +--sbindir=/sbin \ +--localstatedir=/var \ +--disable-logger \ +--disable-whois \ +--disable-servers +make +make check || true +make DESTDIR=$PKG install + +mv -v $PKG/bin/traceroute $PKG/sbin +mv -v $PKG/bin/ifconfig $PKG/sbin +rm -rf $PKG/usr/share/info/dir +} diff --git a/talimatname/temel/iproute2/talimat b/talimatname/temel/iproute2/talimat new file mode 100644 index 000000000..885bb07d4 --- /dev/null +++ b/talimatname/temel/iproute2/talimat @@ -0,0 +1,27 @@ +# Tanım: Programs for basic and advanced network routing. +# URL: http://linux-net.osdl.org/index.php/Iproute2 +# Paketçi: milisarge +# Gerekler: + +isim=iproute2 +surum=4.4.0 +devir=1 + +kaynak=(http://www.kernel.org/pub/linux/utils/net/$isim/iproute2-$surum.tar.xz) + +derle() +{ +cd iproute2-$surum +sed -i '/^TARGETS/s@arpd@@g' misc/Makefile +sed -i /ARPD/d Makefile +sed -i 's/arpd.8//' man/man8/Makefile + +sed -i 's/tipc //' Makefile + +make SBINDIR=/sbin MANDIR=/usr/share/man INFODIR=/usr/share/info \ + DESTDIR=$PKG +make SBINDIR=/sbin \ + INFODIR=/usr/share/info DESTDIR=$PKG \ + install +rm -rf $PKG/usr/share/info/dir +} diff --git a/talimatname/temel/kbd/talimat b/talimatname/temel/kbd/talimat new file mode 100644 index 000000000..b1a659ea4 --- /dev/null +++ b/talimatname/temel/kbd/talimat @@ -0,0 +1,28 @@ +# Tanım: The Kbd package contains key-table files, console fonts, and keyboard utilities +# URL: ftp://devel.altlinux.org/legion/kbd/ +# Paketçi: milisarge +# Gerekler: + +isim=kbd +surum=2.0.3 +devir=2 + +kaynak=(http://ftp.altlinux.com/pub/people/legion/kbd/kbd-$surum.tar.xz \ + http://www.linuxfromscratch.org/patches/downloads/$isim/$isim-$surum-backspace-1.patch) + +derle() +{ +cd kbd-$surum + +patch -Np1 -i ../$isim-$surum-backspace-1.patch + +sed -i 's/\(RESIZECONS_PROGS=\)yes/\1no/g' configure +sed -i 's/resizecons.8 //' docs/man/man8/Makefile.in + +PKG_CONFIG_PATH=/tools/lib/pkgconfig ./configure --prefix=/usr \ +--bindir=/bin --datadir=/lib/kbd + +make +make check +make DESTDIR=$PKG install +} diff --git a/talimatname/temel/kmod/talimat b/talimatname/temel/kmod/talimat new file mode 100644 index 000000000..4cd7be25a --- /dev/null +++ b/talimatname/temel/kmod/talimat @@ -0,0 +1,30 @@ +# Tanım: The Kmod package contains libraries and utilities for loading kernel modules. +# URL: http://www.kernel.org/pub/linux/kernel/people/rusty/modules +# Paketçi: milisarge +# Gerekler: + +isim=kmod +surum=22 +devir=1 + +kaynak=(http://www.kernel.org/pub/linux/utils/kernel/kmod/kmod-$surum.tar.xz ) + +derle() +{ +cd $isim-$surum +./configure --prefix=/usr \ +--bindir=/bin \ +--sysconfdir=/etc \ +--with-rootlibdir=/lib \ +--disable-manpages \ +--with-xz \ +--with-zlib + +make +make DESTDIR=$PKG install +mkdir $PKG/sbin +for target in depmod insmod modinfo modprobe rmmod; do + ln -sv ../bin/kmod $PKG/sbin/$target +done +ln -sv kmod $PKG/bin/lsmod +} diff --git a/talimatname/temel/less/talimat b/talimatname/temel/less/talimat new file mode 100644 index 000000000..597f6aee5 --- /dev/null +++ b/talimatname/temel/less/talimat @@ -0,0 +1,19 @@ +# Tanım: The Less package contains a text file viewer. +# URL: http://www.greenwoodsoftware.com/less/ +# Paketçi: milisarge +# Gerekler: + +isim=less +surum=458 +devir=1 + +kaynak=(http://www.greenwoodsoftware.com/less/less-$surum.tar.gz) + +derle() +{ +cd less-$surum +./configure --prefix=/usr \ +--sysconfdir=/etc +make +make DESTDIR=$PKG install +} diff --git a/talimatname/temel/libarchive/talimat b/talimatname/temel/libarchive/talimat new file mode 100644 index 000000000..37c9d5be2 --- /dev/null +++ b/talimatname/temel/libarchive/talimat @@ -0,0 +1,22 @@ +# Tanım: farklı arşiv tiplerini uygulayan kütüphane +# URL: http://people.freebsd.org/~kientzle/libarchive +# Paketçi: milisarge +# Gerekler: + +isim=libarchive +surum=3.3.2 +devir=1 + +kaynak=(http://www.libarchive.org/downloads/libarchive-$surum.tar.gz) + +derle() { + cd $isim-$surum + autoreconf -fi + ./configure \ + --prefix=/usr \ + --without-xml2 \ + --without-nettle \ + --disable-static + make + make DESTDIR=$PKG install +} diff --git a/talimatname/temel/libcap/talimat b/talimatname/temel/libcap/talimat new file mode 100644 index 000000000..cf97b5b71 --- /dev/null +++ b/talimatname/temel/libcap/talimat @@ -0,0 +1,30 @@ +# Tanım: POSIX 1003.1e capabilities library +# URL: http://www.kernel.org/pub/linux/libs/security/linux-privs/ +# Paketçi: milisarge +# Gerekler: + +isim=libcap +surum=2.25 +devir=1 + +kaynak=( https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-$surum.tar.xz) + +derle() { +cd libcap-$surum +sed -i 's:LIBDIR:PAM_&:g' pam_cap/Makefile +sed -i '/install.*STALIBNAME/d' libcap/Makefile +make +make RAISE_SETFCAP=no \ +prefix=/usr \ +LIBDIR=/usr/lib \ +SBINDIR=/sbin \ +PAM_LIBDIR=/lib \ +DESTDIR=$PKG install + +mkdir -p $PKG/lib +_lib="" +mv -v $PKG/usr/lib${_lib}/libcap.so.* \ +$PKG/lib +ln -sfv ../../lib/libcap.so.2 $PKG/usr/lib${_lib}/libcap.so +} + diff --git a/talimatname/temel/libpipeline/talimat b/talimatname/temel/libpipeline/talimat new file mode 100644 index 000000000..9b0fb3f7a --- /dev/null +++ b/talimatname/temel/libpipeline/talimat @@ -0,0 +1,23 @@ +# Tanım: C library for manipulating pipelines of subprocesses in a flexible way +# URL: http://libpipeline.nongnu.org/ +# Paketçi: milisarge +# Gerekler: + +isim=libpipeline +surum=1.4.1 +devir=1 + +kaynak=(http://download.savannah.gnu.org/releases/libpipeline/libpipeline-$surum.tar.gz) + +derle() +{ +cd $isim-$surum +PKG_CONFIG_PATH=/tools/lib/pkgconfig \ +./configure --prefix=/usr \ +--libdir=/lib +make +make DESTDIR=$PKG install +mkdir $PKG/usr/lib +mv $PKG/lib/pkgconfig \ +$PKG/usr/lib +} diff --git a/talimatname/temel/libtool/talimat b/talimatname/temel/libtool/talimat new file mode 100644 index 000000000..5e488fc9f --- /dev/null +++ b/talimatname/temel/libtool/talimat @@ -0,0 +1,19 @@ +# Tanım: The GNU generic library support script. +# URL: http://www.gnu.org/software/libtool/ +# Paketçi: milisarge +# Gerekler: + +isim=libtool +surum=2.4.6 +devir=1 + +kaynak=(http://ftp.gnu.org/gnu/libtool/libtool-$surum.tar.xz) + +derle() +{ +cd libtool-* +./configure --prefix=/usr +make +make DESTDIR=$PKG install +rm -rf $PKG/usr/share/info/dir +} diff --git a/talimatname/temel/lvm2/lvm2.okubeni b/talimatname/temel/lvm2/lvm2.okubeni new file mode 100644 index 000000000..cdf9fe1a0 --- /dev/null +++ b/talimatname/temel/lvm2/lvm2.okubeni @@ -0,0 +1,8 @@ +Check the following option in the kernel configuration: +Vérifiez que le kernel est correctement configuré: +Device Drivers ---> + Multiple devices driver support (RAID and LVM): Y + Device mapper support: Y or M + Crypt target support: (optional) + Snapshot target: (optional) + Mirror target: (optional) diff --git a/talimatname/temel/lvm2/talimat b/talimatname/temel/lvm2/talimat new file mode 100644 index 000000000..84235508c --- /dev/null +++ b/talimatname/temel/lvm2/talimat @@ -0,0 +1,24 @@ +# Tanım: Allows spanning of file systems across multiple physical disks and partitions. +# URL: http://sourceware.org/lvm2/ +# Paketçi: milisarge +# Gerekler: + +isim=lvm2 +surum=2.02.141 +devir=1 + +kaynak=(ftp://sources.redhat.com/pub/lvm2/LVM2.$surum.tgz) +derle() { +cd LVM2.$surum +./configure \ +--prefix=/usr \ +--exec-prefix= \ +--with-confdir=/etc \ +--mandir=/usr/share/man \ +--enable-applib \ +--enable-cmdlib \ +--enable-pkgconfig \ +--enable-udev_sync +make +make DESTDIR=$PKG install +} diff --git a/talimatname/temel/lz4/talimat b/talimatname/temel/lz4/talimat new file mode 100644 index 000000000..5222fbf81 --- /dev/null +++ b/talimatname/temel/lz4/talimat @@ -0,0 +1,17 @@ +# Tanım: Very fast lossless compression algorithm +# Url: https://github.com/Cyan4973/lz4 +# Paketçi: milisarge +# Gerekler: + +isim=lz4 +surum=r131 +devir=1 + +kaynak=(https://github.com/Cyan4973/lz4/archive/r131.tar.gz) + +derle() { +cd $isim-$surum +make PREFIX=/usr + +make install PREFIX=/usr DESTDIR=$PKG +} diff --git a/talimatname/temel/lzip/talimat b/talimatname/temel/lzip/talimat new file mode 100644 index 000000000..b6be01b5d --- /dev/null +++ b/talimatname/temel/lzip/talimat @@ -0,0 +1,17 @@ +# Tanım: Lzip is a lossless data compressor with a user interface similar to the one of gzip or bzip2 +# URL: download.savannah.gnu.org +# Paketçi: milisarge +# Gerekler: + +isim=lzip +surum=1.18-rc1 +devir=1 + +kaynak=(http://download.savannah.gnu.org/releases/$isim/$isim-$surum.tar.gz) +derle() +{ +cd $isim-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +} diff --git a/talimatname/temel/lzo/talimat b/talimatname/temel/lzo/talimat new file mode 100644 index 000000000..f1366a470 --- /dev/null +++ b/talimatname/temel/lzo/talimat @@ -0,0 +1,19 @@ +# Tanım: Portable lossless data compression library. +# URL: http://www.oberhumer.com/opensource/lzo +# Paketçi: milisarge +# Gerekler: + +isim=lzo +surum=2.09 +devir=1 + +kaynak=( http://www.oberhumer.com/opensource/$isim/download/$isim-$surum.tar.gz) + +derle() { + cd $isim-$surum + ./configure --prefix=/usr \ + --enable-shared \ + --docdir=/usr/share/doc/lzo-$surum + make + make DESTDIR=$PKG install +} diff --git a/talimatname/temel/m4/talimat b/talimatname/temel/m4/talimat new file mode 100644 index 000000000..c2bb4f846 --- /dev/null +++ b/talimatname/temel/m4/talimat @@ -0,0 +1,20 @@ +# Tanım: The M4 package contains a macro processor +# URL: http://www.seindal.dk/rene/gnu/ +# Paketçi: milisarge +# Gerekler: + +isim=m4 +surum=1.4.17 +devir=1 + +kaynak=(http://ftp.gnu.org/gnu/m4/m4-$surum.tar.xz) + +derle() +{ +cd m4-$surum +./configure --prefix=/usr +make +make check || true +make DESTDIR=$PKG install +rm -rf $PKG/usr/share/info/dir +} diff --git a/talimatname/temel/make/talimat b/talimatname/temel/make/talimat new file mode 100644 index 000000000..f168b8157 --- /dev/null +++ b/talimatname/temel/make/talimat @@ -0,0 +1,18 @@ +# Tanım: The Make package contains a program for compiling packages. +# URL: http://www.gnu.org/software/make/ +# Paketçi: milisarge +# Gerekler: + +isim=make +surum=4.1 +devir=1 + +kaynak=(http://ftp.gnu.org/gnu/make/make-$surum.tar.bz2) +derle() +{ +cd make-$surum +./configure --prefix=/usr +make +make DESTDIR=$PKG install +rm -rf $PKG/usr/share/info/dir +} diff --git a/talimatname/temel/man-db/talimat b/talimatname/temel/man-db/talimat new file mode 100644 index 000000000..e49b11109 --- /dev/null +++ b/talimatname/temel/man-db/talimat @@ -0,0 +1,40 @@ +# Tanım: The Man-DB package contains programs for finding and viewing man pages. +# URL: http://savannah.nongnu.org/projects/man-db +# Paketçi: milisarge +# Gerekler: + +isim=man-db +surum=2.7.2 +devir=1 + +kaynak=(http://savannah.nongnu.org/download/man-db/man-db-$surum.tar.xz) + +derle() +{ +cd man-db-$surum +PKG_CONFIG_PATH="/usr/lib/pkgconfig" ./configure --prefix=/usr \ +--libexecdir=/usr/lib \ +--docdir=/usr/share/doc/man-$surum \ +--sysconfdir=/etc --disable-setuid \ +--with-browser=/usr/bin/lynx --with-vgrind=/usr/bin/vgrind \ +--with-grap=/usr/bin/grap + +make +# Certains test fails +make -k check || true +make DESTDIR=$PKG install +cat >> convert-mans << "EOF" +#!/bin/sh -e +FROM="$1" +TO="$2" +shift ; shift +while [ $# -gt 0 ] +do + FILE="$1" + shift + iconv -f "$FROM" -t "$TO" "$FILE" >.tmp.iconv + mv .tmp.iconv "$FILE" +done +EOF +install -m755 convert-mans $PKG/usr/bin +} diff --git a/talimatname/temel/mpc/talimat b/talimatname/temel/mpc/talimat new file mode 100644 index 000000000..d3c1f2f01 --- /dev/null +++ b/talimatname/temel/mpc/talimat @@ -0,0 +1,20 @@ +# Tanım: Library for the arithmetic of complex numbers with arbitrarily high precision. +# URL: http://www.multiprecision.org/ +# Paketçi: milisarge +# Gerekler: + +isim=mpc +surum=1.0.3 +devir=1 + +kaynak=(http://www.multiprecision.org/mpc/download/mpc-$surum.tar.gz) + +derle() +{ +cd mpc-$surum +./configure --prefix=/usr --libdir=/lib +make +make check +make DESTDIR=$PKG install +rm -rf $PKG/usr/share/info/dir +} diff --git a/talimatname/temel/mpfr/talimat b/talimatname/temel/mpfr/talimat new file mode 100644 index 000000000..f18a82c87 --- /dev/null +++ b/talimatname/temel/mpfr/talimat @@ -0,0 +1,26 @@ +# Tanım: The MPFR package contains functions for multiple precision math +# URL: http://www.mpfr.org/ +# Paketçi: milisarge +# Gerekler: + +isim=mpfr +surum=3.1.3 +devir=2 + +kaynak=(http://www.mpfr.org/mpfr-current/mpfr-$surum.tar.xz + http://www.linuxfromscratch.org/patches/downloads/$isim/$isim-$surum-upstream_fixes-1.patch) + +derle() +{ +cd mpfr-$surum +patch -Np1 -i ../$isim-$surum-upstream_fixes-1.patch +./configure --prefix=/usr --enable-thread-safe \ + --libdir=/lib \ + --docdir=/usr/share/doc/mpfr-$surum +make +make check +make DESTDIR=$PKG install +#make html +#make DESTDIR=$PKG install-html +#rm -rf $PKG/usr/share/info/dir +} diff --git a/talimatname/temel/nano/talimat b/talimatname/temel/nano/talimat new file mode 100644 index 000000000..62a18840e --- /dev/null +++ b/talimatname/temel/nano/talimat @@ -0,0 +1,27 @@ +# Tanım: A simple text editor which aims to replace Pico, the default editor in the Pine package. +# URL: http://www.nano-editor.org/ +# Paketçi: milisarge +# Gerekler: + +isim=nano +surum=2.5.2 +devir=1 + +kaynak=(http://ftp.gnu.org/gnu/$isim/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--sysconfdir=/etc \ +--enable-utf8 \ +--enable-color \ +--enable-multibuffer \ +--enable-nanorc \ +--docdir=/usr/share/doc/nano-$surum \ +--disable-x +make +make DESTDIR=$PKG install +mkdir -p $PKG/etc/nano +install -v -m644 -D doc/nanorc.sample $PKG/etc/nano/nanorc.sample +rm $PKG/usr/share/info/dir +} diff --git a/talimatname/temel/nasm/talimat b/talimatname/temel/nasm/talimat new file mode 100755 index 000000000..7168d47c1 --- /dev/null +++ b/talimatname/temel/nasm/talimat @@ -0,0 +1,28 @@ +# Tanım: 80x86 assembler designed for portability and modularity. +# URL: http://nasm.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: + +isim=nasm +surum=2.11.06 +devir=1 + +kaynak=( ftp://ftp.debian.org/debian/pool/main/n/nasm/nasm_2.11.06-1really2.11.05.orig.tar.xz + http://www.nasm.us/pub/nasm/releasebuilds/$surum/nasm-$surum-xdoc.tar.xz) + +derle() { + cd $isim-2.11.05 + ./configure --prefix=/usr\ + --mandir=/usr/share/man + make + mkdir -p $PKG/usr/bin + mkdir -p $PKG/usr/share/man/man1 + make INSTALLROOT=$PKG install + +mkdir -pv $PKG/usr/share/doc/nasm-$surum/html +cd ../$isim-2.11.06 +cp -v doc/html/*.html $PKG/usr/share/doc/nasm-$surum/html +cp -v doc/*.{txt,ps,pdf} $PKG/usr/share/doc/nasm-$surum +mkdir -pv $PKG/usr/share/info +cp -v doc/info/* $PKG/usr/share/info +} diff --git a/talimatname/temel/ncurses/talimat b/talimatname/temel/ncurses/talimat new file mode 100644 index 000000000..aa18a634a --- /dev/null +++ b/talimatname/temel/ncurses/talimat @@ -0,0 +1,63 @@ +# Tanım: Libraries for terminal-independent handling of character screens. +# URL: http://www.gnu.org/software/ncurses/ncurses.html +# Paketçi: milisarge +# Gerekler: + +isim=ncurses +surum=6.0 +devir=1 + +kaynak=(ftp://invisible-island.net/ncurses/ncurses-$surum.tar.gz) + +derle() +{ +cd ncurses-$surum + +sed -i '/LIBTOOL_INSTALL/d' c++/Makefile.in + +./configure --prefix=/usr --mandir=/usr/share/man \ +-infodir=/usr/share/info --without-normal \ +--with-shared --bindir=/bin --sbindir=/sbin \ +--libdir=/lib --without-debug --enable-pc-files \ +--enable-widec --with-install-prefix=$PKG + +make + +make install + +mkdir -p $PKG/lib + +for lib in ncurses form panel menu ; do \ + rm -vf $PKG/lib/lib${lib}.so ; \ + echo "INPUT(-l${lib}w)" >$PKG/lib/lib${lib}.so ; \ + ln -sfv lib${lib}w.a $PKG/lib/lib${lib}.a ; \ +done +ln -sfv libncurses++w.a $PKG/lib/libncurses++.a +rm -vf $PKG/usr/lib/libcursesw.so +echo "INPUT(-lncursesw)" >$PKG/lib/libcursesw.so +ln -sfv libncurses.so $PKG/lib/libcurses.so +ln -sfv libncursesw.a $PKG/lib/libcursesw.a +ln -sfv libncurses.a $PKG/lib/libcurses.a + +make distclean + +./configure --prefix=/usr --with-shared --without-normal \ +--mandir=/usr/share/man --infodir=/usr/share/info \ +--bindir=/bin --sbindir=/sbin --libdir=/lib \ +--without-debug --without-cxx-binding --with-install-prefix=$PKG + +make sources libs + +cp -av lib/lib*.so.6* $PKG/lib + +rm -rf $PKG/usr/lib/terminfo + +mkdir $PKG/lib/ncurses +for DIR in terminfo tabset +do + mv -v $PKG/usr/share/$DIR \ + $PKG/lib/ncurses + ln -sv ../../lib/ncurses/$DIR $PKG/usr/share/$DIR +done + +} diff --git a/talimatname/temel/openssh/openssh.okubeni b/talimatname/temel/openssh/openssh.okubeni new file mode 100644 index 000000000..ff47d61cb --- /dev/null +++ b/talimatname/temel/openssh/openssh.okubeni @@ -0,0 +1,439 @@ +Pour lancer le service ssh + +- 1. installer soit le port: openssh.service +- 2. La page + http://www.linuxfromscratch.org/blfs/view/svn/postlfs/openssh.html + +Pour plus d'infos + +Astuces diverses: + +- Créer une nouvelle paire de clé (privée/publique) +$ ssh-keygen -t dsa +Enter file in which to save the key (/home/thierry/.ssh/id_dsa): +Enter passphrase (empty for no passphrase): +Enter same passphrase again: +Your identification has been saved in /home/thierry/.ssh/id_dsa. +Your public key has been saved in /home/thierry/.ssh/id_dsa.pub. +The key fingerprint is: +87:66:b7:a0:f6:0e:6a:71:2c:5d:ee:5f:17:2a:b7:2f thierry@nutyx + +Pour l'envoyer directement sur le serveur ssh: + +$ cat ~/.ssh/id_dsa.pub | ssh user@remotehost "cat - >> ~/.ssh/authorized_keys" + +- Une autre façon de l'envoyer: + +$ ssh-copy-id -i ~/.ssh/id_dsa.pub user@remotehost + +- Eviter le message lastlog: + +$ ssh -T user@hostname.com + +- Piping + +Exemple de serialisation d'un process de sauvegarde au travers ssh: + +$ ufsdump 0uf - /dev/md/rdsk/d33 | ssh r280n "dd obs=32k ibs=32k of=/dev/rmt/0n" + +- rsync à travers ssh: + +$ rsync -avz -e "ssh -i /home/thisuser/cron/thishost-rsync-key" \ +remoteuser@remotehost:/remote/dir /this/dir/ + +- X-forwarding ou lancer le serveur X à distance à travers ssh + +$ ssh -X thierry@remotehost +Warning: untrusted X11 forwarding setup failed: xauth key data not generated +Warning: No xauth data; using fake authentication data for X11 forwarding. + +- Port forwarding / Redirection de ports entre 2 hosts: + +Set up a localforward from the remote machine port 25 to a local port 9025: +Rediriger un locaforward depuis la machine à distance port 25 sur la machine locale port 9025: + +$ ssh -L 9025:localhost:25 thierry@remotehost + +- No command: + +Parfois on souhaite un config avec un forward utilisant un shell + +$ ssh -N -L 9025:localhost:25 patrick@remotehost + +- KeepAlive: + +Getting tired of those timeouts by the firewall? Have ssh send a keepalive +Raz le bol des timeouts des routeurs / parefeu ? ssh peut envoyer un signal "keepalive" + +Ajoutez ds votre $HOME/.ssh/ssh_config + +KeepAlive yes +ServerAliveInterval 60 + +- Définir un nouveau socket pour proxy + +Sometimes it's interesting to start a socks daemon. You can configure this in your browser to surf as it seems to come from the remote machine. +Il est parfois intéressant de démarrer un démon socket. Vous pouvez configurer cela dans votre navigateur et faire transiter TOUTES les requêtes comme si elles venaient de la +machine à distance. + +$ ssh -D 9999 patrick@remotehost + +- Passer à travers les proxy http: + +Les pares feu des entreprises ne permettent très souvent que l'accès à l'extérieur via le port http. Plus d'info sur http://www.agroman.net/corkscrew/ + +ProxyCommand /usr/bin/corkscrew proxy-ip 8080 %h %p ~/.ssh/myauth + +- Chaining ssh hopping: + +Host pc1.example.org pc2.example.org +ForwardAgent yes +ProxyCommand ssh -qax bastion.example.org /usr/bin/nc -w 120 %h %p + +- Netcat mode: + +Starting from openssh 5.4: we can have ssh act as netcat. (-W) This connects stdio on the client to a single port forward on the server. This allows, for example, using ssh as a +ProxyCommand to route connections via intermediate servers.” + +sh -p 443 -W remotehost2:23 patrick@remotehost +Trying remotehost2... +Connected to remotehost2. +Escape character is '^]'. + +User Name : ^] +telnet> close +$ + +- Mounting over ssh: + +Sometimes it's nice to mount a remote directory over ssh. Fuse and sshfs are your friend +Parfois il est très agrèable de pouvoir monter un dossier à distance à travers ssh, les ports fuse et sshfs sont vos amis. + +$ sshfs remote-user@remote.server:/remote/directory /mnt/remote-fs/ + +- VPN Tunneling + +Did you know that ssh can do layer 2 and 3 VPN tunneling? +Check out ssh -w. Example from manpage: + +$ ssh -f -w 0:1 192.168.1.15 true +$ ifconfig tun0 10.0.50.1 10.0.99.1 netmask 255.255.255.252 + +- SSH http multiplexer: + +sslh lets one accept both HTTPS and SSH connections on the same port. It makes it possible to connect to an SSH server on port 443 (e.g. from inside a corporate firewall) while +still serving HTTPS on that port. http://www.rutschle.net/tech/sslh.shtml + +- Speed + +Compression + +If you are working on a slow link, compression (-C) and using a simple cipher (-c blowfish) saves you speed + +$ ssh -C -c blowfish patrick@remotehost + +- Multiplexing - ControlMaster: + +Another great way to speed up ssh is to re-use the same connection when you connect multiple times to the same host + +$ mkdir –p ~/.ssh/connections +$ chmod 700 ~/.ssh/connections + +Add this to your ~/.ssh/config file: +Host * +ControlMaster auto +ControlPath ~/.ssh/connections/%r_%h_%p + +-- Managing keys + +- Ignorer les Hostkeys: + +Quand vous installez et ré-installez sans arrêt, vous souhaitez certainement vous débarassez de ce message "hostfile key verification": + +$ ssh user@host -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null + +- Vérifier si une clé (hostkey) existe: + +$ ssh-keygen -F 192.168.2.152 +# Host 192.168.2.152 found: line 31 type RSA +192.168.2.152 ssh-rsa +AAAAB3NzaC1yc2EAAAABIwAAAQEAwHH15HpeJo21wyqpe2iFM8/0CtoYnE9DDXfCewws7iMhM+vgp7pjnaC83IgAt7G/x/VDHcbnyuI4odrGSEAE5wm7LNuT6uSfQMbXCayE+uoOIrAVhf41ZnAFQrs/+Mutk5LFEjPPNhuriq5ltBT4UwMlYQMa5z/SzmxV0ZAGXks5GMDz0o89yUwRarRfsGudASEtzUxgnxnOo5STBMZOdQ0GNEVdfJDgfJDAOi34T1FidpCqAtm8akYuB+Qsj3/hDQmIT+GsKYaGNZvz8ZNnPBAc9kWlS6VqXXNreyEeu7AmHDWXjMP3NW1tsibmZ8zeOSZdmEVEiuaYCIvERDq3MQ== + +- Supprimer une hostkey: + +$ ssh-keygen -R 192.168.2.152 +/home/thierry/.ssh/known_hosts updated. +Original contents retained as /home/thierry/.ssh/known_hosts.old + +- Récupérer la clé publique à distance + +$ ssh-keyscan remotehost +# remotehost SSH-2.0-OpenSSH_5.2 +remotehost ssh-rsa +AAAAB3NzaC1yc2EAAAABIwAAAQEAyREFGMBB6Qi1uoEYIk4GlqLXdS26moAxmV69UX0icQjp0Rw53xZ/2L0ZQwhsUiFV1vq4QfZNeUO142IzBgSspgsJZ7wJq213tsE7WIJGIBqvWnhU3vJuL9wgYT8f6BAvLoEfapFhLy24TDmn2DXldJAYgo8MnUbRrJlvnhQZPpd5cDWCXkzPGQE8r7REZsAWbWNlVOFRvZioPoGCGYMtsDWSBelBISGkedoNpTSpRkMmBAnsHBfvIzDPoTDYL4PZR0jJ8MaJrDhRtD4caRw4HVyhzSa3/FCpcm09PyBRabH/CyxNSOZjLc2+N9Ph9AKeTNgvmxP70wx668XaGYwCrQ== + +- ssh DNS keys + + +Bridging the gap +Image courtesy by Wouter Horré + + +Patrick Debois +Independent IT-consultant +Bridging the gap between projects and operations +by using Agile techniques both in development,project management and system administration. + +availability: January 2013 +Just Enough Developed Infrastructure +ssh tricks - the usual and beyond + SSH is an amazing beast. I nearly use it everyday and I'm amazed every time I learn something new. The following is a list of my tricks in the bag. It starts with the usual +tricks that you find all over the place, but I hope there will be some new tricks for you too. + +What's your best trick? Share it in the comments with the world. Nobody can know enough of ssh! +The basics: +Password-less login: + +This is usually the first thing start doing when want automation with ssh + +#Create a new keypair +$ ssh-keygen -t dsa +Generating public/private dsa key pair. +Enter file in which to save the key (/Users/patrick/.ssh/id_dsa): +Enter passphrase (empty for no passphrase): +Enter same passphrase again: +Your identification has been saved in /Users/patrick/.ssh/id_dsa. +Your public key has been saved in /Users/patrick/.ssh/id_dsa.pub. +The key fingerprint is: +87:66:b7:a0:f6:0e:6a:71:2c:5d:ee:5f:17:2a:b7:2f patrick@localhost +The key's randomart image is: ++--[ DSA 1024]----+ +| | +| | +| | +| .. | +| o oS o . | +| o ++.+ . . . | +| ++. o + . | +| .o o. +Eo | +| .. .o.. .o. | ++-----------------+ +$ cat ~/.ssh/id_dsa.pub | ssh user@remotehost "cat - >> ~/.ssh/authorized_keys" +$ ssh user@remotehost + +Install your keys on a remote server: + +$ ssh-copy-id -i ~/.ssh/id_dsa.pub user@remotehost +#Alternative +$ cat ~/.ssh/id_dsa.pub | ssh user@remotehost "cat - >> ~/.ssh/authorized_keys" + +Passphrase automation: + +If you have protected your keys with a passphrase (which you should), then it is annoying to re-enter that all the time. You can avoid that by running your environment inside an +ssh-agent and using ssh-add to enter the passphrase once. + +$ ssh-add ~/.ssh/id_dsa +Need passphrase for /home/mah/.ssh/id_dsa (you@example.com). +Enter passphrase: +$ + +Pseudo Terminal : + +some commands like sudo require a pseudo terminal to be activated + +$ ssh -t patrick@remotehost sudo cat /etc/passwd + +Avoid lastlog: + +Log in without appearing in lastlog/w and who output. + +$ ssh -T user@hostname.com + +Piping + +Example of using piping to backup over the network + +$ ufsdump 0uf - /dev/md/rdsk/d33 | ssh r280n "dd obs=32k ibs=32k of=/dev/rmt/0n" + +Rsync over ssh + +$ rsync -avz -e "ssh -i /home/thisuser/cron/thishost-rsync-key" remoteuser@remotehost:/remote/dir /this/dir/ + +Tunnels and firewall-piercings: +X-forwarding: + +$ ssh -X patrick@remotehost +Warning: untrusted X11 forwarding setup failed: xauth key data not generated +Warning: No xauth data; using fake authentication data for X11 forwarding. +Last login: Fri Aug 27 20:27:40 2010 + +Port forwarding: + +Set up a localforward from the remote machine port 25 to a local port 9025 + +$ ssh -L 9025:localhost:25 patrick@remotehost + +No command: + +Sometimes you just want to setup a forward with having a shell + +$ ssh -N -L 9025:localhost:25 patrick@remotehost + +KeepAlive: + +Getting tired of those timeouts by the firewall? Have ssh send a keepalive/ + +Put the following options in your $HOME/.ssh/ssh_config + + KeepAlive yes + ServerAliveInterval 60 + +Socks Daemon for proxying: (-D) + +Sometimes it's interesting to start a socks daemon. You can configure this in your browser to surf as it seems to come from the remote machine. + +$ ssh -D 9999 patrick@remotehost + +Tunneling over an http proxy: + +Corporate firewalls often only allow http to go outside. See corkscrew + +ProxyCommand /usr/bin/corkscrew proxy-ip 8080 %h %p ~/.ssh/myauth + +Chaining ssh hopping: + +Host pc1.example.org pc2.example.org +ForwardAgent yes +ProxyCommand ssh -qax bastion.example.org /usr/bin/nc -w 120 %h %p + +Netcat mode: + +Starting from openssh 5.4: we can have ssh act as netcat. (-W) This connects stdio on the client to a single port forward on the server. This allows, for example, using ssh as a +ProxyCommand to route connections via intermediate servers.” + +$ ssh -p 443 -W remotehost2:23 patrick@remotehost +Trying remotehost2... +Connected to remotehost2. +Escape character is '^]'. + +User Name : ^] +telnet> close +$ + +Mounting over ssh: + +Sometimes it's nice to mount a remote directory over ssh. Fuse and sshfs are your friend + +$ sshfs remote-user@remote.server:/remote/directory /mnt/remote-fs/ + +http://fuse.sourceforge.net/sshfs.html +VPN Tunneling: + +Did you know that ssh can do layer 2 and 3 VPN tunneling? + +Check out ssh -w. Example from manpage: + +$ ssh -f -w 0:1 192.168.1.15 true +$ ifconfig tun0 10.0.50.1 10.0.99.1 netmask 255.255.255.252 + +SSH http multiplexer: + +sslh lets one accept both HTTPS and SSH connections on the same port. It makes it possible to connect to an SSH server on port 443 (e.g. from inside a corporate firewall) while +still serving HTTPS on that port. http://www.rutschle.net/tech/sslh.shtml +Speed +Compression + +If you are working on a slow link, compression (-C) and using a simple cipher (-c blowfish) saves you speed + +$ ssh -C -c blowfish patrick@remotehost + +Multiplexing - ControlMaster: + +Another great way to speed up ssh is to re-use the same connection when you connect multiple times to the same host + +$ mkdir –p ~/.ssh/connections +$ chmod 700 ~/.ssh/connections + +Add this to your ~/.ssh/config file: +Host * +ControlMaster auto +ControlPath ~/.ssh/connections/%r_%h_%p + +Managing keys +Ignore Hostkeys: + +When you're re-installing a machine over and over again, you often want to get rid of the hostfile key verification. This is what you need: + +$ ssh user@host -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null + +Check if hostkey exists: + +k$ ssh-keygen -F 192.168.2.152 +# Host 192.168.2.152 found: line 31 type RSA +192.168.2.152 ssh-rsa +AAAAB3NzaC1yc2EAAAABIwAAAQEAwHH15HpeJo21wyqpe2iFM8/0CtoYnE9DDXfCewws7iMhM+vgp7pjnaC83IgAt7G/x/VDHcbnyuI4odrGSEAE5wm7LNuT6uSfQMbXCayE+uoOIrAVhf41ZnAFQrs/+Mutk5LFEjPPNhuriq5ltBT4UwMlYQMa5z/SzmxV0ZAGXks5GMDz0o89yUwRarRfsGudASEtzUxgnxnOo5STBMZOdQ0GNEVdfJDgfJDAOi34T1FidpCqAtm8akYuB+Qsj3/hDQmIT+GsKYaGNZvz8ZNnPBAc9kWlS6VqXXNreyEeu7AmHDWXjMP3NW1tsibmZ8zeOSZdmEVEiuaYCIvERDq3MQ== + +Remove a hostkey: + +$ ssh-keygen -R 192.168.2.152 +/Users/patrick/.ssh/known_hosts updated. +Original contents retained as /Users/patrick/.ssh/known_hosts.old + +Get hostkey of remote server: + +$ ssh-keyscan remotehost +# remotehost SSH-2.0-OpenSSH_5.2 +remotehost ssh-rsa +AAAAB3NzaC1yc2EAAAABIwAAAQEAyREFGMBB6Qi1uoEYIk4GlqLXdS26moAxmV69UX0icQjp0Rw53xZ/2L0ZQwhsUiFV1vq4QfZNeUO142IzBgSspgsJZ7wJq213tsE7WIJGIBqvWnhU3vJuL9wgYT8f6BAvLoEfapFhLy24TDmn2DXldJAYgo8MnUbRrJlvnhQZPpd5cDWCXkzPGQE8r7REZsAWbWNlVOFRvZioPoGCGYMtsDWSBelBISGkedoNpTSpRkMmBAnsHBfvIzDPoTDYL4PZR0jJ8MaJrDhRtD4caRw4HVyhzSa3/FCpcm09PyBRabH/CyxNSOZjLc2+N9Ph9AKeTNgvmxP70wx668XaGYwCrQ== + +- SSH DNS Keys + +Instead of using your local hostfile, you can store your keys in DNS. Have a look at http://freshmeat.net/projects/sshfp/ to do the job. +Then you can specify ssh needs to: + +$ ssh localhost -o "VerifyHostKeyDNS=yes" +yes authenticity of host 'localhost (127.0.0.1)' can't be established. +RSA key fingerprint is 2d:d3:29:bd:4d:e2:7d:a3:b0:15:96:26:d4:60:13:34. +Matching host key fingerprint found in DNS. +Are you sure you want to continue connecting (yes/no)? + +- SSH Escape Sequences: + +It often happens to me that I'm working into an ssh shell that used forwarding. I always thought there was no way to change the forwarding rules and that I had to logout. It +seems not! SSh has an internal shell activated by a tilde. Seeing is believing! + +Escape sequences are only recognized after a newline and are initiated with a tilde (~) unless you modify it with the -e flag. + +Hit ENTER ~? on a running ssh session to see a list of escapes: + +~. – terminate connection +~B – send a BREAK to the remote system +~C – open a command line +~R – Request rekey (SSH protocol 2 only) +~^Z – suspend ssh +~# – list forwarded connections +~& – background ssh (when waiting for connections to terminate) +~? – this message +~~ – send the escape character by typing it twice +(Note that escapes are only recognized immediately after newline.) +~. and ~# are particularly useful. + +- Visualiser la clé: + +Every host key has it's own visual fingerprint + +$ ssh -o VisualHostKey=yes thierry@localhost +Host key fingerprint is 9f:a0:03:c1:63:8b:b8:c6:d6:83:cb:22:33:cb:83:cc ++--[ RSA 2048]----+ +| | +| . | +| = | +| . o + | +|. . o S | +|..o . . o . | +|== o o o | +|@E. . . | +|+B. | ++-----------------+ + + diff --git a/talimatname/temel/openssh/talimat b/talimatname/temel/openssh/talimat new file mode 100644 index 000000000..03a635e5a --- /dev/null +++ b/talimatname/temel/openssh/talimat @@ -0,0 +1,54 @@ +# Tanım: Free version of the SSH connectivity tools +# URL: http://www.openssh.org/ +# Paketçi: milisarge +# Gerekler: + +isim=openssh +surum=7.1p2 +devir=1 + +kaynak=(ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/$isim-$surum.tar.gz + http://downloads.nutyx.org/files/patchs/openssh-server/service-saravane-01.patch) + +derle() { +source /etc/blfs-bootscripts +wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2 + +unset MAKEFLAGS +cd $isim-$surum + +install -v -m700 -d $PKG/var/lib/sshd + +chown -v root:sys $PKG/var/lib/sshd + +./configure --prefix=/usr \ +--sysconfdir=/etc/ssh \ +--datadir=/usr/share/sshd \ +--with-md5-passwords \ +--with-privsep-path=/var/lib/sshd \ +--mandir=/usr/share/man \ +--infodir=/usr/share/info + +make DESTDIR=$PKG install + +if [ -f /etc/pam.d/login ]; then + mkdir -p $PKG/etc/pam.d + sed 's@d/login@d/sshd@g' /etc/pam.d/login > $PKG/etc/pam.d/sshd + chmod 644 $PKG/etc/pam.d/sshd +fi + +install -v -m755 contrib/ssh-copy-id $PKG/usr/bin +install -v -m644 contrib/ssh-copy-id.1 \ +$PKG/usr/share/man/man1 + +install -v -m755 -d $PKG/usr/share/doc/$isim-$surum +install -v -m644 INSTALL LICENCE OVERVIEW README* \ +$PKG/usr/share/doc/$isim-$surum + +cd $SRC + +tar xf $scripts-$scriptsversion.tar.bz2 +cd $SRC/$scripts-$scriptsversion +patch -Np1 -i ../service-saravane-01.patch +make DESTDIR=$PKG install-sshd +} diff --git a/talimatname/temel/openssl/talimat b/talimatname/temel/openssl/talimat new file mode 100644 index 000000000..72b43dfe1 --- /dev/null +++ b/talimatname/temel/openssl/talimat @@ -0,0 +1,42 @@ +# Tanım: The Open Source toolkit for Secure Sockets Layer and Transport Layer Security. +# URL: http://www.openssl.org/ +# Paketçi: milisarge +# Gerekler: + +isim=openssl +surum=1.0.2f +devir=1 + +kaynak=(ftp://ftp.openssl.org/source/$isim-$surum.tar.gz) + +derle() { +unset MAKEFLAGS + +cd $isim-$surum + +./config --prefix=/usr \ + --openssldir=/etc/ssl \ + shared zlib-dynamic + +make +make INSTALL_PREFIX=$PKG MANDIR=/usr/share/man \ +MANSUFFIX=ssl install + +cp -v -r certs $PKG/etc/ssl + +mv $PKG/usr/bin \ +$PKG + +mv $PKG/usr/lib* \ +$PKG/lib + +mkdir $PKG/usr/lib + +mv $PKG/lib/pkgconfig \ +$PKG/usr/lib + +for file in libcrypto.pc openssl.pc libssl.pc + do + sed -i "s/lib64/lib/" $PKG/usr/lib/pkgconfig/$file +done +} diff --git a/talimatname/temel/pam/talimat b/talimatname/temel/pam/talimat new file mode 100644 index 000000000..10624dd88 --- /dev/null +++ b/talimatname/temel/pam/talimat @@ -0,0 +1,34 @@ +# Tanım: Pluggable Authentication Modules to choose how applications authenticate users. +# URL: http://www.kernel.org/pub/libs/pam +# Paketçi: milisarge +# Gerekler: + +isim=pam +surum=1.2.1 +devir=1 + +kaynak=(http://linux-pam.org/library/Linux-PAM-$surum.tar.bz2) + +derle() { +if [ "`uname -m`" == "x86_64" ]; then + LIB=lib64 +else + LIB=lib +fi + +mkdir -p $PKG/etc/pam.d +cd Linux-PAM-$surum +./configure --prefix=/usr --sysconfdir=/etc \ +--enable-securedir=/$LIB/security \ +--docdir=/usr/share/doc/Linux-PAM-$surum \ +--disable-nis --libdir=/usr/lib +make +make DESTDIR=$PKG install +chmod -v 4755 $PKG/sbin/unix_chkpwd + +for file in pam pam_misc pamc +do + mv -v $PKG/usr/lib/lib${file}.so.* $PKG/$LIB && + ln -sfv ../../$LIB/$(readlink $PKG/usr/lib/lib${file}.so) $PKG/usr/lib/lib${file}.so +done +} diff --git a/talimatname/temel/patch/talimat b/talimatname/temel/patch/talimat new file mode 100644 index 000000000..4f31e1057 --- /dev/null +++ b/talimatname/temel/patch/talimat @@ -0,0 +1,19 @@ +# Tanım: The GNU patch tool +# URL: http://www.gnu.org/software/patch/patch.html +# Paketçi: milisarge +# Gerekler: + +isim=patch +surum=2.7.5 +devir=1 + +kaynak=(http://ftp.gnu.org/gnu/patch/patch-$surum.tar.xz) + +derle() +{ +cd patch-$surum +./configure --prefix=/usr +make +make prefix=$PKG/usr \ +mandir=$PKG/usr/share/man install +} diff --git a/talimatname/temel/pciutils/pciutils.kur-kos b/talimatname/temel/pciutils/pciutils.kur-kos new file mode 100644 index 000000000..1a8d4faee --- /dev/null +++ b/talimatname/temel/pciutils/pciutils.kur-kos @@ -0,0 +1 @@ +/usr/sbin/update-pciids diff --git a/talimatname/temel/pciutils/talimat b/talimatname/temel/pciutils/talimat new file mode 100644 index 000000000..21fc9740b --- /dev/null +++ b/talimatname/temel/pciutils/talimat @@ -0,0 +1,29 @@ +# Tanım: PCI bus configuration space access library and tools +# URL: http://atrey.karlin.mff.cuni.cz/~mj/pciutils.html +# Paketçi: milisarge +# Gerekler: + +isim=pciutils +surum=3.4.1 +devir=1 + +kaynak=(ftp://ftp.kernel.org/pub/software/utils/$isim/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +make OPT="$CFLAGS -fPIC -DPIC" \ +ZLIB=no \ +PREFIX=/usr \ +SHAREDIR=/usr/share/misc \ +MANDIR=/usr/share/man \ +SHARED=yes all + +mkdir -p $PKG/usr/share/man +mkdir -p $PKG/usr/lib +make PREFIX=$PKG/usr \ +SHAREDIR=$PKG/usr/share/misc \ +MANDIR=$PKG/usr/share/man \ +SHARED=yes ZLIB=no \ +install install-lib +chmod -v 755 $PKG/usr/lib/libpci.so.$surum +} diff --git a/talimatname/temel/perl/talimat b/talimatname/temel/perl/talimat new file mode 100644 index 000000000..5d1a1c300 --- /dev/null +++ b/talimatname/temel/perl/talimat @@ -0,0 +1,58 @@ +# Tanım: The Perl package contains the Practical Extraction and Report Language. +# URL: http://www.perl.org/ +# Paketçi: milisarge +# Gerekler: + +isim=perl +surum=5.22.1 +devir=1 + +kaynak=(http://ftp.funet.fi/pub/CPAN/src/$isim-$surum.tar.bz2) + +derle() +{ +cd $isim-$surum + +if [ "`uname -m`" == "x86_64" ]; then + _ARCH="-Dcccdlflags='-fPIC'" +else + _ARCH="" +fi + +echo "127.0.0.1 localhost $(hostname)" > /etc/hosts +export BUILD_ZLIB=False +export BUILD_BZIP2=0 + + +sh Configure -des -Dusethreads \ + -Dprefix=/usr -Duseshrplib -Dscriptdir=/usr/bin \ + -Dvendorbin=/usr/bin -Dsitebin=/usr/bin \ + -Dvendorprefix=/usr -Dinc_version_list=none \ + -Darchlib=/usr/lib/share/perl5/base \ + -Dprivlib=/usr/lib/share/perl5/base \ + -Dvendorlib=/usr/lib/share/perl5/vendor \ + -Dvendorarch=/usr/lib/perl5/vendor \ + -Dsitelib=/usr/lib/perl5/site \ + -Dsitearch=/usr/lib/perl5/site \ + -Dman1dir=/usr/share/man/man1 \ + -Dman3dir=/usr/share/man/man3 \ + -Dpager="/usr/bin/less isR" ${_ARCH} + +make +# Only when we are building a new base + +if [ -L /tools ]; then + make -k test || true +fi + +make DESTDIR=$PKG install +find $PKG -iname 'TODO*' -or \ + -iname 'Change*' -or \ + -iname 'README*' -or \ + -name '*.bs' -or \ + -name .packlist -or \ + -name perllocal.pod | xargs rm +find $PKG -depth -empty -exec rmdir {} \; +chmod -R +w $PKG +unset BUILD_ZLIB BUILD_BZIP2 +} diff --git a/talimatname/temel/pkg-config/talimat b/talimatname/temel/pkg-config/talimat new file mode 100644 index 000000000..56135235c --- /dev/null +++ b/talimatname/temel/pkg-config/talimat @@ -0,0 +1,21 @@ +# Tanım: A system for managing library compile/link flags. +# URL: http://pkgconfig.freedesktop.org/ +# Paketçi: milisarge +# Gerekler: + +isim=pkg-config +surum=0.29 +devir=1 + +kaynak=(http://pkgconfig.freedesktop.org/releases/pkg-config-$surum.tar.gz) +derle() +{ +cd pkg-config-$surum +./configure --prefix=/usr \ +--with-internal-glib \ +--disable-host-tool \ +--docdir=/usr/share/doc/pkg-config-$surum +make +make DESTDIR=$PKG install +rm -r $PKG/usr/share/doc +} diff --git a/talimatname/temel/procps-ng/talimat b/talimatname/temel/procps-ng/talimat new file mode 100644 index 000000000..cca190073 --- /dev/null +++ b/talimatname/temel/procps-ng/talimat @@ -0,0 +1,31 @@ +# Tanım: Utilities for monitoring your system and its processes. +# URL: http://procps.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: + +isim=procps-ng +surum=3.3.11 +devir=1 + +kaynak=(http://downloads.sourceforge.net/project/$isim/Production/$isim-$surum.tar.xz) + +derle() +{ +cd $isim-$surum + +./configure --prefix=/usr \ +--exec-prefix= \ +--libdir=/lib --bindir=/bin --sbindir=/sbin \ +--docdir=/usr/share/doc/procps-ng-$surum \ +--disable-static \ +--disable-skill \ +--disable-kill +make +make DESTDIR=$PKG install + +mkdir -p $PKG/usr/lib + +mv $PKG/lib/pkgconfig \ +$PKG/usr/lib/ +rm -r $PKG/usr/share/doc +} diff --git a/talimatname/temel/psmisc/talimat b/talimatname/temel/psmisc/talimat new file mode 100644 index 000000000..0114f148f --- /dev/null +++ b/talimatname/temel/psmisc/talimat @@ -0,0 +1,18 @@ +# Tanım: Set of some small useful utilities that use the proc filesystem. +# URL: http://psmisc.sourceforge.net/ +# Paketçi: milisarge +# Gerekler: + +isim=psmisc +surum=22.21 +devir=1 + +kaynak=(http://prdownloads.sourceforge.net/psmisc/psmisc-$surum.tar.gz) + +derle() +{ +cd psmisc-$surum +./configure --prefix=/usr --libdir=/lib --bindir=/bin +make +make DESTDIR=$PKG install +} diff --git a/talimatname/temel/readline/talimat b/talimatname/temel/readline/talimat new file mode 100644 index 000000000..aff608df6 --- /dev/null +++ b/talimatname/temel/readline/talimat @@ -0,0 +1,47 @@ +# Tanım: Set of libraries that offers command-line editing and history capabilities. +# URL: http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html +# Paketçi: milisarge +# Gerekler: + +isim=readline +surum=6.3 +devir=1 + +kaynak=(http://ftp.gnu.org/gnu/readline/readline-$surum.tar.gz + http://www.linuxfromscratch.org/patches/downloads/$isim/$isim-$surum-upstream_fixes-3.patch) + +derle() +{ +cd readline-$surum +patch -Np1 -i ../$isim-$surum-upstream_fixes-3.patch + +sed -i '/MV.*old/d' Makefile.in +sed -i '/{OLDSUFF}/c:' support/shlib-install + +./configure --prefix=/usr \ +--docdir=/usr/share/doc/readline-$surum + +make SHLIB_LIBS=-lncurses + +make DESTDIR=$PKG install + +mkdir -p $PKG/lib + +mv -v $PKG/usr/lib/lib{readline,history}.so.* \ +$PKG/lib + +rm -rf $PKG/usr/share/info/dir + +mkdir -p $PKG/usr/share/doc/readline-$surum +install -v -m644 doc/*.{ps,pdf,html,dvi} \ +$PKG/usr/share/doc/readline-$surum + +rm -rv $PKG/usr/bin + +ln -sfv ../../lib/libreadline.so.6 \ +$PKG/usr/lib/libreadline.so + +ln -sfv ../../lib/libhistory.so.6 \ +$PKG/usr/lib/libhistory.so +rm -r $PKG/usr/share/{doc,info} +} diff --git a/talimatname/temel/rsync/rsync.kur-kos b/talimatname/temel/rsync/rsync.kur-kos new file mode 100644 index 000000000..86775d46e --- /dev/null +++ b/talimatname/temel/rsync/rsync.kur-kos @@ -0,0 +1,12 @@ +if [ ! -f /etc/rsyncd.conf ]; then + cat > /etc/rsyncd.conf << "EOF" +# use chroot = yes +# [site] +# path = /root/x.org +# comment = Site web +# auth users = milisx +# read only = yes +# exclude from = /etc/milis_rsync_exclude_files.txt +# secrets file = /etc/rsyncd.secrets +EOF +fi diff --git a/talimatname/temel/rsync/rsync.okubeni b/talimatname/temel/rsync/rsync.okubeni new file mode 100644 index 000000000..c827fc0cf --- /dev/null +++ b/talimatname/temel/rsync/rsync.okubeni @@ -0,0 +1,27 @@ +Pour lancer le service rsync, 2 choix: + +- 1. installer soit le port: rsync.service +- 2. http://www.linuxfromscratch.org/blfs/view/svn/basicnet/rsync.html + En bas de la page, télécharger et lancer + make install-rsyncd dans le dossier où sont les fichiers extraits. + +Voici un fichier de configuration basique: + +cat > /etc/rsyncd.conf << "EOF" +# This is a basic rsync configuration file +# It exports a single module without user authentication. + +motd file = /home/rsync/welcome.msg +use chroot = yes + +[localhost] + path = /home/rsync + comment = Default rsync module + read only = yes + list = yes + uid = rsyncd + gid = rsyncd + +EOF + +Vous trouverez plus d'information sur http://rsync.samba.org/documentation.html diff --git a/talimatname/temel/rsync/talimat b/talimatname/temel/rsync/talimat new file mode 100644 index 000000000..715c9a331 --- /dev/null +++ b/talimatname/temel/rsync/talimat @@ -0,0 +1,29 @@ +# Tanım: Synchronizing files over a network by sending just the differences in the files. +# URL: http://samba.anu.edu.au/rsync/ +# Paketçi: milisarge +# Gerekler: + +isim=rsync +surum=3.1.2 +devir=1 + +kaynak=( http://rsync.samba.org/ftp/$isim/$isim-$surum.tar.gz ) + +derle() { +source /etc/blfs-bootscripts +wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2 + +cd $isim-$surum +./configure --prefix=/usr \ +-mandir=/usr/share/man \ +--infodir=/usr/share/info +make +make DESTDIR=$PKG install + +# service +cd $SRC + +tar xf $scripts-$scriptsversion.tar.bz2 +cd $SRC/$scripts-$scriptsversion +make DESTDIR=$PKG install-rsyncd +} diff --git a/talimatname/temel/sed/talimat b/talimatname/temel/sed/talimat new file mode 100644 index 000000000..1356c32ea --- /dev/null +++ b/talimatname/temel/sed/talimat @@ -0,0 +1,22 @@ +# Tanım: Takes text input, do some operation on it, and outputs the modified text. +# URL: http://www.gnu.org/software/sed//sed.html +# Paketçi: milisarge +# Gerekler: + +isim=sed +surum=4.2.2 +devir=1 + +kaynak=(http://ftp.gnu.org/gnu/sed/sed-$surum.tar.bz2) + +derle() +{ +cd sed-$surum +./configure --prefix=/usr --bindir=/bin \ +--libdir=/lib --htmldir=/usr/share/doc/sed-$surum +make +make html +make check +make DESTDIR=$PKG install +rm -r $PKG/usr/share/info +} diff --git a/talimatname/temel/shadow/talimat b/talimatname/temel/shadow/talimat new file mode 100644 index 000000000..830ffc045 --- /dev/null +++ b/talimatname/temel/shadow/talimat @@ -0,0 +1,222 @@ +# Tanım: The Shadow package contains programs for handling passwords in a secure way. +# URL: http://shadow.pld.org.pl/ +# Paketçi: milisarge +# Gerekler: + +isim=shadow +surum=4.2.1 +devir=1 + +kaynak=( http://pkg-shadow.alioth.debian.org/releases/shadow-$surum.tar.xz) + +derle() +{ +cd shadow-$surum + +sed -i 's/groups$(EXEEXT) //' src/Makefile.in +find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \; + +sed -i -e 's@#ENCRYPT_METHOD DES@ENCRYPT_METHOD SHA512@' \ + -e 's@/var/spool/mail@/var/mail@' etc/login.defs + +sed -i 's/1000/999/' etc/useradd + +./configure --sysconfdir=/etc +make +make DESTDIR=$PKG install +sed -i 's/yes/no/' $PKG/etc/default/useradd +sed -i 's/GROUP/# GROUP/' $PKG/etc/default/useradd +mv -v $PKG/usr/bin/* $PKG/bin +mv -v $PKG/usr/sbin/* $PKG/sbin +# +# Following sed comment appropriate lines in etc/login.defs, and stop login +# from performing these functions. First backup the etc/login.defs +install -v -m644 $PKG/etc/login.defs{,.orig} +for FUNCTION in FAIL_DELAY FAILLOG_ENAB \ + LASTLOG_ENAB \ + MAIL_CHECK_ENAB \ + OBSCURE_CHECKS_ENAB \ + PORTTIME_CHECKS_ENAB \ + QUOTAS_ENAB \ + CONSOLE MOTD_FILE \ + FTMP_FILE NOLOGINS_FILE \ + ENV_HZ PASS_MIN_LEN \ + SU_WHEEL_ONLY \ + CRACKLIB_DICTPATH \ + PASS_CHANGE_TRIES \ + PASS_ALWAYS_WARN \ + CHFN_AUTH ENCRYPT_METHOD \ + ENVIRON_FILE +do + sed -i "s/^${FUNCTION}/# &/" $PKG/etc/login.defs +done + +# +# Configuration files for pam +mkdir -p $PKG/etc/pam.d +cat > $PKG/etc/pam.d/system-account << "EOF" +# Begin /etc/pam.d/system-account + +account required pam_unix.so + +# End /etc/pam.d/system-account +EOF + +cat > $PKG/etc/pam.d/system-auth << "EOF" +# Begin /etc/pam.d/system-auth + +auth required pam_unix.so + +# End /etc/pam.d/system-auth +EOF + +cat > $PKG/etc/pam.d/system-password << "EOF" +# Begin /etc/pam.d/system-password + +# use sha512 hash for encryption, use shadow, and try to use any previously +# defined authentication token (chosen password) set by any prior module +password required pam_pwhistory.so retry=3 +password required pam_unix.so sha512 shadow try_first_pass + +# End /etc/pam.d/system-password +EOF + +cat > $PKG/etc/pam.d/system-session << "EOF" +# Begin /etc/pam.d/system-session + +session required pam_unix.so +session optional pam_loginuid.so +session optional pam_ck_connector.so nox11 + +# End /etc/pam.d/system-session +EOF + +cat > $PKG/etc/pam.d/login << "EOF" +# Begin /etc/pam.d/login + +# Set failure delay before next prompt to 3 seconds +auth optional pam_faildelay.so delay=3000000 + +# Check to make sure that the user is allowed to login +auth requisite pam_nologin.so + +# Check to make sure that root is allowed to login +# Disabled by default. You will need to create /etc/securetty +# file for this module to function. See man 5 securetty. +#auth required pam_securetty.so + +# Additional group memberships - disabled by default +#auth optional pam_group.so + +# include the default auth settings +auth include system-auth + +# check access for the user +account required pam_access.so + +# include the default account settings +account include system-account + +# Set default environment variables for the user +session required pam_env.so + +# Set resource limits for the user +session required pam_limits.so + +# Display date of last login - Disabled by default +#session optional pam_lastlog.so + +# Display the message of the day - Disabled by default +#session optional pam_motd.so + +# Check user's mail - Disabled by default +#session optional pam_mail.so standard quiet + +# include the default session and password settings +session include system-session +password include system-password + +# End /etc/pam.d/login +EOF + +cat > $PKG/etc/pam.d/passwd << "EOF" +# Begin /etc/pam.d/passwd + +password include system-password + +# End /etc/pam.d/passwd +EOF + +cat > $PKG/etc/pam.d/su << "EOF" +# Begin /etc/pam.d/su + +# always allow root +auth sufficient pam_rootok.so +auth include system-auth + +# include the default account settings +account include system-account + +# Set default environment variables for the service user +session required pam_env.so + +# include system session defaults +session include system-session + +# End /etc/pam.d/su +EOF + +cat > $PKG/etc/pam.d/chage << "EOF" +#Begin /etc/pam.d/chage + +# always allow root +auth sufficient pam_rootok.so + +# include system defaults for auth account and session +auth include system-auth +account include system-account +session include system-session + +# Always permit for authentication updates +password required pam_permit.so + +# End /etc/pam.d/chage +EOF + +for PROGRAM in chfn chgpasswd chpasswd chsh groupadd groupdel \ + groupmems groupmod newusers useradd userdel usermod +do + install -v -m644 $PKG/etc/pam.d/chage $PKG/etc/pam.d/${PROGRAM} + sed -i "s/chage/$PROGRAM/" $PKG/etc/pam.d/${PROGRAM} +done + +# Backup others +[ -f $PKG/pam.d/other ] && install -v -m644 $PKG/etc/pam.d/other{,.orig} + +# Other +# +cat > $PKG/etc/pam.d/other << "EOF" +# Begin /etc/pam.d/other + +auth required pam_warn.so +auth required pam_deny.so +account required pam_warn.so +account required pam_deny.so +password required pam_warn.so +password required pam_deny.so +session required pam_warn.so +session required pam_deny.so + +# End /etc/pam.d/other +EOF + +# Replace the login and ressource limits file +if [ -f $PKG/etc/login.access ]; then + mv -v $PKG/etc/login.access{,.NOUSE} +fi +if [ -f $PKG/etc/limits ]; then + mv -v $PKG/etc/limits{,.NOUSE} +fi +rm $PKG/usr/share/man/man8/nologin.8 +rm $PKG/sbin/nologin +} diff --git a/talimatname/temel/squashfs/talimat b/talimatname/temel/squashfs/talimat new file mode 100644 index 000000000..0ca7347d3 --- /dev/null +++ b/talimatname/temel/squashfs/talimat @@ -0,0 +1,17 @@ +# Tanım: Squashfs is a compressed read-only filesystem for Linux. +# URL: http://squashfs.sourceforge.net/ +# Paketçi: milisarge@gmail.com +# Gerekler: + +isim=squashfs +surum=4.3 +devir=2 + +kaynak=(http://downloads.sourceforge.net/sourceforge/$isim/$isim$surum.tar.gz) + +derle() { +cd $isim$surum/squashfs-tools +make XZ_SUPPORT=1 LZO_SUPPORT=1 LZMA_XZ_SUPPORT=1 LZA_SUPPORT=1 +mkdir -p $PKG/bin +make INSTALL_DIR=$PKG/bin install +} diff --git a/talimatname/temel/sudo/talimat b/talimatname/temel/sudo/talimat new file mode 100644 index 000000000..1701d914e --- /dev/null +++ b/talimatname/temel/sudo/talimat @@ -0,0 +1,46 @@ +# Tanım: Give certain users (or groups) the ability to run some commands as root. +# URL: http://www.sudo.ws +# Paketçi: milisarge +# Gerekler: + +isim=sudo +surum=1.8.15 +devir=1 + +kaynak=(http://www.sudo.ws/sudo/dist/$isim-$surum.tar.gz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--libexecdir=/usr/lib \ +--docdir=/usr/share/doc/sudo-$surum \ +--with-all-insults \ +--with-env-editor \ +--without-sendmail \ +--with-passprompt="[sudo] password for %p: " + +make +make DESTDIR=$PKG install + +mkdir -pv $PKG/etc/pam.d + +cat > $PKG/etc/pam.d/sudo << "EOF" && +# Begin /etc/pam.d/sudo + +# include the default auth settings +auth include system-auth + +# include the default account settings +account include system-account + +# Set default environment variables for the service user +session required pam_env.so + +# include system session defaults +session include system-session + +# End /etc/pam.d/sudo +EOF +chmod 644 $PKG/etc/pam.d/sudo +echo "%wheel ALL=(ALL) ALL" >> $PKG/etc/sudoers +} diff --git a/talimatname/temel/sysklogd/talimat b/talimatname/temel/sysklogd/talimat new file mode 100644 index 000000000..27fb60044 --- /dev/null +++ b/talimatname/temel/sysklogd/talimat @@ -0,0 +1,40 @@ +# Tanım: For logging system messages, such as those given by the kernel. +# URL: http://www.infodrom.org/projects/sysklogd/ +# Paketçi: milisarge +# Gerekler: + +isim=sysklogd +surum=1.5.1 +devir=1 + +kaynak=(http://www.infodrom.org/projects/sysklogd/download/sysklogd-$surum.tar.gz) + +derle() +{ +cd sysklogd-$surum + +sed -i '/Error loading kernel symbols/{n;n;d}' ksym_mod.c + +mkdir -p $PKG/{/sbin,etc,usr/share/man/man{5,8}} + +make + +make BINDIR=$PKG/sbin MANDIR=$PKG/usr/share/man install + +cat > $PKG/etc/syslog.conf << "EOF" +# Begin /etc/syslog.conf + +auth,authpriv.* -/var/log/auth.log +*.*;auth,authpriv.none -/var/log/sys.log +daemon.* -/var/log/daemon.log +kern.* -/var/log/kern.log +mail.* -/var/log/mail.log +user.* -/var/log/user.log +local7.* -/var/log/pkg-get.log +cron.* -/var/log/cron.log +*.emerg * + +# End /etc/syslog.conf +EOF +} + diff --git a/talimatname/temel/sysvinit/talimat b/talimatname/temel/sysvinit/talimat new file mode 100644 index 000000000..f5465c418 --- /dev/null +++ b/talimatname/temel/sysvinit/talimat @@ -0,0 +1,59 @@ +# Tanım: Programs for controlling the startup, running, and shutdown of the system. +# URL: ftp://ftp.cistron.nl/pub/people/miquels/sysvinit/ +# Paketçi: milisarge +# Gerekler: + +isim=sysvinit +surum=2.88dsf +devir=2 + +kaynak=(http://ftp.twaren.net/Unix/NonGNU/sysvinit/sysvinit-$surum.tar.bz2 + http://www.linuxfromscratch.org/patches/lfs/development/sysvinit-2.88dsf-consolidated-1.patch) + +derle() +{ +cd sysvinit-$surum +patch -Np1 -i ../sysvinit-2.88dsf-consolidated-1.patch + +make -C src + +mkdir -p $PKG/{sbin,bin,usr/{bin,include,share/man/man{1,5,8}}} + +make -C src ROOT=$PKG install + +rm -r $PKG/usr/bin +rm -r $PKG/usr/share/man/man1 + +mkdir $PKG/etc + +cat > $PKG/etc/inittab << "EOF" +# Begin /etc/inittab +# id:3 (defaut si installation de base) +# lxdm, sddm ou kdm: id:5 + +id:3:initdefault: + +si::sysinit:/etc/rc.d/init.d/rc S + +l0:0:wait:/etc/rc.d/init.d/rc 0 +l1:S1:wait:/etc/rc.d/init.d/rc 1 +l2:2:wait:/etc/rc.d/init.d/rc 2 +l3:3:wait:/etc/rc.d/init.d/rc 3 +l4:4:wait:/etc/rc.d/init.d/rc 4 +l5:5:wait:/etc/rc.d/init.d/rc 5 +l6:6:wait:/etc/rc.d/init.d/rc 6 + +ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -h now + +su:S016:once:/sbin/sulogin + +1:2345:respawn:/sbin/agetty --noclear tty1 9600 +2:2345:respawn:/sbin/agetty tty2 9600 +3:2345:respawn:/sbin/agetty tty3 9600 +4:2345:respawn:/sbin/agetty tty4 9600 +5:2345:respawn:/sbin/agetty tty5 9600 +6:2345:respawn:/sbin/agetty tty6 9600 + +# End /etc/inittab +EOF +} diff --git a/talimatname/temel/tar/talimat b/talimatname/temel/tar/talimat new file mode 100644 index 000000000..f9ee3c11c --- /dev/null +++ b/talimatname/temel/tar/talimat @@ -0,0 +1,21 @@ +# Tanım: The Tar package contains an archiving program. +# URL: http://www.gnu.org/software/tar/tar.html +# Paketçi: milisarge +# Gerekler: + +isim=tar +surum=1.28 +devir=2 + +kaynak=(http://ftp.gnu.org/gnu/$isim/$isim-$surum.tar.xz) + +derle() +{ +cd $isim-$surum + +FORCE_UNSAFE_CONFIGURE=1 ./configure --prefix=/usr --bindir=/bin --libexecdir=/sbin + +make +make DESTDIR=$PKG install +rm -rf $PKG/usr/share/info/dir +} diff --git a/talimatname/temel/texinfo/talimat b/talimatname/temel/texinfo/talimat new file mode 100644 index 000000000..e86a620fc --- /dev/null +++ b/talimatname/temel/texinfo/talimat @@ -0,0 +1,19 @@ +# Tanım: Texinfo is the official documentation format of the GNU project. +# URL: http://www.gnu.org/software/texinfo +# Paketçi: milisarge +# Gerekler: + +isim=texinfo +surum=6.1 +devir=1 + +kaynak=(http://ftp.gnu.org/gnu/$isim/texinfo-$surum.tar.xz) + +derle() +{ +cd texinfo-* +./configure --prefix=/usr +make +make install DESTDIR=$PKG +rm -rf $PKG/usr/share/info/dir +} diff --git a/talimatname/temel/tzdata/talimat b/talimatname/temel/tzdata/talimat new file mode 100644 index 000000000..32b46fd97 --- /dev/null +++ b/talimatname/temel/tzdata/talimat @@ -0,0 +1,21 @@ +# Tanım: The zoneinfo database or IANA Time Zone +# URL: http://www.gnu.org/software/libc/ +# Paketçi: milisarge +# Gerekler: + +isim=tzdata +surum=2016a +devir=1 + +kaynak=(http://www.iana.org/time-zones/repository/releases/$isim$surum.tar.gz) +derle() { +timezones=('africa' 'antarctica' 'asia' 'australasia' + 'europe' 'northamerica' 'southamerica' + 'pacificnew' 'etcetera' 'backward' + 'systemv') +zic -y ./yearistype -d $PKG/usr/share/zoneinfo ${timezones[@]} +zic -y ./yearistype -d $PKG/usr/share/zoneinfo/posix ${timezones[@]} +zic -y ./yearistype -d $PKG/usr/share/zoneinfo/right -L leapseconds ${timezones[@]} +zic -y ./yearistype -d $PKG/usr/share/zoneinfo -p Europe/Istanbul +install -m444 -t $PKG/usr/share/zoneinfo iso3166.tab zone.tab +} diff --git a/talimatname/temel/util-linux/talimat b/talimatname/temel/util-linux/talimat new file mode 100644 index 000000000..64ed2b038 --- /dev/null +++ b/talimatname/temel/util-linux/talimat @@ -0,0 +1,42 @@ +# Tanım: System utilities for handling file systems consoles partitions and messages. +# URL: http://freshmeat.net/projects/util-linux/ +# Paketçi: milisarge +# Gerekler: + +isim=util-linux +surum=2.27.1 +devir=1 +kaynak=(http://www.kernel.org/pub/linux/utils/util-linux/v${version:0:4}/util-linux-$surum.tar.xz + ) + +derle() +{ +cd util-linux-$surum + +mkdir -pv $PKG/var/lib/hwclock +./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \ + --docdir=/usr/share/doc/$isim-$surum \ + --disable-chfn-chsh \ + --disable-login \ + --disable-nologin \ + --disable-su \ + --disable-setpriv \ + --disable-runuser \ + --disable-pylibmount \ + --disable-static \ + --without-python \ + --without-systemd \ + --without-systemdsystemunitdir + +make +make DESTDIR=$PKG install + +mv $PKG/usr/bin/* $PKG/bin/ +rm -r $PKG/usr/bin + +mv $PKG/usr/sbin/* $PKG/sbin/ +rm -r $PKG/usr/sbin +rm -r $PKG/usr/share/{doc,bash-completion} +rm $PKG/sbin/{mkfs.bfs,mkfs.minix,fsck.minix} +rm $PKG/usr/share/man/man8/{fsck.minix,mkfs.bfs,mkfs.minix}.8 +} diff --git a/talimatname/temel/wget/talimat b/talimatname/temel/wget/talimat new file mode 100644 index 000000000..a14210f52 --- /dev/null +++ b/talimatname/temel/wget/talimat @@ -0,0 +1,23 @@ +# Tanım: Utility for non-interactive download of files using HTTP, HTTPS and FTP. +# URL: http://www.gnu.org/software/wget/ +# Paketçi: milisarge +# Gerekler: + +isim=wget +surum=1.17.1 +devir=2 + +kaynak=(http://ftp.gnu.org/gnu/$isim/$isim-$surum.tar.xz) + +derle() { +cd $isim-$surum +./configure --prefix=/usr \ +--sysconfdir=/etc \ +--with-ssl=openssl \ +--disable-debug \ +--mandir=/usr/share/man \ +--infodir=/usr/share/info +make +make DESTDIR=$PKG install +rm -rf $PKG/usr/share/info/dir +} diff --git a/talimatname/temel/xz/talimat b/talimatname/temel/xz/talimat new file mode 100644 index 000000000..085770a6f --- /dev/null +++ b/talimatname/temel/xz/talimat @@ -0,0 +1,28 @@ +# Tanım: Free general-purpose data compression software with high compression ratio. +# URL: http://tukaani.org/xz/ +# Paketçi: milisarge +# Gerekler: + +isim=xz +surum=5.2.2 +devir=1 + +kaynak=(http://tukaani.org/xz/xz-$surum.tar.xz) +derle() +{ +cd xz-$surum + +sed -e '/mf\.buffer = NULL/a next->coder->mf.size = 0;' \ + -i src/liblzma/lz/lz_encoder.c + +./configure --prefix=/usr \ +--bindir=/bin \ + --docdir=/usr/share/doc/xz-$surum +make +make pkgconfigdir=/usr/lib/pkgconfig DESTDIR=$PKG install +mkdir -pv $PKG/{,usr/}lib +mv -v $PKG/usr/lib/liblzma.so.* \ +$PKG/lib +ln -svf ../../lib/liblzma.so.$surum $PKG/usr/lib/liblzma.so +rm -r $PKG/usr/share/doc/ +} diff --git a/talimatname/temel/zlib/talimat b/talimatname/temel/zlib/talimat new file mode 100644 index 000000000..bfa390604 --- /dev/null +++ b/talimatname/temel/zlib/talimat @@ -0,0 +1,47 @@ +# Tanım: The Zlib package contains compression and decompression routines used by some programs. +# URL: http://www.zlib.net/ +# Paketçi: milisarge +# Gerekler: + +isim=zlib +surum=1.2.8 +devir=1 + +kaynak=(http://www.zlib.net/zlib-$surum.tar.xz) + +derle() { + +if [ -L /bin/pwd ];then + mv -v /tools/bin/ld /tools/bin/ld-old + mv -v /tools/$(uname -m)-pc-linux-gnu/bin/ld /tools/$(uname -m)-pc-linux-gnu/bin/ld-old + mv -v /tools/bin/ld-new /tools/bin/ld + ln -sv /tools/bin/ld /tools/$(uname -m)-pc-linux-gnu/bin/ld + + gcc -dumpspecs | sed -e 's@/tools@@g' \ + -e '/\*startfile_prefix_spec:/{n;s@.*@/usr/lib/ @}' \ + -e '/\*cpp:/{n;s@$@ -isystem /usr/include@}' > \ + `dirname $(gcc --print-libgcc-file-name)`/specs + + echo 'int main(){}' > dummy.c + cc dummy.c -v -Wl,--verbose &> dummy.log + readelf -l a.out | grep ': /lib' + + grep -o '/lib.*/crt[1in].*succeeded' dummy.log + grep -B1 '^ /usr/include' dummy.log + grep 'SEARCH.*/usr/lib' dummy.log |sed 's|; |\n|g' + grep "/lib.*/libc.so.6 " dummy.log + grep found dummy.log + rm -v dummy.c a.out dummy.log +fi + +cd zlib-$surum +./configure --prefix=/usr +make +make check +make prefix=$PKG/usr install + +mkdir -p $PKG/lib +mv -v $PKG/usr/lib/libz.so.* $PKG/lib +ln -sfv ../../lib/libz.so.$surum $PKG/usr/lib/libz.so +} +