summaryrefslogtreecommitdiffstats
path: root/misc/kdehier4/files/make-plist.sh
blob: ef632cbb457f739b499cd64a8009ca7e9de01b7f (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
#!/bin/sh
if [ ! -e dirlist -o ! -e ../Makefile ]; then
	echo "Wrong directory; this script needs to be called from"
	echo "${PORTSDIR}/misc/kdehier4/files"
	echo "directory!"
	exit 1
fi

echo "@comment Do not edit this file!
@comment It is generated by maintainer-generate-plist target." > ../pkg-plist

echo "%%MTREE%%@cwd %%LOCALBASE%%
%%MTREE%%etc/dbus-1/session-kde4.conf
%%MTREE%%etc/dbus-1/system-kde4.conf
%%MTREE%%@dirrmtry etc/dbus-1
%%MTREE%%@cwd %%KDE4_PREFIX%%" >> ../pkg-plist

echo "%%MTREE%%etc/pam.d
%%MTREE%%etc/rc.d
%%MTREE%%%%LDCONFIG_DIR%%
%%MTREE%%%%LDCONFIG32_DIR%%
%%MTREE%%libdata/pkgconfig
%%MTREE%%share/dbus-1/services
%%MTREE%%share/dbus-1/system-services
%%MTREE%%share/polkit-1/actions" >> ../pkg-plist

(
grep -v "^@comment" dirlist | sed -e "s,^,@exec mkdir -p %D/," ;
grep -v "^@comment" mtree-dirlist | sed -e "s,^,%%MTREE%%@exec mkdir -p %D/,"
)| sort | uniq >> ../pkg-plist

(
grep -v "^@comment" dirlist | sed -e "s,^,@dirrmtry ," ;
grep -v "^@comment" mtree-dirlist | sed -e "s,^,%%MTREE%%@dirrm ,"
)| sort -r | uniq >> ../pkg-plist

echo "%%MTREE%%@exec echo %D/lib > %%LOCALBASE%%/%%LDCONFIG_DIR%%/kdehier4
%%MTREE%%@unexec [ -f %%LOCALBASE%%/%%LDCONFIG_DIR%%/kdehier4 ] && rm -f %%LOCALBASE%%/%%LDCONFIG_DIR%%/kdehier4  || true" >> ../pkg-plist
OpenPOWER on IntegriCloud