summaryrefslogtreecommitdiff
path: root/recipes/update-alternatives/update-alternatives-dpkg-native_1.13.22.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/update-alternatives/update-alternatives-dpkg-native_1.13.22.bb')
-rw-r--r--recipes/update-alternatives/update-alternatives-dpkg-native_1.13.22.bb14
1 files changed, 14 insertions, 0 deletions
diff --git a/recipes/update-alternatives/update-alternatives-dpkg-native_1.13.22.bb b/recipes/update-alternatives/update-alternatives-dpkg-native_1.13.22.bb
new file mode 100644
index 0000000000..d0af4eac7b
--- /dev/null
+++ b/recipes/update-alternatives/update-alternatives-dpkg-native_1.13.22.bb
@@ -0,0 +1,14 @@
+require update-alternatives-dpkg.inc
+inherit native
+
+PROVIDES += "virtual/update-alternatives-native"
+DEPENDS = "perl-native"
+DEFAULT_PREFERENCE = "-1"
+
+do_stage () {
+ install -d ${sbindir} \
+ ${localstatedir}/dpkg/alternatives \
+ ${sysconfdir}/alternatives
+
+ install -m 0755 scripts/update-alternatives ${sbindir}/update-alternatives
+}