summaryrefslogtreecommitdiffstats
path: root/linhes/linhes-system/PKGBUILD
blob: fc20a532af9b487324a57615e49601aa54d0c16a (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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
pkgname=linhes-system
pkgver=9.0.0
pkgrel=53
arch=('x86_64')
#install=$pkgname.install
pkgdesc="Everything that makes LinHES a system"
license=('GPL2')
depends=('cronie' 'dbus-python' 'dvb-firmware' 'expect' 'flatpak' 'firefox' 'glances' 'inetutils' 
         'kdialog' 'libnotify'
         'logrotate' 'linhes-templates' 'linhes-theme' 'mlocate' 'ncdu' 'python-dateutil' 'python-pytz'
         'python-tzlocal' 'openssh' 'pacman-contrib' 'rsyslog' 'ttf-overlock' 'wget' 'x11vnc'
         'intel-media-driver' 'libva-intel-driver' 'libva-vdpau-driver')
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 lh_myth_status.py lh_system_backup lh_system_backup_job
          jobqueue_helper.py gen_lib_xml.py
          diskspace.sh find_orphans.py optimize_mythdb.py lh_mtc.py
          misc_recent_recordings.pl misc_status_config.py misc_status_info.sh
          misc_upcoming_recordings.pl misc_which_recorder.pl plexmediascanner.sh
          create_media_dirs.sh be_check.py
          myth2mkv myth2mp3 myth2videos udev_link.sh"
source=($binfiles
    'lh_mtc.cron' 'paccache.cron' 'flatpak_update.cron' 'xfs_defrag.cron'
    'readme_is_xml' 'add_storage.readme' 'LinHES-release' 'lh_log_care.cron'
    '79-cronie.hook' 'fstrim.hook' 'openssh.hook' 'plex_lib.conf' 'rsyslog.hook'
    '10-monitor.conf' '81-wol.rules' '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' 'recordings.cron' 'rsyslog.mythtv.conf')
sha256sums=('525bfe29b63d3ec5a17a32fa29745e24070020490c3f5b6dd6b03250348fb324'
            '1ec3c266cafb0c1b231e88df88b97fec1a1b7465b5d95a0c1e64c8cb727b7c47'
            '97fe9e851c782fa9f85c5b69b110ccff2817dd4fa2a6d9ff6ee225dc558677e4'
            'ff261f41efec8a9963f9f59100cbe75f015028a2ed3a863ce0cb473f2ebb7b76'
            'c7a2b2de44645e3a905b39d7411e5b8b27b60bd2944533fd4655c3b175755da1'
            'ae34515e144830f424d3bd3f6b1b446892d62beed20bca6f0fb19b0bbb779f27'
            '5e6d128f879b0fe7c1a190cccd75d4e5d00afc161f3bc9e92ffa2d87242cc9df'
            '7d4c5397326565b517799aef4e6301d12b672a5995e4de03cf6817f5de05855d'
            '6d4fb0ed1a5ed961b3a3884dce093118e50c2981a9cd5837d20abc5a6d4fd8aa'
            '87875d9e5f5ce18208f419698ce69b6bcbcd08955a57a4a13940e715af58b787'
            '93d664f4a46fda05d0f754d19df40cbda120e325b80c07092345b14763993833'
            '8d6d09cedc85e49712144699ccb905be6ef663e9ab0bc01abd434370ab12fede'
            'b8871ab7e2aefac6c8ff3149a70d3624a48615fcbec7672ec20d321180d5c846'
            '91bdec992bb2c933e15625c181f2195c402060b879168ebf35944cb064c904b9'
            '5cacfdd02833e5a3130d765573e772e6bd5030336ba86239c5e4db5ffa36fc69'
            'ebdb3ee0212e0cc72526bb5e50a032573e1894acb7bf75617243b0b49aa1f8f2'
            '4d006f0fe3b13e67de1b961d611e81911905a30d140849dfdb8e5c0dc4da2f7c'
            'e371c6a289c68fe200d7da856c20a8c579efa23178f4d62235f7359d7f6e49a1'
            'c29eead1fee5b3738dae6fc1dc7592cfede0440cfe7ccfd1d8505327495f07f9'
            'd2d69b2bf6315bd37ff5f5b2f0cde8ab2fb89bae18f8796dc5208ffc1a9d743e'
            'a3f8ba840853e4a189dd52520a6958f4030e1cc3391200a6aeef055fb469f0b4'
            '1819085bd2c9106482c5f243b95fddf3dae69212330ab76cb493add5c26a45a4'
            '62a5a195ddfaa13bbc7b5bc627cdd748f5d697d178a5238b71a703533bfdd587'
            '1d12a128a01dbf6327a80daab9edfdc57d393d02074d19c6a5bd54560cc6b0c0'
            'bfb0cc87bf350214f38a262400bee0174fca75f15bed4eec6bdad4a34dde174c'
            'bffcc13e4b480f720feb2b3c781bc4247c63303250c3d885022c699573d45a33'
            '51093acab5e5a4de51a55f4bdf7b935f4f69edf3d84f1c37db710853ec95eca8'
            'ad4ddabbc34d5e1b308ece33cabf91d750f44894c52a18325762dea026152973'
            'a961cfdc6f02b12fb445777dd2c144fed96306ca2f430cc8853ae307c759c1ad'
            'd8574104b75c6d41284488612ec5583c50a8dab438492fa42c47231add4cfc54'
            '6bdbf593d3e1348d1a8f7c4c17cb2e893f7e18ae355daf978173e669cfe3be80'
            'b3f02ec3f8cedc98c74b3169049b7b6aa78bd79d558a8bc98d00e064b983965c'
            '186203d3c0520bb3d611da99d33a7713e9c1563814285f1f101097234f214b2f'
            'd8d36a501928d0cc505957d392291fad317b1e895ff99847d90643cf5f622a89'
            'cdfc0c836b8194f631f4a9e022c232ff75a13ff1a161a1a011858578bea5f930'
            '5f502b1bc8815d69c802320790745e4526d5817fd8ecc7b00cf8b16078f8d440'
            '12e424432bdf2d50afe3e632c018fef847e860a35a53525eccbe656b9c4118aa'
            'ee745056d018f860572f8363ed5e730ba501394c23cdd6f316719d7141c10050'
            '77fc99fee33387a91e158c0a4e6f3d99601e4d27d04e26d3f815634f48de6a79'
            '0fbc05f521aea83157c5e6f8bd29a422873093bb6cded965cb7ffe98ff776fa4'
            '4c29e0b71071ae9556cf2dbd75de560d028577fe5eb993113105112c4b445eac'
            '890482242434e333024c7819e8bf3c889dc16548d0a1745479c8523930fb32f7'
            '71c564a12d9a8e2814a2bf67a1a3d70c1e9d3b50bc108f7043ed8c958c067b01'
            '6c42b2920c6a37bf3dd05755b9e3fdd80137708cc55a7d1bef2234c17dff0349'
            '1c2870087ebef43ffb69d422b6a8bfd687e0f3a955c4f186f8f6b8bb0de96557'
            'efc2a04b67ea76661157e154228d4b58ae2e1b652f8ce41bc001a5a863d13573'
            '7f5b366075fa61fadfcdbab2837f0c58f3a8004a59fc8948fec1647d2573ffaa'
            '806e42821252c148701c130cc82aebed4f9f678f3f89987638231e4015d51e84'
            'd4e37e72854edcba76b5464617bea3826e0495f9788340aa318d5f3cf29e87a2'
            'a9d0a94ff442453f0bec0b2e8afd591cf17b2845b6ae45ff300530114efd30af'
            '47ace62d7e7e651f25dc7c0a2e96d0862f5efe1a583eeda2843b1fc1499141fe'
            '3ed91fb5a7894f82fb4895e06d2e3f1df3ac4f82e46c970d4a85aaa4edc24cf1'
            '0b9868a563036c81f8fdb8ab8bbad51934aca2a07e9d7634e24214791afda8e2'
            '1b965b5e7eeafdf3815c8f2722587a560693dd780327cca9910dc47fba0f1aef'
            'aa670bc7aeed907b0f1c92a2e158fc17145e6e533f7aec9ad9c9a28c2fbdaa2e'
            '2b91f6eb8c010a0dce1f41149c0549d067915fba93251c7af7e5328a05977f0c')

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

    #rsyslog files
    install -Dm644 $srcdir/rsyslog.mythtv.conf $pkgdir/etc/rsyslog.d/mythtv.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
    install -Dm755 $srcdir/xfs_defrag.cron $pkgdir/etc/cron.weekly/xfs_defrag
    install -Dm755 $srcdir/lh_mtc.cron $pkgdir/etc/cron.hourly/lh_mtc
    install -Dm755 $srcdir/flatpak_update.cron $pkgdir/etc/cron.daily/flatpak_update
    install -Dm755 $srcdir/lh_log_care.cron $pkgdir/etc/cron.daily/lh_log_care
    install -Dm755 $srcdir/recordings.cron $pkgdir/etc/cron.hourly/recordings

    #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
	install -Dm0644 $srcdir/rsyslog.hook "${pkgdir}"/usr/share/libalpm/hooks/rsyslog.hook

    #sudo rules
    install -Dm0750 "$srcdir/system-sudo.rules" "$pkgdir/etc/sudoers.d/system_sudo"
    chmod 750 $pkgdir/etc/sudoers.d/

    #udev rules
	install -Dm0644 "$srcdir/81-wol.rules" "$pkgdir/etc/udev/rules.d/81-wol.rules"

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