summaryrefslogtreecommitdiffstats
path: root/linhes/linhes-system/PKGBUILD
blob: f33694753bc9772e3aa7d2465fb20ae57e97077d (plain)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
pkgname=linhes-system
pkgver=9.0.0
pkgrel=28
arch=('x86_64')
#install=$pkgname.install
pkgdesc="Everything that makes LinHES a system"
license=('GPL2')
depends=('cronie' 'dbus-python' 'kdialog' 'libnotify' 'linhes-templates' 'linhes-theme' 'pacman-contrib'
         'openssh' 'ttf-overlock')
binfiles="add_storage.py balance_storage_groups.py empty_storage_groups.py remove_storage.py
          checkXFSfrag.sh enableIRWake.sh idle.py lh_system_start.sh lh_notify-send
          lh_home_check.sh jobqueue_helper.py gen_lib_xml.py
          diskspace.sh find_orphans.py optimize_mythdb.py
          misc_recent_recordings.pl misc_status_config.py misc_status_info.sh
          misc_upcoming_recordings.pl misc_which_recorder.pl
          create_media_dirs.sh be_check.py
          myth2mkv myth2mp3"
source=($binfiles
    'myth_mtc.cron' 'paccache.cron' 'xfs_defrag.cron'
    'readme_is_xml' 'add_storage.readme' 'LinHES-release'
    '79-cronie.hook' 'fstrim.hook' 'openssh.hook' 'plex_lib.conf'
    '10-monitor.conf' 'x11vnc.override.conf' 'lh_lighttpd.conf' 'lh_php.ini'
    'system-sudo.rules' 'linhes-profile.sh' 'lh_sqlserver.cnf'
    'lh_system_start.sh.desktop' 'rc6_mce.toml')
sha256sums=('7f91d2afcb76e8e9063c6bbe05f5c3d134a6f67541aead8894d342c32d34ad98'
            'b0e8fe4d04e1f779d52a28156489fb51efc13e173efccba2d6d458044bf35904'
            '4ab36bbabf0964f666278c225f4c2d41f4277acb42e9023163fa3a9599282466'
            'ff261f41efec8a9963f9f59100cbe75f015028a2ed3a863ce0cb473f2ebb7b76'
            '11168c9cd3b117decaab6bc665c183b4aab917cf0a976bce4c1b5e4686a27bc9'
            'ae34515e144830f424d3bd3f6b1b446892d62beed20bca6f0fb19b0bbb779f27'
            '23358a7bff4968eccd469613b81b1415c2ae0ebe77f14f74426697333e4d88d7'
            '7c6485d07ca67d2a4f089ed885c8ae3a9205d6f43f373ae8a32c2da55daa6de8'
            '6d4fb0ed1a5ed961b3a3884dce093118e50c2981a9cd5837d20abc5a6d4fd8aa'
            '87875d9e5f5ce18208f419698ce69b6bcbcd08955a57a4a13940e715af58b787'
            '91bdec992bb2c933e15625c181f2195c402060b879168ebf35944cb064c904b9'
            'e1e77ef14f1a0a29adf29206972ae5d6a13c9f87d41252a253486104895cb97c'
            'ebdb3ee0212e0cc72526bb5e50a032573e1894acb7bf75617243b0b49aa1f8f2'
            '4d006f0fe3b13e67de1b961d611e81911905a30d140849dfdb8e5c0dc4da2f7c'
            'e371c6a289c68fe200d7da856c20a8c579efa23178f4d62235f7359d7f6e49a1'
            'd2d69b2bf6315bd37ff5f5b2f0cde8ab2fb89bae18f8796dc5208ffc1a9d743e'
            'a3f8ba840853e4a189dd52520a6958f4030e1cc3391200a6aeef055fb469f0b4'
            '6a700f73241de796447bbaf9475b627ae5e662aec3f7fd42b7efa28333aa8801'
            '62a5a195ddfaa13bbc7b5bc627cdd748f5d697d178a5238b71a703533bfdd587'
            '1d12a128a01dbf6327a80daab9edfdc57d393d02074d19c6a5bd54560cc6b0c0'
            'bffcc13e4b480f720feb2b3c781bc4247c63303250c3d885022c699573d45a33'
            '51093acab5e5a4de51a55f4bdf7b935f4f69edf3d84f1c37db710853ec95eca8'
            '9ea1b5583cd38f53bb79d9e4ccae91a028db0b6850162d7991b19122c564b9c9'
            'cab7724cd7c792adae79ba11cf59a0908edf197c437ae6b356ce86c6a365f0da'
            '9e97b4d68c9e8988daacadd40f1de9f0b5945d870eba596a2ceb5e0c023fa9c0'
            '186203d3c0520bb3d611da99d33a7713e9c1563814285f1f101097234f214b2f'
            '4533e15b9141ab722f9b02c3ec7855f61c1e4d2deedd8591b1abd0ed551be581'
            '5f502b1bc8815d69c802320790745e4526d5817fd8ecc7b00cf8b16078f8d440'
            '12e424432bdf2d50afe3e632c018fef847e860a35a53525eccbe656b9c4118aa'
            'ee745056d018f860572f8363ed5e730ba501394c23cdd6f316719d7141c10050'
            '0fbc05f521aea83157c5e6f8bd29a422873093bb6cded965cb7ffe98ff776fa4'
            '4c29e0b71071ae9556cf2dbd75de560d028577fe5eb993113105112c4b445eac'
            '890482242434e333024c7819e8bf3c889dc16548d0a1745479c8523930fb32f7'
            '71c564a12d9a8e2814a2bf67a1a3d70c1e9d3b50bc108f7043ed8c958c067b01'
            'dead17906b33a7f9d66ad13bb1c083a23438f45ece9bd5ec41ff86eda01c132a'
            '2c9152ed542bb9c3aa516c6009125a757065100a060e0fa597243d4cbd92844f'
            '73aae13c47223c4ebb45c5cb2aff19a72b6b32cc0d9e7c83de9f97ada593b411'
            'd4e37e72854edcba76b5464617bea3826e0495f9788340aa318d5f3cf29e87a2'
            'a9d0a94ff442453f0bec0b2e8afd591cf17b2845b6ae45ff300530114efd30af'
            '47ace62d7e7e651f25dc7c0a2e96d0862f5efe1a583eeda2843b1fc1499141fe'
            '3ed91fb5a7894f82fb4895e06d2e3f1df3ac4f82e46c970d4a85aaa4edc24cf1'
            '0b9868a563036c81f8fdb8ab8bbad51934aca2a07e9d7634e24214791afda8e2'
            '1b965b5e7eeafdf3815c8f2722587a560693dd780327cca9910dc47fba0f1aef')

