summarylogtreecommitdiffstats
path: root/darling-git.install
blob: 5fdceafa6f92c90dba898e38c0b7173d7cf0eac2 (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
DARLING_PATH="/usr/libexec/darling"

setup_ld() {
	cd "$DARLING_PATH"
	/usr/bin/darling-setup-ld-so
}

clean_ld() {
	cd "$DARLING_PATH/etc"
	rm -fv ld.so.conf ld.so.cache
	rm -rfv ld.so.conf.d
}

post_install() {
	setup_ld
}

post_upgrade() {
	setup_ld
}

pre_remove() {
	clean_ld
}