mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
network/ntpclient: Fix -current build.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
e8e5cd9e7d
commit
727ef0f856
1 changed files with 8 additions and 0 deletions
|
@ -22,6 +22,8 @@
|
|||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# 20220125 bkw: Modified by the SlackBuilds.org project.
|
||||
|
||||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=ntpclient
|
||||
|
@ -80,6 +82,12 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
# 20220125 bkw: fix build for -current (missing include).
|
||||
sed -i '/sys\/ioctl\.h/a#include <linux/sockios.h>' $PRGNAM.c
|
||||
|
||||
# 20220125 bkw: fix man page typo.
|
||||
sed -i 's/^top after/s&/' $PRGNAM.1
|
||||
|
||||
sed -i "/^CFLAGS += -O2$/d" Makefile
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
make
|
||||
|
|
Loading…
Reference in a new issue