Browse Source

Do initial release

suites/unstable
Boian Bonev 8 months ago
commit
2feb670488
Signed by: bbonev GPG Key ID: 1365720913D2F22D
  1. 80
      data/templates/Devuan.info.in
  2. 551
      data/templates/Devuan.mirrors
  3. 5
      debian/changelog
  4. 26
      debian/control
  5. 19
      debian/copyright
  6. 9
      debian/gbp.conf
  7. 2
      debian/install
  8. 1
      debian/lintian-overrides
  9. 16
      debian/rules
  10. 1
      debian/source.lintian-overrides
  11. 1
      debian/source/format
  12. 5
      pre-build.sh
  13. 11
      utils/expand_info.py
  14. 310
      utils/get_devuan_mirrors.pl

80
data/templates/Devuan.info.in

@ -0,0 +1,80 @@
_ChangelogURI: http://packages.debian.org/changelogs/pool/%s/%s/%s/%s_%s/changelog
X-Exclude-Suites: jessie, experimental
Suite: {series}
RepositoryType: deb
BaseURI: http://deb.devuan.org/merged/
MatchURI: [a-z]{{2}}\.deb\.devuan\.org
MirrorsFile: Devuan.mirrors
_Description: Devuan {version} '{codename}'
Component: main
_CompDescription: Officially supported
Component: contrib
_CompDescription: DFSG-compatible Software with Non-Free Dependencies
Component: non-free
_CompDescription: Non-DFSG-compatible Software
Suite: {series}-security
RepositoryType: deb
BaseURI: http://deb.devuan.org/merged/
MatchURI: [a-z]{{2}}\.deb\.devuan\.org
ParentSuite: {series}
_Description: Security updates
Suite: {series}-proposed-updates
RepositoryType: deb
ParentSuite: {series}
_Description: Proposed updates
Suite: stable
RepositoryType: deb
BaseURI: http://deb.devuan.org/merged/
MatchURI: [a-z]{{2}}\.deb\.devuan\.org
MirrorsFile: Devuan.mirrors
_Description: Devuan current stable release
Component: main
_CompDescription: Officially supported
Component: contrib
_CompDescription: DFSG-compatible Software with Non-Free Dependencies
Component: non-free
_CompDescription: Non-DFSG-compatible Software
Suite: testing
RepositoryType: deb
BaseURI: http://deb.devuan.org/merged/
MatchURI: [a-z]{{2}}\.deb\.devuan\.org
MirrorsFile: Devuan.mirrors
_Description: Devuan testing
Component: main
_CompDescription: Officially supported
Component: contrib
_CompDescription: DFSG-compatible Software with Non-Free Dependencies
Component: non-free
_CompDescription: Non-DFSG-compatible Software
Suite: ceres
RepositoryType: deb
BaseURI: http://deb.devuan.org/merged/
MatchURI: [a-z]{{2}}\.deb\.devuan\.org
MirrorsFile: Devuan.mirrors
_Description: Devuan 'ceres' (unstable)
Component: main
_CompDescription: Officially supported
Component: contrib
_CompDescription: DFSG-compatible Software with Non-Free Dependencies
Component: non-free
_CompDescription: Non-DFSG-compatible Software
Suite: unstable
RepositoryType: deb
BaseURI: http://deb.devuan.org/merged/
MatchURI: [a-z]{{2}}\.deb\.devuan\.org
MirrorsFile: Devuan.mirrors
_Description: Devuan 'ceres' (unstable)
Component: main
_CompDescription: Officially supported
Component: contrib
_CompDescription: DFSG-compatible Software with Non-Free Dependencies
Component: non-free
_CompDescription: Non-DFSG-compatible Software

551
data/templates/Devuan.mirrors

