Skip to content

Commit

Permalink
rename_device: Remove rename_device functionality
Browse files Browse the repository at this point in the history
Functionality of rename_device will be moved to a better suited place.
It will be also reworked using rust. New, reworked rename_device source
code will be placed inside systemd/udev.
  • Loading branch information
jamacku committed Jun 29, 2021
1 parent b748244 commit 035b4f7
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 369 deletions.
3 changes: 0 additions & 3 deletions initscripts.spec
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,6 @@ fi

%{_prefix}/lib/systemd/system/import-state.service
%{_prefix}/lib/systemd/system/loadmodules.service
%{_prefix}/lib/udev/rename_device

%{_udevrulesdir}/*

%{_mandir}/man1/*

Expand Down
11 changes: 1 addition & 10 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,17 @@ CC = gcc
CFLAGS += $(RPM_OPT_FLAGS) -Wall -D_GNU_SOURCE -fPIE
LDFLAGS += $(RPM_LD_FLAGS) -pie -z relro -z now

PROGS = consoletype genhostid rename_device usernetctl usleep
PROGS = consoletype genhostid usernetctl usleep

all: $(PROGS)

install: all
install -m 0755 -d $(DESTDIR)$(bindir)
install -m 0755 -d $(DESTDIR)$(sbindir)
install -m 0755 -d $(DESTDIR)$(libdir)/udev
install -m 0755 build/usleep $(DESTDIR)$(bindir)
install -m 0755 build/consoletype $(DESTDIR)$(sbindir)
install -m 0755 build/genhostid $(DESTDIR)$(sbindir)
install -m 0755 build/usernetctl $(DESTDIR)$(sbindir)
install -m 0755 build/rename_device $(DESTDIR)$(libdir)/udev

clean:
rm -f build/*
Expand All @@ -52,13 +50,6 @@ build/genhostid.o: genhostid.c
$(CC) $(CFLAGS) -c -o $@ $^


rename_device: build/rename_device.o
$(CC) $(LDFLAGS) -o build/$@ $^ `pkg-config glib-2.0 --libs`

build/rename_device.o: rename_device.c
$(CC) $(CFLAGS) -c -o $@ $^ `pkg-config glib-2.0 --cflags`


usernetctl: build/usernetctl.o
$(CC) $(LDFLAGS) -o build/$@ $^

Expand Down
Loading

0 comments on commit 035b4f7

Please sign in to comment.