From 9c5f273f5c462322be3a8312424449953a597740 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Thu, 2 Aug 2018 22:02:59 -0400 Subject: Add chroot.tar target --- Makefile | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 32b03e0..0f622b6 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,4 @@ +USER = chat CFLAGS += -Wall -Wextra -Wpedantic CFLAGS += -I/usr/local/include LDFLAGS += -L/usr/local/lib @@ -8,5 +9,37 @@ all: tags chat tags: *.c ctags -w *.c +chroot.tar: chat + mkdir -p root + install -d -o root -g wheel \ + root/bin \ + root/etc \ + root/home \ + root/lib \ + root/libexec \ + root/usr \ + root/usr/local \ + root/usr/local/etc \ + root/usr/local/etc/ssl \ + root/usr/share \ + root/usr/share/misc + install -d -o $(USER) -g $(USER) root/home/$(USER) + install -o root -g wheel -m 555 /libexec/ld-elf.so.1 root/libexec + install -o root -g wheel -m 444 \ + /lib/libc.so.7 \ + /lib/libncurses.so.8 \ + /lib/libncursesw.so.8 \ + /lib/libthr.so.3 \ + /usr/local/lib/libcrypto.so.43 \ + /usr/local/lib/libssl.so.45 \ + /usr/local/lib/libtls.so.17 \ + root/lib + install -o root -g wheel -m 444 /etc/hosts /etc/resolv.conf root/etc + install -o root -g wheel -m 444 /usr/local/etc/ssl/cert.pem root/usr/local/etc/ssl + install -o root -g wheel -m 444 /usr/share/misc/termcap.db root/usr/share/misc + install -o root -g wheel -m 555 /bin/sh root/bin + install -o root -g wheel -m 555 chat root/bin + tar -c -f chroot.tar -C root bin etc home lib libexec usr + clean: - rm -f tags chat + rm -f tags chat chroot.tar -- cgit 1.4.1 m'>
path: root/.gitignore (unfollow)
Commit message (Expand)Author
2020-02-12Mark and unmark on uiHide, uiShowJune McEnroe
2020-02-12Hide debug prompt if buffer starts with /June McEnroe
2020-02-12Only exit on errorneous nick during registrationJune McEnroe
2020-02-12Add 378 to list of WHOIS responsesJune McEnroe
2020-02-13Implement source address selectionmultiplexd
2020-02-12Add /listJune McEnroe
2020-02-12Simplify transpose swapJune McEnroe
2020-02-12Add C-t transposeJune McEnroe
2020-02-12Add C-v and M-vJune McEnroe
2020-02-12Allow for arguments to open/copy utilitiesJune McEnroe
2020-02-12Handle RPL_AWAYJune McEnroe
2020-02-11Support monochromatic terminalsJune McEnroe
2020-02-11Add .gz to chroot-man scriptJune McEnroe
2020-02-11Add -R restricted flagJune McEnroe
2020-02-11Add chroot targetJune McEnroe
2020-02-11Exit focus and paste modes on err exitJune McEnroe
2020-02-11Add startup GPLv3 note and URLJune McEnroe
2020-02-11Make sure -D_GNU_SOURCE ends up in CFLAGS on LinuxJune McEnroe
2020-02-11Add note about setting PKG_CONFIG_PATHJune McEnroe
2020-02-11Rename query ID on nick changeJune McEnroe
2020-02-11Call completeClear when closing a windowJune McEnroe
2020-02-11Don't insert color codes for non-mentionsJune McEnroe
2020-02-11Take first two words in colorMentionsJune McEnroe
2020-02-11Use time_t for save signatureJune McEnroe
2020-02-11Set self.nick to * initiallyJune McEnroe
2020-02-11Define ColorCap instead of hardcoding 100June McEnroe
2020-02-11Move hash to top of chat.hJune McEnroe
2020-02-11Move base64 out of chat.hJune McEnroe
2020-02-11Move XDG_SUBDIR out of chat.hJune McEnroe
2020-02-11Fix whois idle unit calculationJune McEnroe
2020-02-11Cast towupper to wchar_tJune McEnroe
2020-02-11Cast set but unused variables to voidJune McEnroe
2020-02-11Declare strlcatJune McEnroe
2020-02-11Check if VDSUSP existsJune McEnroe
2020-02-11Fix completeReplace iterationJune McEnroe
2020-02-11Use pkg(8) to configure on FreeBSDJune McEnroe
2020-02-11Remove legacy codeJune McEnroe
2020-02-11Add INSTALLING section to READMEJune McEnroe