@ -0,0 +1,551 @@
#LOC:AD
http://ad.deb.devuan.org/merged/
#LOC:AE
http://ae.deb.devuan.org/merged/
#LOC:AF
http://af.deb.devuan.org/merged/
#LOC:AG
http://ag.deb.devuan.org/merged/
#LOC:AI
http://ai.deb.devuan.org/merged/
#LOC:AL
http://al.deb.devuan.org/merged/
http://mirror.stinpriza.org/devuan/
#LOC:AM
http://am.deb.devuan.org/merged/
#LOC:AO
http://ao.deb.devuan.org/merged/
#LOC:AQ
http://aq.deb.devuan.org/merged/
#LOC:AR
http://ar.deb.devuan.org/merged/
http://espejito.fder.edu.uy/devuan/
#LOC:AS
http://as.deb.devuan.org/merged/
#LOC:AT
http://at.deb.devuan.org/merged/
#LOC:AU
http://au.deb.devuan.org/merged/
#LOC:AW
http://aw.deb.devuan.org/merged/
#LOC:AX
http://ax.deb.devuan.org/merged/
#LOC:AZ
http://az.deb.devuan.org/merged/
#LOC:BA
http://ba.deb.devuan.org/merged/
http://mirror.stinpriza.org/devuan/
#LOC:BB
http://bb.deb.devuan.org/merged/
#LOC:BD
http://bd.deb.devuan.org/merged/
#LOC:BE
http://be.deb.devuan.org/merged/
http://sledjhamr.org/devuan/
#LOC:BF
http://bf.deb.devuan.org/merged/
#LOC:BG
http://bg.deb.devuan.org/merged/
http://devuan.ipacct.com/devuan/
http://mirror.stinpriza.org/devuan/
#LOC:BH
http://bh.deb.devuan.org/merged/
#LOC:BI
http://bi.deb.devuan.org/merged/
#LOC:BJ
http://bj.deb.devuan.org/merged/
#LOC:BL
http://bl.deb.devuan.org/merged/
#LOC:BM
http://bm.deb.devuan.org/merged/
#LOC:BN
http://bn.deb.devuan.org/merged/
#LOC:BO
http://bo.deb.devuan.org/merged/
#LOC:BQ
http://bq.deb.devuan.org/merged/
#LOC:BR
http://br.deb.devuan.org/merged/
http://devuan.c3sl.ufpr.br/
http://espejito.fder.edu.uy/devuan/
#LOC:BS
http://bs.deb.devuan.org/merged/
#LOC:BT
http://bt.deb.devuan.org/merged/
#LOC:BV
http://bv.deb.devuan.org/merged/
#LOC:BW
http://bw.deb.devuan.org/merged/
#LOC:BY
http://by.deb.devuan.org/merged/
#LOC:BZ
http://bz.deb.devuan.org/merged/
#LOC:CA
http://ca.deb.devuan.org/merged/
http://mishka.snork.ca/devuan/
#LOC:CC
http://cc.deb.devuan.org/merged/
#LOC:CD
http://cd.deb.devuan.org/merged/
#LOC:CF
http://cf.deb.devuan.org/merged/
#LOC:CG
http://cg.deb.devuan.org/merged/
#LOC:CH
http://ch.deb.devuan.org/merged/
http://sledjhamr.org/devuan/
http://mirror.ungleich.ch/mirror/packages/devuan/
http://devuan.planetcobalt.net/
#LOC:CI
http://ci.deb.devuan.org/merged/
#LOC:CK
http://ck.deb.devuan.org/merged/
#LOC:CL
http://cl.deb.devuan.org/merged/
http://devuan.dcc.uchile.cl/
#LOC:CM
http://cm.deb.devuan.org/merged/
#LOC:CN
http://cn.deb.devuan.org/merged/
http://devuan.m10k.jp/
#LOC:CO
http://co.deb.devuan.org/merged/
#LOC:CR
http://cr.deb.devuan.org/merged/
#LOC:CU
http://cu.deb.devuan.org/merged/
#LOC:CV
http://cv.deb.devuan.org/merged/
#LOC:CW
http://cw.deb.devuan.org/merged/
#LOC:CX
http://cx.deb.devuan.org/merged/
#LOC:CY
http://cy.deb.devuan.org/merged/
http://mirror.stinpriza.org/devuan/
#LOC:CZ
http://cz.deb.devuan.org/merged/
http://sledjhamr.org/devuan/
#LOC:DE
http://de.deb.devuan.org/merged/
http://sledjhamr.org/devuan/
http://ftp.fau.de/devuan/
http://dist-mirror.fem.tu-ilmenau.de/devuan/
http://mirror.checkdomain.de/devuan/
http://devuan.bio.lmu.de/
http://mirror.stinpriza.org/devuan/
#LOC:DJ
http://dj.deb.devuan.org/merged/
#LOC:DK
http://dk.deb.devuan.org/merged/
http://sledjhamr.org/devuan/
http://mirrors.dotsrc.org/devuan/
#LOC:DM
http://dm.deb.devuan.org/merged/
#LOC:DO
http://do.deb.devuan.org/merged/
#LOC:DZ
http://dz.deb.devuan.org/merged/
#LOC:EC
http://ec.deb.devuan.org/merged/
#LOC:EE
http://ee.deb.devuan.org/merged/
#LOC:EG
http://eg.deb.devuan.org/merged/
#LOC:ER
http://er.deb.devuan.org/merged/
#LOC:ES
http://es.deb.devuan.org/merged/
http://repo.ifca.es/devuan/
#LOC:ET
http://et.deb.devuan.org/merged/
#LOC:FI
http://fi.deb.devuan.org/merged/
http://devuan.packet-gain.de/
#LOC:FJ
http://fj.deb.devuan.org/merged/
#LOC:FK
http://fk.deb.devuan.org/merged/
#LOC:FM
http://fm.deb.devuan.org/merged/
#LOC:FO
http://fo.deb.devuan.org/merged/
#LOC:FR
http://fr.deb.devuan.org/merged/
http://sledjhamr.org/devuan/
#LOC:GA
http://ga.deb.devuan.org/merged/
#LOC:GB
http://gb.deb.devuan.org/merged/
http://sledjhamr.org/devuan/
#LOC:GD
http://gd.deb.devuan.org/merged/
#LOC:GE
http://ge.deb.devuan.org/merged/
#LOC:GF
http://gf.deb.devuan.org/merged/
#LOC:GG
http://gg.deb.devuan.org/merged/
http://sledjhamr.org/devuan/
#LOC:GH
http://gh.deb.devuan.org/merged/
#LOC:GI
http://gi.deb.devuan.org/merged/
#LOC:GL
http://gl.deb.devuan.org/merged/
#LOC:GM
http://gm.deb.devuan.org/merged/
#LOC:GN
http://gn.deb.devuan.org/merged/
#LOC:GP
http://gp.deb.devuan.org/merged/
#LOC:GQ
http://gq.deb.devuan.org/merged/
#LOC:GR
http://gr.deb.devuan.org/merged/
http://devuan.ipacct.com/devuan/
http://mirror.stinpriza.org/devuan/
#LOC:GS
http://gs.deb.devuan.org/merged/
#LOC:GT
http://gt.deb.devuan.org/merged/
#LOC:GU
http://gu.deb.devuan.org/merged/
#LOC:GW
http://gw.deb.devuan.org/merged/
#LOC:GY
http://gy.deb.devuan.org/merged/
#LOC:HK
http://hk.deb.devuan.org/merged/
#LOC:HM
http://hm.deb.devuan.org/merged/
#LOC:HN
http://hn.deb.devuan.org/merged/
#LOC:HR
http://hr.deb.devuan.org/merged/
http://mirror.stinpriza.org/devuan/
#LOC:HT
http://ht.deb.devuan.org/merged/
#LOC:HU
http://hu.deb.devuan.org/merged/
#LOC:ID
http://id.deb.devuan.org/merged/
#LOC:IE
http://ie.deb.devuan.org/merged/
http://sledjhamr.org/devuan/
#LOC:IL
http://il.deb.devuan.org/merged/
#LOC:IM
http://im.deb.devuan.org/merged/
http://sledjhamr.org/devuan/
#LOC:IN
http://in.deb.devuan.org/merged/
#LOC:IO
http://io.deb.devuan.org/merged/
#LOC:IQ
http://iq.deb.devuan.org/merged/
#LOC:IR
http://ir.deb.devuan.org/merged/
#LOC:IS
http://is.deb.devuan.org/merged/
#LOC:IT
http://it.deb.devuan.org/merged/
#LOC:JE
http://je.deb.devuan.org/merged/
http://sledjhamr.org/devuan/
#LOC:JM
http://jm.deb.devuan.org/merged/
#LOC:JO
http://jo.deb.devuan.org/merged/
#LOC:JP
http://jp.deb.devuan.org/merged/
http://devuan.m10k.jp/
#LOC:KE
http://ke.deb.devuan.org/merged/
#LOC:KG
http://kg.deb.devuan.org/merged/
#LOC:KH
http://kh.deb.devuan.org/merged/
#LOC:KI
http://ki.deb.devuan.org/merged/
#LOC:KM
http://km.deb.devuan.org/merged/
#LOC:KN
http://kn.deb.devuan.org/merged/
#LOC:KP
http://kp.deb.devuan.org/merged/
http://devuan.m10k.jp/
#LOC:KR
http://kr.deb.devuan.org/merged/
http://devuan.m10k.jp/
#LOC:KW
http://kw.deb.devuan.org/merged/
#LOC:KY
http://ky.deb.devuan.org/merged/
#LOC:KZ
http://kz.deb.devuan.org/merged/
#LOC:LA
http://la.deb.devuan.org/merged/
#LOC:LB
http://lb.deb.devuan.org/merged/
#LOC:LC
http://lc.deb.devuan.org/merged/
#LOC:LI
http://li.deb.devuan.org/merged/
#LOC:LK
http://lk.deb.devuan.org/merged/
#LOC:LR
http://lr.deb.devuan.org/merged/
#LOC:LS
http://ls.deb.devuan.org/merged/
#LOC:LT
http://lt.deb.devuan.org/merged/
#LOC:LU
http://lu.deb.devuan.org/merged/
http://sledjhamr.org/devuan/
#LOC:LV
http://lv.deb.devuan.org/merged/
#LOC:LY
http://ly.deb.devuan.org/merged/
#LOC:MA
http://ma.deb.devuan.org/merged/
#LOC:MC
http://mc.deb.devuan.org/merged/
#LOC:MD
http://md.deb.devuan.org/merged/
#LOC:ME
http://me.deb.devuan.org/merged/
http://mirror.stinpriza.org/devuan/
#LOC:MF
http://mf.deb.devuan.org/merged/
#LOC:MG
http://mg.deb.devuan.org/merged/
#LOC:MH
http://mh.deb.devuan.org/merged/
#LOC:MK
http://mk.deb.devuan.org/merged/
http://devuan.ipacct.com/devuan/
http://mirror.stinpriza.org/devuan/
#LOC:ML
http://ml.deb.devuan.org/merged/
#LOC:MM
http://mm.deb.devuan.org/merged/
#LOC:MN
http://mn.deb.devuan.org/merged/
#LOC:MO
http://mo.deb.devuan.org/merged/
#LOC:MP
http://mp.deb.devuan.org/merged/
#LOC:MQ
http://mq.deb.devuan.org/merged/
#LOC:MR
http://mr.deb.devuan.org/merged/
#LOC:MS
http://ms.deb.devuan.org/merged/
#LOC:MT
http://mt.deb.devuan.org/merged/
#LOC:MU
http://mu.deb.devuan.org/merged/
#LOC:MV
http://mv.deb.devuan.org/merged/
#LOC:MW
http://mw.deb.devuan.org/merged/
#LOC:MX
http://mx.deb.devuan.org/merged/
#LOC:MY
http://my.deb.devuan.org/merged/
#LOC:MZ
http://mz.deb.devuan.org/merged/
#LOC:NA
http://na.deb.devuan.org/merged/
#LOC:NC
http://nc.deb.devuan.org/merged/
#LOC:NE
http://ne.deb.devuan.org/merged/
#LOC:NF
http://nf.deb.devuan.org/merged/
#LOC:NG
http://ng.deb.devuan.org/merged/
#LOC:NI
http://ni.deb.devuan.org/merged/
#LOC:NL
http://nl.deb.devuan.org/merged/
http://sledjhamr.org/devuan/
http://mirror.vpgrp.io/devuan/
#LOC:NO
http://no.deb.devuan.org/merged/
#LOC:NP
http://np.deb.devuan.org/merged/
#LOC:NR
http://nr.deb.devuan.org/merged/
#LOC:NU
http://nu.deb.devuan.org/merged/
#LOC:NZ
http://nz.deb.devuan.org/merged/
#LOC:OM
http://om.deb.devuan.org/merged/
#LOC:PA
http://pa.deb.devuan.org/merged/
#LOC:PE
http://pe.deb.devuan.org/merged/
#LOC:PF
http://pf.deb.devuan.org/merged/
#LOC:PG
http://pg.deb.devuan.org/merged/
#LOC:PH
http://ph.deb.devuan.org/merged/
http://devuan.m10k.jp/
#LOC:PK
http://pk.deb.devuan.org/merged/
#LOC:PL
http://pl.deb.devuan.org/merged/
#LOC:PM
http://pm.deb.devuan.org/merged/
#LOC:PN
http://pn.deb.devuan.org/merged/
#LOC:PR
http://pr.deb.devuan.org/merged/
#LOC:PS
http://ps.deb.devuan.org/merged/
http://mirror.stinpriza.org/devuan/
#LOC:PT
http://pt.deb.devuan.org/merged/
#LOC:PW
http://pw.deb.devuan.org/merged/
#LOC:PY
http://py.deb.devuan.org/merged/
http://espejito.fder.edu.uy/devuan/
#LOC:QA
http://qa.deb.devuan.org/merged/
#LOC:RE
http://re.deb.devuan.org/merged/
#LOC:RO
http://ro.deb.devuan.org/merged/
http://devuan.ipacct.com/devuan/
http://mirror.stinpriza.org/devuan/
#LOC:RS
http://rs.deb.devuan.org/merged/
http://devuan.ipacct.com/devuan/
http://mirror.stinpriza.org/devuan/
#LOC:RU
http://ru.deb.devuan.org/merged/
#LOC:RW
http://rw.deb.devuan.org/merged/
#LOC:SA
http://sa.deb.devuan.org/merged/
#LOC:SB
http://sb.deb.devuan.org/merged/
#LOC:SC
http://sc.deb.devuan.org/merged/
#LOC:SD
http://sd.deb.devuan.org/merged/
#LOC:SE
http://se.deb.devuan.org/merged/
#LOC:SG
http://sg.deb.devuan.org/merged/
#LOC:SH
http://sh.deb.devuan.org/merged/
#LOC:SI
http://si.deb.devuan.org/merged/
http://mirror.stinpriza.org/devuan/
#LOC:SJ
http://sj.deb.devuan.org/merged/
#LOC:SK
http://sk.deb.devuan.org/merged/
#LOC:SL
http://sl.deb.devuan.org/merged/
#LOC:SM
http://sm.deb.devuan.org/merged/
#LOC:SN
http://sn.deb.devuan.org/merged/
#LOC:SO
http://so.deb.devuan.org/merged/
#LOC:SR
http://sr.deb.devuan.org/merged/
#LOC:SS
http://ss.deb.devuan.org/merged/
#LOC:ST
http://st.deb.devuan.org/merged/
#LOC:SV
http://sv.deb.devuan.org/merged/
#LOC:SX
http://sx.deb.devuan.org/merged/
#LOC:SY
http://sy.deb.devuan.org/merged/
#LOC:SZ
http://sz.deb.devuan.org/merged/
#LOC:TC
http://tc.deb.devuan.org/merged/
#LOC:TD
http://td.deb.devuan.org/merged/
#LOC:TF
http://tf.deb.devuan.org/merged/
#LOC:TG
http://tg.deb.devuan.org/merged/
#LOC:TH
http://th.deb.devuan.org/merged/
#LOC:TJ
http://tj.deb.devuan.org/merged/
#LOC:TK
http://tk.deb.devuan.org/merged/
#LOC:TL
http://tl.deb.devuan.org/merged/
#LOC:TM
http://tm.deb.devuan.org/merged/
#LOC:TN
http://tn.deb.devuan.org/merged/
#LOC:TO
http://to.deb.devuan.org/merged/
#LOC:TR
http://tr.deb.devuan.org/merged/
http://devuan.ipacct.com/devuan/
#LOC:TT
http://tt.deb.devuan.org/merged/
#LOC:TV
http://tv.deb.devuan.org/merged/
#LOC:TW
http://tw.deb.devuan.org/merged/
http://tw1.mirror.blendbyte.net/devuan/
#LOC:TZ
http://tz.deb.devuan.org/merged/
#LOC:UA
http://ua.deb.devuan.org/merged/
#LOC:UG
http://ug.deb.devuan.org/merged/
#LOC:UM
http://um.deb.devuan.org/merged/
#LOC:US
http://us.deb.devuan.org/merged/
#LOC:UY
http://uy.deb.devuan.org/merged/
http://espejito.fder.edu.uy/devuan/
#LOC:UZ
http://uz.deb.devuan.org/merged/
#LOC:VA
http://va.deb.devuan.org/merged/
#LOC:VC
http://vc.deb.devuan.org/merged/
#LOC:VE
http://ve.deb.devuan.org/merged/
#LOC:VG
http://vg.deb.devuan.org/merged/
#LOC:VI
http://vi.deb.devuan.org/merged/
#LOC:VN
http://vn.deb.devuan.org/merged/
#LOC:VU
http://vu.deb.devuan.org/merged/
#LOC:WF
http://wf.deb.devuan.org/merged/
#LOC:WS
http://ws.deb.devuan.org/merged/
#LOC:YE
http://ye.deb.devuan.org/merged/
#LOC:YT
http://yt.deb.devuan.org/merged/
#LOC:ZA
http://za.deb.devuan.org/merged/
#LOC:ZM
http://zm.deb.devuan.org/merged/
#LOC:ZW
http://zw.deb.devuan.org/merged/

