Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
package-helpers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mtsio
package-helpers
Commits
ae5da303
Commit
ae5da303
authored
12 years ago
by
Ruben Rodriguez
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into slaine
parents
819a4f86
fafbef51
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
makepackage
+19
-7
19 additions, 7 deletions
makepackage
makepending
+28
-69
28 additions, 69 deletions
makepending
with
48 additions
and
76 deletions
.gitignore
+
1
−
0
View file @
ae5da303
repos
repos
jails
jails
logs
This diff is collapsed.
Click to expand it.
makepackage
+
19
−
7
View file @
ae5da303
...
@@ -46,31 +46,34 @@ REPOSITORY=$PWD/repos/$CODENAME
...
@@ -46,31 +46,34 @@ REPOSITORY=$PWD/repos/$CODENAME
HELPERS
=
$PWD
/helpers
HELPERS
=
$PWD
/helpers
if
!
[
-d
repos/
]
if
!
[
-d
repos/
]
then
then
mkdir
-p
repos/
$CODENAME
/conf repos/
$CODENAME
/incoming
for
REPO
in
$(
git branch|sed
's/.* //;/master/d'
)
cat
<<
EOF
> repos/
$CODENAME
/conf/distributions
do
mkdir
-p
repos/
$REPO
/conf repos/
$REPO
/incoming
cat
<<
EOF
> repos/
$REPO
/conf/distributions
Origin: Trisquel
Origin: Trisquel
Label: Trisquel
Label: Trisquel
Suite:
$
CODENAME
Suite:
$
REPO
Version: 42
Version: 42
Codename:
$
CODENAME
Codename:
$
REPO
Architectures: i386 amd64 source
Architectures: i386 amd64 source
Components: main
Components: main
UDebComponents: main
UDebComponents: main
DebIndices: Packages Release . .gz .bz2
DebIndices: Packages Release . .gz .bz2
UDebIndices: Packages . .gz .bz2
UDebIndices: Packages . .gz .bz2
DscIndices: Sources Release .gz .bz2
DscIndices: Sources Release .gz .bz2
Log:
$
CODENAME
.log
Log:
$
REPO
.log
Description: Trisquel GNU/Linux packages for the
$UPSTREAM
based release
Description: Trisquel GNU/Linux packages for the
$UPSTREAM
based release
EOF
EOF
if
gpg
-K
|
grep
-q
$GPGKEY
if
gpg
-K
|
grep
-q
$GPGKEY
then
then
echo
"SignWith:
$GPGKEY
"
>>
repos/
$
CODENAME
/conf/distributions
echo
"SignWith:
$GPGKEY
"
>>
repos/
$
REPO
/conf/distributions
fi
fi
cd
repos/
$
CODENAME
cd
repos/
$
REPO
reprepro
-v
export
reprepro
-v
export
cd
../..
cd
../..
done
fi
fi
disablescripts
(){
disablescripts
(){
...
@@ -129,6 +132,8 @@ EOF
...
@@ -129,6 +132,8 @@ EOF
[
$UPSTREAM
!=
hardy
-a
$UPSTREAM
!=
lucid
-a
$UPSTREAM
!=
maverick
]
&&
echo
"force-unsafe-io"
>
$CHROOT
/etc/dpkg/dpkg.cfg.d/02apt-speedup
[
$UPSTREAM
!=
hardy
-a
$UPSTREAM
!=
lucid
-a
$UPSTREAM
!=
maverick
]
&&
echo
"force-unsafe-io"
>
$CHROOT
/etc/dpkg/dpkg.cfg.d/02apt-speedup
$C
apt-get update
$C
apt-get update
[
$UPSTREAM
!=
hardy
]
&&
$C
apt-get
--force-yes
-y
install
eatmydata
[
$UPSTREAM
!=
hardy
]
&&
$C
apt-get
--force-yes
-y
install
eatmydata
$C
apt-get
--force-yes
-y
install
sysv-rc dpkg sysvinit-utils upstart
disablescripts
$C
apt-get
--force-yes
-y
dist-upgrade
$C
apt-get
--force-yes
-y
dist-upgrade
$C
apt-get
--force-yes
-y
install
devscripts build-essential liburi-perl python-setuptools pkgbinarymangler wget rpl aptitude quilt fakeroot ccache
$C
apt-get
--force-yes
-y
install
devscripts build-essential liburi-perl python-setuptools pkgbinarymangler wget rpl aptitude quilt fakeroot ccache
$C
apt-get clean
$C
apt-get clean
...
@@ -165,6 +170,12 @@ mount -t proc none /proc
...
@@ -165,6 +170,12 @@ mount -t proc none /proc
export DEBIAN_FRONTEND=noninteractive
export DEBIAN_FRONTEND=noninteractive
export LANG=C
export LANG=C
apt-get update
apt-get update
apt-get --force-yes -y install sysv-rc dpkg sysvinit-utils upstart
for i in /usr/sbin/invoke-rc.d /sbin/start /sbin/start-stop-daemon
do
mv
\$
i
\$
i.real
cp /bin/true
\$
i
done
apt-get --force-yes -y dist-upgrade
apt-get --force-yes -y dist-upgrade
umount /proc
umount /proc
EOF
EOF
...
@@ -187,6 +198,7 @@ tmpumount(){
...
@@ -187,6 +198,7 @@ tmpumount(){
exit
1
exit
1
}
}
tmpmount
(){
tmpmount
(){
mount|grep tmpfs|grep jails
-q
&&
return
[
$MEM
-lt
16000000
]
&&
return
[
$MEM
-lt
16000000
]
&&
return
echo
$PACKAGE
|
grep
-q
"linux"
&&
return
echo
$PACKAGE
|
grep
-q
"linux"
&&
return
grep
jails/
$UPSTREAM
-
$ARCH
/tmp /proc/mounts
-q
&&
tmpumount
grep
jails/
$UPSTREAM
-
$ARCH
/tmp /proc/mounts
-q
&&
tmpumount
...
...
This diff is collapsed.
Click to expand it.
makepending
+
28
−
69
View file @
ae5da303
...
@@ -20,6 +20,16 @@
...
@@ -20,6 +20,16 @@
#
#
# This script compares two Sources.gz files, and reports available updates
# This script compares two Sources.gz files, and reports available updates
if
[
$(
git status
-s
|
wc
-l
)
!=
0
]
then
echo
You have uncommited git changes, stopping
exit
1
fi
PAIRS
=
"robur-hardy taranis-lucid dagda-natty brigantia-oneiric toutatis-precise"
CODENAMES
=
"robur taranis dagda brigantia toutatis"
UPSTREAMS
=
"hardy lucid natty oneiric precise"
[
1
$1
=
1
"test"
]
&&
TEST
=
echo
[
1
$1
=
1
"test"
]
&&
TEST
=
echo
WD
=
$PWD
WD
=
$PWD
...
@@ -41,19 +51,11 @@ wget $MIRROR/dists/$DIST/$COMPONENT/source/Sources.gz -q -O - | zcat | egrep dsc
...
@@ -41,19 +51,11 @@ wget $MIRROR/dists/$DIST/$COMPONENT/source/Sources.gz -q -O - | zcat | egrep dsc
echo
" Done"
>
&2
echo
" Done"
>
&2
}
}
listsweets
(){
DIST
=
$1
echo
-n
Downloading Sources.gz from
$MIRROR
>
&2
wget
$MIRROR
/Sources.gz
-q
-O
- | zcat | egrep dsc
$
|
cut
-d
" "
-f
4|sed
's/\.dsc//'
echo
" Done"
>
&2
}
update
(){
update
(){
MIRROR
=
"http://archive.ubuntu.com/ubuntu"
MIRROR
=
"http://archive.ubuntu.com/ubuntu"
for
i
in
hardy lucid maverick natty oneiric
for
i
in
$UPSTREAMS
do
do
listmirror
$i
main
>>
$i
listmirror
$i
main
>>
$i
listmirror
$i
-updates
main
>>
$i
listmirror
$i
-updates
main
>>
$i
...
@@ -63,40 +65,16 @@ do
...
@@ -63,40 +65,16 @@ do
listmirror
$i
-security
universe
>>
$i
listmirror
$i
-security
universe
>>
$i
done
done
#MIRROR="http://download.sugarlabs.org/packages/SweetsDistribution:/0.94/Ubuntu-11.04/"
for
i
in
$CODENAMES
#listsweets >> sweets-natty
MIRROR
=
"ftp://archive.trisquel.info/trisquel"
for
i
in
main extras
do
listmirror robur
$i
>>
robur
listmirror robur-updates
$i
>>
robur
listmirror robur-security
$i
>>
robur
done
for
i
in
taranis slaine dagda brigantia
do
do
MIRROR
=
"http://archive.trisquel.info/trisquel"
listmirror
$i
main
>>
$i
listmirror
$i
main
>>
$i
listmirror
$i
-updates
main
>>
$i
listmirror
$i
-updates
main
>>
$i
listmirror
$i
-security
main
>>
$i
listmirror
$i
-security
main
>>
$i
done
MIRROR
=
"http://devel.trisquel.info/trisquel/hardy"
MIRROR
=
"http://devel.trisquel.info/trisquel/
$i
"
listmirror hardy main
>>
robur
listmirror
$i
main
>>
$i
#MIRROR="http://devel.trisquel.info/trisquel/jaunty"
done
#listmirror jaunty main >> dwyn
#MIRROR="http://devel.trisquel.info/trisquel/karmic"
#listmirror karmic main >> awen
MIRROR
=
"http://devel.trisquel.info/trisquel/lucid"
listmirror lucid main
>>
taranis
MIRROR
=
"http://devel.trisquel.info/trisquel/maverick"
listmirror maverick main
>>
slaine
MIRROR
=
"http://devel.trisquel.info/trisquel/natty"
listmirror natty main
>>
dagda
MIRROR
=
"http://devel.trisquel.info/trisquel/oneiric"
listmirror oneiric main
>>
brigantia
}
}
...
@@ -142,9 +120,12 @@ then
...
@@ -142,9 +120,12 @@ then
continue
continue
fi
fi
echo
Running makepackage
$package
$UPSTREAM
at
$(
date
)
$TEST
git
--git-dir
=
$WD
/.git checkout
$DISTRO
echo
Running makepackage
$package
$UPSTREAM
at
$(
date
)
$LOGS
/
$package
-
$UPSTREAM
-
$(
date
+%Y%m%d
)
.log 1>&2
$TEST
git
--git-dir
=
$WD
/.git merge master
$TEST
sh
$WD
/makepackage
$package
$UPSTREAM
>
$LOGS
/
$package
-
$UPSTREAM
-
$(
date
+%Y%m%d
)
.log
&&
echo
-n
Done!
||
echo
-n
FAILED!
echo
Upgrading
$current
at
$DISTRO
with
${
UPSTREAM
}
_
$upstream
1>&2
echo
Running makepackage
$package
$DISTRO
at
$(
date
)
$LOGS
/
$DISTRO
-
$package
-
$(
date
+%Y%m%d
)
.log
echo
Running makepackage
$package
$DISTRO
at
$(
date
)
$LOGS
/
$DISTRO
-
$package
-
$(
date
+%Y%m%d
)
.log 1>&2
$TEST
sh
$WD
/makepackage
$package
$DISTRO
>
$LOGS
/
$DISTRO
-
$package
-
$(
date
+%Y%m%d
)
.log
&&
echo
-n
Done!
||
echo
-n
FAILED!
echo
" (
$(
date
)
)"
echo
" (
$(
date
)
)"
echo
echo
fi
fi
...
@@ -153,35 +134,13 @@ done
...
@@ -153,35 +134,13 @@ done
update
update
DISTRO
=
"robur"
for
pair
in
$PAIRS
UPSTREAM
=
"hardy"
do
PACKAGES
=
$(
ls
-1
$WD
/helpers/
$UPSTREAM
/make-
*
|
sed
's:^.*/::; s:make-::'
)
DISTRO
=
${
pair
/-*/
}
check
>>
$FILE
UPSTREAM
=
${
pair
/*-/
}
PACKAGES
=
$(
git
--git-dir
=
/home/systems/devel/.git ls-tree
-r
--name-only
$DISTRO
|grep helpers/make-|sed
's/.*make-//'
)
DISTRO
=
"taranis"
UPSTREAM
=
"lucid"
PACKAGES
=
$(
ls
-1
$WD
/helpers/
$UPSTREAM
/make-
*
|
sed
's:^.*/::; s:make-::'
)
check
>>
$FILE
DISTRO
=
"slaine"
UPSTREAM
=
"maverick"
PACKAGES
=
$(
ls
-1
$WD
/helpers/
$UPSTREAM
/make-
*
|
sed
's:^.*/::; s:make-::'
)
check
>>
$FILE
DISTRO
=
"dagda"
UPSTREAM
=
"natty"
PACKAGES
=
$(
ls
-1
$WD
/helpers/
$UPSTREAM
/make-
*
|
sed
's:^.*/::; s:make-::'
)
check
>>
$FILE
DISTRO
=
"brigantia"
UPSTREAM
=
"oneiric"
PACKAGES
=
$(
ls
-1
$WD
/helpers/
$UPSTREAM
/make-
*
|
sed
's:^.*/::; s:make-::'
)
check
>>
$FILE
check
>>
$FILE
done
#DISTRO="dagda"
#UPSTREAM="sweets-natty"
#PACKAGES=$(ls -1 $WD/helpers/$UPSTREAM/make-* | sed 's:^.*/::; s:make-::')
#check >> $FILE
report
()
{
report
()
{
#address=trisquel-devel@listas.trisquel.info
#address=trisquel-devel@listas.trisquel.info
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment