added package and linux deps

This commit is contained in:
wt committed 2024-12-28 10:09:29 +07:00
1 parent 6dfe3bac94
commit 58a72004a0
3 files changed
+17 -4

No files matched your search

+10 -2
View File
@@ -12,9 +12,17 @@ build:
mkdir bin; \
fi
$(CC) -o $(TARGET) $(SOURCES) $(CFLAGS)
sudo chown -v root:staff $(TARGET)
sudo chmod 4755 $(TARGET)
chown -v 0:0 $(TARGET)
chmod 4755 $(TARGET)
clean:
rm -v $(TARGET)
package:
mkdir -pv sudo.pkg/usr/bin
cp -v $(TARGET) sudo.pkg/usr/bin/sudo
echo "/usr/bin/sudo" > sudo.pkg/list
printf "#!/bin/sh\nchown -v 0:0 /usr/bin/sudo\nchmod 4755 /usr/bin/sudo" > sudo.pkg/post_install
chmod +x sudo.pkg/post_install
tar -czvf sudo.pkg.gz sudo.pkg