From 2ce51d1e70aaf667be126b88a35b6210a45fb314 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Tue, 8 Jan 2008 09:24:57 +1100 Subject: [PATCH] Rename udev-helper to petitboot-udev-helper .. so that the installed binary looks more like a component of petitboot, not udev. Signed-off-by: Jeremy Kerr --- Makefile | 13 +++++++------ devices/{udev-helper.c => petitboot-udev-helper.c} | 0 utils/99-petitboot.rules | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) rename devices/{udev-helper.c => petitboot-udev-helper.c} (100%) diff --git a/Makefile b/Makefile index 2759a45..c54be94 100644 --- a/Makefile +++ b/Makefile @@ -6,13 +6,13 @@ INSTALL=install TWIN_CFLAGS?=$(shell pkg-config --cflags libtwin) TWIN_LDFLAGS?=$(shell pkg-config --libs libtwin) -LDFLAGS = +LDFLAGS = CFLAGS = --std=gnu99 -O0 -ggdb -Wall '-DPREFIX="$(PREFIX)"' PARSERS = native yaboot kboot ARTWORK = background.jpg cdrom.png hdd.png usbpen.png tux.png cursor.gz -all: petitboot udev-helper +all: petitboot petitboot-udev-helper petitboot: petitboot.o devices.o $(CC) $(LDFLAGS) -o $@ $^ @@ -20,8 +20,8 @@ petitboot: petitboot.o devices.o petitboot: LDFLAGS+=$(TWIN_LDFLAGS) petitboot: CFLAGS+=$(TWIN_CFLAGS) -udev-helper: devices/udev-helper.o devices/params.o devices/parser.o \ - devices/paths.o devices/yaboot-cfg.o \ +petitboot-udev-helper: devices/petitboot-udev-helper.o devices/params.o \ + devices/parser.o devices/paths.o devices/yaboot-cfg.o \ $(foreach p,$(PARSERS),devices/$(p)-parser.o) $(CC) $(LDFLAGS) -o $@ $^ @@ -34,7 +34,8 @@ devices/%: CFLAGS+=-I. install: all $(INSTALL) -D petitboot $(DESTDIR)$(PREFIX)/sbin/petitboot - $(INSTALL) -D udev-helper $(DESTDIR)$(PREFIX)/sbin/udev-helper + $(INSTALL) -D petitboot-udev-helper \ + $(DESTDIR)$(PREFIX)/sbin/petitboot-udev-helper $(INSTALL) -Dd $(DESTDIR)$(PREFIX)/share/petitboot/artwork/ $(INSTALL) -t $(DESTDIR)$(PREFIX)/share/petitboot/artwork/ \ $(foreach a,$(ARTWORK),artwork/$(a)) @@ -64,5 +65,5 @@ $(PACKAGE)-$(VERSION): clean clean: rm -rf $(PACKAGE)-$(VERSION) rm -f petitboot - rm -f udev-helper + rm -f petitboot-udev-helper rm -f *.o devices/*.o diff --git a/devices/udev-helper.c b/devices/petitboot-udev-helper.c similarity index 100% rename from devices/udev-helper.c rename to devices/petitboot-udev-helper.c diff --git a/utils/99-petitboot.rules b/utils/99-petitboot.rules index ea34a0a..e314db7 100644 --- a/utils/99-petitboot.rules +++ b/utils/99-petitboot.rules @@ -1,2 +1,2 @@ # tell petitboot when we see new block devices ... -SUBSYSTEM=="block",RUN+="/usr/sbin/udev-helper" +SUBSYSTEM=="block",RUN+="/usr/sbin/petitboot-udev-helper" -- 2.39.2