免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 990 | 回复: 0
打印 上一主题 下一主题

another methor to build ubuntu driver package [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-14 11:30 |只看该作者 |倒序浏览

                1.
Make sure the following packages are already installed in your
system: build-essential, devscripts, ubuntu-dev-tools, debhelper,
dh-make, quilt, gnupg, gnupg-agent, fakeroot, lintian, pbuilder.
#apt-get install -y build-essential devscripts ubuntu-dev-tools debhelper dh-make quilt  gnupg gnupg-agent fakeroot lintian pbuilder
2.
Make sure that all the linux-image and linux-headers are
installed for which you want to create Ubuntu packages.
3.
Generate a key using GNUPG
#gpg --gen-key
Select "DSA and Elgamal" when prompted for the kind of key
Keep the default keysize as 2048.
Keep the default key validity period(0 means never expire)
Enter your name, email-id and passphrase when prompted. These same data
will be used to digitally sign the packages you build.
Note down the key generated.
4.
Create or edit .bashrc file in your home directory, and add the
following line at the end.
#export GPGKEY=
Logout and login once again for the settings to take effect.
5.
Start the gnupg agent
#gpg-agent -daemon
6.Rename the source package as
tar czfv Test.tar.gz Test/
.orig.tar.gz (Note the underscore between
packagename and packageversion)
#cp .tar.gz
.orig.tar.gz
7.
Untar the source package
#tar -xvzf .orig.tar.gz
8.
Change to the source package directory
#cd
9.
#dh_make -e  (The email-id entered here should be same
as that entered in step 2 above.)
Select single binary when prompted for "type of package"
Accept all other defaults and press return.
This will create a new directory called "debian" under the source
package directory
10.
Edit the files debian/changelog and debian/conrol as per your
needs.
11.
Enter the following command from the root of source package
directory.
#debuild
This command if successfull will create .deb, .dsc, and .diff.gz files
outside source directory.
12.
Install the debian packages by issuing the following command.
#dpkg -i .deb

For additional reference, please refer the following link:
https://wiki.ubuntu.com/PackagingGuide/Complete
henry su's gpg key
-------------------------------------------
pub   1024D/9569EA7D 2009-05-14
      Key fingerprint = 46F8 2327 E20D 2449 D08F  B7BF AE52 AC28 9569 EA7D
uid                  henry su (henry su)
sub   2048g/BB7C4E72 2009-05-14
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/52215/showart_1928206.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP