]> git.pld-linux.org Git - packages/binfmt-detector.git/commitdiff
- drop upstart support master auto/th/binfmt-detector-0.2-6
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 18 Aug 2015 14:18:56 +0000 (23:18 +0900)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 18 Aug 2015 14:18:56 +0000 (23:18 +0900)
- rel 6

binfmt-detector.init
binfmt-detector.spec
binfmt-detector.upstart [deleted file]

index 40661fb2c3dfc389a1683d56bb70d1ccadf49731..9eaffea284841b6cc3b2122d9d5848cb18b36008 100644 (file)
@@ -13,9 +13,6 @@
 # Source function library
 . /etc/rc.d/init.d/functions
 
-# disabled because: seems the mountpoint is namespaced, i.e not visible outside upstart process
-#upstart_controlled --except status
-
 BINFMT_DIR=/proc/sys/fs/binfmt_misc
 
 [ -d $BINFMT_DIR ] || exit 0
index 07ad2abd81a375cc50b0e730b4a3f9b0a0c833ec..7874e3841147b00f826ec7dee234387c3248b250 100644 (file)
@@ -2,13 +2,12 @@ Summary:      Microsoft PE executable type detector
 Summary(pl.UTF-8):     Detector typu plików wykonywalnych PE Microsoftu
 Name:          binfmt-detector
 Version:       0.2
-Release:       5
+Release:       6
 License:       GPL
 Group:         Base
 Source0:       http://team.pld-linux.org/~wolf/%{name}.tar.gz
 # Source0-md5: d6e9d6d8888b58c97eb65875853fd778
 Source1:       %{name}.init
-Source2:       binfmt-detector.upstart
 Patch0:                spelling.patch
 Patch1:                libdir.patch
 BuildRequires: rpmbuild(macros) >= 1.268
@@ -49,13 +48,12 @@ uruchamia natywnych obrazów i vice versa).
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},/etc/{rc.d/init.d,init}}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},/etc/rc.d/init.d}
 
 install -p binfmt-detector $RPM_BUILD_ROOT%{_libdir}
 install -p binfmt-detector.sh $RPM_BUILD_ROOT%{_bindir}/binfmt-detector
 sed -i -e 's,/usr/lib,%{_libdir},' $RPM_BUILD_ROOT%{_bindir}/binfmt-detector
 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/binfmt-detector
-cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/init/%{name}.conf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -74,6 +72,5 @@ fi
 %defattr(644,root,root,755)
 %doc README
 %attr(754,root,root) /etc/rc.d/init.d/%{name}
-%config(noreplace) %verify(not md5 mtime size) /etc/init/%{name}.conf
 %attr(755,root,root) %{_bindir}/%{name}
 %attr(755,root,root) %{_libdir}/%{name}
diff --git a/binfmt-detector.upstart b/binfmt-detector.upstart
deleted file mode 100644 (file)
index 3c1a9ac..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-description    "Microsoft PE executable type detector"
-
-start on virtual-filesystems
-
-task
-
-env BINFMT_DIR="/proc/sys/fs/binfmt_misc"
-
-script
-       if ! grep -q ${BINFMT_DIR} /proc/mounts; then
-               /bin/mount none -t binfmt_misc ${BINFMT_DIR} || :
-       fi
-
-       echo ':windows:M::MZ::/usr/bin/binfmt-detector:' > ${BINFMT_DIR}/register
-       echo ':windowsPE:M::PE::/usr/bin/binfmt-detector:' > ${BINFMT_DIR}/register
-end script
-
-post-stop script
-       [ -f ${BINFMT_DIR}/windows ] && echo '-1' > ${BINFMT_DIR}/windows
-       [ -f ${BINFMT_DIR}/windowsPE ] && echo '-1' > ${BINFMT_DIR}/windowsPE
-end script
This page took 0.089876 seconds and 4 git commands to generate.