-
Notifications
You must be signed in to change notification settings - Fork 0
/
smdev-0.2.2.ebuild
45 lines (36 loc) · 1.01 KB
/
smdev-0.2.2.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="5"
inherit eutils toolchain-funcs savedconfig
DESCRIPTION="suckless mdev"
HOMEPAGE="http://git.suckless.org/smdev/"
SRC_URI="http://git.suckless.org/${PN}/snapshot/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~x86 ~amd64"
src_prepare() {
restore_config config.h
epatch_user
}
src_compile() {
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
}
src_install() {
emake DESTDIR="${D}" PREFIX="${EPREFIX}" install
newinitd "${FILESDIR}/init-${PV}" smdev
save_config config.h
}
pkg_postinst() {
elog
elog "To switch from udev you should do the following:"
elog "Disable udev USE flag"
elog "Use keyboard and mouse instead of evdev in INPUT_DEVICES"
elog "Rebuild world"
elog "Update X.Org configs to use kbd and mouse instead of evdev"
elog "rc-update del udev sysinit"
elog "rc-update del udev-mount sysinit"
elog "rc-update del udev-postmount boot"
elog "rc-update add smdev sysinit"
elog
}