[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

manage local modifications to debian source packages



Hello list,

I have 2 webservers running debian sarge that I keep uptodate with cron-apt (for update & download) and manual apt-get install once a day.
I now have packages that I must rebuild with minimal changes.

One example:
I want mod_define in apache 1.3 so I did
- apt-get source ...
- patch debian/rules:

@@ -65,7 +65,7 @@

 # Build *FLAGS

-EXTRA_CONFARGS =
+EXTRA_CONFARGS = --activate-module=src/modules/extra/mod_define.c

 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
        CONFLAGS = -O0
@@ -115,6 +115,7 @@
cp $(SOURCE_DIR)/pkg.eapi/*.h $(SOURCE_DIR)/apache_$(APACHE_MAJOR)/src/include/ cp $(SOURCE_DIR)/pkg.eapi/*.c $(SOURCE_DIR)/apache_$(APACHE_MAJOR)/src/ap/ cp $(SOURCE_DIR)/apache-contrib-$(CONTRIB_MAJOR)/mod_macro/mod_macro.c $(SOURCE_DIR)/apache_$(APACHE_MAJOR)/src/modules/extra + cp $(SOURCE_DIR)/apache-contrib-$(CONTRIB_MAJOR)/mod_define/mod_define.c $(SOURCE_DIR)/apache_$(APACHE_MAJOR)/src/modules/extra
        mv $(SOURCE_DIR) $(SOURCE_DIR)-apache
        @echo -e "\n\n*** creating -ssl and -perl trees ***\n"
        mv $(SOURCE_DIR)-apache/apache-contrib-* .

(I think I could pass EXTRA_CONFARGS, but I still need the cp)

- dpkg-buildpackage
- dpkg -i ..
- echo "apache hold" | dpkg --set-selections

I am looking for a way to do the notification, download, patch & build with cron-apt or something like cron-apt. Is there a solution to

- check for new sources of packages
- download
- patch
- build
- notify about the new version and if the automatic patch/build failed or succeeded

Is there a package/script that does something like this?

Thanks,
Henrik

--
Henrik Heil, zweipol Coy & Heil GbR
http://www.zweipol.net/



Reply to: