My first (real) debian repo

Up to now, whenever I've needed a backport or debian recompile, I've done it locally. But finally last night, instead of studying for this morning's exam, I decided to do it properly.

The tool for producing a debian archive tree is reprepro. There are a few howtos out there for it, but none of them quite covered everything I needed. So this is mine. But we'll get to that later, first we need to have some packages to put up.

For building packages, I decided to do it properly and use pbuilder. Just install it:

# aptitude install pbuilder cdebootstrap devscripts

Make the following changes to /etc/pbuilderrc:

MIRRORSITE=http://ftp.uk.debian.org/debian
DEBEMAIL="Your Name <you@example.com>"

The first, to point to your local mirror, and the second to credit you in the packages.

Then, as root:

# pbuilder create --distribution etch --debootstrapopts --variant=buildd

Now, we can build a package, lets build the hello package:

$ mkdir /tmp/packaging; cd /tmp/packaging
$ gpg --recv-key 3EF23CD6
$ dget -x http://ftp.uk.debian.org/debian/pool/main/h/hello/hello_2.2-2.dsc
dpkg-source: extracting hello in hello-2.2
dpkg-source: unpacking hello_2.2.orig.tar.gz
dpkg-source: applying ./hello_2.2-2.diff.gz
$ cd hello-2.2/
$ debchange -n

dget and debchange are neat little utilities from devscripts. You can configure them to know your name, e-mail address, etc. If you work with debian packages a lot, you'll get to know them well. Future versions of debchange support --bpo for backports, but we use -n which means new package. You should edit the version number in the top line to be a backport version, i.e.:

hello (2.2-2~bpo-sr.1) etch-backports; urgency=low

  * Rebuild for etch-backports.

 -- Your Name <you@example.com>  Wed,  2 Apr 2008 22:24:30 +0100

Now, let's build it. We are only doing a backport, but if you were making any changes, you'd do them before the next stage, and list them in the changelog you just edited:

$ cd ..
$ dpkg-source -sa -b hello-2.2-2~bpo/
$ sudo pbuilder build hello_2.2-2~bpo-sr.1.dsc

Assuming no errors, the built package will be sitting in /var/cache/pbuilder/result/.

Now, for the repository:

$ mkdir ~/public_html/backports
$ cd ~/public_html/backports
$ mkdir conf
$ cat > conf/distributions << EOF
Origin: Your Name
Label: Your Name's Backports
Suite: stable-backports
Codename: etch-backports
Version: 4.0
Architectures: i386 all source
Components: main
Description: Your Name's repository of etch backports.
SignWith: ABCDABCD
NotAutomatic: yes
EOF

This file defines your repository. The codename will be the distribution you list in your sources.list. The version should match it. The architectures are the architectures you are going to carry - "all" refers to non-architecture-specific packages, and source to source packages. I added amd64 to mine. SignWith is the ID of the GPG key you are going to use with this repo. I created a new DSA key for the job. NotAutomatic is a good setting for a backports repo, it means that packages won't be installed from here unless explicitly requested (via package=version or -d etch-backports).

Let's start by importing our source package:

$ cd /tmp/packaging
$ debsign -kABCDABCD hello_2.2-2~bpo-sr.1.dsc
$ cd ~/public_html/backports
$ reprepro -P optional -S devel --ask-passphrase -Vb . includedsc etch-backports /tmp/packaging/hello_2.2-2~bpo-sr.1.dsc

