init
This commit is contained in:
commit
ea4ad03399
19
.SRCINFO
Normal file
19
.SRCINFO
Normal file
|
@ -0,0 +1,19 @@
|
|||
pkgbase = smdev
|
||||
pkgdesc = Suckless mdev
|
||||
pkgver = 0.2.3
|
||||
pkgrel = 6
|
||||
url = http://git.2f30.org/smdev/
|
||||
install = smdev.install
|
||||
arch = i686
|
||||
arch = x86_64
|
||||
license = MIT/X
|
||||
options = strip
|
||||
source = http://git.suckless.org/smdev/snapshot/smdev-0.2.3.zip
|
||||
source = smdev.install
|
||||
source = config.h
|
||||
sha1sums = cefbfde0af6237ac27bb999f02b725a340d22c1d
|
||||
sha1sums = dff00e0f4fd06148b56eee1ab769b0fd976ed4eb
|
||||
sha1sums = d48c01140bf0c414fa81399963d47488670da7f0
|
||||
|
||||
pkgname = smdev
|
||||
|
32
PKGBUILD
Normal file
32
PKGBUILD
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Maintainer: Jack L. Frost <fbt@fleshless.org>
|
||||
# vim: ts=2 sw=2 et:
|
||||
|
||||
pkgname=smdev
|
||||
pkgver=0.2.3
|
||||
pkgrel=6
|
||||
pkgdesc='Suckless mdev'
|
||||
arch=( 'i686' 'x86_64' )
|
||||
url="http://git.2f30.org/smdev/"
|
||||
license=( 'MIT/X' )
|
||||
options=( 'strip' )
|
||||
install='smdev.install'
|
||||
source=(
|
||||
"http://git.suckless.org/smdev/snapshot/smdev-${pkgver}.zip"
|
||||
'smdev.install'
|
||||
'config.h'
|
||||
)
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
ln -s ../config.h
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
make PREFIX=/usr DESTDIR="$pkgdir/" install
|
||||
}
|
||||
|
||||
sha1sums=('cefbfde0af6237ac27bb999f02b725a340d22c1d'
|
||||
'dff00e0f4fd06148b56eee1ab769b0fd976ed4eb'
|
||||
'd48c01140bf0c414fa81399963d47488670da7f0')
|
54
config.h
Normal file
54
config.h
Normal file
|
@ -0,0 +1,54 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
struct rule {
|
||||
const char *devregex;
|
||||
const char *user;
|
||||
const char *group;
|
||||
int mode;
|
||||
const char *path;
|
||||
const char *cmd;
|
||||
} rules[] = {
|
||||
{ "null", "root", "root", 0666, NULL, NULL },
|
||||
{ "zero", "root", "root", 0666, NULL, NULL },
|
||||
{ "full", "root", "root", 0666, NULL, NULL },
|
||||
{ "random", "root", "root", 0666, NULL, NULL },
|
||||
{ "urandom", "root", "root", 0444, NULL, NULL },
|
||||
{ "hwrandom", "root", "root", 0660, NULL, NULL },
|
||||
{ "mem", "root", "root", 0640, NULL, NULL },
|
||||
{ "kmem", "root", "root", 0640, NULL, NULL },
|
||||
{ "port", "root", "root", 0640, NULL, NULL },
|
||||
{ "console", "root", "tty", 0600, NULL, NULL },
|
||||
{ "ptmx", "root", "tty", 0666, NULL, NULL },
|
||||
{ "tty", "root", "tty", 0666, NULL, NULL },
|
||||
{ "tty[0-9]", "root", "root", 0600, NULL, NULL },
|
||||
{ "tty[0-9][0-9]","root", "tty", 0660, NULL, NULL },
|
||||
{ "ttyS[0-9]*", "root", "tty", 0660, NULL, NULL, },
|
||||
{ "pty.*", "root", "tty", 0660, NULL, NULL },
|
||||
{ "vcs[0-9]*", "root", "tty", 0660, NULL, NULL },
|
||||
{ "vcsa*[0-9]*", "root", "tty", 0660, NULL, NULL },
|
||||
{ "sd[a-z].*", "root", "disk", 0660, NULL, NULL },
|
||||
{ "sr[0-9]*", "root", "cdrom", 0660, NULL, "@ln -sf $DEVNAME /dev/cdrom" },
|
||||
{ "ts[0-9]+", "root", "root", 0640, "=input/", NULL },
|
||||
{ "input/.*", "root", "root", 0640, "=input/", NULL },
|
||||
{ "dri/.*", "root", "video", 0660, "=dri/", NULL },
|
||||
{ "snd/.*", "root", "audio", 0660, "=snd/", NULL },
|
||||
{ "midi.*", "root", "audio", 0660, "=snd/", NULL },
|
||||
{ "seq", "root", "audio", 0660, "=snd/", NULL },
|
||||
{ "timer", "root", "audio", 0660, "=snd/", NULL },
|
||||
{ "rtc[0-9]*", "root", "root", 0664, NULL, NULL },
|
||||
{ "vbi[0-9]", "root", "video", 0660, NULL, NULL },
|
||||
{ "video[0-9]", "root", "video", 0660, NULL, NULL },
|
||||
{ "vboxuser", "root", "vboxuser", 0660, NULL, NULL },
|
||||
{ "fuse", "root", "root", 0666, NULL, NULL },
|
||||
{ ".*", "root", "root", 0660, NULL, NULL },
|
||||
};
|
||||
|
||||
/* Fill into this table if you want to rename the network interface
|
||||
* identified by `mac' to `name'. By default no such renaming takes
|
||||
* place.
|
||||
*/
|
||||
struct mac2name {
|
||||
unsigned char mac[6];
|
||||
const char *name;
|
||||
} mac2names[] = {
|
||||
{ .mac = { 0 }, .name = NULL }
|
||||
};
|
5
smdev.install
Normal file
5
smdev.install
Normal file
|
@ -0,0 +1,5 @@
|
|||
post_install() {
|
||||
id cdrom &>/dev/null || {
|
||||
groupadd cdrom
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user