|
|
|
@@ -9,26 +9,26 @@
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
|
|
export SRCPKG = eudev
|
|
|
|
export SRCPKG = eudev
|
|
|
|
export DEPENDS = glibc,initscripts,kmod,mkinitramfs,util-linux
|
|
|
|
export DEPENDS = dash,glibc,initscripts,kmod,mkinitramfs,util-linux
|
|
|
|
export ARCH = x86_64
|
|
|
|
export ARCH = x86_64
|
|
|
|
export URL = http://www.gentoo.org/proj/en/eudev/
|
|
|
|
export URL = http://www.gentoo.org/proj/en/eudev/
|
|
|
|
export REPO = core
|
|
|
|
REPO = core
|
|
|
|
BRIEF = Fork of udev
|
|
|
|
BRIEF = Fork of udev
|
|
|
|
DESC = eudev is a fork of system-udev with the goal of obtaining better \
|
|
|
|
DESC = eudev is a fork of system-udev with the goal of obtaining better \
|
|
|
|
compatibility with existing software
|
|
|
|
compatibility with existing software
|
|
|
|
SNAPVER = 2
|
|
|
|
SLVER = 4
|
|
|
|
|
|
|
|
|
|
|
|
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
|
|
|
|
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
|
|
|
|
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
|
|
|
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
|
|
|
SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//')
|
|
|
|
SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//')
|
|
|
|
PATCHDIR := $(PWD)/SRC/patches
|
|
|
|
PATCHDIR := $(PWD)/SRC/patches
|
|
|
|
export VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'| \
|
|
|
|
export VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'| \
|
|
|
|
sed 's/^-//')-$(SNAPVER)
|
|
|
|
sed 's/^-//')-$(SLVER)
|
|
|
|
|
|
|
|
|
|
|
|
DEV := $(PWD)/eudev-dev
|
|
|
|
DEV := $(PWD)/eudev-dev
|
|
|
|
DEVROOT := $(DEV)/ROOT
|
|
|
|
DEVROOT := $(DEV)/ROOT
|
|
|
|
|
|
|
|
|
|
|
|
include /usr/share/snap/Makefile.snaplinux
|
|
|
|
include /usr/share/sl/Makefile.snaplinux
|
|
|
|
|
|
|
|
|
|
|
|
$(SRCDIR): $(ARCHIVE)
|
|
|
|
$(SRCDIR): $(ARCHIVE)
|
|
|
|
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
|
|
|
|
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
|
|
|
|
@@ -80,16 +80,16 @@ $(ROOT): $(SRCDIR)/src/udev/udevd
|
|
|
|
|
|
|
|
|
|
|
|
@cd $(SRCDIR) && make install DESTDIR=$(ROOT) && \
|
|
|
|
@cd $(SRCDIR) && make install DESTDIR=$(ROOT) && \
|
|
|
|
install -v -d -m 755 $(ROOT)/etc/init.d && \
|
|
|
|
install -v -d -m 755 $(ROOT)/etc/init.d && \
|
|
|
|
install -v -m 755 $(PWD)/SNAP/udevd.init $(ROOT)/etc/init.d/udevd && \
|
|
|
|
install -v -m 755 $(PWD)/SL/udevd.init $(ROOT)/etc/init.d/udevd && \
|
|
|
|
mv -v $(ROOT)/etc/udev/udev.conf $(CONFIGDIR)/etc/udev && \
|
|
|
|
mv -v $(ROOT)/etc/udev/udev.conf $(CONFIGDIR)/etc/udev && \
|
|
|
|
install -v -d $(DEV)/SNAP $(DEVROOT) && \
|
|
|
|
install -v -d $(DEV)/SL $(DEVROOT) && \
|
|
|
|
for file in `find $(ROOT)|egrep 'pkgconfig\/|\.(a|h|la)$$'`; do \
|
|
|
|
for file in `find $(ROOT)|egrep 'pkgconfig\/|\.(a|h|la)$$'`; do \
|
|
|
|
path=`dirname $$file|sed "s[$(ROOT)[$(DEVROOT)["`; \
|
|
|
|
path=`dirname $$file|sed "s[$(ROOT)[$(DEVROOT)["`; \
|
|
|
|
mkdir -p $$path; \
|
|
|
|
mkdir -p $$path; \
|
|
|
|
mv $$file $$path; \
|
|
|
|
mv $$file $$path; \
|
|
|
|
done && \
|
|
|
|
done && \
|
|
|
|
find $(ROOT) -type d -empty -delete && \
|
|
|
|
find $(ROOT) -type d -empty -delete && \
|
|
|
|
cd $(DEV) && make -f ../Makefile.eudev-dev && mv *.snap ../
|
|
|
|
cd $(DEV) && make -f ../Makefile.eudev-dev && mv *.slp ../
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
test: $(ROOT)
|
|
|
|
test: $(ROOT)
|
|
|
|
@@ -100,7 +100,7 @@ clean:
|
|
|
|
@rm -rvf $(ROOT) \
|
|
|
|
@rm -rvf $(ROOT) \
|
|
|
|
$(DEV) \
|
|
|
|
$(DEV) \
|
|
|
|
$(CONFIG) \
|
|
|
|
$(CONFIG) \
|
|
|
|
$(SNAPINFO) \
|
|
|
|
$(SLINFO) \
|
|
|
|
$(MANIFEST) \
|
|
|
|
$(MANIFEST) \
|
|
|
|
$(FILES) \
|
|
|
|
$(FILES) \
|
|
|
|
$(SRCDIR)
|
|
|
|
$(SRCDIR)
|
|
|
|
|