(There is currently a known bug in reprepro's command-line handling. -S and -P are swapped.)

Now, let's import our binary package:

$ reprepro --ask-passphrase -Vb . includedeb etch-backports /var/cache/pbuilder/result/hello_2.2-2~bpo-sr.1_i386.deb

Reprepro can be automated with it's processincoming command, but that's beyond the scope of this howto.

Test your new repository, add it to your /etc/apt/sources.list

deb http://example.com/~you/backports etch-backports main
# aptitude update
# aptitude install hello=2.2-2~bpo-sr.1

Enjoy. My backports repository can be found here.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Pingback

[...] you should know before buying an Asus EEE PC Flip Video Ultra on Linux Evaluating Fibre to the Home My first (real) Debian repo Download Video from the Command [...]

This month, ten peoplewere

This month, ten peoplewere killed by a teenage gunman during a school shooing spree, the deadliest since the one at Columbine High School in l999. 7dnews.org

Let's face it, all business's

Let's face it, all business's have their up's and downs. It could be financial, it could be new employees or the old employees are not cutting it anymore. And it could be that your clientele is not the way that it use to be. minoritybusinesssolutions

Business theories seem to be

Business theories seem to be in a realm all their own, but what they actually are is another matter altogether. The idea behind a business theory is a situation or result that has been proven true time and time again in various business settings. businesstheory

I am sure this article has

I am sure this article has touched all the internet viewers, its really really fastidious article on building up new web site.

Please check nice article http://yamahar15.soup.io/post/460727064/Cipto-Junaedy Cipto Junaedy , also don't forget check vital post http://arisnbw.blogspot.com/2013/10/ciptojunaedy.html Cipto Junaedy , also don't forget check vital post http://elvio.net.br/index.php/jomsocial/groups/viewgroup/9-seminar-cipto... Cipto Junaedy also cool post http://sangjuara.url.ph/cipto-junaedy-2014/ Cipto Junaedy also post http://www.arentin.info/seminar-membeli-rumah-tanpa-utang-ala-cipto-juna... Cipto Junaedy also cool article http://beardedgeckoballs.com/index.php/jomsocial/events/viewevent/3-semi... Cipto Junaedy that interesting also vital article http://s2cm.postingku.org/cipto-junaedy-2014-2.php Cipto Junaedy . Enjoy it!

There are various key points

There are various key points to not forget when making the best selection for ones Branson web development company. These apply at all businesses who definitely are currently trying to find a web development company for the new challenge. web design

Home Based Businesses and

Home Based Businesses and Network Marketing are two of the hottest trends in the market place today. In order to achieve success in both, a person must have desire, belief and know you deserve to be successful. capital business net work

When it comes to finding the

When it comes to finding the right infertility counselor it can be tough but as soon as you find the correct person you will feel very energized and excited of all the new things you have learned. counseling education

I don't understand this, and

I don't understand this, and I wouldn't be so arrogant as to even try - not unless I choose to participate in that kindfd of journalism, which I have no intention of doing. Quite simply, it's not my calling. ormiston education

I created a new DSA key for

I created a new DSA key for the job. NotAutomatic is a good setting for a backports repo, it means that packages won't be installed from here unless explicitly requested (via package=version or -d etch-backports). mail order marijuana

Hi there, simply become alert

Hi there, simply become alert to your blog thru Google,
and found that it's really informative. I'm gonna be careful for brussels.

I'll be grateful in the event you proceed this in future.
Many other people can be benefited out of your
writing

Implementing microstructural

Implementing microstructural characterization, Secat diagnosed inclusions during the sheet together with suggested likely sources, which had been traced that will contamination during the lubrication. A number of corrective decisions were endorsed, which enclosed improved filtering within the lubricant oils through recycling progression and seasons quality deal with checks for oil impurities. Metallurgical Testing

Obat Herbal Diabetes

Sakit Diabetes dapat sembuh Dengan obat herbal diabetes amazon Plus
Tahukah anda apa yang definisi dari Diabetes Melitus. Kencing Manis merupakan salah satu jenis penyakit atau gangguan pada kesehatan seseorang yang dengan semakin bertambahnya kadar gula di dalam pembuluh darah. karna semakin berkurangnya hormon insulin atau berkurangnya berfungsinya hormon insulin dalam penyerapan gula secara semaksimal karena oleh itu jenis penyakit seperti ini dapat juga didefinisikan sebagai jenis penyakit gula darah. penyakit diabetes digolongkan menjadi tiga jenis, yaitu :
1 penyakit Diabetes Melitus golongan satu 2 Diabetes Melitus golongan kedua ketiga diabetes jenis gestational. Pada jaman sekarang banyak sekali dijumpai orang-orang yang terserang penyakit kencing manis. keseringannya pasien diabetes melitus berusaha jalan pintas dengan mengkonsumsi beberapa jenis obat-obatan tidak memikirkan efek samping yang akan dialami di kemudian hari. Meskipun telah mengkonsumsi obat-obatan namun jika anda tidak mengatur pola makan, maka niat yang anda lakukan akan menjadikan sia-sia. tingkat gula di dalam tubuh pasti akan kian tinggi karna oleh pola makan keseharian.
Obat Diabates Terbaik Menyehatkan Anda
Ada beberapa cara agar bisa mencapai kesembuhan yakni salah satunya menggunakan cara minum obat herbal. Dengan terapi herbal tentunya aman jika dikonsumsi dan tidak ada efek samping. Obat Herbal Penyakit Diabetes sekarang memberikan solusi paling baik untuk menyembuhkan penyakit diabetes. Solusi yang disarankan yaitu dengan Obat Doabates Terbaik atau banyak dikenal sebutan amazon Plus yang mana jelas nyata terpercaya khasiatnya didalam mengobati penyakit diabetes.
Adapun kesaksian dari pasien penyakit kencing manis
Beliau adalah Sadiyah usia lima puluh dari Kota Depok. Ibu Sadiyah mau memberikan pengalaman pribadi untuk amazon USB News. “Ibu Sadiyah salah satu pasien Sakit Diabetes sudah beberapa tahun. Namun Seusai minum Jus Kulit Manggis rasa sakit yang beliau alami sekarang telah disembuhkan. Guna meyakinkan kesembuhan itu saya mencoba tes di laboratorium. Hasilnya mencengangkan, penyakit beliau sembuh,” tuturnya.
Hanya dengan 6 botol Obat Herbal amazon yang dihabiskan oleh saya, dikonsumsi 30 ml 2 kali sehari sehabis makan. Tidak hanya diabetesnya saja yang disembuhkan tapi Ibu Sadiyah juga merasa kondisi badan lebih sehat, kulitnya menjadi kencang dan beberapa teman yang menyatakan bahwa beliau menjadi cantik. Sakit Diabetes bukanlah masalah untuk setiap yang tahu caranya untuk mencegahnya, khususnya menggunakan Obat Tradisional amazon Plus. Tetapi akan suatu masalah bagi mereka yang belum tahu cara mencegahnya. Untuk itu mulailah gaya hidup sehat dengan Obat Herbal Diabetes amazon Plus.

Trading within the forex

Trading within the forex market is not always going to be difficult. In fact, most traders have found great success and profit through the latest forex market news today. Do not leave any trading stone unturned. orkneynewstoday.org

In today's connected world,

In today's connected world, people interact via a whole range of devices and media. PCs, laptops, tablets, smart phones and mobile phones are the conduits through which messages can be exchanged and apart from these, emerging technologies in gaming consoles, wearable devices. micronewsagency.org

Fantastic blog post. The post

Fantastic blog post. The post affects a lot of urgent challenges of our society. We can not be uninvolved to these challenges. This post gives good ideas and concepts. Very informative and practical. leptin diet

In the world of business,

In the world of business, artists often feel lost. You can turn this around by learning the fundamentals of business. Learn to market yourself and your art. Create a living with your artwork and live the life you are dreaming of! businessinarts.org

Thanks for sharing.... Nice

Thanks for sharing.... Nice posting... https://www.rebelmouse.com/

In an old battle that is

In an old battle that is heating up the United States of America and China seem to be slowly competing more for small-business online and throughout their countries. This is due to China expanding and the United States being hit hard by the recent down-turn in the economy. unitedsmallbusiness.org

Thanks for this!

There is so much information out there on how to package for Debian and Ubuntu, but not much at all about how to package for yourself. I guess they don’t realize that people want to make packages they don’t feel applicable for public use. Thanks so much for this article.

wow qui est vraiment bon. je

wow qui est vraiment bon. je n'ai jamais pensé à ce sujet. Les vidéos de YouTube sont toujours url statique que je pensais. mais il est préférable de les avoir pas. merci de partager cet article incroyable. garder sur le détachement. vraiment aimé en savoir plus sur ce - replique montres

So I can configure this one

So I can configure this one to know my name and e-mail address.

buy real youtube view
buy youtube package

Reply

I had heard a lot about reprepro. and searched all over the internet to find an article on it. I accidentally came across this article and I found it to be helpful. Thanks a lot for this wonderful article. The steps have helped me though.
windows 8 transformation pack for vista

This is so beautiful and

This is so beautiful and creative. I just love the colors and whoever gets it in the mail will be smiling.
cheap maternity clothes online

I want to bookmark the page

I want to bookmark the page so I can return here from you that you have done a fantastic job (step by step guide for writers)

First You got a great blog .I

First You got a great blog .I will be interested in more similar topics. i see you got really very useful topics , i will be always checking your blog thanks.
the price of gold

I love the blog. Great post.

I love the blog. Great post. It is very true, people must learn how to learn before they can learn. lol i know it sounds funny but its very true. . . High Pr backlinks

Easily, the article is

Easily, the article is actually the best topic on this registry related issue. I fit in with your conclusions and will eagerly look forward to your next updates. Just saying thanks will not just be sufficient, for the fantasti c lucidity in your writing. I will instantly grab your rss feed to stay informed of any updates.
fibroids miracle pdf reviews

Really solid, awesome,

Really solid, awesome, fact-filled information here. Your posts NEVER ever disappoint, and that certainly holds true here as well. You always make for an interesting read. Can you tell I'm impressed? :) Keep up the fantastic articles.
non lethal self defense weapons

Really solid, awesome,

Really solid, awesome, fact-filled information here. Your posts NEVER ever disappoint, and that certainly holds true here as well. You always make for an interesting read. Can you tell I'm impressed? :) Keep up the fantastic articles. why Dave Morin is creating path

Great, This specific net

Great, This specific net webpage is seriously thrilling and enjoyment to learn. I’m an enormous fan from the subjects mentioned.
Amazon Seller Account Login

Great post! I am actually

Great post! I am actually getting ready to across this information, is very helpful my friend. Also great blog here with all of the valuable information you have. Keep up the good work you are doing here.
textyourexbackmichaelfiore.com

Thanks very much for this

Thanks very much for this great article;this is the stuff that keeps me going through out these day.
Affiliate Marketing

Up to now, whenever I've

Up to now, whenever I've needed a backport or debian recompile, I've done it locally. But finally last night, instead of studying for this morning's exam, I decided to do it properly. comeprogettareunbagno.it

Thanks for ones marvelous

Thanks for ones marvelous posting! I genuinely enjoyed reading it,you are a great author. I will be sure to bookmark your blog and may come back very soon.Door Casings

Sensational work this is!

Sensational work this is! Truly, one of the most magnificent piece of master class articles I've ever seen. I am really amazed by this sensational post. Wow! Just keep working on this topic and dig up more gold information like this. kontorimööbel

This topic is something that

This topic is something that I have been looking into for a while now and your insight is exceptional. Thanks for sharing this information.Elektronik Sigara

Di Shopious kamu bisa

Di Shopious kamu bisa menemukan barang-barang terbaik dan terbaru dari seluruh toko online terpercaya yang ada di Indonesia. Kamu cari Baju Tas Sepatu Kamu bisa temukan semuanya disini. Belanja online jadi lebih nyaman di Shopious. the venus factor

This is good post and it

This is good post and it works perfect on the light space through the steps. This is great example for the usage. Learn More Here Next Page

Thanks for sharing.... Nice

Thanks for sharing.... Nice posting...

| sewa homestay di jogja | tiket pesawat promo

If you increase your channel

If you increase your channel views, your YouTube ranking rises. Their customers are you people, if you become a registered member in this online service buy instagram likes for cheap . They may typically choose photos with the highest number of followers to put on this page.

Estimable tale I’m fulfilled

Estimable tale I’m fulfilled that you simply purely common this specific conducive information among us. Match hold back people approximately time homogeneous this specific. Acknowledge an individual.

best web hosting reviews services
Moroccan oil for hair
vitamin c serum reviews
phoenix seo firm upprcut.com
san francisco seo firm upprcut.com

I am a newbie and your

I am a newbie and your success is very much an inspiration for me. extended home warranty

Thanks for making such a cool

Thanks for making such a cool post which is really very well written.will be referring a lot of friends about this.Keep blogging. alliance home warranty

Your website is very chatty.

Your website is very chatty. It will be useful for all of us. You have done a good work. I will come here again to inspect new updates. Thanks for posting. swa cable

We are introducing technology

We are introducing technology communication tools commonly used in business offices – in the classroom. And the results are amazing and inspiring for everyone involved! corporate video

​ses sistemi Mmm.. good to be

​ses sistemi Mmm.. good to be here in your article or post, whatever, I think I should also work hard for my own website like I see some good and updated working in your site.

The Blog is very fantastic

The Blog is very fantastic really its imazing.Good concept of traslation for different language.Nice subscriber categories.

Eddison.

The Blog is very fantastic

The Blog is very fantastic really its imazing.Good concept of traslation for different language.Nice subscriber categories.

Eddison.

The Blog is very fantastic

The Blog is very fantastic really its imazing.Good concept of traslation for different language.Nice subscriber categories.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.