talimat-grublama
This commit is contained in:
parent
15dc7159a1
commit
bfb96d14eb
6
bin/mps
6
bin/mps
|
@ -269,8 +269,10 @@ paket_bilgi(){
|
||||||
ryaz 32 "DEVİR :" ${satir:1:${#satir}-1}
|
ryaz 32 "DEVİR :" ${satir:1:${#satir}-1}
|
||||||
satir=`sed -n '9p' < $VT/"$paket"/META`
|
satir=`sed -n '9p' < $VT/"$paket"/META`
|
||||||
ryaz 32 "PAKETLENME :" `date -d @${satir:1:${#satir}-1}`
|
ryaz 32 "PAKETLENME :" `date -d @${satir:1:${#satir}-1}`
|
||||||
#satir=`sed -n '4p' < $VT/"$paket"/META`
|
satir=`sed -n '10p' < $VT/"$paket"/META`
|
||||||
#ryaz 32 "YP:" ${satir:1:${#satir}-1}
|
ryaz 32 "MİMARİ :" ${satir:1:${#satir}-1}
|
||||||
|
satir=`sed -n '11p' < $VT/"$paket"/META`
|
||||||
|
ryaz 32 "GRUP :" ${satir:1:${#satir}-1}
|
||||||
elif [ "$kkont" = "degil" ];then
|
elif [ "$kkont" = "degil" ];then
|
||||||
ryaz 31 "$1 $_paket_kurulu_degil"
|
ryaz 31 "$1 $_paket_kurulu_degil"
|
||||||
else
|
else
|
||||||
|
|
16
bin/mpsd
16
bin/mpsd
|
@ -571,7 +571,7 @@ add_meta_files() {
|
||||||
}
|
}
|
||||||
|
|
||||||
add_meta_to_archive() {
|
add_meta_to_archive() {
|
||||||
local NAME TAR SIZE_I DESC URL PACK MAINT ARCH
|
local NAME TAR SIZE_I DESC URL PACK MAINT ARCH GRUP
|
||||||
NAME="`get_package_name $1`"
|
NAME="`get_package_name $1`"
|
||||||
ARCH="`get_package_arch $1`"
|
ARCH="`get_package_arch $1`"
|
||||||
|
|
||||||
|
@ -587,22 +587,27 @@ add_meta_to_archive() {
|
||||||
if [ ! -z "`cat $PKGMK_ROOT/$PKGMK_PKGFILE |sed "s@^[ ,\t,#]*@@"|grep -i ^desc|cut -d : -f1 --complement|sed "s@^[ ,\t]*@@"`" ]; then
|
if [ ! -z "`cat $PKGMK_ROOT/$PKGMK_PKGFILE |sed "s@^[ ,\t,#]*@@"|grep -i ^desc|cut -d : -f1 --complement|sed "s@^[ ,\t]*@@"`" ]; then
|
||||||
DESC="`cat $PKGMK_ROOT/$PKGMK_PKGFILE |sed "s@^[ ,\t,#]*@@"|grep -i ^desc|cut -d : -f1 --complement|sed "s@^[ ,\t]*@@"`"
|
DESC="`cat $PKGMK_ROOT/$PKGMK_PKGFILE |sed "s@^[ ,\t,#]*@@"|grep -i ^desc|cut -d : -f1 --complement|sed "s@^[ ,\t]*@@"`"
|
||||||
else
|
else
|
||||||
DESC="n.a"
|
DESC="belirsiz"
|
||||||
fi
|
fi
|
||||||
if [ ! -z "`cat $PKGMK_ROOT/$PKGMK_PKGFILE |sed "s@^[ ,\t,#]*@@"|grep -i ^pack|cut -d : -f1 --complement|sed "s@^[ ,\t]*@@"`" ]; then
|
if [ ! -z "`cat $PKGMK_ROOT/$PKGMK_PKGFILE |sed "s@^[ ,\t,#]*@@"|grep -i ^pack|cut -d : -f1 --complement|sed "s@^[ ,\t]*@@"`" ]; then
|
||||||
PACK="`cat $PKGMK_ROOT/$PKGMK_PKGFILE |sed "s@^[ ,\t,#]*@@"|grep -i ^pack|cut -d : -f1 --complement|sed "s@^[ ,\t]*@@"`"
|
PACK="`cat $PKGMK_ROOT/$PKGMK_PKGFILE |sed "s@^[ ,\t,#]*@@"|grep -i ^pack|cut -d : -f1 --complement|sed "s@^[ ,\t]*@@"`"
|
||||||
else
|
else
|
||||||
PACK="n.a"
|
PACK="belirsiz"
|
||||||
fi
|
fi
|
||||||
if [ ! -z "`cat $PKGMK_ROOT/$PKGMK_PKGFILE |sed "s@^[ ,\t,#]*@@"|grep -i ^maint|cut -d : -f1 --complement|sed "s@^[ ,\t]*@@"`" ]; then
|
if [ ! -z "`cat $PKGMK_ROOT/$PKGMK_PKGFILE |sed "s@^[ ,\t,#]*@@"|grep -i ^maint|cut -d : -f1 --complement|sed "s@^[ ,\t]*@@"`" ]; then
|
||||||
MAINT="`cat $PKGMK_ROOT/$PKGMK_PKGFILE |sed "s@^[ ,\t,#]*@@"|grep -i ^maint|cut -d : -f1 --complement|sed "s@^[ ,\t]*@@"`"
|
MAINT="`cat $PKGMK_ROOT/$PKGMK_PKGFILE |sed "s@^[ ,\t,#]*@@"|grep -i ^maint|cut -d : -f1 --complement|sed "s@^[ ,\t]*@@"`"
|
||||||
else
|
else
|
||||||
MAINT="n.a"
|
MAINT="belirsiz"
|
||||||
fi
|
fi
|
||||||
if [ ! -z "`cat $PKGMK_ROOT/$PKGMK_PKGFILE |sed "s@^[ ,\t,#]*@@"|grep -i ^url|cut -d : -f1 --complement|sed "s@^[ ,\t]*@@"`" ]; then
|
if [ ! -z "`cat $PKGMK_ROOT/$PKGMK_PKGFILE |sed "s@^[ ,\t,#]*@@"|grep -i ^url|cut -d : -f1 --complement|sed "s@^[ ,\t]*@@"`" ]; then
|
||||||
URL="`cat $PKGMK_ROOT/$PKGMK_PKGFILE |sed "s@^[ ,\t,#]*@@"|grep -i ^url|cut -d : -f1 --complement|sed "s@^[ ,\t]*@@"`"
|
URL="`cat $PKGMK_ROOT/$PKGMK_PKGFILE |sed "s@^[ ,\t,#]*@@"|grep -i ^url|cut -d : -f1 --complement|sed "s@^[ ,\t]*@@"`"
|
||||||
else
|
else
|
||||||
URL="n.a"
|
URL="belirsiz"
|
||||||
|
fi
|
||||||
|
if [ ! -z "`cat $PKGMK_ROOT/$PKGMK_PKGFILE |sed "s@^[ ,\t,#]*@@"|grep -i ^Grup|cut -d : -f1 --complement|sed "s@^[ ,\t]*@@"`" ]; then
|
||||||
|
GRUP="`cat $PKGMK_ROOT/$PKGMK_PKGFILE |sed "s@^[ ,\t,#]*@@"|grep -i ^Grup|cut -d : -f1 --complement|sed "s@^[ ,\t]*@@"`"
|
||||||
|
else
|
||||||
|
GRUP="belirsiz"
|
||||||
fi
|
fi
|
||||||
SIZE_I="`du -b $PAKETLEME_DIZIN/$1|sed "s/\t/ /"|cut -d " " -f1`"
|
SIZE_I="`du -b $PAKETLEME_DIZIN/$1|sed "s/\t/ /"|cut -d " " -f1`"
|
||||||
echo "N$NAME" > .META
|
echo "N$NAME" > .META
|
||||||
|
@ -615,6 +620,7 @@ add_meta_to_archive() {
|
||||||
echo "r$release" >> .META
|
echo "r$release" >> .META
|
||||||
echo "B$PKGMK_BUILDVER" >> .META
|
echo "B$PKGMK_BUILDVER" >> .META
|
||||||
echo "a$ARCH" >> .META
|
echo "a$ARCH" >> .META
|
||||||
|
echo "G$GRUP" >> .META
|
||||||
# TODO improve the pkginfo --runtimedepfiles functionnality
|
# TODO improve the pkginfo --runtimedepfiles functionnality
|
||||||
if [ "$PKGMK_IGNORE_RUNTIMEDEPS" == "yok" ];then
|
if [ "$PKGMK_IGNORE_RUNTIMEDEPS" == "yok" ];then
|
||||||
for dep in `pkginfo --runtimedepfiles $TAR|grep -v ^[A-Z]`; do
|
for dep in `pkginfo --runtimedepfiles $TAR|grep -v ^[A-Z]`; do
|
||||||
|
|
Loading…
Reference in New Issue