package() {
    cd $srcdir

    install -m755 -D linhes-profile.sh $pkgdir/etc/profile.d/linhes-profile.sh

    #bin files
    BINDIR=$pkgdir/usr/bin
    for i in $binfiles
    do
        item=$i
        echo "installing $item to $BINDIR"
        install -m755 -D $item $BINDIR/$item
    done

    #release files
    install -Dm644 "$srcdir/LinHES-release" "$pkgdir/etc/LinHES-release"

    #startup files
    install -Dm644 "$srcdir/lh_system_start.sh.desktop" "$pkgdir/etc/skel/.config/autostart/lh_system_start.sh.desktop"

    #systemd files
    install -Dm644 $srcdir/x11vnc.override.conf $pkgdir/etc/systemd/system/x11vnc.service.d/override.conf

    #sql files
    install -Dm644 $srcdir/lh_sqlserver.cnf $pkgdir/etc/my.cnf.d/lh_sqlserver.cnf

    #php files
    install -Dm644 $srcdir/lh_php.ini $pkgdir/etc/php/conf.d/lh_php.ini

    #lighttpd files
    install -Dm644 $srcdir/lh_lighttpd.conf $pkgdir/etc/lighttpd/conf.d/lh_lighttpd.conf

    #gen_lib_xml.py files
    install -Dm644 ${srcdir}/plex_lib.conf ${pkgdir}/etc/gen_lib_xml.d/plex_lib.conf

    #remote files
    install -Dm644 $srcdir/rc6_mce.toml $pkgdir/etc/rc_keymaps/rc6_mce.toml

    #readme files
    install -Dm644 $srcdir/readme_is_xml $pkgdir/etc/gen_is_xml.d/readme_is_xml
    install -Dm644 $srcdir/readme_is_xml $pkgdir/etc/gen_lib_xml.d/readme_gen_xml
    install -Dm644 $srcdir/readme_is_xml $pkgdir/etc/gen_game_xml.d/readme_gen_xml
    install -Dm644 $srcdir/add_storage.readme $pkgdir/etc/storage.d/readme

    #cron files
    install -Dm755 $srcdir/paccache.cron $pkgdir/etc/cron.weekly/paccache.cron
    install -Dm755 $srcdir/xfs_defrag.cron $pkgdir/etc/cron.weekly/xfs_defrag
    install -Dm755 $srcdir/myth_mtc.cron $pkgdir/etc/cron.hourly/myth_mtc

    #hooks
	install -Dm0644 $srcdir/79-cronie.hook "${pkgdir}"/usr/share/libalpm/hooks/79-cronie.hook
	install -Dm0644 $srcdir/fstrim.hook "${pkgdir}"/usr/share/libalpm/hooks/fstrim.hook
	install -Dm0644 $srcdir/openssh.hook "${pkgdir}"/usr/share/libalpm/hooks/openssh.hook

    #sudo rules
    mkdir -p $pkgdir/etc/sudoers.d/
    chmod 750 $pkgdir/etc/sudoers.d/
    chown -R root:root $pkgdir/etc/sudoers.d
    install -o root -g root -m0750 $srcdir/system-sudo.rules $pkgdir/etc/sudoers.d/system_sudo

    #disable dpms
    install -m644 -D $srcdir/10-monitor.conf $pkgdir/etc/X11/xorg.conf.d/10-monitor.conf
}