Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
I
inary
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
1
Konular (issue)
1
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
SulinOS
inary
Commits
d1af735b
Kaydet (Commit)
d1af735b
authored
Haz 16, 2020
tarafından
sulincix
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ufak dokunuşlar
üst
40bed76e
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
46 additions
and
8 deletions
+46
-8
inary-cli
inary-cli
+2
-1
inary-sandbox
scripts/inary-sandbox
+5
-3
mkdeb
scripts/mkdeb
+19
-0
revdep-rebuild
scripts/revdep-rebuild
+2
-1
revdep-rebuild-devel
scripts/revdep-rebuild-devel
+9
-0
sulinstrapt
scripts/sulinstrapt
+3
-3
setup.py
setup.py
+6
-0
No files found.
inary-cli
Dosyayı görüntüle @
d1af735b
...
...
@@ -15,6 +15,7 @@
import
errno
import
traceback
import
signal
import
os
import
sys
import
traceback
...
...
@@ -92,7 +93,7 @@ def handle_exception(exception, value, tb):
def
blc_wsl
():
"""Dont allow fucking WSL"""
f
=
open
(
"/proc/version"
,
"r"
)
.
readline
(
)
f
=
str
(
os
.
uname
()
)
if
((
"Microsoft"
in
f
)
or
(
"WSL"
in
f
)):
print
(
_
(
"Using inary in WSL environment is not allowed."
))
exit
()
...
...
scripts/inary-sandbox
Dosyayı görüntüle @
d1af735b
...
...
@@ -31,7 +31,7 @@ def run(cmd, ignore_error=False):
def
create_sandbox
(
output_dir
,
repository
):
try
:
# Add repository of the packages
run
(
'inary --yes-all --destdir="
%
s" add-repo
pardus
%
s'
%
(
output_dir
,
repository
))
run
(
'inary --yes-all --destdir="
%
s" add-repo
sulin
%
s'
%
(
output_dir
,
repository
))
# Install system.base and system.devel
run
(
'inary --yes-all --ignore-file-conflicts -D"
%
s" it -c system.base -c system.devel'
%
output_dir
)
...
...
@@ -71,10 +71,12 @@ def mount_sandbox():
run
(
"mount -t tmpfs -o size=1024M,mode=0744 tmpfs tmpfs/"
)
run
(
"mkdir -p sandbox"
)
run
(
"mount -t aufs -o br=tmpfs=rw:base=ro none sandbox/"
)
run
(
'/bin/mount --bind /proc sandbox/proc'
)
run
(
'/bin/mount --bind /dev sandbox/dev'
)
run
(
'/bin/mount -t proc proc sandbox/proc'
)
run
(
'/bin/mount -t devtmpfs dev sandbox/dev'
)
run
(
'/bin/mount -t sys sys sandbox/sys'
)
def
umount_sandbox
():
run
(
'/bin/umount sandbox/sys'
)
run
(
'/bin/umount sandbox/dev'
)
run
(
'/bin/umount sandbox/proc'
)
run
(
'/bin/umount sandbox'
)
...
...
scripts/mkdeb
0 → 100644
Dosyayı görüntüle @
d1af735b
#!/bin/bash
export
CWD
=
$(
pwd
)
tmp
=
$(
mktemp
)
rm
-f
$tmp
;
mkdir
$tmp
cd
$1
[
-d
./DEBIAN
]
||
echo
"DEBIAN directory not found"
&&
exit
1
export
NAME
=
$(
cat
DEBIAN/control |
grep
"Package: "
|
sed
"s/.*: //g"
)
export
ARCH
=
$(
cat
DEBIAN/control |
grep
"Architecture: "
|
sed
"s/.*: //g"
)
export
VERS
=
$(
cat
DEBIAN/control |
grep
"Version: "
|
sed
"s/.*: //g"
)
tar
czvf
$tmp
/data.tar.gz
[
a-z]
*
|
sed
"s/^/Adding: /g"
cd
DEBIAN
tar
czf
$tmp
/control.tar.gz
*
cd
../..
echo
2.0
>
$tmp
/debian-binary
cd
$tmp
ar r
"
${
NAME
}
_
${
ARCH
}
_
${
VERS
}
.deb"
debian-binary control.tar.gz data.tar.gz
mv
$tmp
/
*
.deb
$CWD
/
rm
-rf
$tmp
/
cd
$CWD
scripts/revdep-rebuild
Dosyayı görüntüle @
d1af735b
...
...
@@ -179,8 +179,9 @@ else
if
LD_LIBRARY_PATH
=
"
$COMPLETE_LD_LIBRARY_PATH
"
\
ldd
"
$FILE
"
2>/dev/null |
grep
-v
"
$LD_MASK
"
|
$SONAME_GREP
-q
"
$SONAME_SEARCH
"
;
then
echo
"
$FILE
"
>>
$LLIST
.3_rebuild
echo_v
" broken
$FILE
(requires
$(
ldd
"
$FILE
"
|
sed
-n
's/ \(.*\) => not found$/\1/p'
|
tr
'\n'
' '
|
sed
's/ $//'
)
)"
echo
" broken
$FILE
(requires
$(
ldd
"
$FILE
"
|
sed
-n
's/ \(.*\) => not found$/\1/p'
|
tr
'\n'
' '
|
sed
's/ $//'
)
)"
>>
$LLIST
.3_rebuild
fi
else
echo
"
$FILE
"
>>
$LLIST
.3_rebuild
...
...
scripts/revdep-rebuild-devel
0 → 100644
Dosyayı görüntüle @
d1af735b
export PKG_CONFIG_PATH=/usr/lib32/pkgconfig:$PKG_CONFIG_PATH
for j in {/usr/lib/pkgconfig,/usr/lib32/pkgconfig,/usr/share/pkgconfig}
do
echo -e "\033[32;1mChecking \033[;0m$j"
for i in $(ls $j | sed "s/.pc//g")
do
[ -f $j/$i.pc ] && pkg-config --cflags --libs $i >/dev/null | sed '/^$/d' || true
done
done
scripts/sulinstrapt
Dosyayı görüntüle @
d1af735b
...
...
@@ -21,8 +21,8 @@ then
echo
"
$sulin
is a file. You must delete or move."
exit
1
fi
inary ar sulin https://master.dl.sourceforge.net/project/sulinos/SulinRepository/inary-index.xml
-D
$sulin
inary ur
-D
$sulin
inary ar sulin https://master.dl.sourceforge.net/project/sulinos/SulinRepository/inary-index.xml
-
y
-
D
$sulin
inary ur
-
y
-
D
$sulin
inary it baselayout
--ignore-dep
--ignore-safety
--ignore-configure
-y
-D
$sulin
inary it
-c
system.base
-y
--ignore-configure
-D
$sulin
if
echo
$2
|
grep
"^-"
&>/dev/null
;
then
...
...
@@ -32,7 +32,7 @@ if echo $2 | grep "^-" &>/dev/null ; then
echo
$2
|
grep
"n"
&&
inary it NetworkManager
-y
--ignore-configure
-D
$sulin
echo
$2
|
grep
"a"
&&
inary it nano wget vim strace ntfsprogs tree dialog pfork scom htop
-y
--ignore-configure
-D
$sulin
fi
for
i
in
/dev /sys /proc
for
i
in
/dev /sys /proc
/run
do
mkdir
-p
$sulin
/
$i
&>/dev/null
mount
--bind
$i
$sulin
/
$i
...
...
setup.py
Dosyayı görüntüle @
d1af735b
...
...
@@ -207,6 +207,12 @@ setup(name="inary",
'scripts/revdep-rebuild'
,
'scripts/sulinstrapt'
,
'scripts/makepkg'
,
'scripts/mkdeb'
,
'scripts/revdep-rebuild-devel'
,
'scripts/inary-sandbox'
,
'scripts/inarysh'
,
'scripts/lsinary'
,
'scripts/uninary'
,
'scripts/update-inary-cache'
,
'scripts/version-bump'
],
classifiers
=
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment