Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ea767638d0 | ||
|
|
ef86e5391e | ||
|
|
8603d9ecdf |
18
Makefile
18
Makefile
@@ -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 = 1
|
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)
|
||||||
|
|||||||
@@ -9,7 +9,8 @@
|
|||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
DEPENDS = eudev
|
DEPENDS = eudev
|
||||||
|
REPO = dev
|
||||||
BRIEF = Development files for eudev
|
BRIEF = Development files for eudev
|
||||||
DESC = Development files for eudev
|
DESC = Development files for eudev
|
||||||
|
|
||||||
include /usr/share/snap/Makefile.snaplinux
|
include /usr/share/sl/Makefile.snaplinux
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
# Provides: udev $time
|
# Provides: udev $time
|
||||||
# Required-Start:
|
# Required-Start:
|
||||||
# Required-Stop:
|
# Required-Stop:
|
||||||
# Should-Start: modules mountvirtfs
|
# Should-Start: mountvirtfs
|
||||||
# Should-Stop:
|
# Should-Stop:
|
||||||
# Default-Start: S
|
# Default-Start: S
|
||||||
# Default-Stop:
|
# Default-Stop:
|
||||||
Reference in New Issue
Block a user