5
debian/changelog

@ -0,0 +1,5 @@
python-apt-common-devuan (2.3.0+devuan1) unstable; urgency=medium
* Initial release.
-- Boian Bonev <bbonev@ipacct.com> Tue, 01 Feb 2022 19:52:33 +0000

26
debian/control

@ -0,0 +1,26 @@
Source: python-apt-common-devuan
Section: python
Origin: Devuan
Priority: optional
Maintainer: Boian Bonev <bbonev@ipacct.com>
Rules-Requires-Root: no
Standards-Version: 4.6.0
Build-Depends:
debhelper-compat (= 13),
distro-info-data,
libwww-perl,
python3-distutils-extra,
Vcs-Git: https://git.devuan.org/devuan/python-apt-common-devuan.git
Vcs-Browser: https://git.devuan.org/devuan/python-apt-common-devuan
Package: python-apt-common-devuan
Architecture: all
Depends:
${misc:Depends},
Enhances:
python-apt-common,
Multi-Arch: foreign
Description: Templates for aptitude
Definitions of Devuan releases and mirror list for synaptic. This package
contains database of Devuan mirrors and templates with definitions for
Devuan releases.

19
debian/copyright

@ -0,0 +1,19 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Files: *
Copyright: © 2022 Boian Bonev <bbonev@ipacct.com>
License: GPL-2+
Files: utils/expand_info.py
Copyright: © 2004-2009 Canonical Ltd.
© 2009 Julian Andres Klode <jak@debian.org>
License: GPL-2+
License: GPL-2+
APT is free software; you can redistribute them and/or modify them 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.
.
On Debian systems, a copy of the GNU General Public License can be
found in /usr/share/common-licenses/GPL-2.

