Moved to slp format

This commit is contained in:
2020-08-23 20:58:45 -05:00
parent ef86e5391e
commit ea767638d0
5 changed files with 11 additions and 10 deletions

View File

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

View File

@@ -9,7 +9,8 @@
# GNU General Public License for more details.
DEPENDS = eudev
REPO = dev
BRIEF = Development files for eudev
DESC = Development files for eudev
include /usr/share/snap/Makefile.snaplinux
include /usr/share/sl/Makefile.snaplinux