From ae27cbc255615b578207924d3b159e41aadee626 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 18 May 2013 14:21:53 -0400 Subject: g++: Provide g++ and c++ links if host == target. --- diff --git a/g++.pkg.in/postinst b/g++.pkg.in/postinst new file mode 100644 index 0000000..308d177 --- /dev/null +++ b/g++.pkg.in/postinst @@ -0,0 +1,8 @@ +#! /bin/sh + +if [ "x${1}" = 'xconfigure' ]; then + if [ "x$(cat /etc/proteanos_arch)" = 'x@PKG_TARGET_ARCH@' ]; then + ln -sf @PKG_TARGET_ARCH@-g++ /usr/bin/g++ + update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 20 + fi +fi diff --git a/g++.pkg.in/prerm b/g++.pkg.in/prerm new file mode 100644 index 0000000..09bd436 --- /dev/null +++ b/g++.pkg.in/prerm @@ -0,0 +1,8 @@ +#! /bin/sh + +if [ "${1}" = remove ]; then + if [ "x$(cat /etc/proteanos_arch)" = 'x@PKG_TARGET_ARCH@' ]; then + rm -f /usr/bin/g++ + update-alternatives --remove c++ /usr/bin/g++ + fi +fi -- cgit v0.9.1