summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElijah El Lazkani <ThyArmageddon+GentooOverlay@Gmail.com>2012-06-15 15:50:35 -0400
committerElijah El Lazkani <ThyArmageddon+GentooOverlay@Gmail.com>2012-06-15 15:50:35 -0400
commita51e5b870c5c2396a03c41f59fbc833a33b9a969 (patch)
treeb751f4babe776884424961a98f160d821ab60304 /sys-apps
parentChanged ewarn to elog as of Gentoo standards... (diff)
downloadArmageddon-a51e5b870c5c2396a03c41f59fbc833a33b9a969.tar.gz
Armageddon-a51e5b870c5c2396a03c41f59fbc833a33b9a969.tar.bz2
Armageddon-a51e5b870c5c2396a03c41f59fbc833a33b9a969.zip
Added ebuild for udevil-0.2.8 just released...
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/udevil/Manifest1
-rw-r--r--sys-apps/udevil/files/udevil-0.2.8-flags.patch49
-rw-r--r--sys-apps/udevil/udevil-0.2.8.ebuild50
3 files changed, 100 insertions, 0 deletions
diff --git a/sys-apps/udevil/Manifest b/sys-apps/udevil/Manifest
index 3ffa86d..8b57228 100644
--- a/sys-apps/udevil/Manifest
+++ b/sys-apps/udevil/Manifest
@@ -1 +1,2 @@
DIST udevil-0.2.7.tar.xz 278428 RMD160 0add9a60f4838a14105cb89804342b97b79bd716 SHA1 748943d70b471fb360e31e98cba716e221e81655 SHA256 bb0044b0cba4e89f5b61e2bb09ef0bac82a5e03bcd77b23545b30d8a1713cb59
+DIST udevil-0.2.8.tar.xz 278748 RMD160 9eb83f04b8aea2d21572520b5194cd4a52f1bf58 SHA1 ebefd08fb000756c9b56408396891f52b7d828e2 SHA256 3ffdd11283772f4a66c8ac928cf5e03072a1497ae70c9a131ec06d1dae9297cb
diff --git a/sys-apps/udevil/files/udevil-0.2.8-flags.patch b/sys-apps/udevil/files/udevil-0.2.8-flags.patch
new file mode 100644
index 0000000..50abdcd
--- /dev/null
+++ b/sys-apps/udevil/files/udevil-0.2.8-flags.patch
@@ -0,0 +1,49 @@
+From: Elijah El Lazkani <ThyArmageddon+Gentoo@Gmail.com>
+Date: Wed Jun 13 22:45:09 UTC 2012
+Subject: Removing explicit LDFLAGS and CPPFLAGS
+
+--- configure.ac
++++ configure.ac
+@@ -16,42 +16,6 @@
+ AC_DEFINE_UNQUOTED(UDEVIL_VERSION, "$VERSION", [udevil version])
+
+
+-dnl linker optimizations
+-AC_MSG_CHECKING([whether $LD accepts --as-needed])
+-case `$LD --as-needed -v 2>&1 </dev/null` in
+-*GNU* | *'with BFD'*)
+- LDFLAGS="$LDFLAGS -Wl,--as-needed"
+- AC_MSG_RESULT([yes])
+- ;;
+-*)
+- AC_MSG_RESULT([no])
+- ;;
+-esac
+-AC_MSG_CHECKING([whether $LD accepts -O1])
+-case `$LD -O1 -v 2>&1 </dev/null` in
+-*GNU* | *'with BFD'*)
+- LDFLAGS="$LDFLAGS -Wl,-O1"
+- AC_MSG_RESULT([yes])
+- ;;
+-*)
+- AC_MSG_RESULT([no])
+- ;;
+-esac
+-AC_MSG_CHECKING([whether $LD accepts -Bsymbolic-functions])
+-case `$LD -Bsymbolic-functions -v 2>&1 </dev/null` in
+-*GNU* | *'with BFD'*)
+- LDFLAGS="$LDFLAGS -Wl,-Bsymbolic-functions"
+- AC_MSG_RESULT([yes])
+- ;;
+-*)
+- AC_MSG_RESULT([no])
+- ;;
+-esac
+-
+-dnl advanced compiler tweaking
+-CPPFLAGS="$CPPFLAGS -fstrict-aliasing -fmessage-length=0"
+-
+-
+ # program paths
+ AC_ARG_WITH(mount-prog,
+ AC_HELP_STRING([--with-mount-prog=PATH], [Path to mount program (default: /bin/mount)]),
diff --git a/sys-apps/udevil/udevil-0.2.8.ebuild b/sys-apps/udevil/udevil-0.2.8.ebuild
new file mode 100644
index 0000000..dab068c
--- /dev/null
+++ b/sys-apps/udevil/udevil-0.2.8.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit eutils autotools
+
+DESCRIPTION="Linux program to mount and unmount removable devices without a password"
+HOMEPAGE="http://ignorantguru.github.com/udevil/"
+SRC_URI="https://github.com/IgnorantGuru/${PN}/raw/master/packages/${PV}/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ >=app-shells/bash-4.0
+ dev-util/intltool
+ virtual/acl
+ virtual/pkgconfig
+ sys-devel/gettext
+ >=sys-fs/udev-143
+ sys-libs/glibc"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-flags.patch"
+ eautoreconf
+}
+
+src_configure() {
+ econf --with-setfacl-prog=/bin/setfacl
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ doman man/udevil.1
+ dodoc AUTHORS ChangeLog README
+ fowners root:wheel /usr/bin/udevil
+ fperms 4754 /usr/bin/udevil
+}
+
+pkg_postinst() {
+ echo
+ elog "You need to add yourself to the wheel group"
+ elog "to be able to use ${PN} as a user"
+ echo
+}