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

Re: Re: Automatisches Anpassen von debian/control



Hi,

mich würde das Ergebnis auch sehr interessieren, zumal ich noch keine Portierung vom SUN JAVA j2re 1.4 auf Woody finden konnte. Existiert soetwas schon irgendwo?

Ja, sowas existiert schon: http://www.nosid.de/z42/debian/

Wäre es möglich, eine Kopie der entstandenen Debian-Pakete zu bekommen?

Tut mir leid, aber du musst dir vermutlich das RPM selber ziehen. Ich kann dir allerdings mein Makefile geben. Zur Not habe ich noch ein Patchfile hinzugefügt.

Grüße,
Franz
------------------------
# Makefile fpr IBM Java 1.4.1 SDK deb package
# Keine Garantie!

SHELL = /bin/bash

BUILD_DIR=/tmp/ibmjava2-sdk

RPM_FILE = IBMJava2-SDK-1.4.1-1.0.i386.rpm
DEB_FILE = ibmjava2-sdk_1.4.1-2_i386.deb

.PHONY:	all	install	uninstall

all:	$(DEB_FILE)

$(DEB_FILE):	$(RPM_FILE)
	if ! test -d $(BUILD_DIR); then mkdir $(BUILD_DIR); fi
	alien --to-deb $<
	mv $@ $(BUILD_DIR)
	cd $(BUILD_DIR) && dpkg-deb --extract $@ .
	cd $(BUILD_DIR) && dpkg-deb --control $@
	cd $(BUILD_DIR)/DEBIAN && mv control control.old
	# Hier ist kein Umbruch!
cd $(BUILD_DIR)/DEBIAN && echo " Provides: java-compiler, java-virtual-machine" > control
	cd $(BUILD_DIR)/DEBIAN && cat control.old >> control
	cd $(BUILD_DIR)/DEBIAN && $(RM) control.old
	cd $(BUILD_DIR)/DEBIAN && $(RM) md5sums
	cd $(BUILD_DIR) && $(RM) $@
	dpkg-deb --build $(BUILD_DIR) $@
	PWD=$(shell pwd) && cp $(BUILD_DIR)/$@ $(PWD)
	$(RM) -r $(BUILD_DIR)

install:	$(DEB_FILE)
	dpkg -i $<

uninstall:
	apt-get remove ibmjava2-sdk

-----------------------------------
--- control     2004-02-23 15:29:47.000000000 +0100
+++ control     2004-02-23 15:22:21.000000000 +0100
@@ -1,6 +1,7 @@
 Package: ibmjava2-sdk
 Version: 1.4.1-2
 Section: alien
+Provides: java-compiler, java-virtual-machine
 Priority: extra
 Architecture: i386
 Depends: libc6 (>= 2.3.2.ds1-4), libgcc1 (>= 1:3.3.2-1)



Reply to: