File tree 3 files changed +24
-2
lines changed
3 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -97,11 +97,13 @@ rpm: $(LIBS) $(MANS)
97
97
rm -rf build/rpm
98
98
99
99
# temporary fpm source
100
- mkdir -p build/rpm/libcs50/usr
101
- cp -r $(addprefix build/, include lib src) build/rpm/libcs50/usr
100
+ mkdir -p build/rpm/libcs50/usr/local
101
+ cp -r $(addprefix build/, include lib src) build/rpm/libcs50/usr/local
102
102
mkdir -p build/rpm/libcs50/usr/local/share/man/man3
103
103
cp -r $(MANS) build/rpm/libcs50/usr/local/share/man/man3
104
104
fpm \
105
+ --after-install post \
106
+ --after-remove postun \
105
107
--category libs \
106
108
--chdir build/rpm/libcs50 \
107
109
--description "CS50 library for C" \
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ case " $1 " in
4
+ # initial installation or upgrade
5
+ 1|2)
6
+ ldconfig /usr/local/lib
7
+ ;;
8
+ esac
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ case " $1 " in
4
+ # uninstallation
5
+ 0)
6
+ ldconfig /usr/local/lib
7
+ ;;
8
+
9
+ # upgrade
10
+ 1)
11
+ ;;
12
+ esac
You can’t perform that action at this time.
0 commit comments