9
debian/gbp.conf

@ -0,0 +1,9 @@
[DEFAULT]
prebuild = ./pre-build.sh
export-dir = ../build-python-apt-common-devuan
debian-branch = suites/unstable
sign-tags = True
multimaint-merge = True
upstream-tag = upstream/%(version)s
debian-tag = devuan/%(version)s
pristine-tar = False

2
debian/install

@ -0,0 +1,2 @@
/usr/share/python-apt/templates/Devuan.info
/usr/share/python-apt/templates/Devuan.mirrors

1
debian/lintian-overrides

@ -0,0 +1 @@
python-apt-common-devuan: new-package-should-not-package-python2-module

16
debian/rules

@ -0,0 +1,16 @@
#!/usr/bin/make -f
%:
dh $@
override_dh_autoreconf:
./utils/expand_info.py data/templates/Devuan.info.in /usr/share/distro-info/devuan.csv > Devuan.info
override_dh_clean:
dh_clean
rm -f Devuan.info
override_dh_install:
mkdir -p debian/python-apt-common-devuan/usr/share/python-apt/templates
cp Devuan.info debian/python-apt-common-devuan/usr/share/python-apt/templates/Devuan.info
cp data/templates/Devuan.mirrors debian/python-apt-common-devuan/usr/share/python-apt/templates/Devuan.mirrors

