2013-10-18
Slitaz -- git-hg
mercurial to git converter using git-fast-import
# tazpkg -i hg-fast-export-20120921-1.tazpkg
# git-hg clone http://hg.slitaz.org/cookutils
# tazpkg -i gitk-1.8.3.tazpkg
## Usage ##
- Clone an hg repo, including ones over HTTP:
$ git-hg clone http://some/random/hg/repo [local-git-repo-name]
- Fetch updates from the hg repo:
$ git-hg fetch
or optionally:
$ git-hg pull # same as git-hg-fetch && git merge hg/branch_name
- Checkout a new branch from hg:
$ git-hg checkout branch_name
- Push changes back to hg, optionally to a specific destination:
$ git-hg push [destination]
## Structure ##
`.git/hgcheckout` - contains a bare mercurial checkout of the specified repo
`.git/hgremote` - contains a bare git repo clones from the mercurial one,
this is added as a remote called "hg" in the base repo
2013-10-17
Slitaz -- bootguide
From BIOS to /etc/init.d/rcS
- Uncommon is LVM, RAID, crypto, loop or subdir mount with preinit rootfs.
- Versatile boot floppy - http://mirror.slitaz.org/boot/floppy-grub4dos
- Boot floppy set - http://mirror.slitaz.org/floppies/
- LAN PXE or WEB boot.
- gpxe.pxe.
- Tiny slitaz, see http://tiny.slitaz.org/
- Lowram CD.
- kexec command from the kexec-tools package.
2013-10-16
Slitaz -- firefox
firefox-17.0.8esr.tazpkg: no such file
1.
root@slitaz:/home/tux# date
Wed Oct 16 16:49:37 UTC 2013
root@slitaz:/home/tux# tazpkg recharge
Main is up to date.
2.
root@slitaz:/home/tux# tazpkg -gi firefox
Connecting to mirror.slitaz.org (91.121.171.224:80)
wget: server returned error: HTTP/1.1 404 Not Found
Connecting to mirror.slitaz.org (91.121.171.224:80)
wget: server returned error: HTTP/1.1 404 Not Found
/usr/bin/tazpkg: line 2817: can't open /var/cache/tazpkg/cooking/packages/firefox-17.0.8esr.tazpkg: no such file
/usr/bin/tazpkg: .: line 2817: can't open '/tmp/7287/receipt'
root@slitaz:/home/tux# wget http://mirror.slitaz.org/packages/cooking/firefox-17.0.9esr.tazpkg
Connecting to mirror.slitaz.org (91.121.171.224:80)
firefox-17.0.9esr.ta 100% |************************************| 15856k 0:00:00 ETA
3.
root@slitaz:/home/tux# wget http://mirror.slitaz.org/packages/cooking/ID
Connecting to mirror.slitaz.org (91.121.171.224:80)
ID 100% |************************************| 33 0:00:00 ETA
root@slitaz:/home/tux# cat ID
0461959b270c73d599ba749c464dd5d8
root@slitaz:/home/tux# cat /var/lib/tazpkg/ID
0461959b270c73d599ba749c464dd5d8
4.
root@slitaz:/home/tux# grep firefox /var/lib/tazpkg/packages.md5 | head -4
f4dec8eae438fdc13dfcbe08ba54d789 firefox-17.0.8esr.tazpkg
2f4c0bd32f3a128a82ad6a6537af7394 firefox-dev-17.0.8esr.tazpkg
0e17d413a3f8e8b963e2248ef576313a firefox-langpack-da-17.0.8esr.tazpkg
092102b0652ccfc9d1170b27b1801528 firefox-langpack-de-17.0.8esr.tazpkg
root@slitaz:/home/tux# md5sum firefox-17.0.9esr.tazpkg
e392feddf2ab47ec12c2659a248b9a66 firefox-17.0.9esr.tazpkg
root@slitaz:/home/tux#
5.
http://mirror.slitaz.org/packages/cooking/
[..]
ID 2013-Oct-13 00:46:03 0.0K application/octet-stream
ORBit2-2.14.19.tazpkg 2013-Sep-21 16:57:31 145.7K application/x-tazpkg
[..]
firefox-17.0.9esr.tazpkg 2013-Sep-27 05:15:30 15.5M application/x-tazpkg
firefox-dev-17.0.9esr.tazpkg 2013-Sep-27 05:18:32 11.5M application/x-tazpkg
firefox-langpack-da-17.0.9esr.tazpkg 2013-Sep-27 08:45:36 204.8K application/x-tazpkg
firefox-langpack-de-17.0.9esr.tazpkg 2013-Sep-27 08:45:43 208.6K application/x-tazpkg
firefox-langpack-en_GB-17.0.9esr.tazpkg 2013-Sep-27 08:45:50 201.9K application/x-tazpkg
firefox-langpack-es_ES-17.0.9esr.tazpkg 2013-Sep-27 08:45:57 176.8K application/x-tazpkg
firefox-langpack-fr-17.0.9esr.tazpkg 2013-Sep-27 08:46:03 207.1K application/x-tazpkg
firefox-langpack-id-17.0.9esr.tazpkg 2013-Sep-27 08:46:10 205.2K application/x-tazpkg
firefox-langpack-it-17.0.9esr.tazpkg 2013-Sep-27 08:46:18 170.8K application/x-tazpkg
firefox-langpack-pt_BR-17.0.9esr.tazpkg 2013-Sep-27 08:46:24 208.3K application/x-tazpkg
firefox-langpack-pt_PT-17.0.9esr.tazpkg 2013-Sep-27 08:46:32 212.2K application/x-tazpkg
firefox-langpack-ru-17.0.9esr.tazpkg 2013-Sep-27 08:46:40 181.2K application/x-tazpkg
firefox-langpack-zh_CN-17.0.9esr.tazpkg 2013-Sep-27 08:46:47 208.3K application/x-tazpkg
firefox-langpack-zh_TW-17.0.9esr.tazpkg 2013-Sep-27 08:46:56 208.7K application/x-tazpkg
firefox.flavor 2013-Oct-13 00:52:20 6.5K application/x-flavor
[..]
packages.desc 2013-Aug-10 08:55:45 429.6K text/plain
packages.equiv 2013-Aug-10 08:55:43 5.8K text/plain
packages.list 2013-Aug-10 08:43:43 73.7K text/plain
packages.md5 2013-Aug-10 08:50:28 238.3K text/plain
packages.txt 2013-Aug-10 08:55:45 333.7K text/plain
2013-10-05
Slitaz -- apply_patchs()
1. Apply patches
apply_patchs()
{
cd $src
while read patch_file; do
[ -f done.$patch_file ] && continue
echo "Apply $patch_file..."
patch -p1 < $stuff/patches/$patch_file || return 1
touch done.$patch_file
done <<EOT
remove-selinux-android.patch
use-capability.patch
reboot-syscall.patch
env-props.patch
adbd-use-user-shell.patch
use-local-socket.patch
EOT
}
2. ls -1 done*
done.adbd-use-user-shell.patch
done.env-props.patch
done.reboot-syscall.patch
done.remove-selinux-android.patch
done.use-capability.patch
done.use-local-socket.patch
3. logfile
....
Apply remove-selinux-android.patch...
patching file extras/ext4_utils/make_ext4fs.c
patching file extras/ext4_utils/make_ext4fs_main.c
Apply use-capability.patch...
patching file core/include/private/android_filesystem_config.h
Apply reboot-syscall.patch...
patching file core/libcutils/android_reboot.c
Apply env-props.patch...
patching file core/adb/env-props.c
Apply adbd-use-user-shell.patch...
patching file core/adb/services.c
Apply use-local-socket.patch...
patching file core/adb/adb.c
patching file core/adb/adb_client.c
patching file core/adb/transport_local.c
----
# SliTaz package receipt.
PACKAGE="android-tools-adbd"
VERSION="4.2.2"
CATEGORY="development"
SHORT_DESC="Android Debug Bridge daemon"
MAINTAINER="alanyih"
WEB_SITE="http://developer.android.com/guide/developing/tools/adb.html"
TARBALL="android-tools_4.2.2+git20130529.orig.tar.xz"
WGET_URL="http://ftp.de.debian.org/debian/pool/main/a/android-tools/$TARBALL"
DEPENDS="libssl zlib libcap"
BUILD_DEPENDS="openssl-dev zlib-dev libcap-dev"
# Apply patches
apply_patchs()
{
cd $src
while read patch_file; do
[ -f done.$patch_file ] && continue
echo "Apply $patch_file..."
patch -p1 < $stuff/patches/$patch_file || return 1
touch done.$patch_file
done <<EOT
remove-selinux-android.patch
use-capability.patch
reboot-syscall.patch
env-props.patch
adbd-use-user-shell.patch
use-local-socket.patch
EOT
}
# Rules to configure and make the package.
compile_rules()
{
apply_patchs &&
cd core/adb
cp -a $stuff/adbdMakefile Makefile
make
}
# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
mkdir -p $fs/usr/bin
cp -a $src/core/adb/adbd $fs/usr/bin
}