-
Notifications
You must be signed in to change notification settings - Fork 9
/
debian-recompile-package
30 lines (21 loc) · 1.07 KB
/
debian-recompile-package
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#http://www.debian.org/doc/FAQ/ch-pkg_basics.en.html#s-sourcebuild
apt-get source foo
sudo aptitude install -R devscripts fakeroot # these are required debian compile helper packages
sudo apt-get build-dep foo # installs all required packages to compile the specified package
cd foo-*
dch -l yourname 'changelog goes her' # create a dedicated version of your own build (so that you won't get confused later when Debian itself releases a new version)
debuild -us -uc
sudo dpkg -i ../*.deb
# Next are different ways to create your own package.
# http://www.ducea.com/2008/03/06/howto-recompile-debian-packages/
apt-get source paket-adi
apt-get build-dep <package> # derleme bagimliliklarini alip geliyor
# degisikliklerini yaprsin.
# "debian/rules" dposyasinda derleme secenekleri var
cd <package-ver>
# burada istedigin degisiklikleri yap
# debug v.s. icin cevre degiskenleri ile oynamak yeterliymis => export DEB_BUILD_OPTIONS=nostrip,noopt
# debuild -us -uc # eskiden buymus sanirim
dpkg-buildpackage -rfakeroot -b -nc -us -uc # bu da yenisi olsa gere
cd ..
dpkg -i <package_file.deb>