1
debian/source.lintian-overrides

@ -0,0 +1 @@
python-apt-common-devuan: python-foo-but-no-python3-foo

1
debian/source/format

@ -0,0 +1 @@
3.0 (native)

5
pre-build.sh

@ -0,0 +1,5 @@
#!/bin/sh
set -e
echo "updating Devuan mirror list"
utils/get_devuan_mirrors.pl > data/templates/Devuan.mirrors

11
utils/expand_info.py

@ -0,0 +1,11 @@
#!/usr/bin/python3
#
# usage: ./utils/expand_info.py build/data/templates/Debian.info \
# /usr/share/distro-info/debian.csv
import sys
import aptsources.distinfo
for line in aptsources.distinfo._expand_template(sys.argv[1], sys.argv[2]):
print(line)

310
utils/get_devuan_mirrors.pl

@ -0,0 +1,310 @@
#!/usr/bin/perl
use strict;
use Data::Dumper;
use POSIX;
use LWP;
# setup: as root: apt install libwww-perl
my $URL='https://pkgmaster.devuan.org/mirror_list.txt';
my $ua=LWP::UserAgent->new;
my $resp=$ua->get($URL) or die "Could't get the mirror list: [$URL]\n";
my $data=$resp->content();
die "Got an empty $URL...\n" if $data eq "";
my @data;
my %entry;
my $line_num;
for (split /\n/,$data) {
$line_num++;
if (/\S/) {
$entry{'LINE'}||="LINE $line_num";
$entry{$1}=$2 if /^([^:]+):\s+(.+)/ or die "Invalid syntax on line $line_num [$_]\n";
} else {
push @data,{%entry} if $entry{'LINE'};
%entry=();
next;
}
}
push @data,{%entry} if $entry{'LINE'};
my %iso3166cc=(
'AD'=>[],
'AE'=>[],
'AF'=>[],
'AG'=>[],
'AI'=>[],
'AL'=>[],
'AM'=>[],
'AO'=>[],
'AQ'=>[],
'AR'=>[],
'AS'=>[],
'AT'=>[],
'AU'=>[],
'AW'=>[],
'AX'=>[],
'AZ'=>[],
'BA'=>[],
'BB'=>[],
'BD'=>[],
'BE'=>[],
'BF'=>[],
'BG'=>[],
'BH'=>[],
'BI'=>[],
'BJ'=>[],
'BL'=>[],
'BM'=>[],
'BN'=>[],
'BO'=>[],
'BQ'=>[],
'BR'=>[],
'BS'=>[],
'BT'=>[],
'BV'=>[],
'BW'=>[],
'BY'=>[],
'BZ'=>[],
'CA'=>[],
'CC'=>[],
'CD'=>[],
'CF'=>[],
'CG'=>[],
'CH'=>[],
'CI'=>[],
'CK'=>[],
'CL'=>[],
'CM'=>[],
'CN'=>[],
'CO'=>[],
'CR'=>[],
'CU'=>[],
'CV'=>[],
'CW'=>[],
'CX'=>[],
'CY'=>[],
'CZ'=>[],
'DE'=>[],
'DJ'=>[],
'DK'=>[],
'DM'=>[],
'DO'=>[],
'DZ'=>[],
'EC'=>[],
'EE'=>[],
'EG'=>[],
'ER'=>[],
'ES'=>[],
'ET'=>[],
'FI'=>[],
'FJ'=>[],
'FK'=>[],
'FM'=>[],
'FO'=>[],
'FR'=>[],
'GA'=>[],
'GB'=>[],
'GD'=>[],
'GE'=>[],
'GF'=>[],
'GG'=>[],
'GH'=>[],
'GI'=>[],
'GL'=>[],
'GM'=>[],
'GN'=>[],
'GP'=>[],
'GQ'=>[],
'GR'=>[],
'GS'=>[],
'GT'=>[],
'GU'=>[],
'GW'=>[],
'GY'=>[],
'HK'=>[],
'HM'=>[],
'HN'=>[],
'HR'=>[],
'HT'=>[],
'HU'=>[],
'ID'=>[],
'IE'=>[],
'IL'=>[],
'IM'=>[],
'IN'=>[],
'IO'=>[],
'IQ'=>[],
'IR'=>[],
'IS'=>[],
'IT'=>[],
'JE'=>[],
'JM'=>[],
'JO'=>[],
'JP'=>[],
'KE'=>[],
'KG'=>[],
'KH'=>[],
'KI'=>[],
'KM'=>[],
'KN'=>[],
'KP'=>[],
'KR'=>[],
'KW'=>[],
'KY'=>[],
'KZ'=>[],
'LA'=>[],
'LB'=>[],
'LC'=>[],
'LI'=>[],
'LK'=>[],
'LR'=>[],
'LS'=>[],
'LT'=>[],
'LU'=>[],
'LV'=>[],
'LY'=>[],
'MA'=>[],
'MC'=>[],
'MD'=>[],
'ME'=>[],
'MF'=>[],
'MG'=>[],
'MH'=>[],
'MK'=>[],
'ML'=>[],
'MM'=>[],
'MN'=>[],
'MO'=>[],
'MP'=>[],
'MQ'=>[],
'MR'=>[],
'MS'=>[],
'MT'=>[],
'MU'=>[],
'MV'=>[],
'MW'=>[],
'MX'=>[],
'MY'=>[],
'MZ'=>[],
'NA'=>[],
'NC'=>[],
'NE'=>[],
'NF'=>[],
'NG'=>[],
'NI'=>[],
'NL'=>[],
'NO'=>[],
'NP'=>[],
'NR'=>[],
'NU'=>[],
'NZ'=>[],
'OM'=>[],
'PA'=>[],
'PE'=>[],
'PF'=>[],
'PG'=>[],
'PH'=>[],
'PK'=>[],
'PL'=>[],
'PM'=>[],
'PN'=>[],
'PR'=>[],
'PS'=>[],
'PT'=>[],
'PW'=>[],
'PY'=>[],
'QA'=>[],
'RE'=>[],
'RO'=>[],
'RS'=>[],
'RU'=>[],
'RW'=>[],
'SA'=>[],
'SB'=>[],
'SC'=>[],
'SD'=>[],
'SE'=>[],
'SG'=>[],
'SH'=>[],
'SI'=>[],
'SJ'=>[],
'SK'=>[],
'SL'=>[],
'SM'=>[],
'SN'=>[],
'SO'=>[],
'SR'=>[],
'SS'=>[],
'ST'=>[],
'SV'=>[],
'SX'=>[],
'SY'=>[],
'SZ'=>[],
'TC'=>[],
'TD'=>[],
'TF'=>[],
'TG'=>[],
'TH'=>[],
'TJ'=>[],
'TK'=>[],
'TL'=>[],
'TM'=>[],
'TN'=>[],
'TO'=>[],
'TR'=>[],
'TT'=>[],
'TV'=>[],
'TW'=>[],
'TZ'=>[],
'UA'=>[],
'UG'=>[],
'UM'=>[],
'US'=>[],
'UY'=>[],
'UZ'=>[],
'VA'=>[],
'VC'=>[],
'VE'=>[],
'VG'=>[],
'VI'=>[],
'VN'=>[],
'VU'=>[],
'WF'=>[],
'WS'=>[],
'YE'=>[],
'YT'=>[],
'ZA'=>[],
'ZM'=>[],
'ZW'=>[],
);
my %check_fields=(FQDN=>'LINE',Active =>'FQDN',BaseURL=>'FQDN','CountryCode'=>'FQDN');
my %check_values=(Active=>'yes','CountryCode'=>'[a-z][a-z](\s*\|\s*[a-z][a-z])*');
DATA:
for my $ent(@data) {
for(keys %check_fields) {
next if $ent->{$_};
next DATA;
}
for(keys %check_values) {
next if $ent->{$_}=~/^$check_values{$_}$/i;
next DATA;
}
next if $ent->{'FQDN'} eq 'pkgmaster.devuan.org';
push @{$iso3166cc{$_}},"http://$ent->{BaseURL}" for split /\s*\|\s*/,$ent->{'CountryCode'};
}
#while(my($cc,$a)=each %iso3166cc) {
for my $cc (sort keys %iso3166cc) {
my $a=$iso3166cc{$cc};
my $cl=lc($cc);
print "#LOC:$cc\nhttp://$cl.deb.devuan.org/merged/\n";
for my $u(values @$a) {
$u.='/' if $u!~/\/$/;
print "$u\n";
}
}
exit(0);
Loading…
Cancel
Save