If you have to maintain debian systems and want debianized packages that are custom, it is really simple to customize the source package and a bit more work to build your own from scratch.&nbsp; <br><br>This can be done with any debian package and you can find out a lot more about it within the debian community and their documentation.&nbsp; Essentially, all you need to know is that you can use &#39;apt-get source&#39; to return the debian source package and build with dpkg-build.<br>
<br>Generally you should build everything as normal users and use fakeroot.&nbsp; If you want to build a completely custom debian package from any source tar.gz (such as nginx&#39;s), you can use a program called &#39;dh_make&#39;.<br>
<br>Google should be able to direct you to plenty of relevent documentation and tutorials.&nbsp; If you need further help, try a debian community resource (and brace yourself).<br><br><div class="gmail_quote">On Mon, Feb 2, 2009 at 6:10 PM, James Robertson <span dir="ltr">&lt;<a href="mailto:j@mesrobertson.com">j@mesrobertson.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I am running Debian Lenny but want to use the latest stable version of nginx<br>
but have it &quot;debianized&quot; so all the startup scripts, logrotate, conf files<br>
etc are in the locations that installing from a debian package would provide.<br>
<br>
I have come up with the following and was wondering if anyone can see any<br>
problems with it.<br>
<br>
aptitude install build-essential libpcre3 libpcre3-dev libpcrecpp0 libssl-dev<br>
zlib1g-dev<br>
aptitude install nginx # Installs version 6.32<br>
cd /usr/src/<br>
wget <a href="http://sysoev.ru/nginx/nginx-0.6.35.tar.gz" target="_blank">http://sysoev.ru/nginx/nginx-0.6.35.tar.gz</a><br>
tar zxvf nginx-0.6.35.tar.gz<br>
cd nginx-0.6.35<br>
# The following uses the same config that the debian package uses.<br>
./configure --sbin-path=/usr/sbin/nginx \<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--with-http_ssl_module \<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--prefix=/etc/nginx \<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--conf-path=/etc/nginx/nginx.conf \<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--user=www-data \<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--group=www-data \<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--error-log-path=/var/log/nginx/error.log \<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--http-log-path=/var/log/nginx/access.log \<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--pid-path=/var/run/nginx.pid \<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--http-client-body-temp-path=/var/lib/nginx/body \<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--http-proxy-temp-path=/var/lib/nginx/proxy \<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--http-fastcgi-temp-path=/var/lib/nginx/fastcgi<br>
make<br>
mv /usr/sbin/nginx /usr/sbin/nginx.debian<br>
mv objs/nginx /usr/sbin/<br>
/etc/init.d/nginx restart<br>
aptitude hold nginx<br>
<br>
Basically it just replaces the nginx binary with the updated version and uses<br>
the default debian configuration to operate from. &nbsp;It seems to run OK.<br>
<br>
When updated versions are released I just run the ./configure and make and<br>
replace the nginx binary.<br>
<br>
Thanks,<br>
<font color="#888888"><br>
James<br>
<br>
</font></blockquote></div><br>